Subject: Re: heuristic for RBUS
To: None <port-i386@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: port-i386
Date: 01/06/2007 17:24:32
In article <rmiodpcxgn7.fsf@fnord.ir.bbn.com>,
Greg Troxel  <gdt@ir.bbn.com> wrote:
>Long ago, I found that cardbus wouldn't work on my Thinkpad 600E, and
>with help from the list determined that setting RBUS_MIN_START to 0.5
>GB resulted in success; apparently mapped memory at 1 GB doesn't
>really work.  This summer, I found that 1 GB is a bad value for
>a Thinkpad T43p with 2 GB of RAM, and also for my T60 with 2 GB.
>
>The following patch changes the logic to choose a value for
>rbus_min_start based on the amount of installed memory.
>If RBUS_MIN_START is defined, it is respected.
>
>Otherwise, the default remains at 1 GB.   Then for machines <= 192 MB,
>0.5 GB is used.  For machines 1 >GB, 2 GB is used.
>I believe that this will increase the number of machines on which
>cardbus works out of the box, and break very few.
>
>Is this ok to commit?

Let's try it.

christos