Radeon: do not blank screen during suspend
Hi!
This stops ugly flashing from radeon during suspend/resume, please apply,
Pavel
drivers/video/aty/radeon_pm.c +10 -7
@@ -871,7 +871,8 @@agp_enable (0 );#endif -fb_set_suspend (info,1 ); +if (system_state !=SYSTEM_SNAPSHOT ) +fb_set_suspend (info,1 );if (!(info->flags &FBINFO_HWACCEL_DISABLED )) {/* Make sure engine is reset */
@@ -880,12 +881,14 @@radeon_engine_idle (); } -/* Blank display and LCD */ -radeonfb_blank (VESA_POWERDOWN , info); - -/* Sleep */ - rinfo->asleep =1 ; - rinfo->lock_blank =1 ; +if (system_state !=SYSTEM_SNAPSHOT ) { +/* Blank display and LCD */ +radeonfb_blank (VESA_POWERDOWN , info); + +/* Sleep */ + rinfo->asleep =1 ; + rinfo->lock_blank =1 ; + }/* Suspend the chip to D2 state when supported */
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
Quoted 4 lines · Pavel Machek
Hi!
This stops ugly flashing from radeon during suspend/resume, please apply,
Shoud be fine.
BTW. What is the status with Patrick merge of pmdisk & swsusp ? Has it been merged at all ? (No time to check at the moment). I still hope I'll find some time to do real work on it (& cleanup the ppc support that I had working experimentally at OLS) sooner or later...
Ben.
Pavel
Quoted 34 lines
drivers/video/aty/radeon_pm.c +10
-7@@ -871,7 +871,8 @@agp_enable (0 );#endif -fb_set_suspend (info,1 ); +if (system_state !=SYSTEM_SNAPSHOT ) +fb_set_suspend (info,1 );if (!(info->flags &FBINFO_HWACCEL_DISABLED )) {/* Make sure engine is reset */ @@ -880,12 +881,14 @@radeon_engine_idle (); } -/* Blank display and LCD */ -radeonfb_blank (VESA_POWERDOWN , info); - -/* Sleep */ - rinfo->asleep =1 ; - rinfo->lock_blank =1 ; +if (system_state !=SYSTEM_SNAPSHOT ) { +/* Blank display and LCD */ +radeonfb_blank (VESA_POWERDOWN , info); + +/* Sleep */ + rinfo->asleep =1 ; + rinfo->lock_blank =1 ; + }/* Suspend the chip to D2 state when supported */
Signature · 9 lines
Benjamin Herrenschmidt <[email protected]> ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
Hi!
Quoted 9 lines
Quoted 2 lines
This stops ugly flashing from radeon during suspend/resume, please apply,
Shoud be fine.
BTW. What is the status with Patrick merge of pmdisk & swsusp ? Has it been merged at all ? (No time to check at the moment). I still hope I'll find some time to do real work on it (& cleanup the ppc support that I had working experimentally at OLS) sooner or later...
It was merged to Andrew, then to Patrick and now it is waiting on Linus to pull it from patrick, if I understand it correctly.
Pavel
Signature · 2 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!