diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2020-01-06 18:16:48 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2020-02-26 18:20:04 +0300 |
commit | 000806631d2a0bc914ffcf2a72aeb6dd59c7fc11 (patch) | |
tree | dff92774848e530611017d73845f616724c0efb8 /drivers/gpu/drm/etnaviv/etnaviv_gpu.c | |
parent | 815e45bbd4d3b00ddb2af017fbdab25110ed13a4 (diff) | |
download | linux-000806631d2a0bc914ffcf2a72aeb6dd59c7fc11.tar.xz |
drm/etnaviv: show identity information in debugfs
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gpu.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 56b80ef21bec..f7b2f3a36a86 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -860,6 +860,13 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m) verify_dma(gpu, &debug); + seq_puts(m, "\tidentity\n"); + seq_printf(m, "\t model: 0x%x\n", gpu->identity.model); + seq_printf(m, "\t revision: 0x%x\n", gpu->identity.revision); + seq_printf(m, "\t product_id: 0x%x\n", gpu->identity.product_id); + seq_printf(m, "\t customer_id: 0x%x\n", gpu->identity.customer_id); + seq_printf(m, "\t eco_id: 0x%x\n", gpu->identity.eco_id); + seq_puts(m, "\tfeatures\n"); seq_printf(m, "\t major_features: 0x%08x\n", gpu->identity.features); |