]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: nvmap: treat writecombine requests as dmacoherent
authorKrishna Reddy <vdumpa@nvidia.com>
Mon, 10 Mar 2014 23:08:15 +0000 (16:08 -0700)
committerKrishna Reddy <vdumpa@nvidia.com>
Tue, 1 Apr 2014 03:52:02 +0000 (20:52 -0700)
NvMap always allocates DRAM or IRAM memory. It never allocates real
Device memory. From Arm v8 onwards writecombine memory is real
writecombine, which is of less performace for DRAM accesses and
unnecessary for DRAM.
Treat writecombine requests as dmacoherent, which is normal memory
non-cacheable.

Change-Id: I5c19a5f0f033eec3680bf6b9db1cbbfb02090f3d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/379702
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
drivers/video/tegra/nvmap/nvmap_priv.h

index ece1b3f72c3b78cc4950521a473691b780793687..c493884d12abb1aba316a1daea7c53f21db0003e 100644 (file)
@@ -288,7 +288,7 @@ static inline pgprot_t nvmap_pgprot(struct nvmap_handle *h, pgprot_t prot)
        if (h->flags == NVMAP_HANDLE_UNCACHEABLE)
                return pgprot_noncached(prot);
        else if (h->flags == NVMAP_HANDLE_WRITE_COMBINE)
-               return pgprot_writecombine(prot);
+               return pgprot_dmacoherent(prot);
        return prot;
 }