Re: ISP1760 driver crashes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Wednesday, November 19, 2008 - 8:36 am

On Wed, 19 Nov 2008, Jens Axboe wrote:


Thank you.

Thomas, the blk_queue_bounce_limit() routine is called in 
drivers/scsi/scsi_lib.c:__scsi_alloc_queue().  The value it passes is 
computed by scsi_calculate_bounce_limit(), and in that routine 
host_dev->dma_mask should be NULL (since isp1760-hcd sets the mask to 
NULL).  Therefore the bounce limit should be 0xffffffff.

Now maybe this value isn't correct.  You can try the patch below to see 
if it helps.  If it doesn't, add a printk in __scsi_alloc_queue() to 
see what bounce limit value is getting used.

Alan Stern



Index: usb-2.6/drivers/scsi/scsi_lib.c
===================================================================
--- usb-2.6.orig/drivers/scsi/scsi_lib.c
+++ usb-2.6/drivers/scsi/scsi_lib.c
@@ -1684,7 +1684,7 @@ static void scsi_request_fn(struct reque
 u64 scsi_calculate_bounce_limit(struct Scsi_Host *shost)
 {
 	struct device *host_dev;
-	u64 bounce_limit = 0xffffffff;
+	u64 bounce_limit = BLK_BOUNCE_HIGH;
 
 	if (shost->unchecked_isa_dma)
 		return BLK_BOUNCE_ISA;

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: ISP1760 driver crashes, Alan Stern, (Wed Nov 19, 7:59 am)
Re: ISP1760 driver crashes, Jens Axboe, (Wed Nov 19, 8:00 am)
Re: ISP1760 driver crashes, Alan Stern, (Wed Nov 19, 8:36 am)
Re: ISP1760 driver crashes, Jens Axboe, (Wed Nov 19, 8:39 am)
RE: ISP1760 driver crashes, Hommel, Thomas (GE E ..., (Wed Nov 19, 8:59 am)
Re: ISP1760 driver crashes, Alan Stern, (Wed Nov 19, 9:33 am)
Re: ISP1760 driver crashes, Jens Axboe, (Wed Nov 19, 10:21 am)
Re: ISP1760 driver crashes, FUJITA Tomonori, (Wed Nov 19, 10:40 pm)
Re: ISP1760 driver crashes, Jens Axboe, (Thu Nov 20, 12:33 am)
Re: ISP1760 driver crashes, Alan Stern, (Thu Nov 20, 8:28 am)
Re: ISP1760 driver crashes, Jens Axboe, (Thu Nov 20, 10:50 am)
RE: ISP1760 driver crashes, Hommel, Thomas (GE E ..., (Fri Nov 21, 3:58 am)