Bug 1191190

Summary: Honeycomb LX2K: restool not working with Kernel 5.14.6-default
Product: [openSUSE] openSUSE Tumbleweed Reporter: Lukas Mayer <lmayer>
Component: KernelAssignee: Yousaf Kaukab <yousaf.kaukab>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: afaerber, ddavis, dmueller, guillaume.gardet, mbrugger, yousaf.kaukab
Version: Current   
Target Milestone: ---   
Hardware: aarch64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lukas Mayer 2021-09-30 14:13:18 UTC
This regards the SolidRun Honeycomb LX2K [https://en.opensuse.org/HCL:HoneyComb_LX2K] running OpenSUSE Tumbleweed with Kernel 5.14.6-1-default.

When trying to bring up dpmac network interfaces with the userspace tool 'restool', this error occurs:

> # ls-addni dpmac.9
> error: Did not find a device file
> Restool wrapper scripts only support the latest major MC version
> that currently is MC10.x. Use with caution.
> error: Did not find a device file

Jon Nettleton of SolidRun has pointed out to me, that restool requires the kernel to be compiled with 'CONFIG_FSL_MC_UAPI_SUPPORT=y' [https://community.solid-run.com/t/restool-with-kernel-5-14-did-not-find-a-device-file/175/2]

You will find more detailed version information and full dmesg output in my post in the SolidRun forum [https://community.solid-run.com/t/restool-with-kernel-5-14-did-not-find-a-device-file/175]. Most significant are these messages: 

> [   14.732750] fsl_mc_dpio dpio.14: probed
> [   14.737781] fsl_mc_dpio dpio.13: Adding to iommu group 0
> [   14.745525] fsl_mc_dpio dpio.13: unknown SoC version
> [   14.775314] fsl_mc_dpio dpio.13: probed
> [...]
> [   15.138743] fsl_mc_dpio dpio.1: Adding to iommu group 0
> [   15.146263] fsl_mc_dpio dpio.1: unknown SoC version
> [   15.170320] fsl_mc_dpio dpio.1: probed
> [   15.173450] fsl_mc_dpio dpio.0: Adding to iommu group 0
> [   15.181233] fsl_mc_dpio dpio.0: unknown SoC version
> [   15.187358] fsl_mc_dpio dpio.0: probed

You can currently find a restool package here: https://build.opensuse.org/package/show/home:wind.gmbh/restool (I have submitted it to Network:Utilities as well: [https://build.opensuse.org/request/show/922384])
Comment 2 Lukas Mayer 2021-10-22 22:03:28 UTC
I have compiled the Kernel with the mentioned 'CONFIG_FSL_MC_UAPI_SUPPORT=y' build flag. [*]

Apparently that was all that was needed in order to use the DPAA2 network interfaces with 'restool'. 

If you have any questions or want me to test something in particular, just let me know.  




---
[*] [https://software.opensuse.org//download.html?project=home%3Awind.gmbh%3Abranches%3AKernel%3Astable&package=kernel-default] I did not really know what would have been the right place to change the config; so I have done it in 'config.tar.bz2', which is probably not the proper way.
Comment 3 Guillaume GARDET 2021-10-25 07:00:20 UTC
For network:utilities/restool please disable the service by default as this is required to submit it to Tumbleweed.

For the kernel, CONFIG_FSL_MC_UAPI_SUPPORT is still not set. @Yousaf, could you enable it for Tumbleweed (master, stable) and for Leap 15.4 / SLE15-SP4 as well, please?
Comment 4 Yousaf Kaukab 2021-10-25 08:38:05 UTC
(In reply to Guillaume GARDET from comment #3)
> For network:utilities/restool please disable the service by default as this
> is required to submit it to Tumbleweed.
> 
> For the kernel, CONFIG_FSL_MC_UAPI_SUPPORT is still not set. @Yousaf, could
> you enable it for Tumbleweed (master, stable) and for Leap 15.4 / SLE15-SP4
> as well, please?

Sure, restool is on my todo list.
Comment 5 Yousaf Kaukab 2021-10-28 15:09:39 UTC
(In reply to Guillaume GARDET from comment #3)
> For network:utilities/restool please disable the service by default as this
> is required to submit it to Tumbleweed.
> 
> For the kernel, CONFIG_FSL_MC_UAPI_SUPPORT is still not set. @Yousaf, could
> you enable it for Tumbleweed (master, stable) and for Leap 15.4 / SLE15-SP4
> as well, please?

Pull request sent for master and stable.

https://build.opensuse.org/request/show/927983 sent before factory merge.
Comment 7 Guillaume GARDET 2021-11-12 13:53:59 UTC
restool merged in Factory:
https://build.opensuse.org/request/show/930179
So, it will be available in next snapshot (20211111+)