mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
44 lines
1.8 KiB
Diff
44 lines
1.8 KiB
Diff
From 994818d7302f5e26644f6571183455da1d95e742 Mon Sep 17 00:00:00 2001
|
|
From: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
|
|
Date: Tue, 13 Feb 2024 17:09:47 +0000
|
|
Subject: [PATCH 0895/1085] PCI: brcmstb: Set new flags to avoid QOS "holes" on
|
|
BCM2712D0
|
|
|
|
Set some flags present (and recommended) in 2712D0, but missing
|
|
(and harmless) in 2712C1. In particular, EN_QOS_UPDATE_TIMING_FIX
|
|
must be set to avoid spurious QOS=0 when the queue changes from
|
|
empty to non-empty, to make D0 match the existing C1 behaviour.
|
|
|
|
Not enabling "QOS forwarding", which still seems not to help.
|
|
|
|
Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
|
|
---
|
|
drivers/pci/controller/pcie-brcmstb.c | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/pci/controller/pcie-brcmstb.c
|
|
+++ b/drivers/pci/controller/pcie-brcmstb.c
|
|
@@ -199,6 +199,9 @@
|
|
#define VDM_PRIORITY_TO_QOS_MAP_MASK 0xf
|
|
|
|
#define PCIE_MISC_AXI_INTF_CTRL 0x416C
|
|
+#define AXI_EN_RCLK_QOS_ARRAY_FIX BIT(13)
|
|
+#define AXI_EN_QOS_UPDATE_TIMING_FIX BIT(12)
|
|
+#define AXI_DIS_QOS_GATING_IN_MASTER BIT(11)
|
|
#define AXI_REQFIFO_EN_QOS_PROPAGATION BIT(7)
|
|
#define AXI_BRIDGE_LOW_LATENCY_MODE BIT(6)
|
|
#define AXI_MASTER_MAX_OUTSTANDING_REQUESTS_MASK 0x3f
|
|
@@ -558,9 +561,11 @@ static void brcm_pcie_set_tc_qos(struct
|
|
if (pcie->type != BCM2712)
|
|
return;
|
|
|
|
- /* XXX: BCM2712C0 is broken, disable the forwarding search */
|
|
+ /* Disable broken QOS forwarding search. Set chicken bits for 2712D0 */
|
|
reg = readl(pcie->base + PCIE_MISC_AXI_INTF_CTRL);
|
|
reg &= ~AXI_REQFIFO_EN_QOS_PROPAGATION;
|
|
+ reg |= AXI_EN_RCLK_QOS_ARRAY_FIX | AXI_EN_QOS_UPDATE_TIMING_FIX |
|
|
+ AXI_DIS_QOS_GATING_IN_MASTER;
|
|
writel(reg, pcie->base + PCIE_MISC_AXI_INTF_CTRL);
|
|
|
|
/* Disable VDM reception by default - QoS map defaults to 0 */
|