From: Andy Lutomirski Date: Mon, 13 May 2013 23:58:42 +0000 (+0000) Subject: drm: Update drm_addmap and drm_mmap to use PAT WC instead of MTRRs X-Git-Tag: v3.11-rc1~65^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff47eaf24d01b5753e4964b10c606e0d711b143e;p=pandora-kernel.git drm: Update drm_addmap and drm_mmap to use PAT WC instead of MTRRs Previously, DRM_FRAME_BUFFER mappings, as well as DRM_REGISTERS mappings with DRM_WRITE_COMBINING set, resulted in an unconditional MTRR being added but the actual mappings being created as UC-. Now these mappings have the MTRR added only if needed, but they will be mapped with pgprot_writecombine. The non-WC DRM_REGISTERS case now uses pgprot_noncached instead of hardcoding the bit twiddling. The DRM_AGP case is unchanged for now. [airlied: fix ppc build] Reviewed-by: Daniel Vetter Signed-off-by: Andy Lutomirski Signed-off-by: Dave Airlie --- Reading git-diff-tree failed