Skip to contentSkip to conversation

Qn on Linux/PA-RISC future Console driver

parisc-linux Jason Eckhardt 4 participants 4 messages Apr 7, 1999

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

Hi,
Has anyone done some work on Linux/PA-RISC Console driver. Are we planning to use PDC for console or is it possible to directly access Console device.

I believe HP-UX uses the STI ROM interface rather than going through the IODC interface (i.e. like the bootstrap), although an HP person can tell us positively.
It doesn't seem we could get very good performance through IODC console calls due to the setup involved when calling it from an virtually addressed OS (switching to real mode, etc). Also, I believe that IODC is not re-entrant. I don't know if the STI ROM has the same restrictions.

It would be nice to have direct access to the console device (although it is more work), but as of
yet we have no console device-specific documentation (or even the STI ROM i/f for that matter).

Jason.

#1 lore raw
Quoted 5 lines

Hi,
Has anyone done some work on Linux/PA-RISC Console driver. Are we planning to use PDC for console or is it possible to directly access Console device.

The GSC and PCI RS-232 consoles are managed by asio0 (tty) driver. Not clear on HP-PB (SIO driver environment - not WSIO) or graphics consoles.

grant

Grant Grundler
Enterprise Systems Technology Lab
+1.408.447.7253

#2 lore raw
In reply to Jason Eckhardt
Quoted 11 lines · Jason Eckhardt
Quoted 7 lines

Hi,
Has anyone done some work on Linux/PA-RISC Console driver. Are we planning to use PDC for console or is it possible to directly access Console device.

I believe HP-UX uses the STI ROM interface rather than going through the IODC interface (i.e. like the bootstrap), although an HP person can tell us positively.

IODC uses STI to access the graphics device. This removes graphics
device dependencies in IODC and allows any graphics device (including unknown or new devices) to be used as the text only boot device.

Don Dyer
Workstation Systems Lab
+1 970/898-4277

#3 lore raw
In reply to Jason Eckhardt
Quoted 11 lines
Quoted 7 lines

Hi,
Has anyone done some work on Linux/PA-RISC Console driver. Are we planning to use PDC for console or is it possible to directly access Console device.

I believe HP-UX uses the STI ROM interface rather than going through the IODC interface (i.e. like the bootstrap), although an HP person can tell us positively.

That is correct. The HPUX kernel uses the STI interface which involves loading a set of routines out of the ROM into memory. (The STI ROM is not execute in place. In fact on older SGC based systems, it is a byte wide ROM attached to a 32 bit bus... In some later systems [e.g. 712] the "STI ROM" is an image that is compiled into the main bootrom). The kernel uses the standard PS2 or HIL driver for the console. (In HP-UX land this is called the ITE or Internal Terminal Emulator.)

Quoted 4 lines

It doesn't seem we could get very good performance through IODC console calls due to the setup involved when calling it from an virtually addressed OS (switching to real mode, etc). Also, I believe that IODC is not re-entrant. I don't know if the STI ROM has the same restrictions.

You just need the ability to allocate code space in the kernel, unpack the ROM, and then jump to the routines. When I ported this to another OS the challenge was getting the page permissions set to allow execution of a malloc'd region. The code is relocatable, and can be run in the virtually addressed kernel.

Quoted 5 lines

It would be nice to have direct access to the console device (although it is more work), but as of
yet we have no console device-specific documentation (or even the STI ROM i/f for that matter).

You don't want to have to have code to talk to all the possible devices (and potential new devices) compiled into the kernel. That's the beauty of STI. Plop a newly released graphics card in a system, and the card carries its STI ROM so that the kernel doesn't necessarily need to be upgraded. Of course the X server has to know about any new device.

As for STI documentation, The only docs that exist are ancient, and about 4 revs of hardware out of date. The engineer that maintains this told me he intended to bring the docs up to date for the Linux project, and then feed them through the appropriate channels for release.

-Bill