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

Alex Deucher alexdeucher at gmail.com
Fri Apr 17 21:27:13 UTC 2020


On Fri, Apr 17, 2020 at 4:45 PM Yong Zhao <Yong.Zhao at amd.com> wrote:
>
> This is convenient for multiple teams to obtain the information.
>
> Signed-off-by: Yong Zhao <Yong.Zhao at amd.com>
> ---
>  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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list