From: jsg Date: Thu, 15 Jun 2023 03:02:04 +0000 (+0000) Subject: drm/amdgpu: Fix sdma v4 sw fini error X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e461e5251a254aa0b16e70043f5484677bb38961;p=openbsd drm/amdgpu: Fix sdma v4 sw fini error From lyndonli 210ef6cd8e634f18fd889421012192b81325b27b in linux-6.1.y/6.1.30 5e08e9c742a00384e5abe74bd40cf4dc15cb3a2e in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c b/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c index caa8a2118a6..ec8a202b64d 100644 --- a/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c +++ b/sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c @@ -1908,7 +1908,7 @@ static int sdma_v4_0_sw_fini(void *handle) amdgpu_ring_fini(&adev->sdma.instance[i].page); } - if (adev->ip_versions[SDMA0_HWIP][0] == IP_VERSION(4, 2, 0) || + if (adev->ip_versions[SDMA0_HWIP][0] == IP_VERSION(4, 2, 2) || adev->ip_versions[SDMA0_HWIP][0] == IP_VERSION(4, 4, 0)) amdgpu_sdma_destroy_inst_ctx(adev, true); else