Skip to contentSkip to conversation

SATA 2.4 ICH8

DISCUSSION Steve Rosenbluth 2 participants 2 messages May 19, 2008 2 messages not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hello Willie,

Attached is the patch you asked for (ICH8 SATA controller definition). I have also supplied two other patches for 2.4.36.4

From the enclosed README :

"The following patches are for kernel 2.4.36.4 sources obtained from kernel.org :

intel_sata_ich8.patch
This patches drivers/scsi/ata_piix.c
It allows the kernel to access a SATA drive on an Intel ICH8 controller using the ich7 driver. This has been tested and it seems quite stable.

sigset_cast.patch
This patches include/linux/signal.h
There is an implicit cast from an integer to an
unsigned long (sigset_t) which causes compilers to generate warnings. Different compilers could possibly produce different code. This change has been tested over several years of use and is stable.

processor_colons_gcc-2.95.3.patch
This patches include/asm/processor.h
Sometime between 2.4.29 and 2.4.36.2 spaces were deleted between colons which causes compiler gcc 2.95.3 to fail to parse the header when compiling applications which include it.
Adding back the spaces solves the problem on gcc 2.95.3.
gcc 4.1.1 also compiles the kernel OK with this patch."

Cheers,
-Steve

Quoted 29 lines · Willy Tarreau

Hi Steve,

Quoted 10 lines · Steve Rosenbluth

Hi Willy,

I got another Intel 965 82801H ICH8 chipset SATA interface working with the 2.4.36.2 kernel.

In ata_piix.c I added to pci_device_id piix_pci_tbl[] the following PCI ID :
{ 0x8086, 0x2829, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata },

I was able to boot the kernel OK from the SATA drive, but I did not do any stress testing.

I understand that you are not adding laptop chipsets, like mine, to 2.4, but I thought you would like to know that it works. Perhaps there ought to be a contrib driver web page somewhere detailing such information.

I already have such a page (though it has not been updated for a while) :

   http://linux.1wt.eu/kernel/2.4/lkup/

However, I've already queued a few minor patches in case I finally open 2.4.37. The more I accumulate, the more reason I will get to open it. If you provide me with a patch, I'll queue it and it will contribute to my will to open 2.4.37 :-)

Regards,
Willy

Signature · 1 line
Steve Rosenbluth
#3 lore raw

Hi Steve,

Quoted 3 lines · Steve Rosenbluth

Hello Willie,

Attached is the patch you asked for (ICH8 SATA controller definition).

OK thanks, I'm queueing it for 2.4.37.

Quoted 12 lines

I have also supplied two other patches for 2.4.36.4

From the enclosed README :

"The following patches are for kernel 2.4.36.4 sources obtained from kernel.org :

intel_sata_ich8.patch
This patches drivers/scsi/ata_piix.c
It allows the kernel to access a SATA drive on an Intel ICH8 controller using the ich7 driver. This has been tested and it seems quite stable.

Quoted 6 lines

sigset_cast.patch
This patches include/linux/signal.h
There is an implicit cast from an integer to an
unsigned long (sigset_t) which causes compilers to generate warnings. Different compilers could possibly produce different code. This change has been tested over several years of use and is stable.

OK, it makes sense. Another solution could have been to use ~0 instead of (unsigned long)-1, but at least using -1 is easier to match with other places. It would be kind to send the same patch for 2.6-mainline too.

Quoted 6 lines

processor_colons_gcc-2.95.3.patch
This patches include/asm/processor.h
Sometime between 2.4.29 and 2.4.36.2 spaces were deleted between colons which causes compiler gcc 2.95.3 to fail to parse the header when compiling applications which include it.
Adding back the spaces solves the problem on gcc 2.95.3.

Amusing. Interestingly, I mostly build my kernels with 2.95.3 too and never got this funny thing. But I think that 2.95.3 has existed in so many flavors that all we know is that it's based on some 2.95.[234] + more or less a ton of patches.

Quoted 1 line

gcc 4.1.1 also compiles the kernel OK with this patch."

I have no worries about this :-)

OK, I'm queueing your patches.

Thanks Steve!
Willy