drm: fix regression in fb blank handling
Subsystems (2)
PATCH 1/1 drm: fix regression in fb blank handling
commit 731b5a15a3b1474a41c2ca29b4c32b0f21bc852e
Author: James Simmons <[email protected]> Date: Thu Oct 29 20:39:07 2009 +0000
drm/kms: properly handle fbdev blanking
uses DRM_MODE_DPMS_ON for FB_BLANK_NORMAL, but DRM_MODE_DPMS_ON is actually for turning output on instead of blank.
This makes fb blank broken on my T61, it put LVDS on but leave pipe disabled which made screen totally white or caused some 'burning' effect.
--- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +1 -1
@@ -389,7 +389,7 @@ int drm_fb_helper_blank(int blank, struct fb_info *info)break ;/* Display: Off; HSync: On, VSync: On */ case FB_BLANK_NORMAL : -drm_fb_helper_off (info,DRM_MODE_DPMS_ON ); +drm_fb_helper_off (info,DRM_MODE_DPMS_STANDBY );break ;/* Display: Off; HSync: Off, VSync: On */ case FB_BLANK_HSYNC_SUSPEND :
Signature · 10 lines
1.6.3.3 ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev --
Quoted 25 lines
commit
731b5a15a3b1474a41c2ca29b4c32b0f21bc852eAuthor: James Simmons <[email protected]> Date: Thu Oct 29 20:39:07 2009 +0000drm/kms: properly handle fbdev blanking
uses
DRM_MODE_DPMS_ONforFB_BLANK_NORMAL, butDRM_MODE_DPMS_ONis actually for turning output on instead of blank.This makes fb blank broken on my T61, it put LVDS on but leave pipe disabled which made screen totally white or caused some 'burning' effect.
Cc James Simmons <[email protected]>Signed-off-by Zhenyu Wang <[email protected]>--- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/gpu/drm/drm_fb_helper.c +0
-0
drivers/gpu/drm/drm_fb_helper.c int drm_fb_helper_blank(int blank, struct fb_info *info) · line 395
Quoted 8 lines
drivers/gpu/drm/drm_fb_helper.c +1
-1@@ -389,7 +389,7 @@ int drm_fb_helper_blank(int blank, struct fb_info *info)break ;/* Display: Off; HSync: On, VSync: On */ case FB_BLANK_NORMAL : -drm_fb_helper_off (info,DRM_MODE_DPMS_ON ); +drm_fb_helper_off (info,DRM_MODE_DPMS_STANDBY );break ;/* Display: Off; HSync: Off, VSync: On */ case FB_BLANK_HSYNC_SUSPEND :
Nak. The problem is the intel drm drivers doesn't handle it power management state seperate from the encoder state.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
Quoted 20 lines · James Simmons
Quoted 20 lines
commit
731b5a15a3b1474a41c2ca29b4c32b0f21bc852eAuthor: James Simmons <[email protected]> Date: Thu Oct 29 20:39:07 2009 +0000drm/kms: properly handle fbdev blanking
uses
DRM_MODE_DPMS_ONforFB_BLANK_NORMAL, butDRM_MODE_DPMS_ONis actually for turning output on instead of blank.This makes fb blank broken on my T61, it put LVDS on but leave pipe disabled which made screen totally white or caused some 'burning' effect.
Cc James Simmons <[email protected]>Signed-off-by Zhenyu Wang <[email protected]>--- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 16 lines
drivers/gpu/drm/drm_fb_helper.c int drm_fb_helper_blank(int blank, struct fb_info *info) · line 395
Quoted 13 lines
drivers/gpu/drm/drm_fb_helper.c +1
-1@@ -389,7 +389,7 @@ int drm_fb_helper_blank(int blank, struct fb_info *info)break ;/* Display: Off; HSync: On, VSync: On */ case FB_BLANK_NORMAL : -drm_fb_helper_off (info,DRM_MODE_DPMS_ON ); +drm_fb_helper_off (info,DRM_MODE_DPMS_STANDBY );break ;/* Display: Off; HSync: Off, VSync: On */ case FB_BLANK_HSYNC_SUSPEND :Nak. The problem is the intel drm drivers doesn't handle it power management state seperate from the encoder state.
drm_fb_helper_off() will find fb's crtc and attached encoders, then call encoder_funcs->dpms() and turn off crtc, so for your DRM_MODE_DPMS_ON change, it will actually turn encoder on, but what we need for FB_BLANK_NORMAL is to turn off the display. No?
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
uses
DRM_MODE_DPMS_ONforFB_BLANK_NORMAL, butDRM_MODE_DPMS_ONis actually for turning output on instead of blank.This makes fb blank broken on my T61, it put LVDS on but leave pipe disabled which made screen totally white or caused some 'burning' effect.
Cc James Simmons <[email protected]>Signed-off-by Zhenyu Wang <[email protected]>--- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 16 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/drm_fb_helper.c +0
-0@@ -389,7 +389,7 @@ int drm_fb_helper_blank(int blank, struct fb_info *info)break ;/* Display: Off; HSync: On, VSync: On */ case FB_BLANK_NORMAL :Quoted 8 lines
drivers/gpu/drm/drm_fb_helper.c int drm_fb_helper_blank(int blank, struct fb_info *info) · line 395
Quoted 5 lines
drivers/gpu/drm/drm_fb_helper.c +1
-1-drm_fb_helper_off (info,DRM_MODE_DPMS_ON ); +drm_fb_helper_off (info,DRM_MODE_DPMS_STANDBY );break ;/* Display: Off; HSync: Off, VSync: On */ case FB_BLANK_HSYNC_SUSPEND :Nak. The problem is the intel drm drivers doesn't handle it power management state seperate from the encoder state.
Sorry I meant the backlight power management state seperate from the encoder state.
Quoted 4 lines
drm_fb_helper_off()will find fb's crtc and attached encoders, then callencoder_funcs->dpms()and turn off crtc, so for yourDRM_MODE_DPMS_ONchange, it will actually turn encoder on, but what we need forFB_BLANK_NORMALis to turn off the display. No?
FB_BLANK_NORMAL is not a full power down. Only CRTC is powerdown in this mode. FB_BLANK_POWERDOWN turns off everything. You are wondering why this is the case. If the console blanks and you go to use it again it comes back very fast. In FB_BLANK_POWERDOWN mode it takes awhile to come back for certain types of displays. I have a old Sony CRT at home. Once powered down it takes about 5 to 10 seconds to come back up.
Besides this the real issue is backlight != part of encoder.
A patch will be coming shortly.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
Quoted 10 lines · James Simmons
Sorry I meant the backlight power management state seperate from the encoder state.
Quoted 4 lines
drm_fb_helper_off()will find fb's crtc and attached encoders, then callencoder_funcs->dpms()and turn off crtc, so for yourDRM_MODE_DPMS_ONchange, it will actually turn encoder on, but what we need forFB_BLANK_NORMALis to turn off the display. No?
FB_BLANK_NORMALis not a full power down. Only CRTC is powerdown in this mode.
So how the encoder could tell the meaning of you passed DRM_MODE_DPMS_ON in this case? which is really turning on everything, or keep port on but turn off panel power?
Quoted 5 lines
FB_BLANK_POWERDOWNturns off everything. You are wondering why this is the case. If the console blanks and you go to use it again it comes back very fast. InFB_BLANK_POWERDOWNmode it takes awhile to come back for certain types of displays. I have a old Sony CRT at home. Once powered down it takes about 5 to 10 seconds to come back up.
Isn't this monitor specific issue instead of display device problem? ;) I don't think any LCD monitor nowadays could have this issue.
Quoted 4 lines
Besides this the real issue is backlight != part of encoder.
A patch will be coming shortly.
Panel power sequencing for Intel LVDS is controlled by encoder, and closely related to port state, although we haven't really taken LVDS port enable/disable step before Ironlake, I think this is normal case for encoders having backlight.
Could we just restore back to origin behavior for fixing this in 2.6.33? Otherwise I don't know if your patch would be too intrusive...
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Quoted 10 lines · James Simmons
Quoted 8 lines
Sorry I meant the backlight power management state seperate from the encoder state.
Quoted 4 lines
drm_fb_helper_off()will find fb's crtc and attached encoders, then callencoder_funcs->dpms()and turn off crtc, so for yourDRM_MODE_DPMS_ONchange, it will actually turn encoder on, but what we need forFB_BLANK_NORMALis to turn off the display. No?
Quoted 6 lines
Quoted 2 lines
FB_BLANK_NORMALis not a full power down. Only CRTC is powerdown in this mode.So how the encoder could tell the meaning of you passed
DRM_MODE_DPMS_ONin this case? which is really turning on everything, or keep port on but turn off panel power?
So you are saying that certian combos of crtc dpms states and encoder dpms states are not possible. Since this can from a user application I assume the DRI layer has to fix this up.
Quoted 8 lines
Quoted 5 lines
FB_BLANK_POWERDOWNturns off everything. You are wondering why this is the case. If the console blanks and you go to use it again it comes back very fast. InFB_BLANK_POWERDOWNmode it takes awhile to come back for certain types of displays. I have a old Sony CRT at home. Once powered down it takes about 5 to 10 seconds to come back up.Isn't this monitor specific issue instead of display device problem? ;) I don't think any LCD monitor nowadays could have this issue.
Don't forget about embedded devices. They can behave in the same way.
Quoted 7 lines
Quoted 3 lines
Besides this the real issue is backlight != part of encoder.
A patch will be coming shortly.
Panel power sequencing for Intel LVDS is controlled by encoder, and closely related to port state, although we haven't really taken LVDS port enable/disable step before Ironlake, I think this is normal case for encoders having backlight.
For non embedded platforms yes. Actually I worked on a embedded platform that used a SiS graphics chip. That chipset also has a backlight for the encoder but the manufacture instead disabled that backlight and instead used a external backlight powered by a external gpio.
Quoted 2 lines
Could we just restore back to origin behavior for fixing this in 2.6.33? Otherwise I don't know if your patch would be too intrusive...
It's just adding the backlight api to the intel driver. In fact it gives the user the ablity to control the brightness of the backlight which I see is lacking in the intel driver.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
Quoted 4 lines · James Simmons
It's just adding the backlight api to the intel driver. In fact it gives the user the ablity to control the brightness of the backlight which I see is lacking in the intel driver.
Wait, this regression has nothing to do with backlight control. We already have backlight drivers for platform specific or ACPI interface, the reason intel driver doesn't hook up one is because if we provide native interface which would be much possible to have state conflict with platform or ACPI way.
This problem is just the wrong DPMS state is used for FB blank request. Dave, does my patch look sane? This regression isn't in 2.6.32, but only for .33-rc kernel.
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Quoted 6 lines · Zhenyu Wang
Quoted 4 lines · James Simmons
It's just adding the backlight api to the intel driver. In fact it gives the user the ablity to control the brightness of the backlight which I see is lacking in the intel driver.
Quoted 8 lines
Wait, this regression has nothing to do with backlight control. We already have backlight drivers for platform specific or ACPI interface, the reason intel driver doesn't hook up one is because if we provide native interface which would be much possible to have state conflict with platform or ACPI way.
This problem is just the wrong DPMS state is used for FB blank request. Dave, does my patch look sane? This regression isn't in 2.6.32, but only for .33-rc kernel.
We should revisit this for 2.6.34, but for now I've applied Zhenyu's patch until we can figure out where the problems are, as it breaks a few too many laptops at this stage for 2.6.33.
Dave.
Quoted 1 line
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
Quoted 13 lines · Zhenyu Wang
Quoted 11 lines · James Simmons
Quoted 4 lines
It's just adding the backlight api to the intel driver. In fact it gives the user the ablity to control the brightness of the backlight which I see is lacking in the intel driver.
Wait, this regression has nothing to do with backlight control. We already have backlight drivers for platform specific or ACPI interface, the reason intel driver doesn't hook up one is because if we provide native interface which would be much possible to have state conflict with platform or ACPI way.
Quoted 7 lines
Quoted 3 lines
This problem is just the wrong DPMS state is used for FB blank request. Dave, does my patch look sane? This regression isn't in 2.6.32, but only for .33-rc kernel.
We should revisit this for 2.6.34, but for now I've applied Zhenyu's patch until we can figure out where the problems are, as it breaks a few too many laptops at this stage for 2.6.33.
I agree at this point. I need to get the hardware to test the changes. BTW is the GMA 950 supported by the i915 driver? I will pick up a net book in the next few days.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
--
Quoted 9 lines · James Simmons
Quoted 4 lines
We should revisit this for 2.6.34, but for now I've applied Zhenyu's patch until we can figure out where the problems are, as it breaks a few too many laptops at this stage for 2.6.33.
I agree at this point. I need to get the hardware to test the changes. BTW is the GMA 950 supported by the i915 driver? I will pick up a net book in the next few days.
Yeah, that should be 945GM.
thanks.
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel