Linux 2.4.6-ac4
Alan,
Compiling 2.4.6-ac4 (x86, CONFIG_PCI) I get:
gcc -D__KERNEL__ -I/tmp/linux-2.4.6-ac4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o quirks.o quirks.c
quirks.c:112: warning: `/*' within commentquirks.c: In function `quirk_vialatency':
quirks.c:145: warning: passing arg 3 of `pci_write_config_byte' makes integer from pointer without a cast
...
gcc -D__KERNEL__ -I/tmp/linux-2.4.6-ac4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o bluesmoke.o bluesmoke.c
bluesmoke.c:241: warning: initialization from incompatible pointer type
Of these three warnings, the second (drivers/pci/quirks.c:pci_write_config_byte) indicates a real bug (passing a pointer to int instead of the int itself). The patch below fixes this bug and silences the other two warnings.
/Mikael
arch/i386/kernel/bluesmoke.c renamed from arch/i386/kernel/bluesmoke.c.~1~ +1 -1
@@ -233,7 +233,7 @@ } } -static int __init mcheck_disable (char *str,int *unused) +static int __init mcheck_disable (char *str) { mce_disabled =1 ;return 0 ;
drivers/pci/quirks.c renamed from drivers/pci/quirks.c.~1~ +2 -2
@@ -108,7 +108,7 @@if (p!=NULL ) {pci_read_config_byte (p,PCI_CLASS_REVISION , &rev); -/* 0x40 - 0x4f == 686B, 0x10 - 0x2f == 686A; thanks Dan Hollis +/* 0x40 - 0x4f == 686B, 0x10 - 0x2f == 686A; thanks Dan Hollis */ /* Check for buggy part revisions */ if (rev <0x40 && rev >0x42 )return ;
@@ -142,7 +142,7 @@ "Master priority rotation on every PCI master grant */ busarb &= ~(1 <<5 ); busarb |= (1 <<4 ); -pci_write_config_byte (dev,0x76 , &busarb); +pci_write_config_byte (dev,0x76 , busarb);printk (KERN_INFO "Applying VIA southbridge workaround.\n" ); }
it does not boot here.
I use 2.4.6-ac4, with the following hand-made patch in drivers/pci/quirks.c:
- if (rev < 0x40 && rev > 0x42)
+ if (rev < 0x40 || rev > 0x42)
It stops right after:
hdd: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
I have a VIA686b, lspci and all on demand.
Xav
Quoted 8 lines · Xavier Bestel
it does not boot here.
I use 2.4.6-ac4, with the following hand-made patch in
drivers/pci/quirks.c:(quoted diff) +1
-1- if (rev < 0x40 && rev > 0x42) + if (rev < 0x40 || rev > 0x42)
Quoted 4 lines
It stops right after:
hdd: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM driveI have a VIA686b, lspci and all on demand.
Exactely the same behavior for -ac5 ...
Xav
Quoted 2 lines
indicates a real bug (passing a pointer to int instead of the int itself). The patch below fixes this bug and silences the other two warnings.
The pci ones I've already fixed. I merged the wrong diff version of my changes into the -ac tree. ac5 will fix that. I've merged the bluesmoke diff and hopefully fixed the bootflag oops