]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Clean usage of ttm_io_prot() with TTM_PL_FLAG_CACHED
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 4 Sep 2014 07:47:23 +0000 (17:47 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Sep 2014 05:00:26 +0000 (15:00 +1000)
commitb682f68ee9c89d89a6fe79f17d3b88c1db949619
tree33615cd5feabb051b2f8f54614a297d8e4ccd2af
parenta4755e84f9c0e813fdc3ced0c17cd55db307ded4
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 <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_bo_vm.c