drm/amdgpu: Fix sdma v4 sw fini error
authorjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 03:02:04 +0000 (03:02 +0000)
committerjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 03:02:04 +0000 (03:02 +0000)
From lyndonli
210ef6cd8e634f18fd889421012192b81325b27b in linux-6.1.y/6.1.30
5e08e9c742a00384e5abe74bd40cf4dc15cb3a2e in mainline linux

sys/dev/pci/drm/amd/amdgpu/sdma_v4_0.c

index caa8a21..ec8a202 100644 (file)
@@ -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