尊天命,尽人事
分类: LINUX
2013-10-29 21:01:37
While ISA is gone as a true peripheral interconnect for new systems it does, actually, still live on in a lot of systems that Linux still supports. While those systems, generally, are running the same kernel and userspace they were a decade ago I have no doubt that somebody might find an old machine and put Linux on it - just because they could. And that also discounts the non-IBM PC machines that are out there that Linux also supports. While I don't know enough about them to say for sure, I am quite certain that at least some of them are still using the ISA bus. DRH
> Thanks for your reply.And do you means that , If I use a modern PC,such as > my pc (CPU:Intel dual-core 2.6GHZ; Memory 2GB; And no pci ).I can remove > the ZONE_DMA .And make sure this system also run smoothly as before? *MAYBE* - if you don't use parallel ports, floppy drives or similar. There actually are still a lot of devices that use the ISA bus in a modern PC - even the keyboard (well, not USB ones) is an ISA device. Simple fact is that if it was possible to configure it out and not cause massive problems somebody would have already spun out a patch to allow just that. DRH
---------------------
Last I heard this discussed it was mentioned that there were some fairly common integrated sound devices using ISA DMA. As for the i810 chipset not supporting ISA that isn't really true. No one implements ISA plug-in slots, but at least in the for of LPC hardware that is effectively ISA continues to be supported for various legacy devices. Ultimately I don't see much point in disabling ZONE_DMA. It is a lot of work to track down if it is really needed, and it only costs 16MB. So unless someone shows me that ZONE_DMA triggers the OOM killer unnecessarily or otherwise impacts the system what does legacy code hurt? Eric
---------------------
Some onboard motherboard devices may also be ISA devices.
Thomas Fjellstrom
Floppy disks & paralell ports still use DMA Regards Oliver
There are a couple of reasons to keep ZONE_DMA. It is not used by ISA device drivers exclusivly. Old style PCI devices may have small DMA masks (so they could address between 16 MB and 4GB depending on the device) too. Drivers for these devices often use ZONE_DMA as a fallback if they can't allocate memory addressable by the device using ZONE_NORMAL. So there is a use for ZONE_DMA with 32bit PCI too. (And I also remember I have seen an AM2 board with an ISA slot for embedded purposes too, so ISA is not completly dead) Joerg