drm/amdgpu: disable gfxoff while use no H/W scheduling policy
authorHuang Rui <ray.huang@amd.com>
Mon, 2 Sep 2019 15:34:32 +0000 (23:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 14:55:41 +0000 (09:55 -0500)
commitaa978594cf7fa0ad91d0671bb1a33ec38fbd3d25
tree04a4ffb76decac7b238f62358d011e6332105515
parentf5d843d4ea3b8738a42a4b22432ce95f1df7ca51
drm/amdgpu: disable gfxoff while use no H/W scheduling policy

While gfxoff is enabled, the mmVM_XXX registers will be 0xfffffff while the GFX
is in "off" state. KFD queue creattion doesn't use ring based method, so it will
trigger a VM fault.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c