From: Benjamin Herrenschmidt Date: Thu, 4 Sep 2014 07:47:23 +0000 (+1000) Subject: drm/ttm: Clean usage of ttm_io_prot() with TTM_PL_FLAG_CACHED X-Git-Tag: fixes-against-v3.18-rc2~73^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94318d50ffc84a1ebaf1a83a0a56bbbaf415bacf;p=pandora-kernel.git drm/ttm: Clean usage of ttm_io_prot() with TTM_PL_FLAG_CACHED Today, most callers of ttm_io_prot() check TTM_PL_FLAG_CACHED before calling it since on some archs it will unconditionally create non-cached mappings. But not all callers do which is incorrect as far as I can tell. Instead, move that check inside ttm_io_port() itself for all archs and make powerpc use the same implementation as ia64 and arm Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Dave Airlie --- Reading git-diff-tree failed