Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf563a6b authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nv50: correct wait condition for instmem flush

parent c04c5b1d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -487,7 +487,7 @@ void
nv50_instmem_flush(struct drm_device *dev)
{
	nv_wr32(dev, 0x00330c, 0x00000001);
	if (!nv_wait(0x00330c, 0x00000001, 0x00000000))
	if (!nv_wait(0x00330c, 0x00000002, 0x00000000))
		NV_ERROR(dev, "PRAMIN flush timeout\n");
}

@@ -495,7 +495,7 @@ void
nv84_instmem_flush(struct drm_device *dev)
{
	nv_wr32(dev, 0x070000, 0x00000001);
	if (!nv_wait(0x070000, 0x00000001, 0x00000000))
	if (!nv_wait(0x070000, 0x00000002, 0x00000000))
		NV_ERROR(dev, "PRAMIN flush timeout\n");
}