summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/etnaviv
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2022-12-01 13:30:22 +0300
committerLucas Stach <l.stach@pengutronix.de>2023-02-01 18:32:26 +0300
commitd801e6f4e1acca0c578051f2733dda04441e42d0 (patch)
tree06829ec0b078dc46ee9d55283de693689f277dfb /drivers/gpu/drm/etnaviv
parentab3d7b6d48abb61d5354b5b1024e4e11f70eda9d (diff)
downloadlinux-d801e6f4e1acca0c578051f2733dda04441e42d0.tar.xz
drm/etnaviv: Warn when probing on NPUs
Userspace is still not making full use of the hardware, so we don't know yet if changes to the UAPI won't be needed. Warn about it. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 51320eeebfcf..a639cc971e2e 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -773,6 +773,10 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu)
goto fail;
}
+ if (gpu->identity.nn_core_count > 0)
+ dev_warn(gpu->dev, "etnaviv has been instantiated on a NPU, "
+ "for which the UAPI is still experimental\n");
+
/* Exclude VG cores with FE2.0 */
if (gpu->identity.features & chipFeatures_PIPE_VG &&
gpu->identity.features & chipFeatures_FE20) {