]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: disable ring_muxer if mcbp is off
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 16 Feb 2024 15:20:44 +0000 (16:20 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Mar 2024 20:24:49 +0000 (15:24 -0500)
commitbf909454fefa4a578dc5451cc5697b5fbe1bd6e4
treea8d2eb4dfb931ca84c469de8f3cf3062c5391a4d
parent190145f692226557d52296b92010191044199e8b
drm/amdgpu: disable ring_muxer if mcbp is off

Using the ring_muxer without preemption adds overhead for no
reason since mcbp cannot be triggered.

Moving back to a single queue in this case also helps when
high priority app are used: in this case the gpu_scheduler
priority handling will work as expected - much better than
ring_muxer with its 2 independant schedulers competing for
the same hardware queue.

This change requires moving amdgpu_device_set_mcbp above
amdgpu_device_ip_early_init because we use adev->gfx.mcbp.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c