summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Zhao <Yong.Zhao@amd.com>2019-12-11 18:04:05 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-12-18 16:09:06 -0500
commitd7f72fe482bfb7f28c00d99be6d96c5ebad6eacf (patch)
tree10ed137bc712abd2ab840d76124180b809c80707
parentad5901df889446dd99ddbb01bb39282a7dbcf581 (diff)
downloadlinux-d7f72fe482bfb7f28c00d99be6d96c5ebad6eacf.tar.bz2
drm/amdgpu: Add CU info print log
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>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index a97946878024..f34017538adb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3029,6 +3029,12 @@ fence_driver_init:
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);