diff mbox

drm/i915: Increase the RC6p threshold.

Message ID 1359517319-30687-1-git-send-email-marcheu@chromium.org (mailing list archive)
State New, archived
Headers show

Commit Message

Stéphane Marchesin Jan. 30, 2013, 3:41 a.m. UTC
This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some
reason this avoids the gen6_gt_check_fifodbg.isra warnings and
associated GPU lockups, which makes my ivy bridge machine stable.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stéphane Marchesin Feb. 19, 2013, 11:53 p.m. UTC | #1
On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:

> This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some
> reason this avoids the gen6_gt_check_fifodbg.isra warnings and
> associated GPU lockups, which makes my ivy bridge machine stable.
>
>
Ping?


> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
> ---
>  drivers/gpu/drm/i915/intel_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c
> b/drivers/gpu/drm/i915/intel_pm.c
> index 3280cff..dde0ded 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2572,7 +2572,7 @@ static void gen6_enable_rps(struct drm_device *dev)
>         I915_WRITE(GEN6_RC_SLEEP, 0);
>         I915_WRITE(GEN6_RC1e_THRESHOLD, 1000);
>         I915_WRITE(GEN6_RC6_THRESHOLD, 50000);
> -       I915_WRITE(GEN6_RC6p_THRESHOLD, 100000);
> +       I915_WRITE(GEN6_RC6p_THRESHOLD, 150000);
>         I915_WRITE(GEN6_RC6pp_THRESHOLD, 64000); /* unused */
>
>         /* Check if we are enabling RC6 */
> --
> 1.8.1
>
>
Jesse Barnes Feb. 20, 2013, 12:15 a.m. UTC | #2
On Tue, 19 Feb 2013 15:53:56 -0800
Stéphane Marchesin <marcheu@chromium.org> wrote:

> On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:
> 
> > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some
> > reason this avoids the gen6_gt_check_fifodbg.isra warnings and
> > associated GPU lockups, which makes my ivy bridge machine stable.
> >
> >
> Ping?

Seems ok to me.  Ouping, can you measure any power difference between
the two values?

Thanks,
Zhang, Ouping Feb. 21, 2013, 5:08 a.m. UTC | #3
Hi Jesse,

Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?

-----Original Message-----
From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 

Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

On Tue, 19 Feb 2013 15:53:56 -0800
Stéphane Marchesin <marcheu@chromium.org> wrote:

> On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:

> 

> > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some 

> > reason this avoids the gen6_gt_check_fifodbg.isra warnings and 

> > associated GPU lockups, which makes my ivy bridge machine stable.

> >

> >

> Ping?


Seems ok to me.  Ouping, can you measure any power difference between the two values?

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
Jesse Barnes Feb. 21, 2013, 4:49 p.m. UTC | #4
You have to modify the kernel to make the change Stephane suggested,
then measure the energy consumption across your workloads.  I'd expect
the residency to change, but I'm ultimately concerned with the energy
used.

Jesse

On Thu, 21 Feb 2013 05:08:10 +0000
"Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> Hi Jesse,
> 
> Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?
> 
> -----Original Message-----
> From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 
> Sent: Wednesday, February 20, 2013 8:16 AM
> To: Stéphane Marchesin
> Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> 
> On Tue, 19 Feb 2013 15:53:56 -0800
> Stéphane Marchesin <marcheu@chromium.org> wrote:
> 
> > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:
> > 
> > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some 
> > > reason this avoids the gen6_gt_check_fifodbg.isra warnings and 
> > > associated GPU lockups, which makes my ivy bridge machine stable.
> > >
> > >
> > Ping?
> 
> Seems ok to me.  Ouping, can you measure any power difference between the two values?
> 
> Thanks,
> --
> Jesse Barnes, Intel Open Source Technology Center
Zhang, Ouping Feb. 25, 2013, 7:33 a.m. UTC | #5
running video workload, video avg watt = 38.4 and watt-hour = 6.9
cat /sys/class/drm/card0/power/rc6_residency_ms
cat /sys/class/drm/card0/power/rc6p_residency_ms 
rc6_residency_ms increase from 6708 to 483627
rc6p_residency_ms increase from 410092 to 423378

-----Original Message-----
From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 

Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

You have to modify the kernel to make the change Stephane suggested, then measure the energy consumption across your workloads.  I'd expect the residency to change, but I'm ultimately concerned with the energy used.

Jesse

On Thu, 21 Feb 2013 05:08:10 +0000
"Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> Hi Jesse,

> 

> Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?

> 

> -----Original Message-----

> From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]

> Sent: Wednesday, February 20, 2013 8:16 AM

> To: Stéphane Marchesin

> Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping

> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

> 

> On Tue, 19 Feb 2013 15:53:56 -0800

> Stéphane Marchesin <marcheu@chromium.org> wrote:

> 

> > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:

> > 

> > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some 

> > > reason this avoids the gen6_gt_check_fifodbg.isra warnings and 

> > > associated GPU lockups, which makes my ivy bridge machine stable.

> > >

> > >

> > Ping?

> 

> Seems ok to me.  Ouping, can you measure any power difference between the two values?

> 

> Thanks,

> --

> Jesse Barnes, Intel Open Source Technology Center



--
Jesse Barnes, Intel Open Source Technology Center
Jesse Barnes Feb. 25, 2013, 4:13 p.m. UTC | #6
How does the watt-hour result compare to before the patch?

Thanks,
Jesse

On Mon, 25 Feb 2013 07:33:38 +0000
"Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> running video workload, video avg watt = 38.4 and watt-hour = 6.9
> cat /sys/class/drm/card0/power/rc6_residency_ms
> cat /sys/class/drm/card0/power/rc6p_residency_ms 
> rc6_residency_ms increase from 6708 to 483627
> rc6p_residency_ms increase from 410092 to 423378
> 
> -----Original Message-----
> From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 
> Sent: Friday, February 22, 2013 12:50 AM
> To: Zhang, Ouping
> Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> 
> You have to modify the kernel to make the change Stephane suggested, then measure the energy consumption across your workloads.  I'd expect the residency to change, but I'm ultimately concerned with the energy used.
> 
> Jesse
> 
> On Thu, 21 Feb 2013 05:08:10 +0000
> "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> 
> > Hi Jesse,
> > 
> > Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?
> > 
> > -----Original Message-----
> > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]
> > Sent: Wednesday, February 20, 2013 8:16 AM
> > To: Stéphane Marchesin
> > Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping
> > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > 
> > On Tue, 19 Feb 2013 15:53:56 -0800
> > Stéphane Marchesin <marcheu@chromium.org> wrote:
> > 
> > > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:
> > > 
> > > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For some 
> > > > reason this avoids the gen6_gt_check_fifodbg.isra warnings and 
> > > > associated GPU lockups, which makes my ivy bridge machine stable.
> > > >
> > > >
> > > Ping?
> > 
> > Seems ok to me.  Ouping, can you measure any power difference between the two values?
> > 
> > Thanks,
> > --
> > Jesse Barnes, Intel Open Source Technology Center
> 
> 
> --
> Jesse Barnes, Intel Open Source Technology Center
Zhang, Ouping Feb. 27, 2013, 5:50 a.m. UTC | #7
Increase the RC6p threshold from 100000 to 150000, there is no power difference between the two values.
for example:
(1) I915_WRITE(GEN6_RC6p_THRESHOLD, 100000);
video time: 11'
video avg watt 31.3
watt-hour: 5.6

(2) I915_WRITE(GEN6_RC6p_THRESHOLD, 150000);
video time: 11'
video avg watt 31.2
watt-hour: 5.6

-----Original Message-----
From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 

Sent: Tuesday, February 26, 2013 12:14 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

How does the watt-hour result compare to before the patch?

Thanks,
Jesse

On Mon, 25 Feb 2013 07:33:38 +0000
"Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> running video workload, video avg watt = 38.4 and watt-hour = 6.9 cat 

> /sys/class/drm/card0/power/rc6_residency_ms

> cat /sys/class/drm/card0/power/rc6p_residency_ms

> rc6_residency_ms increase from 6708 to 483627 rc6p_residency_ms 

> increase from 410092 to 423378

> 

> -----Original Message-----

> From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]

> Sent: Friday, February 22, 2013 12:50 AM

> To: Zhang, Ouping

> Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org

> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

> 

> You have to modify the kernel to make the change Stephane suggested, then measure the energy consumption across your workloads.  I'd expect the residency to change, but I'm ultimately concerned with the energy used.

> 

> Jesse

> 

> On Thu, 21 Feb 2013 05:08:10 +0000

> "Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> 

> > Hi Jesse,

> > 

> > Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?

> > 

> > -----Original Message-----

> > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]

> > Sent: Wednesday, February 20, 2013 8:16 AM

> > To: Stéphane Marchesin

> > Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping

> > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

> > 

> > On Tue, 19 Feb 2013 15:53:56 -0800

> > Stéphane Marchesin <marcheu@chromium.org> wrote:

> > 

> > > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:

> > > 

> > > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For 

> > > > some reason this avoids the gen6_gt_check_fifodbg.isra warnings 

> > > > and associated GPU lockups, which makes my ivy bridge machine stable.

> > > >

> > > >

> > > Ping?

> > 

> > Seems ok to me.  Ouping, can you measure any power difference between the two values?

> > 

> > Thanks,

> > --

> > Jesse Barnes, Intel Open Source Technology Center

> 

> 

> --

> Jesse Barnes, Intel Open Source Technology Center



--
Jesse Barnes, Intel Open Source Technology Center
Jesse Barnes Feb. 27, 2013, 4:23 p.m. UTC | #8
Great, then if it helps Stephane, I think we should merge it.

Acked-by-top-post: Jesse Barnes <jbarnes@virtuousgeek.org>

On Wed, 27 Feb 2013 05:50:08 +0000
"Zhang, Ouping" <ouping.zhang@intel.com> wrote:

> Increase the RC6p threshold from 100000 to 150000, there is no power difference between the two values.
> for example:
> (1) I915_WRITE(GEN6_RC6p_THRESHOLD, 100000);
> video time: 11'
> video avg watt 31.3
> watt-hour: 5.6
> 
> (2) I915_WRITE(GEN6_RC6p_THRESHOLD, 150000);
> video time: 11'
> video avg watt 31.2
> watt-hour: 5.6
> 
> -----Original Message-----
> From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 
> Sent: Tuesday, February 26, 2013 12:14 AM
> To: Zhang, Ouping
> Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> 
> How does the watt-hour result compare to before the patch?
> 
> Thanks,
> Jesse
> 
> On Mon, 25 Feb 2013 07:33:38 +0000
> "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> 
> > running video workload, video avg watt = 38.4 and watt-hour = 6.9 cat 
> > /sys/class/drm/card0/power/rc6_residency_ms
> > cat /sys/class/drm/card0/power/rc6p_residency_ms
> > rc6_residency_ms increase from 6708 to 483627 rc6p_residency_ms 
> > increase from 410092 to 423378
> > 
> > -----Original Message-----
> > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]
> > Sent: Friday, February 22, 2013 12:50 AM
> > To: Zhang, Ouping
> > Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
> > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > 
> > You have to modify the kernel to make the change Stephane suggested, then measure the energy consumption across your workloads.  I'd expect the residency to change, but I'm ultimately concerned with the energy used.
> > 
> > Jesse
> > 
> > On Thu, 21 Feb 2013 05:08:10 +0000
> > "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> > 
> > > Hi Jesse,
> > > 
> > > Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?
> > > 
> > > -----Original Message-----
> > > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]
> > > Sent: Wednesday, February 20, 2013 8:16 AM
> > > To: Stéphane Marchesin
> > > Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping
> > > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > > 
> > > On Tue, 19 Feb 2013 15:53:56 -0800
> > > Stéphane Marchesin <marcheu@chromium.org> wrote:
> > > 
> > > > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:
> > > > 
> > > > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For 
> > > > > some reason this avoids the gen6_gt_check_fifodbg.isra warnings 
> > > > > and associated GPU lockups, which makes my ivy bridge machine stable.
> > > > >
> > > > >
> > > > Ping?
> > > 
> > > Seems ok to me.  Ouping, can you measure any power difference between the two values?
> > > 
> > > Thanks,
> > > --
> > > Jesse Barnes, Intel Open Source Technology Center
> > 
> > 
> > --
> > Jesse Barnes, Intel Open Source Technology Center
> 
> 
> --
> Jesse Barnes, Intel Open Source Technology Center
Daniel Vetter March 5, 2013, 9:02 a.m. UTC | #9
On Wed, Feb 27, 2013 at 08:23:56AM -0800, Jesse Barnes wrote:
> Great, then if it helps Stephane, I think we should merge it.
> 
> Acked-by-top-post: Jesse Barnes <jbarnes@virtuousgeek.org>

And applied to -fixes.
-Daniel

> 
> On Wed, 27 Feb 2013 05:50:08 +0000
> "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> 
> > Increase the RC6p threshold from 100000 to 150000, there is no power difference between the two values.
> > for example:
> > (1) I915_WRITE(GEN6_RC6p_THRESHOLD, 100000);
> > video time: 11'
> > video avg watt 31.3
> > watt-hour: 5.6
> > 
> > (2) I915_WRITE(GEN6_RC6p_THRESHOLD, 150000);
> > video time: 11'
> > video avg watt 31.2
> > watt-hour: 5.6
> > 
> > -----Original Message-----
> > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org] 
> > Sent: Tuesday, February 26, 2013 12:14 AM
> > To: Zhang, Ouping
> > Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
> > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > 
> > How does the watt-hour result compare to before the patch?
> > 
> > Thanks,
> > Jesse
> > 
> > On Mon, 25 Feb 2013 07:33:38 +0000
> > "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> > 
> > > running video workload, video avg watt = 38.4 and watt-hour = 6.9 cat 
> > > /sys/class/drm/card0/power/rc6_residency_ms
> > > cat /sys/class/drm/card0/power/rc6p_residency_ms
> > > rc6_residency_ms increase from 6708 to 483627 rc6p_residency_ms 
> > > increase from 410092 to 423378
> > > 
> > > -----Original Message-----
> > > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]
> > > Sent: Friday, February 22, 2013 12:50 AM
> > > To: Zhang, Ouping
> > > Cc: Stéphane Marchesin; intel-gfx@lists.freedesktop.org
> > > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > > 
> > > You have to modify the kernel to make the change Stephane suggested, then measure the energy consumption across your workloads.  I'd expect the residency to change, but I'm ultimately concerned with the energy used.
> > > 
> > > Jesse
> > > 
> > > On Thu, 21 Feb 2013 05:08:10 +0000
> > > "Zhang, Ouping" <ouping.zhang@intel.com> wrote:
> > > 
> > > > Hi Jesse,
> > > > 
> > > > Do you mean increase /sys/class/drm/card0/power/rc6p_residency_ms from 100000 to 150000, and measure power difference on IVB when system is on idle?
> > > > 
> > > > -----Original Message-----
> > > > From: Jesse Barnes [mailto:jbarnes@virtuousgeek.org]
> > > > Sent: Wednesday, February 20, 2013 8:16 AM
> > > > To: Stéphane Marchesin
> > > > Cc: intel-gfx@lists.freedesktop.org; Zhang, Ouping
> > > > Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.
> > > > 
> > > > On Tue, 19 Feb 2013 15:53:56 -0800
> > > > Stéphane Marchesin <marcheu@chromium.org> wrote:
> > > > 
> > > > > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin <marcheu@chromium.org>wrote:
> > > > > 
> > > > > > This increases GEN6_RC6p_THRESHOLD from 100000 to 150000. For 
> > > > > > some reason this avoids the gen6_gt_check_fifodbg.isra warnings 
> > > > > > and associated GPU lockups, which makes my ivy bridge machine stable.
> > > > > >
> > > > > >
> > > > > Ping?
> > > > 
> > > > Seems ok to me.  Ouping, can you measure any power difference between the two values?
> > > > 
> > > > Thanks,
> > > > --
> > > > Jesse Barnes, Intel Open Source Technology Center
> > > 
> > > 
> > > --
> > > Jesse Barnes, Intel Open Source Technology Center
> > 
> > 
> > --
> > Jesse Barnes, Intel Open Source Technology Center
> 
> 
> -- 
> Jesse Barnes, Intel Open Source Technology Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 3280cff..dde0ded 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2572,7 +2572,7 @@  static void gen6_enable_rps(struct drm_device *dev)
 	I915_WRITE(GEN6_RC_SLEEP, 0);
 	I915_WRITE(GEN6_RC1e_THRESHOLD, 1000);
 	I915_WRITE(GEN6_RC6_THRESHOLD, 50000);
-	I915_WRITE(GEN6_RC6p_THRESHOLD, 100000);
+	I915_WRITE(GEN6_RC6p_THRESHOLD, 150000);
 	I915_WRITE(GEN6_RC6pp_THRESHOLD, 64000); /* unused */
 
 	/* Check if we are enabling RC6 */