drm/amdgpu: add debugfs interface for reading MQDs
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Mar 2023 17:59:13 +0000 (13:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:36:45 +0000 (18:36 -0400)
commit445d85e3c1dfd8c45b24be6f1527f1e117256d0e
tree43a2e342c342c5c5ea7a9eb484c5754fb1b6f2bb
parentb185c31847856d9fa3008f727a824db163df0801
drm/amdgpu: add debugfs interface for reading MQDs

Provide a debugfs interface to access the MQD.  Useful for
debugging issues with the CP and MES hardware scheduler.

v2: fix missing unreserve/unmap when pos >= size (Alex)

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c