From: Ben Skeggs Date: Sun, 25 Jul 2010 23:11:04 +0000 (+1000) Subject: drm/nv50: correct wait condition for instmem flush X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf563a6b7c7efb283dd4ddf12cc90c2898195c16;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/nv50: correct wait condition for instmem flush Reported-by: Marcin Koƛcielnicki Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c index 2ed893cbff69..37c7b48ab24a 100644 --- a/drivers/gpu/drm/nouveau/nv50_instmem.c +++ b/drivers/gpu/drm/nouveau/nv50_instmem.c @@ -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"); }