[libata] Call flush_dcache_page after PIO data transfers in libata-sff.c
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 4 Feb 2010 06:04:50 +0000 (01:04 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 4 Feb 2010 06:04:50 +0000 (01:04 -0500)
commit2d68b7fe55d9e19a8a868224ed0dfd6526568521
treef18068b57359ddc0be3d5fba6f8eabc097efd1af
parentcedc9bf906dae044443d403371c887affdb44168
[libata] Call flush_dcache_page after PIO data transfers in libata-sff.c

flush_dcache_page() must be called after (!ATA_TFLAG_WRITE) the
data copying to avoid D-cache aliasing with user space or I-D cache
coherency issues (when reading data from an ATA device using PIO,
the kernel dirties the D-cache but there is no flush_dcache_page()
required on Harvard architectures).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-sff.c