Kernel Summit request for Discussion of future of ATA (libata) and IDE
Right at the moment, we have two separate subsystems for running IDE type devices: driver/ide and drivers/ata. The claim I've seen is that drivers/ata can do everything drivers/ide can do plus it does sata. I also note that no major distribution seems to enable anything in drivers/ide anymore, so given this is it time to deprecate drivers/ide?
A counter argument to the above is that not all drivers (particularly the older ones where hw is scarce) are converted to drivers/ata, so drivers/ide seems to be needed for some legacy systems (in which case it can be deprecated but not removed). I've also noted that some embedded distributions seem to be using drivers/ide, but I'm not really sure whether this is inertia or some overriding need.
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
James
Quoted 8 lines · On Sun, 03 Aug 2008 10:57:35 -0500 James Bottomley…
Right at the moment, we have two separate subsystems for running IDE type devices: driver/ide and
drivers/ata. The claim I've seen is thatdrivers/atacan do everythingdrivers/idecan do plus it does sata. I also note that no major distribution seems to enable anything indrivers/ideanymore, so given this is it time to deprecatedrivers/ide?A counter argument to the above is that not all drivers (particularly the older ones where hw is scarce) are converted to
drivers/ata, so
That statement would be false. In fact for old and obscure hw the libata coverage is probably better, not that this in fact is the slighest bit relevant to the real world!
The current situation is something like this
- For PC class hardware libata covers everything in old IDE and a lot more.
- For the older Mac hardware libata does not have pre PCI Macintosh support although it is in progress
- For certain embedded PPC boards there are some things to sort out with IRQ routing on non standards sane configurations using pata_ali in particular.
There is a trend in new hardware to interfaces that simply won't fit old IDE so that process of libata only drivers is likely to continue.
Quoted 4 lines
drivers/ideseems to be needed for some legacy systems (in which case it can be deprecated but not removed). I've also noted that some embedded distributions seem to be usingdrivers/ide, but I'm not really sure whether this is inertia or some overriding need.
Actually what a material number of embedded systems need is a single dumb-as-a-rock CF only PIO driver which doesn't suck in large chunks of midlayer code. I'm just not sure that trend will continue as CF is giving way to other smaller media.
Quoted 2 lines
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
Won't be at KS and I suspect that is true of most of the folks hacking on both sets so the right place for discussion would be the net. Right now the PPC bits need fixing, and the lack of libata Macio support for the moment makes the debate premature.
Alan
Quoted 9 lines · Alan Cox
Quoted 6 lines · On Sun, 03 Aug 2008 10:57:35 -0500 James Bottomley…
Right at the moment, we have two separate subsystems for running IDE type devices: driver/ide and
drivers/ata. The claim I've seen is thatdrivers/atacan do everythingdrivers/idecan do plus it does sata. I also note that no major distribution seems to enable anything indrivers/ideanymore, so given this is it time to deprecatedrivers/ide?
Quoted 8 lines
Quoted 2 lines
A counter argument to the above is that not all drivers (particularly the older ones where hw is scarce) are converted to
drivers/ata, soThat statement would be false. In fact for old and obscure hw the libata coverage is probably better, not that this in fact is the slighest bit relevant to the real world!
The current situation is something like this
Hmm, OK, but I did see (as you note below) that mac ide doesn't work with drivers/ata.
Quoted 10 lines
- For PC class hardware libata covers everything in old IDE and a lot more.
- For the older Mac hardware libata does not have pre PCI Macintosh support although it is in progress
- For certain embedded PPC boards there are some things to sort out with IRQ routing on non standards sane configurations usingpata_aliin particular.There is a trend in new hardware to interfaces that simply won't fit old IDE so that process of libata only drivers is likely to continue.
Yes, that's SATA ... but legacy remains for a long time.
Quoted 9 lines
Quoted 4 lines
drivers/ideseems to be needed for some legacy systems (in which case it can be deprecated but not removed). I've also noted that some embedded distributions seem to be usingdrivers/ide, but I'm not really sure whether this is inertia or some overriding need.Actually what a material number of embedded systems need is a single dumb-as-a-rock CF only PIO driver which doesn't suck in large chunks of midlayer code. I'm just not sure that trend will continue as CF is giving way to other smaller media.
Yes, I understand this ... if that means drivers/ata can't possibly be used by embedded until its dependence on SCSI is broken, then so be it ... but I think we should at least investigate what the issues and potential solutions are.
Quoted 7 lines
Quoted 2 lines
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
Won't be at KS and I suspect that is true of most of the folks hacking on both sets so the right place for discussion would be the net. Right now the PPC bits need fixing, and the lack of libata Macio support for the moment makes the debate premature.
Well, I did notice from the lists that both drivers/ide and drivers/ata would be represented. I've also observed that there's been a singular lack of discussion of this on the lists; plus it's the type of emotive issue that in-person discussions help to extract the heat from.
James
Quoted 4 lines · Alan Cox
Actually what a material number of embedded systems need is a single dumb-as-a-rock CF only PIO driver which doesn't suck in large chunks of midlayer code. I'm just not sure that trend will continue as CF is giving way to other smaller media.
I bet we'll see CF for a long time, because it is the only cheap removable media to support IDE emulation and be bootable from an unmodified PC BIOS. SD is cheaper and will soon provide larger capacities, but it still requires a separate controller and is not bootable with standard BIOSes.
Anyway, in my experience, libata supports CF on embedded controllers pretty well. So maybe we should start marking IDE drivers deprecated to encourage people to try libata instead and report breakage if any.
The real issue on embedded systems is that the devices names change. On the one hand, it increases portability across models, because you don't have to care anymore about hda/hdc/hdd, your CF is always on sda (major reason why I'm considering a switch BTW). However, for systems which were used to always see system disk on hdX and data on sd* (USB, SATA or SCSI), it might take more time to switch due to automatic numbering.
Regards,
Willy
Quoted 12 lines · Willy Tarreau
Quoted 4 lines · Alan Cox
Actually what a material number of embedded systems need is a single dumb-as-a-rock CF only PIO driver which doesn't suck in large chunks of midlayer code. I'm just not sure that trend will continue as CF is giving way to other smaller media.
I bet we'll see CF for a long time, because it is the only cheap removable media to support IDE emulation and be bootable from an unmodified PC BIOS. SD is cheaper and will soon provide larger capacities, but it still requires a separate controller and is not bootable with standard BIOSes.
Quoted 3 lines
Anyway, in my experience, libata supports CF on embedded controllers pretty well. So maybe we should start marking IDE drivers deprecated to encourage people to try libata instead and report breakage if any.
Well, I know of at least one case of PC hardware in which an old IDE driver basically works while the libata/pata poeple have no idea why their driver doesn't:
http://bugzilla.kernel.org/show_bug.cgi?id=9157
Thanks,
Rafael
Quoted 9 lines · Rafael J. Wysocki
Quoted 3 lines
Anyway, in my experience, libata supports CF on embedded controllers pretty well. So maybe we should start marking IDE drivers deprecated to encourage people to try libata instead and report breakage if any.
Well, I know of at least one case of PC hardware in which an old IDE driver basically works while the libata/pata poeple have no idea why their driver doesn't:
Interesting. I have a board with such a SIS controller somewhere here. I'd have to shuffle the dust out of it and see if it still works, maybe I can help on this one.
Regards,
Willy
Quoted 4 lines
Quoted 2 lines
There is a trend in new hardware to interfaces that simply won't fit old IDE so that process of libata only drivers is likely to continue.
Yes, that's SATA ... but legacy remains for a long time.
It isn't that simple. The newer PATA controllers are diverging from the old style interfaces as well.
Quoted 4 lines
Yes, I understand this ... if that means
drivers/atacan't possibly be used by embedded until its dependence on SCSI is broken, then so be it ... but I think we should at least investigate what the issues and potential solutions are.
The simpler embedded wants a pure CF driver - no scsi, no libata, no drivers/ide overhead, just about 4K of CF only pio driver.
Quoted 4 lines
Well, I did notice from the lists that both
drivers/ideanddrivers/atawould be represented. I've also observed that there's been a singular lack of discussion of this on the lists; plus it's the type of emotive issue that in-person discussions help to extract the heat from.
We've certainly discussed it in the past and I'm not sure its gotten that personal - many people contribute to both trees for example, or are directly cc'ing stuff between trees to ensure they stay in sync and any useful info gets in both.
Anyway with my libata hat on I would say its far too early to worry about this. Right now we have platforms that need old IDE and it is still proving very useful to be able to ask people to try both. I don't quite know why Bart is putting so much effort into polishing up the old IDE but if he's enjoying it I don't really care 8)
Alan
Quoted 3 lines
I don't envisage anything in terms of code changes (or removal) coming out of this. What I would like is a nice roadmap of where to start for people contemplating writing IDE drivers.
For the vendors I've talked with the answer is usually "both". A libata driver for the future and current distributions, and an old IDE driver for older RHEL and SLES releases. Fortunately the driver specific parts for those that are capable of running under old IDE are not too hard to plug into libata.
Alan
Quoted 8 lines · Alan Cox
Quoted 4 lines
Quoted 2 lines
There is a trend in new hardware to interfaces that simply won't fit old IDE so that process of libata only drivers is likely to continue.
Yes, that's SATA ... but legacy remains for a long time.
It isn't that simple. The newer PATA controllers are diverging from the old style interfaces as well.
Quoted 7 lines
Quoted 4 lines
Yes, I understand this ... if that means
drivers/atacan't possibly be used by embedded until its dependence on SCSI is broken, then so be it ... but I think we should at least investigate what the issues and potential solutions are.The simpler embedded wants a pure CF driver - no scsi, no libata, no
drivers/ideoverhead, just about 4K of CF only pio driver.
I'd be a bit surprised if that's anything other than a niche. PIO is deadly slow and wasteful of precious CPU cycles ... and embedded devices seem to be interested in performance as well (which the DMA modes bring).
Quoted 9 lines
Quoted 4 lines
Well, I did notice from the lists that both
drivers/ideanddrivers/atawould be represented. I've also observed that there's been a singular lack of discussion of this on the lists; plus it's the type of emotive issue that in-person discussions help to extract the heat from.We've certainly discussed it in the past and I'm not sure its gotten that personal - many people contribute to both trees for example, or are directly cc'ing stuff between trees to ensure they stay in sync and any useful info gets in both.
My observation was merely that I hadn't seen it discussed.
Quoted 5 lines
Anyway with my libata hat on I would say its far too early to worry about this. Right now we have platforms that need old IDE and it is still proving very useful to be able to ask people to try both. I don't quite know why Bart is putting so much effort into polishing up the old IDE but if he's enjoying it I don't really care 8)
Hey, I'd be the last person to discourage anyone from maintaining obsolete systems ... however, the outside world looking in on this is interested to know where they should be starting if they have some type of CF/IDE device to support. What we really want to avoid is someone spending months on a device driver only to have us turn around and deprecate the subsystem.
I don't envisage anything in terms of code changes (or removal) coming out of this. What I would like is a nice roadmap of where to start for people contemplating writing IDE drivers.
James
On 2008/08/03 19:45 (GMT-0100) Alan Cox apparently typed:
Quoted 3 lines
...Right now we have platforms that need old IDE and it is still proving very useful to be able to ask people to try both. I don't quite know why Bart is putting so much effort into polishing up the old IDE...
Maybe he's one of few who understand that there is no upgrade path to some when libata displaces ide. More than half my dozens of / partitions live above #15, and none of the distros I'm aware of have presented any other upgrade option but to stick with ide.
Signature · 6 lines
"Love is not easily angered. Love does not demand its own way." 1 Corinthians 13:5 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/
I'm using gmail's interface (I don't have access to my laptop ATM) so the mail may look a bit weird...
Quoted 3 lines · James Bottomley
Right at the moment, we have two separate subsystems for running IDE type devices: driver/ide and
drivers/ata. The claim I've seen is thatdrivers/atacan do everythingdrivers/idecan do plus it does sata. I
This claim doesn't seem to have confirmation in facts:
* There is still hardware that is simply not-supported by libata at all:
- architecture specific hardware (ppc, m68k, mips, arm)
- "difficult" legacy PC-class hardware (i.e. secondary interface on
CY82C693 etc)
* There are still regressions in many libata PCI host drivers dating back to their rushed introduction.
* There are still corner case in libata core - PIO is dead slow compared to drivers/ide/,
"serialized" hosts are not supported, some quirks for obsolete
hardware got lost...
Quoted 2 lines
also note that no major distribution seems to enable anything in
drivers/ideanymore, so given this is it time to deprecatedrivers/ide?
Major distributions make their own decisions (I don't remeber anybody from these distros discussing the conversion on linux-kernel or linux-ide) which sometimes don't match with what kernel.org kernels are doing.
[ Actually one distro went so far as CONFIG_IDE=n even before support for
all PC-class IDE PCI hardware present in drivers/ide was available
in libata. ]
Also the same major distros that use libata on x86 are using drivers/ide on non-x86.
Quoted 6 lines
A counter argument to the above is that not all drivers (particularly the older ones where hw is scarce) are converted to
drivers/ata, sodrivers/ideseems to be needed for some legacy systems (in which case it can be deprecated but not removed). I've also noted that some embedded distributions seem to be usingdrivers/ide, but I'm not really sure whether this is inertia or some overriding need.
drivers/ide deprecation would be a premature thing.
Quoted 2 lines
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
Well, I'm looking forward to discuss the future of Linux ATA support.
Thanks,
Bart
Quoted 9 lines · Alan Cox
Quoted 3 lines
I don't envisage anything in terms of code changes (or removal) coming out of this. What I would like is a nice roadmap of where to start for people contemplating writing IDE drivers.
For the vendors I've talked with the answer is usually "both". A libata driver for the future and current distributions, and an old IDE driver for older RHEL and SLES releases. Fortunately the driver specific parts for those that are capable of running under old IDE are not too hard to plug into libata.
The contrary is also true, for modern drivers/ide conversion of libata PATA driver to use drivers/ide should usually be a matter of an hour or two.
I think that the conversion of libata drivers for PATA hardware that is not supported by drivers/ide currently should be doable by somebody knowing both subsystems in less than 24h. I'm not doing it only because it will make me a maintainer of even more host drivers than currently and I don't have a time for it. I'll happily accept patches though.
Thanks,
Bart
Quoted 3 lines · Rafael J. Wysocki
Well, I know of at least one case of PC hardware in which an old IDE driver basically works while the libata/pata poeple have no idea why their driver doesn't:
I have one of those too (pdc202xx craps itself with the new drivers).
Signature · 1 line
dwmw2
Quoted 8 lines · Felix Miata
On 2008/08/03 19:45 (GMT-0100) Alan Cox apparently typed:
Quoted 3 lines
...Right now we have platforms that need old IDE and it is still proving very useful to be able to ask people to try both. I don't quite know why Bart is putting so much effort into polishing up the old IDE...
Maybe he's one of few who understand that there is no upgrade path to some when libata displaces ide. More than half my dozens of / partitions live above #15, and none of the distros I'm aware of have presented any other upgrade option but to stick with ide.
http://www.ussg.iu.edu/hypermail/linux/kernel/0807.1/2568.html
Dunno it will get in tho.
Signature · 1 line
tejun
Quoted 2 lines
- "difficult" legacy PC-class hardware (i.e. secondary interface on
CY82C693 etc)
Yep - probably an hours work but I've simply not been able to get the relevant hardware to test.
Quoted 2 lines
* There are still regressions in many libata PCI host drivers dating back to their rushed introduction.
I don't think we have any that are real straight forward "you forgot something" regressions now. There are a few "works with A not B" cases in both directions that we'll probably take ages to figure out.
Quoted 2 lines
* There are still corner case in libata core - PIO is dead slow compared to
drivers/ide/,
There are two there - libata keeps IRQs blocked for longer in PIO mode as well which is a factor for realtime that needs looking at, as well as using 16bit not 32bit I/O for most devices (which is trivial to fix). The IRQ masking stuff is more complex and old IDE handles it far better for PIO on non shared IRQ interfaces. That is actually probably the most complicated thing to address of the stuff you'd want to do if you were going to kill off old IDE.
Quoted 2 lines
"serialized" hosts are not supported, some quirks for obsolete
hardware got lost...
Serialized hardware has been supported since 2.6.24 or so. Not sure there are any quirks for obsolete hardware now missing but its always fun trying to nail them all. Libata can support per command serializing and pretty much arbitarily complex serializing rules via qc_defer.
Quoted 4 lines
Quoted 2 lines
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
Well, I'm looking forward to discuss the future of Linux ATA support.
Have fun, but don't expect me to respect any decisions made off public lists. I don't really see any point worrying about it - porting m68k to libata is of minimal value for example and there is little likelyhood of Amiga AHCI SATA suddenely appearing.
Alan
Quoted 3 lines
http://www.ussg.iu.edu/hypermail/linux/kernel/0807.1/2568.html
Dunno it will get in tho.
Take it up with Al. He vetoed the needed fixes for this before libata even acquired PATA support. Since then nothing has happened.
This is simply not a technical problem.
Alan
Quoted 2 lines
The contrary is also true, for modern
drivers/ideconversion of libata PATA driver to usedrivers/ideshould usually be a matter of an hour or two.
Sounds about right for a typical device based upon the ones I did that way.
Quoted 8 lines · Alan Cox
Quoted 3 lines
http://www.ussg.iu.edu/hypermail/linux/kernel/0807.1/2568.html
Dunno it will get in tho.
Take it up with Al. He vetoed the needed fixes for this before libata even acquired PATA support. Since then nothing has happened.
This is simply not a technical problem.
Al Viro is cc'd in all the postings. Don't really know what else to do.
Signature · 1 line
tejun
Quoted 13 lines · James Bottomley
Right at the moment, we have two separate subsystems for running IDE type devices: driver/ide and
drivers/ata. The claim I've seen is thatdrivers/atacan do everythingdrivers/idecan do plus it does sata. I also note that no major distribution seems to enable anything indrivers/ideanymore, so given this is it time to deprecatedrivers/ide?A counter argument to the above is that not all drivers (particularly the older ones where hw is scarce) are converted to
drivers/ata, sodrivers/ideseems to be needed for some legacy systems (in which case it can be deprecated but not removed). I've also noted that some embedded distributions seem to be usingdrivers/ide, but I'm not really sure whether this is inertia or some overriding need.
Quoted 2 lines
The proposal is to discuss the future of these two subsystems and arrive at a consensus what's happening to each going forwards.
I'm not in any rush to change the status quo as I see it: don't remove drivers/ide but encourage new drivers to be under libata.
I am a bit disappointed at all the drivers/ide churn. I had hoped it would sit around and be a stable alternative, a fallback to libata.
Jeff
On 2008/08/03 23:05 (GMT+0100) Alan Cox apparently typed:
Quoted 8 lines
On 2008/08/04 07:08 (GMT+0900) Tejun Heo apparently typed:
Quoted 3 lines
http://www.ussg.iu.edu/hypermail/linux/kernel/0807.1/2568.html
Dunno it will get in tho.
Take it up with Al. He vetoed the needed fixes for this before libata even acquired PATA support. Since then nothing has happened.
I have no idea who Al is, or how one would "take it up with" him.
Quoted 1 line
This is simply not a technical problem.
I only signed up on this list 10 months ago, and never did find the veto history or any discussion leading thereto. I have seen discussion/attempts to solve the >15 limitation of libata via dm/kpartx, but not any yet user-ready solution.
Signature · 6 lines
"Love is not easily angered. Love does not demand its own way." 1 Corinthians 13:5 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/
Quoted 11 lines · Alan Cox
On Sun, 03 Aug 2008 10:57:35 -0500
James Bottomley <[email protected]> wrote:- For PC class hardware libata covers everything in old IDE and a lot more.
- For the older Mac hardware libata does not have pre PCI Macintosh support although it is in progress
- For certain embedded PPC boards there are some things to sort out with IRQ routing on non standards sane configurations usingpata_aliin particular.
Quoted 2 lines
There is a trend in new hardware to interfaces that simply won't fit old IDE so that process of libata only drivers is likely to continue.
Actually, libata is missing anything using the Apple proprietary (I call it "macio") IDE controller. That includes pretty much all Macs with IDE not only pre-PCI. IE, it's used for the CD-ROM on the G5's for example (the disks use sata_svw).
I'm working on it though :-)
Quoted 4 lines
Won't be at KS and I suspect that is true of most of the folks hacking on both sets so the right place for discussion would be the net. Right now the PPC bits need fixing, and the lack of libata Macio support for the moment makes the debate premature.
Hopefully that will be fixed by .28
Cheers,
Ben.
Quoted 10 lines · Felix Miata
On 2008/08/03 19:45 (GMT-0100) Alan Cox apparently typed:
Quoted 3 lines
...Right now we have platforms that need old IDE and it is still proving very useful to be able to ask people to try both. I don't quite know why Bart is putting so much effort into polishing up the old IDE...
Maybe he's one of few who understand that there is no upgrade path to some when libata displaces ide. More than half my dozens of / partitions live above #15, and none of the distros I'm aware of have presented any other upgrade option but to stick with ide.
This is definitely an issue on a lot of Macs too.
Ben.
Quoted 4 lines · Alan Cox
- For certain embedded PPC boards there are some things to sort out with
IRQ routing on non standards sane configurations usingpata_aliin particular.
Alan, do you have any specifics here?
- k
Quoted 9 lines · On Mon, 4 Aug 2008 08:16:47 -0500 Kumar Gala <[email protected]> wrote:
Quoted 4 lines · Alan Cox
- For certain embedded PPC boards there are some things to sort out with
IRQ routing on non standards sane configurations usingpata_aliin particular.Alan, do you have any specifics here?
Some people are running PPC setups which report the IDE controller as in native mode, the PCI IRQ as zero and in fact are using legacy IRQ lines.