Skip to content
Commit 2d68b7fe authored by Catalin Marinas's avatar Catalin Marinas Committed by Jeff Garzik
Browse files

[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: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent cedc9bf9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment