Hi,I want the PFE Slave to run on the A53 cores in my custom board.
but the driver init process is not successful.
M7 using HIF0 as master,A53 using HIF3.
the kernel log as below.
[ 10.511555] pfeng-slave 46000000.pfe_slave: PFEng ethernet driver loading ...
[ 10.511561] pfeng-slave 46000000.pfe_slave: Version: 1.8.0
[ 10.511567] pfeng-slave 46000000.pfe_slave: Driver commit hash: M4_DRIVER_COMMIT_HASH
[ 10.511573] pfeng-slave 46000000.pfe_slave: Multi instance support: SLAVE/mdetect=on
[ 10.511579] pfeng-slave 46000000.pfe_slave: Compiled by: 10.2.1 20201103
[ 10.511849] pfeng-slave 46000000.pfe_slave: Wait for PFE controller UP ...
[ 10.511875] pfeng-slave 46000000.pfe_slave: PFE controller UP detected
[ 10.511881] pfeng-slave 46000000.pfe_slave: Cbus addr 0x46000000 size 0x1000000
[ 10.511892] pfeng-slave 46000000.pfe_slave: IHC channel: 3
[ 10.511899] pfeng-slave 46000000.pfe_slave: MASTER IHC channel: 0
[ 10.511913] pfeng-slave 46000000.pfe_slave: netif name: pfe0sl
[ 10.511921] pfeng-slave 46000000.pfe_slave: DT mac addr: 00:04:9f:be:ff:00
[ 10.511932] pfeng-slave 46000000.pfe_slave: netif(pfe0sl) linked phyif: 0
[ 10.511938] pfeng-slave 46000000.pfe_slave: netif(pfe0sl) mode: std
[ 10.512765] pfeng-slave 46000000.pfe_slave: netif(pfe0sl) HIFs: count 1 map 08
[ 10.512788] pfeng-slave 46000000.pfe_slave: HIF channels mask: 0x0008
[ 10.512915] pfeng-slave 46000000.pfe_slave: assigned reserved memory node pfebufs@83600000
[ 10.512944] pfeng-slave 46000000.pfe_slave: PFE CBUS p0x00000000396a8862 mapped @ v0xffffffc00c000000
[ 10.512962] pfeng-slave 46000000.pfe_slave: Wait for Master UP ...
[ 10.512968] pfeng-slave 46000000.pfe_slave: Detected Master UP
[ 10.512986] pfeng-slave 46000000.pfe_slave: HIF3 is in clean state
[ 10.513181] pfeng-slave 46000000.pfe_slave: HIF0 not configured, skipped
[ 10.513188] pfeng-slave 46000000.pfe_slave: HIF1 not configured, skipped
[ 10.513193] pfeng-slave 46000000.pfe_slave: HIF2 not configured, skipped
[ 10.513517] pfeng-slave 46000000.pfe_slave: HIF3 enabled
[ 10.513529] pfeng-slave 46000000.pfe_slave: HIF3 started
[ 10.513536] pfeng-slave 46000000.pfe_slave: IDEX-slave @ master-interface 6
[ 10.513547] pfeng-slave 46000000.pfe_slave: IHC client registered
[ 11.528401] pfeng-slave 46000000.pfe_slave: IDEX request 0 timed-out, retransmitted 10 times
[ 11.528413] pfeng-slave 46000000.pfe_slave: RPC transport failed: 110
[ 11.528420] pfeng-slave 46000000.pfe_slave: IDEX: RESET Request was not successful [110]
[ 11.528427] pfeng-slave 46000000.pfe_slave: IDEX: v1 (legacy) protocol used
[ 11.528433] pfeng-slave 46000000.pfe_slave: IDEX RPC installed on HIF3
[ 11.528477] pfeng-slave 46000000.pfe_slave pfe0sl (uninitialized): Subscribe to HIF3
[ 11.528490] pfeng-slave 46000000.pfe_slave: MDIO bus 0 disabled: Not found in DT
[ 11.528497] pfeng-slave 46000000.pfe_slave: MDIO bus 1 disabled: Not found in DT
[ 11.528502] pfeng-slave 46000000.pfe_slave: MDIO bus 2 disabled: Not found in DT
[ 11.528502] pfeng-slave 46000000.pfe_slave pfe0sl (uninitialized): Host LLTX disabled
[ 12.528776] pfeng-slave 46000000.pfe_slave: IDEX request 1 timed-out, retransmitted 10 times
[ 12.528786] pfeng-slave 46000000.pfe_slave: RPC transport failed: 110
[ 12.528793] pfeng-slave 46000000.pfe_slave: IDEX: RESET Request was not successful [110]
[ 12.528804] pfeng-slave 46000000.pfe_slave: ERR: (DRIVER) event 1 - Driver runtime error: [pfe_phy_if_slave.c:66] Unable to lock interface DB: 110
[ 13.529070] pfeng-slave 46000000.pfe_slave: IDEX request 2 timed-out, retransmitted 10 times
[ 13.529086] pfeng-slave 46000000.pfe_slave: RPC transport failed: 110
[ 13.529093] pfeng-slave 46000000.pfe_slave: IDEX: RESET Request was not successful [110]
[ 13.529104] pfeng-slave 46000000.pfe_slave: ERR: (DRIVER) event 1 - Driver runtime error: [pfe_phy_if_slave.c:568] PFE_PLATFORM_RPC_PFE_PHY_IF_ENABLE failed: 110
[ 14.529351] pfeng-slave 46000000.pfe_slave: IDEX request 3 timed-out, retransmitted 10 times
[ 14.529364] pfeng-slave 46000000.pfe_slave: RPC transport failed: 110
[ 14.529370] pfeng-slave 46000000.pfe_slave: IDEX: RESET Request was not successful [110]
[ 14.529380] pfeng-slave 46000000.pfe_slave: ERR: (DRIVER) event 1 - Driver runtime error: [pfe_phy_if_slave.c:79] Unable to unlock interface DB: 110
[ 14.529396] pfeng-slave 46000000.pfe_slave pfe0sl (uninitialized): ERR: (DRIVER) event 1 - Driver runtime error: [pfeng-netif.c:1130] Can't enable HIF3
Hello @TimSamus,
This is quite an old post and therefore the tool we use to track the status does not follow it anymore. If you like you can create a new post with all the details of your issue and me or someone in my team will help you.
Thanks
Hello, I also encountered a similar problem: 'desc_ens is always "1" in arRxBdWbRing'. Could you share how you resolved it?
Hello @tommychen1986,
I did some more research for PFE in a master-slave configuration with M7 and A53 I was able to find the following documentation:
S32G_PFE_Master_Slave_Simple_Demo_V2_2023_5_23_Eng.pdf
and the PFE_S32G_A53_LNX_UserManual.pdf, that you should be able to find in the download page for the BSP43:
in those I have found the following:
In page 8 of the simple demo, in section 3.4 the needed configuration for M7 is described, please check the whole section in the link, since it is described in several pages.
in page 12 of the LNX User Manual, you can see the the options needed to compile the pfeng:
this is an example of a build command for slave config:
make KERNEL_src=/home/bsp-43/build_s32g399ardb3/tmp/work-shared/s32g399ardb3/kernel-source KERNELDIR=/home//bsp-43/build_s32g399ardb3/tmp/work-shared/s32g399ardb3/kernel-source MDIR=/home/bsp-43/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/pfe-slave/1.0.0-r0/git/sw/linux-pfeng -C /home/bsp-43/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/pfe-slave/1.0.0-r0/git/sw/linux-pfeng V=1 drv-build PFE_CFG_MULTI_INSTANCE_SUPPORT=1 PFE_CFG_PFE_MASTER=0
This may depend if you are using manual build or Yocto build, if you are using the last, please check the BSP43 user manual:
Please consider that the simple demo uses quite an old BSP version and some option may have been deprecated or changed. However, for what I see in the logs, my conclusion for now is that it is a problem with the M7 configuration.
Please also check the MasterProject_RDB2, which comes with the MCAL PFE driver, comparing it with the options I'm able to see from your screenshots, I have found some differences. It would be also valuable to try to first run the example in the M7 with your Linux configuration to check if a the configuration present on it solves the initialization issue.
Let me know if this configuration was useful.
Hi,alejandro_e,
I have used the HIF3,but still got the same error message.
Hello @tommychen1986,
Were you able to test with "nxp,pfeng-ihc-channel =
Thanks!
Hello @tommychen1986,
Please help me with this two tests:
1 - execute this command and share the output:
root@s32g399ardb3:~# find /lib/modules/$(uname -r) -name '*.ko' | grep "pfe"
/lib/modules/6.6.52-rt43-g1a29a32be610/kernel/drivers/net/ethernet/nxp/pfe/pfeng-slave.ko
/lib/modules/6.6.52-rt43-g1a29a32be610/kernel/drivers/net/ethernet/nxp/pfe/pfeng.ko
root@s32g399ardb3:~#
2- use HIF3 for the common interface instead of HIF0:
Let me know if the behavior changes.
Thanks
Hi,alejandro_e,
My configuration as below.
M7
A53
Hello @tommychen1986,
Thanks a lot for the information. can you share screenshots of your the configuration you are applying to PFE in the M7 core? I am assuming you will be using the M7 as the master device for the PFE, in this configuration the A53 will wait for the initialization of the PFE by M7.
Also, can you share the configuration you have done to the BSP side? this is, to configure A53 as slave.
Thanks a lot.
Hi alejandro_e,
sorry to reply lately.
my anwser as below:
--------------S32G274A
-------------- a custom board
--------------BSP43
--------------kernel verson is 5.15.167
--------------ATF in Qspi Flash, kernel and rootfs in emmc
--------------4.0.1(commented "Mcu_GetSharedIpSetting" "Mcu_SetSharedIpSetting" "Mcu_TriggerHardwareUpdate" function calling in the hal.h of M7 PFE driver )
-------------- autosar OS
--------------1.10.0
--------------1.5.0
--------------pfeng version is 1.8.0
--------------No, i only use PFE driver as mater i A53. This is my first time to use as Master-Slave .
Hello @tommychen1986,
To have better context of your setup can you share the following information:
Thanks in advance for the information.
Hi
After debugging,I found that the IDEX RESET command sent by A53 has been received by M7,and M7 has also sent an ack to A53.However,A53did not receive this ack.(no msg in ihc_rx_fifo)