drm/msm: ratelimit error irq msgs
authorRob Clark <robdclark@gmail.com>
Wed, 2 Dec 2015 19:40:44 +0000 (14:40 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 14 Dec 2015 16:49:52 +0000 (11:49 -0500)
When things go bad and don't recover, we can be getting an err irq every
vblank.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c

index 5ed38cf548a1248a2e9188aa44ce9f488dba58aa..a521207db8a1532e0c4fd2718cd3ca324394085f 100644 (file)
@@ -29,7 +29,7 @@ void mdp4_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask,
 
 static void mdp4_irq_error_handler(struct mdp_irq *irq, uint32_t irqstatus)
 {
-       DRM_ERROR("errors: %08x\n", irqstatus);
+       DRM_ERROR_RATELIMITED("errors: %08x\n", irqstatus);
 }
 
 void mdp4_irq_preinstall(struct msm_kms *kms)
index b0d4b53b97f4c2f045e37c17324b58b5984042f0..73bc3e312fd415619b628bb24d8abb4e33bde49a 100644 (file)
@@ -31,7 +31,7 @@ void mdp5_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask,
 
 static void mdp5_irq_error_handler(struct mdp_irq *irq, uint32_t irqstatus)
 {
-       DRM_ERROR("errors: %08x\n", irqstatus);
+       DRM_ERROR_RATELIMITED("errors: %08x\n", irqstatus);
 }
 
 void mdp5_irq_preinstall(struct msm_kms *kms)