[lkml]   [2001]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread

Ben LaHaise writes:
> Yes. It's not an unreasonable overhead considering that it's configured
> out for all the non-highmem kernels that will be shipped. Keep in mind
> that the expected lifespan for 32 bit systems is now less than 3 years, so
> elaborate planning that delays implementation buys us nothing more than a
> smaller window of usefulness.

Maybe by then only 64-bit cpus will matter. Who knows.

> > This says nothing about the real reason the IA64 solution is
> > unacceptable, the inputs to the mapping functions which must
> > be "page+offset+len" triplets as there is no logical "virtual
> > address" to pass into the mapping routines on 32-bit systems.
> On x86 a 64 bit DMA address cookie is fine. If you've got concerns, tell
> us what you have in mind for a design.

Things along the lines of what Jens Axboe's patches are what I'm
thinking about.

> So what's the API?

See Jens's patches.

First it has to pass in page/off/len triplets, on all platforms.
This is addressed by Jens's interfaces.

Secondly it has to provide a query mechanism to delineate the
three cases:

1) DAC is faster and always preferred
2) SAC is faster
3) DAC may be slower but more desirable for certain devices
due to large amounts of parallel address space usage

I have not designed an interface for this, but it ought to be
quite simple.

Thirdly seperate 32-bit/64-bit DMA address types. Added to the
overhead concerns, I also think it sucks big donkey balls to cast the
things around, especially since different platforms would potentially
require different casts to eliminate the warnings. In fact, with your
suggested scheme, the setting of highmem would determine a core

In fact, I'm not going to bother to code one single bit of this myself
until I am convinced I have thought the whole problem over properly.
This is the part nobody else wants to do, but it is a prerequisite for
this sort of API.

David S. Miller
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:56    [W:0.073 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site