]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: Add CU info print log
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 11 Dec 2019 23:04:05 +0000 (18:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:06 +0000 (16:09 -0500)
The log will be useful for easily getting the CU info on various
emulation models or ASICs.

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

index a979468780248bb4794da4ad469e96c901318eea..f34017538adb3dd3810ff592d5004f74fe0fb769 100644 (file)
@@ -3029,6 +3029,12 @@ int amdgpu_device_init(struct amdgpu_device *adev,
                goto failed;
        }
 
+       DRM_DEBUG("SE %d, SH per SE %d, CU per SH %d, active_cu_number %d\n",
+                       adev->gfx.config.max_shader_engines,
+                       adev->gfx.config.max_sh_per_se,
+                       adev->gfx.config.max_cu_per_sh,
+                       adev->gfx.cu_info.number);
+
        adev->accel_working = true;
 
        amdgpu_vm_check_compute_bug(adev);