Skip to contentSkip to conversation

How to change radeon power state

DISCUSSION Daniel Mota Leite 2 participants 5 messages Oct 20, 2013 – Oct 24, 2013

lore
Share & tools
lore
#0 lore raw

Hi

i've a one ATI/AMD RV630 card with kernel 3.11.5 and dpm enabled.
All works fine, but minor annoying problem. The dpm is choosing a power state that isn't the best...

This is my card :

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV 630 XT AGP [Radeon HD 2600 XT AGP]

Here is the dpm output:

[   12.358738] == power state 0 ==
[   12.358796] 	ui class: none
[   12.358895] 	internal class: boot 
[   12.359069] 	caps: video 
[   12.359209] 	uvd    vclk: 0 dclk: 0
[   12.359266] 		power level 0    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359326] 		power level 1    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359386] 		power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359445] 	status: c r b 
[   12.359671] == power state 1 ==
[   12.359726] 	ui class: performance
[   12.359824] 	internal class: ovrdrv 
[   12.359965] 	caps: video 
[   12.360109] 	uvd    vclk: 0 dclk: 0
[   12.360166] 		power level 0    sclk: 15000 mclk: 42000 vddc: 1050
[   12.360226] 		power level 1    sclk: 20000 mclk: 50000 vddc: 1080
[   12.360285] 		power level 2    sclk: 40000 mclk: 70000 vddc: 1100
[   12.360344] 	status: 
[   12.360442] == power state 2 ==
[   12.360497] 	ui class: none
[   12.360594] 	internal class: none
[   12.360734] 	caps: video 
[   12.360873] 	uvd    vclk: 0 dclk: 0
[   12.360930] 		power level 0    sclk: 20000 mclk: 50000 vddc: 1080
[   12.360990] 		power level 1    sclk: 30000 mclk: 50000 vddc: 1100
[   12.361056] 		power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.361115] 	status: 
[   12.361415] switching from power state:
[   12.361471] 	ui class: none
[   12.361568] 	internal class: boot 
[   12.361708] 	caps: video 
[   12.361847] 	uvd    vclk: 0 dclk: 0
[   12.361903] 		power level 0    sclk: 80000 mclk: 70000 vddc: 1200
[   12.361963] 		power level 1    sclk: 80000 mclk: 70000 vddc: 1200
[   12.362029] 		power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.362088] 	status: c b 
[   12.362303] switching to power state:
[   12.362359] 	ui class: performance
[   12.362457] 	internal class: ovrdrv 
[   12.362596] 	caps: video 
[   12.362735] 	uvd    vclk: 0 dclk: 0
[   12.362792] 		power level 0    sclk: 15000 mclk: 42000 vddc: 1050
[   12.362853] 		power level 1    sclk: 20000 mclk: 50000 vddc: 1080
[   12.362913] 		power level 2    sclk: 40000 mclk: 70000 vddc: 1100
[   12.362972] 	status: r 

As you can see, the driver choose the performance profile, but
that one is limited to 400MHz, half of what this card can do. Of course i
want to be able jump the GPU to 800MHz. So is there any easy way
to choose the power state 2 instead of power state 1?

Also, when in using tvtime on a second head, the dpm jumps the gpu
clock to the max, yet i would like to use the middle speed. tvtime doesn't require that much resources (even low can do it!). Yet i found no way to force the middle power level. i can "echo high" and "echo low" to power_dpm_force_performance_level but trying "mid", "middle" fail. Is there any support to use the middle power level?

Thanks in advance.
higuita

Signature · 9 lines
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 66 lines · Daniel Mota Leite

Hi

i've a one ATI/AMD RV630 card with kernel 3.11.5 and dpm enabled.
All works fine, but minor annoying problem. The dpm is choosing a power state that isn't the best...

This is my card :

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV 630 XT AGP [Radeon HD 2600 XT AGP]

Here is the dpm output:

[   12.358738] == power state 0 ==
[   12.358796]  ui class: none
[   12.358895]  internal class: boot
[   12.359069]  caps: video
[   12.359209]  uvd    vclk: 0 dclk: 0
[   12.359266]          power level 0    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359326]          power level 1    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359386]          power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.359445]  status: c r b
[   12.359671] == power state 1 ==
[   12.359726]  ui class: performance
[   12.359824]  internal class: ovrdrv
[   12.359965]  caps: video
[   12.360109]  uvd    vclk: 0 dclk: 0
[   12.360166]          power level 0    sclk: 15000 mclk: 42000 vddc: 1050
[   12.360226]          power level 1    sclk: 20000 mclk: 50000 vddc: 1080
[   12.360285]          power level 2    sclk: 40000 mclk: 70000 vddc: 1100
[   12.360344]  status:
[   12.360442] == power state 2 ==
[   12.360497]  ui class: none
[   12.360594]  internal class: none
[   12.360734]  caps: video
[   12.360873]  uvd    vclk: 0 dclk: 0
[   12.360930]          power level 0    sclk: 20000 mclk: 50000 vddc: 1080
[   12.360990]          power level 1    sclk: 30000 mclk: 50000 vddc: 1100
[   12.361056]          power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.361115]  status:
[   12.361415] switching from power state:
[   12.361471]  ui class: none
[   12.361568]  internal class: boot
[   12.361708]  caps: video
[   12.361847]  uvd    vclk: 0 dclk: 0
[   12.361903]          power level 0    sclk: 80000 mclk: 70000 vddc: 1200
[   12.361963]          power level 1    sclk: 80000 mclk: 70000 vddc: 1200
[   12.362029]          power level 2    sclk: 80000 mclk: 70000 vddc: 1200
[   12.362088]  status: c b
[   12.362303] switching to power state:
[   12.362359]  ui class: performance
[   12.362457]  internal class: ovrdrv
[   12.362596]  caps: video
[   12.362735]  uvd    vclk: 0 dclk: 0
[   12.362792]          power level 0    sclk: 15000 mclk: 42000 vddc: 1050
[   12.362853]          power level 1    sclk: 20000 mclk: 50000 vddc: 1080
[   12.362913]          power level 2    sclk: 40000 mclk: 70000 vddc: 1100
[   12.362972]  status: r

As you can see, the driver choose the performance profile, but
that one is limited to 400MHz, half of what this card can do. Of course i want to be able jump the GPU to 800MHz. So is there any easy way
to choose the power state 2 instead of power state 1?

Quoted 6 lines

Also, when in using tvtime on a second head, the dpm jumps the gpu
clock to the max, yet i would like to use the middle speed. tvtime doesn't require that much resources (even low can do it!). Yet i found no way to force the middle power level. i can "echo high" and "echo low" to power_dpm_force_performance_level but trying "mid", "middle" fail. Is there any support to use the middle power level?

We'll probably need to add a quirk for your card. Can you send me the output of lspci -vnn for the GPU?

Alex

Quoted 19 lines

Thanks in advance.
higuita
--
Naturally the common people don't want war... but after all it is the leaders of a country who determine the policy, and it is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in every country.
-- Hermann Goering, Nazi and war criminal, 1883-1946

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 5 lines · Alex Deucher
Quoted 3 lines · Daniel Mota Leite
[   12.359671] == power state 1 ==
[   12.359726]  ui class: performance
[   12.359824]  internal class: ovrdrv

(...)

Quoted 3 lines
Quoted 3 lines
[   12.360442] == power state 2 ==
[   12.360497]  ui class: none
[   12.360594]  internal class: none

(...)

Quoted 6 lines
Quoted 4 lines

As you can see, the driver choose the performance profile, but
that one is limited to 400MHz, half of what this card can do. Of course i want to be able jump the GPU to 800MHz. So is there any easy way to choose the power state 2 instead of power state 1?

We'll probably need to add a quirk for your card. Can you send me the output of lspci -vnn for the GPU?

Please note that the original card firmware had all powerstates
the same, i had used rbe (http://www.techpowerup.com/rbe/) to change then to the current frequencies. In that app, the powerstate 1 is called battery and the powerstate 2 is called performance.

I can switch the two and reflash, but to me seems logic that one
can manually choose what powerstate to use if needed, just like the powerlevels (excluding the middle powerlevel problem)

Here is the output:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RV 630 XT AGP [Radeon HD 2600 XT AGP] [1002:9586] (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited Device [174b:0028]
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
Memory at e0000000 (32-bit, prefetchable) [size=256M]
I/O ports at e000 [size=256]
Memory at fbf00000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at fbe00000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] AGP version 3.0
Kernel driver in use: radeon

Thanks in advance.
higuita

Signature · 9 lines
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 20 lines · Daniel Mota Leite
Quoted 5 lines · Alex Deucher
Quoted 3 lines · Daniel Mota Leite
[   12.359671] == power state 1 ==
[   12.359726]  ui class: performance
[   12.359824]  internal class: ovrdrv

(...)

Quoted 3 lines
Quoted 3 lines
[   12.360442] == power state 2 ==
[   12.360497]  ui class: none
[   12.360594]  internal class: none

(...)

Quoted 6 lines
Quoted 4 lines

As you can see, the driver choose the performance profile, but
that one is limited to 400MHz, half of what this card can do. Of course i want to be able jump the GPU to 800MHz. So is there any easy way to choose the power state 2 instead of power state 1?

We'll probably need to add a quirk for your card. Can you send me the output of lspci -vnn for the GPU?

Quoted 8 lines

Please note that the original card firmware had all powerstates
the same, i had used rbe (http://www.techpowerup.com/rbe/) to change then to the current frequencies. In that app, the powerstate 1 is called battery and the powerstate 2 is called performance.

I can switch the two and reflash, but to me seems logic that one
can manually choose what powerstate to use if needed, just like the powerlevels (excluding the middle powerlevel problem)

You'll need to fix the power state to be flagged as performance.

Alex

Quoted 26 lines

Here is the output:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RV 630 XT AGP [Radeon HD 2600 XT AGP] [1002:9586] (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited Device [174b:0028]
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
Memory at e0000000 (32-bit, prefetchable) [size=256M]
I/O ports at e000 [size=256]
Memory at fbf00000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at fbe00000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] AGP version 3.0
Kernel driver in use: radeon

Thanks in advance.
higuita
--
Naturally the common people don't want war... but after all it is the leaders of a country who determine the policy, and it is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in every country.
-- Hermann Goering, Nazi and war criminal, 1883-1946

#4 lore raw
Quoted 9 lines · Alex Deucher

On Sat, Oct 19, 2013 at 10:15 PM, Daniel Mota Leite

Quoted 6 lines

to the current frequencies. In that app, the powerstate 1 is called battery and the powerstate 2 is called performance.

I can switch the two and reflash, but to me seems logic that one
can manually choose what powerstate to use if needed, just like the powerlevels (excluding the middle powerlevel problem)

You'll need to fix the power state to be flagged as performance.

Ok, i didn't do that already because the different powerstate names
that the rbe and the dpm read from the firmware (battery and performance vs performance and "none" for powerstate 1 and 2 respectively ). Please note that i can change the powerstate values, but not their names.

Can this be a bug in reading the powerstates? if not, i will reflash
the firmware.

Also, how about que question about the middle power level? how to
force it? low and high works, but mid or middle do not.

Thanks again

higuita