Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Get Support for SII 3512 with 2.6.x kernels
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Fri Jan 09, 2004 8:22 am    Post subject: [HOWTO] Get Support for SII 3512 with 2.6.x kernels Reply with quote

WARNING! This breaks support for the SII 3114, but I think one who has a 3512 in his system would not need support for the 3114 anyway?! This evil, quick hack *could* have some sideeffects I am not aware of, but (at least for me) it works perfectly. YOU HAVE BEEN WARNED. /WARNING

First, emerge mm-sources, should be 2.6.1-rc2-mm1.

then apply this patch to the sources (with patch -p1 < patch-sii3512_support):

hephaestos src # cat patch-sii3512_support
Code:
diff -Nur linux-2.6.1-rc1-mm2/drivers/ide/pci/siimage.c linux-2.6.1-rc1-xRF/drivers/ide/pci/siimage.c
--- linux-2.6.1-rc1-mm2/drivers/ide/pci/siimage.c       2004-01-09 09:49:37.000000000 +0100
+++ linux-2.6.1-rc1-xRF/drivers/ide/pci/siimage.c       2004-01-09 09:46:49.599669088 +0100
@@ -56,7 +56,7 @@
        {
                case PCI_DEVICE_ID_SII_3112:
                case PCI_DEVICE_ID_SII_1210SA:
-               case PCI_DEVICE_ID_SII_3114:
+               case PCI_DEVICE_ID_SII_3512:
                        return 1;
                case PCI_DEVICE_ID_SII_680:
                        return 0;
@@ -1201,7 +1201,7 @@
        { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_680,  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_3112, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
        { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_1210SA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2},
-       { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_3114, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3},
+       { PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_3512, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3},
        { 0, },
 };

diff -Nur linux-2.6.1-rc1-mm2/drivers/ide/pci/siimage.h linux-2.6.1-rc1-xRF/drivers/ide/pci/siimage.h
--- linux-2.6.1-rc1-mm2/drivers/ide/pci/siimage.h       2004-01-09 09:49:37.000000000 +0100
+++ linux-2.6.1-rc1-xRF/drivers/ide/pci/siimage.h       2004-01-09 09:46:49.599669088 +0100
@@ -84,8 +84,8 @@
                .extra          = 0,
        },{     /* 3 */
                .vendor         = PCI_VENDOR_ID_CMD,
-               .device         = PCI_DEVICE_ID_SII_3114,
-               .name           = "SiI3114 Serial ATA",
+               .device         = PCI_DEVICE_ID_SII_3512,
+               .name           = "SiI3512 Serial ATA",
                .init_chipset   = init_chipset_siimage,
                .init_iops      = init_iops_siimage,
                .init_hwif      = init_hwif_siimage,
diff -Nur linux-2.6.1-rc1-mm2/include/linux/pci_ids.h linux-2.6.1-rc1-xRF/include/linux/pci_ids.h
--- linux-2.6.1-rc1-mm2/include/linux/pci_ids.h 2004-01-09 09:49:37.000000000 +0100
+++ linux-2.6.1-rc1-xRF/include/linux/pci_ids.h 2004-01-09 09:47:09.544636992 +0100
@@ -884,7 +884,7 @@

 #define PCI_DEVICE_ID_SII_680          0x0680
 #define PCI_DEVICE_ID_SII_3112         0x3112
-#define PCI_DEVICE_ID_SII_3114         0x3114
+#define PCI_DEVICE_ID_SII_3512         0x3512
 #define PCI_DEVICE_ID_SII_1210SA       0x0240

 #define PCI_VENDOR_ID_VISION           0x1098


*edit*:
Evidence
Code:
SiI3512 Serial ATA: IDE controller at PCI slot 0000:01:07.0
SiI3512 Serial ATA: chipset revision 1
SiI3512 Serial ATA: 100% native mode on irq 11
    ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
    ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio
hde: ST3160023AS, ATA DISK drive
ide2 at 0xffffff000102f080-0xffffff000102f087,0xffffff000102f08a on irq 11
hde: max request size: 64KiB
hde: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63
 /dev/ide/host2/bus0/target0/lun0: p1 p2 p3 < p5 p6 p7 >

_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum