Subject: Re: sun3: si_dma_alloc: excessive xlen=0x10000
To: None <thorpej@wasabisystems.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: current-users
Date: 06/15/2003 02:21:17
In article <C7B3968E-9E8A-11D7-88A6-000A957650EC@wasabisystems.com>
thorpej@wasabisystems.com wrote:

> 	1. Make the sun3 SCSI drivers split up transfers (probably
> 	   more work than it's worth) or...
> 
> 	2. Change MAXPHYS on sun3 to 32k.
> 
> 	3. Fix the kernel to allow a per-device maxphys, and make
> 	   everything (including the file system) use it properly.

There is the following comments in si.c:
>>	 * Never attempt single transfers of more than 63k, because
>>	 * our count register may be only 16 bits (an OBIO adapter).
>>	 * This should never happen since already bounded by minphys().

si_minphys() in sys/arch/sun3/dev/si.c limits b_count < MAX_DMA_LEN,
but why xlen is larger than MAX_DMA_LEN in si_dma_alloc()?
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp