Skip to contentSkip to conversation

brcmfmac: increase F2 watermark for BCM4329

PATCH Superseded Dmitry Osipenko 2 participants 3 messages Aug 23, 2020 – Aug 24, 2020

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcmfmac: increase F2 watermark for BCM4329

This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value is borrowed from downstream BCMDHD driver and it's the same as the value used for the BCM4339 chip, hence let's re-use it for BCM4329.

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -0
index 3c07d1bbe1c6..ac3ee93a2378 100644
@@ -4278,6 +4278,7 @@ static void brcmf_sdio_firmware_callback(struct device *dev, int err,
 			brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL,
 					   CY_43012_MESBUSYCTRL, &err);
 			break;
+		case SDIO_DEVICE_ID_BROADCOM_4329:
 		case SDIO_DEVICE_ID_BROADCOM_4339:
 			brcmf_dbg(INFO, "set F2 watermark to 0x%x*4 bytes for 4339\n",
 				  CY_4339_F2_WATERMARK);
Signature · 1 line
2.27.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Dmitry Osipenko

This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value is borrowed from downstream BCMDHD driver and it's the same as the value used for the BCM4339 chip, hence let's re-use it for BCM4329.

one comment, but when fixed you can add my....

Quoted 10 lines
---
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 +
  1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +0 -0
index 3c07d1bbe1c6..ac3ee93a2378 100644

drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_firmware_callback(struct device *dev, int err, · line 4283

Quoted 6 lines
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -0
@@ -4278,6 +4278,7 @@ static void brcmf_sdio_firmware_callback(struct device *dev, int err,
  			brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL,
  					   CY_43012_MESBUSYCTRL, &err);
  			break;
+		case SDIO_DEVICE_ID_BROADCOM_4329:
  		case SDIO_DEVICE_ID_BROADCOM_4339:
  			brcmf_dbg(INFO, "set F2 watermark to 0x%x*4 bytes for 4339\n",

Maybe better to drop the chip id from the debug message. The chip id is printed elsewhere already so it does not add info here and could only cause confusion. Maybe you can also remove it from the 43455 message a bit below.

#2 lore raw

24.08.2020 11:28, Arend Van Spriel пишет:

Quoted 28 lines · Dmitry Osipenko
Quoted 5 lines

This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value is borrowed from downstream BCMDHD driver and it's the same as the value used for the BCM4339 chip, hence let's re-use it for BCM4329.

one comment, but when fixed you can add my....

Quoted 16 lines

---
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 +

  1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -0
index 3c07d1bbe1c6..ac3ee93a2378 100644
@@ -4278,6 +4278,7 @@ static void brcmf_sdio_firmware_callback(struct
 device *dev, int err,
               brcmf_sdiod_writeb(sdiod, SBSDIO_FUNC1_MESBUSYCTRL,
                          CY_43012_MESBUSYCTRL, &err);
               break;
+        case SDIO_DEVICE_ID_BROADCOM_4329:
Quoted 8 lines
Quoted 3 lines

          case SDIO_DEVICE_ID_BROADCOM_4339:
              brcmf_dbg(INFO, "set F2 watermark to 0x%x*4 bytes for 4339\n",

Maybe better to drop the chip id from the debug message. The chip id is printed elsewhere already so it does not add info here and could only cause confusion. Maybe you can also remove it from the 43455 message a bit below.

Hello, Arend! Thank you for the review! I'll prepare v2 with the cleaned debug messages and couple more small changes!