* [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
@ 2021-11-08 18:30 Ewan D. Milne
2021-11-08 23:11 ` Himanshu Madhani
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ewan D. Milne @ 2021-11-08 18:30 UTC (permalink / raw)
To: linux-scsi; +Cc: stable, njavali, aeasi
The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb
so the data was not actually being read into the mcp->mb[] array from
the adapter.
Fixes: 9f2475fe7406 ("scsi: qla2xxx: SAN congestion management implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
---
drivers/scsi/qla2xxx/qla_mbx.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 7811c4952035..a6debeea3079 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -1695,10 +1695,8 @@ qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa,
mcp->in_mb |= MBX_13|MBX_12|MBX_11|MBX_10;
if (IS_FWI2_CAPABLE(vha->hw))
mcp->in_mb |= MBX_19|MBX_18|MBX_17|MBX_16;
- if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) {
- mcp->in_mb |= MBX_15;
- mcp->out_mb |= MBX_7|MBX_21|MBX_22|MBX_23;
- }
+ if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw))
+ mcp->in_mb |= MBX_15|MBX_21|MBX_22|MBX_23;
mcp->tov = MBX_TOV_SECONDS;
mcp->flags = 0;
--
2.31.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
2021-11-08 18:30 [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id() Ewan D. Milne
@ 2021-11-08 23:11 ` Himanshu Madhani
2021-11-09 0:49 ` [EXT] " Arun Easi
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Himanshu Madhani @ 2021-11-08 23:11 UTC (permalink / raw)
To: Ewan D. Milne, linux-scsi; +Cc: stable, njavali, aeasi
On 11/8/21 12:30, Ewan D. Milne wrote:
> The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb
> so the data was not actually being read into the mcp->mb[] array from
> the adapter.
>
> Fixes: 9f2475fe7406 ("scsi: qla2xxx: SAN congestion management implementation")
> Cc: stable@vger.kernel.org
> Signed-off-by: Ewan D. Milne <emilne@redhat.com>
> ---
> drivers/scsi/qla2xxx/qla_mbx.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
> index 7811c4952035..a6debeea3079 100644
> --- a/drivers/scsi/qla2xxx/qla_mbx.c
> +++ b/drivers/scsi/qla2xxx/qla_mbx.c
> @@ -1695,10 +1695,8 @@ qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa,
> mcp->in_mb |= MBX_13|MBX_12|MBX_11|MBX_10;
> if (IS_FWI2_CAPABLE(vha->hw))
> mcp->in_mb |= MBX_19|MBX_18|MBX_17|MBX_16;
> - if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) {
> - mcp->in_mb |= MBX_15;
> - mcp->out_mb |= MBX_7|MBX_21|MBX_22|MBX_23;
> - }
> + if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw))
> + mcp->in_mb |= MBX_15|MBX_21|MBX_22|MBX_23;
>
> mcp->tov = MBX_TOV_SECONDS;
> mcp->flags = 0;
>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
--
Himanshu Madhani Oracle Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [EXT] [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
2021-11-08 18:30 [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id() Ewan D. Milne
2021-11-08 23:11 ` Himanshu Madhani
@ 2021-11-09 0:49 ` Arun Easi
2021-11-09 4:16 ` Martin K. Petersen
2021-11-19 4:16 ` Martin K. Petersen
3 siblings, 0 replies; 5+ messages in thread
From: Arun Easi @ 2021-11-09 0:49 UTC (permalink / raw)
To: Ewan D. Milne; +Cc: linux-scsi, stable, njavali
Looks good. Thanks Ewan.
Reviewed-by: Arun Easi <aeasi@marvell.com>
Regards,
-Arun
On Mon, 8 Nov 2021, 10:30am, Ewan D. Milne wrote:
>
> The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb
> so the data was not actually being read into the mcp->mb[] array from
> the adapter.
>
> Fixes: 9f2475fe7406 ("scsi: qla2xxx: SAN congestion management implementation")
> Cc: stable@vger.kernel.org
> Signed-off-by: Ewan D. Milne <emilne@redhat.com>
> ---
> drivers/scsi/qla2xxx/qla_mbx.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
> index 7811c4952035..a6debeea3079 100644
> --- a/drivers/scsi/qla2xxx/qla_mbx.c
> +++ b/drivers/scsi/qla2xxx/qla_mbx.c
> @@ -1695,10 +1695,8 @@ qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa,
> mcp->in_mb |= MBX_13|MBX_12|MBX_11|MBX_10;
> if (IS_FWI2_CAPABLE(vha->hw))
> mcp->in_mb |= MBX_19|MBX_18|MBX_17|MBX_16;
> - if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) {
> - mcp->in_mb |= MBX_15;
> - mcp->out_mb |= MBX_7|MBX_21|MBX_22|MBX_23;
> - }
> + if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw))
> + mcp->in_mb |= MBX_15|MBX_21|MBX_22|MBX_23;
>
> mcp->tov = MBX_TOV_SECONDS;
> mcp->flags = 0;
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
2021-11-08 18:30 [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id() Ewan D. Milne
2021-11-08 23:11 ` Himanshu Madhani
2021-11-09 0:49 ` [EXT] " Arun Easi
@ 2021-11-09 4:16 ` Martin K. Petersen
2021-11-19 4:16 ` Martin K. Petersen
3 siblings, 0 replies; 5+ messages in thread
From: Martin K. Petersen @ 2021-11-09 4:16 UTC (permalink / raw)
To: Ewan D. Milne; +Cc: linux-scsi, stable, njavali, aeasi
Ewan,
> The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb so
> the data was not actually being read into the mcp->mb[] array from the
> adapter.
Applied to 5.16/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
2021-11-08 18:30 [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id() Ewan D. Milne
` (2 preceding siblings ...)
2021-11-09 4:16 ` Martin K. Petersen
@ 2021-11-19 4:16 ` Martin K. Petersen
3 siblings, 0 replies; 5+ messages in thread
From: Martin K. Petersen @ 2021-11-19 4:16 UTC (permalink / raw)
To: linux-scsi, Ewan D. Milne; +Cc: Martin K . Petersen, njavali, aeasi, stable
On Mon, 8 Nov 2021 13:30:12 -0500, Ewan D. Milne wrote:
> The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb
> so the data was not actually being read into the mcp->mb[] array from
> the adapter.
>
>
Applied to 5.16/scsi-fixes, thanks!
[1/1] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id()
https://git.kernel.org/mkp/scsi/c/392006871bb2
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-19 4:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 18:30 [PATCH] scsi: qla2xxx: fix mailbox direction flags in qla2xxx_get_adapter_id() Ewan D. Milne
2021-11-08 23:11 ` Himanshu Madhani
2021-11-09 0:49 ` [EXT] " Arun Easi
2021-11-09 4:16 ` Martin K. Petersen
2021-11-19 4:16 ` Martin K. Petersen
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).