From 4a4ef11e862d22c5887bdd7ad23050071db4ba83 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 11 Apr 2024 03:29:26 +0000 Subject: [PATCH] drm/amd: Flush GFXOFF requests in prepare stage From Mario Limonciello 3da10e91ecd24c49dd80e73f5ca86166f90dcfe1 in linux-6.6.y/6.6.26 ca299b4512d4b4f516732a48ce9aa19d91f4473e in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c index 1363d4c3668..2d96609911e 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c @@ -4228,6 +4228,8 @@ int amdgpu_device_prepare(struct drm_device *dev) if (r) return r; + flush_delayed_work(&adev->gfx.gfx_off_delay_work); + for (i = 0; i < adev->num_ip_blocks; i++) { if (!adev->ip_blocks[i].status.valid) continue; -- 2.20.1