From: Dave Airlie <[email protected]>
The initial fix from 2017 wasn't updated for modern nouveau devinit
disable paths.
Fix that and just check if display exists instead.
Fixes: 2139cb633d48 ("drm/nouveau/devinit/gf100-: try to avoid double-running
vbios scripts")
Signed-off-by: Dave Airlie <[email protected]>
---
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
index 186e09ea0cb1..b256404c2454 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c
@@ -107,12 +107,12 @@ gf100_devinit_preinit(struct nvkm_devinit *base)
* VBIOS multiple times may have detrimental effects.
*/
if (base->post) {
- u64 disable = nvkm_devinit_disable(base);
+ nvkm_devinit_disable(base);
/* magic to detect whether or not x86 vbios code has
* executed the devinit scripts to initialise the
* board. only works if there's a display engine.
*/
- if (!(disable & (1ULL << NVKM_ENGINE_DISP))) {
+ if (device->disp) {
if (nvkm_rdvgac(device, 0, 0x00) ||
nvkm_rdvgac(device, 0, 0x1a)) {
base->post = false;
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-nouveau-fix-disp-62f59fd96fee
Best regards,
--
Dave Airlie <[email protected]>