mptsas: Fix issue with chain pools allocation on katmai
Subsystems (2)
PATCH 1/1 mptsas: Fix issue with chain pools allocation on katmai
Since commit 9d2e9d66a3f032667934144cd61c396ba49f090d
mptsas driver fails to allocate memory for the MPT chain buffers for second LSI adapter on PPC440SPe Katmai platform:
...
ioc1: LSISAS1068E B3: Capabilities={Initiator}
mptbase: ioc1: ERROR - Unable to allocate Reply, Request, Chain Buffers!
mptbase: ioc1: ERROR - didn't initialize properly! (-3)
mptsas: probe of 0002:31:00.0 failed with error -3
This commit increased MPT_FC_CAN_QUEUE value but initChainBuffers() doesn't differentiate between SAS and FC causing increased allocation for SAS case, too. Later pci_alloc_consistent() fails to allocate increased chain buffer pool size for SAS case.
Provide a fix by looking at the bus type and using appropriate MPT_SAS_CAN_QUEUE value while calculation of the number of chain buffers.
--- drivers/message/fusion/mptbase.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/message/fusion/mptbase.c +2 -0
@@ -4330,6 +4330,8 @@ initChainBuffers(MPT_ADAPTER *ioc)if (ioc->bus_type ==SPI ) num_chain *=MPT_SCSI_CAN_QUEUE ; +else if (ioc->bus_type ==SAS ) + num_chain *=MPT_SAS_CAN_QUEUE ;else num_chain *=MPT_FC_CAN_QUEUE ;
Signature · 1 line
1.6.2.5
Quoted 9 lines · On Sat, 12 Dec 2009 14:52:21 +0100 Anatolij Gustschin <[email protected]> wrote:
Since commit
9d2e9d66a3f032667934144cd61c396ba49f090d
mptsas driver fails to allocate memory for the MPT chain buffers for second LSI adapter on PPC440SPe Katmai platform:
...
ioc1: LSISAS1068E B3: Capabilities={Initiator}
mptbase: ioc1: ERROR - Unable to allocate Reply, Request, Chain Buffers!
mptbase: ioc1: ERROR - didn't initialize properly! (-3)
mptsas: probe of 0002:31:00.0 failed with error -3
Quoted 8 lines
This commit increased
MPT_FC_CAN_QUEUEvalue butinitChainBuffers()doesn't differentiate between SAS and FC causing increased allocation for SAS case, too. Laterpci_alloc_consistent()fails to allocate increased chain buffer pool size for SAS case.Provide a fix by looking at the bus type and using appropriate
MPT_SAS_CAN_QUEUEvalue while calculation of the number of chain buffers.
Could someone please comment on this patch? Thanks!
Anatolij
Anatolij,
Patch provided by you is OK to me.
Please consider it as ACKED.
- Kashyap
Quoted 32 lines
-----Original Message-----
From: Anatolij Gustschin [mailto:[email protected]]
Sent: Wednesday, January 13, 2010 3:43 PM
To: [email protected]
Cc: Desai, Kashyap; Moore, Eric; James Bottomley
Subject: Re: [PATCH] [SCSI] mptsas: Fix issue with chain pools allocation on katmaiQuoted 9 lines · On Sat, 12 Dec 2009 14:52:21 +0100 Anatolij Gustschin <[email protected]> wrote:
Since commit
9d2e9d66a3f032667934144cd61c396ba49f090d
mptsas driver fails to allocate memory for the MPT chain buffers for second LSI adapter on PPC440SPe Katmai platform:
...
ioc1: LSISAS1068E B3: Capabilities={Initiator}
mptbase: ioc1: ERROR - Unable to allocate Reply, Request, Chain Buffers!
mptbase: ioc1: ERROR - didn't initialize properly! (-3)
mptsas: probe of 0002:31:00.0 failed with error -3Quoted 8 lines
This commit increased
MPT_FC_CAN_QUEUEvalue butinitChainBuffers()doesn't differentiate between SAS and FC causing increased allocation for SAS case, too. Laterpci_alloc_consistent()fails to allocate increased chain buffer pool size for SAS case.Provide a fix by looking at the bus type and using appropriate
MPT_SAS_CAN_QUEUEvalue while calculation of the number of chain buffers.Could someone please comment on this patch? Thanks!
Anatolij
Quoted 4 lines · Kashyap
Anatolij,
Patch provided by you is OK to me.
Please consider it as ACKED.
OK, thanks. James, could you apply this patch then?
Anatolij
Quoted 32 lines
Quoted 32 lines
-----Original Message-----
From: Anatolij Gustschin [mailto:[email protected]]
Sent: Wednesday, January 13, 2010 3:43 PM
To: [email protected]
Cc: Desai, Kashyap; Moore, Eric; James Bottomley
Subject: Re: [PATCH] [SCSI] mptsas: Fix issue with chain pools allocation on katmaiQuoted 9 lines · On Sat, 12 Dec 2009 14:52:21 +0100 Anatolij Gustschin <[email protected]> wrote:
Since commit
9d2e9d66a3f032667934144cd61c396ba49f090d
mptsas driver fails to allocate memory for the MPT chain buffers for second LSI adapter on PPC440SPe Katmai platform:
...
ioc1: LSISAS1068E B3: Capabilities={Initiator}
mptbase: ioc1: ERROR - Unable to allocate Reply, Request, Chain Buffers!
mptbase: ioc1: ERROR - didn't initialize properly! (-3)
mptsas: probe of 0002:31:00.0 failed with error -3Quoted 8 lines
This commit increased
MPT_FC_CAN_QUEUEvalue butinitChainBuffers()doesn't differentiate between SAS and FC causing increased allocation for SAS case, too. Laterpci_alloc_consistent()fails to allocate increased chain buffer pool size for SAS case.Provide a fix by looking at the bus type and using appropriate
MPT_SAS_CAN_QUEUEvalue while calculation of the number of chain buffers.Could someone please comment on this patch? Thanks!
Anatolij