linux_dsm_epyc7002/drivers/mtd/nand/gpmi-nand
Huang Shijie 0ff76a920e mtd: gpmi: add sanity check when mapping DMA for read_buf/write_buf
The buffer pointer passed from the upper layer may points to
a buffer in the stack or a buffer allocated by vmalloc, and etc..

This patch adds more sanity check to this buffer.
After this patch, if we meet a buffer which is allocated by vmalloc or
a buffer in the stack, we will use our own DMA buffer @data_buffer_dma
to do the DMA operations. If the buffer is not the cases above, we will
map it for DMA operations directly.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2014-01-27 21:55:03 -08:00
..
bch-regs.h mtd: gpmi: set the Golois Field bit for mx6q's BCH 2013-02-04 10:27:59 +02:00
gpmi-lib.c mtd: gpmi: change pr_err to dev_err 2014-01-03 11:22:20 -08:00
gpmi-nand.c mtd: gpmi: add sanity check when mapping DMA for read_buf/write_buf 2014-01-27 21:55:03 -08:00
gpmi-nand.h mtd: gpmi: use devm_request_irq 2014-01-03 11:22:19 -08:00
gpmi-regs.h mtd: gpmi: decouple the chip select from the DMA channel 2013-11-06 23:33:01 -08:00
Makefile mtd: add GPMI-NAND driver in the config and Makefile 2011-09-11 15:02:18 +03:00