OSDN Git Service

drm/ttm: Temporarily disable the huge_fault() callback
authorThomas Hellstrom (VMware) <thomas_os@shipmail.org>
Thu, 9 Apr 2020 16:49:25 +0000 (18:49 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Apr 2020 20:38:23 +0000 (06:38 +1000)
commitc445c1668dca9cb908f75e000ab20351bce7c416
treefc80d410db121ed52e140b36b222570b3049cbc8
parentcb6d40664129ba41cc27da05318edfc08567026e
drm/ttm: Temporarily disable the huge_fault() callback

With amdgpu and CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y, there are
errors like:
BUG: non-zero pgtables_bytes on freeing mm
and:
BUG: Bad rss-counter state
with TTM transparent huge-pages.
Until we've figured out what other TTM drivers do differently compared to
vmwgfx, disable the huge_fault() callback, eliminating transhuge
page-table entries.

Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom (VMware) <thomas_os@shipmail.org>
Reported-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200409164925.11912-1-thomas_os@shipmail.org
drivers/gpu/drm/ttm/ttm_bo_vm.c