* [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool
@ 2017-06-27 22:16 thor.thayer
2017-06-28 9:01 ` Giuseppe CAVALLARO
2017-06-29 16:50 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: thor.thayer @ 2017-06-27 22:16 UTC (permalink / raw)
To: peppe.cavallaro, alexandre.torgue; +Cc: netdev, Thor Thayer
From: Thor Thayer <thor.thayer@linux.intel.com>
Version 3.70a of the Designware has additional DMA registers so
add those to the ethtool DMA Register dump.
Offset 9 - Receive Interrupt Watchdog Timer Register
Offset 10 - AXI Bus Mode Register
Offset 11 - AHB or AXI Status Register
Offset 22 - HW Feature Register
Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 4 ++--
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
index 471a9aa..22cf635 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
@@ -205,8 +205,8 @@ static void dwmac1000_dump_dma_regs(void __iomem *ioaddr, u32 *reg_space)
{
int i;
- for (i = 0; i < 22; i++)
- if ((i < 9) || (i > 17))
+ for (i = 0; i < 23; i++)
+ if ((i < 12) || (i > 17))
reg_space[DMA_BUS_MODE / 4 + i] =
readl(ioaddr + DMA_BUS_MODE + i * 4);
}
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index 743170d..babb39c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -29,7 +29,7 @@
#include "stmmac.h"
#include "dwmac_dma.h"
-#define REG_SPACE_SIZE 0x1054
+#define REG_SPACE_SIZE 0x1060
#define MAC100_ETHTOOL_NAME "st_mac100"
#define GMAC_ETHTOOL_NAME "st_gmac"
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool
2017-06-27 22:16 [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool thor.thayer
@ 2017-06-28 9:01 ` Giuseppe CAVALLARO
2017-06-29 16:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Giuseppe CAVALLARO @ 2017-06-28 9:01 UTC (permalink / raw)
To: thor.thayer, alexandre.torgue; +Cc: netdev
On 6/28/2017 12:16 AM, thor.thayer@linux.intel.com wrote:
> From: Thor Thayer <thor.thayer@linux.intel.com>
>
> Version 3.70a of the Designware has additional DMA registers so
> add those to the ethtool DMA Register dump.
> Offset 9 - Receive Interrupt Watchdog Timer Register
> Offset 10 - AXI Bus Mode Register
> Offset 11 - AHB or AXI Status Register
> Offset 22 - HW Feature Register
>
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c | 4 ++--
> drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
> index 471a9aa..22cf635 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
> @@ -205,8 +205,8 @@ static void dwmac1000_dump_dma_regs(void __iomem *ioaddr, u32 *reg_space)
> {
> int i;
>
> - for (i = 0; i < 22; i++)
> - if ((i < 9) || (i > 17))
> + for (i = 0; i < 23; i++)
> + if ((i < 12) || (i > 17))
> reg_space[DMA_BUS_MODE / 4 + i] =
> readl(ioaddr + DMA_BUS_MODE + i * 4);
> }
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> index 743170d..babb39c 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> @@ -29,7 +29,7 @@
> #include "stmmac.h"
> #include "dwmac_dma.h"
>
> -#define REG_SPACE_SIZE 0x1054
> +#define REG_SPACE_SIZE 0x1060
> #define MAC100_ETHTOOL_NAME "st_mac100"
> #define GMAC_ETHTOOL_NAME "st_gmac"
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool
2017-06-27 22:16 [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool thor.thayer
2017-06-28 9:01 ` Giuseppe CAVALLARO
@ 2017-06-29 16:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-06-29 16:50 UTC (permalink / raw)
To: thor.thayer; +Cc: peppe.cavallaro, alexandre.torgue, netdev
From: thor.thayer@linux.intel.com
Date: Tue, 27 Jun 2017 17:16:27 -0500
> From: Thor Thayer <thor.thayer@linux.intel.com>
>
> Version 3.70a of the Designware has additional DMA registers so
> add those to the ethtool DMA Register dump.
> Offset 9 - Receive Interrupt Watchdog Timer Register
> Offset 10 - AXI Bus Mode Register
> Offset 11 - AHB or AXI Status Register
> Offset 22 - HW Feature Register
>
> Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-29 16:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-27 22:16 [PATCH] net: stmmac: Add additional registers for dwmac1000_dma ethtool thor.thayer
2017-06-28 9:01 ` Giuseppe CAVALLARO
2017-06-29 16:50 ` David Miller
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).