Skip to contentSkip to conversation

B2k and CONFIG_PDC_CONSOLE progress

parisc-linux Joel Soete 2 participants 3 messages Jan 28, 2004 – Jan 31, 2004

lore
Share & tools
lore

Joel Soete

author
#0 lore raw

Hi pa,

Well, i made some small progress: i reach to figure out that PAGE0 status changes between pdc_console_init() and pdc_io_getc():
@@ -1,4 +1,5 @@
- palx2000 kernel: pdc_console_init_force() would set a CL_DUP.
+ palx2000 kernel: mem_kbd != mem_cons.
+ palx2000 kernel: pdc_iodc_getc() would get from a CL_DUP. palx2000 kernel: PAGE0->mem_cons address: 100003a0. palx2000 kernel: PAGE0->mem_cons size: 48.
palx2000 kernel: PAGE0->mem_boot address: 100003d0.
@@ -10,9 +11,9 @@
palx2000 kernel: PAGE0->mem_kbd.dp.flags: 0.
palx2000 kernel: PAGE0->mem_cons.dp.bc[0]: 255.
palx2000 kernel: PAGE0->mem_cons.dp.bc[1]: 255.
- palx2000 kernel: PAGE0->mem_cons.dp.bc[2]: 10.
- palx2000 kernel: PAGE0->mem_cons.dp.bc[4]: 14.
- palx2000 kernel: PAGE0->mem_cons.dp.bc[5]: 1.
+ palx2000 kernel: PAGE0->mem_cons.dp.bc[2]: 255.
+ palx2000 kernel: PAGE0->mem_cons.dp.bc[3]: 10.
+ palx2000 kernel: PAGE0->mem_cons.dp.bc[4]: 1.
palx2000 kernel: PAGE0->mem_boot.dp.bc[0]: 255.
palx2000 kernel: PAGE0->mem_boot.dp.bc[1]: 255.
palx2000 kernel: PAGE0->mem_boot.dp.bc[2]: 255.
@@ -21,26 +22,27 @@
palx2000 kernel: PAGE0->mem_kbd.dp.bc[0]: 255.
palx2000 kernel: PAGE0->mem_kbd.dp.bc[1]: 255.
palx2000 kernel: PAGE0->mem_kbd.dp.bc[2]: 255.
- palx2000 kernel: PAGE0->mem_kbd.dp.bc[3]: 255.
- palx2000 kernel: PAGE0->mem_kbd.dp.bc[4]: 255.
- palx2000 kernel: PAGE0->mem_kbd.dp.bc[5]: 255.
- palx2000 kernel: PAGE0->mem_cons.dp.mod: 1.
+ palx2000 kernel: PAGE0->mem_kbd.dp.bc[3]: 10.
+ palx2000 kernel: PAGE0->mem_kbd.dp.bc[5]: 14.
+ palx2000 kernel: PAGE0->mem_cons.dp.mod: 0.
palx2000 kernel: PAGE0->mem_boot.dp.mod: 0.
- palx2000 kernel: PAGE0->mem_kbd.dp.mod: 255.
- palx2000 kernel: PAGE0->mem_cons.dp.layers[0]: 00000283.
+ palx2000 kernel: PAGE0->mem_kbd.dp.mod: 2.
+ palx2000 kernel: PAGE0->mem_cons.dp.layers[0]: 00000101. palx2000 kernel: PAGE0->mem_boot.dp.layers[0]: 00000005.
- palx2000 kernel: PAGE0->mem_cons.hpa: fee003f8.
+ palx2000 kernel: PAGE0->mem_cons.hpa: fb000000.
palx2000 kernel: PAGE0->mem_boot.hpa: f4002000.
- palx2000 kernel: PAGE0->mem_kbd.hpa: 00000000.
+ palx2000 kernel: PAGE0->mem_kbd.hpa: f4004000.
palx2000 kernel: PAGE0->mem_cons.spa: 00000000.
palx2000 kernel: PAGE0->mem_boot.spa: 00000000.
palx2000 kernel: PAGE0->mem_kbd.spa: 00000000.
palx2000 kernel: PAGE0->mem_cons.iodc_io: 0000e000. palx2000 kernel: PAGE0->mem_boot.iodc_io: 00019000.
- palx2000 kernel: PAGE0->mem_kbd.iodc_io: 00000000.
+ palx2000 kernel: PAGE0->mem_kbd.iodc_io: 00013000.
palx2000 kernel: PAGE0->mem_cons.pad: 0.
palx2000 kernel: PAGE0->mem_boot.pad: 0.
palx2000 kernel: PAGE0->mem_kbd.pad: 0.
- palx2000 kernel: PAGE0->mem_cons.cl_class: 7.
+ palx2000 kernel: PAGE0->mem_cons.cl_class: 9.
palx2000 kernel: PAGE0->mem_boot.cl_class: 1.

Is somebody have a small idea when this change could occurs?

Thanks,
Joel

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

#1 lore raw
Quoted 2 lines · Joel Soete

Well, i made some small progress: i reach to figure out that PAGE0 status changes between pdc_console_init() and pdc_io_getc():

....

Quoted 1 line

Is somebody have a small idea when this change could occurs?

PDC messes with page0 as well.
You have the read the PDC ERS for each PDC call to determine what "side effects" it has. Consider Page Zero "shared mem" for the guest OS (HPUX or Linux) and PDC.

grant

author
#2 lore raw

Hi Grant,

Quoted 7 lines · Grant Grundler
Quoted 2 lines · Joel Soete

Well, i made some small progress: i reach to figure out that PAGE0 status changes between pdc_console_init() and pdc_io_getc():

....

Quoted 8 lines
Quoted 1 line

Is somebody have a small idea when this change could occurs?

PDC messes with page0 as well.
You have the read the PDC ERS for each PDC call to determine what "side effects" it has. Consider Page Zero "shared mem" for the guest OS (HPUX or Linux) and PDC.

Ha ok, I still have to learn more :)

For the moment I reach to avoid any crash of 2.4 with pdc_console either I boot from graphics(0) or serial_1. My patch works well (i can read from pdc kdb) for serial_1 but for graphics(0), I get well a login prompt from pdc but unfortunately I don't yet reach to read from usb kbd.
But does it make sense to have pdc_console when we have an sti console?
(imho it have well sense for a serial and lan console. Please advise.)

Thanks again,
Joel