Re: [RFC][PATCH] Expanding the size of "start" and "end" field in"struct resource"

From: Eric W. Biederman
Date: Wed Mar 15 2006 - 16:29:56 EST


Benjamin LaHaise <bcrl@xxxxxxxxx> writes:

> On Wed, Mar 15, 2006 at 03:05:30PM -0600, Kumar Gala wrote:
>> I disagree. I think we need to look to see what the "bloat" is
>> before we go and make start/end config dependent.
>
> Eh? 32 bit kernels get used in embedded systems, which includes those
> with only 8MB of RAM. The upper 32 bits will never be anything other
> than 0.

If the impact is very slight or unmeasurable this means the option
needs to fall under CONFIG_EMBEDDED, where you can change if
every last bit of RAM counts but otherwise you won't care.

>> It seems clear that drivers dont handle the fact that "start"/"end"
>> change an 32-bit vs 64-bit archs to begin with. By making this even
>> more config dependent seems to be asking for more trouble.
>
> You can't get a non-32 bit value on a 32 bit platform, so why should a
> driver be expected to handle anything?

Having > 32bit values on a 32bit platform is not the issue.

Some drivers appear to puke simply because the value is 64bit. Which
means the driver will have problems on any 64bit kernel. That kind
of behavior is worth purging.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/