public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Radeon PM Support
@ 2004-08-05 17:52 Pallipadi, Venkatesh
       [not found] ` <88056F38E9E48644A0F562A38C64FB600289AE7C-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 54+ messages in thread
From: Pallipadi, Venkatesh @ 2004-08-05 17:52 UTC (permalink / raw)
  To: anib-La3J9u0raUk, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	stefandoesinger-RbZlAiThDcE

[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]


Does this addon patch (over the Ole's original patch) help?

This works with Radeon 9000M and frame buffer for me. This 
should also help any other graphics drivers which doesn't
implement their own suspend resume functions.

I just hope that this video reposting won't break any of the
already working systems :).

Thanks,
Venki

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>Alexander Bruder
>Sent: Thursday, August 05, 2004 10:15 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; stefandoesinger-RbZlAiThDcE@public.gmane.org
>Subject: Re: [ACPI] Radeon PM Support
>
>Hi,
>
>> Intel's new graphics chipset probably. Owners of Acer 
>Travelmate 60X told
>> me that the video doesn't come back. But in the these case 
>the whole system
>> locked up on resume, so we can't tell if the video resume works.
>
>it also happends for the 80x series (in my case 801Lcib) with 
>ATI Technologies 
>Inc Radeon R250 Lf [Radeon Mobility 9000] using the framebuffer. 
>"echo 3 > /proc/acpi/sleep" and "echo 4 > /proc/acpi/sleep" 
>doesn't work 
>because video doesn't come back as described by Stefan. The 
>only reaction is 
>the fan which runs like hell and doesn't stop. Same thing with 
>pmdisk and 
>suspend to disk ("echo -n disk > /sys/power/state"). All 
>tested with recent 
>kernels 2.6.7-2.6.8-rc3 .
>But with swsusp2 as the suspend to disk system  ("echo 
>> /proc/swsusp/activate" ) on a 2.6.7 kernel the video card 
>recovers!?! 
>I don't know much about the whole thing and why swsusp2 can 
>(help) recover(s) 
>the video card but perhaps it may help you.  
>
>
>Alexander
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by OSTG. Have you noticed the changes on
>Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
>one more big change to announce. We are now OSTG- Open Source 
>Technology
>Group. Come see the changes on the new OSTG site. www.ostg.com
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
>

[-- Attachment #2: videoresume-addon.patch --]
[-- Type: application/octet-stream, Size: 544 bytes --]

--- linux-2.6.7-s3//drivers/pci/pci-driver.c.org	2004-07-22 18:59:40.446392744 -0700
+++ linux-2.6.7-s3//drivers/pci/pci-driver.c	2004-07-22 18:59:52.473564336 -0700
@@ -334,8 +334,12 @@ static int pci_device_resume(struct devi
 	pci_set_power_state(pci_dev, 0);
 	if (drv && drv->resume)
 		drv->resume(pci_dev);
-	else
+	else {
 		pci_default_resume(pci_dev);
+        	/* If video device do a video repost */
+        	if ((pci_dev->class >> 16) == PCI_BASE_CLASS_DISPLAY)
+                	acpi_vgapost(pci_dev->devfn);
+	}
 
 
 	return 0;

^ permalink raw reply	[flat|nested] 54+ messages in thread
* RE: Re: Radeon PM Support
@ 2004-08-19 14:03 Pallipadi, Venkatesh
  2004-08-19 15:37 ` Aman Gupta
  2004-08-19 15:54 ` Stefan Dösinger
  0 siblings, 2 replies; 54+ messages in thread
From: Pallipadi, Venkatesh @ 2004-08-19 14:03 UTC (permalink / raw)
  To: Pavel Machek, Stefan Seyfried; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>Pavel Machek
>Sent: Thursday, August 19, 2004 4:17 AM
>To: Stefan Seyfried
>Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] Re: Radeon PM Support
>
>Hi!
>
>> > > Yes. If this patch works for tohers, then we can move it into
>> > > pci_default_resume during the cleanup.
>> > 
>> > 
>> > I'd rather not do that. Some cards are already posted after
>> > S3, some even preserve state over S3. It is okay to do VGAPOST
>> > for radeon and any card that needs it, but I'd rather not 
>do it generically.
>> 
>> what about "acpi_sleep=vgapost"?
>
>Could work, too.
>
>BTW I tried vgapost here, and it did not work on 2 radeon machines I
>have here. Could you possibly do some testing on bigger number of
>machines to find one where it actually works?
>								Pavel
>-- 

I guess we need to do something like this "acpi_sleep=vgapost", 
rather than doing a generic vgapost for all display devices. 
As the generic solution seems to have broken few systems 
which were working before.

I have two systems with almost identical video setup, with 
Radeon 9000M AGP adapter. vgapost works on one system and 
fails on another. The failing system never returns 
from real mode vgapost call. I also found that 
the VBIOS is not same on these two systems. Probably 
different versions of the firmware. I am digging further 
to find out why it works on one Radeon 9000M and not 
on another one. 

-Venki


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

^ permalink raw reply	[flat|nested] 54+ messages in thread
* RE: Radeon PM Support
@ 2004-08-11 20:36 Pallipadi, Venkatesh
  0 siblings, 0 replies; 54+ messages in thread
From: Pallipadi, Venkatesh @ 2004-08-11 20:36 UTC (permalink / raw)
  To: Pavel Machek
  Cc: ole.rohne-vJEk5272eHo, Nathan Bryant,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, anib-La3J9u0raUk

 

>-----Original Message-----
>From: Pavel Machek [mailto:pavel-+ZI9xUNit7I@public.gmane.org] 
>Sent: Wednesday, August 11, 2004 12:08 PM
>To: Pallipadi, Venkatesh
>Cc: ole.rohne-vJEk5272eHo@public.gmane.org; Nathan Bryant; 
>acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; anib-La3J9u0raUk@public.gmane.org
>Subject: Re: [ACPI] Radeon PM Support
>
>Hi!
>
>> > I"ve been hesitant to propose a generic VGAPOST, but it 
>could be good
>> > to have a way of resuming without using a driver. Would it 
>be cleaner
>> > to put the call in pci_default_resume?
>> 
>> Yes. If this patch works for tohers, then we can move it into
>> pci_default_resume during the cleanup.
>
>
>I'd rather not do that. Some cards are already posted after
>S3, some even preserve state over S3. 
> It is okay to do VGAPOST
>for radeon and any card that needs it, but I'd rather not do 
>it generically.

If this is the right place to do post for most of the devices,
then probably we can do away with initial soon-after-wakeup-post.
Right?
But, for the devices that preserve state, yes we need to avoid 
doing this. I can see one more device-blacklist/whitelist coming 
here :).

Thanks,
Venki


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

^ permalink raw reply	[flat|nested] 54+ messages in thread
* RE: Radeon PM Support
@ 2004-08-11 17:47 Pallipadi, Venkatesh
       [not found] ` <88056F38E9E48644A0F562A38C64FB600296CFD2-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 54+ messages in thread
From: Pallipadi, Venkatesh @ 2004-08-11 17:47 UTC (permalink / raw)
  To: Matthew Garrett
  Cc: anib-La3J9u0raUk, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	stefandoesinger-RbZlAiThDcE

 

>-----Original Message-----
>From: Matthew Garrett [mailto:mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org] 
>Sent: Wednesday, August 11, 2004 10:32 AM
>To: Pallipadi, Venkatesh
>Cc: anib-La3J9u0raUk@public.gmane.org; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; 
>stefandoesinger-RbZlAiThDcE@public.gmane.org
>Subject: RE: [ACPI] Radeon PM Support
>
>On Thu, 2004-08-05 at 10:52 -0700, Pallipadi, Venkatesh wrote:
>> Does this addon patch (over the Ole's original patch) help?
>
>With a Thinkpad X40 (Intel 855GM graphics chipset), this stops resume
>from working. acpi_sleep=s3_bios works.
>

How was it working before you applied this patch? By default? Or with 
acpi_sleep=s3_bios?

With this patch does it stop working completely or does it work with
acpi_sleep=s3_bios option?

Thanks,
Venki


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

^ permalink raw reply	[flat|nested] 54+ messages in thread
* RE: Radeon PM Support
@ 2004-08-06 16:35 Pallipadi, Venkatesh
       [not found] ` <88056F38E9E48644A0F562A38C64FB60028F9AC3-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 54+ messages in thread
From: Pallipadi, Venkatesh @ 2004-08-06 16:35 UTC (permalink / raw)
  To: ole.rohne-vJEk5272eHo, Nathan Bryant,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, anib-La3J9u0raUk


>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
>[mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
>ole.rohne-vJEk5272eHo@public.gmane.org
> Venki> Does this addon patch (over the Ole"s original patch) help?
> 
> I"ve been hesitant to propose a generic VGAPOST, but it could be good
> to have a way of resuming without using a driver. Would it be cleaner
> to put the call in pci_default_resume?

Yes. If this patch works for tohers, then we can move it into
pci_default_resume during the cleanup.

> 
> Venki> This works with Radeon 9000M and frame buffer for me.
> 
> Is that "frame buffer" as in aty/radeonfb? Then I"d expect the resume
> code in aty/radeon_pm gets to run instead of your generic resume?

No. I meant VESA frame buffer. And it also works w/o framebuffer
(std VGA).

I am still wondering why it doesn't work for Alexander. 
Alexander: Is your card sitting on PCI or AGP?

Thanks,
Venki


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

^ permalink raw reply	[flat|nested] 54+ messages in thread
* Radeon PM Support
@ 2004-07-29 22:14 Andrew Barr
       [not found] ` <1091139240.26511.9.camel-0uShlLfvWR/1N/xxgP7OLA@public.gmane.org>
  0 siblings, 1 reply; 54+ messages in thread
From: Andrew Barr @ 2004-07-29 22:14 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I just bought a Radeon 7000 video card on-line. What is the status of
and plans for power management support for this card? I read
Documentation/power/video.txt, and it says that I can't have framebuffer
console. That could be a problem as I use bootsplash. It also says I
need a patched X server. My Google search turned up a page concerning
S3/Radeon that says the patch is no longer necessary (I can't find the
URL at the moment, sorry). Any thoughts, tips, tricks, etc. would be
greatly appreciated.

Regards,
Andrew Barr



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

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

end of thread, other threads:[~2004-08-19 20:39 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 17:52 Radeon PM Support Pallipadi, Venkatesh
     [not found] ` <88056F38E9E48644A0F562A38C64FB600289AE7C-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-06  6:29   ` ole.rohne-vJEk5272eHo
     [not found]     ` <e796392204080601016e29a349@mail.gmail.com>
     [not found]       ` <yzo4qngh7ji.fsf@pb-d-128-141-40-189.cern.ch>
     [not found]         ` <yzo4qngh7ji.fsf-1zyhLZfD728Z/JH0GhYu5ApX6sy8U9uuH79+75y5D5U@public.gmane.org>
2004-08-06 12:32           ` Stefan Schweizer
     [not found]             ` <e796392204080605327588e5ac-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2004-08-06 13:38               ` Nathan Bryant
2004-08-12 14:30           ` Stefan Schweizer
2004-08-06 15:03   ` Alexander Bruder
2004-08-11 17:32   ` Matthew Garrett
2004-08-19 11:17     ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2004-08-19 14:03 Pallipadi, Venkatesh
2004-08-19 15:37 ` Aman Gupta
2004-08-19 15:54 ` Stefan Dösinger
2004-08-19 20:39   ` Aman Gupta
2004-08-11 20:36 Pallipadi, Venkatesh
2004-08-11 17:47 Pallipadi, Venkatesh
     [not found] ` <88056F38E9E48644A0F562A38C64FB600296CFD2-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-11 17:51   ` Matthew Garrett
2004-08-12  5:34     ` ole.rohne-vJEk5272eHo
2004-08-06 16:35 Pallipadi, Venkatesh
     [not found] ` <88056F38E9E48644A0F562A38C64FB60028F9AC3-exJ48ZlmiLpQxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-07  6:34   ` Alexander Bruder
2004-08-11 19:08   ` Pavel Machek
     [not found]     ` <20040811190824.GF1120-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-08-12 16:05       ` Stefan Seyfried
2004-07-29 22:14 Andrew Barr
     [not found] ` <1091139240.26511.9.camel-0uShlLfvWR/1N/xxgP7OLA@public.gmane.org>
2004-07-30 14:10   ` Micha Feigin
     [not found]     ` <20040730141028.GE21359-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
2004-07-30 13:31       ` Andrew Barr
2004-07-30 14:27       ` wwp
     [not found]         ` <20040730162756.4f300a5c-bi+AKbBUZKZeoWH0uzbU5w@public.gmane.org>
2004-07-30 19:00           ` Micha Feigin
     [not found]             ` <20040730190047.GH21359-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
2004-08-03 19:10               ` Andrew Barr
2004-08-03 23:23                 ` Erik Tews
2004-08-04  1:18                 ` Nathan Bryant
     [not found]                   ` <41103952.2030707-p32f3XyCuykqcZcGjlUOXw@public.gmane.org>
2004-08-04  1:33                     ` Erik Tews
     [not found]                       ` <1091583216.2974.2.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-04  3:40                         ` Len Brown
2004-08-04  6:43                           ` ole.rohne-vJEk5272eHo
     [not found]                             ` <yzohdrjqu6p.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-04  7:17                               ` Ow Mun Heng
2004-08-04  7:17                               ` wwp
2004-08-04 14:52                               ` Len Brown
2004-08-04 17:44                                 ` count0-tC47gz4GrgtWk0Htik3J/w
     [not found]                                   ` <52654.199.172.169.15.1091641493.squirrel-2RFepEojUI20LjuDPgauC1aTQe2KTcn/@public.gmane.org>
2004-08-04 17:48                                     ` Nathan Bryant
     [not found]                                       ` <4111217B.8000900-p32f3XyCuykqcZcGjlUOXw@public.gmane.org>
2004-08-04 18:23                                         ` count0-tC47gz4GrgtWk0Htik3J/w
     [not found]                                           ` <62466.199.172.169.15.1091643791.squirrel-2RFepEojUI20LjuDPgauC1aTQe2KTcn/@public.gmane.org>
2004-08-04 18:35                                             ` Eric Valette
2004-08-04 19:00                                     ` Stefan Dösinger
     [not found]                                       ` <200408042100.24705.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-05  7:33                                         ` ole.rohne-vJEk5272eHo
     [not found]                                           ` <yzo7jse5999.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-05 12:27                                             ` Tomasz Ciolek
2004-08-05 12:53                                             ` Stefan Dösinger
     [not found]                                               ` <200408051453.55710.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-05 17:14                                                 ` Alexander Bruder
     [not found]                                                   ` <200408051914.39445.anib-La3J9u0raUk@public.gmane.org>
2004-08-05 19:53                                                     ` Stefan Dösinger
     [not found]                                                       ` <200408052153.25467.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-19 17:43                                                         ` Luca
     [not found]                                                           ` <20040819174319.GB6913-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
2004-08-19 18:38                                                             ` Stefan Dösinger
     [not found]                                                               ` <200408192038.26959.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-19 20:03                                                                 ` Luca
2004-08-06 20:03                                                     ` Ow Mun Heng
2004-08-06  6:13                                 ` ole.rohne-vJEk5272eHo
     [not found]                                   ` <yzosmb0hjzu.fsf-1zyhLZfD728Z/JH0GhYu5ApX6sy8U9uuH79+75y5D5U@public.gmane.org>
2004-08-06 13:39                                     ` Nathan Bryant
     [not found]                                       ` <41138A16.5000908-p32f3XyCuykqcZcGjlUOXw@public.gmane.org>
2004-08-06 14:05                                         ` ole.rohne-vJEk5272eHo
     [not found]                                           ` <yzo7jscnyyu.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2004-08-06 19:09                                             ` Stefan Dösinger
2004-08-08 14:53                                             ` Stefan Schweizer
2004-08-06 13:58                                     ` Andi Kleen
2004-08-11 19:39                                     ` Pavel Machek
2004-08-06 20:10       ` Ow Mun Heng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox