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, 30 Aug 2005 17:24:11 -0500 [thread overview]
Message-ID: <1125440652.5037.71.camel@mulgrave> (raw)
In-Reply-To: <20050830221316.98368.qmail@web51608.mail.yahoo.com>
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
next prev parent reply other threads:[~2005-08-30 22:24 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 [this message]
2005-09-13 19:20 ` James Bottomley
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=1125440652.5037.71.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