public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA
@ 2020-09-29 18:52 Ralph Siemsen
  2020-10-19 17:42 ` Ralph Siemsen
  0 siblings, 1 reply; 3+ messages in thread
From: Ralph Siemsen @ 2020-09-29 18:52 UTC (permalink / raw)
  To: u-boot

An earlier conversion from struct to defines introduced two errors, both
related to setup of EMAC routed via the FPGA. One of the offsets was
incorrect, and the EMAC0/EMAC1 were swapped.

The effect of this was rather odd: both ports could operate at gigabit,
but one of them would fail to transmit when operating at 100Mbit.

Fixes: db5741f7a85ec3ee79b64496172afaa7dc2cb225 ("arm: socfpga: Convert system manager from struct to defines")

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>

---
I reviewed the other #defines for gen5 and they seem correct.
I have NOT checked the defines for Arria 10 or Stratix 10!

 arch/arm/mach-socfpga/include/mach/system_manager_gen5.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-socfpga/include/mach/system_manager_gen5.h b/arch/arm/mach-socfpga/include/mach/system_manager_gen5.h
index 90cb465d13..a63a4ee27d 100644
--- a/arch/arm/mach-socfpga/include/mach/system_manager_gen5.h
+++ b/arch/arm/mach-socfpga/include/mach/system_manager_gen5.h
@@ -26,9 +26,9 @@ void sysmgr_get_pinmux_table(const u8 **table, unsigned int *table_len);
 #define SYSMGR_GEN5_ECCGRP_OCRAM		0x144
 #define SYSMGR_GEN5_EMACIO			0x400
 #define SYSMGR_GEN5_NAND_USEFPGA		0x6f0
-#define SYSMGR_GEN5_RGMII0_USEFPGA		0x6f8
+#define SYSMGR_GEN5_RGMII1_USEFPGA		0x6f8
 #define SYSMGR_GEN5_SDMMC_USEFPGA		0x708
-#define SYSMGR_GEN5_RGMII1_USEFPGA		0x704
+#define SYSMGR_GEN5_RGMII0_USEFPGA		0x714
 #define SYSMGR_GEN5_SPIM1_USEFPGA		0x730
 #define SYSMGR_GEN5_SPIM0_USEFPGA		0x738
 
-- 
2.17.1

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

* [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA
  2020-09-29 18:52 [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA Ralph Siemsen
@ 2020-10-19 17:42 ` Ralph Siemsen
  2020-10-20  2:01   ` Tan, Ley Foon
  0 siblings, 1 reply; 3+ messages in thread
From: Ralph Siemsen @ 2020-10-19 17:42 UTC (permalink / raw)
  To: u-boot

On Tue, Sep 29, 2020 at 02:52:05PM -0400, Ralph Siemsen wrote:
>Fixes: db5741f7a85ec3ee79b64496172afaa7dc2cb225 ("arm: socfpga: Convert 
>system manager from struct to defines")

Just curious if you have had a chance to look over this patch?
http://patchwork.ozlabs.org/project/uboot/patch/20200929145152.v1.1.I7900a579743ce0fc5fe382213612b5af29e3706f at changeid/

It fixes a problem introduced here: 
https://gitlab.denx.de/u-boot/u-boot/-/commit/db5741f7a85ec3ee79b64496172afaa7dc2cb225?view=parallel#fd949530559c32d01169ed7f0667e63ab210fe14_16_16
after which one of the GMAC on Gen 5 devices no longer operates at 100mbit.

Thanks,
Ralph

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

* [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA
  2020-10-19 17:42 ` Ralph Siemsen
@ 2020-10-20  2:01   ` Tan, Ley Foon
  0 siblings, 0 replies; 3+ messages in thread
From: Tan, Ley Foon @ 2020-10-20  2:01 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Ralph Siemsen <ralph.siemsen@linaro.org>
> Sent: Tuesday, October 20, 2020 1:43 AM
> To: Tan, Ley Foon <ley.foon.tan@intel.com>
> Cc: Dinh Nguyen <dinguyen@kernel.org>; Marek Vasut <marex@denx.de>;
> Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>; u-
> boot at lists.denx.de; Tom Rini <trini@konsulko.com>
> Subject: Re: [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA
> 
> On Tue, Sep 29, 2020 at 02:52:05PM -0400, Ralph Siemsen wrote:
> >Fixes: db5741f7a85ec3ee79b64496172afaa7dc2cb225 ("arm: socfpga:
> Convert
> >system manager from struct to defines")
> 
> Just curious if you have had a chance to look over this patch?
> http://patchwork.ozlabs.org/project/uboot/patch/20200929145152.v1.1.I79
> 00a579743ce0fc5fe382213612b5af29e3706f at changeid/
> 
> It fixes a problem introduced here:
> https://gitlab.denx.de/u-boot/u-boot/-
> /commit/db5741f7a85ec3ee79b64496172afaa7dc2cb225?view=parallel#fd9
> 49530559c32d01169ed7f0667e63ab210fe14_16_16
> after which one of the GMAC on Gen 5 devices no longer operates at
> 100mbit.
> 
> Thanks,
> Ralph
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>

Thanks for the patch, will merge this to next -rc.

Regards
Ley Foon

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

end of thread, other threads:[~2020-10-20  2:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-29 18:52 [PATCH v1] arm: socfpga: fix Gen5 enable of EMAC via FPGA Ralph Siemsen
2020-10-19 17:42 ` Ralph Siemsen
2020-10-20  2:01   ` Tan, Ley Foon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox