Re: [PATCH] arm64: dts: stratix10: add the sysmgr-syscon property from the gmac's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Mar 13, 2019 at 09:29:56PM -0500, Dinh Nguyen wrote:
> The gmac ethernet driver uses the "altr,sysmgr-syscon" property to
> configure phy settings for the gmac controller.
> 
> Add the "altr,sysmgr-syscon" property to all gmac nodes.
> 
> This patch fixes:
> 
> [    0.917530] socfpga-dwmac ff800000.ethernet: No sysmgr-syscon node found
> [    0.924209] socfpga-dwmac ff800000.ethernet: Unable to parse OF data
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Ley Foon Tan <ley.foon.tan@xxxxxxxxx>
> Signed-off-by: Dinh Nguyen <dinguyen@xxxxxxxxxx>

This patch broke the boot on my board when upgrading from v5.1-rc3
to -rc4 (using a simple custom DTS including socfpga_stratix10.dtsi,
basically enabling just ethernet and serial console). Previously, when
the socfpga-dwmac probe failed with above messages, the generic dwmac
driver was used instead to get working networking.

Now that the socfpga-dwmac probe succeeds, there's a sudden reset/crash
due to exception. Apparently the reason is that the access to these
registers is restricted from the kernel and the mainline socfpga-dwmac
driver is missing the support for the SMC call access? Am I missing
something, or was it too early to apply this patch to mainline?

A.

> ---
>  arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
> index 7c649f6b14cb..cd7c76e58b09 100644
> --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
> +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
> @@ -162,6 +162,7 @@
>  			rx-fifo-depth = <16384>;
>  			snps,multicast-filter-bins = <256>;
>  			iommus = <&smmu 1>;
> +			altr,sysmgr-syscon = <&sysmgr 0x44 0>;
>  			status = "disabled";
>  		};
>  
> @@ -179,6 +180,7 @@
>  			rx-fifo-depth = <16384>;
>  			snps,multicast-filter-bins = <256>;
>  			iommus = <&smmu 2>;
> +			altr,sysmgr-syscon = <&sysmgr 0x48 0>;
>  			status = "disabled";
>  		};
>  
> @@ -196,6 +198,7 @@
>  			rx-fifo-depth = <16384>;
>  			snps,multicast-filter-bins = <256>;
>  			iommus = <&smmu 3>;
> +			altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
>  			status = "disabled";
>  		};
>  
> -- 
> 2.20.0
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux