drm/i915: Fix to Enable GT/PM Interrupts for cherryview.
Subsystems (2)
PATCH 1/1 drm/i915: Fix to Enable GT/PM Interrupts for cherryview.
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commit abd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700
drm/i915/bdw: Implement interrupt changes
--- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_irq.c +1 -1
@@ -3812,7 +3812,7 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv)GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS1_IRQ_SHIFT |GT_RENDER_USER_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT |GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT , -0 , + dev_priv->pm_rps_events,GT_RENDER_USER_INTERRUPT <<GEN8_VECS_IRQ_SHIFT | GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT };
Signature · 1 line
1.9.1
Quoted 4 lines · On Thu, Aug 21, 2014 at 01:37:09PM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
True, but...
Quoted 18 lines
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_irq.c +0
-0
drivers/gpu/drm/i915/i915_irq.c static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) · line 3815
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +1
-1@@ -3812,7 +3812,7 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv)GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS1_IRQ_SHIFT |GT_RENDER_USER_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT |GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT , - 0, + dev_priv->pm_rps_events,
.. this would now unmask the rps interrupts already in postinstall which isn't quite what we want. I think the best solution might be to just kill the loop below and just init each GT interrupt register set indivually so that you can pass the correct mask to GT_IMR(2). So I'm thinking simply something like this:
dev_priv->pm_irq_mask = 0xffffffff;GEN8_IRQ_INIT_NDX(GT, 0, ~gt_interrupts[0], gt_interrupts[0]); GEN8_IRQ_INIT_NDX(GT, 1, ~gt_interrupts[1], gt_interrupts[1]); GEN8_IRQ_INIT_NDX(GT, 2, dev_priv->pm_irq_mask, dev_priv->pm_rps_events); GEN8_IRQ_INIT_NDX(GT, 3, ~gt_interrupts[3], gt_interrupts[3]);
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +0
-0GT_RENDER_USER_INTERRUPT <<GEN8_VECS_IRQ_SHIFT | GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT };Signature · 1 line
1.9.1
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 35 lines · Ville Syrjälä
Quoted 4 lines · On Thu, Aug 21, 2014 at 01:37:09PM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
True, but...
Quoted 17 lines
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_irq.c +0
-0drivers/gpu/drm/i915/i915_irq.c static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) · line 3815
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +1
-1@@ -3812,7 +3812,7 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv)GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS1_IRQ_SHIFT |GT_RENDER_USER_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT |GT_CONTEXT_SWITCH_INTERRUPT <<GEN8_VCS2_IRQ_SHIFT , - 0, + dev_priv->pm_rps_events,.. this would now unmask the rps interrupts already in postinstall which isn't quite what we want. I think the best solution might be to just kill the loop below and just init each GT interrupt register set indivually so that you can pass the correct mask to
GT_IMR(2). So I'm thinking simply something like this:
Quoted 5 lines
dev_priv->pm_irq_mask=0xffffffff;GEN8_IRQ_INIT_NDX(GT, 0, ~gt_interrupts[0], gt_interrupts[0]);GEN8_IRQ_INIT_NDX(GT, 1, ~gt_interrupts[1], gt_interrupts[1]);GEN8_IRQ_INIT_NDX(GT, 2, dev_priv->pm_irq_mask, dev_priv->pm_rps_events);GEN8_IRQ_INIT_NDX(GT, 3, ~gt_interrupts[3], gt_interrupts[3]);
Thanks for the review. I will address this.
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +0
-0GT_RENDER_USER_INTERRUPT <<GEN8_VECS_IRQ_SHIFT | GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT };Signature · 1 line
1.9.1
PATCH v2 1/1 drm/i915: Fix to Enable GT/PM Interrupts for cherryview.
In reply to Ville SyrjäläFrom: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commit abd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700
drm/i915/bdw: Implement interrupt changes
v2: Kill the loop and init GT interrupts (Ville)
--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +4 -5
@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |
@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)
Signature · 1 line
1.9.1
Quoted 10 lines · On Fri, Aug 22, 2014 at 08:32:40AM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700
Quoted 5 lines
drm/i915/bdw: Implement interrupt changes
v2: Kill the loop and init GT interrupts (Ville)
Signed-off-by Deepak S <[email protected]>
Quoted 34 lines
--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_irq.c +4
-5@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)Signature · 1 line
1.9.1
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 11 lines · On Fri, Aug 22, 2014 at 08:32:40AM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
_Really_ unlikely that this is a regression from this commit, since that introduced all the gen8 interrupt handling in the first place. I think this is because of the reworked interrupt handling over gpu resets, where we want to keep rps interrupts enabled. But I'm not terribly sure.
I think a more convincing story is that this is an oversight from
commit a6706b45a57a23a613b34793e1414991b60a09c1
Author: Deepak S <[email protected]> Date: Sat Mar 15 20:23:22 2014 +0530
drm/i915: Track the enabled PM interrupts in dev_priv
or more precisely (since chv wasn't public back then iirc) we forgot to add the corresponding patch to -internal.
In any case please clarify the commit message and please also add a few words about why exactly we need this - I had to dig through git history to figure this all out.
I've applied the patch already, so you can just reply with the revised commit message that I should put in.
Thanks, Daniel
Quoted 42 lines
v2: Kill the loop and init GT interrupts (Ville)
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_irq.c +4
-5@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 28 lines · Daniel Vetter
Quoted 11 lines · On Fri, Aug 22, 2014 at 08:32:40AM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
_Really_ unlikely that this is a regression from this commit, since that introduced all the gen8 interrupt handling in the first place. I think this is because of the reworked interrupt handling over gpu resets, where we want to keep rps interrupts enabled. But I'm not terribly sure.
I think a more convincing story is that this is an oversight from
commit
a6706b45a57a23a613b34793e1414991b60a09c1Author: Deepak S <[email protected]> Date: Sat Mar 15 20:23:22 2014 +0530drm/i915: Track the enabled PM interrupts in
dev_privor more precisely (since chv wasn't public back then iirc) we forgot to add the corresponding patch to -internal.
Quoted 8 lines
In any case please clarify the commit message and please also add a few words about why exactly we need this - I had to dig through git history to figure this all out.
I've applied the patch already, so you can just reply with the revised commit message that I should put in.
Thanks, Daniel
Daniel, This patch is not just for chv right. it affects the gen8(BDW).
Your right we might have missed in (drm/i915: Track the enabled PM interrupts in dev_priv). In -internal, for chv, We used to program the IER in enable_interrupts routing so it was already taken care. After the interrupt re-work, we are supposed to add IER in post_irq handler which we missed it.
New commit msg: Is this fine? Do i need to resubmit the patch?
------------------------------------------------------------------
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
We forgot to program PM IER interrupt in gen8_gt_irq_postinstall based on the new re-worked interrupt routines.
Quoted 42 lines
Quoted 42 lines
v2: Kill the loop and init GT interrupts (Ville)
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_irq.c +4
-5@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 37 lines · Deepak S
Quoted 35 lines · Daniel Vetter
Quoted 11 lines · On Fri, Aug 22, 2014 at 08:32:40AM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
_Really_ unlikely that this is a regression from this commit, since that introduced all the gen8 interrupt handling in the first place. I think this is because of the reworked interrupt handling over gpu resets, where we want to keep rps interrupts enabled. But I'm not terribly sure.
I think a more convincing story is that this is an oversight from
commit
a6706b45a57a23a613b34793e1414991b60a09c1Author: Deepak S <[email protected]> Date: Sat Mar 15 20:23:22 2014 +0530drm/i915: Track the enabled PM interrupts in
dev_privor more precisely (since chv wasn't public back then iirc) we forgot to add the corresponding patch to -internal.
In any case please clarify the commit message and please also add a few words about why exactly we need this - I had to dig through git history to figure this all out.
I've applied the patch already, so you can just reply with the revised commit message that I should put in.
Quoted 8 lines
Quoted 1 line
Thanks, Daniel
Daniel, This patch is not just for chv right. it affects the gen8(BDW).
Your right we might have missed in (drm/i915: Track the enabled PM interrupts indev_priv). In -internal, for chv, We used to program the IER inenable_interruptsrouting so it was already taken care. After the interrupt re-work, we are supposed to add IER inpost_irqhandler which we missed it.New commit msg: Is this fine? Do i need to resubmit the patch?
Yeah fine and thanks for confirming. I've adjusted the commit message. -Daniel
Quoted 48 lines
------------------------------------------------------------------
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
We forgot to program PM IER interrupt in
gen8_gt_irq_postinstallbased on the new re-worked interrupt routines.Quoted 39 lines
Quoted 39 lines
v2: Kill the loop and init GT interrupts (Ville)
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_irq.c +4
-5@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 38 lines · Daniel Vetter
Quoted 37 lines · Deepak S
Quoted 36 lines · Daniel Vetter
Quoted 11 lines · On Fri, Aug 22, 2014 at 08:32:40AM +0530, [email protected] wrote:
From: Deepak S <[email protected]>
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
This is a regression from
commitabd58f0175915bed644aa67c8f69dc571b8280e0
Author: Ben Widawsky <[email protected]>
Date: Sat Nov 2 21:07:09 2013 -0700drm/i915/bdw: Implement interrupt changes
_Really_ unlikely that this is a regression from this commit, since that introduced all the gen8 interrupt handling in the first place. I think this is because of the reworked interrupt handling over gpu resets, where we want to keep rps interrupts enabled. But I'm not terribly sure.
I think a more convincing story is that this is an oversight from
commit
a6706b45a57a23a613b34793e1414991b60a09c1Author: Deepak S <[email protected]> Date: Sat Mar 15 20:23:22 2014 +0530drm/i915: Track the enabled PM interrupts in
dev_privor more precisely (since chv wasn't public back then iirc) we forgot to add the corresponding patch to -internal.
In any case please clarify the commit message and please also add a few words about why exactly we need this - I had to dig through git history to figure this all out.
I've applied the patch already, so you can just reply with the revised commit message that I should put in.
Thanks, Daniel
Quoted 8 lines
Quoted 6 lines
Daniel, This patch is not just for chv right. it affects the gen8(BDW).
Your right we might have missed in (drm/i915: Track the enabled PM interrupts indev_priv). In -internal, for chv, We used to program the IER inenable_interruptsrouting so it was already taken care. After the interrupt re-work, we are supposed to add IER inpost_irqhandler which we missed it.New commit msg: Is this fine? Do i need to resubmit the patch?
Yeah fine and thanks for confirming. I've adjusted the commit message. -Daniel
Thanks Daniel.
Quoted 47 lines
Quoted 47 lines
------------------------------------------------------------------
Programing GT IER interrupts was fumbled while enabling Interrupts for gen8
We forgot to program PM IER interrupt in
gen8_gt_irq_postinstallbased on the new re-worked interrupt routines.Quoted 39 lines
Quoted 39 lines
v2: Kill the loop and init GT interrupts (Ville)
Signed-off-by Deepak S <[email protected]>--- drivers/gpu/drm/i915/i915_irq.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/i915_irq.c +4
-5@@ -3799,8 +3799,6 @@ static int valleyview_irq_postinstall(struct drm_device *dev) static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) { - int i; - /* These are interrupts we'll toggle with the ring mask register */ uint32_t gt_interrupts[] = { GT_RENDER_USER_INTERRUPT << GEN8_RCS_IRQ_SHIFT |@@ -3817,10 +3815,11 @@ static void gen8_gt_irq_postinstall(struct drm_i915_private *dev_priv) GT_CONTEXT_SWITCH_INTERRUPT << GEN8_VECS_IRQ_SHIFT }; -for (i =0 ; i <ARRAY_SIZE (gt_interrupts); i++) -GEN8_IRQ_INIT_NDX (GT , i, ~gt_interrupts[i], gt_interrupts[i]); - dev_priv->pm_irq_mask =0xffffffff ; +GEN8_IRQ_INIT_NDX (GT ,0 , ~gt_interrupts[0 ], gt_interrupts[0 ]); +GEN8_IRQ_INIT_NDX (GT ,1 , ~gt_interrupts[1 ], gt_interrupts[1 ]); +GEN8_IRQ_INIT_NDX (GT ,2 , dev_priv->pm_irq_mask, dev_priv->pm_rps_events); +GEN8_IRQ_INIT_NDX (GT ,3 , ~gt_interrupts[3 ], gt_interrupts[3 ]); }static void gen8_de_irq_postinstall (struct drm_i915_private *dev_priv)Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx