9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] VGA trubble agin
@ 2003-05-31 20:01 Matt Gushee
  2003-05-31 20:19 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Gushee @ 2003-05-31 20:01 UTC (permalink / raw)
  To: 9fans

Hello, folks--

Well, I am making another attempt to install Plan9. This time the
machine is a vintage IBM PC, and the video card is some sort of ATI Mach
64 PCI model (bought it used, so I don't have documentation for it ...
suppose I can pull it out and look up the FCC ID if necessary). For a
monitor, I'm using an AOC Spectrum 5E (identified as Generic 65 Mhz in
plan9.ini, which I think is correct). Anyway, when I start up with the
installation floppy, it goes through the loading sequence and starts up
VGA, but with a twist:

... let's see if I can describe this ...

VGA is clearly "working," and 2 or 3 windows are visible: a--is "virtual
terminal" the right name?--an XTerm-like thingie, and something labeled
"gnot" with several colored bars, BUT:

the display is broken up into several vertical bands: if you can imagine
taking a screenshot, making 4 or 5 copies, then cropping each one to a
narrow vertical slice, with each slice starting slightly to the right of
the previous one, then laying them out side by side with a 4-6-pixel
dark stripe in between ... that's what it looks like.

I should add that I've tried different video modes: 1024x768@16bpp,
1024x768@8bpp, 800x600@16bpp ... same thing happens regardless. Has
anyone seen a phenomenon like this? I'm attaching my 'vgainfo.txt' and
'pci.txt' in case they are useful.

I suppose I could try the built-in video card, but it's an S3 Trio64V+,
and I see that's on the "not tested with this version" list. Anyway, I'd
appreciate any suggestions you have.


-- vgainfo.txt ---------------------------------------------------------
main->snarf
vga->snarf
mach64xx->snarf
vga->attr: 0xC00E1=MACH64GTPCIUYMU
vga->dump
vga misc             67
vga feature          00
vga sequencer        03 00 03 00 02
vga crt              5F 4F 50 82 55 81 BF 1F - 00 4F 0D 0E 00 00 05 F0
                     9C 8E 8F 28 1F 96 B9 A3 - FF
vga graphics         00 00 00 00 00 10 0E 00 - FF
vga attribute        00 01 02 03 04 05 14 07 - 38 39 3A 3B 3C 3D 3E 3F
                     0C 00 0F 08 00
vga virtual         0 0
vga panning         off
vga vm a b           16777216        0
vga vmz               4194304
vga apz               8388608
vga linear                  1
mach64xx->dump
mach64xx pci 4b1a8 io 1000 pciregs
mach64xx ccru 300
mach64xx HTotalDisp          004F005F
mach64xx HSyncStrtWid        00010055
mach64xx VTotalDisp          018F01BF
mach64xx VSyncStrtWid        000E019C
mach64xx VlineCrntVline      019F03FF
mach64xx OffPitch            0A000000
mach64xx IntCntl             00000015
mach64xx CrtcGenCntl         02410200
mach64xx OvrClr              40360C18
mach64xx OvrWidLR            00000000
mach64xx OvrWidTB            00000000
mach64xx CurClr0             000C9027
mach64xx CurClr1             88198202
mach64xx CurOffset           00000000
mach64xx CurHVposn           00000000
mach64xx CurHVoff            00000000
mach64xx ScratchReg0         04900400
mach64xx ScratchReg1         00000000
mach64xx ClockCntl           00CD0000
mach64xx BusCntl             7333A040
mach64xx MemCntl             104211B7
mach64xx ExtMemCntl          05000001
mach64xx MemVgaWpSel         00010000
mach64xx MemVgaRpSel         00010000
mach64xx DacRegs             00FF3740
mach64xx DacCntl             8501600A
mach64xx GenTestCntl         00000008
mach64xx ConfigCntl          00001002
mach64xx ConfigChipId        41004754
mach64xx ConfigStat0         00000015
mach64xx ConfigStat1         00000000
mach64xx ConfigStat2         00000000
mach64xx DspConfig           00000000
mach64xx DspOnOff            00000000
mach64xx DpBkgdClr           FFFFFFFF
mach64xx DpChainMsk          FFFFFFFF
mach64xx DpFrgdClr           FFFFFFFF
mach64xx DpMix               FFFFFFFF
mach64xx DpPixWidth          FFFFFFFF
mach64xx DpSrc               FFFFFFFF
mach64xx DpWriteMsk          FFFFFFFF
mach64xx LcdIndex            00000000
mach64xx LcdData             00000000
mach64xx PLL         CD D5 21 14 9A 03 FB E8 - C4 00 00 E1 A6 1B 00 00
                     CD D5 21 14 9A 03 FB E8 - C4 00 00 E1 A6 1B 00 00
mach64xx VCLK0	25165286
mach64xx VCLK1	28347104
mach64xx VCLK2	0
mach64xx VCLK3	0

rom table offset 102
freq table offset 68A
memclk 67000000
ref_freq 14320000
ref_divider 33
min_freq 9260000
max_freq 222180000
pd 3 value 0 (|3)
post = 8
mach64xx pixel clock = 25160000
ATI BIOS rom 0x102 freq 0x0 clock 0x68a
clocks: 43605 60224 19067 255 0 0 0 0 0 0 0 0 328 0 0 16969
programmable clock: 4
clock to program: 3
reference numerator: 14320
reference denominator: 1
internal clock
reference divider in plls
panelid 85 x 1 y 0

vmf 0 vmdf 40000000 vf1 0 vbw 65000000
vga->init
mach64xx->init
rom table offset 102
freq table offset 68A
memclk 6700
memclk 6700... x 6.700000...t 6... xprec 3...fifosz 214.400000...fprec 8...prec 3...afifosz 32...fifooff 208.000000...pfc 4...rcc 5...fifoon 25.000000...
dbdumpmode
type=multisync65, size=800x600x16
frequency=40000000
x=800 (0x320), y=600 (0x258), z=16 (0x10)
ht=1056 (0x420), shb=840 (0x348), ehb=1000 (0x3E8)
shs=840 (0x348), ehs=1000 (0x3E8)
vt=633 (0x279), vrs=605 (0x25D), vre=607 (0x25F)
hsync=0, vsync=0, interlace=0
vga->attr: 0xC00E1=MACH64GTPCIUYMU
vga->dump
vga flag             Fdump|Finit|Fsnarf
vga misc             E3
vga feature          00
vga sequencer        03 01 0F 00 0A
vga crt              7F 63 68 9D 69 9D277 F0 - 00 60 00 00 00 00 00 00
                    25D 2F257 C8 6025D25E A3 -7FF
vga graphics         00 00 00 00 00 50 05 0F - FF
vga attribute        00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F
                     41 FF 0F 00 00
vga virtual         800 600
vga panning         off
vga clock[0] f       40000000
vga clock[0] d i m          0        0       -       33
vga clock[0] n p q r      184        4       -        0        0
vga vm a b           16777216        0
vga vmz               4194304
vga apz               8388608
vga linear                  1
mach64xx->dump
mach64xx flag        Ulinear|Uenhanced|Fdump|Finit|Fsnarf
mach64xx pci 4b1a8 io 1000 pciregs
mach64xx ccru 300
mach64xx HTotalDisp          00630083
mach64xx HSyncStrtWid        00140068
mach64xx VTotalDisp          02570278
mach64xx VSyncStrtWid        0002025C
mach64xx VlineCrntVline      019F03FF
mach64xx OffPitch            19000000
mach64xx IntCntl             00000000
mach64xx CrtcGenCntl         03010400
mach64xx OvrClr              00000000
mach64xx OvrWidLR            00000000
mach64xx OvrWidTB            00000000
mach64xx CurClr0             000C9027
mach64xx CurClr1             88198202
mach64xx CurOffset           00000000
mach64xx CurHVposn           00000000
mach64xx CurHVoff            00000000
mach64xx ScratchReg0         04900400
mach64xx ScratchReg1         00000000
mach64xx ClockCntl           00000002
mach64xx BusCntl             7333A040
mach64xx MemCntl             104211B7
mach64xx ExtMemCntl          05000001
mach64xx MemVgaWpSel         00010000
mach64xx MemVgaRpSel         00010000
mach64xx DacRegs             00FF3740
mach64xx DacCntl             8501600A
mach64xx GenTestCntl         00000008
mach64xx ConfigCntl          00000000
mach64xx ConfigChipId        41004754
mach64xx ConfigStat0         00000015
mach64xx ConfigStat1         00000000
mach64xx ConfigStat2         00000000
mach64xx DspConfig           003A06B3
mach64xx DspOnOff            00C80680
mach64xx DpBkgdClr           FFFFFFFF
mach64xx DpChainMsk          FFFFFFFF
mach64xx DpFrgdClr           FFFFFFFF
mach64xx DpMix               FFFFFFFF
mach64xx DpPixWidth          00040404
mach64xx DpSrc               FFFFFFFF
mach64xx DpWriteMsk          FFFFFFFF
mach64xx LcdIndex            00000000
mach64xx LcdData             00000000
mach64xx PLL         CD D5 21 14 9A 03 EB E8 - C4 B8 00 A1 A6 1B 00 00
                     CD D5 21 14 9A 03 FB E8 - C4 00 00 E1 A6 1B 00 00
mach64xx VCLK0	25165286
mach64xx VCLK1	28347104
mach64xx VCLK2	39917350
mach64xx VCLK3	0

rom table offset 102
freq table offset 68A
memclk 67000000
ref_freq 14320000
ref_divider 33
min_freq 9260000
max_freq 222180000
pd 3 value 0 (|3)
post = 8
mach64xx pixel clock = 25160000

main->exits
-- EOF -----------------------------------------------------------------

-- pci.txt -------------------------------------------------------------
0.0.0:	06.00.00 8086/04d0   0
0.1.0:	06.01.00 8086/122e   0
0.1.1:	01.01.80 8086/1230   0 4:00005001 16
0.11.0:	03.00.00 1002/4754 255 0:40000000 16777216 1:00001001 256 2:41000000 4096
0.8.0:	03.00.00 5333/8811   0 0:70000000 67108864
-- EOF -----------------------------------------------------------------


--
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.

                            --Lao Tzu (Peter Merel, trans.)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] VGA trubble agin
  2003-05-31 20:01 [9fans] VGA trubble agin Matt Gushee
@ 2003-05-31 20:19 ` Russ Cox
  2003-05-31 20:51   ` Matt Gushee
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2003-05-31 20:19 UTC (permalink / raw)
  To: 9fans

I know exactly what your screen looks like.
Unfortunately, this sort of thing means the
memory timings aren't quite correct w.r.t.
the video timings, and I don't remember how
to go about fixing it.  It usually requires
futzing with the driver.  I hate the ATI Mach64
series.  They require way too many weird
calculations and we never got them right.

You might have better luck with the Trio64V+
(or you might not, but it's worth trying).
Those at least never gave me that weird striped
effect.

Another possibility is that you're running the
monitor at too high a frequency, though if it
fails at 640x480 then that's not the case (we
use a standard frequency for 640x480).

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] VGA trubble agin
  2003-05-31 20:19 ` Russ Cox
@ 2003-05-31 20:51   ` Matt Gushee
  2003-05-31 20:56     ` Matt Gushee
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Gushee @ 2003-05-31 20:51 UTC (permalink / raw)
  To: 9fans

On Sat, May 31, 2003 at 04:19:59PM -0400, Russ Cox wrote:
>
> You might have better luck with the Trio64V+
> (or you might not, but it's worth trying).
> Those at least never gave me that weird striped
> effect.

OK, I pulled out the ATI card and am now trying with the S3 ... and I'm
happy to say that it's working! Well, more or less. Actually, I
specified 800x600x8 in plan9.ini, and my actual display is squashed
horizontally so that it's more like 600x600. So I hope there's a way to
fix this, but it's at least usable for the time being.

--
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.

                            --Lao Tzu (Peter Merel, trans.)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] VGA trubble agin
  2003-05-31 20:51   ` Matt Gushee
@ 2003-05-31 20:56     ` Matt Gushee
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Gushee @ 2003-05-31 20:56 UTC (permalink / raw)
  To: 9fans

On Sat, May 31, 2003 at 02:51:24PM -0600, Matt Gushee wrote:
>
> OK, I pulled out the ATI card and am now trying with the S3 ... and I'm
> happy to say that it's working! Well, more or less. Actually, I
> specified 800x600x8 in plan9.ini, and my actual display is squashed
> horizontally so that it's more like 600x600. So I hope there's a way to
> fix this,

In case anyone was going to worry about this, don't. I remembered the
row of buttons on the bottom of my monitor. It's fixed.

--
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.

                            --Lao Tzu (Peter Merel, trans.)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-31 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-31 20:01 [9fans] VGA trubble agin Matt Gushee
2003-05-31 20:19 ` Russ Cox
2003-05-31 20:51   ` Matt Gushee
2003-05-31 20:56     ` Matt Gushee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).