drm/amd: Flush GFXOFF requests in prepare stage
authorjsg <jsg@openbsd.org>
Thu, 11 Apr 2024 03:29:26 +0000 (03:29 +0000)
committerjsg <jsg@openbsd.org>
Thu, 11 Apr 2024 03:29:26 +0000 (03:29 +0000)
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

index 1363d4c..2d96609 100644 (file)
@@ -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;