Subject: Re: MAXPHYS
To: None <wojtek@wojtek.from.pl>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-kern
Date: 02/04/2001 18:15:12
On Mon, Feb 05, 2001 at 12:04:02AM +0100, wojtek@wojtek.from.pl wrote:
> > > > away so that they don't ultimately send 8k transfers to the disks.
> > > couldn't be #define MAXPHYS changed to int tell_maxphys(device_major)???
> > > 
> > > pciide will tell 64kB unless modified, ccd depending of
> > > stripe size and value from disks, raidframe a_very_big_value etc., scsi
> > > drivers depending of implement etc..
> > 
> > It's not that simple.  The maximum transfer size may be limited not by
> > the device you're talking to but by, for example, the bus you're talking
> char maxphys_table_shifts[MAX_MAJOR];
> so maybe 1<<maxphys_table_shifts[device_major] with table filled on system
> initialization.

No, that just doesn't work.  Plenty of systems have instances of the same
device attached to different buses.

-- 
Thor Lancelot Simon	                                      tls@rek.tjls.com
    And now he couldn't remember when this passion had flown, leaving him so
  foolish and bewildered and astray: can any man?
						   William Styron