diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-09-07 11:34:44 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 02:25:36 -0400 |
commit | 4b5c152a79d512803ea525b0878ccef627cd1629 (patch) | |
tree | ea046ac2be1e30a4e08c7ece4b8e1c787aa0ef42 /drivers | |
parent | 35fd5b42f035c795bd9c6649591f59b500cb62b3 (diff) |
drm/nouveau: Remove implicit argument from nv_wait().
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dp.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_cursor.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_dac.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 19 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_graph.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_instmem.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_sor.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_instmem.c | 2 |
10 files changed, 24 insertions, 22 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index 8a1b188b4cd1..89ca1f6851a0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c | |||
@@ -524,7 +524,8 @@ nouveau_dp_auxch(struct nouveau_i2c_chan *auxch, int cmd, int addr, | |||
524 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl | 0x80000000); | 524 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl | 0x80000000); |
525 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl); | 525 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl); |
526 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl | 0x00010000); | 526 | nv_wr32(dev, NV50_AUXCH_CTRL(index), ctrl | 0x00010000); |
527 | if (!nv_wait(NV50_AUXCH_CTRL(index), 0x00010000, 0x00000000)) { | 527 | if (!nv_wait(dev, NV50_AUXCH_CTRL(index), |
528 | 0x00010000, 0x00000000)) { | ||
528 | NV_ERROR(dev, "expected bit 16 == 0, got 0x%08x\n", | 529 | NV_ERROR(dev, "expected bit 16 == 0, got 0x%08x\n", |
529 | nv_rd32(dev, NV50_AUXCH_CTRL(index))); | 530 | nv_rd32(dev, NV50_AUXCH_CTRL(index))); |
530 | ret = -EBUSY; | 531 | ret = -EBUSY; |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index cc1892cce6cd..6313ba4fcdcd 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
@@ -1252,7 +1252,7 @@ static inline void nv_wr08(struct drm_device *dev, unsigned reg, u8 val) | |||
1252 | iowrite8(val, dev_priv->mmio + reg); | 1252 | iowrite8(val, dev_priv->mmio + reg); |
1253 | } | 1253 | } |
1254 | 1254 | ||
1255 | #define nv_wait(reg, mask, val) \ | 1255 | #define nv_wait(dev, reg, mask, val) \ |
1256 | nouveau_wait_until(dev, 2000000000ULL, (reg), (mask), (val)) | 1256 | nouveau_wait_until(dev, 2000000000ULL, (reg), (mask), (val)) |
1257 | 1257 | ||
1258 | /* PRAMIN access */ | 1258 | /* PRAMIN access */ |
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 19eb06dca899..9a4bf4442924 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -1044,7 +1044,7 @@ bool nouveau_wait_until(struct drm_device *dev, uint64_t timeout, | |||
1044 | /* Waits for PGRAPH to go completely idle */ | 1044 | /* Waits for PGRAPH to go completely idle */ |
1045 | bool nouveau_wait_for_idle(struct drm_device *dev) | 1045 | bool nouveau_wait_for_idle(struct drm_device *dev) |
1046 | { | 1046 | { |
1047 | if (!nv_wait(NV04_PGRAPH_STATUS, 0xffffffff, 0x00000000)) { | 1047 | if (!nv_wait(dev, NV04_PGRAPH_STATUS, 0xffffffff, 0x00000000)) { |
1048 | NV_ERROR(dev, "PGRAPH idle timed out with status 0x%08x\n", | 1048 | NV_ERROR(dev, "PGRAPH idle timed out with status 0x%08x\n", |
1049 | nv_rd32(dev, NV04_PGRAPH_STATUS)); | 1049 | nv_rd32(dev, NV04_PGRAPH_STATUS)); |
1050 | return false; | 1050 | return false; |
diff --git a/drivers/gpu/drm/nouveau/nv50_cursor.c b/drivers/gpu/drm/nouveau/nv50_cursor.c index 03ad7ab14f09..1b9ce3021aa3 100644 --- a/drivers/gpu/drm/nouveau/nv50_cursor.c +++ b/drivers/gpu/drm/nouveau/nv50_cursor.c | |||
@@ -147,7 +147,7 @@ nv50_cursor_fini(struct nouveau_crtc *nv_crtc) | |||
147 | NV_DEBUG_KMS(dev, "\n"); | 147 | NV_DEBUG_KMS(dev, "\n"); |
148 | 148 | ||
149 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(idx), 0); | 149 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(idx), 0); |
150 | if (!nv_wait(NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(idx), | 150 | if (!nv_wait(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(idx), |
151 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, 0)) { | 151 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, 0)) { |
152 | NV_ERROR(dev, "timeout: CURSOR_CTRL2_STATUS == 0\n"); | 152 | NV_ERROR(dev, "timeout: CURSOR_CTRL2_STATUS == 0\n"); |
153 | NV_ERROR(dev, "CURSOR_CTRL2 = 0x%08x\n", | 153 | NV_ERROR(dev, "CURSOR_CTRL2 = 0x%08x\n", |
diff --git a/drivers/gpu/drm/nouveau/nv50_dac.c b/drivers/gpu/drm/nouveau/nv50_dac.c index 1bc085962945..875414b09ade 100644 --- a/drivers/gpu/drm/nouveau/nv50_dac.c +++ b/drivers/gpu/drm/nouveau/nv50_dac.c | |||
@@ -79,7 +79,7 @@ nv50_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector) | |||
79 | 79 | ||
80 | nv_wr32(dev, NV50_PDISPLAY_DAC_DPMS_CTRL(or), | 80 | nv_wr32(dev, NV50_PDISPLAY_DAC_DPMS_CTRL(or), |
81 | 0x00150000 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING); | 81 | 0x00150000 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING); |
82 | if (!nv_wait(NV50_PDISPLAY_DAC_DPMS_CTRL(or), | 82 | if (!nv_wait(dev, NV50_PDISPLAY_DAC_DPMS_CTRL(or), |
83 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING, 0)) { | 83 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING, 0)) { |
84 | NV_ERROR(dev, "timeout: DAC_DPMS_CTRL_PENDING(%d) == 0\n", or); | 84 | NV_ERROR(dev, "timeout: DAC_DPMS_CTRL_PENDING(%d) == 0\n", or); |
85 | NV_ERROR(dev, "DAC_DPMS_CTRL(%d) = 0x%08x\n", or, | 85 | NV_ERROR(dev, "DAC_DPMS_CTRL(%d) = 0x%08x\n", or, |
@@ -130,7 +130,7 @@ nv50_dac_dpms(struct drm_encoder *encoder, int mode) | |||
130 | NV_DEBUG_KMS(dev, "or %d mode %d\n", or, mode); | 130 | NV_DEBUG_KMS(dev, "or %d mode %d\n", or, mode); |
131 | 131 | ||
132 | /* wait for it to be done */ | 132 | /* wait for it to be done */ |
133 | if (!nv_wait(NV50_PDISPLAY_DAC_DPMS_CTRL(or), | 133 | if (!nv_wait(dev, NV50_PDISPLAY_DAC_DPMS_CTRL(or), |
134 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING, 0)) { | 134 | NV50_PDISPLAY_DAC_DPMS_CTRL_PENDING, 0)) { |
135 | NV_ERROR(dev, "timeout: DAC_DPMS_CTRL_PENDING(%d) == 0\n", or); | 135 | NV_ERROR(dev, "timeout: DAC_DPMS_CTRL_PENDING(%d) == 0\n", or); |
136 | NV_ERROR(dev, "DAC_DPMS_CTRL(%d) = 0x%08x\n", or, | 136 | NV_ERROR(dev, "DAC_DPMS_CTRL(%d) = 0x%08x\n", or, |
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index c11a2fa43c7f..11d366ad4036 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
@@ -279,7 +279,7 @@ nv50_display_init(struct drm_device *dev) | |||
279 | if (nv_rd32(dev, NV50_PDISPLAY_INTR_1) & 0x100) { | 279 | if (nv_rd32(dev, NV50_PDISPLAY_INTR_1) & 0x100) { |
280 | nv_wr32(dev, NV50_PDISPLAY_INTR_1, 0x100); | 280 | nv_wr32(dev, NV50_PDISPLAY_INTR_1, 0x100); |
281 | nv_wr32(dev, 0x006194e8, nv_rd32(dev, 0x006194e8) & ~1); | 281 | nv_wr32(dev, 0x006194e8, nv_rd32(dev, 0x006194e8) & ~1); |
282 | if (!nv_wait(0x006194e8, 2, 0)) { | 282 | if (!nv_wait(dev, 0x006194e8, 2, 0)) { |
283 | NV_ERROR(dev, "timeout: (0x6194e8 & 2) != 0\n"); | 283 | NV_ERROR(dev, "timeout: (0x6194e8 & 2) != 0\n"); |
284 | NV_ERROR(dev, "0x6194e8 = 0x%08x\n", | 284 | NV_ERROR(dev, "0x6194e8 = 0x%08x\n", |
285 | nv_rd32(dev, 0x6194e8)); | 285 | nv_rd32(dev, 0x6194e8)); |
@@ -310,7 +310,8 @@ nv50_display_init(struct drm_device *dev) | |||
310 | 310 | ||
311 | nv_wr32(dev, NV50_PDISPLAY_CTRL_STATE, NV50_PDISPLAY_CTRL_STATE_ENABLE); | 311 | nv_wr32(dev, NV50_PDISPLAY_CTRL_STATE, NV50_PDISPLAY_CTRL_STATE_ENABLE); |
312 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_STAT(0), 0x1000b03); | 312 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_STAT(0), 0x1000b03); |
313 | if (!nv_wait(NV50_PDISPLAY_CHANNEL_STAT(0), 0x40000000, 0x40000000)) { | 313 | if (!nv_wait(dev, NV50_PDISPLAY_CHANNEL_STAT(0), |
314 | 0x40000000, 0x40000000)) { | ||
314 | NV_ERROR(dev, "timeout: (0x610200 & 0x40000000) == 0x40000000\n"); | 315 | NV_ERROR(dev, "timeout: (0x610200 & 0x40000000) == 0x40000000\n"); |
315 | NV_ERROR(dev, "0x610200 = 0x%08x\n", | 316 | NV_ERROR(dev, "0x610200 = 0x%08x\n", |
316 | nv_rd32(dev, NV50_PDISPLAY_CHANNEL_STAT(0))); | 317 | nv_rd32(dev, NV50_PDISPLAY_CHANNEL_STAT(0))); |
@@ -319,7 +320,7 @@ nv50_display_init(struct drm_device *dev) | |||
319 | 320 | ||
320 | for (i = 0; i < 2; i++) { | 321 | for (i = 0; i < 2; i++) { |
321 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), 0x2000); | 322 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), 0x2000); |
322 | if (!nv_wait(NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), | 323 | if (!nv_wait(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), |
323 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, 0)) { | 324 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, 0)) { |
324 | NV_ERROR(dev, "timeout: CURSOR_CTRL2_STATUS == 0\n"); | 325 | NV_ERROR(dev, "timeout: CURSOR_CTRL2_STATUS == 0\n"); |
325 | NV_ERROR(dev, "CURSOR_CTRL2 = 0x%08x\n", | 326 | NV_ERROR(dev, "CURSOR_CTRL2 = 0x%08x\n", |
@@ -329,7 +330,7 @@ nv50_display_init(struct drm_device *dev) | |||
329 | 330 | ||
330 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), | 331 | nv_wr32(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), |
331 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_ON); | 332 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_ON); |
332 | if (!nv_wait(NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), | 333 | if (!nv_wait(dev, NV50_PDISPLAY_CURSOR_CURSOR_CTRL2(i), |
333 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, | 334 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS, |
334 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS_ACTIVE)) { | 335 | NV50_PDISPLAY_CURSOR_CURSOR_CTRL2_STATUS_ACTIVE)) { |
335 | NV_ERROR(dev, "timeout: " | 336 | NV_ERROR(dev, "timeout: " |
@@ -349,7 +350,7 @@ nv50_display_init(struct drm_device *dev) | |||
349 | NV50_PDISPLAY_CHANNEL_DMA_CB_VALID); | 350 | NV50_PDISPLAY_CHANNEL_DMA_CB_VALID); |
350 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_UNK2(0), 0x00010000); | 351 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_UNK2(0), 0x00010000); |
351 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_UNK3(0), 0x00000002); | 352 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_UNK3(0), 0x00000002); |
352 | if (!nv_wait(0x610200, 0x80000000, 0x00000000)) { | 353 | if (!nv_wait(dev, 0x610200, 0x80000000, 0x00000000)) { |
353 | NV_ERROR(dev, "timeout: (0x610200 & 0x80000000) == 0\n"); | 354 | NV_ERROR(dev, "timeout: (0x610200 & 0x80000000) == 0\n"); |
354 | NV_ERROR(dev, "0x610200 = 0x%08x\n", nv_rd32(dev, 0x610200)); | 355 | NV_ERROR(dev, "0x610200 = 0x%08x\n", nv_rd32(dev, 0x610200)); |
355 | return -EBUSY; | 356 | return -EBUSY; |
@@ -389,7 +390,7 @@ nv50_display_init(struct drm_device *dev) | |||
389 | BEGIN_RING(evo, 0, NV50_EVO_CRTC(0, UNK082C), 1); | 390 | BEGIN_RING(evo, 0, NV50_EVO_CRTC(0, UNK082C), 1); |
390 | OUT_RING(evo, 0); | 391 | OUT_RING(evo, 0); |
391 | FIRE_RING(evo); | 392 | FIRE_RING(evo); |
392 | if (!nv_wait(0x640004, 0xffffffff, evo->dma.put << 2)) | 393 | if (!nv_wait(dev, 0x640004, 0xffffffff, evo->dma.put << 2)) |
393 | NV_ERROR(dev, "evo pushbuf stalled\n"); | 394 | NV_ERROR(dev, "evo pushbuf stalled\n"); |
394 | 395 | ||
395 | /* enable clock change interrupts. */ | 396 | /* enable clock change interrupts. */ |
@@ -443,7 +444,7 @@ static int nv50_display_disable(struct drm_device *dev) | |||
443 | continue; | 444 | continue; |
444 | 445 | ||
445 | nv_wr32(dev, NV50_PDISPLAY_INTR_1, mask); | 446 | nv_wr32(dev, NV50_PDISPLAY_INTR_1, mask); |
446 | if (!nv_wait(NV50_PDISPLAY_INTR_1, mask, mask)) { | 447 | if (!nv_wait(dev, NV50_PDISPLAY_INTR_1, mask, mask)) { |
447 | NV_ERROR(dev, "timeout: (0x610024 & 0x%08x) == " | 448 | NV_ERROR(dev, "timeout: (0x610024 & 0x%08x) == " |
448 | "0x%08x\n", mask, mask); | 449 | "0x%08x\n", mask, mask); |
449 | NV_ERROR(dev, "0x610024 = 0x%08x\n", | 450 | NV_ERROR(dev, "0x610024 = 0x%08x\n", |
@@ -453,14 +454,14 @@ static int nv50_display_disable(struct drm_device *dev) | |||
453 | 454 | ||
454 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_STAT(0), 0); | 455 | nv_wr32(dev, NV50_PDISPLAY_CHANNEL_STAT(0), 0); |
455 | nv_wr32(dev, NV50_PDISPLAY_CTRL_STATE, 0); | 456 | nv_wr32(dev, NV50_PDISPLAY_CTRL_STATE, 0); |
456 | if (!nv_wait(NV50_PDISPLAY_CHANNEL_STAT(0), 0x1e0000, 0)) { | 457 | if (!nv_wait(dev, NV50_PDISPLAY_CHANNEL_STAT(0), 0x1e0000, 0)) { |
457 | NV_ERROR(dev, "timeout: (0x610200 & 0x1e0000) == 0\n"); | 458 | NV_ERROR(dev, "timeout: (0x610200 & 0x1e0000) == 0\n"); |
458 | NV_ERROR(dev, "0x610200 = 0x%08x\n", | 459 | NV_ERROR(dev, "0x610200 = 0x%08x\n", |
459 | nv_rd32(dev, NV50_PDISPLAY_CHANNEL_STAT(0))); | 460 | nv_rd32(dev, NV50_PDISPLAY_CHANNEL_STAT(0))); |
460 | } | 461 | } |
461 | 462 | ||
462 | for (i = 0; i < 3; i++) { | 463 | for (i = 0; i < 3; i++) { |
463 | if (!nv_wait(NV50_PDISPLAY_SOR_DPMS_STATE(i), | 464 | if (!nv_wait(dev, NV50_PDISPLAY_SOR_DPMS_STATE(i), |
464 | NV50_PDISPLAY_SOR_DPMS_STATE_WAIT, 0)) { | 465 | NV50_PDISPLAY_SOR_DPMS_STATE_WAIT, 0)) { |
465 | NV_ERROR(dev, "timeout: SOR_DPMS_STATE_WAIT(%d) == 0\n", i); | 466 | NV_ERROR(dev, "timeout: SOR_DPMS_STATE_WAIT(%d) == 0\n", i); |
466 | NV_ERROR(dev, "SOR_DPMS_STATE(%d) = 0x%08x\n", i, | 467 | NV_ERROR(dev, "SOR_DPMS_STATE(%d) = 0x%08x\n", i, |
diff --git a/drivers/gpu/drm/nouveau/nv50_graph.c b/drivers/gpu/drm/nouveau/nv50_graph.c index 7db0d627c1b9..cbf5ae2f67d4 100644 --- a/drivers/gpu/drm/nouveau/nv50_graph.c +++ b/drivers/gpu/drm/nouveau/nv50_graph.c | |||
@@ -181,7 +181,7 @@ nv50_graph_channel(struct drm_device *dev) | |||
181 | /* Be sure we're not in the middle of a context switch or bad things | 181 | /* Be sure we're not in the middle of a context switch or bad things |
182 | * will happen, such as unloading the wrong pgraph context. | 182 | * will happen, such as unloading the wrong pgraph context. |
183 | */ | 183 | */ |
184 | if (!nv_wait(0x400300, 0x00000001, 0x00000000)) | 184 | if (!nv_wait(dev, 0x400300, 0x00000001, 0x00000000)) |
185 | NV_ERROR(dev, "Ctxprog is still running\n"); | 185 | NV_ERROR(dev, "Ctxprog is still running\n"); |
186 | 186 | ||
187 | inst = nv_rd32(dev, NV50_PGRAPH_CTXCTL_CUR); | 187 | inst = nv_rd32(dev, NV50_PGRAPH_CTXCTL_CUR); |
diff --git a/drivers/gpu/drm/nouveau/nv50_instmem.c b/drivers/gpu/drm/nouveau/nv50_instmem.c index 2e0aaf971b2f..bb73c67e23b5 100644 --- a/drivers/gpu/drm/nouveau/nv50_instmem.c +++ b/drivers/gpu/drm/nouveau/nv50_instmem.c | |||
@@ -439,7 +439,7 @@ void | |||
439 | nv50_instmem_flush(struct drm_device *dev) | 439 | nv50_instmem_flush(struct drm_device *dev) |
440 | { | 440 | { |
441 | nv_wr32(dev, 0x00330c, 0x00000001); | 441 | nv_wr32(dev, 0x00330c, 0x00000001); |
442 | if (!nv_wait(0x00330c, 0x00000002, 0x00000000)) | 442 | if (!nv_wait(dev, 0x00330c, 0x00000002, 0x00000000)) |
443 | NV_ERROR(dev, "PRAMIN flush timeout\n"); | 443 | NV_ERROR(dev, "PRAMIN flush timeout\n"); |
444 | } | 444 | } |
445 | 445 | ||
@@ -447,7 +447,7 @@ void | |||
447 | nv84_instmem_flush(struct drm_device *dev) | 447 | nv84_instmem_flush(struct drm_device *dev) |
448 | { | 448 | { |
449 | nv_wr32(dev, 0x070000, 0x00000001); | 449 | nv_wr32(dev, 0x070000, 0x00000001); |
450 | if (!nv_wait(0x070000, 0x00000002, 0x00000000)) | 450 | if (!nv_wait(dev, 0x070000, 0x00000002, 0x00000000)) |
451 | NV_ERROR(dev, "PRAMIN flush timeout\n"); | 451 | NV_ERROR(dev, "PRAMIN flush timeout\n"); |
452 | } | 452 | } |
453 | 453 | ||
@@ -455,7 +455,7 @@ void | |||
455 | nv50_vm_flush(struct drm_device *dev, int engine) | 455 | nv50_vm_flush(struct drm_device *dev, int engine) |
456 | { | 456 | { |
457 | nv_wr32(dev, 0x100c80, (engine << 16) | 1); | 457 | nv_wr32(dev, 0x100c80, (engine << 16) | 1); |
458 | if (!nv_wait(0x100c80, 0x00000001, 0x00000000)) | 458 | if (!nv_wait(dev, 0x100c80, 0x00000001, 0x00000000)) |
459 | NV_ERROR(dev, "vm flush timeout: engine %d\n", engine); | 459 | NV_ERROR(dev, "vm flush timeout: engine %d\n", engine); |
460 | } | 460 | } |
461 | 461 | ||
diff --git a/drivers/gpu/drm/nouveau/nv50_sor.c b/drivers/gpu/drm/nouveau/nv50_sor.c index bcd4cf84a7e6..b4a5ecb199f9 100644 --- a/drivers/gpu/drm/nouveau/nv50_sor.c +++ b/drivers/gpu/drm/nouveau/nv50_sor.c | |||
@@ -92,7 +92,7 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | /* wait for it to be done */ | 94 | /* wait for it to be done */ |
95 | if (!nv_wait(NV50_PDISPLAY_SOR_DPMS_CTRL(or), | 95 | if (!nv_wait(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or), |
96 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING, 0)) { | 96 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING, 0)) { |
97 | NV_ERROR(dev, "timeout: SOR_DPMS_CTRL_PENDING(%d) == 0\n", or); | 97 | NV_ERROR(dev, "timeout: SOR_DPMS_CTRL_PENDING(%d) == 0\n", or); |
98 | NV_ERROR(dev, "SOR_DPMS_CTRL(%d) = 0x%08x\n", or, | 98 | NV_ERROR(dev, "SOR_DPMS_CTRL(%d) = 0x%08x\n", or, |
@@ -108,7 +108,7 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode) | |||
108 | 108 | ||
109 | nv_wr32(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or), val | | 109 | nv_wr32(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or), val | |
110 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING); | 110 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING); |
111 | if (!nv_wait(NV50_PDISPLAY_SOR_DPMS_STATE(or), | 111 | if (!nv_wait(dev, NV50_PDISPLAY_SOR_DPMS_STATE(or), |
112 | NV50_PDISPLAY_SOR_DPMS_STATE_WAIT, 0)) { | 112 | NV50_PDISPLAY_SOR_DPMS_STATE_WAIT, 0)) { |
113 | NV_ERROR(dev, "timeout: SOR_DPMS_STATE_WAIT(%d) == 0\n", or); | 113 | NV_ERROR(dev, "timeout: SOR_DPMS_STATE_WAIT(%d) == 0\n", or); |
114 | NV_ERROR(dev, "SOR_DPMS_STATE(%d) = 0x%08x\n", or, | 114 | NV_ERROR(dev, "SOR_DPMS_STATE(%d) = 0x%08x\n", or, |
diff --git a/drivers/gpu/drm/nouveau/nvc0_instmem.c b/drivers/gpu/drm/nouveau/nvc0_instmem.c index 595540975637..6a41d644e044 100644 --- a/drivers/gpu/drm/nouveau/nvc0_instmem.c +++ b/drivers/gpu/drm/nouveau/nvc0_instmem.c | |||
@@ -133,7 +133,7 @@ void | |||
133 | nvc0_instmem_flush(struct drm_device *dev) | 133 | nvc0_instmem_flush(struct drm_device *dev) |
134 | { | 134 | { |
135 | nv_wr32(dev, 0x070000, 1); | 135 | nv_wr32(dev, 0x070000, 1); |
136 | if (!nv_wait(0x070000, 0x00000002, 0x00000000)) | 136 | if (!nv_wait(dev, 0x070000, 0x00000002, 0x00000000)) |
137 | NV_ERROR(dev, "PRAMIN flush timeout\n"); | 137 | NV_ERROR(dev, "PRAMIN flush timeout\n"); |
138 | } | 138 | } |
139 | 139 | ||