Re: 2.4.20-pre10-ac2, Sony PCG-C1MHP and Sonypi

From: Manuel Serrano (Manuel.Serrano@sophia.inria.fr)
Date: Tue Nov 05 2002 - 11:44:25 EST


> The failed commands happen when sonypi tries to access the 0x62
> and 0x66 ports, which are (wrongly) reserved by the keyboard
> (this is why sonypi cannot reserve them). These registers are
> also used by ACPI 'Embedded Controller'.
Oh yes, really!

Have you read my other bug report where I have mentioned that there is
a problem with ACPI and the keyboard unless I load the USB modules
(just in case you have not read the mail I add it at the end of this
one)? USB just make the problem to go away (may be erroneously).

> You didn't say if you compiled in the ACPI susbystem. Does it
> change something if you do not compile it (in case you did
> previously) or if you do compile it (in case you didn't) ?
Up to now every was compiled as modules.

If I try to compile ACPI inside the kernel, I got:

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-pre10-ac2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=0 -malign-jumps=0 -malign-loops=0 -nostdinc -iwithprefix include -DKBUILD_BASENAME=compat -c -o compat.o compat.c
make[3]: *** No rule to make target `/usr/src/linux-2.4.20-pre10-ac2/drivers/pci/devlist.h', needed by `names.o'. Stop.
make[3]: Leaving directory `/usr/src/linux-2.4.20-pre10-ac2/drivers/pci'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-pre10-ac2/drivers/pci'
make[1]: *** [_subdir_pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-pre10-ac2/drivers'
make: *** [_dir_drivers] Error 2
-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----

The Makefile for building the kernel seems to be missing a dependence
(no, no, I have not forgotten to emit "make dep" after configuring the
kernel :-). As a workaround, I did:

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
cd drivers/pci
gcc -o gen-devlist gen-devlist.c
./gen-devlist <pci.ids
-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----

Apparently, compiling ACPI in the kernel, fixes the problem I have with the
keyboard. I will investigate to test if it also fixes the problem
with USB and SONYPI. I will tell you this by tomorrow morning.

Many thanks.

-- 
Manuel

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:38 EST