* S3 BIOS
@ 1996-09-10 8:22 Bernd Lind
0 siblings, 0 replies; only message in thread
From: Bernd Lind @ 1996-09-10 8:22 UTC (permalink / raw)
Hi,
Some months ago i reprogrammed the XF86_S3 X server. It was much too
slow on Alpha and, more important, didn`t use the new mmio mode of the
newer S3 chips. I want to use the Trio64V+ (and, later, ViRGE) for
framegrabbing.
There were still some errors which were mostly corrected by Harald
Koenig whom you may know - many thanks.
A second goal popped up some days ago. There might be a need to use more
than one S3 card in a system.
I have the RedHat 2.1 release right from the CD, fairly old stuff i
know. That's kernel 1.3.57. The boot software is the ARC console.
What happened:
The new mmio mode requires a 64 MB window of aligned physical address
space on the PCI. 0x1010000 bytes are 'mmap'ed. To my best knowledge the
XF86_S3 makes only 32bit accesses to the S3 registers, at least in my
original version. Because there were severe problems with the 968,
Harald changed that to 16 bit accesses, so it works for the 968 on the
xx86. My Trio64V+ never had that problem, neither on Alpha nor Intel.
At the moment I don't know what 'gcc' makes with narrower accesses on
Alpha, i suppose it`s a 32 bit read, modify with masking and write back.
Because there is a wonderful mess with write only and read/write
registers in the S3 chips i tried to stay with clean 32 bit write
accesses - that has the nice side effect to be faster. Accesses to the
S3 command register are serialized with an 'mb' of course.
All this hopefully means that the direct register access happens in
dense address space without using the HAE.
1. I never was able to read a S3 register in the new mmio mode. The
machine simply hangs. That doesn't hurt much for the graphics, the
graphics processor status register can be read with the 'in()'
emulation.
But i can't program the registers for frame-grabbing, some of these MUST
be read, which aren't accessible in I/O space. I don't have this problem
on Intel.
2. I want to get rid of the I/O accesses because i want to use more than
one card at once. I put 2 S3 cards into the system. The ARC console
prompted not even a single character. Then i removed the BIOS PROM from
the second card. Now i got the message from the BIOS on the first S3
card and the saw the line from the ARC console about 'emulation' ..
Nothing more. In my Intel box i have no problems with booting the system
with two cards. I can't do anything with the second one though.
This is a problem of the boot firmware and may be solved in
the meantime.
3. After turning control to Milo and Linux often some or all characters
displayed are garbage. It's random behaviour, about half of all cases
it's all o.k. The system works fine, only the font loading produces
garbage. Maybe that's fixed too.
4. I connected a serial terminal to ttyS0 in the hope that i could get
some message after a register read and before the crash. Wishful
thinking. Instead the ARC console choose to turn off the graphics card
and use the serial terminal exclusively. The S3 BIOS is not executed any
more and the S3 card is therefore not usable in the system. After
removing the serial line the card worked as before (fancy autodetect
feature)
7. If all wents well i have to program these damned I/O registers for
the second S3 card. Apparently this can work only if it is up in the new
mmio mode, else the first one gets disturbed. If i am very lucky there
is no need to read them. The reads can happen only is sparse address
space, because you first have to program the 8 bit wide index register,
then read the nearby 8 bit wide data register. Is this supported in any
way in the 'libc' or how could i do that?
8. Understanding that i have an outdated system, how can i update it in
the meanwhile? The best thing would be a CDROM from RedHat with ELF
support, but when? Of course i can compile newer kernels, but do i have
to patch them? What's with gcc changes and libc and and and ..
Hoping that somebody helps me out. In any case i was very pleased to
hear that Digital Semi has a fulltime Linux group. Great!
Greetings
--
Voxel Systems GmbH
Bildverarbeitung
Tel: ++49 8152 92140
Fax: ++49 8152 92143
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-09-10 8:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-10 8:22 S3 BIOS Bernd Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox