[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-04 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #16 from Christian Birchinger  ---
I also had a hard lockup having the machine running over night. Too bad i found
nothing in the syslog.

A small detail appeard though: When the monitor is off (dpms standby), it
starts changing power states.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-04 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Christian Birchinger  changed:

   What|Removed |Added

 CC||joker at netswarm.net

--- Comment #15 from Christian Birchinger  ---
I think i have the same problem using the kernel version 3.11-rc3+ (git version
incl. latest drm-fixes)

I'm also using a 5770 (MSI Radeon HD 5770 Hawk) graphics card.

I get the same error messages (write error: Invalid argument)
when echoing the values into power_dpm_force_performance_level.

During idle (XFCE with or without composite), it remains on power level 2:

# cat /sys/kernel/debug/dri/0/radeon_pm_info
uvdvclk: 0 dclk: 0
power level 2sclk: 87500 mclk: 12 vddc: 1200 vddci: 1100
(Temperature is around 48C)


When playing a video, the states change (card gets cooler):

# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 1sclk: 4 mclk: 9 vddc: 950 vddci: 1100
# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 2sclk: 4 mclk: 9 vddc: 950 vddci: 1100
# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 0sclk: 4 mclk: 9 vddc: 950 vddci: 1100
(Temperature is around 44C)


The Windows driver brings the temperature down to 37C in idle.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #16 from Christian Birchinger  ---
I also had a hard lockup having the machine running over night. Too bad i found
nothing in the syslog.

A small detail appeard though: When the monitor is off (dpms standby), it
starts changing power states.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Christian Birchinger  changed:

   What|Removed |Added

 CC||jo...@netswarm.net

--- Comment #15 from Christian Birchinger  ---
I think i have the same problem using the kernel version 3.11-rc3+ (git version
incl. latest drm-fixes)

I'm also using a 5770 (MSI Radeon HD 5770 Hawk) graphics card.

I get the same error messages (write error: Invalid argument)
when echoing the values into power_dpm_force_performance_level.

During idle (XFCE with or without composite), it remains on power level 2:

# cat /sys/kernel/debug/dri/0/radeon_pm_info
uvdvclk: 0 dclk: 0
power level 2sclk: 87500 mclk: 12 vddc: 1200 vddci: 1100
(Temperature is around 48C)


When playing a video, the states change (card gets cooler):

# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 1sclk: 4 mclk: 9 vddc: 950 vddci: 1100
# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 2sclk: 4 mclk: 9 vddc: 950 vddci: 1100
# cat /sys/kernel/debug/dri/64/radeon_pm_info
uvdvclk: 5 dclk: 4
power level 0sclk: 4 mclk: 9 vddc: 950 vddci: 1100
(Temperature is around 44C)


The Windows driver brings the temperature down to 37C in idle.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-02 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #14 from Tobias Droste  ---
I changed rv770_smc.c to this: http://pastebin.com/eMzfrAaZ, but there aren't
any message in dmesg after booting.

'echo low > power_dpm_force_performance_level' fails, but is also not printing
something to dmesg. 
Changing from 1 monitor to 2 and back is also not printing something to dmesg.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #14 from Tobias Droste  ---
I changed rv770_smc.c to this: http://pastebin.com/eMzfrAaZ, but there aren't
any message in dmesg after booting.

'echo low > power_dpm_force_performance_level' fails, but is also not printing
something to dmesg. 
Changing from 1 monitor to 2 and back is also not printing something to dmesg.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #13 from Tobias Droste  ---
The only active component is kwin with compositing. 
But even if I disable compositing and don't touch the mouse or keyboard for a
while the state doesn't change. 

I also doubt that's the problem because

# echo high > power_dpm_force_performance_level

gives 

bash: echo: write error: Invalid argument

with 2 monitors attached and works fine with 1 monitor.

Maybe a weird bug in the bios? But the card works fine with catalyst in
windows.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-01 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #12 from Alex Deucher  ---
Do you have any sort of background animations, compute jobs, or anything like
that running?  I have a very similar 5770, and I can't reproduce the issue. 
The multi-monitor state works fine here.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #13 from Tobias Droste  ---
The only active component is kwin with compositing. 
But even if I disable compositing and don't touch the mouse or keyboard for a
while the state doesn't change. 

I also doubt that's the problem because

# echo high > power_dpm_force_performance_level

gives 

bash: echo: write error: Invalid argument

with 2 monitors attached and works fine with 1 monitor.

Maybe a weird bug in the bios? But the card works fine with catalyst in
windows.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-08-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #12 from Alex Deucher  ---
Do you have any sort of background animations, compute jobs, or anything like
that running?  I have a very similar 5770, and I can't reproduce the issue. 
The multi-monitor state works fine here.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #11 from Tobias Droste  ---
Interesting fact #3:

it's also working if I only attach 1 monitor!

So it looks like power state 1, 2 and 4 are working correctly and power state 3
(no uvd and two monitors attached) is broken.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #10 from Tobias Droste  ---
Interesting fact #2:

# echo low > power_dpm_force_performance_level

works with UVD running!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #9 from Tobias Droste  ---
No.

It seems to work good as soon as the power state switches to a state with UVD
(jumping from 0 to 2 based on load). But without UVD running it stays on power
level 2 as soon as it lands there.

So it goes (ps = power state, pl = power level):

ps(non-uvd) pl2 -> ps(uvd) pl2 -> ps(uvd) pl0 -> ps(uvd) pl1 -> ps(uvd) pl0 ->
ps(non-uvd) pl0

it stays at this until something is rendering in 3D and goes to pl2. 

But when the 3D rendering stops it doesn't go back to pl0 or pl1. So it really
seems like it's stuck there in this power state.

and this is still happening:
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #8 from Alex Deucher  ---
Does this patch help?

diff --git a/drivers/gpu/drm/radeon/cypress_dpm.c
b/drivers/gpu/drm/radeon/cypress_dpm.c
index 9bcdd17..1acbddb 100644
--- a/drivers/gpu/drm/radeon/cypress_dpm.c
+++ b/drivers/gpu/drm/radeon/cypress_dpm.c
@@ -2113,7 +2113,7 @@ int cypress_dpm_init(struct radeon_device *rdev)
(rdev->family == CHIP_HEMLOCK))
pi->gfx_clock_gating = false;
else
-   pi->gfx_clock_gating = true;
+   pi->gfx_clock_gating = false;//true;

pi->mg_clock_gating = true;
pi->mgcgtssm = true;

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #7 from Tobias Droste  ---
Created attachment 107045
  --> https://bugzilla.kernel.org/attachment.cgi?id=107045&action=edit
dmesg | grep -iE "drm|radeon|power|uvd"

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #6 from Alex Deucher  ---
Please attach your dmesg output with the latest drm bits.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Tobias Droste  changed:

   What|Removed |Added

 Kernel Version|3.10-drm-next-3.11  |drm-fixes-3.11

--- Comment #5 from Tobias Droste  ---
In case you are wondering if this was somehow fixed with your latest patches:
It wasn't ;-)

Good news is: 
No lockups!

Bad news: 
It's still not automatically switching power levels.
The only way to get it into a lower power level is to run a small video with a
player using UVD. After closing the player the power level goes to 0. But as
soon as something needs some more power the level goes back to 2 and stays
there, even when the load is low again.

and this is still happening:
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #11 from Tobias Droste  ---
Interesting fact #3:

it's also working if I only attach 1 monitor!

So it looks like power state 1, 2 and 4 are working correctly and power state 3
(no uvd and two monitors attached) is broken.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #10 from Tobias Droste  ---
Interesting fact #2:

# echo low > power_dpm_force_performance_level

works with UVD running!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #9 from Tobias Droste  ---
No.

It seems to work good as soon as the power state switches to a state with UVD
(jumping from 0 to 2 based on load). But without UVD running it stays on power
level 2 as soon as it lands there.

So it goes (ps = power state, pl = power level):

ps(non-uvd) pl2 -> ps(uvd) pl2 -> ps(uvd) pl0 -> ps(uvd) pl1 -> ps(uvd) pl0 ->
ps(non-uvd) pl0

it stays at this until something is rendering in 3D and goes to pl2. 

But when the 3D rendering stops it doesn't go back to pl0 or pl1. So it really
seems like it's stuck there in this power state.

and this is still happening:
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #8 from Alex Deucher  ---
Does this patch help?

diff --git a/drivers/gpu/drm/radeon/cypress_dpm.c
b/drivers/gpu/drm/radeon/cypress_dpm.c
index 9bcdd17..1acbddb 100644
--- a/drivers/gpu/drm/radeon/cypress_dpm.c
+++ b/drivers/gpu/drm/radeon/cypress_dpm.c
@@ -2113,7 +2113,7 @@ int cypress_dpm_init(struct radeon_device *rdev)
(rdev->family == CHIP_HEMLOCK))
pi->gfx_clock_gating = false;
else
-   pi->gfx_clock_gating = true;
+   pi->gfx_clock_gating = false;//true;

pi->mg_clock_gating = true;
pi->mgcgtssm = true;

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #7 from Tobias Droste  ---
Created attachment 107045
  --> https://bugzilla.kernel.org/attachment.cgi?id=107045&action=edit
dmesg | grep -iE "drm|radeon|power|uvd"

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #6 from Alex Deucher  ---
Please attach your dmesg output with the latest drm bits.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Tobias Droste  changed:

   What|Removed |Added

 Kernel Version|3.10-drm-next-3.11  |drm-fixes-3.11

--- Comment #5 from Tobias Droste  ---
In case you are wondering if this was somehow fixed with your latest patches:
It wasn't ;-)

Good news is: 
No lockups!

Bad news: 
It's still not automatically switching power levels.
The only way to get it into a lower power level is to run a small video with a
player using UVD. After closing the player the power level goes to 0. But as
soon as something needs some more power the level goes back to 2 and stays
there, even when the load is low again.

and this is still happening:
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #4 from Alex Deucher  ---
It doesn't look like it's working correctly to begin with.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #3 from Tobias Droste  ---
Anything I can do to reset it? Or provide debug information? A restart doesn't
seem to help.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Alex Deucher  changed:

   What|Removed |Added

 CC||alexdeucher at gmail.com

--- Comment #2 from Alex Deucher  ---
You're doing it correctly, but the power management hardware seems to be in a
bad state on your system.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #1 from Tobias Droste  ---
I just tried the most recent branch with the "force performance level"
framework and the result is this:

# echo auto > power_dpm_force_performance_level
bash: echo: write error: Invalid argument
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument
# echo high > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

Has this something to do with the powerlevel not switching thing? Or am I doing
something wrong?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #4 from Alex Deucher  ---
It doesn't look like it's working correctly to begin with.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #3 from Tobias Droste  ---
Anything I can do to reset it? Or provide debug information? A restart doesn't
seem to help.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

Alex Deucher  changed:

   What|Removed |Added

 CC||alexdeuc...@gmail.com

--- Comment #2 from Alex Deucher  ---
You're doing it correctly, but the power management hardware seems to be in a
bad state on your system.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 60523] Lockup with radeon DPM on Radeon HD5770 (Juniper)

2013-07-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60523

--- Comment #1 from Tobias Droste  ---
I just tried the most recent branch with the "force performance level"
framework and the result is this:

# echo auto > power_dpm_force_performance_level
bash: echo: write error: Invalid argument
# echo low > power_dpm_force_performance_level
bash: echo: write error: Invalid argument
# echo high > power_dpm_force_performance_level
bash: echo: write error: Invalid argument

Has this something to do with the powerlevel not switching thing? Or am I doing
something wrong?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel