linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
@ 2023-01-11 11:24 Arend van Spriel
  2023-01-11 11:39 ` Arend van Spriel
  2023-01-16 11:27 ` [V2] " Kalle Valo
  0 siblings, 2 replies; 4+ messages in thread
From: Arend van Spriel @ 2023-01-11 11:24 UTC (permalink / raw)
  To: Kalle Valo
  Cc: linux-wireless, Arend van Spriel, chainofflowers,
	Christian Marillat

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

A sanity check was introduced considering maximum flowrings above
256 as insane and effectively aborting the device probe. This
resulted in regression for number of users as the value turns out
to be sane after all.

Fixes: 2aca4f3734bd ("brcmfmac: return error when getting invalid max_flowrings from dongle")
Reported-by: chainofflowers <chainofflowers@posteo.net>
Link: https://lore.kernel.org/all/4781984.GXAFRqVoOG@luna/
Reported-by: Christian Marillat <marillat@debian.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216894
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
index ae57a9a3ab05..b67f6d0810b6 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
@@ -1228,7 +1228,7 @@ static int brcmf_pcie_init_ringbuffers(struct brcmf_pciedev_info *devinfo)
 				BRCMF_NROF_H2D_COMMON_MSGRINGS;
 		max_completionrings = BRCMF_NROF_D2H_COMMON_MSGRINGS;
 	}
-	if (max_flowrings > 256) {
+	if (max_flowrings > 512) {
 		brcmf_err(bus, "invalid max_flowrings(%d)\n", max_flowrings);
 		return -EIO;
 	}
-- 
2.32.0


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
  2023-01-11 11:24 [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices Arend van Spriel
@ 2023-01-11 11:39 ` Arend van Spriel
  2023-01-12  9:43   ` Kalle Valo
  2023-01-16 11:27 ` [V2] " Kalle Valo
  1 sibling, 1 reply; 4+ messages in thread
From: Arend van Spriel @ 2023-01-11 11:39 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless, chainofflowers, Christian Marillat

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

On 1/11/2023 12:24 PM, Arend van Spriel wrote:
> A sanity check was introduced considering maximum flowrings above
> 256 as insane and effectively aborting the device probe. This
> resulted in regression for number of users as the value turns out
> to be sane after all.

Forgot tha mention this is for 6.2 kernel. Apparently the commit causing 
the regression was also applied to 6.1 stable tree. So this should go to 
stable as well.

> Fixes: 2aca4f3734bd ("brcmfmac: return error when getting invalid max_flowrings from dongle")
> Reported-by: chainofflowers <chainofflowers@posteo.net>
> Link: https://lore.kernel.org/all/4781984.GXAFRqVoOG@luna/
> Reported-by: Christian Marillat <marillat@debian.org>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216894
> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
> ---
>   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> index ae57a9a3ab05..b67f6d0810b6 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
> @@ -1228,7 +1228,7 @@ static int brcmf_pcie_init_ringbuffers(struct brcmf_pciedev_info *devinfo)
>   				BRCMF_NROF_H2D_COMMON_MSGRINGS;
>   		max_completionrings = BRCMF_NROF_D2H_COMMON_MSGRINGS;
>   	}
> -	if (max_flowrings > 256) {
> +	if (max_flowrings > 512) {
>   		brcmf_err(bus, "invalid max_flowrings(%d)\n", max_flowrings);
>   		return -EIO;
>   	}

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
  2023-01-11 11:39 ` Arend van Spriel
@ 2023-01-12  9:43   ` Kalle Valo
  0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2023-01-12  9:43 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, chainofflowers, Christian Marillat

Arend van Spriel <arend.vanspriel@broadcom.com> writes:

> On 1/11/2023 12:24 PM, Arend van Spriel wrote:
>> A sanity check was introduced considering maximum flowrings above
>> 256 as insane and effectively aborting the device probe. This
>> resulted in regression for number of users as the value turns out
>> to be sane after all.
>
> Forgot tha mention this is for 6.2 kernel. Apparently the commit
> causing the regression was also applied to 6.1 stable tree. So this
> should go to stable as well.

Ok, I'll add cc stable.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
  2023-01-11 11:24 [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices Arend van Spriel
  2023-01-11 11:39 ` Arend van Spriel
@ 2023-01-16 11:27 ` Kalle Valo
  1 sibling, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2023-01-16 11:27 UTC (permalink / raw)
  To: Arend van Spriel
  Cc: linux-wireless, Arend van Spriel, chainofflowers,
	Christian Marillat

Arend van Spriel <arend.vanspriel@broadcom.com> wrote:

> A sanity check was introduced considering maximum flowrings above
> 256 as insane and effectively aborting the device probe. This
> resulted in regression for number of users as the value turns out
> to be sane after all.
> 
> Fixes: 2aca4f3734bd ("brcmfmac: return error when getting invalid max_flowrings from dongle")
> Reported-by: chainofflowers <chainofflowers@posteo.net>
> Link: https://lore.kernel.org/all/4781984.GXAFRqVoOG@luna/
> Reported-by: Christian Marillat <marillat@debian.org>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216894
> Cc: stable@vger.kernel.org
> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>

Patch applied to wireless.git, thanks.

ed05cb177ae5 wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20230111112419.24185-1-arend.vanspriel@broadcom.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-16 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 11:24 [PATCH V2] wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices Arend van Spriel
2023-01-11 11:39 ` Arend van Spriel
2023-01-12  9:43   ` Kalle Valo
2023-01-16 11:27 ` [V2] " Kalle Valo

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).