Skip to contentSkip to conversation

Use the correct MSR number for panel support

PATCH In review Jordan Crouse 2 participants 3 messages Oct 26, 2007 – Oct 30, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use the correct MSR number for panel support

From: Jordan Crouse <[email protected]>

A relatively recent version of the Geode LX datasheet listed the wrong address for one of the MSRs that controls TFT panels, resulting in breakage. This patch corrects the MSR address.

---

 drivers/video/geode/lxfb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/geode/lxfb.h +1 -1
index 6c227f9..ca13c48 100644
@@ -33,7 +33,7 @@ void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int,
 
 #define MSR_LX_GLD_CONFIG    0x48002001
 #define MSR_LX_GLCP_DOTPLL   0x4c000015
-#define MSR_LX_DF_PADSEL     0x48000011
+#define MSR_LX_DF_PADSEL     0x48002011
 #define MSR_LX_DC_SPARE      0x80000011
 #define MSR_LX_DF_GLCONFIG   0x48002001
 
#1 lore raw
Quoted 16 lines · Jordan Crouse

From: Jordan Crouse <[email protected]>

A relatively recent version of the Geode LX datasheet listed the wrong
address for one of the MSRs that controls TFT panels, resulting in breakage. This patch corrects the MSR address.

---

 drivers/video/geode/lxfb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/geode/lxfb.h +0 -0
index 6c227f9..ca13c48 100644

drivers/video/geode/lxfb.h void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int, · line 39

Quoted 8 lines
drivers/video/geode/lxfb.h +1 -1
@@ -33,7 +33,7 @@ void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int,
 
 #define MSR_LX_GLD_CONFIG    0x48002001
 #define MSR_LX_GLCP_DOTPLL   0x4c000015
-#define MSR_LX_DF_PADSEL     0x48000011
+#define MSR_LX_DF_PADSEL     0x48002011
 #define MSR_LX_DC_SPARE      0x80000011
 #define MSR_LX_DF_GLCONFIG   0x48002001
 

Please put MSR indicies in <asm-x86/msr-index.h> and/or a separate include file.

-hpa

#2 lore raw
Quoted 19 lines · H. Peter Anvin
Quoted 18 lines · Jordan Crouse

From: Jordan Crouse <[email protected]>

A relatively recent version of the Geode LX datasheet listed the wrong address for one of the MSRs that controls TFT panels, resulting in breakage. This patch corrects the MSR address.

---

 drivers/video/geode/lxfb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/geode/lxfb.h +0 -0
index 6c227f9..ca13c48 100644
@@ -33,7 +33,7 @@ void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int,
 
Quoted 10 lines

drivers/video/geode/lxfb.h void lx_set_palette_reg(struct fb_info *, unsigned int, unsigned int, · line 39

Quoted 7 lines
drivers/video/geode/lxfb.h +1 -1
 #define MSR_LX_GLD_CONFIG    0x48002001
 #define MSR_LX_GLCP_DOTPLL   0x4c000015
-#define MSR_LX_DF_PADSEL     0x48000011
+#define MSR_LX_DF_PADSEL     0x48002011
 #define MSR_LX_DC_SPARE      0x80000011
 #define MSR_LX_DF_GLCONFIG   0x48002001
 

Please put MSR indicies in <asm-x86/msr-index.h> and/or a separate include file.

The Geode has zillions upon zillions of MSRs (all of them being Geode specific), so putting them in asm-x86/msr-index.h would be a bad idea for both you and me. But tossing them into a asm-x86/geode-msr.h file would be good for 2.6.25. I'll get working on that.

In the mean time, this particular #define is already in the tree, and this patch fixes serious breakage, so I would really like to see it hit 2.6.24, if we can.

Jordan

Signature · 11 lines
Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/