kernel update problem

Richard Pyne rpyne at kinfolk.org
Thu Jul 12 17:41:03 CEST 2007


On 12 Jul 2007 at 14:47, Patrik Gräser wrote:

> >> 2.6.22.1 only fixes one little error in netfilter in network part of
> >> kernel. It has nothing to do with hard drives. Load the kernel
> >> configuration from 2.6.22 using kernel menu. If you did not save kernel
> >> configuration to a file in kernel menu when you were configuring 2.6.22
> >> you can try to load it from /usr/src/linux-2.6.22/.config
> >>     
> >
> > Just to make sure: He's been using .20 before .. not .22. So he cannot
> > use a .22 configuration.
> >
> > I'd say your missing SATA driver is due to the kernel driver
> > reorganisation which happened a few kernel releases ago. A way of
> > fixing it might be to reconfigure your kernel from scratch.
> I think you're right Moe.
> 
> This happened for me too when upgrading and it was indeed due to the 
> driver reorganization after 2.6.20.
> What might happen is that the drive is recognized as an IDE disk due to a
> compatibility mode in the hardware. If the correct driver is used it gets
> correctly recognized as an SATA drive and assigned as /dev/sd[n]

Looking at the dmesg from the 2.6.20 boot, it looks like the IDE driver 
loaded first and then the SATA drive took over.

>From dmesg of the  2.6.20 kernel boot:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
hdc: Optiarc DVD+/-RW AD-5540A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
Adaptec aacraid driver (1.1-5[2423]-mh3)
aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.2 loaded
3ware Storage Controller device driver for Linux v1.26.02.002.
3ware 9000 Storage Controller device driver for Linux v2.26.02.008.
ata_piix 0000:00:1f.2: version 2.00ac7
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 17
ata: 0x170 IDE port busy
ata: conflict with ide1
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
ata2: DUMMY
scsi0 : ata_piix
ata1.00: ATA-7, max UDMA7, 234441648 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 8
ata1.00: configured for UDMA/133
scsi1 : ata_piix
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HM120JI  YF10 PQ: 0 ANSI: 
5
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't 
support DPO or FUA
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't 
support DPO or FUA
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 >
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
Fusion MPT base driver 3.04.03
Copyright (c) 1999-2007 LSI Logic Corporation
Fusion MPT SPI Host driver 3.04.03
Fusion MPT SAS Host driver 3.04.03
usbmon: debugfs is not available
Initializing USB Mass Storage driver...


>From the dmesg of the 2.6.22.1 kernel boot:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
Probing IDE interface ide0...
hda: SAMSUNG HM120JI, ATA DISK drive
Probing IDE interface ide1...
hdc: Optiarc DVD+/-RW AD-5540A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 512KiB
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 >
hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
ata_piix 0000:00:1f.2: version 2.11
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 17
ata_piix 0000:00:1f.2: 0x1F0 IDE port busy
ata_piix 0000:00:1f.2: 0x170 IDE port busy
ata_piix 0000:00:1f.2: no available legacy port
usbmon: debugfs is not available
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input3
i2c /dev entries driver
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 17 (level, low) -> IRQ 17
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-
devel at redhat.com
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

So what is going on? The same disk drivers are loading, but are behaving 
very differently.

I have attached the .config files for both kernels. How do I get the 
drivers to either load in the reverse order or to behave as they did 
before?

Thanks.

--Richard
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  config-2.6.20
     Date:  12 Jul 2007, 8:00
     Size:  59387 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-2.6.20
Type: application/octet-stream
Size: 59386 bytes
Desc: not available
Url : http://foo-projects.org/pipermail/lunar/attachments/20070712/6694bc52/config-2.6-0001.obj
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  config-2.6.22.1
     Date:  12 Jul 2007, 9:21
     Size:  53481 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-2.6.22.1
Type: application/octet-stream
Size: 53481 bytes
Desc: not available
Url : http://foo-projects.org/pipermail/lunar/attachments/20070712/6694bc52/config-2.6.22-0001.obj


More information about the Lunar mailing list