linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-11 11:36 Christian Hoffmann
  2006-11-11 22:49 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-11 11:36 UTC (permalink / raw)
  To: Andrew Morton, Benjamin Herrenschmidt, Solomon Peachy
  Cc: Rafael J. Wysocki, linux-fbdev-devel, LKML, Christian, Hoffmann



-----Original Message-----
From: Andrew Morton [mailto:akpm@osdl.org] 
Sent: Saturday, November 11, 2006 3:03 AM
To: Benjamin Herrenschmidt; Solomon Peachy
Cc: Rafael J. Wysocki; linux-fbdev-devel@lists.sourceforge.net; LKML;
Christian@ogre.sisk.pl; Hoffmann@albercik.sisk.pl; Christian Hoffmann
Subject: Re: Fwd: [Suspend-devel] resume not working on acer ferrari
4005 with radeonfb enabled

On Sat, 11 Nov 2006 12:49:06 +1100
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> On Sat, 2006-11-11 at 00:31 +0100, Rafael J. Wysocki wrote:
> > Hi,
> > 
> > We've just got the appended report.  Could you please have a look at
this?
> 
> There are many possible reasons for that. The most likely is that the
> BIOS isn't bringing the chip back on resume, causing radeonfb to
> crash when trying to access it.
> 

I assume from this:

> > Greetings,
> > Rafael
> > 
> > 
> > ----------  Forwarded Message  ----------
> > 
> > Subject: [Suspend-devel] resume not working on acer ferrari 4005
with radeonfb enabled
> > Date: Friday, 10 November 2006 20:44
> > From: "Christian Hoffmann"
<Christian.Hoffmann@wallstreetsystems.com>
> > To: suspend-devel@lists.sourceforge.net
> > 
> > Hello,
> >  
> > when I have radeonfb enabled, my laptop (X700 ati mobility) doesnt
resume
> > anymore. Screen stays black and nothing works anymore, no capslock
light, no
    ^^^^^^^

>that it's a regression, from some unknown-previous-kernel-version.



> > ctrl alt sysreq b etc. I tried all kind of things vbetool, passing
> > acpi_sleep=s3_bios,s3_mode to the kernel. Nothing seems to work.
> >  
> > You can see dmesg output and lspci -vv output here 
> >  http://christianhoffmann.de/temp/radeon.log
> >  http://christianhoffmann.de/temp/lspci.log
> >  
> > Thanks a lot for any input.
> >  
> > Chris
> >  
> > PS: I use kernel 2.18.1 + patch for radeonfb from
> > http://bugzilla.kernel.org/attachment.cgi?id=9408&action=view

>That's http://www.shaftnet.org/~pizza/radeonfb-atom-2.6.18-v6a.diff.

>What happens when that patch isn't applied?


Then the radeonfb doesn't kick in at all (guess some pci ids are added
in that patch).

BTW: resume/suspend works ok if I have the vesa fb enabled.

Chris






Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-13 22:08 Christian Hoffmann
  2006-11-13 23:08 ` Rafael J. Wysocki
  0 siblings, 1 reply; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-13 22:08 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Pavel Machek, Benjamin Herrenschmidt, Andrew Morton,
	Solomon Peachy, linux-fbdev-devel, LKML

 

> -----Original Message-----
> From: Rafael J. Wysocki [mailto:rjw@sisk.pl] 
> Sent: Monday, November 13, 2006 3:06 PM
> To: Christian Hoffmann
> Cc: Pavel Machek; Benjamin Herrenschmidt; Andrew Morton; 
> Solomon Peachy; linux-fbdev-devel@lists.sourceforge.net; LKML
> Subject: Re: Fwd: [Suspend-devel] resume not working on acer 
> ferrari 4005 with radeonfb enabled
> 
> On Monday, 13 November 2006 11:51, Christian Hoffmann wrote:
> > 
> > > -----Original Message-----
> > > From: Pavel Machek [mailto:pavel@ucw.cz]
> > > Sent: Sunday, November 12, 2006 1:14 PM
> > > To: Benjamin Herrenschmidt
> > > Cc: Christian Hoffmann; Andrew Morton; Solomon Peachy; Rafael J. 
> > > Wysocki; linux-fbdev-devel@lists.sourceforge.net; LKML; 
> > > Christian@ogre.sisk.pl; Hoffmann@albercik.sisk.pl
> > > Subject: Re: Fwd: [Suspend-devel] resume not working on 
> acer ferrari 
> > > 4005 with radeonfb enabled
> > > 
> > > Hi!
> > > 
> > > > > Then the radeonfb doesn't kick in at all (guess some 
> pci ids are 
> > > > > added in that patch).
> > > > > 
> > > > > BTW: resume/suspend works ok if I have the vesa fb enabled.
> > > > 
> > > > In that case (vesafb), when does the screen come back
> > > precisely ? Do
> > > > you get console mode back and then X ? Or it only comes 
> back when 
> > > > going back to X ? Do you have some userland-type vbetool
> > > thingy that
> > > > bring it back ?
> > > 
> > > He's using s3_bios+s3_mode, so kernel does some BIOS 
> calls to reinit 
> > > the video. It should come out in text mode, too.
> > > 
> > > Christian, can you unload radeonfb before suspend/reload it after 
> > > resume?
> > 
> > Will it work if radeonfb is compiled as module? I think I 
> had problems 
> > with that, but I'll try again.
> > 
> > > 
> > > Next possibility is setting up serial console and adding some 
> > > printks to radeon...
> > 
> > Unfortunatly, the laptop doesn't have serial port. I tried to get a 
> > USB device (pocketpc) read the USB serial, but I only partially 
> > succeeded. I can pass console=ttyUSB0 to the kernel and 
> load the ipaq 
> > serial console driver as it oopses. I am able to echo strings to 
> > /dev/ttyUSB0  and read them on the ipaq, but I am not able to 
> > "deviate" the kernel messages to that port. Any hints on how to do 
> > that would be very appreciated, I didn't find anything 
> usefull on the 
> > web. (I tried with setconsole /dev/ttyUSB0 but it gives error msg 
> > about device busy or something)
> 
> Would it be practicable to use netconsole on your box?  If 
> so, it should work.
> 
I tried netconsole, and it somehow works, but when suspending it says in
an "infinite" loop:

unregister_netdevice: waiting for eth2 to become free. Usage count = 1

And then it never goes to sleep. 
BTW: same if I use radeonfb as a module and try to blacklist this
module. It complains that radeonfb is still in use. 
Arghhh :)

Chris


Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-13 10:51 Christian Hoffmann
  2006-11-13 14:06 ` Rafael J. Wysocki
  2006-11-13 17:07 ` Pavel Machek
  0 siblings, 2 replies; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-13 10:51 UTC (permalink / raw)
  To: Pavel Machek, Benjamin Herrenschmidt
  Cc: Andrew Morton, Solomon Peachy, Rafael J. Wysocki,
	linux-fbdev-devel, LKML, Christian, Hoffmann


> -----Original Message-----
> From: Pavel Machek [mailto:pavel@ucw.cz] 
> Sent: Sunday, November 12, 2006 1:14 PM
> To: Benjamin Herrenschmidt
> Cc: Christian Hoffmann; Andrew Morton; Solomon Peachy; Rafael 
> J. Wysocki; linux-fbdev-devel@lists.sourceforge.net; LKML; 
> Christian@ogre.sisk.pl; Hoffmann@albercik.sisk.pl
> Subject: Re: Fwd: [Suspend-devel] resume not working on acer 
> ferrari 4005 with radeonfb enabled
> 
> Hi!
> 
> > > Then the radeonfb doesn't kick in at all (guess some pci ids are 
> > > added in that patch).
> > > 
> > > BTW: resume/suspend works ok if I have the vesa fb enabled.
> > 
> > In that case (vesafb), when does the screen come back 
> precisely ? Do 
> > you get console mode back and then X ? Or it only comes back when 
> > going back to X ? Do you have some userland-type vbetool 
> thingy that 
> > bring it back ?
> 
> He's using s3_bios+s3_mode, so kernel does some BIOS calls to 
> reinit the video. It should come out in text mode, too.
> 
> Christian, can you unload radeonfb before suspend/reload it 
> after resume?

Will it work if radeonfb is compiled as module? I think I had problems
with that, but I'll try again.

> 
> Next possibility is setting up serial console and adding some 
> printks to radeon...

Unfortunatly, the laptop doesn't have serial port. I tried to get a USB
device (pocketpc) read the USB serial, but I only partially succeeded. I
can pass console=ttyUSB0 to the kernel and load the ipaq serial console
driver as it oopses. I am able to echo strings to /dev/ttyUSB0  and read
them on the ipaq, but I am not able to "deviate" the kernel messages to
that port. Any hints on how to do that would be very appreciated, I
didn't find anything usefull on the web. (I tried with setconsole
/dev/ttyUSB0 but it gives error msg about device busy or something) 

Chris


Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-11 23:02 Christian Hoffmann
  0 siblings, 0 replies; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-11 23:02 UTC (permalink / raw)
  Cc: Andrew Morton, linux-fbdev-devel, Christian, LKML,
	Rafael J. Wysocki, Solomon Peachy, Hoffmann


-----Original Message-----
From:	linux-fbdev-devel-bounces@lists.sourceforge.net on behalf of Benjamin Herrenschmidt
Sent:	Sat 11/11/2006 11:49 PM
To:	Christian Hoffmann
Cc:	Andrew Morton; linux-fbdev-devel@lists.sourceforge.net; Christian@ogre.sisk.pl; LKML; Rafael J. Wysocki; Solomon Peachy; Hoffmann@albercik.sisk.pl
Subject:	Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005	with radeonfb enabled


> Then the radeonfb doesn't kick in at all (guess some pci ids are added
> in that patch).
> 
> BTW: resume/suspend works ok if I have the vesa fb enabled.

In that case (vesafb), when does the screen come back precisely ? Do you
get console mode back and then X ? Or it only comes back when going back
to X ? Do you have some userland-type vbetool thingy that bring it
back ?

Ben.

---
With vesafb X comes back even without vbetool. The console has to be reactivated by switching back and forth between X and console or by using vbetool. But it never completely freezes the machine.

Chris




Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-11 14:27 Christian Hoffmann
  0 siblings, 0 replies; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-11 14:27 UTC (permalink / raw)
  To: Stuffed Crust, linux-fbdev-devel
  Cc: Rafael J. Wysocki, LKML, Christian, Hoffmann

Hello,
yes, it resumes OK, when I don't have radeonfb and pass kernel options: irqpoll acpi_irq_balance noapic (found that on the gentoo acer ferrari wiki here: http://gentoo-wiki.com/HARDWARE_Gentoo_Acer_Ferrari_4005WLMi_Manual
(maybe these issues should be reported to some kernel developers as well)

I use a patched dsdt but I cant remember where I got it from. I uploaded it to: http://christianhoffmann.de/temp/dsdt2.dsl

Yes, I use the free radeon xorg driver at the same time and X is running when suspending. Ill try without.

I dont know how to get more traces than from dmesg and /var/log/messages. Seems that the kernel params are not shown.
 

kernel /boot/kernel-genkernel-x86_64-2.6.18-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda
3 udev video=radeonfb splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 quiet irqpoll acpi_irq_balance noapic pc
i=assign-busses

initrd /boot/initramfs-genkernel-x86_64-2.6.18-gentoo-r1


Chris

-----Original Message-----
From:	Stuffed Crust [mailto:pizza@shaftnet.org]
Sent:	Sat 11/11/2006 2:45 PM
To:	linux-fbdev-devel@lists.sourceforge.net
Cc:	Rafael J. Wysocki; Christian Hoffmann; LKML; Christian@ogre.sisk.pl; Hoffmann@albercik.sisk.pl
Subject:	Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005	with radeonfb enabled

On Sat, Nov 11, 2006 at 12:49:06PM +1100, Benjamin Herrenschmidt wrote:
> There are many possible reasons for that. The most likely is that the
> BIOS isn't bringing the chip back on resume, causing radeonfb to
> crash when trying to access it.

I have the same laptop, and it also crashes for me on resume when 
radeonfb is loaded.  However, it also crashes on a resume when radeonfb 
*isn't* loaded, so I hardly considered that a regression.  :)

> On Thu, Nov 09, 2006 at 07:50:17PM +0100, Christian Hoffmann wrote:
> > when I have radeonfb enabled, my laptop (X700 ati mobility) doesnt resume
> > anymore. Screen stays black and nothing works anymore, no capslock light, no
> > ctrl alt sysreq b etc. I tried all kind of things vbetool, passing
> > acpi_sleep=s3_bios,s3_mode to the kernel. Nothing seems to work.

...but it used to work?  Now that's interesting; this is the first 
report I've heard of a suspend-to-RAM (and subsequent resumes) working 
on that machine.

> > You can see dmesg output and lspci -vv output here 
> >  http://christianhoffmann.de/temp/radeon.log
> >  http://christianhoffmann.de/temp/lspci.log

Can you send the *full* bootup log, including the command lines you 
used?

I noticed that you have the 'radeon' drm module loading too; that may be 
causing problems.  Are you running X when you try to suspend/resume?

Also, since you're using a Ferarri 4000, are you using the stock 3A23 
BIOS/DSDT, or are you using the patched DSDT from http://acpi.sf.net?

 - Solomon
-- 
Solomon Peachy        		       pizza at shaftnet dot org	 
Melbourne, FL                          ^^ (mail/jabber/gtalk) ^^
Quidquid latine dictum sit, altum viditur.          ICQ: 1318344





Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-11 10:17 Christian Hoffmann
  0 siblings, 0 replies; 30+ messages in thread
From: Christian Hoffmann @ 2006-11-11 10:17 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Rafael J. Wysocki
  Cc: linux-fbdev-devel, LKML, Christian, Hoffmann


>There are many possible reasons for that. The most likely is that the
>BIOS isn't bringing the chip back on resume, causing radeonfb to
>crash when trying to access it.

>Ben.
Is there any possible workaround for this, or some tracing possible so
we can prove the hypothesis?

Chris



Privileged or confidential information may be contained in this message.  If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses.  Statements in this message or attachments that do not relate to the business of  Wall Street Systems are neither given nor endorsed by the company or its Directors.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
@ 2006-11-10 23:31 Rafael J. Wysocki
  2006-11-11  1:49 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 30+ messages in thread
From: Rafael J. Wysocki @ 2006-11-10 23:31 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: linux-fbdev-devel, LKML, Christian, Hoffmann, Christian.Hoffmann

Hi,

We've just got the appended report.  Could you please have a look at this?

Greetings,
Rafael


----------  Forwarded Message  ----------

Subject: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
Date: Friday, 10 November 2006 20:44
From: "Christian Hoffmann" <Christian.Hoffmann@wallstreetsystems.com>
To: suspend-devel@lists.sourceforge.net

Hello,
 
when I have radeonfb enabled, my laptop (X700 ati mobility) doesnt resume
anymore. Screen stays black and nothing works anymore, no capslock light, no
ctrl alt sysreq b etc. I tried all kind of things vbetool, passing
acpi_sleep=s3_bios,s3_mode to the kernel. Nothing seems to work.
 
You can see dmesg output and lspci -vv output here 
 http://christianhoffmann.de/temp/radeon.log
 http://christianhoffmann.de/temp/lspci.log
 
Thanks a lot for any input.
 
Chris
 
PS: I use kernel 2.18.1 + patch for radeonfb from
http://bugzilla.kernel.org/attachment.cgi?id=9408&action=view

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2006-11-17 21:59 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-11 11:36 Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled Christian Hoffmann
2006-11-11 22:49 ` Benjamin Herrenschmidt
2006-11-12 12:13   ` Pavel Machek
2006-11-12 12:28     ` Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2006-11-13 22:08 Christian Hoffmann
2006-11-13 23:08 ` Rafael J. Wysocki
2006-11-14 18:51   ` Christian Hoffmann
2006-11-14 21:47   ` Christian Hoffmann
2006-11-14 22:07     ` Benjamin Herrenschmidt
2006-11-15  0:54       ` Christian Hoffmann
2006-11-15  1:48         ` Benjamin Herrenschmidt
2006-11-15 10:09           ` Rafael J. Wysocki
2006-11-16 22:17             ` Christian Hoffmann
2006-11-16 22:44               ` Rafael J. Wysocki
2006-11-17  5:27                 ` [Linux-fbdev-devel] " Stuffed Crust
2006-11-17  6:17                   ` Benjamin Herrenschmidt
2006-11-17 14:36                     ` [Linux-fbdev-devel] " Stuffed Crust
2006-11-17 21:57                       ` Benjamin Herrenschmidt
2006-11-17  6:07               ` [Linux-fbdev-devel] " Stuffed Crust
2006-11-17 15:41                 ` Stuffed Crust
2006-11-17 20:33                   ` Christian Hoffmann
2006-11-17 21:59                     ` Benjamin Herrenschmidt
2006-11-14 22:56     ` Pavel Machek
2006-11-14 22:57       ` [Linux-fbdev-devel] " Rafael J. Wysocki
2006-11-14 23:12         ` Pavel Machek
2006-11-13 10:51 Christian Hoffmann
2006-11-13 14:06 ` Rafael J. Wysocki
2006-11-13 17:07 ` Pavel Machek
2006-11-11 23:02 Christian Hoffmann
2006-11-11 14:27 Christian Hoffmann
2006-11-11 10:17 Christian Hoffmann
2006-11-10 23:31 Rafael J. Wysocki
2006-11-11  1:49 ` Benjamin Herrenschmidt
2006-11-11  2:02   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).