* [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
@ 2023-09-23 3:10 Rohan G Thomas
2023-09-26 11:25 ` Serge Semin
0 siblings, 1 reply; 10+ messages in thread
From: Rohan G Thomas @ 2023-09-23 3:10 UTC (permalink / raw)
To: David S . Miller, Alexandre Torgue, Jose Abreu, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin
Cc: netdev, linux-stm32, linux-arm-kernel, devicetree, linux-kernel,
Rohan G Thomas, Andy Shevchenko
Enabled the following EST related interrupts:
1) Constant Gate Control Error (CGCE)
2) Head-of-Line Blocking due to Scheduling (HLBS)
3) Head-of-Line Blocking due to Frame Size (HLBF)
4) Base Time Register error (BTRE)
5) Switch to S/W owned list Complete (SWLC)
Also, add EST errors into the ethtool statistic.
The commit e49aa315cb01 ("net: stmmac: EST interrupts handling and
error reporting") and commit 9f298959191b ("net: stmmac: Add EST
errors into ethtool statistic") add EST interrupts handling and error
reporting support to DWMAC4 core. This patch enables the same support
for XGMAC.
Signed-off-by: Rohan G Thomas <rohan.g.thomas@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
.../net/ethernet/stmicro/stmmac/dwxgmac2.h | 27 ++++++
.../ethernet/stmicro/stmmac/dwxgmac2_core.c | 89 +++++++++++++++++++
2 files changed, 116 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
index 7a8f47e7b728..75782b8cdfe9 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
@@ -289,6 +289,33 @@
#define XGMAC_PTOV_SHIFT 23
#define XGMAC_SSWL BIT(1)
#define XGMAC_EEST BIT(0)
+#define XGMAC_MTL_EST_STATUS 0x00001058
+#define XGMAC_BTRL GENMASK(15, 8)
+#define XGMAC_BTRL_SHIFT 8
+#define XGMAC_BTRL_MAX GENMASK(15, 8)
+#define XGMAC_CGCE BIT(4)
+#define XGMAC_HLBS BIT(3)
+#define XGMAC_HLBF BIT(2)
+#define XGMAC_BTRE BIT(1)
+#define XGMAC_SWLC BIT(0)
+#define XGMAC_MTL_EST_SCH_ERR 0x00001060
+#define XGMAC_MTL_EST_FRM_SZ_ERR 0x00001064
+#define XGMAC_MTL_EST_FRM_SZ_CAP 0x00001068
+#define XGMAC_SZ_CAP_HBFS_MASK GENMASK(14, 0)
+#define XGMAC_SZ_CAP_HBFQ_SHIFT 16
+#define XGMAC_SZ_CAP_HBFQ_MASK(val) \
+ ({ \
+ typeof(val) _val = (val); \
+ (_val > 4 ? GENMASK(18, 16) : \
+ _val > 2 ? GENMASK(17, 16) : \
+ BIT(16)); \
+ })
+#define XGMAC_MTL_EST_INT_EN 0x00001070
+#define XGMAC_IECGCE BIT(4)
+#define XGMAC_IEHS BIT(3)
+#define XGMAC_IEHF BIT(2)
+#define XGMAC_IEBE BIT(1)
+#define XGMAC_IECC BIT(0)
#define XGMAC_MTL_EST_GCL_CONTROL 0x00001080
#define XGMAC_BTR_LOW 0x0
#define XGMAC_BTR_HIGH 0x1
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
index f352be269deb..0af0aefa6656 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
@@ -1469,9 +1469,97 @@ static int dwxgmac3_est_configure(void __iomem *ioaddr, struct stmmac_est *cfg,
ctrl &= ~XGMAC_EEST;
writel(ctrl, ioaddr + XGMAC_MTL_EST_CONTROL);
+
+ /* Configure EST interrupt */
+ if (cfg->enable)
+ ctrl = XGMAC_IECGCE | XGMAC_IEHS | XGMAC_IEHF | XGMAC_IEBE |
+ XGMAC_IECC;
+ else
+ ctrl = 0;
+
+ writel(ctrl, ioaddr + XGMAC_MTL_EST_INT_EN);
return 0;
}
+static void dwxgmac3_est_irq_status(void __iomem *ioaddr,
+ struct net_device *dev,
+ struct stmmac_extra_stats *x, u32 txqcnt)
+{
+ u32 status, value, feqn, hbfq, hbfs, btrl;
+ u32 txqcnt_mask = BIT(txqcnt) - 1;
+
+ status = readl(ioaddr + XGMAC_MTL_EST_STATUS);
+
+ value = XGMAC_CGCE | XGMAC_HLBS | XGMAC_HLBF | XGMAC_BTRE | XGMAC_SWLC;
+
+ /* Return if there is no error */
+ if (!(status & value))
+ return;
+
+ if (status & XGMAC_CGCE) {
+ /* Clear Interrupt */
+ writel(XGMAC_CGCE, ioaddr + XGMAC_MTL_EST_STATUS);
+
+ x->mtl_est_cgce++;
+ }
+
+ if (status & XGMAC_HLBS) {
+ value = readl(ioaddr + XGMAC_MTL_EST_SCH_ERR);
+ value &= txqcnt_mask;
+
+ x->mtl_est_hlbs++;
+
+ /* Clear Interrupt */
+ writel(value, ioaddr + XGMAC_MTL_EST_SCH_ERR);
+
+ /* Collecting info to shows all the queues that has HLBS
+ * issue. The only way to clear this is to clear the
+ * statistic.
+ */
+ if (net_ratelimit())
+ netdev_err(dev, "EST: HLB(sched) Queue 0x%x\n", value);
+ }
+
+ if (status & XGMAC_HLBF) {
+ value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
+ feqn = value & txqcnt_mask;
+
+ value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_CAP);
+ hbfq = (value & XGMAC_SZ_CAP_HBFQ_MASK(txqcnt)) >>
+ XGMAC_SZ_CAP_HBFQ_SHIFT;
+ hbfs = value & XGMAC_SZ_CAP_HBFS_MASK;
+
+ x->mtl_est_hlbf++;
+
+ /* Clear Interrupt */
+ writel(feqn, ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
+
+ if (net_ratelimit())
+ netdev_err(dev, "EST: HLB(size) Queue %u Size %u\n",
+ hbfq, hbfs);
+ }
+
+ if (status & XGMAC_BTRE) {
+ if ((status & XGMAC_BTRL) == XGMAC_BTRL_MAX)
+ x->mtl_est_btrlm++;
+ else
+ x->mtl_est_btre++;
+
+ btrl = (status & XGMAC_BTRL) >> XGMAC_BTRL_SHIFT;
+
+ if (net_ratelimit())
+ netdev_info(dev, "EST: BTR Error Loop Count %u\n",
+ btrl);
+
+ writel(XGMAC_BTRE, ioaddr + XGMAC_MTL_EST_STATUS);
+ }
+
+ if (status & XGMAC_SWLC) {
+ writel(XGMAC_SWLC, ioaddr + XGMAC_MTL_EST_STATUS);
+ netdev_info(dev, "EST: SWOL has been switched\n");
+ }
+}
+
static void dwxgmac3_fpe_configure(void __iomem *ioaddr, u32 num_txq,
u32 num_rxq, bool enable)
{
@@ -1541,6 +1629,7 @@ const struct stmmac_ops dwxgmac210_ops = {
.config_l4_filter = dwxgmac2_config_l4_filter,
.set_arp_offload = dwxgmac2_set_arp_offload,
.est_configure = dwxgmac3_est_configure,
+ .est_irq_status = dwxgmac3_est_irq_status,
.fpe_configure = dwxgmac3_fpe_configure,
};
--
2.26.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-09-23 3:10 [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling Rohan G Thomas
@ 2023-09-26 11:25 ` Serge Semin
2023-10-02 20:55 ` Jakub Kicinski
0 siblings, 1 reply; 10+ messages in thread
From: Serge Semin @ 2023-09-26 11:25 UTC (permalink / raw)
To: Rohan G Thomas
Cc: David S . Miller, Alexandre Torgue, Jose Abreu, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, netdev, linux-stm32,
linux-arm-kernel, devicetree, linux-kernel, Andy Shevchenko
Hi Rohan
On Sat, Sep 23, 2023 at 11:10:31AM +0800, Rohan G Thomas wrote:
> Enabled the following EST related interrupts:
> 1) Constant Gate Control Error (CGCE)
> 2) Head-of-Line Blocking due to Scheduling (HLBS)
> 3) Head-of-Line Blocking due to Frame Size (HLBF)
> 4) Base Time Register error (BTRE)
> 5) Switch to S/W owned list Complete (SWLC)
> Also, add EST errors into the ethtool statistic.
>
> The commit e49aa315cb01 ("net: stmmac: EST interrupts handling and
> error reporting") and commit 9f298959191b ("net: stmmac: Add EST
> errors into ethtool statistic") add EST interrupts handling and error
> reporting support to DWMAC4 core. This patch enables the same support
> for XGMAC.
So, this is basically a copy of what was done for the DW QoS Eth
IP-core (DW GMAC v4.x/v5.x). IMO it would be better to factor it out
into a separate module together with the rest of the setup methods
like it's done for TC or PTP. But since it implies some much more work
I guess we can leave it as is for now...
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
-Serge(y)
>
> Signed-off-by: Rohan G Thomas <rohan.g.thomas@intel.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 27 ++++++
> .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 89 +++++++++++++++++++
> 2 files changed, 116 insertions(+)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
> index 7a8f47e7b728..75782b8cdfe9 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
> @@ -289,6 +289,33 @@
> #define XGMAC_PTOV_SHIFT 23
> #define XGMAC_SSWL BIT(1)
> #define XGMAC_EEST BIT(0)
> +#define XGMAC_MTL_EST_STATUS 0x00001058
> +#define XGMAC_BTRL GENMASK(15, 8)
> +#define XGMAC_BTRL_SHIFT 8
> +#define XGMAC_BTRL_MAX GENMASK(15, 8)
> +#define XGMAC_CGCE BIT(4)
> +#define XGMAC_HLBS BIT(3)
> +#define XGMAC_HLBF BIT(2)
> +#define XGMAC_BTRE BIT(1)
> +#define XGMAC_SWLC BIT(0)
> +#define XGMAC_MTL_EST_SCH_ERR 0x00001060
> +#define XGMAC_MTL_EST_FRM_SZ_ERR 0x00001064
> +#define XGMAC_MTL_EST_FRM_SZ_CAP 0x00001068
> +#define XGMAC_SZ_CAP_HBFS_MASK GENMASK(14, 0)
> +#define XGMAC_SZ_CAP_HBFQ_SHIFT 16
> +#define XGMAC_SZ_CAP_HBFQ_MASK(val) \
> + ({ \
> + typeof(val) _val = (val); \
> + (_val > 4 ? GENMASK(18, 16) : \
> + _val > 2 ? GENMASK(17, 16) : \
> + BIT(16)); \
> + })
> +#define XGMAC_MTL_EST_INT_EN 0x00001070
> +#define XGMAC_IECGCE BIT(4)
> +#define XGMAC_IEHS BIT(3)
> +#define XGMAC_IEHF BIT(2)
> +#define XGMAC_IEBE BIT(1)
> +#define XGMAC_IECC BIT(0)
> #define XGMAC_MTL_EST_GCL_CONTROL 0x00001080
> #define XGMAC_BTR_LOW 0x0
> #define XGMAC_BTR_HIGH 0x1
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
> index f352be269deb..0af0aefa6656 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c
> @@ -1469,9 +1469,97 @@ static int dwxgmac3_est_configure(void __iomem *ioaddr, struct stmmac_est *cfg,
> ctrl &= ~XGMAC_EEST;
>
> writel(ctrl, ioaddr + XGMAC_MTL_EST_CONTROL);
> +
> + /* Configure EST interrupt */
> + if (cfg->enable)
> + ctrl = XGMAC_IECGCE | XGMAC_IEHS | XGMAC_IEHF | XGMAC_IEBE |
> + XGMAC_IECC;
> + else
> + ctrl = 0;
> +
> + writel(ctrl, ioaddr + XGMAC_MTL_EST_INT_EN);
> return 0;
> }
>
> +static void dwxgmac3_est_irq_status(void __iomem *ioaddr,
> + struct net_device *dev,
> + struct stmmac_extra_stats *x, u32 txqcnt)
> +{
> + u32 status, value, feqn, hbfq, hbfs, btrl;
> + u32 txqcnt_mask = BIT(txqcnt) - 1;
> +
> + status = readl(ioaddr + XGMAC_MTL_EST_STATUS);
> +
> + value = XGMAC_CGCE | XGMAC_HLBS | XGMAC_HLBF | XGMAC_BTRE | XGMAC_SWLC;
> +
> + /* Return if there is no error */
> + if (!(status & value))
> + return;
> +
> + if (status & XGMAC_CGCE) {
> + /* Clear Interrupt */
> + writel(XGMAC_CGCE, ioaddr + XGMAC_MTL_EST_STATUS);
> +
> + x->mtl_est_cgce++;
> + }
> +
> + if (status & XGMAC_HLBS) {
> + value = readl(ioaddr + XGMAC_MTL_EST_SCH_ERR);
> + value &= txqcnt_mask;
> +
> + x->mtl_est_hlbs++;
> +
> + /* Clear Interrupt */
> + writel(value, ioaddr + XGMAC_MTL_EST_SCH_ERR);
> +
> + /* Collecting info to shows all the queues that has HLBS
> + * issue. The only way to clear this is to clear the
> + * statistic.
> + */
> + if (net_ratelimit())
> + netdev_err(dev, "EST: HLB(sched) Queue 0x%x\n", value);
> + }
> +
> + if (status & XGMAC_HLBF) {
> + value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
> + feqn = value & txqcnt_mask;
> +
> + value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_CAP);
> + hbfq = (value & XGMAC_SZ_CAP_HBFQ_MASK(txqcnt)) >>
> + XGMAC_SZ_CAP_HBFQ_SHIFT;
> + hbfs = value & XGMAC_SZ_CAP_HBFS_MASK;
> +
> + x->mtl_est_hlbf++;
> +
> + /* Clear Interrupt */
> + writel(feqn, ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
> +
> + if (net_ratelimit())
> + netdev_err(dev, "EST: HLB(size) Queue %u Size %u\n",
> + hbfq, hbfs);
> + }
> +
> + if (status & XGMAC_BTRE) {
> + if ((status & XGMAC_BTRL) == XGMAC_BTRL_MAX)
> + x->mtl_est_btrlm++;
> + else
> + x->mtl_est_btre++;
> +
> + btrl = (status & XGMAC_BTRL) >> XGMAC_BTRL_SHIFT;
> +
> + if (net_ratelimit())
> + netdev_info(dev, "EST: BTR Error Loop Count %u\n",
> + btrl);
> +
> + writel(XGMAC_BTRE, ioaddr + XGMAC_MTL_EST_STATUS);
> + }
> +
> + if (status & XGMAC_SWLC) {
> + writel(XGMAC_SWLC, ioaddr + XGMAC_MTL_EST_STATUS);
> + netdev_info(dev, "EST: SWOL has been switched\n");
> + }
> +}
> +
> static void dwxgmac3_fpe_configure(void __iomem *ioaddr, u32 num_txq,
> u32 num_rxq, bool enable)
> {
> @@ -1541,6 +1629,7 @@ const struct stmmac_ops dwxgmac210_ops = {
> .config_l4_filter = dwxgmac2_config_l4_filter,
> .set_arp_offload = dwxgmac2_set_arp_offload,
> .est_configure = dwxgmac3_est_configure,
> + .est_irq_status = dwxgmac3_est_irq_status,
> .fpe_configure = dwxgmac3_fpe_configure,
> };
>
> --
> 2.26.2
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-09-26 11:25 ` Serge Semin
@ 2023-10-02 20:55 ` Jakub Kicinski
2023-10-03 11:12 ` Serge Semin
0 siblings, 1 reply; 10+ messages in thread
From: Jakub Kicinski @ 2023-10-02 20:55 UTC (permalink / raw)
To: Serge Semin
Cc: Rohan G Thomas, David S . Miller, Alexandre Torgue, Jose Abreu,
Eric Dumazet, Paolo Abeni, Maxime Coquelin, netdev, linux-stm32,
linux-arm-kernel, devicetree, linux-kernel, Andy Shevchenko
On Tue, 26 Sep 2023 14:25:56 +0300 Serge Semin wrote:
> On Sat, Sep 23, 2023 at 11:10:31AM +0800, Rohan G Thomas wrote:
> > Enabled the following EST related interrupts:
> > 1) Constant Gate Control Error (CGCE)
> > 2) Head-of-Line Blocking due to Scheduling (HLBS)
> > 3) Head-of-Line Blocking due to Frame Size (HLBF)
> > 4) Base Time Register error (BTRE)
> > 5) Switch to S/W owned list Complete (SWLC)
> > Also, add EST errors into the ethtool statistic.
> >
> > The commit e49aa315cb01 ("net: stmmac: EST interrupts handling and
> > error reporting") and commit 9f298959191b ("net: stmmac: Add EST
> > errors into ethtool statistic") add EST interrupts handling and error
> > reporting support to DWMAC4 core. This patch enables the same support
> > for XGMAC.
>
> So, this is basically a copy of what was done for the DW QoS Eth
> IP-core (DW GMAC v4.x/v5.x). IMO it would be better to factor it out
> into a separate module together with the rest of the setup methods
> like it's done for TC or PTP. But since it implies some much more work
> I guess we can leave it as is for now...
I think we can push back a little harder. At the very least we should
get a clear explanation why this copy'n'paste is needed, i.e. what are
the major differences. No?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-02 20:55 ` Jakub Kicinski
@ 2023-10-03 11:12 ` Serge Semin
2023-10-04 16:26 ` Jakub Kicinski
0 siblings, 1 reply; 10+ messages in thread
From: Serge Semin @ 2023-10-03 11:12 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Rohan G Thomas, David S . Miller, Alexandre Torgue, Jose Abreu,
Eric Dumazet, Paolo Abeni, Maxime Coquelin, netdev, linux-stm32,
linux-arm-kernel, devicetree, linux-kernel, Andy Shevchenko
[-- Attachment #1: Type: text/plain, Size: 4789 bytes --]
Hi Jakub
On Mon, Oct 02, 2023 at 01:55:51PM -0700, Jakub Kicinski wrote:
> On Tue, 26 Sep 2023 14:25:56 +0300 Serge Semin wrote:
> > On Sat, Sep 23, 2023 at 11:10:31AM +0800, Rohan G Thomas wrote:
> > > Enabled the following EST related interrupts:
> > > 1) Constant Gate Control Error (CGCE)
> > > 2) Head-of-Line Blocking due to Scheduling (HLBS)
> > > 3) Head-of-Line Blocking due to Frame Size (HLBF)
> > > 4) Base Time Register error (BTRE)
> > > 5) Switch to S/W owned list Complete (SWLC)
> > > Also, add EST errors into the ethtool statistic.
> > >
> > > The commit e49aa315cb01 ("net: stmmac: EST interrupts handling and
> > > error reporting") and commit 9f298959191b ("net: stmmac: Add EST
> > > errors into ethtool statistic") add EST interrupts handling and error
> > > reporting support to DWMAC4 core. This patch enables the same support
> > > for XGMAC.
> >
> > So, this is basically a copy of what was done for the DW QoS Eth
> > IP-core (DW GMAC v4.x/v5.x). IMO it would be better to factor it out
> > into a separate module together with the rest of the setup methods
> > like it's done for TC or PTP. But since it implies some much more work
> > I guess we can leave it as is for now...
>
> I think we can push back a little harder. At the very least we should
> get a clear explanation why this copy'n'paste is needed, i.e. what are
> the major differences. No?
AFAICS there are only two firm differences between the DW QoS Eth v5.x
and DW XGMAC v3.x ESTs implementations I managed to spot from the
currently available code (My DW XGMAC _v2.11a_ HW manual doesn't have
such feature described):
1. MTL_EST_CONTROL.PTOV field offset and width: QoS [31;24], XGMAC [31;23];
2. EST CSRs base addresses: QoS 0x0c50, XGMAC 0x1050.
After the patch in subject is applied the EST config method and EST
IRQ status handlers will look almost identical except the next two
things:
1. XGMAC EST-write implementation performs atomic
MTL_EST_GCL_CONTROL.SRWO flag polling. Initially added by Jose. Not
sure whether the sleepless polling is really needed because the
stmmac_est_configure() is always called within the est->lock mutex
being taken.
2. PTP time offset setup performed by means of the
MTL_EST_CONTROL.PTOV field. DW QoS Eth v5.x HW manual claims it's "The
value of PTP Clock period multiplied by 6 in nanoseconds." So either
Jose got mistaken by using _9_ for DW XGMAC v3.x or the DW XGMAC
indeed is different in that aspect.
The rest of the differences is in the macros and functions names.
Please see the attached diff-file I collected for the EST-related code
in the DW QoS Eth v5.x and DW XGMAC v3.x modules.
Getting back to the refactoring. So basically the EST part can be
factored out in a similar way as it's done for instance for TC/PTP:
1. Define EST_GMAC4_OFFSET and EST_XGMAC_OFFSET macros in the new
header file "stmmac_est.h" (I'd prefer to drop the stmmac_-prefix but
all the sub-modules except "mmc" tends to have it).
2. Add stmmac_regs_off.est field and initialize it with the respective
offsets for the QoS and XGMAC IP-cores in the stmmac_hw static array
(hwif.c).
3. Add stmmac_priv.estaddr field and initialize it with
(ioaddr + stmmac_regs_off.est) in the stmmac_hwif_init() function (hwif.c).
4. Define stmmac_est_ops structure in "hwif.h" with two
callbacks: .est_configure and .est_irq_status. Add the
stmmac_hwif_entry.est field of the const-pointer type to that
structure instance.
5. Redefined the stmmac_est_configure() and stmmac_est_irq_status()
macro-functions to using the callbacks from the stmmac_priv->hw->est
(hwif.h).
6. Drop the stmmac_ops.est_configure and stmmac_ops.est_irq_status.
fields (hwif.h).
7. Move all the EST-related macros to the "stmmac_est.h" file. Make
sure they are defined with EST_-prefix and the CSRs are based from
zero address since they will be utilized as the offsets for the
stmmac_priv.estaddr field.
8. Move all the EST-related functions to the new "stmmac_est.c"
module. Make sure they use the new generic EST CSRs macros and the
stmmac_priv.estaddr field as the base address of the EST CSRs. Take
into account the possible differences in the MTL_EST_CONTROL.PTOV
field initialization for the DW QoS and DW XGMAC IP-cores. Add
stmmac_est.o to stmmac-objs list in the Makefile.
9. Define stmmac_est_ops structure instance (dwmac410_est_ops) in
"stmmac_est.c" and initialize its fields with the est_configure() and
est_irq_status() functions define in 8.
10. Use the stmmac_est_ops structure instance (dwmac410_est_ops) to
initialize the stmmac_hwif_entry.est field to point to that instance
for the DW Eth QoS and DW XGMAC IP-cores.
If I didn't miss some details after that we'll have a common EST
module utilized for both DW QoS Eth and DW XGMAC IP-cores.
-Serge(y)
[-- Attachment #2: dwmac_est.diff --]
[-- Type: text/x-patch, Size: 8638 bytes --]
--- drivers/net/ethernet/stmicro/stmmac/dwmac5_est.c 2023-10-03 13:08:04.149201098 +0300
+++ drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core_est.c 2023-10-03 13:11:30.034936292 +0300
@@ -1,186 +1,187 @@
-#define MTL_EST_CONTROL 0x00000c50
-#define PTOV GENMASK(31, 24)
-#define PTOV_SHIFT 24
-#define SSWL BIT(1)
-#define EEST BIT(0)
-
-#define MTL_EST_STATUS 0x00000c58
-#define BTRL GENMASK(11, 8)
-#define BTRL_SHIFT 8
-#define BTRL_MAX (0xF << BTRL_SHIFT)
-#define SWOL BIT(7)
-#define SWOL_SHIFT 7
-#define CGCE BIT(4)
-#define HLBS BIT(3)
-#define HLBF BIT(2)
-#define BTRE BIT(1)
-#define SWLC BIT(0)
-
-#define MTL_EST_SCH_ERR 0x00000c60
-#define MTL_EST_FRM_SZ_ERR 0x00000c64
-#define MTL_EST_FRM_SZ_CAP 0x00000c68
-#define SZ_CAP_HBFS_MASK GENMASK(14, 0)
-#define SZ_CAP_HBFQ_SHIFT 16
-#define SZ_CAP_HBFQ_MASK(_val) \
+#define XGMAC_MTL_EST_CONTROL 0x00001050
+#define XGMAC_PTOV GENMASK(31, 23)
+#define XGMAC_PTOV_SHIFT 23
+#define XGMAC_SSWL BIT(1)
+#define XGMAC_EEST BIT(0)
+
+#define XGMAC_MTL_EST_STATUS 0x00001058
+#define XGMAC_BTRL GENMASK(15, 8)
+#define XGMAC_BTRL_SHIFT 8
+#define XGMAC_BTRL_MAX GENMASK(15, 8)
+#define XGMAC_CGCE BIT(4)
+#define XGMAC_HLBS BIT(3)
+#define XGMAC_HLBF BIT(2)
+#define XGMAC_BTRE BIT(1)
+#define XGMAC_SWLC BIT(0)
+
+#define XGMAC_MTL_EST_SCH_ERR 0x00001060
+#define XGMAC_MTL_EST_FRM_SZ_ERR 0x00001064
+#define XGMAC_MTL_EST_FRM_SZ_CAP 0x00001068
+#define XGMAC_SZ_CAP_HBFS_MASK GENMASK(14, 0)
+#define XGMAC_SZ_CAP_HBFQ_SHIFT 16
+#define XGMAC_SZ_CAP_HBFQ_MASK(val) \
({ \
- typeof(_val) (val) = (_val); \
- ((val) > 4 ? GENMASK(18, 16) : \
- (val) > 2 ? GENMASK(17, 16) : \
+ typeof(val) _val = (val); \
+ (_val > 4 ? GENMASK(18, 16) : \
+ _val > 2 ? GENMASK(17, 16) : \
BIT(16)); \
})
-#define MTL_EST_INT_EN 0x00000c70
-#define IECGCE CGCE
-#define IEHS HLBS
-#define IEHF HLBF
-#define IEBE BTRE
-#define IECC SWLC
-
-#define MTL_EST_GCL_CONTROL 0x00000c80
-#define BTR_LOW 0x0
-#define BTR_HIGH 0x1
-#define CTR_LOW 0x2
-#define CTR_HIGH 0x3
-#define TER 0x4
-#define LLR 0x5
-#define ADDR_SHIFT 8
-#define GCRR BIT(2)
-#define SRWO BIT(0)
-#define MTL_EST_GCL_DATA 0x00000c84
+#define XGMAC_MTL_EST_INT_EN 0x00001070
+#define XGMAC_IECGCE BIT(4)
+#define XGMAC_IEHS BIT(3)
+#define XGMAC_IEHF BIT(2)
+#define XGMAC_IEBE BIT(1)
+#define XGMAC_IECC BIT(0)
+
+#define XGMAC_MTL_EST_GCL_CONTROL 0x00001080
+#define XGMAC_BTR_LOW 0x0
+#define XGMAC_BTR_HIGH 0x1
+#define XGMAC_CTR_LOW 0x2
+#define XGMAC_CTR_HIGH 0x3
+#define XGMAC_TER 0x4
+#define XGMAC_LLR 0x5
+#define XGMAC_ADDR_SHIFT 8
+#define XGMAC_GCRR BIT(2)
+#define XGMAC_SRWO BIT(0)
+#define XGMAC_MTL_EST_GCL_DATA 0x00001084
-static int dwmac5_est_write(void __iomem *ioaddr, u32 reg, u32 val, bool gcl)
+static int dwxgmac3_est_write(void __iomem *ioaddr, u32 reg, u32 val, bool gcl)
{
u32 ctrl;
- writel(val, ioaddr + MTL_EST_GCL_DATA);
+ writel(val, ioaddr + XGMAC_MTL_EST_GCL_DATA);
- ctrl = (reg << ADDR_SHIFT);
- ctrl |= gcl ? 0 : GCRR;
+ ctrl = (reg << XGMAC_ADDR_SHIFT);
+ ctrl |= gcl ? 0 : XGMAC_GCRR;
- writel(ctrl, ioaddr + MTL_EST_GCL_CONTROL);
+ writel(ctrl, ioaddr + XGMAC_MTL_EST_GCL_CONTROL);
- ctrl |= SRWO;
- writel(ctrl, ioaddr + MTL_EST_GCL_CONTROL);
+ ctrl |= XGMAC_SRWO;
+ writel(ctrl, ioaddr + XGMAC_MTL_EST_GCL_CONTROL);
- return readl_poll_timeout(ioaddr + MTL_EST_GCL_CONTROL,
- ctrl, !(ctrl & SRWO), 100, 5000);
+ return readl_poll_timeout_atomic(ioaddr + XGMAC_MTL_EST_GCL_CONTROL,
+ ctrl, !(ctrl & XGMAC_SRWO), 100, 5000);
}
-int dwmac5_est_configure(void __iomem *ioaddr, struct stmmac_est *cfg,
- unsigned int ptp_rate)
+static int dwxgmac3_est_configure(void __iomem *ioaddr, struct stmmac_est *cfg,
+ unsigned int ptp_rate)
{
int i, ret = 0x0;
u32 ctrl;
- ret |= dwmac5_est_write(ioaddr, BTR_LOW, cfg->btr[0], false);
- ret |= dwmac5_est_write(ioaddr, BTR_HIGH, cfg->btr[1], false);
- ret |= dwmac5_est_write(ioaddr, TER, cfg->ter, false);
- ret |= dwmac5_est_write(ioaddr, LLR, cfg->gcl_size, false);
- ret |= dwmac5_est_write(ioaddr, CTR_LOW, cfg->ctr[0], false);
- ret |= dwmac5_est_write(ioaddr, CTR_HIGH, cfg->ctr[1], false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_BTR_LOW, cfg->btr[0], false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_BTR_HIGH, cfg->btr[1], false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_TER, cfg->ter, false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_LLR, cfg->gcl_size, false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_CTR_LOW, cfg->ctr[0], false);
+ ret |= dwxgmac3_est_write(ioaddr, XGMAC_CTR_HIGH, cfg->ctr[1], false);
if (ret)
return ret;
for (i = 0; i < cfg->gcl_size; i++) {
- ret = dwmac5_est_write(ioaddr, i, cfg->gcl[i], true);
+ ret = dwxgmac3_est_write(ioaddr, i, cfg->gcl[i], true);
if (ret)
return ret;
}
- ctrl = readl(ioaddr + MTL_EST_CONTROL);
- ctrl &= ~PTOV;
- ctrl |= ((1000000000 / ptp_rate) * 6) << PTOV_SHIFT;
+ ctrl = readl(ioaddr + XGMAC_MTL_EST_CONTROL);
+ ctrl &= ~XGMAC_PTOV;
+ ctrl |= ((1000000000 / ptp_rate) * 9) << XGMAC_PTOV_SHIFT;
if (cfg->enable)
- ctrl |= EEST | SSWL;
+ ctrl |= XGMAC_EEST | XGMAC_SSWL;
else
- ctrl &= ~EEST;
+ ctrl &= ~XGMAC_EEST;
- writel(ctrl, ioaddr + MTL_EST_CONTROL);
+ writel(ctrl, ioaddr + XGMAC_MTL_EST_CONTROL);
/* Configure EST interrupt */
if (cfg->enable)
- ctrl = (IECGCE | IEHS | IEHF | IEBE | IECC);
+ ctrl = XGMAC_IECGCE | XGMAC_IEHS | XGMAC_IEHF | XGMAC_IEBE |
+ XGMAC_IECC;
else
ctrl = 0;
- writel(ctrl, ioaddr + MTL_EST_INT_EN);
+ writel(ctrl, ioaddr + XGMAC_MTL_EST_INT_EN);
return 0;
}
-void dwmac5_est_irq_status(void __iomem *ioaddr, struct net_device *dev,
- struct stmmac_extra_stats *x, u32 txqcnt)
+static void dwxgmac3_est_irq_status(void __iomem *ioaddr,
+ struct net_device *dev,
+ struct stmmac_extra_stats *x, u32 txqcnt)
{
u32 status, value, feqn, hbfq, hbfs, btrl;
- u32 txqcnt_mask = (1 << txqcnt) - 1;
+ u32 txqcnt_mask = BIT(txqcnt) - 1;
- status = readl(ioaddr + MTL_EST_STATUS);
+ status = readl(ioaddr + XGMAC_MTL_EST_STATUS);
- value = (CGCE | HLBS | HLBF | BTRE | SWLC);
+ value = XGMAC_CGCE | XGMAC_HLBS | XGMAC_HLBF | XGMAC_BTRE | XGMAC_SWLC;
/* Return if there is no error */
if (!(status & value))
return;
- if (status & CGCE) {
+ if (status & XGMAC_CGCE) {
/* Clear Interrupt */
- writel(CGCE, ioaddr + MTL_EST_STATUS);
+ writel(XGMAC_CGCE, ioaddr + XGMAC_MTL_EST_STATUS);
x->mtl_est_cgce++;
}
- if (status & HLBS) {
- value = readl(ioaddr + MTL_EST_SCH_ERR);
+ if (status & XGMAC_HLBS) {
+ value = readl(ioaddr + XGMAC_MTL_EST_SCH_ERR);
value &= txqcnt_mask;
x->mtl_est_hlbs++;
/* Clear Interrupt */
- writel(value, ioaddr + MTL_EST_SCH_ERR);
+ writel(value, ioaddr + XGMAC_MTL_EST_SCH_ERR);
/* Collecting info to shows all the queues that has HLBS
* issue. The only way to clear this is to clear the
- * statistic
+ * statistic.
*/
if (net_ratelimit())
netdev_err(dev, "EST: HLB(sched) Queue 0x%x\n", value);
}
- if (status & HLBF) {
- value = readl(ioaddr + MTL_EST_FRM_SZ_ERR);
+ if (status & XGMAC_HLBF) {
+ value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
feqn = value & txqcnt_mask;
- value = readl(ioaddr + MTL_EST_FRM_SZ_CAP);
- hbfq = (value & SZ_CAP_HBFQ_MASK(txqcnt)) >> SZ_CAP_HBFQ_SHIFT;
- hbfs = value & SZ_CAP_HBFS_MASK;
+ value = readl(ioaddr + XGMAC_MTL_EST_FRM_SZ_CAP);
+ hbfq = (value & XGMAC_SZ_CAP_HBFQ_MASK(txqcnt)) >>
+ XGMAC_SZ_CAP_HBFQ_SHIFT;
+ hbfs = value & XGMAC_SZ_CAP_HBFS_MASK;
x->mtl_est_hlbf++;
/* Clear Interrupt */
- writel(feqn, ioaddr + MTL_EST_FRM_SZ_ERR);
+ writel(feqn, ioaddr + XGMAC_MTL_EST_FRM_SZ_ERR);
if (net_ratelimit())
netdev_err(dev, "EST: HLB(size) Queue %u Size %u\n",
hbfq, hbfs);
}
- if (status & BTRE) {
- if ((status & BTRL) == BTRL_MAX)
+ if (status & XGMAC_BTRE) {
+ if ((status & XGMAC_BTRL) == XGMAC_BTRL_MAX)
x->mtl_est_btrlm++;
else
x->mtl_est_btre++;
- btrl = (status & BTRL) >> BTRL_SHIFT;
+ btrl = (status & XGMAC_BTRL) >> XGMAC_BTRL_SHIFT;
if (net_ratelimit())
netdev_info(dev, "EST: BTR Error Loop Count %u\n",
btrl);
- writel(BTRE, ioaddr + MTL_EST_STATUS);
+ writel(XGMAC_BTRE, ioaddr + XGMAC_MTL_EST_STATUS);
}
- if (status & SWLC) {
- writel(SWLC, ioaddr + MTL_EST_STATUS);
+ if (status & XGMAC_SWLC) {
+ writel(XGMAC_SWLC, ioaddr + XGMAC_MTL_EST_STATUS);
netdev_info(dev, "EST: SWOL has been switched\n");
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-03 11:12 ` Serge Semin
@ 2023-10-04 16:26 ` Jakub Kicinski
2023-10-05 12:14 ` Rohan G Thomas
0 siblings, 1 reply; 10+ messages in thread
From: Jakub Kicinski @ 2023-10-04 16:26 UTC (permalink / raw)
To: Serge Semin
Cc: Rohan G Thomas, David S . Miller, Alexandre Torgue, Jose Abreu,
Eric Dumazet, Paolo Abeni, Maxime Coquelin, netdev, linux-stm32,
linux-arm-kernel, devicetree, linux-kernel, Andy Shevchenko
On Tue, 3 Oct 2023 14:12:15 +0300 Serge Semin wrote:
> If I didn't miss some details after that we'll have a common EST
> module utilized for both DW QoS Eth and DW XGMAC IP-cores.
So the question now is whether we want Rohan to do this conversion
_first_, in DW QoS 5, and then add xgmac part. Or the patch should
go in as is and you'll follow up with the conversion?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-04 16:26 ` Jakub Kicinski
@ 2023-10-05 12:14 ` Rohan G Thomas
2023-10-05 14:05 ` Jakub Kicinski
0 siblings, 1 reply; 10+ messages in thread
From: Rohan G Thomas @ 2023-10-05 12:14 UTC (permalink / raw)
To: kuba
Cc: alexandre.torgue, andriy.shevchenko, davem, devicetree, edumazet,
fancer.lancer, joabreu, linux-arm-kernel, linux-kernel,
linux-stm32, mcoquelin.stm32, netdev, pabeni, rohan.g.thomas
On Wed, 4 Oct 2023 09:26:13 -0700 Jakub Kicinski wrote:
> On Tue, 3 Oct 2023 14:12:15 +0300 Serge Semin wrote:
> > If I didn't miss some details after that we'll have a common EST
> > module utilized for both DW QoS Eth and DW XGMAC IP-cores.
>
> So the question now is whether we want Rohan to do this conversion _first_,
> in DW QoS 5, and then add xgmac part. Or the patch should go in as is and
> you'll follow up with the conversion?
Hi Jakub, Serge,
If agreed, this commit can go in. I can submit another patch with the
refactoring suggested by Serge.
Again, thanks Serge for the prompt response. Regarding the below point in your
earlier response,
> > 2. PTP time offset setup performed by means of the
> > MTL_EST_CONTROL.PTOV field. DW QoS Eth v5.x HW manual claims it's "The
> > value of PTP Clock period multiplied by 6 in nanoseconds." So either Jose got
> > mistaken by using _9_ for DW XGMAC v3.x or the DW XGMAC indeed is
> > different in that aspect.
This is a little confusing...
I referred databooks for DW QoS Eth v5.30a and DW XGMAC v3.10a. In both this is
mentioned as "The value of PTP Clock period multiplied by 9 in nanoseconds".
Best Regards,
Rohan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-05 12:14 ` Rohan G Thomas
@ 2023-10-05 14:05 ` Jakub Kicinski
2023-10-06 7:23 ` Rohan G Thomas
0 siblings, 1 reply; 10+ messages in thread
From: Jakub Kicinski @ 2023-10-05 14:05 UTC (permalink / raw)
To: Rohan G Thomas
Cc: alexandre.torgue, andriy.shevchenko, davem, devicetree, edumazet,
fancer.lancer, joabreu, linux-arm-kernel, linux-kernel,
linux-stm32, mcoquelin.stm32, netdev, pabeni
On Thu, 5 Oct 2023 20:14:41 +0800 Rohan G Thomas wrote:
> > So the question now is whether we want Rohan to do this conversion _first_,
> > in DW QoS 5, and then add xgmac part. Or the patch should go in as is and
> > you'll follow up with the conversion?
>
> If agreed, this commit can go in. I can submit another patch with the
> refactoring suggested by Serge.
Did you miss the emphasis I put on the word "first" in my reply?
Cleanup first, nobody will be keeping track whether your fulfilled
your promises or not :|
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-05 14:05 ` Jakub Kicinski
@ 2023-10-06 7:23 ` Rohan G Thomas
2023-10-06 10:08 ` Serge Semin
0 siblings, 1 reply; 10+ messages in thread
From: Rohan G Thomas @ 2023-10-06 7:23 UTC (permalink / raw)
To: kuba
Cc: alexandre.torgue, andriy.shevchenko, davem, devicetree, edumazet,
fancer.lancer, joabreu, linux-arm-kernel, linux-kernel,
linux-stm32, mcoquelin.stm32, netdev, pabeni, rohan.g.thomas
On Thu, 5 Oct 2023 07:05:38 -0700 Jakub Kicinski wrote:
> On Thu, 5 Oct 2023 20:14:41 +0800 Rohan G Thomas wrote:
> > > So the question now is whether we want Rohan to do this conversion
> > > _first_, in DW QoS 5, and then add xgmac part. Or the patch should
> > > go in as is and you'll follow up with the conversion?
> >
> > If agreed, this commit can go in. I can submit another patch with the
> > refactoring suggested by Serge.
>
> Did you miss the emphasis I put on the word "first" in my reply?
> Cleanup first, nobody will be keeping track whether your fulfilled your
> promises or not :|
Hi Jakub,
Agreed. I'll do the cleanup first.
Best Regards,
Rohan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-06 7:23 ` Rohan G Thomas
@ 2023-10-06 10:08 ` Serge Semin
2023-10-06 13:35 ` Jakub Kicinski
0 siblings, 1 reply; 10+ messages in thread
From: Serge Semin @ 2023-10-06 10:08 UTC (permalink / raw)
To: Rohan G Thomas, Jakub Kicinski
Cc: alexandre.torgue, andriy.shevchenko, davem, devicetree, edumazet,
joabreu, linux-arm-kernel, linux-kernel, linux-stm32,
mcoquelin.stm32, netdev, pabeni
Hi Rohan, Jakub
On Fri, Oct 06, 2023 at 03:23:19PM +0800, Rohan G Thomas wrote:
> On Thu, 5 Oct 2023 07:05:38 -0700 Jakub Kicinski wrote:
> > On Thu, 5 Oct 2023 20:14:41 +0800 Rohan G Thomas wrote:
> > > > So the question now is whether we want Rohan to do this conversion
> > > > _first_, in DW QoS 5, and then add xgmac part. Or the patch should
> > > > go in as is and you'll follow up with the conversion?
Jakub, this was my intention if Rohan wouldn't have agreed to perform
the cleanup. Though I couldn't promise to do that in an instant.
I would have needed a month or two to find a free time-spot for that.
> > >
> > > If agreed, this commit can go in. I can submit another patch with the
> > > refactoring suggested by Serge.
> >
> > Did you miss the emphasis I put on the word "first" in my reply?
> > Cleanup first, nobody will be keeping track whether your fulfilled your
> > promises or not :|
>
> Hi Jakub,
>
> Agreed. I'll do the cleanup first.
Rohan, thanks in advance. Although I don't see why it's required to be
done in the prescribed order only as long as the update comes in a
_single_ patchset. Adding EST IRS-status support to XGMAC core module
first, then factoring out both XGMAC and QoS (note both 4.x and 5.x
seems to support that) EST code would be also acceptable. Seeing you
have already done the first part, it would have taken less work in
general.
Jakub, what do you say if Rohan will just re-submit v2 with the
addition cleanup patch and let him to decided whether the cleanup
should be done first or after his XGMAC-EST IRQ update?
> > > Again, thanks Serge for the prompt response. Regarding the below point in your
> > > earlier response,
> > > > > 2. PTP time offset setup performed by means of the
> > > > > MTL_EST_CONTROL.PTOV field. DW QoS Eth v5.x HW manual claims it's "The
> > > > > value of PTP Clock period multiplied by 6 in nanoseconds." So either Jose got
> > > > > mistaken by using _9_ for DW XGMAC v3.x or the DW XGMAC indeed is
> > > > > different in that aspect.
> > >
> > > This is a little confusing...
> > > I referred databooks for DW QoS Eth v5.30a and DW XGMAC v3.10a. In both this is
> > > mentioned as "The value of PTP Clock period multiplied by 9 in nanoseconds".
Interesting thing. My DW QoS Eth _v5.10a_ HW manual explicitly states
that it's multiplied by _6_ in nanoseconds (just rechecked). So either
there is a difference between the minor DW QoS Eth IP-core releases or
the older HW-manuals have had a typo in the MTL_EST_CONTROL.PTOV field
description. Synopsys normally describes such changes (whether it was
a mistake or a functional change) in the IP-core release notes. The
release notes document is supplied as a separate pdf file. Alas I
don't have one.( Even if I had it it would have been useless since the
change was introduced in the newer QoS IP-cores. Rohan, do you happen
to have the release notes for DW QoS Eth IP-core v5.30 at hands?
Something like DWC_ether_qos_rc_relnotes.pdf?
Also please double check that your DW QoS Eth v5.30a for sure states
that MTL_EST_CONTROL.PTOV contains value multiplied by _6_. So we
wouldn't be wasting time trying to workaround a more complex problem
than we already have.
-Serge(y)
>
> Best Regards,
> Rohan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling
2023-10-06 10:08 ` Serge Semin
@ 2023-10-06 13:35 ` Jakub Kicinski
0 siblings, 0 replies; 10+ messages in thread
From: Jakub Kicinski @ 2023-10-06 13:35 UTC (permalink / raw)
To: Serge Semin
Cc: Rohan G Thomas, alexandre.torgue, andriy.shevchenko, davem,
devicetree, edumazet, joabreu, linux-arm-kernel, linux-kernel,
linux-stm32, mcoquelin.stm32, netdev, pabeni
On Fri, 6 Oct 2023 13:08:33 +0300 Serge Semin wrote:
> Jakub, what do you say if Rohan will just re-submit v2 with the
> addition cleanup patch and let him to decided whether the cleanup
> should be done first or after his XGMAC-EST IRQ update?
Sure thing, whatever is more readable for the reviewer.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-10-06 13:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-23 3:10 [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling Rohan G Thomas
2023-09-26 11:25 ` Serge Semin
2023-10-02 20:55 ` Jakub Kicinski
2023-10-03 11:12 ` Serge Semin
2023-10-04 16:26 ` Jakub Kicinski
2023-10-05 12:14 ` Rohan G Thomas
2023-10-05 14:05 ` Jakub Kicinski
2023-10-06 7:23 ` Rohan G Thomas
2023-10-06 10:08 ` Serge Semin
2023-10-06 13:35 ` Jakub Kicinski
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).