]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/nouveau/bios: specify correct display fuse register for Ampere and Ada
authorTimur Tabi <ttabi@nvidia.com>
Thu, 30 Apr 2026 22:38:35 +0000 (17:38 -0500)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 28 May 2026 17:30:15 +0000 (19:30 +0200)
commitc1cf2d5db80ce91a85855bbaf4da85ff603e089a
tree05242067194864a4b6fa881c2e1fc1bd47dcafe7
parent16d4747cd152861fef8d5323c6c1d3ed96c3d102
drm/nouveau/bios: specify correct display fuse register for Ampere and Ada

The NV_FUSE_STATUS_OPT_DISPLAY register is used to determine whether
the GPU has display hardware.  The current code that normally reads
this register is instead hard-coded to check for GA100 vs later GPUs.
Since this function is called only on pre-Hopper GPUs, and this
if-statement applies only to GA100 and later, the check works
because GA100 is the only non-display Ampere and Ada GPU.

However, there actually is a register that can be read, so we should
use it.

Fixes: a34632482f1e ("drm/nouveau/bios/ga10[024]: initial support")
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20260430223838.2530778-8-ttabi@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c