[PATCH 0/9] drm/radeon/kms: update pm code

2010-05-08 Thread Klaus Doblmann B.A.
On Sat, 8 May 2010 11:29:10 -0400
Alex Deucher  wrote:

> On Sat, May 8, 2010 at 7:14 AM, Klaus Doblmann B.A.
>  wrote:

> > the profile setting works but I can't check which clock speeds are
> > set as I don't get any feedback (dmesg) anymore (Someone have any
> > input on this?). The temps are unaffected whether I use the low or high
> > profile, the only way I can tell that some things are working is by a
> > 2000 fps-difference when running glxgears (something like 4000 on low
> > and 6000 on high). I also attached a wattmeter to my my machine and the
> > wattage alternates but I think I'm getting something along the lines of
> > a 10W decrease in power consumption - it's very hard to tell, though.
> > dynpm is a bit more effective and I even get lower temps (just under
> > 50? compared to over 53 with the profile settings) but it's unusable
> > right now as I already mentioned.
> >
> > All in all very nice work so far (this goes for all of you who've
> > worked on radeon KMS PM!) - with the latest set of patches this is the
> > first "revision" of KMS PM that actually "works" on my machine :)
> >
> 
> Thanks for testing; we are definitely planning on further
> improvements, this is just a step on the way.   The power drops
> further when your monitors go off so that will save additional power
> when your machine is idle.  If you want to see the state transitions,
> revert this patch:
> http://people.freedesktop.org/~agd5f/pm-drt/0009-drm-radeon-kms-pm-make-pm-spam-debug-only.patch
> However, it will spam your kernel log.
> 
> Alex
> 

Hi Alex,

thanks for the suggestion!
It seems I spoke a bit too soon about everything working. I suspended
my machine and now came back after a few hours and it seems the latest
patches (well, I only could test the pm code in linus' tree of -34 up
to now due to display corruptions so there's a lot of changes since
then) in d-r-t killed suspend for me
- the machine doesn't come back up and hardlocks. Too bad I can't find
anything about it in my logs :(

Klaus


-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc
http://twitter.com/klausdoblmann

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: [PATCH 0/9] drm/radeon/kms: update pm code

2010-05-08 Thread Klaus Doblmann B.A.
On Fri,  7 May 2010 17:16:11 -0400
Alex Deucher alexdeuc...@gmail.com wrote:

 This set of patches applies on top of the code in drm-radeon-testing.
 
 I've been testing this code pretty hard this week and it's been solid.
 In addition to some fixes on top of what's in d-r-t, it also reworks
 the pm code to support two basic methods:
 
 1. dynpm
 2. profile
 
 You can select the methods via sysfs.  Echo dynpm or profile to
 /sys/class/drm/card-0/device/power_method.
 
 The dynpm method dynamically changes the clocks based on the number of 
 pending
 fences, so performance is ramped up when running GPU intensive apps, and
 ramped down when the GPU is idle.  The reclocking is attemped during
 vertical blanking periods, but due to the timing of the reclocking
 functions, doesn't not always complete in the blanking period, which can
 lead to flicker in the display.  Due to this, dynpm only works when a single
 head is active.

Hi Alex,

I just built a new version of d-r-t with your patches from yesterday
applied on top and wanted to share my experience with you and the list
(Radeon 2600XT mobile):

Dynpm has gotten unusable for me as there's a noticeable effect on
mouse movement (getting sluggish)

 
 The profile method exposes 4 profiles that can be selected from:
 1. default
 2. auto
 3. low
 4. high
 Select the profile by echoing the selected profile to
 /sys/class/drm/card-0/device/power_profile.
 

the profile setting works but I can't check which clock speeds are
set as I don't get any feedback (dmesg) anymore (Someone have any
input on this?). The temps are unaffected whether I use the low or high
profile, the only way I can tell that some things are working is by a
2000 fps-difference when running glxgears (something like 4000 on low
and 6000 on high). I also attached a wattmeter to my my machine and the
wattage alternates but I think I'm getting something along the lines of
a 10W decrease in power consumption - it's very hard to tell, though.
dynpm is a bit more effective and I even get lower temps (just under
50° compared to over 53 with the profile settings) but it's unusable
right now as I already mentioned. 

All in all very nice work so far (this goes for all of you who've
worked on radeon KMS PM!) - with the latest set of patches this is the
first revision of KMS PM that actually works on my machine :)

Klaus

-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc
http://twitter.com/klausdoblmann

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH 0/9] drm/radeon/kms: update pm code

2010-05-08 Thread Klaus Doblmann B.A.
On Sat, 8 May 2010 11:29:10 -0400
Alex Deucher alexdeuc...@gmail.com wrote:

 On Sat, May 8, 2010 at 7:14 AM, Klaus Doblmann B.A.
 klaus.doblm...@gmail.com wrote:

  the profile setting works but I can't check which clock speeds are
  set as I don't get any feedback (dmesg) anymore (Someone have any
  input on this?). The temps are unaffected whether I use the low or high
  profile, the only way I can tell that some things are working is by a
  2000 fps-difference when running glxgears (something like 4000 on low
  and 6000 on high). I also attached a wattmeter to my my machine and the
  wattage alternates but I think I'm getting something along the lines of
  a 10W decrease in power consumption - it's very hard to tell, though.
  dynpm is a bit more effective and I even get lower temps (just under
  50° compared to over 53 with the profile settings) but it's unusable
  right now as I already mentioned.
 
  All in all very nice work so far (this goes for all of you who've
  worked on radeon KMS PM!) - with the latest set of patches this is the
  first revision of KMS PM that actually works on my machine :)
 
 
 Thanks for testing; we are definitely planning on further
 improvements, this is just a step on the way.   The power drops
 further when your monitors go off so that will save additional power
 when your machine is idle.  If you want to see the state transitions,
 revert this patch:
 http://people.freedesktop.org/~agd5f/pm-drt/0009-drm-radeon-kms-pm-make-pm-spam-debug-only.patch
 However, it will spam your kernel log.
 
 Alex
 

Hi Alex,

thanks for the suggestion!
It seems I spoke a bit too soon about everything working. I suspended
my machine and now came back after a few hours and it seems the latest
patches (well, I only could test the pm code in linus' tree of -34 up
to now due to display corruptions so there's a lot of changes since
then) in d-r-t killed suspend for me
- the machine doesn't come back up and hardlocks. Too bad I can't find
anything about it in my logs :(

Klaus


-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc
http://twitter.com/klausdoblmann

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


RV630 KMS PM info on tables requested

2010-05-02 Thread Klaus Doblmann B.A.
On Tue, 27 Apr 2010 14:06:41 -0400
Alex Deucher  wrote:

> >> > I've been testing radeon KMS PM with 2.6.34-rc* for a few days now and
> >> > I wanted to send you my testcase. Even though PM is enabled, the
> >> > defaults of my card are somewhat insane so no real powermanagement
> >> > takes place - i.e. the card doesn't get clocked down. is there any way
> >> > to force the card to use a different setting where less power is being
> >> > consumed?
> >>
> >> The current code doesn't handle a lot of cases properly. ?Please try
> >> my latest patch set against Dave's drm-next tree:
> >> http://people.freedesktop.org/~agd5f/pm3/
> >> It allows you to enable dynamic pm or force a static power mode via sysfs.
> >>
> >> Alex
> >
> > Will do so at the end of the week when (hopefully) 2.6.34-rc6 is out
> > and I have mor etime on my hands.
> > Could you a bit more explicit on how I could set a static power mode
> > via sysfs? I've never worked with sysfs before so some hints would be
> > greatly appreciated.
> 
> enable/disable dynpm:
> echo 1 > /sys/class/drm/card0/device/dynpm
> 
> force a static power state:
> echo 1.0 > /sys/class/drm/card0/device/power_state
> 
> Alex
> 

Hi Alex,

I just built drm-radeon-testing as I saw the patches have already
been merged there.
It built fine, I updated the firmware files as the Xor-Wiki suggests,
but when I boot into the resulting kernel with dynpem on my screen goes
all wonky, a portion on the right side is missing and I've got vertical
lines running down the screen. Somehow I managed to look at dmesg and
saw that the speed was being set correctly (it even set the lowest one
available).

When I tried "sudo echo 0 > /sys/class/drm/card0/device/dynpm" to see
whether switching off dynpm would fix the "drunken" screen the system
told me I was not permitted to access the file...

I am attaching the syslog from the faulty boot in case it's of any
help...

Klaus


-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc
http://twitter.com/klausdoblmann

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-- next part --
A non-text attachment was scrubbed...
Name: syslog
Type: application/octet-stream
Size: 125362 bytes
Desc: not available
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20100502/f5f16333/attachment-0001.obj>


RV630 KMS PM info on tables requested

2010-04-27 Thread Klaus Doblmann B.A.
On Tue, 27 Apr 2010 14:06:41 -0400
Alex Deucher  wrote:

[...]
> 
> enable/disable dynpm:
> echo 1 > /sys/class/drm/card0/device/dynpm
> 
> force a static power state:
> echo 1.0 > /sys/class/drm/card0/device/power_state
> 
> Alex

Oh, now that you've mentioned it, I've noticed I've been using sysfs
for years in my customized fan-script for my machine without knowing^^

Thanks for clearing that up!

> > PS: On another note, is the KMS PM code supposed to work with r100
> > chips (Mobility 7500)? I've tried it yesterday and the machine (IBM
> > T40) hardlocks when loading GDM (Ubuntu 10.04, 2.6.34-rc5 without any
> > additional patches).
> >
> 
> In theory, although I haven't had time to test older chips much yet.
> 
> Alex
> 

I'll test the new patches ith .34-rc6 on the weekend too and will
report back. Whenever you need a testcase for ancient r100 hardware
feel free to mail me (I'll be reading the list too)

Klaus


-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


RV630 KMS PM info on tables requested

2010-04-27 Thread Klaus Doblmann B.A.
On Tue, 27 Apr 2010 13:42:05 -0400
Alex Deucher  wrote:

> On Tue, Apr 27, 2010 at 5:35 AM, Klaus Doblmann B.A.
>  wrote:
> >
> > I sent this to Alex a few days ago but felt I should post it on this
> > list as well:
> >
> 
> You might want to check the address you used as I never got the email.

Hi Alex,
weird, I double-checked and I sent it to the address you replied from...

> 
> > I've been testing radeon KMS PM with 2.6.34-rc* for a few days now and
> > I wanted to send you my testcase. Even though PM is enabled, the
> > defaults of my card are somewhat insane so no real powermanagement
> > takes place - i.e. the card doesn't get clocked down. is there any way
> > to force the card to use a different setting where less power is being
> > consumed?
> 
> The current code doesn't handle a lot of cases properly.  Please try
> my latest patch set against Dave's drm-next tree:
> http://people.freedesktop.org/~agd5f/pm3/
> It allows you to enable dynamic pm or force a static power mode via sysfs.
> 
> Alex

Will do so at the end of the week when (hopefully) 2.6.34-rc6 is out
and I have mor etime on my hands.
Could you a bit more explicit on how I could set a static power mode
via sysfs? I've never worked with sysfs before so some hints would be
greatly appreciated.

Thanks,
Klaus

PS: On another note, is the KMS PM code supposed to work with r100
chips (Mobility 7500)? I've tried it yesterday and the machine (IBM
T40) hardlocks when loading GDM (Ubuntu 10.04, 2.6.34-rc5 without any
additional patches).

> 
> > Thanks!
> >
> > Klaus
> >
[...]

-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


RV630 KMS PM info on tables requested

2010-04-27 Thread Klaus Doblmann B.A.
: 16
[  504.560146] [drm] Setting: e: 68000 m: 75000 p: 16

-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


RV630 KMS PM info on tables requested

2010-04-27 Thread Klaus Doblmann B.A.
[  504.560146] [drm] Setting: e: 68000 m: 75000 p: 16

-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: RV630 KMS PM info on tables requested

2010-04-27 Thread Klaus Doblmann B.A.
On Tue, 27 Apr 2010 13:42:05 -0400
Alex Deucher alexdeuc...@gmail.com wrote:

 On Tue, Apr 27, 2010 at 5:35 AM, Klaus Doblmann B.A.
 klaus.doblm...@gmail.com wrote:
 
  I sent this to Alex a few days ago but felt I should post it on this
  list as well:
 
 
 You might want to check the address you used as I never got the email.

Hi Alex,
weird, I double-checked and I sent it to the address you replied from...

 
  I've been testing radeon KMS PM with 2.6.34-rc* for a few days now and
  I wanted to send you my testcase. Even though PM is enabled, the
  defaults of my card are somewhat insane so no real powermanagement
  takes place - i.e. the card doesn't get clocked down. is there any way
  to force the card to use a different setting where less power is being
  consumed?
 
 The current code doesn't handle a lot of cases properly.  Please try
 my latest patch set against Dave's drm-next tree:
 http://people.freedesktop.org/~agd5f/pm3/
 It allows you to enable dynamic pm or force a static power mode via sysfs.
 
 Alex

Will do so at the end of the week when (hopefully) 2.6.34-rc6 is out
and I have mor etime on my hands.
Could you a bit more explicit on how I could set a static power mode
via sysfs? I've never worked with sysfs before so some hints would be
greatly appreciated.

Thanks,
Klaus

PS: On another note, is the KMS PM code supposed to work with r100
chips (Mobility 7500)? I've tried it yesterday and the machine (IBM
T40) hardlocks when loading GDM (Ubuntu 10.04, 2.6.34-rc5 without any
additional patches).

 
  Thanks!
 
  Klaus
 
[...]

-- 
Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570
PGP-Key: http://www.doblmann.de/pgp_key.asc

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel