* [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
@ 2010-07-26 6:07 Rolf Eike Beer
2010-07-26 13:25 ` Achim Leubner
0 siblings, 1 reply; 6+ messages in thread
From: Rolf Eike Beer @ 2010-07-26 6:07 UTC (permalink / raw)
To: aacraid; +Cc: linux-scsi, Andrew Morton
>From 1c2f6ce5be5890ea7151ada3602699566afdd060 Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
Date: Wed, 1 Jul 2009 22:43:39 +0200
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
---
drivers/scsi/aacraid/linit.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
James, it looks like people at Adaptec don't care if you send patches in. That
also applies to at least one patch from Julia Lawall that is waiting since
December. What next?
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 33898b6..cad6f9a 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -1091,6 +1091,7 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
struct list_head *insert = &aac_devices;
int error = -ENODEV;
int unique_id = 0;
+ u64 dmamask;
list_for_each_entry(aac, &aac_devices, entry) {
if (aac->id > unique_id)
@@ -1104,17 +1105,18 @@ static int __devinit aac_probe_one(struct pci_dev
*pdev,
goto out;
error = -ENODEV;
- if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) ||
- pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))
- goto out_disable_pdev;
/*
* If the quirk31 bit is set, the adapter needs adapter
* to driver communication memory to be allocated below 2gig
*/
if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
- if (pci_set_dma_mask(pdev, DMA_BIT_MASK(31)) ||
- pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(31)))
- goto out_disable_pdev;
+ dmamask = DMA_BIT_MASK(31);
+ else
+ dmamask = DMA_BIT_MASK(32);
+
+ if (pci_set_dma_mask(pdev, dmamask) ||
+ pci_set_consistent_dma_mask(pdev, dmamask))
+ goto out_disable_pdev;
pci_set_master(pdev);
--
1.7.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
2010-07-26 6:07 [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31 Rolf Eike Beer
@ 2010-07-26 13:25 ` Achim Leubner
2010-07-26 15:46 ` Rolf Eike Beer
0 siblings, 1 reply; 6+ messages in thread
From: Achim Leubner @ 2010-07-26 13:25 UTC (permalink / raw)
To: Rolf Eike Beer, aacraid; +Cc: linux-scsi, Andrew Morton
Hi Rolf,
The patch looks good for me so from my side we can include it. Sorry for
the delay - I will try to give quick answers for future requests. Please
pay attention that my personal email address has changed because we are
now part of PMC-Sierra Inc. But aacraid@adaptec.com remains active.
Thanks,
Achim Leubner
PMC-Sierra Inc.
-----Original Message-----
From: linux-scsi-owner@vger.kernel.org
[mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Rolf Eike Beer
Sent: Monday, July 26, 2010 8:08 AM
To: aacraid@adaptec.com
Cc: linux-scsi@vger.kernel.org; Andrew Morton
Subject: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if
adapter only supports 31
>From 1c2f6ce5be5890ea7151ada3602699566afdd060 Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
Date: Wed, 1 Jul 2009 22:43:39 +0200
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
---
drivers/scsi/aacraid/linit.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
James, it looks like people at Adaptec don't care if you send patches
in. That
also applies to at least one patch from Julia Lawall that is waiting
since
December. What next?
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 33898b6..cad6f9a 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -1091,6 +1091,7 @@ static int __devinit aac_probe_one(struct pci_dev
*pdev,
struct list_head *insert = &aac_devices;
int error = -ENODEV;
int unique_id = 0;
+ u64 dmamask;
list_for_each_entry(aac, &aac_devices, entry) {
if (aac->id > unique_id)
@@ -1104,17 +1105,18 @@ static int __devinit aac_probe_one(struct
pci_dev
*pdev,
goto out;
error = -ENODEV;
- if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) ||
- pci_set_consistent_dma_mask(pdev,
DMA_BIT_MASK(32)))
- goto out_disable_pdev;
/*
* If the quirk31 bit is set, the adapter needs adapter
* to driver communication memory to be allocated below 2gig
*/
if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
- if (pci_set_dma_mask(pdev, DMA_BIT_MASK(31)) ||
- pci_set_consistent_dma_mask(pdev,
DMA_BIT_MASK(31)))
- goto out_disable_pdev;
+ dmamask = DMA_BIT_MASK(31);
+ else
+ dmamask = DMA_BIT_MASK(32);
+
+ if (pci_set_dma_mask(pdev, dmamask) ||
+ pci_set_consistent_dma_mask(pdev, dmamask))
+ goto out_disable_pdev;
pci_set_master(pdev);
--
1.7.1
--
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
2010-07-26 13:25 ` Achim Leubner
@ 2010-07-26 15:46 ` Rolf Eike Beer
2010-07-26 16:07 ` James Bottomley
2010-07-29 10:09 ` Achim Leubner
0 siblings, 2 replies; 6+ messages in thread
From: Rolf Eike Beer @ 2010-07-26 15:46 UTC (permalink / raw)
To: Achim Leubner; +Cc: aacraid, linux-scsi, Andrew Morton, Julia Lawall
[-- Attachment #1: Type: Text/Plain, Size: 569 bytes --]
Achim Leubner wrote:
> Hi Rolf,
>
> The patch looks good for me so from my side we can include it. Sorry for
> the delay - I will try to give quick answers for future requests. Please
> pay attention that my personal email address has changed because we are
> now part of PMC-Sierra Inc. But aacraid@adaptec.com remains active.
Can I get an Acked-by of any of you so James can push this for the next merge
window?
Also please have a look at the patch at
http://marc.info/?l=linux-scsi&m=127472836901937&w=2
and give that an Acked-by, too.
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
2010-07-26 15:46 ` Rolf Eike Beer
@ 2010-07-26 16:07 ` James Bottomley
2010-07-26 16:53 ` Rolf Eike Beer
2010-07-29 10:09 ` Achim Leubner
1 sibling, 1 reply; 6+ messages in thread
From: James Bottomley @ 2010-07-26 16:07 UTC (permalink / raw)
To: Rolf Eike Beer
Cc: Achim Leubner, aacraid, linux-scsi, Andrew Morton, Julia Lawall
On Mon, 2010-07-26 at 17:46 +0200, Rolf Eike Beer wrote:
> Achim Leubner wrote:
> > Hi Rolf,
> >
> > The patch looks good for me so from my side we can include it. Sorry for
> > the delay - I will try to give quick answers for future requests. Please
> > pay attention that my personal email address has changed because we are
> > now part of PMC-Sierra Inc. But aacraid@adaptec.com remains active.
>
> Can I get an Acked-by of any of you so James can push this for the next merge
> window?
Actually, this is sufficient for me to translate into an acked-by
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
2010-07-26 16:07 ` James Bottomley
@ 2010-07-26 16:53 ` Rolf Eike Beer
0 siblings, 0 replies; 6+ messages in thread
From: Rolf Eike Beer @ 2010-07-26 16:53 UTC (permalink / raw)
To: James Bottomley
Cc: Achim Leubner, aacraid, linux-scsi, Andrew Morton, Julia Lawall
[-- Attachment #1: Type: Text/Plain, Size: 659 bytes --]
James Bottomley wrote:
> On Mon, 2010-07-26 at 17:46 +0200, Rolf Eike Beer wrote:
> > Achim Leubner wrote:
> > > Hi Rolf,
> > >
> > > The patch looks good for me so from my side we can include it. Sorry
> > > for the delay - I will try to give quick answers for future requests.
> > > Please pay attention that my personal email address has changed
> > > because we are now part of PMC-Sierra Inc. But aacraid@adaptec.com
> > > remains active.
> >
> > Can I get an Acked-by of any of you so James can push this for the next
> > merge window?
>
> Actually, this is sufficient for me to translate into an acked-by
Whatever works ;)
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31
2010-07-26 15:46 ` Rolf Eike Beer
2010-07-26 16:07 ` James Bottomley
@ 2010-07-29 10:09 ` Achim Leubner
1 sibling, 0 replies; 6+ messages in thread
From: Achim Leubner @ 2010-07-29 10:09 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: aacraid, linux-scsi, Andrew Morton, Julia Lawall
Looks reasonable too. I can also give an Acked-by for Julias patch.
Thanks,
Achim
-----Original Message-----
From: Rolf Eike Beer [mailto:eike-kernel@sf-tec.de]
Sent: Monday, July 26, 2010 5:46 PM
To: Achim Leubner
Cc: aacraid@adaptec.com; linux-scsi@vger.kernel.org; Andrew Morton;
Julia Lawall
Subject: Re: [PATCH][Resend #2] Do not set DMA mask to 32 bit first if
adapter only supports 31
Achim Leubner wrote:
> Hi Rolf,
>
> The patch looks good for me so from my side we can include it. Sorry
for
> the delay - I will try to give quick answers for future requests.
Please
> pay attention that my personal email address has changed because we
are
> now part of PMC-Sierra Inc. But aacraid@adaptec.com remains active.
Can I get an Acked-by of any of you so James can push this for the next
merge
window?
Also please have a look at the patch at
http://marc.info/?l=linux-scsi&m=127472836901937&w=2
and give that an Acked-by, too.
Eike
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-29 10:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 6:07 [PATCH][Resend #2] Do not set DMA mask to 32 bit first if adapter only supports 31 Rolf Eike Beer
2010-07-26 13:25 ` Achim Leubner
2010-07-26 15:46 ` Rolf Eike Beer
2010-07-26 16:07 ` James Bottomley
2010-07-26 16:53 ` Rolf Eike Beer
2010-07-29 10:09 ` Achim Leubner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).