sunzilog mess in 2.5/2.6
Hi!
i am trying to figure what is going wrong with the sunzilog
driver but i can't figure what is bad in sunzilog.c i don't
have keyboard/mouse nor serial i/o, maybe someone can connect
all the bits from the following info:
-------------
Relevant dmesg from 2.4:
Sparc Zilog8530 serial driver version 1.68.2.2
Sun Mouse-Systems mouse driver version 1.00
tty00 at 0xf1100004 (irq = 12,7e8) is a Zilog8530
tty01 at 0xf1100000 (irq = 12,7e8) is a Zilog8530
tty02 at 0xf1000004 (irq = 12,7e8) is a Zilog8530
tty03 at 0xf1000000 (irq = 12,7e8) is a Zilog8530
Sun TYPE 5 keyboard detected without keyclick
dmesg from a modified 2.6.0-test2-bk3:
Serial: Sun Zilog driver (2 chips, 4 channels).
zs: channel 0 at 0x000001fff1100004 (irq = 12,7e8) is a SunZilog at chip 0
zs: channel 1 at 0x000001fff1100000 (irq = 12,7e8) is a SunZilog at chip 0
zs: channel 2 at 0x000001fff1000004 (irq = 12,7e8) is a SunZilog at chip 1
zs: channel 3 at 0x000001fff1000000 (irq = 12,7e8) is a SunZilog at chip 1
ttyS0 at MMIO 0x000001fff1100004 (irq = 12,7e8) is a SunZilog
ttyS1 at MMIO 0x000001fff1100000 (irq = 12,7e8) is a SunZilog
mice: PS/2 mouse device common for all mice
evbug.c: Connected device: "Sun Mouse", zs/serio1/input0
input: Sun Mouse on zs/serio1
[ i am sure keyboard get registered in serio but doesn't show up here ]
-------------
relevant prtconf from 2.4 (or 2.6 - zs nodes are the same):
Node 0xf005a538
port-b-ignore-cd:
port-a-ignore-cd:
reg: 0000000f.01100000.00000004
interrupts: 00000028
device_type: 'serial'
name: 'zs'
Node 0xf005b9d8
reg: 0000000f.01000000.00000004
interrupts: 00000028
port-b-ignore-cd:
port-a-ignore-cd:
keyboard:
device_type: 'serial'
name: 'zs'
-------------
diff from prtconf-2.4 & prtconf-2.6:
13c13
< clock-frequency: 0442d878
---
> clock-frequency: 0442d9d0
75c75
< #power-cycles: '197'
---
> #power-cycles: '204'
336c336
< clock-frequency: 0885b0f0
---
> clock-frequency: 0885b3a0
[ is not supposed prtconf to get same results every time? ]
-------------
every `/etc/init.d/setserial stop` i get:
Unable to handle kernel NULL pointer dereference
tsk->{mm,active_mm}->context = 0000000000000726
tsk->{mm,active_mm}->pgd = fffff800006cf000
\|/ ____ \|/
"@'/ .. \`@"
/_| \__/ |_\
\__U_/
setserial(483): Oops [#1]
TSTATE: 0000004411009605 TPC: 00000000004fc68c TNPC: 00000000004fc690 Y: 00000000 Not tainted
TPC: <uart_close+0xc/0x200>
g0: 0000000000000001 g1: 00000000004e5324 g2: fffff80011f43850 g3: fffff8001121b440
g4: fffff80010c59220 g5: 0000000000000000 g6: fffff800102d0000 g7: 0000000000000000
o0: 0000000000000000 o1: fffff8001121a3a0 o2: 0000000000000000 o3: fffff8001082c118
o4: 000000000059ff40 o5: 0000000000000000 sp: fffff800102d30d1 ret_pc: 00000000004e5e94
RPC: <tty_fasync+0x74/0x140>
l0: fffff8001082c000 l1: 0000000000000000 l2: fffff8001082ca60 l3: 0000000000000020
l4: fffff8001082cd38 l5: 0000000000000001 l6: 0000000000000000 l7: 000000007017244c
i0: fffff8001082c000 i1: fffff8001121a3a0 i2: 00000000004fc680 i3: 0000000000000010
i4: fffff80011e3cec0 i5: 0000000000000000 i6: fffff800102d3191 i7: 00000000004e5994
I7: <release_dev+0x534/0x580>
Instruction DUMP: 9de3bf40 e25e2a58 a6046020 <e45c6018> 7ffca2f4 90100013 7fffa062 90100019 80a22000
-------------
`setserial -a /dev/ttyS0` from 2.4:
/dev/ttyS0, Line 0, UART: unknown, Port: 0xf1100004, IRQ: 7173248
Baud_base: 0, close_delay: 50, divisor: 16
closing_wait: 3000
Flags: spd_normal
`setserial -a /dev/ttyS0` from 2.6:
/dev/ttyS0, Line 0, UART: undefined, Port: 0x0000, IRQ: 6515136
Baud_base: 307200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal
[ weird setserial info in 2.6 ]
-------------
Let's get this f***ing bug fixed!! just show me the way if you have no time...
-solca
Reply to: