[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-scsi
Subject:    Re: [PATCH] aic7xxx: move to dma_get_required_mask() and correct
From:       James Bottomley <James.Bottomley () SteelEye ! com>
Date:       2005-08-30 22:24:11
Message-ID: 1125440652.5037.71.camel () mulgrave
[Download RAW message or body]

On Tue, 2005-08-30 at 15:13 -0700, Luben Tuikov wrote:
> AHC_LARGE_SCBS means that the card can take 64 byte hardware SCBs.
> Normally HSCBs are 32 bytes for older controllers.  Latter aic78xx and
> all aic79xx chips support 64 byte HSCBs.  So this isn't related.

So all aic chips, regardless of age can do 39 bit addressing mode in the
scb?  It also means they must be DAC capable, which I thought was pretty
much a universally missing feature in early cards.  From the bug report,
the card in question is a 7880, which is pretty early, I think: only
ultra, not even U2 or LVD.

> To fix this bug, you should only have to substitute
>            ahc_linux_get_memsize() > 0x80000000
> with
>            dma_get_required_mask(dev) > DMA_32BIT_MASK,
> to fix this issue (unless of course the kernel is confused too ;-) ).

But all that does is correct a thinko in the original code where it
would try to turn on 39 bit addressing mode if the machine has >2GB of
memory.  The practical effect of which is pretty much nil.

The symptoms reported look very much like DMA to the wrong region.

James


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic