Re: [PATCH 3/3] drm/amdgpu: Print CU information by default during initialization

2020-04-17 Thread Alex Deucher
On Fri, Apr 17, 2020 at 4:45 PM Yong Zhao  wrote:
>
> This is convenient for multiple teams to obtain the information.
>
> Signed-off-by: Yong Zhao 
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 71ea56e220ae..92b7a1ff1dc1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -3170,7 +3170,7 @@ 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",
> +   DRM_INFO("SE %d, SH per SE %d, CU per SH %d, active_cu_number %d\n",

While you are at it, replace this with pr_info or dev_info.  The
output is more useful with multiple devices in a system.

Alex

> adev->gfx.config.max_shader_engines,
> adev->gfx.config.max_sh_per_se,
> adev->gfx.config.max_cu_per_sh,
> --
> 2.17.1
>
> ___
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[PATCH 3/3] drm/amdgpu: Print CU information by default during initialization

2020-04-17 Thread Yong Zhao
This is convenient for multiple teams to obtain the information.

Signed-off-by: Yong Zhao 
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 71ea56e220ae..92b7a1ff1dc1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3170,7 +3170,7 @@ 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",
+   DRM_INFO("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,
-- 
2.17.1

___
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx