PFE Interface not showing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PFE Interface not showing

1,769 次查看
jithin2
Contributor I

Hi nxp,

I am using S32G-VNP-GLDBOX hardware and enabled pfe module through yocto build as per the PFE user manual.

I could see the module is loaded on startup but unfortunately no pfe related interfaces are showing up.

below are my test commands

root@s32g274ardb2:~#
root@s32g274ardb2:~# ls /lib/modules/5.10.90-rt60+g47a49b91d4d4/kernel/drivers/net/ethernet/nxp/pfe/
pfeng.ko
root@s32g274ardb2:~# lsmod
Tainted: G
xen_netback 61440 0 - Live 0xffffffc008930000
xen_blkback 45056 0 - Live 0xffffffc008924000
xen_gntalloc 16384 0 - Live 0xffffffc00891f000
xen_gntdev 24576 2 - Live 0xffffffc008918000
sja1110 20480 0 - Live 0xffffffc008912000 (O)
pfeng 528384 0 - Live 0xffffffc008890000 (O)
root@s32g274ardb2:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: can0: <NOARP40000> mtu 16 qdisc noop qlen 10
link/[280]
3: can1: <NOARP40000> mtu 16 qdisc noop qlen 10
link/[280]
4: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000
link/ether fa:b9:21:e8:2f:ca brd ff:ff:ff:ff:ff:ff
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
root@s32g274ardb2:~#

what could be the problem/mistake I am doing here or do I have to do further steps?

 

I noticed an error message in kernel log as below,

[ 4.287004] pfeng 46000000.pfe: ELF_Open: File format: Elf32
[ 4.287010] pfeng 46000000.pfe: ELF_Open: File endian: Alien (Big)
[ 4.287020] pfeng 46000000.pfe: Uploading CLASS firmware
[ 4.287028] pfeng 46000000.pfe: Selected FW loading OPs to load 8 PEs in parallel
[ 4.327425] pfeng 46000000.pfe: Unsupported firmware detected: Found revision 0.9.4 (fwAPI:6f47ca110c25ba93cd73db36057eb1ce), required fwAPI 881ee579670388f6832743c0c1b2aac4
[ 4.327458] pfeng 46000000.pfe: Classifier firmware loading the PE failed: 22
[ 4.327469] pfeng 46000000.pfe: Error during upload of CLASS firmware: 22
[ 4.327720] pfeng 46000000.pfe: HIF3 not enabled, skipped
[ 4.327728] pfeng 46000000.pfe: HIF2 not enabled, skipped
[ 4.327733] pfeng 46000000.pfe: HIF1 not enabled, skipped
[ 4.327738] pfeng 46000000.pfe: HIF0 not enabled, skipped
[ 4.334745] pfeng: probe of 46000000.pfe failed with error 5

 

what I understood is I have to change firmware version (Unsupported firmware detected: Found revision 0.9.4 (fwAPI:6f47ca110c25ba93cd73db36057eb1ce), required fwAPI 881ee579670388f6832743c0c1b2aac4)..which version it is pointing to as required?

by the way I am using bsp-32 and manually enabled pfe nodes in dtsi file

below is the snippet from dtsi.

pfe_slave: pfe_slave@46000000 {
compatible = "fsl,s32g274a-pfeng-slave";
reg = <0x0 0x46000000 0x0 0x1000000>,
<0x0 0x4007caec 0x0 0x4>;
reg-names = "pfe-cbus", "gpr-genctrl3";
#address-cells = <0x01>;
#size-cells = <0x00>;
interrupt-parent = <&gic>;
/* Interrupt duplicated for XEN passthrough */
interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
dma-coherent;
memory-region = <&pfe_reserved_slave>,
<&pfe_reserved_bdr_slave>;
nvmem-cells = <&soc_revision>;
nvmem-cell-names = "soc_revision";
fsl,pfeng-master-hif-channel = <0>;
status = "okay";

/* PFE_HIF_3 */
pfesl_hif3: hif@3 {
compatible = "fsl,pfeng-hif";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
reg = <3>;
fsl,pfeng-hif-mode = <PFENG_HIF_MODE_SHARED>;
fsl,pfeng-ihc;
};

/* Logical network interface 'pfe0sl' */
pfesl_logif0: ethernet@10 {
compatible = "fsl,pfeng-logif";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
local-mac-address = [ 00 04 9F BE FF 10 ];
fsl,pfeng-if-name = "pfe0sl";
fsl,pfeng-logif-mode = <PFENG_LOGIF_MODE_TX_INJECT>;
fsl,pfeng-emac-id = <0>; /* PFE_EMAC_0 */
fsl,pfeng-hif-channels = <&pfesl_hif3>;
};

/* Logical network interface 'aux0sl' */
pfesl_aux0: ethernet@11 {
compatible = "fsl,pfeng-logif";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
local-mac-address = [ 00 04 9F BE FF 80 ];
fsl,pfeng-if-name = "aux0sl";
fsl,pfeng-logif-mode = <PFENG_LOGIF_MODE_AUX>;
fsl,pfeng-hif-channels = <&pfesl_hif3>;
};
};

What could be the reason it is complaining as follows

[ 4.327720] pfeng 46000000.pfe: HIF3 not enabled, skipped
[ 4.327728] pfeng 46000000.pfe: HIF2 not enabled, skipped
[ 4.327733] pfeng 46000000.pfe: HIF1 not enabled, skipped
[ 4.327738] pfeng 46000000.pfe: HIF0 not enabled, skipped

Kindly provide the compactible version of pfe for BSP_32

from pfe.bb file, I understood that I require s32g_pfe_class.fw 0.9.7 version firmware but where to spot this I have checked https://nxp.flexnetoperations.com/control/frse/product?child_plneID=817947 but it doesn't contain the firmware file ..it list out only some sample application

Thanks in advance

 

0 项奖励
回复
0 回复数