gxfb: move MSR bit fields into gxfb.h
PATCH 3/6 gxfb: move MSR bit fields into gxfb.h
From bee7242cf04c4a060b311b11985efb495f308355 Mon Sep 17 00:00:00 2001
From: Andres Salomon <[email protected]>
Date: Mon, 25 Feb 2008 15:29:36 -0500
Subject: [PATCH] gxfb: move MSR bit fields into gxfb.h
This continues the gxfb header cleanups. MSRs are defined in geode.h; the specific bits we care about are defined in gxfb.h.
--- drivers/video/geode/display_gx.h | 3 --- drivers/video/geode/gxfb.h | 16 ++++++++++++++++ drivers/video/geode/gxfb_core.c | 2 +- drivers/video/geode/video_gx.c | 4 ++-- drivers/video/geode/video_gx.h | 14 -------------- 5 files changed, 19 insertions(+), 20 deletions(-)
drivers/video/geode/display_gx.h +0 -3
@@ -16,7 +16,4 @@ int gx_line_delta(int xres, int bpp);extern struct geode_dc_ops gx_dc_ops; -/* MSR that tells us if a TFT or CRT is attached */ -#define GLD_MSR_CONFIG_DM_FP 0x40 -#endif /* !__DISPLAY_GX1_H__ */
drivers/video/geode/gxfb.h +16 -0
@@ -231,4 +231,20 @@ enum fp_registers {#define write_fp (reg, val) writel((uint32_t) (val), \ par->vid_regs + 8*(reg) + VP_FP_START) + +/* MSRs are defined in asm/geode.h; their bitfields are here */ + +#define MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3 (1 << 3) +#define MSR_GLCP_SYS_RSTPLL_DOTPREMULT2 (1 << 2) +#define MSR_GLCP_SYS_RSTPLL_DOTPREDIV2 (1 << 1) + +#define MSR_GLCP_DOTPLL_LOCK (1 << 25)/* r/o */ +#define MSR_GLCP_DOTPLL_BYPASS (1 << 15) +#define MSR_GLCP_DOTPLL_DOTRESET (1 << 0) + +#define MSR_GX_MSR_PADSEL_MASK 0x3FFFFFFF/* undocumented? */ +#define MSR_GX_MSR_PADSEL_TFT 0x1FFFFFFF/* undocumented? */ + +#define MSR_GX_GLD_MSR_CONFIG_FP (1 << 3) +#endif
drivers/video/geode/gxfb_core.c +1 -1
@@ -328,7 +328,7 @@ static int __init gxfb_probe(struct pci_dev *pdev, const struct pci_device_id *irdmsrl (MSR_GX_GLD_MSR_CONFIG , val); -if ((val &GLD_MSR_CONFIG_DM_FP ) ==GLD_MSR_CONFIG_DM_FP ) +if ((val &MSR_GX_GLD_MSR_CONFIG_FP ) ==MSR_GX_GLD_MSR_CONFIG_FP ) par->enable_crt =0 ;else par->enable_crt =1 ;
drivers/video/geode/video_gx.c +2 -2
@@ -187,8 +187,8 @@ gx_configure_tft(struct fb_info *info)/* Set up the DF pad select MSR */ rdmsrl (MSR_GX_MSR_PADSEL , val); - val &= ~GX_VP_PAD_SELECT_MASK ; - val |=GX_VP_PAD_SELECT_TFT ; + val &= ~MSR_GX_MSR_PADSEL_MASK ; + val |=MSR_GX_MSR_PADSEL_TFT ;wrmsrl (MSR_GX_MSR_PADSEL , val);/* Turn off the panel */
drivers/video/geode/video_gx.h +0 -14
@@ -13,18 +13,4 @@extern struct geode_vid_ops gx_vid_ops; -/* GX Flatpanel control MSR */ -#define GX_VP_PAD_SELECT_MASK 0x3FFFFFFF -#define GX_VP_PAD_SELECT_TFT 0x1FFFFFFF - -/* Geode GX clock control MSRs */ - -# define MSR_GLCP_SYS_RSTPLL_DOTPREDIV2 (0x0000000000000002ull) -# define MSR_GLCP_SYS_RSTPLL_DOTPREMULT2 (0x0000000000000004ull) -# define MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3 (0x0000000000000008ull) - -# define MSR_GLCP_DOTPLL_DOTRESET (0x0000000000000001ull) -# define MSR_GLCP_DOTPLL_BYPASS (0x0000000000008000ull) -# define MSR_GLCP_DOTPLL_LOCK (0x0000000002000000ull) -#endif /* !__VIDEO_GX_H__ */
Signature · 7 lines
1.5.3.7 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Quoted 22 lines · On Sat, 8 Mar 2008 20:48:40 -0500 Andres Salomon <[email protected]> wrote:
Quoted 1 line
From
bee7242cf04c4a060b311b11985efb495f308355Mon Sep 17 00:00:00 2001From: Andres Salomon <[email protected]>
Date: Mon, 25 Feb 2008 15:29:36 -0500
Subject: [PATCH] gxfb: move MSR bit fields intogxfb.hThis continues the gxfb header cleanups. MSRs are defined in
geode.h; the specific bits we care about are defined ingxfb.h.Signed-off-by Andres Salomon <[email protected]>--- drivers/video/geode/display_gx.h | 3 --- drivers/video/geode/gxfb.h | 16 ++++++++++++++++ drivers/video/geode/gxfb_core.c | 2 +- drivers/video/geode/video_gx.c | 4 ++-- drivers/video/geode/video_gx.h | 14 -------------- 5 files changed, 19 insertions(+), 20 deletions(-)drivers/video/geode/display_gx.h +0
-0
drivers/video/geode/display_gx.h int gx_line_delta(int xres, int bpp); · line 19
Quoted 7 lines
drivers/video/geode/display_gx.h +0
-3@@ -16,7 +16,4 @@ int gx_line_delta(int xres, int bpp);extern struct geode_dc_ops gx_dc_ops; -/* MSR that tells us if a TFT or CRT is attached */ -#define GLD_MSR_CONFIG_DM_FP 0x40 -#endif /* !__DISPLAY_GX1_H__ */
Something has gone wrong here. The code in current mainline is
extern struct geode_dc_ops gx_dc_ops;
/* MSR that tells us if a TFT or CRT is attached */
#define GLD_MSR_CONFIG 0xC0002001
#define GLD_MSR_CONFIG_DM_FP 0x40
/* Display controller registers */
whereas you're patching something else.
In [1/6] you refer to "the MSR cleanup patch". I don't know what that is.
Please clean up the changelogs - remove those email headers from the email-forwarding operation and remove the additional little commentary on
top: if there's actually anything in there which is needed then it should be integrated into the changelog proper, thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Quoted 43 lines · On Mon, 10 Mar 2008 13:14:32 -0700 Andrew Morton <[email protected]>…
Quoted 22 lines · On Sat, 8 Mar 2008 20:48:40 -0500 Andres Salomon <[email protected]> wrote:
Quoted 1 line
From
bee7242cf04c4a060b311b11985efb495f308355Mon Sep 17 00:00:00 2001From: Andres Salomon <[email protected]>
Date: Mon, 25 Feb 2008 15:29:36 -0500
Subject: [PATCH] gxfb: move MSR bit fields intogxfb.hThis continues the gxfb header cleanups. MSRs are defined in
geode.h; the specific bits we care about are defined ingxfb.h.Signed-off-by Andres Salomon <[email protected]>--- drivers/video/geode/display_gx.h | 3 --- drivers/video/geode/gxfb.h | 16 ++++++++++++++++ drivers/video/geode/gxfb_core.c | 2 +- drivers/video/geode/video_gx.c | 4 ++-- drivers/video/geode/video_gx.h | 14 -------------- 5 files changed, 19 insertions(+), 20 deletions(-)drivers/video/geode/display_gx.h +0
-0drivers/video/geode/display_gx.h int gx_line_delta(int xres, int bpp); · line 19
Quoted 7 lines
drivers/video/geode/display_gx.h +0
-3@@ -16,7 +16,4 @@ int gx_line_delta(int xres, int bpp);extern struct geode_dc_ops gx_dc_ops; -/* MSR that tells us if a TFT or CRT is attached */ -#define GLD_MSR_CONFIG_DM_FP 0x40 -#endif /* !__DISPLAY_GX1_H__ */ Something has gone wrong here. The code in current mainline is
extern struct
geode_dc_opsgx_dc_ops;/* MSR that tells us if a TFT or CRT is attached */
#defineGLD_MSR_CONFIG0xC0002001
#defineGLD_MSR_CONFIG_DM_FP0x40
Quoted 8 lines
/* Display controller registers */
whereas you're patching something else.
In [1/6] you refer to "the MSR cleanup patch". I don't know what that is.
That would be this:
http://thread.gmane.org/gmane.linux.kernel/645387/focus=645636
Quoted 6 lines
Please clean up the changelogs - remove those email headers from the email-forwarding operation and remove the additional little commentary on
top: if there's actually anything in there which is needed then it should be integrated into the changelog proper, thanks.
For future requests, or should I resend these to you?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Quoted 8 lines · On Mon, 10 Mar 2008 16:28:44 -0400 Andres Salomon <[email protected]> wrote:
Quoted 3 lines
In [1/6] you refer to "the MSR cleanup patch". I don't know what that is.
That would be this:
http://thread.gmane.org/gmane.linux.kernel/645387/focus=645636
Oh, that. OK, I found that and it still applies and it makes these new patches apply.
Quoted 9 lines
Quoted 7 lines
Please clean up the changelogs - remove those email headers from the email-forwarding operation and remove the additional little commentary on
top: if there's actually anything in there which is needed then it should be integrated into the changelog proper, thanks.For future requests, or should I resend these to you?
Well I cleaned these up and was ready to go, but I think some updates are needed, please. So please consider, redo and resend everything, including the already-acked-by-Jordan MSR cleanup.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/