]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Describe all object placements in debugfs
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 6 May 2024 16:59:57 +0000 (17:59 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:38 +0000 (17:40 -0400)
Accurately show all placements when describing objects in debugfs, instead
of bunching them up under the 'CPU' placement.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 086027a7066c863180dcbf8919f31a5a3a524da4..e44db1ee9c1df9681011497d8d0b3aa4a52b5770 100644 (file)
@@ -1611,6 +1611,21 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m)
                case TTM_PL_TT:
                        placement = "GTT";
                        break;
+               case AMDGPU_PL_GDS:
+                       placement = "GDS";
+                       break;
+               case AMDGPU_PL_GWS:
+                       placement = "GWS";
+                       break;
+               case AMDGPU_PL_OA:
+                       placement = "OA";
+                       break;
+               case AMDGPU_PL_PREEMPT:
+                       placement = "PREEMPTIBLE";
+                       break;
+               case AMDGPU_PL_DOORBELL:
+                       placement = "DOORBELL";
+                       break;
                case TTM_PL_SYSTEM:
                default:
                        placement = "CPU";