Skip to contentSkip to conversation

drm/i915: Increase the RC6p threshold.

PATCH In review Stéphane Marchesin 4 participants 10 messages Jan 30, 2013 – Mar 5, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Increase the RC6p threshold.

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.

---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +1 -1
index 3280cff..dde0ded 100644
@@ -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 */
Signature · 6 lines
1.8.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 5 lines · Stéphane Marchesin

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?

Quoted 20 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +1 -2
index 3280cff..dde0ded 100644
@@ -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 */
--
Quoted 3 lines

1.8.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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,

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#3 lore raw

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

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

Quoted 28 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

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:[email protected]]
Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
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

Quoted 21 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 7 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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.

Quoted 7 lines
Quoted 1 line

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
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#6 lore raw

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

Thanks,
Jesse

Quoted 52 lines · Ouping

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:[email protected]]
Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
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

Quoted 21 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 7 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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.

Quoted 7 lines
Quoted 1 line

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

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw

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:[email protected]]
Sent: Tuesday, February 26, 2013 12:14 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

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

Thanks,
Jesse

Quoted 45 lines · Ouping

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:[email protected]]
Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
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

Quoted 25 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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?

Quoted 7 lines
Quoted 3 lines

Thanks,
--
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw

Great, then if it helps Stephane, I think we should merge it.

Acked-by-top-post: Jesse Barnes <[email protected]>

Quoted 83 lines · Ouping

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:[email protected]]
Sent: Tuesday, February 26, 2013 12:14 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

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

Thanks,
Jesse

Quoted 45 lines · Ouping

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:[email protected]]
Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
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

Quoted 25 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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?

Quoted 7 lines
Quoted 3 lines

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center

--
Jesse Barnes, Intel Open Source Technology Center

--
Jesse Barnes, Intel Open Source Technology Center

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#9 lore raw
Quoted 3 lines · Jesse Barnes

Great, then if it helps Stephane, I think we should merge it.

Acked-by-top-post: Jesse Barnes <[email protected]>

And applied to -fixes.
-Daniel

Quoted 95 lines
Quoted 83 lines · Ouping

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:[email protected]]
Sent: Tuesday, February 26, 2013 12:14 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

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

Thanks,
Jesse

Quoted 45 lines · Ouping

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:[email protected]]
Sent: Friday, February 22, 2013 12:50 AM
To: Zhang, Ouping
Cc: Stéphane Marchesin; [email protected]
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

Quoted 25 lines · Ouping

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:[email protected]]
Sent: Wednesday, February 20, 2013 8:16 AM
To: Stéphane Marchesin
Cc: [email protected]; Zhang, Ouping
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

Quoted 8 lines · On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin <[email protected]>…
Quoted 5 lines · Stéphane Marchesin

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?

Quoted 7 lines
Quoted 3 lines

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center

--
Jesse Barnes, Intel Open Source Technology Center

--
Jesse Barnes, Intel Open Source Technology Center

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
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