This patch updates v6.1 kernel cache for nxp-s32g to compatible with SDK
BSP38, and the related configs refers to both LTS22 and SDK BSP38.

Moreover, the CONFIG_NVMEM_SCMI is added to support SCMI protocol/transport
style, but now the ATF transport side is not ready, and it will cause
the following panic when STR:

     Unable to handle kernel paging request at virtual address ffffffffffffffe8
     Mem abort info:
       ESR = 0x0000000096000005
       EC = 0x25: DABT (current EL), IL = 32 bits
       SET = 0, FnV = 0
       EA = 0, S1PTW = 0
       FSC = 0x05: level 1 translation fault
     Data abort info:
       ISV = 0, ISS = 0x00000005
       CM = 0, WnR = 0
     swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000008b83e000
     [ffffffffffffffe8] pgd=0000000000000000, p4d=0000000000000000, 
pud=0000000000000000
     Internal error: Oops: 96000005 [#1] PREEMPT SMP
     Modules linked in: 8021q llce_can llce_mailbox pfeng(O) llce_core 
sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 
nf_defrag_ipv4
     CPU: 1 PID: 961 Comm: rtcwake Tainted: G           O      
5.15.129-yocto-standard #1
     Hardware name: NXP S32G274A-RDB2 (DT)
     pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
     pc : scmi_dev_suspend+0xc/0x40
     lr : __device_suspend+0x2bc/0x444
     sp : ffffffc00d13ba90
     x29: ffffffc00d13ba90 x28: ffffffc008ad78c4 x27: ffffff880ba2a260
     x26: 0000000000000002 x25: ffffffc009d4619c x24: ffffffc008d5b6e0
     x23: ffffff880ba28930 x22: 0000000000000000 x21: 0000000000000002
     x20: ffffffc00b299d60 x19: ffffff880ba28810 x18: ffffffffffffffff
     x17: 203a7367616c6620 x16: 7265766972642064 x15: ffffffc00aa968c2
     x14: 0000000000000000 x13: 30203a7367616c66 x12: 2072657669726420
     x11: 00000000000000f2 x10: ffffffc009d46d78 x9 : ffffffc008ad773c
     x8 : 00000000fffff287 x7 : ffffffc009d9ed78 x6 : 0000000000000001
     x5 : ffffff880ba28810 x4 : 0000000000000001 x3 : ffffffc009769008
     x2 : 0000000000000000 x1 : 0000000000000002 x0 : ffffff880ba28810
     Call trace:
      scmi_dev_suspend+0xc/0x40
      dpm_suspend+0x184/0x26c
      dpm_suspend_start+0x84/0xa0
      suspend_devices_and_enter+0x148/0x20c
      enter_state+0x148/0x1dc
      pm_suspend+0x60/0xf0
      state_store+0x94/0x120
      kobj_attr_store+0x18/0x30
      sysfs_kf_write+0x54/0x80
      kernfs_fop_write_iter+0x128/0x1c0
      new_sync_write+0xf0/0x18c
      vfs_write+0x1c4/0x220
      ksys_write+0x70/0x100
      __arm64_sys_write+0x24/0x30
      invoke_syscall+0x5c/0x130
      el0_svc_common.constprop.0+0x68/0x124
      do_el0_svc+0x4c/0xb0
      el0_svc+0x54/0x110
      el0t_64_sync_handler+0xa4/0x130
      el0t_64_sync+0x1a0/0x1a4
     Code: d503201f aa1e03e9 d503201f f9403402 (f85e8042)
     ---[ end trace b5605e874e1249c4 ]---
     Kernel panic - not syncing: Oops: Fatal exception
     SMP: stopping secondary CPUs
     Kernel Offset: disabled
     CPU features: 0x9,00002001,20000842
     Memory Limit: none
     ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---

So disable this config by default to fix the above issues, and it will
be enabled when related codes all ready.

Signed-off-by: Zhantao Tang <[email protected]>
---
 bsp/nxp-s32g/nxp-s32g.cfg | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg
index 1b8eae74..df6458b8 100644
--- a/bsp/nxp-s32g/nxp-s32g.cfg
+++ b/bsp/nxp-s32g/nxp-s32g.cfg
@@ -19,7 +19,10 @@ CONFIG_SOC_S32CC=y
 CONFIG_SCHED_MC=y
 CONFIG_ARM_SMMU=y
 
+CONFIG_NXP_GLOBAL_TIME_STM=y
+
 CONFIG_PINCTRL_S32CC=y
+CONFIG_PINCTRL_SCMI=y
 
 CONFIG_CPU_IDLE=y
 CONFIG_ARM_PSCI_CPUIDLE=y
@@ -52,6 +55,7 @@ CONFIG_NET_DSA_TAG_SJA1105=y
 CONFIG_NXP_TJA11XX_PHY=y
 CONFIG_NET_DSA_SJA1105=y
 CONFIG_NET_DSA_SJA1105_PTP=y
+CONFIG_BRIDGE_VLAN_FILTERING=y
 
 #Serial
 CONFIG_SERIAL_AMBA_PL011=y
@@ -65,6 +69,8 @@ CONFIG_SPI_FSL_DSPI=y
 CONFIG_SPI_SPIDEV=y
 CONFIG_GPIO_CDEV=y
 CONFIG_GPIO_S32CC=y
+CONFIG_GPIO_SCMI=y
+CONFIG_SENSORS_INA2XX=y
 
 #PCIE
 CONFIG_PCI=y
@@ -119,7 +125,7 @@ CONFIG_INPUT_UINPUT=y
 
 # Thermal
 CONFIG_THERMAL=y
-CONFIG_S32CC_THERMAL=y
+CONFIG_QORIQ_THERMAL=y
 
 # ADC
 CONFIG_IIO=y
@@ -156,6 +162,8 @@ CONFIG_S32CC_WDT=y
 CONFIG_BLK_DEV_NVME=y
 CONFIG_NVME_TARGET=y
 CONFIG_NVMEM_S32CC_SIUL2=y
+CONFIG_NVMEM_S32CC_OCOTP=y
+# CONFIG_NVMEM_SCMI is not set
 
 #LLCE
 CONFIG_CAN_LLCE=y
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13264): 
https://lists.yoctoproject.org/g/linux-yocto/message/13264
Mute This Topic: https://lists.yoctoproject.org/mt/102359525/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to