public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Can we remove the Zone_DMA?
@ 2010-04-04  4:21 tek-life
  2010-04-04  5:07 ` Daniel Hazelton
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: tek-life @ 2010-04-04  4:21 UTC (permalink / raw)
  To: linux-kernel, ebiederm

I’m a newbie on the linux kernel. Now I am reading the source code of
Linux . I have a question in the following about ZONE_DMA.


In Linux , The Memory is divided to three zone. They are ZONE_DMA
、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
kernel ", the ZONE_DMA has the effect that the Direct Memory Access
(DMA) processors for old ISA buses have a strong limitation: they are
able to address only the first 16 MB of RAM. SO ,we must set a zone
for  the DMA on ISA bus.  And I suspect that the hardware has
developed so quickly .And  in this days the ISA has been weeded out.
And so ,if we not defined the ZONE_DMA, is the system be effected? And
why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
compatibility is the only reason?


Thanks

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  4:21 Can we remove the Zone_DMA? tek-life
@ 2010-04-04  5:07 ` Daniel Hazelton
       [not found]   ` <k2tc58e39921004032226ze2eb64dev21f8c2d137a49ebc@mail.gmail.com>
  2010-04-18 11:04   ` Bernd Petrovitsch
  2010-04-04  7:31 ` Oliver Neukum
  2010-04-04  9:07 ` Joerg Roedel
  2 siblings, 2 replies; 13+ messages in thread
From: Daniel Hazelton @ 2010-04-04  5:07 UTC (permalink / raw)
  To: tek-life; +Cc: linux-kernel, ebiederm

On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> I’m a newbie on the linux kernel. Now I am reading the source code of
> Linux . I have a question in the following about ZONE_DMA.
> 
> 
> In Linux , The Memory is divided to three zone. They are ZONE_DMA
> 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> (DMA) processors for old ISA buses have a strong limitation: they are
> able to address only the first 16 MB of RAM. SO ,we must set a zone
> for  the DMA on ISA bus.  And I suspect that the hardware has
> developed so quickly .And  in this days the ISA has been weeded out.
> And so ,if we not defined the ZONE_DMA, is the system be effected? And
> why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> compatibility is the only reason?

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Fwd: Can we remove the Zone_DMA?
       [not found]   ` <k2tc58e39921004032226ze2eb64dev21f8c2d137a49ebc@mail.gmail.com>
@ 2010-04-04  5:33     ` tek-life
  2010-04-04  7:49       ` Daniel Hazelton
  0 siblings, 1 reply; 13+ messages in thread
From: tek-life @ 2010-04-04  5:33 UTC (permalink / raw)
  To: dhazelton; +Cc: linux-kernel, ebiederm

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?

在 2010年4月4日 下午1:07,Daniel Hazelton <dhazelton@enter.net>写道:

On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> > I’m a newbie on the linux kernel. Now I am reading the source code of
> > Linux . I have a question in the following about ZONE_DMA.
> >
> >
> > In Linux , The Memory is divided to three zone. They are ZONE_DMA
> > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> > (DMA) processors for old ISA buses have a strong limitation: they are
> > able to address only the first 16 MB of RAM. SO ,we must set a zone
> > for  the DMA on ISA bus.  And I suspect that the hardware has
> > developed so quickly .And  in this days the ISA has been weeded out.
> > And so ,if we not defined the ZONE_DMA, is the system be effected? And
> > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> > compatibility is the only reason?
>
> 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
>



-- 
Laboratory of Service Computing Technology and System

p-web:http://tek-life.org/blog
QQ:150439216



-- 
Laboratory of Service Computing Technology and System

p-web:http://tek-life.org/blog
QQ:150439216

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  4:21 Can we remove the Zone_DMA? tek-life
  2010-04-04  5:07 ` Daniel Hazelton
@ 2010-04-04  7:31 ` Oliver Neukum
  2010-04-04  9:07 ` Joerg Roedel
  2 siblings, 0 replies; 13+ messages in thread
From: Oliver Neukum @ 2010-04-04  7:31 UTC (permalink / raw)
  To: tek-life; +Cc: linux-kernel, ebiederm

Am Sonntag, 4. April 2010 06:21:54 schrieb tek-life:
> In Linux , The Memory is divided to three zone. They are ZONE_DMA
> 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> (DMA) processors for old ISA buses have a strong limitation: they are
> able to address only the first 16 MB of RAM. SO ,we must set a zone
> for  the DMA on ISA bus.  And I suspect that the hardware has
> developed so quickly .And  in this days the ISA has been weeded out.

Floppy disks & paralell ports still use DMA

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Fwd: Can we remove the Zone_DMA?
  2010-04-04  5:33     ` Fwd: " tek-life
@ 2010-04-04  7:49       ` Daniel Hazelton
  2010-04-04  8:16         ` Thomas Fjellstrom
                           ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Daniel Hazelton @ 2010-04-04  7:49 UTC (permalink / raw)
  To: tek-life; +Cc: linux-kernel, ebiederm

On Sunday 04 April 2010 01:33:09 am tek-life wrote:
> 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

> 在 2010年4月4日 下午1:07,Daniel Hazelton <dhazelton@enter.net>写道:
> 
> On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> > > I’m a newbie on the linux kernel. Now I am reading the source code of
> > > Linux . I have a question in the following about ZONE_DMA.
> > > 
> > > 
> > > In Linux , The Memory is divided to three zone. They are ZONE_DMA
> > > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> > > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> > > (DMA) processors for old ISA buses have a strong limitation: they are
> > > able to address only the first 16 MB of RAM. SO ,we must set a zone
> > > for  the DMA on ISA bus.  And I suspect that the hardware has
> > > developed so quickly .And  in this days the ISA has been weeded out.
> > > And so ,if we not defined the ZONE_DMA, is the system be effected? And
> > > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> > > compatibility is the only reason?
> > 
> > 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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Fwd: Can we remove the Zone_DMA?
  2010-04-04  7:49       ` Daniel Hazelton
@ 2010-04-04  8:16         ` Thomas Fjellstrom
  2010-04-04  8:28         ` tek-life
  2010-04-04  8:28         ` tek-life
  2 siblings, 0 replies; 13+ messages in thread
From: Thomas Fjellstrom @ 2010-04-04  8:16 UTC (permalink / raw)
  To: linux-kernel

On April 4, 2010, Daniel Hazelton wrote:
> On Sunday 04 April 2010 01:33:09 am tek-life wrote:
> > 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.

Some onboard motherboard devices may also be ISA devices.

> DRH
> 
> > 在 2010年4月4日 下午1:07,Daniel Hazelton <dhazelton@enter.net>写道:
> > 
> > On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> > > > I’m a newbie on the linux kernel. Now I am reading the source code
> > > > of Linux . I have a question in the following about ZONE_DMA.
> > > > 
> > > > 
> > > > In Linux , The Memory is divided to three zone. They are ZONE_DMA
> > > > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the
> > > > Linux kernel ", the ZONE_DMA has the effect that the Direct Memory
> > > > Access (DMA) processors for old ISA buses have a strong
> > > > limitation: they are able to address only the first 16 MB of RAM.
> > > > SO ,we must set a zone for  the DMA on ISA bus.  And I suspect
> > > > that the hardware has developed so quickly .And  in this days the
> > > > ISA has been weeded out. And so ,if we not defined the ZONE_DMA,
> > > > is the system be effected? And why not remove ZONE_DMA from the
> > > > kernel . If it cann‘t to do so,the compatibility is the only
> > > > reason?
> > > 
> > > 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
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
> in the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


-- 
Thomas Fjellstrom
tfjellstrom@strangesoft.net

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  7:49       ` Daniel Hazelton
  2010-04-04  8:16         ` Thomas Fjellstrom
@ 2010-04-04  8:28         ` tek-life
  2010-04-04  8:28         ` tek-life
  2 siblings, 0 replies; 13+ messages in thread
From: tek-life @ 2010-04-04  8:28 UTC (permalink / raw)
  To: dhazelton, oliver, linux-kernel, ebiederm

Thanks for your replys.
I was confused. The motherboard of  Intel i810 chipset in early 1999
had not supported the ISA. You say keyboard should use ISA, what
should work for the pc using the i810 motherboard. More important ,
the keyboard don't use DMA.

2010/4/4, Daniel Hazelton <dhazelton@enter.net>:
> On Sunday 04 April 2010 01:33:09 am tek-life wrote:
>> 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
>
>> 在 2010年4月4日 下午1:07,Daniel Hazelton <dhazelton@enter.net>写道:
>>
>> On Sunday 04 April 2010 12:21:54 am tek-life wrote:
>> > > I’m a newbie on the linux kernel. Now I am reading the source code of
>> > > Linux . I have a question in the following about ZONE_DMA.
>> > >
>> > >
>> > > In Linux , The Memory is divided to three zone. They are ZONE_DMA
>> > > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
>> > > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
>> > > (DMA) processors for old ISA buses have a strong limitation: they are
>> > > able to address only the first 16 MB of RAM. SO ,we must set a zone
>> > > for  the DMA on ISA bus.  And I suspect that the hardware has
>> > > developed so quickly .And  in this days the ISA has been weeded out.
>> > > And so ,if we not defined the ZONE_DMA, is the system be effected?
>> > > And
>> > > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
>> > > compatibility is the only reason?
>> >
>> > 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
>


-- 
Laboratory of Service Computing Technology and System

p-web:http://tek-life.org/blog
QQ:150439216

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  7:49       ` Daniel Hazelton
  2010-04-04  8:16         ` Thomas Fjellstrom
  2010-04-04  8:28         ` tek-life
@ 2010-04-04  8:28         ` tek-life
  2010-04-04  8:38           ` Eric W. Biederman
  2 siblings, 1 reply; 13+ messages in thread
From: tek-life @ 2010-04-04  8:28 UTC (permalink / raw)
  To: dhazelton, oliver, linux-kernel, ebiederm

Thanks for your replys.
I was confused. The motherboard of  Intel i810 chipset in early 1999
had not supported the ISA. You say keyboard should use ISA, what
should work for the pc using the i810 motherboard. More important ,
the keyboard don't use DMA.

2010/4/4, Daniel Hazelton <dhazelton@enter.net>:
> On Sunday 04 April 2010 01:33:09 am tek-life wrote:
>> 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
>
>> 在 2010年4月4日 下午1:07,Daniel Hazelton <dhazelton@enter.net>写道:
>>
>> On Sunday 04 April 2010 12:21:54 am tek-life wrote:
>> > > I’m a newbie on the linux kernel. Now I am reading the source code of
>> > > Linux . I have a question in the following about ZONE_DMA.
>> > >
>> > >
>> > > In Linux , The Memory is divided to three zone. They are ZONE_DMA
>> > > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
>> > > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
>> > > (DMA) processors for old ISA buses have a strong limitation: they are
>> > > able to address only the first 16 MB of RAM. SO ,we must set a zone
>> > > for  the DMA on ISA bus.  And I suspect that the hardware has
>> > > developed so quickly .And  in this days the ISA has been weeded out.
>> > > And so ,if we not defined the ZONE_DMA, is the system be effected?
>> > > And
>> > > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
>> > > compatibility is the only reason?
>> >
>> > 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
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  8:28         ` tek-life
@ 2010-04-04  8:38           ` Eric W. Biederman
  2010-04-12  8:41             ` Andi Kleen
  0 siblings, 1 reply; 13+ messages in thread
From: Eric W. Biederman @ 2010-04-04  8:38 UTC (permalink / raw)
  To: tek-life; +Cc: dhazelton, oliver, linux-kernel

tek-life <teklife.kernel@gmail.com> writes:

> Thanks for your replys.
> I was confused. The motherboard of  Intel i810 chipset in early 1999
> had not supported the ISA. You say keyboard should use ISA, what
> should work for the pc using the i810 motherboard. More important ,
> the keyboard don't use DMA.

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  4:21 Can we remove the Zone_DMA? tek-life
  2010-04-04  5:07 ` Daniel Hazelton
  2010-04-04  7:31 ` Oliver Neukum
@ 2010-04-04  9:07 ` Joerg Roedel
  2 siblings, 0 replies; 13+ messages in thread
From: Joerg Roedel @ 2010-04-04  9:07 UTC (permalink / raw)
  To: tek-life; +Cc: linux-kernel, ebiederm

On Sun, Apr 04, 2010 at 12:21:54PM +0800, tek-life wrote:
> I’m a newbie on the linux kernel. Now I am reading the source code of
> Linux . I have a question in the following about ZONE_DMA.
> 
> 
> In Linux , The Memory is divided to three zone. They are ZONE_DMA
> 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> (DMA) processors for old ISA buses have a strong limitation: they are
> able to address only the first 16 MB of RAM. SO ,we must set a zone
> for  the DMA on ISA bus.  And I suspect that the hardware has
> developed so quickly .And  in this days the ISA has been weeded out.
> And so ,if we not defined the ZONE_DMA, is the system be effected? And
> why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> compatibility is the only reason?

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  8:38           ` Eric W. Biederman
@ 2010-04-12  8:41             ` Andi Kleen
  0 siblings, 0 replies; 13+ messages in thread
From: Andi Kleen @ 2010-04-12  8:41 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: tek-life, dhazelton, oliver, linux-kernel

ebiederm@xmission.com (Eric W. Biederman) writes:

Revisiting old posts. Sorry for digging up this old thread
from its grave.

> 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?

It has quite a lot of impact on slab for example.

The main users today are mostly some users who need to have less tha 4GB
on 64bit systems. The problem is for those often 16MB is not enough.
So on many systems 16MB is too much and on others it isn't enough.

A long time ago I had a patchkit to replace it with a range allocator,
merge it with softiotlb and replace all the allocations with real masks.

It never got quite merged and still needed some more work.

ftp://firstfloor.org/pub/ak/dma/INTRO

All the issues described in the INTRO are still there.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-04  5:07 ` Daniel Hazelton
       [not found]   ` <k2tc58e39921004032226ze2eb64dev21f8c2d137a49ebc@mail.gmail.com>
@ 2010-04-18 11:04   ` Bernd Petrovitsch
  2010-04-19 13:44     ` Lennart Sorensen
  1 sibling, 1 reply; 13+ messages in thread
From: Bernd Petrovitsch @ 2010-04-18 11:04 UTC (permalink / raw)
  To: Daniel Hazelton; +Cc: tek-life, linux-kernel, ebiederm

On Son, 2010-04-04 at 01:07 -0400, Daniel Hazelton wrote:
> On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> > I’m a newbie on the linux kernel. Now I am reading the source code of
> > Linux . I have a question in the following about ZONE_DMA. 
> > 
> > In Linux , The Memory is divided to three zone. They are ZONE_DMA
> > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> > (DMA) processors for old ISA buses have a strong limitation: they are
> > able to address only the first 16 MB of RAM. SO ,we must set a zone
> > for  the DMA on ISA bus.  And I suspect that the hardware has
> > developed so quickly .And  in this days the ISA has been weeded out.

That doesn't imply that the "old" systems and hardware vanishes (even
not quickly).

> > And so ,if we not defined the ZONE_DMA, is the system be effected? And
> > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> > compatibility is the only reason?
> 
> 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.

PC-104 has an ISA bus. And it is far from dead and currently deployed
for new systems.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@petrovitsch.priv.at
                     LUGA : http://www.luga.at


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Can we remove the Zone_DMA?
  2010-04-18 11:04   ` Bernd Petrovitsch
@ 2010-04-19 13:44     ` Lennart Sorensen
  0 siblings, 0 replies; 13+ messages in thread
From: Lennart Sorensen @ 2010-04-19 13:44 UTC (permalink / raw)
  To: Bernd Petrovitsch; +Cc: Daniel Hazelton, tek-life, linux-kernel, ebiederm

On Sun, Apr 18, 2010 at 01:04:30PM +0200, Bernd Petrovitsch wrote:
> On Son, 2010-04-04 at 01:07 -0400, Daniel Hazelton wrote:
> > On Sunday 04 April 2010 12:21:54 am tek-life wrote:
> > > I’m a newbie on the linux kernel. Now I am reading the source code of
> > > Linux . I have a question in the following about ZONE_DMA. 
> > > 
> > > In Linux , The Memory is divided to three zone. They are ZONE_DMA
> > > 、ZONE_NORMAL  and ZONE_HIGHMEM. From the book of "Undstand the Linux
> > > kernel ", the ZONE_DMA has the effect that the Direct Memory Access
> > > (DMA) processors for old ISA buses have a strong limitation: they are
> > > able to address only the first 16 MB of RAM. SO ,we must set a zone
> > > for  the DMA on ISA bus.  And I suspect that the hardware has
> > > developed so quickly .And  in this days the ISA has been weeded out.
> 
> That doesn't imply that the "old" systems and hardware vanishes (even
> not quickly).

I have a 486 still running just fine with ISA (and VLB) only.  Also LPC
is in fact ISA and is found in almost all modern PCs.  Some even still
have parallel ports which I believe can do DMA, and they certainly could
still have a 16MB limit on them.

> > > And so ,if we not defined the ZONE_DMA, is the system be effected? And
> > > why not remove ZONE_DMA from the kernel . If it cann‘t to do so,the
> > > compatibility is the only reason?
> > 
> > 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.
> 
> PC-104 has an ISA bus. And it is far from dead and currently deployed
> for new systems.

Yeah that's still around too.

-- 
Len Sorensen

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-04-19 13:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-04  4:21 Can we remove the Zone_DMA? tek-life
2010-04-04  5:07 ` Daniel Hazelton
     [not found]   ` <k2tc58e39921004032226ze2eb64dev21f8c2d137a49ebc@mail.gmail.com>
2010-04-04  5:33     ` Fwd: " tek-life
2010-04-04  7:49       ` Daniel Hazelton
2010-04-04  8:16         ` Thomas Fjellstrom
2010-04-04  8:28         ` tek-life
2010-04-04  8:28         ` tek-life
2010-04-04  8:38           ` Eric W. Biederman
2010-04-12  8:41             ` Andi Kleen
2010-04-18 11:04   ` Bernd Petrovitsch
2010-04-19 13:44     ` Lennart Sorensen
2010-04-04  7:31 ` Oliver Neukum
2010-04-04  9:07 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox