Wind River Support Network

HomeDefectsLIN1021-3860
Fixed

LIN1021-3860 : Cluster reported by lscpu is different from features of S32G274A CPU

Created: Jun 28, 2022    Updated: Aug 31, 2023
Resolved Date: Jun 19, 2023
Found In Version: 10.21.20.13
Fix Version: 10.21.20.19
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

Boot logs:

U-Boot 2020.04+g7cc85e1885 (Jun 24 2022 - 14:14:09 +0000)

CPU:   NXP S32G274A rev. 2.1.0
Model: NXP S32G274A-RDB2
DRAM:  3.5 GiB
MMC:   FSL_SDHC: 0
Loading Environment from MMC... OK
Using external clock for PCIe0, CRNS
Configuring PCIe0 as RootComplex(x2)
Using external clock for PCIe1, CRNS
Frequency 125Mhz configured for PCIe1
Configuring PCIe1 as SGMII(x2) [XPCS0 2.5G, XPCS1 OFF]
PCIe0: Failed to get link up
Pcie0: LINK_DBG_1: 0x00000000, LINK_DBG_2: 0x00000800 (expected 0x000000d1)
DEBUG_R0: 0x00046b00, DEBUG_R1: 0x08200000
PCI: Failed autoconfig bar 20
PCI: Failed autoconfig bar 24
PCIe1: Not configuring PCIe, PHY not configured
In:    serial@401C8000
Out:   serial@401C8000
Err:   serial@401C8000
Board revision: RDB2/GLDBOX Revision C
Net:   EQOS phy: rgmii @ 1

Warning: eth_eqos (eth0) using random MAC address - 9a:32:26:58:7b:ce
eth0: eth_eqos PFE: emac0: sgmii emac1: none emac2: rgmii
PFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2

Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
21776896 bytes read in 935 ms (22.2 MiB/s)
Booting from mmc ...
44088 bytes read in 14 ms (3 MiB/s)
## Flattened Device Tree blob at 83e00000
   Booting using the fdt blob at 0x83e00000
   Loading Device Tree to 000000009fff2000, end 000000009ffffc37 ... OK
ft_fixup_ddr_polling: Couldn't find "fsl,s32gen1-ddr" node: FDT_ERR_NOTFOUND
PFEng firmware file 'mmc@0:1:s32g_pfe_class.fw' loading failed: -2
DT: Disabling PFE

Starting kernel ...

Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Linux version 5.10.119-yocto-standard (oe-user@oe-host) (aarch64-wrs-linux-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.36.1.20210703) #1 SMP PREEMPT Fri Jun 24 13:56:32 UTC 2022
Machine model: Freescale S32G274
earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
printk: bootconsole [linflex0] enabled
efi: UEFI not found.
Reserved memory: created DMA memory pool at 0x000000008f200000, size 3 MiB
OF: reserved mem: initialized node pfebufs@8f200000, compatible id shared-dma-pool
Reserved memory: created DMA memory pool at 0x000000008f600000, size 1 MiB
OF: reserved mem: initialized node pfebufs@8f600000, compatible id shared-dma-pool
Zone ranges:
  DMA      [mem 0x0000000080000000-0x00000000ffffffff]
  DMA32    empty
  Normal   [mem 0x0000000100000000-0x00000008dfffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000080000000-0x0000000083ffffff]
  node   0: [mem 0x0000000084000000-0x000000008407ffff]
  node   0: [mem 0x0000000084080000-0x000000008effffff]
  node   0: [mem 0x000000008f000000-0x000000008f5dffff]
  node   0: [mem 0x000000008f5e0000-0x000000008f5fffff]
  node   0: [mem 0x000000008f600000-0x000000008f7dffff]
  node   0: [mem 0x000000008f7e0000-0x00000000bfffffff]
  node   0: [mem 0x00000000c0000000-0x00000000c03fffff]
  node   0: [mem 0x00000000c0400000-0x00000000cfffffff]
  node   0: [mem 0x00000000d0000000-0x00000000d03fffff]
  node   0: [mem 0x00000000d0400000-0x00000000ffffffff]
  node   0: [mem 0x0000000880000000-0x00000008dfffffff]
Initmem setup node 0 [mem 0x0000000080000000-0x00000008dfffffff]
cma: Reserved 128 MiB at 0x00000000f7800000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.2
percpu: Embedded 30 pages/cpu s82968 r8192 d31720 u122880
Detected VIPT I-cache on CPU0
CPU features: detected: ARM erratum 845719
CPU features: detected: GIC system register CPU interface
CPU features: detected: NXP erratum ERR050481 (TLBI handled incorrectly)
Built 1 zonelists, mobility grouping on.  Total pages: 903168
Kernel command line: console=ttyLF0,115200 root=/dev/mmcblk0p2 rootwait rw earlycon kmemleak=off idle=poll rcu_nocb_poll nowatchdog selinux=0 enforcing=0 audit=0 ip=dhcp TARGET=NXP-S32G274A-RDB2
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
software IO TLB: mapped [mem 0x00000000f3800000-0x00000000f7800000] (64MB)
Memory: 3352760K/3670016K available (12288K kernel code, 1938K rwdata, 2888K rodata, 4032K init, 436K bss, 186184K reserved, 131072K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
ftrace: allocating 38637 entries in 151 pages
ftrace: allocated 151 pages with 5 groups
rcu: Preemptible hierarchical RCU implementation.
rcu:    RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
        Trampoline variant of Tasks RCU enabled.
        Rude variant of Tasks RCU enabled.
        Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
GICv3: 544 SPIs implemented
GICv3: 0 Extended SPIs implemented
GICv3: Distributor has no Range Selector support
GICv3: MBI range [167:182]
GICv3: Using MBI frame 0x0000000050800000
GICv3: 16 PPIs implemented
GICv3: CPU0: found redistributor 0 region 0:0x0000000050880000
ITS: No ITS available, not enabling LPIs
arch_timer: cp15 timer(s) running at 5.00MHz (virt).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x127350b88, max_idle_ns: 440795202120 ns
sched_clock: 56 bits at 5MHz, resolution 200ns, wraps every 4398046511100ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 10.00 BogoMIPS (lpj=20000)
pid_max: default: 32768 minimum: 301
LSM: Security Framework initializing
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
rcu: Hierarchical SRCU implementation.
EFI services will not be available.
smp: Bringing up secondary CPUs ...
Detected VIPT I-cache on CPU1
GICv3: CPU1: found redistributor 1 region 0:0x00000000508a0000
CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
Detected VIPT I-cache on CPU2
GICv3: CPU2: found redistributor 100 region 0:0x00000000508c0000
CPU2: Booted secondary processor 0x0000000100 [0x410fd034]
Detected VIPT I-cache on CPU3
GICv3: CPU3: found redistributor 101 region 0:0x00000000508e0000
CPU3: Booted secondary processor 0x0000000101 [0x410fd034]
smp: Brought up 1 node, 4 CPUs
SMP: Total of 4 processors activated.
CPU features: detected: 32-bit EL0 Support
CPU features: detected: CRC32 instructions
CPU: All CPU(s) started at EL1
alternatives: patching kernel code
devtmpfs: initialized
...
Wind River Linux LTS 21.20 Update 13 nxp-s32g ttyLF0

nxp-s32g login: root
Password: 
root@nxp-s32g:~# 

lscpu logs
cluster reported by lscpu is 1, Core(s) per cluster is 4.

root@nxp-s32g:~# lscpu 
Architecture:            aarch64
  CPU op-mode(s):        32-bit, 64-bit
  Byte Order:            Little Endian
CPU(s):                  4
  On-line CPU(s) list:   0-3
Vendor ID:               ARM
  Model name:            Cortex-A53
    Model:               4
    Thread(s) per core:  1
*    Core(s) per cluster: 4*
    Socket(s):           -
*    Cluster(s):          1*
    Stepping:            r0p4
    BogoMIPS:            10.00
    Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
Vulnerabilities:         
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Spec store bypass:     Not affected
  Spectre v1:            Mitigation; __user pointer sanitization
  Spectre v2:            Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected

The CPU seems two clusters of two cores - see features and Block Diagram in Product Details for further information:

[https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32g-vehicle-network-processors/s32g2-processors-for-vehicle-networking:S32G2]

Steps to Reproduce

Build
 --machines nxp-s32g --distro wrlinux --dl-layers

Boot board:
root@nxp-s32g:~# cat /proc/cmdline 
console=ttyLF0,115200 root=/dev/mmcblk0p2 rootwait rw earlycon kmemleak=off idle=poll rcu_nocb_poll nowatchdog selinux=0 enforcing=0 audit=0 ip=dhcp TARGET=NXP-S32G274A-EVB
root@nxp-s32g:~# 

# lscpu
Live chat
Online