Saturday, November 05, 2005

SiS IDE Controller 5513 [sis5513] patch, try 1

Supported (tested) kernels:
2.6.12-1.1381_FC3

Problem:
On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513.
Go figure why on the file [sis5513] there is no string to address DMA setup to the "SiS5513" chipset, maybe sooner support and no rework after that.

Approach:
Modify the module source to recognise the controller hardware.

Remarks:
RPM kernel spec file part will be covered on the kernel specific part.

1. Get and install the kernel source that applies :

2. Patch to the file [sis5513.c]:

### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###
cat > /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch << __END__
--- a/drivers/ide/pci/sis5513.c 2005-11-05 12:29:17.000000000 +0100
+++ b/drivers/ide/pci/sis5513.c 2005-11-05 12:29:37.000000000 +0100
@@ -112,6 +112,7 @@
{ "SiS5596", PCI_DEVICE_ID_SI_5596, ATA_16 },
{ "SiS5571", PCI_DEVICE_ID_SI_5571, ATA_16 },
{ "SiS551x", PCI_DEVICE_ID_SI_5511, ATA_16 },
+ { "SiS5513", PCI_DEVICE_ID_SI_5511, ATA_133 },
};

/* Cycle time bits and values vary across chip dma capabilities
__END__
### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###

Please always address to my hardware, os and kernel patching general procedures before posting a question.

No comments: