2001-10-02 13:38:19

by jdthood

[permalink] [raw]
Subject: Re: [PATCH] PnPBIOS 2.4.9-ac1[56] Vaio fix

>> However, if is_sony_vaio_laptop is 0 at pnpbios init
>> time then if you look in /proc/bus/pnp you'll see numerical
>> entries there.
>
>Yes:
># cd /proc/bus/pnp/
># ls
>00 01 02 03 04 05 06 07 08 09 0b 0c 0d 0e boot devices
># ls boot
>00 01 02 03 04 05 06 07 08 09 0b 0c 0d 0e
>
>> Want to crash your machine? Just read from
>> them. (The numerically named entries in /proc/bus/pnp/boot
>> should be okay to read and write, though.)
>
>It doesn't crash. I did a "cat /proc/bus/pnp/0* > /dev/null"
>and the laptop is still alive.

Well! That's interesting. Reading from those files
induces the same calls to the PnP BIOS that crashed
your system before. A mystery. Perhaps there's a way
to use the "current" config of your PnP BIOS after all---
so long as you avoid the particular [sequences of] calls that
cause crashes. You'll have to experiment with this yourself.

In the meantime, though, it's safest to disable use of
the "current" config entirely on Sony Vaio Laptops. I'll
test your patch now.

--
Thomas Hood
(Don't reply to the From: address but to jdthood_AT_yahoo.co.uk)