Skip to contentSkip to conversation

drm/nouveau/pmu: fix timeout on GP108

PATCH Superseded Diego Viola 1 participant 1 message Feb 14, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/pmu: fix timeout on GP108

This code times out on GP108, probably because the BIOS puts it into a bad state.

Since we reset the PMU on driver load anyway, we are at no risk from missing a response from it since we are not waiting for one to begin with.

---
 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c +0 -4
index a0fe607c9c07..4f02c4f14f04 100644
@@ -104,10 +104,6 @@ nvkm_pmu_reset(struct nvkm_pmu *pmu)
 
 	/* Inhibit interrupts, and wait for idle. */
 	nvkm_wr32(device, 0x10a014, 0x0000ffff);
-	nvkm_msec(device, 2000,
-		if (!nvkm_rd32(device, 0x10a04c))
-			break;
-	);
 
 	/* Reset. */
 	if (pmu->func->reset)
Signature · 1 line
2.30.1