aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/i915_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/i915_irq.c')
-rw-r--r--drivers/char/drm/i915_irq.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index b273fe4e1345..92653b38e64c 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -276,7 +276,7 @@ static int i915_emit_irq(struct drm_device * dev)
276 276
277 i915_kernel_lost_context(dev); 277 i915_kernel_lost_context(dev);
278 278
279 DRM_DEBUG("%s\n", __FUNCTION__); 279 DRM_DEBUG("\n");
280 280
281 dev_priv->sarea_priv->last_enqueue = ++dev_priv->counter; 281 dev_priv->sarea_priv->last_enqueue = ++dev_priv->counter;
282 282
@@ -300,7 +300,7 @@ static int i915_wait_irq(struct drm_device * dev, int irq_nr)
300 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 300 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
301 int ret = 0; 301 int ret = 0;
302 302
303 DRM_DEBUG("%s irq_nr=%d breadcrumb=%d\n", __FUNCTION__, irq_nr, 303 DRM_DEBUG("irq_nr=%d breadcrumb=%d\n", irq_nr,
304 READ_BREADCRUMB(dev_priv)); 304 READ_BREADCRUMB(dev_priv));
305 305
306 if (READ_BREADCRUMB(dev_priv) >= irq_nr) 306 if (READ_BREADCRUMB(dev_priv) >= irq_nr)
@@ -312,8 +312,7 @@ static int i915_wait_irq(struct drm_device * dev, int irq_nr)
312 READ_BREADCRUMB(dev_priv) >= irq_nr); 312 READ_BREADCRUMB(dev_priv) >= irq_nr);
313 313
314 if (ret == -EBUSY) { 314 if (ret == -EBUSY) {
315 DRM_ERROR("%s: EBUSY -- rec: %d emitted: %d\n", 315 DRM_ERROR("EBUSY -- rec: %d emitted: %d\n",
316 __FUNCTION__,
317 READ_BREADCRUMB(dev_priv), (int)dev_priv->counter); 316 READ_BREADCRUMB(dev_priv), (int)dev_priv->counter);
318 } 317 }
319 318
@@ -329,7 +328,7 @@ static int i915_driver_vblank_do_wait(struct drm_device *dev, unsigned int *sequ
329 int ret = 0; 328 int ret = 0;
330 329
331 if (!dev_priv) { 330 if (!dev_priv) {
332 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 331 DRM_ERROR("called with no initialization\n");
333 return -EINVAL; 332 return -EINVAL;
334 } 333 }
335 334
@@ -365,7 +364,7 @@ int i915_irq_emit(struct drm_device *dev, void *data,
365 LOCK_TEST_WITH_RETURN(dev, file_priv); 364 LOCK_TEST_WITH_RETURN(dev, file_priv);
366 365
367 if (!dev_priv) { 366 if (!dev_priv) {
368 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 367 DRM_ERROR("called with no initialization\n");
369 return -EINVAL; 368 return -EINVAL;
370 } 369 }
371 370
@@ -388,7 +387,7 @@ int i915_irq_wait(struct drm_device *dev, void *data,
388 drm_i915_irq_wait_t *irqwait = data; 387 drm_i915_irq_wait_t *irqwait = data;
389 388
390 if (!dev_priv) { 389 if (!dev_priv) {
391 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 390 DRM_ERROR("called with no initialization\n");
392 return -EINVAL; 391 return -EINVAL;
393 } 392 }
394 393
@@ -418,13 +417,12 @@ int i915_vblank_pipe_set(struct drm_device *dev, void *data,
418 drm_i915_vblank_pipe_t *pipe = data; 417 drm_i915_vblank_pipe_t *pipe = data;
419 418
420 if (!dev_priv) { 419 if (!dev_priv) {
421 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 420 DRM_ERROR("called with no initialization\n");
422 return -EINVAL; 421 return -EINVAL;
423 } 422 }
424 423
425 if (pipe->pipe & ~(DRM_I915_VBLANK_PIPE_A|DRM_I915_VBLANK_PIPE_B)) { 424 if (pipe->pipe & ~(DRM_I915_VBLANK_PIPE_A|DRM_I915_VBLANK_PIPE_B)) {
426 DRM_ERROR("%s called with invalid pipe 0x%x\n", 425 DRM_ERROR("called with invalid pipe 0x%x\n", pipe->pipe);
427 __FUNCTION__, pipe->pipe);
428 return -EINVAL; 426 return -EINVAL;
429 } 427 }
430 428
@@ -443,7 +441,7 @@ int i915_vblank_pipe_get(struct drm_device *dev, void *data,
443 u16 flag; 441 u16 flag;
444 442
445 if (!dev_priv) { 443 if (!dev_priv) {
446 DRM_ERROR("%s called with no initialization\n", __FUNCTION__); 444 DRM_ERROR("called with no initialization\n");
447 return -EINVAL; 445 return -EINVAL;
448 } 446 }
449 447