lkml.org 
[lkml]   [2005]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc patch 2/2] direct-io: remove address alignment check
Daniel McNeil <daniel@osdl.org> wrote:
>
> Do drivers have problems with odd addresses or with
> non-512 addresses?

I do recall hearing rumours that some bus-masters have fairly strict memory
alignment requirements. A cacheline size, perhaps - that would be 32 bytes
given the age of the hardware.

But yeah, it's v. risky to assume that all bus masters can cope with
memory alignments down to two bytes.

It would be sane to put the minimum alignment into ->backing_dev_info,
default to 512, get the device drivers to override that as they are tested.

But this introduces a very very bad problem: people will write applications
which work on their hardware, ship the things and then find that the apps
break on other people's hardware. So we can't do that.

Instead, we need to work out the minimum alignment requirement for all disk
controllers and DMA controllers and motherboards in the world. And that
includes catering for weird ones which appear to work but which
occasionally fail in mysterious ways with finer alignments. That's hard.
It's easier to continue to make application developers jump through hoops.
-
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/

\
 
 \ /
  Last update: 2005-07-15 01:43    [W:0.198 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site