From: Salyzyn, Mark Date: Fri, 11 Jan 2008 19:46:44 +0000 (-0800) Subject: [SCSI] aacraid: add call to flush_kernel_dcache_page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a0086a80ab7c2f1adb0e9b2a6fc82632979cec5;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [SCSI] aacraid: add call to flush_kernel_dcache_page Some architectures require a call to flush_kernel_dcache_page for processor spoofed DMA operations. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index 3cddcc0901b2..970a8d99107a 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c @@ -31,9 +31,9 @@ #include #include #include -#include #include #include +#include /* For flush_kernel_dcache_page */ #include #include @@ -366,6 +366,7 @@ static void aac_internal_transfer(struct scsi_cmnd *scsicmd, void *data, unsigne if (buf && transfer_len > 0) memcpy(buf + offset, data, transfer_len); + flush_kernel_dcache_page(kmap_atomic_to_page(buf - sg->offset)); kunmap_atomic(buf - sg->offset, KM_IRQ0); }