From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Ju, Seokmann" <Seokmann.Ju@lsil.com>
Cc: Vasily Averin <vvs@sw.ru>, Andrew Morton <akpm@osdl.org>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] scsi : megaraid_{mm,mbox}: a fix on 64-bit DMA capability check
Date: Fri, 19 May 2006 16:28:00 -0500 [thread overview]
Message-ID: <1148074080.3410.105.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <890BF3111FB9484E9526987D912B261901BD91@NAMAIL3.ad.lsil.com>
On Fri, 2006-05-19 at 09:09 -0600, Ju, Seokmann wrote:
> + adapter->pdev->device == PCI_DEVICE_ID_LINDSAY)) {
> + if (pci_set_dma_mask(adapter->pdev, DMA_64BIT_MASK) !=
> 0) {
> + con_log(CL_ANN, (KERN_WARNING
> + "megaraid: could not set DMA mask for
> 64-bit.\n"));
>
> - goto out_free_sysfs_res;
Well, this really isn't quite right. There are 32 bit platforms which
will refuse a 64 bit DMA mask on principle. You need to retry with a 32
bit mask before erroring out, exactly like you've done in megaraid_sas.c
Also, it's a bit strange having a 32 bit mask set initially in probe_one
and then being reset in init_mbox. Why not just consolidate all the PCI
register testing and mask setting in probe_one?
James
next prev parent reply other threads:[~2006-05-19 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 15:09 Ju, Seokmann
2006-05-19 21:28 ` James Bottomley [this message]
2006-06-20 13:53 ` Vasily Averin
2006-06-20 14:06 Ju, Seokmann
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=1148074080.3410.105.camel@mulgrave.il.steeleye.com \
--to=james.bottomley@steeleye.com \
--cc=Seokmann.Ju@lsil.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=vvs@sw.ru \
/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
all inboxes | Powered by JetHome®