/[linux-patches]/genpatches-2.6/tags/2.6.15-2/1300_sparc-atyfb-blade100.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-2/1300_sparc-atyfb-blade100.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations) (download)
Wed Jan 11 21:46:01 2006 UTC (8 years, 3 months ago) by dsd
File size: 2616 byte(s)
2.6.15-2 release
1 From: Luis F. Ortiz <lfo@Polyad.Org>
2 Date: Thu, 5 Jan 2006 21:12:41 +0000 (-0800)
3 Subject: [ATYFB]: Fix onboard video on SPARC Blade 100 for 2.6.{13,14,15}
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=5b373e10aeadc2599c085a3357b7fad8b8e760b8
5
6 [ATYFB]: Fix onboard video on SPARC Blade 100 for 2.6.{13,14,15}
7
8 I have recently been switching from using 2.4.32 on my trusty
9 old Sparc Blade 100 to using 2.6.15 . Some of the problems I ran into
10 were distorted video when the console was active (missing first
11 character, skipped dots) and when running X windows (colored snow,
12 stripes, missing pixels). A quick examination of the 2.6 versus 2.4
13 source for the ATY driver revealed alot of changes.
14
15 A closer look at the code/data for the 64GR/XL chip revealed
16 two minor "typos" that the rewriter(s) of the code made. The first is
17 a incorrect clock value (230 .vs. 235) and the second is a missing
18 flag (M64F_SDRAM_MAGIC_PLL). Making both these changes seems to have
19 fixed my problem. I tend to think the 235 value is the correct one,
20 as there is a 29.4 Mhz clock crystal close to the video chip and 235.2
21 (29.4*8) is too close to 235 to make it a coincidence.
22
23 The flag for M64F_SDRAM_MAGIC_PLL was dropped during the
24 changes made by adaplas in file revision 1.72 on the old bitkeeper
25 repository.
26
27 The change relating to the clock rate has been there forever,
28 at least in the 2.6 tree. I'm not sure where to look for the old 2.5
29 tree or if anyone cares when it happened.
30
31 On SPARC Blades 100's, which use the ATY MACH64GR video chipset, the
32 clock crystal frequency is 235.2 Mhz, not 230 Mhz. The chipset also
33 requires the use of M64F_SDRAM_MAGIC_PLL in order to setup the PLL
34 properly for the DRAM.
35
36 Signed-off-by: Luis F. Ortiz <lfo@Polyad.Org>
37 Signed-off-by: David S. Miller <davem@davemloft.net>
38 ---
39
40 --- a/drivers/video/aty/atyfb_base.c
41 +++ b/drivers/video/aty/atyfb_base.c
42 @@ -403,7 +403,7 @@ static struct {
43 { PCI_CHIP_MACH64GM, "3D RAGE XL (Mach64 GM, AGP)", 230, 83, 63, ATI_CHIP_264XL },
44 { PCI_CHIP_MACH64GN, "3D RAGE XL (Mach64 GN, AGP)", 230, 83, 63, ATI_CHIP_264XL },
45 { PCI_CHIP_MACH64GO, "3D RAGE XL (Mach64 GO, PCI-66/BGA)", 230, 83, 63, ATI_CHIP_264XL },
46 - { PCI_CHIP_MACH64GR, "3D RAGE XL (Mach64 GR, PCI-33MHz)", 230, 83, 63, ATI_CHIP_264XL },
47 + { PCI_CHIP_MACH64GR, "3D RAGE XL (Mach64 GR, PCI-33MHz)", 235, 83, 63, ATI_CHIP_264XL | M64F_SDRAM_MAGIC_PLL },
48 { PCI_CHIP_MACH64GL, "3D RAGE XL (Mach64 GL, PCI)", 230, 83, 63, ATI_CHIP_264XL },
49 { PCI_CHIP_MACH64GS, "3D RAGE XL (Mach64 GS, PCI)", 230, 83, 63, ATI_CHIP_264XL },
50

  ViewVC Help
Powered by ViewVC 1.1.20