public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: ltuikov@yahoo.com
Cc: Dave Jones <davej@redhat.com>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>,
	luben_tuikov@adaptec.com
Subject: Re: [PATCH] aic7xxx: move to dma_get_required_mask() and correct 39 bit assumptions
Date: Tue, 13 Sep 2005 14:20:48 -0500	[thread overview]
Message-ID: <1126639248.4809.50.camel@mulgrave> (raw)
In-Reply-To: <1125440652.5037.71.camel@mulgrave>

On Tue, 2005-08-30 at 17:24 -0500, James Bottomley wrote:
> 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.

OK, I just had confirmation that the patch does indeed fix the bug on
x86_64 validating the guess that the 7880 isn't working correctly with
39 bit addresses.

Luben, could you look in the manual and see if it says what chip
versions do work with the 39 bit mask.  For the time being I'm going to
commit the fix that assumes only the versions with AHC_LARGE_SCB's
defined work.  That's probably going to penalise a few chipsets that
have 39 bit but not 64 bit, but without the information, it's the best I
can do.

James



      reply	other threads:[~2005-09-13 19:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 16:48 [PATCH] aic7xxx: move to dma_get_required_mask() and correct 39 bit assumptions James Bottomley
2005-08-30 16:58 ` Christoph Hellwig
2005-08-30 22:13 ` Luben Tuikov
2005-08-30 22:24   ` James Bottomley
2005-09-13 19:20     ` James Bottomley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1126639248.4809.50.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=davej@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=ltuikov@yahoo.com \
    --cc=luben_tuikov@adaptec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox