]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: add unmap latency when gfx11 set kiq resources
authorTong Liu01 <Tong.Liu01@amd.com>
Fri, 27 Oct 2023 03:26:46 +0000 (11:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Oct 2023 20:40:16 +0000 (16:40 -0400)
commit853eebe6ec4f6a277b8c8fb34da268aca6cf720b
tree70a078866b73769dc4fdd0e5be6f6ec1a37e2e2a
parent5f38ac54e60562323ea4abb1bfb37d043ee23357
drm/amdgpu: add unmap latency when gfx11 set kiq resources

[why]
If driver does not set unmap latency for KIQ, the default value of KIQ
unmap latency is zero. When do unmap queue, KIQ will return that almost
immediately after receiving unmap command. So, the queue status will be
saved to MQD incorrectly or lost in some chance.

[how]
Set unmap latency when do kiq set resources. The unmap latency is set to
be 1 second that is synchronized with Windows driver.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Tong Liu01 <Tong.Liu01@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c