linux/drivers/misc/mic/scif
Sudeep Dutt a63444375f misc: mic: scif bug fix for vmalloc_to_page crash
v4.2-rc1 enabled huge page support for ioremap(..).
Calling vmalloc_to_page after v4.2-rc1 results in the
crash shown below on the host upon booting X100 coprocessors:

BUG: unable to handle kernel paging request at ffffc47c00000000
IP: [<ffffffff811a2c0c>] vmalloc_to_page+0x6c/0xb0

This patch fixes this crash by obtaining the fake struct page
pointer which is required to be passed into dma_map_sg(..)
by calling pfn_to_page(..) instead of vmalloc_to_page(..).

Link: https://lkml.org/lkml/2015/7/18/110
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Suggested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-22 21:25:36 -07:00
..
Makefile misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_api.c misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_debugfs.c misc: mic: SCIF module initialization 2015-05-24 12:13:36 -07:00
scif_epd.c misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_epd.h misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_fd.c misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_main.c misc: mic: Fix reported static checker warning 2015-06-12 17:01:43 -07:00
scif_main.h misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_map.h misc: mic: SCIF module initialization 2015-05-24 12:13:36 -07:00
scif_nm.c misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_nodeqp.c misc: mic: scif bug fix for vmalloc_to_page crash 2015-07-22 21:25:36 -07:00
scif_nodeqp.h misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_peer_bus.c misc: mic: SCIF Peer Bus 2015-05-24 12:13:36 -07:00
scif_peer_bus.h misc: mic: SCIF Peer Bus 2015-05-24 12:13:36 -07:00
scif_ports.c misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_rb.c misc: mic: Fix randconfig build error by including errno.h 2015-06-12 17:01:43 -07:00
scif_rb.h