Skip to content

Commit d801e6f

Browse files
tomeuvlynxeye-dev
authored andcommitted
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>
1 parent ab3d7b6 commit d801e6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/etnaviv/etnaviv_gpu.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu)
773773
goto fail;
774774
}
775775

776+
if (gpu->identity.nn_core_count > 0)
777+
dev_warn(gpu->dev, "etnaviv has been instantiated on a NPU, "
778+
"for which the UAPI is still experimental\n");
779+
776780
/* Exclude VG cores with FE2.0 */
777781
if (gpu->identity.features & chipFeatures_PIPE_VG &&
778782
gpu->identity.features & chipFeatures_FE20) {

0 commit comments

Comments
 (0)