diff options
author | 2020-01-01 00:02:57 +0000 | |
---|---|---|
committer | 2020-01-01 00:02:57 +0000 | |
commit | 74fd74805daf43ebf28955598d34f49dab70580f (patch) | |
tree | b56ff03af4479de5be82e0858e9c50be802f276e | |
parent | drm/amd/display: Fix dongle_caps containing stale information. (diff) | |
download | wireguard-openbsd-74fd74805daf43ebf28955598d34f49dab70580f.tar.xz wireguard-openbsd-74fd74805daf43ebf28955598d34f49dab70580f.zip |
drm/amdgpu: disallow direct upload save restore list from gfx driver
From Hawking Zhang
7b3fe663da71273710fc8f7fa0c71515e96c6786 in linux 4.19.y/4.19.92
58f46d4b65021083ef4b4d49c6e2c58e5783f626 in mainline linux
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c index bc659e7e4de..2b3afe62692 100644 --- a/sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/gfx_v9_0.c @@ -2197,7 +2197,8 @@ static void gfx_v9_0_init_pg(struct amdgpu_device *adev) * And it's needed by gfxoff feature. */ if (adev->gfx.rlc.is_rlc_v2_1) { - gfx_v9_1_init_rlc_save_restore_list(adev); + if (adev->asic_type == CHIP_VEGA12) + gfx_v9_1_init_rlc_save_restore_list(adev); gfx_v9_0_enable_save_restore_machine(adev); } |