]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit94318d50ffc84a1ebaf1a83a0a56bbbaf415bacf
tree33615cd5feabb051b2f8f54614a297d8e4ccd2af
parent6bd3110ce6e50fb15c975b26f068d606f4434431
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