Re: ISP1760 driver crashes

From: Alan Stern
Date: Wed Nov 19 2008 - 11:34:04 EST


On Wed, 19 Nov 2008, Jens Axboe wrote:

> > --- 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;
> >
>
> The best solution is probably to either provide a "doesn't do highmem"
> in the scsi host template, or provide an appropriate DMA mask for the
> pci device to indicate it through that setting instead.

The DMA mask is currently set to NULL. Is that not appropriate for a
device that can't do DMA? If not, then what would be appropriate?

Also, is the patch above not correct?

Alan Stern

--
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/