diff mbox series

drm/etnaviv: show number of NN cores in GPU debugfs info

Message ID 20230201152747.1428179-1-l.stach@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series drm/etnaviv: show number of NN cores in GPU debugfs info | expand

Commit Message

Lucas Stach Feb. 1, 2023, 3:27 p.m. UTC
For NPUs the number of NN cores is a interesting property, which is useful
to show in the debugfs information.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tomeu Vizoso Feb. 1, 2023, 3:32 p.m. UTC | #1
On 2/1/23 16:27, Lucas Stach wrote:
> For NPUs the number of NN cores is a interesting property, which is useful
> to show in the debugfs information.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>   drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> index 27c10584773d..de8c9894967c 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> @@ -961,6 +961,8 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m)
>   			gpu->identity.vertex_cache_size);
>   	seq_printf(m, "\t shader_core_count: %d\n",
>   			gpu->identity.shader_core_count);
> +	seq_printf(m, "\t nn_core_count: %d\n",
> +			gpu->identity.nn_core_count);
>   	seq_printf(m, "\t pixel_pipes: %d\n",
>   			gpu->identity.pixel_pipes);
>   	seq_printf(m, "\t vertex_output_buffer_size: %d\n",

Hi Lucas,

That looks good to me.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>

Cheers,

Tomeu
diff mbox series

Patch

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 27c10584773d..de8c9894967c 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -961,6 +961,8 @@  int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m)
 			gpu->identity.vertex_cache_size);
 	seq_printf(m, "\t shader_core_count: %d\n",
 			gpu->identity.shader_core_count);
+	seq_printf(m, "\t nn_core_count: %d\n",
+			gpu->identity.nn_core_count);
 	seq_printf(m, "\t pixel_pipes: %d\n",
 			gpu->identity.pixel_pipes);
 	seq_printf(m, "\t vertex_output_buffer_size: %d\n",