Skip to contentSkip to conversation

LED device moves around on B160L

parisc-linux Scott Ashcroft 2 participants 4 messages Oct 15, 2001 – Oct 16, 2001

lore
Share & tools
lore
#0 lore raw

Something weird is going on with the address of the LED device on my B160L.

Here's a grep of the logs I've got:

elson:/var/log# zgrep "Linux version\|LED" messages* 
messages:Oct 15 15:55:42 nelson kernel: Linux version 2.4.9-pa57
(root@nelson) (gcc version 3.0.2 20010922 (Debian prerelease)) #16 Mon
Oct 15 15:48:33 BST 2001
messages:Oct 15 15:55:42 nelson kernel: LED display at f0190000
registered
messages.0:Oct  9 14:58:13 nelson kernel: Linux version 2.4.9-pa45
(root@nelson) (gcc version 3.0.2 20010922 (Debian prerelease)) #13 Tue
Oct 9 14:30:37 BST 2001
messages.0:Oct  9 14:58:13 nelson kernel: LED display at ffd0c000
registered
messages.0:Oct 10 13:34:23 nelson kernel: Linux version 2.4.9-pa45
(root@nelson) (gcc version 3.0.2 20010922 (Debian prerelease)) #13 Tue
Oct 9 14:30:37 BST 2001
messages.0:Oct 10 13:34:23 nelson kernel: LED display at ffd0c000
registered
messages.0:Oct 13 13:10:09 nelson kernel: Linux version 2.4.9-pa52
(root@nelson) (gcc version 3.0.2 20010922 (Debian prerelease)) #14 Sat
Oct 13 12:42:38 BST 2001
messages.0:Oct 13 13:10:09 nelson kernel: LED display at f0190001
registered
messages.1.gz:Sep 30 12:54:48 nelson kernel: Linux version 2.4.9-pa29
(root@nelson) (gcc version 3.0.2 20010825 (Debian prerelease)) #12 Sun
Sep 30 12:26:28 BST 2001
messages.1.gz:Sep 30 12:54:48 nelson kernel: PDC reported no LCD or LED.
messages.1.gz:Sep 30 12:54:48 nelson kernel: LED display at ffd0c000
registered

I think ffd0c000 is the correct address looks like it broke between pa45 and pa52.

Any thing I can do to debug this?

Cheers,
Scott

#1 lore raw
Quoted 2 lines · Scott Ashcroft

Something weird is going on with the address of the LED device on my B160L.

I can reproduce this on an A180 here. I'll look into it tomorrow; thanks.

Signature · 1 line
Revolutions do not require corporate support.
#2 lore raw
In reply to Scott Ashcroft
Quoted 2 lines · Scott Ashcroft

Something weird is going on with the address of the LED device on my B160L.

[...]

Quoted 2 lines

I think ffd0c000 is the correct address looks like it broke between pa45 and pa52.

Looks like this change was intentional. Here's what's happening:

led_init calls pdc_chassis_info to find the address of the LCD display. This then calls register_led_driver, passing it that address that you have above. Then the lasi driver calls register_led_driver again, but it's already been initialised, so it returns silently. This all seems correct to me.

If PDC is telling us this address, then it ought to be correct... right? I don't know anything about the LED/LCD stuff yet, so I hope someone who does can explain why this is correct.

Signature · 1 line
Revolutions do not require corporate support.
#3 lore raw
Quoted 15 lines · Matthew Wilcox
Quoted 2 lines · Scott Ashcroft

Something weird is going on with the address of the LED device on my B160L.

[...]

Quoted 2 lines

I think ffd0c000 is the correct address looks like it broke between pa45 and pa52.

Looks like this change was intentional. Here's what's happening:

led_init calls pdc_chassis_info to find the address of the LCD display. This then calls register_led_driver, passing it that address that you have above. Then the lasi driver calls register_led_driver again, but it's already been initialised, so it returns silently. This all seems correct to me.

Quoted 3 lines

If PDC is telling us this address, then it ought to be correct... right? I don't know anything about the LED/LCD stuff yet, so I hope someone who does can explain why this is correct.

The correct address seems to be f0190001. I've verified this by checking that the LEDs work when that address gets detected.
The lasi driver tries to register ffd0c000 but as you say it gets ignored. Don't know why the PDC returns f0190000 every so often.

Thanks for looking,
Scott