2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/drivers/misc/mic
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
..
bus misc: mic: SCIF Hardware Bus 2015-05-24 12:13:36 -07:00
card misc: mic: MIC card driver specific changes to enable SCIF 2015-05-24 12:13:37 -07:00
common misc: mic: Common MIC header file changes in preparation for SCIF 2015-05-24 12:13:36 -07:00
host misc: mic: MIC host driver specific changes to enable SCIF 2015-05-24 12:13:37 -07:00
scif misc: mic: scif bug fix for vmalloc_to_page crash 2015-07-22 21:25:36 -07:00
Kconfig misc: mic: MIC card driver specific changes to enable SCIF 2015-05-24 12:13:37 -07:00
Makefile misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00