On Fri, Nov 17, 2006 at 05:17:00PM +1100, Benjamin Herrenschmidt wrote: > > radeonfb is still using its own code for saving and restoring PCI > > registers; I'm in the process of fixing it up to use proper PCI > > subsystem calls. That will hopefully work better. > > > > It's possible there's a good reason (other than "nobody's ported it over > > yet") that the radeonfb driver is doing it manually, but I don't know > > why that would be the case. > > Well, radeonfb has code to bring back some cards from D2 or D3 cold (or > hard reset). It differenciates those states by checking if the config > space has been trashed. We should try to find out some better way. The d2 vs d3 is determined by chipset in advance -- powermacs and some thinkpads use d2, and everyone else uses d3. On resume, we check that same flag, and restore differently. We only checked the config space on D3 resume, and restored everything if the first byte was trashed.. If I understand what you're saying correctly, if we re-write a valid set of pci registers, we'll trash the radeon state? Why _wouldn't_ a D3 resume be trashed? - Solomon -- Solomon Peachy pizza at shaftnet dot org Melbourne, FL ^^ (mail/jabber/gtalk) ^^ Quidquid latine dictum sit, altum viditur. ICQ: 1318344
Attachment:
pgpEu3ODc8Q5X.pgp
Description: PGP signature
- Follow-Ups:
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- References:
- RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: "Christian Hoffmann" <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: "Rafael J. Wysocki" <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: Christian Hoffmann <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: "Rafael J. Wysocki" <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: Stuffed Crust <[email protected]>
- Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- From: Benjamin Herrenschmidt <[email protected]>
- RE: Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- Prev by Date: Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace
- Next by Date: Re: [-mm patch] remove drivers/pci/search.c:pci_find_device_reverse()
- Previous by thread: Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- Next by thread: Re: [Linux-fbdev-devel] Fwd: [Suspend-devel] resume not working on acer ferrari 4005 with radeonfb enabled
- Index(es):