[Regression, post-rc1] Multiple issues after enabling SetVoltage on rs780m

2010-06-07 Thread Rafael J. Wysocki
Hi Alex,

Your commit 9349d5cc920c10845693f906ebd67f394f1d0d04
(drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen) has caused my test-bed
Acer Ferrari One to behave quite unreliably.  The symptoms are:

- the system hangs hard (~ 50% of the time) when starting Xorg
- the system hangs hard (~ 50% of the time) when stopping Xorg during system
  reboot
- the system sometimes hangs hard during suspend to RAM

These problems are not reproducible with the commit above reverted.

Below is the information about the graphics adapter from lspci.

Rafael



01:05.0 VGA compatible controller: ATI Technologies Inc RS780M/RS780MN [Radeon 
HD 3200 Graphics] (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device 029e
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- 
MAbort- SERR- PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at a000 (32-bit, prefetchable) [size=256M]
Region 1: I/O ports at 9000 [size=256]
Region 2: Memory at 9fdf (32-bit, non-prefetchable) [size=64K]
Region 5: Memory at 9fe0 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at unassigned [disabled]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Address:   Data: 
Kernel driver in use: radeon

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Regression, post-rc1] Multiple issues after enabling SetVoltage on rs780m

2010-06-07 Thread Dave Airlie
On Mon, Jun 7, 2010 at 7:29 PM, Rafael J. Wysocki r...@sisk.pl wrote:
 Hi Alex,

 Your commit 9349d5cc920c10845693f906ebd67f394f1d0d04
 (drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen) has caused my 
 test-bed
 Acer Ferrari One to behave quite unreliably.  The symptoms are:

 - the system hangs hard (~ 50% of the time) when starting Xorg
 - the system hangs hard (~ 50% of the time) when stopping Xorg during system
  reboot
 - the system sometimes hangs hard during suspend to RAM

 These problems are not reproducible with the commit above reverted.

 Below is the information about the graphics adapter from lspci.

Reverting that commit on master fixes it?

that commit touches code paths in rv770 and evergreen that in no way
should affect that chipset which is an rs780, so takes the r600 paths.

are you sure its not 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a?

Dave.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Regression, post-rc1] Multiple issues after enabling SetVoltage on rs780m

2010-06-07 Thread Alex Deucher
On Mon, Jun 7, 2010 at 6:15 AM, Dave Airlie airl...@gmail.com wrote:
 On Mon, Jun 7, 2010 at 7:29 PM, Rafael J. Wysocki r...@sisk.pl wrote:
 Hi Alex,

 Your commit 9349d5cc920c10845693f906ebd67f394f1d0d04
 (drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen) has caused my 
 test-bed
 Acer Ferrari One to behave quite unreliably.  The symptoms are:

 - the system hangs hard (~ 50% of the time) when starting Xorg
 - the system hangs hard (~ 50% of the time) when stopping Xorg during system
  reboot
 - the system sometimes hangs hard during suspend to RAM

 These problems are not reproducible with the commit above reverted.

 Below is the information about the graphics adapter from lspci.

 Reverting that commit on master fixes it?

 that commit touches code paths in rv770 and evergreen that in no way
 should affect that chipset which is an rs780, so takes the r600 paths.

 are you sure its not 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a?

It should be that commit if it is indeed the voltage adjust.  That
said, I just took a closer look at the voltage adjust on newer IGPs
and unfortunately, it doesn't work the same as the discrete cards, so
for now we should disable it.  The attached patch should do the trick.
 There weren't any problems on my IGP chips, but they don't have a
SetVoltage table, so nothing is touching the hw.

Alex
From 8c055a2a5c0bd063fe2bf4797c585fd1cd59a673 Mon Sep 17 00:00:00 2001
From: Alex Deucher alexdeuc...@gmail.com
Date: Mon, 7 Jun 2010 11:35:53 -0400
Subject: [PATCH] drm/radeon/kms/pm: Disable voltage adjust on RS780/RS880

The vddc value in the power tables is not an actual voltage
like on discrete r6xx/r7xx/evergreen systems, but instead has
a symbolic meaning (e.g., NONE, LOW, HIGH, etc.).  See atombios.h

Most RS780/RS880 vbioses don't have a SetVoltage table anyway,
so it shouldn't be doing anything to the hardware at the moment.

I need to figure out how voltage is supposed to work on the newer
IGPs; until then, disable it.

Signed-off-by: Alex Deucher alexdeuc...@gmail.com
---
 drivers/gpu/drm/radeon/radeon_atombios.c |5 +
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 0616e39..5dd86b9 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -1841,10 +1841,7 @@ void radeon_atombios_get_power_modes(struct radeon_device *rdev)
 		/* skip invalid modes */
 		if (rdev-pm.power_state[state_index].clock_info[mode_index].sclk == 0)
 			continue;
-		rdev-pm.power_state[state_index].clock_info[mode_index].voltage.type =
-			VOLTAGE_SW;
-		rdev-pm.power_state[state_index].clock_info[mode_index].voltage.voltage =
-			clock_info-usVDDC;
+		/* voltage works differently on IGPs */
 		mode_index++;
 	} else if (ASIC_IS_DCE4(rdev)) {
 		struct _ATOM_PPLIB_EVERGREEN_CLOCK_INFO *clock_info =
-- 
1.7.0.1

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152


Andrew Morton a...@linux-foundation.org changed:

   What|Removed |Added

 CC||a...@linux-foundation.org
  Component|i386|Video(DRI - non Intel)
 AssignedTo|platform_i...@kernel-bugs.o |drivers_video-...@kernel-bu
   |sdl.org |gs.osdl.org
Product|Platform Specific/Hardware  |Drivers




--- Comment #4 from Andrew Morton a...@linux-foundation.org  2010-06-07 
19:52:21 ---
Thanks, I'll reassign this to DRI.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152





--- Comment #5 from San s...@plusnet.pl  2010-06-07 19:52:58 ---
Created an attachment (id=26691)
 -- (https://bugzilla.kernel.org/attachment.cgi?id=26691)
cat /proc/ioports

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152





--- Comment #6 from San s...@plusnet.pl  2010-06-07 19:53:27 ---
Created an attachment (id=26692)
 -- (https://bugzilla.kernel.org/attachment.cgi?id=26692)
sudo lspci -vvv

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152





--- Comment #7 from San s...@plusnet.pl  2010-06-07 20:00:30 ---
Created an attachment (id=26693)
 -- (https://bugzilla.kernel.org/attachment.cgi?id=26693)
My config file

Not sure if it is needed, but... 
It will be kernel's config used for test purposes.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152





--- Comment #8 from San s...@plusnet.pl  2010-06-07 20:08:39 ---
Created an attachment (id=26694)
 -- (https://bugzilla.kernel.org/attachment.cgi?id=26694)
cat /proc/cpuinfo

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel



[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152


San s...@plusnet.pl changed:

   What|Removed |Added

   Platform|All |i386




--- Comment #9 from San s...@plusnet.pl  2010-06-07 21:18:57 ---
I suggest changing 'Component' to 'Video (DRI - Intel)', since it is Intel's
GMA915

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16152] Lagging sound while closing/opening lid.

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16152


Andrew Morton a...@linux-foundation.org changed:

   What|Removed |Added

  Component|Video(DRI - non Intel)  |Video(DRI - Intel)
 AssignedTo|drivers_video-...@kernel-bu |drivers_video-dri-in...@ker
   |gs.osdl.org |nel-bugs.osdl.org




-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Regression, post-rc1] Multiple issues after enabling SetVoltage on rs780m

2010-06-07 Thread Rafael J. Wysocki
On Monday 07 June 2010, Alex Deucher wrote:
 On Mon, Jun 7, 2010 at 6:15 AM, Dave Airlie airl...@gmail.com wrote:
  On Mon, Jun 7, 2010 at 7:29 PM, Rafael J. Wysocki r...@sisk.pl wrote:
  Hi Alex,
 
  Your commit 9349d5cc920c10845693f906ebd67f394f1d0d04
  (drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen) has caused my 
  test-bed
  Acer Ferrari One to behave quite unreliably.  The symptoms are:
 
  - the system hangs hard (~ 50% of the time) when starting Xorg
  - the system hangs hard (~ 50% of the time) when stopping Xorg during 
  system
   reboot
  - the system sometimes hangs hard during suspend to RAM
 
  These problems are not reproducible with the commit above reverted.
 
  Below is the information about the graphics adapter from lspci.
 
  Reverting that commit on master fixes it?
 
  that commit touches code paths in rv770 and evergreen that in no way
  should affect that chipset which is an rs780, so takes the r600 paths.
 
  are you sure its not 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a?
 
 It should be that commit if it is indeed the voltage adjust.  That
 said, I just took a closer look at the voltage adjust on newer IGPs
 and unfortunately, it doesn't work the same as the discrete cards, so
 for now we should disable it.  The attached patch should do the trick.
  There weren't any problems on my IGP chips, but they don't have a
 SetVoltage table, so nothing is touching the hw.

I'm not sure if the adapter is a discrete one.

Anyway, my testing was done before commit
386f40c86d6c8d5b717ef20620af1a750d0dacb4 and I'm unable to reproduce the
problems with current -git, so they might be a fallout of the bug fixed by that
commit.

Thanks,
Rafael

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Regression, post-rc1] Multiple issues after enabling SetVoltage on rs780m

2010-06-07 Thread Dave Airlie
On Mon, 2010-06-07 at 23:37 +0200, Rafael J. Wysocki wrote:
 On Monday 07 June 2010, Alex Deucher wrote:
  On Mon, Jun 7, 2010 at 6:15 AM, Dave Airlie airl...@gmail.com wrote:
   On Mon, Jun 7, 2010 at 7:29 PM, Rafael J. Wysocki r...@sisk.pl wrote:
   Hi Alex,
  
   Your commit 9349d5cc920c10845693f906ebd67f394f1d0d04
   (drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen) has caused my 
   test-bed
   Acer Ferrari One to behave quite unreliably.  The symptoms are:
  
   - the system hangs hard (~ 50% of the time) when starting Xorg
   - the system hangs hard (~ 50% of the time) when stopping Xorg during 
   system
reboot
   - the system sometimes hangs hard during suspend to RAM
  
   These problems are not reproducible with the commit above reverted.
  
   Below is the information about the graphics adapter from lspci.
  
   Reverting that commit on master fixes it?
  
   that commit touches code paths in rv770 and evergreen that in no way
   should affect that chipset which is an rs780, so takes the r600 paths.
  
   are you sure its not 7ac9aa5a1f1b87adb69bcbec2b89e228f074103a?
  
  It should be that commit if it is indeed the voltage adjust.  That
  said, I just took a closer look at the voltage adjust on newer IGPs
  and unfortunately, it doesn't work the same as the discrete cards, so
  for now we should disable it.  The attached patch should do the trick.
   There weren't any problems on my IGP chips, but they don't have a
  SetVoltage table, so nothing is touching the hw.
 
 I'm not sure if the adapter is a discrete one.
 
 Anyway, my testing was done before commit
 386f40c86d6c8d5b717ef20620af1a750d0dacb4 and I'm unable to reproduce the
 problems with current -git, so they might be a fallout of the bug fixed by 
 that
 commit.
 

Yeah the sounded a lot more like the vt.c crapfest, since it was when
starting/stopping X.

Dave.



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 16127] Boot freeze on HP Compaq nx6325 (RS482) with Radeon KMS

2010-06-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=16127





--- Comment #6 from Jure Repinc jlp.b...@gmail.com  2010-06-07 23:20:54 ---
Yes, after applying this patch laptop boots again normaly. Thanks!

As for suspending/resuming:
Most of the time it suspends and resumes just fine. But in about 1 out of 5-10
tries the machine freezes, mostly when suspending, sometimes when comming back.
The screen just remains black. And I have a feeling that the chance of freezing
up is higher if I leave a DVD in the DVD drive and it spins it up/down while
resumning or suspending. But this is also the case on kernel 2.6.34. Not just
with 2.6.25-rc1. I should probably report another bug for this problem?

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are watching the assignee of the bug.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel