]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/amdgpu: move drain_workqueue before shutdown is set
authorVictor Zhao <Victor.Zhao@amd.com>
Sun, 25 Aug 2024 16:14:26 +0000 (00:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Aug 2024 17:39:07 +0000 (13:39 -0400)
commitaf76ca8e180f38a7d874c18cf810707762766627
treee45e72d96c1958546a67c8069bc58a8cb185fda7
parentc67db6a6a6be4bb1db1b0fd5b24040d68e461cb1
drm/amd/amdgpu: move drain_workqueue before shutdown is set

[background] when unloading amdgpu driver right after running a
workload, drain_workqueue is causing "Fence fallback timer
expired on ring sdma0.0". Under sriov, this issue will cause sriov
full access timeout and a reset happening.

move drain_workqueue before shutdown is set to allow ih process and
before enter full access under sriov to avoid full access time cost.

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c