SATA status report updated
Hi Simon,
Quoted 5 lines · Simon Oosthoek
I'm wondering how the support for the SIS 182 controller is doing, I noticed they have a GPL driver on their website for kernel 2.6.10, which is not a drop in replacement for
sata_sis.cin 2.6.12.5, I haven't tried compiling it as an add-on module outside the tree, though...
I tried the sources from the SiS website (that seem to add more details than my simple patch that just adds the device ID) as a drop in for the Fedora installation kernel 2.6.11-1.1369_FC4, but the kernel build process ran into an error at the sata_sis module. The problem is that the source from SiS has a conditional code that depends on the definition of a symbol "KERN_2_6_10" which is defined by their "outside build makefile", but not in the standard kernel build process. I added a #define KERN_2_6_10 to the source and then it compiled also inside the kernel build process.
Quoted 2 lines
Adding the
0x182identifier to the 180 driver does compile (duh!), but I haven't tried it on hardware.
Working at a PC manufacturer I have access to hardware and I tried out a lot and didn't run into any problem so far.
Quoted 3 lines
As a temporary measure, there was a patch posted to this list [1] a while ago, would it be a good idea to include this while full support is being worked on?
Seeing that the source from the SiS website is much more going into the details than my simple adding of the device ID (of course SiS has hopefully a much deeper knowledge of their hardware than I have ;-) I would rather go for integrating the SiS source in the current kernel.
And this problem is quite urgent since its a sort of "showstopper" for brandnew hardware. We have a query from an university that wants to buy 7000 PCs with that hardware in the next 4 years, but until yesterday they were unable to install Fedora Core 4 on the machine since the installer doesn't see any hard disks. I succeeded to make a simple quick&dirty driver disk to get Linux at least installed on the hard disk. But the problem also applies for every other Linux distribution, so we urgently need to get support for that device in the mainstream kernel hoping that it will be inherited to the installation kernels of the distributions soon.
Generally SATA is replacing parallel ATA in the new PC platforms and we already got anouncements that future platforms will come with SATA only. So can't emphasize enought that SATA support is absolutely important for Linux on the desktop.
If there is something I can do to help or contribute let me know.
Best regards
Rainer
Signature · 7 lines
Dipl.-Inf. (FH) Rainer Koenig Project Manager Linux Business Clients Fujitsu Siemens Computers VP BC E SW OS Phone: +49-821-804-3321 Fax: +49-821-804-2131
Quoted 36 lines · Rainer Koenig
Hi Simon,
Quoted 5 lines · Simon Oosthoek
I'm wondering how the support for the SIS 182 controller is doing, I noticed they have a GPL driver on their website for kernel 2.6.10, which is not a drop in replacement for
sata_sis.cin 2.6.12.5, I haven't tried compiling it as an add-on module outside the tree, though...I tried the sources from the SiS website (that seem to add more details than my simple patch that just adds the device ID) as a drop in for the Fedora installation kernel 2.6.11-1.1369_FC4, but the kernel build process ran into an error at the
sata_sismodule. The problem is that the source from SiS has a conditional code that depends on the definition of a symbol "KERN_2_6_10" which is defined by their "outside build makefile", but not in the standard kernel build process. I added a #defineKERN_2_6_10to the source and then it compiled also inside the kernel build process.Quoted 2 lines
Adding the
0x182identifier to the 180 driver does compile (duh!), but I haven't tried it on hardware.Working at a PC manufacturer I have access to hardware and I tried out a lot and didn't run into any problem so far.
Quoted 3 lines
As a temporary measure, there was a patch posted to this list [1] a while ago, would it be a good idea to include this while full support is being worked on?
Quoted 4 lines
Seeing that the source from the SiS website is much more going into the details than my simple adding of the device ID (of course SiS has hopefully a much deeper knowledge of their hardware than I have ;-) I would rather go for integrating the SiS source in the current kernel.
Yes, that's why I have resisted the "just add the PCI ID" patches that have cropped up.
SiS submitted patches that duplicated portions of libata inside their driver, rather than simply fixing libata as would be proper.
So we are stuck in the middle :(
Someone needs to work with the SiS submission until it's kosher with the upstream kernel, then everybody will be happy.
Jeff
Quoted 7 lines · Jeff Garzik
Yes, that's why I have resisted the "just add the PCI ID" patches that have cropped up.
SiS submitted patches that duplicated portions of libata inside their driver, rather than simply fixing libata as would be proper.
So we are stuck in the middle :(
Someone needs to work with the SiS submission until it's kosher with the upstream kernel, then everybody will be happy.
I know Mandriva is on the ball and a bug with some information and an updated patch is on the kernel bugme...
http://qa.mandriva.com/show_bug.cgi?id=17654
http://bugme.osdl.org/show_bug.cgi?id=4192
I'd say it's important to get some proper fix in a distribution soon (so I can use my new PC ;-)
Cheers
Simon
Quoted 6 lines · Simon Oosthoek
I know Mandriva is on the ball and a bug with some information and an updated patch is on the kernel bugme...
http://qa.mandriva.com/show_bug.cgi?id=17654
http://bugme.osdl.org/show_bug.cgi?id=4192I'd say it's important to get some proper fix in a distribution soon (so I can use my new PC ;-)
That's not an updated patch. That's the patch that duplicates kernel infrastructure, implementing things in the driver that should instead be implemented in libata core.
That's how Windows drivers are written: work around the OS, rather than fix it.
Here is a list of problems with the patch. I'll paste this into the bug as well:
1) duplicates SATA phy reset
2) abuses infrastructure to support PATA, rather than doing it properly.
doing it properly involves an approach similar to that found in the
'promise-sata-pata' branch of libata-dev.git. Same problem as Promise SATA+PATA, with the same solution.
3) duplicates ATA bus reset, except, does it poorly
4) duplicates ata_busy_sleep()
5) appears to do strange things with PATA devices, when one uses the ->scr_write() and ->scr_read() hooks -- hooks used to talk to SATA PHYs (never PATA devices).
6) [maybe] sets DMA/PIO timings even for SATA devices. This -may- be needed, depending on PATA<->SATA bridge presence in the host controller
7) Pads DMA to 32-bit boundary. Should be done in libata core, this is needed for all host controllers.
8) The DMA pad code is very buggy. It uses the dma_map_single() to map a buffer, but never synchronizes nor flushes the buffer. This can and will lead to data corruption, particularly on x86-64 platform.
Regards,
Jeff