Re: [PATCH] aic7xxx bouncing over 4G

From: Justin T. Gibbs (gibbs@scsiguy.com)
Date: Sat Dec 28 2002 - 16:02:17 EST


> gibbs@scsiguy.com said:
>> That hasn't applied since 6.2.10 or so. 2.5.X is still using 6.2.4.
>
> The bug report is against 2.5.53 which has 6.2.24 in it, so it still
> needs fixing. At a cursory glance at the code, it looks like you don't
> call scsi_set_pci_device early enough in the detect routine.

I don't see how this enters into it. The dma mask should be set on
the PCI device in aic7xxx_osm_pci.c just after we enable the device
and set it as a bus master. The pci device is setup in the host
structure as it is allocated and before it is registered with the
SCSI subsystem. I can't imagine that the merge function (and thereby
the bounce limit) is selected before the host is even registered.
My guess is that the original call to setup the PCI mask is not happening
due to either a logic bug in ahc_linux_get_memsize() or the logic that
interprets its response in aic7xxx_osm_pci.c.

I'm not in front of a Linux system to debug this, so all I can do is
inspect the code right now. Perhaps someone with an affected machine
can toss in a few printks and figure this out?

--
Justin

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Dec 31 2002 - 22:00:13 EST