[comp.os.minix] TTY driver bugs/questions

paradis@encore.UUCP (Jim Paradis) (01/15/88)

Now that you've all got your shiny-new TTY drivers, I've already
started receiving bug reports and enhancement requests.  Specifically,
I got a note from ast listing a few deficiencies...

(1) It produces a little bit of snow on cheap CGAs.  Yes, I know this,
and I'm going to work on it (possibly by borrowing some of ast's well-
tested code for this purpose).  I felt that the snow was minor enough
not to be TOO annoying, and that getting serial capabilities working
was quite a bit more important.

(2) It doesn't have "scroll-reverse" capabilities.  Mea culpa.  I
forgot that "mined" requires this (I use ELLE all the time these
days).  I'll post a patch RSN to take care of this.

(3) Biggest boo-boo of all:  Apparently, my console driver doesn't
work on EGAs.  Since the only machine I could test this on has a
cheap CGA, I just sort of prayed that it would work on an EGA as
well.  Could someone out there fill me in on how to set up an EGA
for CGA emulation, and on the deficiencies in said emulation mode?

On to other news, though:  After finishing with the tty driver, I
got ioctl() to work by passing the entire structure to the kernel
(This makes it possible to use all fields of a structure as well
as to add and expand structures very easily).  Using this, I then
ported "dcp" (the UUCP clone) and was able to send a mail message
via uucp from my PC to encore.  Next step is to port a mailer and
news... (and the race is on, to see who can have the first MINIX
PC on the net! :-) )

   +----------------+  Jim Paradis                  linus--+
+--+-------------+  |  Encore Computer Corp.       necntc--|
|  | E N C O R E |  |  257 Cedar Hill St.           ihnp4--+-encore!paradis
|  +-------------+--+  Marlboro MA 01752           decvax--|
+----------------+     (617) 460-0500             talcott--+
...coated with sesame seeds, and garnished with lark's vomit!

bob@dhw68k.cts.com (Bob Best) (01/18/88)

In article <2492@encore.UUCP> paradis@encore.UUCP (Jim Paradis) writes:
>
>(3) Biggest boo-boo of all:  Apparently, my console driver doesn't
>work on EGAs.  Since the only machine I could test this on has a
>cheap CGA, I just sort of prayed that it would work on an EGA as
>well.  Could someone out there fill me in on how to set up an EGA
>for CGA emulation, and on the deficiencies in said emulation mode?
>
I was able to support EGA by using the simple fix provided previously
for Minix.  Specifically, I removed the code in con_init() that sends
video parameters to the CGA (see under "Initialize the 6845").  I then
added the following:

in the #define section -
	#define EGA_ADDR_PORT	0x3c4
	#define EGA_DATA_PORT	0X3c5

in con_init() -
	port_out(EGA_ADDR_PORT, 4);
	port_out(EGA_DATA_PORT, 1);

This fix has solved my EGA problems.

What I have noticed during brief testing of the tty driver is a problem
involving response lag to tty input when I am running in multiuser mode.
If I have a process running on the serial terminal that continuously
outputs data to the terminal, I notice that the response to keyboard input
from the console takes in excess of 5 seconds!  Also, if I have processes
running simultaneously on serial terminal and console that are continuously
outputting data, a Ctrl-S from the serial terminal might require up to
20 seconds to suspend scrolling while at other times the response is
immediate in a seemingly random pattern.  I am currently in the process of
trying to isolate this, but any help from Jim Paradis or someone else
in the know would be appreciated.

The Paradis tty driver is a marvelous achievement for which I am extremely
grateful.  Many thanks, Jim, for the time and effort.  I really do
appreciate the opportunity of having the entire source code to a fully
functional multiuser operating environment to tinker with.


-- 
Bob Best
uucp: ...{trwrb,hplabs}!felix!dhw68k!bob	InterNet: bob@dhw68k.cts.com

ast@cs.vu.nl (Andy Tanenbaum) (01/21/88)

In article <4348@dhw68k.cts.com> bob@dhw68k.cts.com (Bob Best) writes:
> Suggestion for using previous EGA fix...

That only words for clone EGA cards that have CGA emulation.  Half of them
don't.  For other cards, the tty driver should be modified to include the
software scrolling that has been posted several times.

>The Paradis tty driver is a marvelous achievement for which I am extremely
>grateful.  Many thanks, Jim, for the time and effort.  

I also appreciate the effort, but I can't get it to work at all on a Z-248
with the Paradise Hi Res card and a monochrome monitor.  Most of the lines
are blank, sort of at random, I think.  I would like to see postings from other
people to see what their experience is with the new driver, especially for
monochrome cards and Hercules cards.  Suggestions for driver fixes are welcome.

Andy Tanenbaum (ast@cs.vu.nl)