diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2020-12-16 12:42:01 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2021-01-22 12:33:57 +0100 |
commit | 1ff79a4a49c239dedd67a12a16a8c3a8b53cf838 (patch) | |
tree | 8a5d684c5266e2f0da692dc348ddd53433b424bc /drivers/gpu/drm/etnaviv | |
parent | Linux 5.10-rc1 (diff) | |
download | linux-1ff79a4a49c239dedd67a12a16a8c3a8b53cf838.tar.xz linux-1ff79a4a49c239dedd67a12a16a8c3a8b53cf838.zip |
drm/etnaviv: provide more ID values via GET_PARAM ioctl.
Make it possible for the user space to access these ID values.
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')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index c6404b8d067f..ec16991ba8b6 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -156,6 +156,18 @@ int etnaviv_gpu_get_param(struct etnaviv_gpu *gpu, u32 param, u64 *value) *value = ~0ULL; break; + case ETNAVIV_PARAM_GPU_PRODUCT_ID: + *value = gpu->identity.product_id; + break; + + case ETNAVIV_PARAM_GPU_CUSTOMER_ID: + *value = gpu->identity.customer_id; + break; + + case ETNAVIV_PARAM_GPU_ECO_ID: + *value = gpu->identity.eco_id; + break; + default: DBG("%s: invalid param: %u", dev_name(gpu->dev), param); return -EINVAL; |