[linux-yocto] [PATCH] marvell-cn96xx: add marvell-cn96xx kernel config

2023-06-04 Thread Ruiqiang Hao via lists.yoctoproject.org
From: Ruiqiang Hao 

Add marvell-cn96xx kernel config for linux v6.1.
This kernel configuration is applicable to the Marvell SDK 12.

Signed-off-by: Ruiqiang Hao 
---
 .../marvell-cn96xx-preempt-rt.cfg | 14 +
 .../marvell-cn96xx-preempt-rt.scc | 10 
 bsp/marvell-cn96xx/marvell-cn96xx.cfg | 51 +--
 3 files changed, 71 insertions(+), 4 deletions(-)
 create mode 100644 bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.cfg
 create mode 100644 bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.scc

diff --git a/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.cfg 
b/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.cfg
new file mode 100644
index ..0b4edbb7
--- /dev/null
+++ b/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.cfg
@@ -0,0 +1,14 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
diff --git a/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.scc 
b/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.scc
new file mode 100644
index ..ff241f20
--- /dev/null
+++ b/bsp/marvell-cn96xx/marvell-cn96xx-preempt-rt.scc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE marvell-cn96xx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+
+include marvell-cn96xx.scc
+
+kconf hardware marvell-cn96xx-preempt-rt.cfg
diff --git a/bsp/marvell-cn96xx/marvell-cn96xx.cfg 
b/bsp/marvell-cn96xx/marvell-cn96xx.cfg
index 1b1c4af3..caae1cc5 100644
--- a/bsp/marvell-cn96xx/marvell-cn96xx.cfg
+++ b/bsp/marvell-cn96xx/marvell-cn96xx.cfg
@@ -33,7 +33,6 @@ CONFIG_PCI_IOV=y
 
 CONFIG_PCI_HOST_GENERIC=y
 CONFIG_PCI_HOST_THUNDER_PEM=y
-CONFIG_PCI_HOST_OCTEONTX2_PEM=y
 
 # Ethernet
 CONFIG_OCTEONTX2_AF=y
@@ -41,6 +40,7 @@ CONFIG_OCTEONTX2_PF=y
 CONFIG_OCTEONTX2_VF=y
 CONFIG_USB_USBNET=y
 CONFIG_USB_NET_AX88179_178A=y
+CONFIG_DCB=y
 
 # NVMe
 CONFIG_BLK_DEV_NVME=y
@@ -97,17 +97,16 @@ CONFIG_REGULATOR_GPIO=y
 # VFIO
 CONFIG_VFIO=y
 CONFIG_VFIO_PCI=y
-CONFIG_VFIO_NOIOMMU=y
 
 # Misc
 CONFIG_EEPROM_AT24=y
 CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_CAVIUM=y
-CONFIG_OCTEONTX2_RM=y
-CONFIG_OCTEONTX2_RM_DOM_SYSFS=y
+CONFIG_MARVELL_MEMTEST=y
 
 # BPHY
 CONFIG_MARVELL_OTX_BPHY_CTR=y
+CONFIG_OCTEONTX2_BPHY_RFOE_NETDEV=y
 
 # Mailbox
 CONFIG_MAILBOX=y
@@ -122,3 +121,47 @@ CONFIG_COMMON_CLK_SCMI=y
 # CPU freq
 CONFIG_CPU_FREQ=y
 CONFIG_ARM_SCMI_CPUFREQ=y
+
+# GHES
+CONFIG_ACPI=y
+CONFIG_ACPI_APEI=y
+CONFIG_ACPI_APEI_GHES=y
+CONFIG_ARM_SDE_INTERFACE=y
+CONFIG_EDAC_OCTEONTX=y
+
+# CORESIGHT
+CONFIG_CORESIGHT=y
+CONFIG_CORESIGHT_LINKS_AND_SINKS=y
+CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y
+CONFIG_CORESIGHT_CATU=y
+CONFIG_CORESIGHT_SINK_TPIU=y
+CONFIG_CORESIGHT_SINK_ETBV10=y
+CONFIG_CORESIGHT_SOURCE_ETM4X=y
+CONFIG_CORESIGHT_CPU_DEBUG=y
+CONFIG_CORESIGHT_CTI=y
+CONFIG_CORESIGHT_CTI_INTEGRATION_REGS=y
+
+# MARVELL_UB
+CONFIG_MARVELL_UB=y
+CONFIG_MARVELL_UB_GEN_DRIVER=y
+
+# AVS_RESET
+CONFIG_MARVELL_AVS_RESET=y
+
+# SFP_INFO
+CONFIG_MARVELL_SFP_INFO=y
+
+# FWLOG
+CONFIG_MARVELL_FWLOG=y
+
+# PMU
+CONFIG_ARM_SPE_PMU=y
+CONFIG_ARM_SMMU_V3_PMU=y
+
+# PTP clock support
+CONFIG_PTP_1588_CLOCK=y
+CONFIG_PTP_1588_CLOCK_IDTCM=y
+
+# Currently this driver only work for cn106xx, but it is set to 'm' by default.
+# So we have to disable it explicitly.
+# CONFIG_MARVELL_CN10K_SERDES_DIAGNOSTICS is not set
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12686): 
https://lists.yoctoproject.org/g/linux-yocto/message/12686
Mute This Topic: https://lists.yoctoproject.org/mt/99332825/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache yocto-6.1] add support for marvell cn96xx bsp based on marvell SDK12

2023-06-04 Thread Ruiqiang Hao via lists.yoctoproject.org
Hi Bruce,

Please help to merge this patch into our linux-yocto repo.

repo:
yocto-kernel-cache
branch:
yocto-6.1

Thanks,
Ruiqiang

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12685): 
https://lists.yoctoproject.org/g/linux-yocto/message/12685
Mute This Topic: https://lists.yoctoproject.org/mt/99332824/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1] bump marvell cn96xx kernel to v6.1 based on marvell SDK12

2023-06-04 Thread Ruiqiang Hao via lists.yoctoproject.org
Hi Bruce,

Please help to create branches and merge code into our linux-yocto repo.

repo:
linux-yocto
branch:
v6.1/standard/cn-sdkv5.15/octeon
v6.1/standard/preempt-rt/cn-sdkv5.15/octeon

Thanks,
Ruiqiang

The following changes since commit 456d730e6202dd0fc120322d64cf70a2cbccc572:

  Merge tag 'v6.1.31' into v6.1/standard/base (2023-05-31 19:33:40 -0400)

are available in the Git repository at:

  g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/cn-sdkv5.15/octeon

for you to fetch changes up to 0b927763e1ce19b5b07f09cf2381aad90ec1cf2e:

  EDAC: Init minimum possible error desc grain (2023-06-01 07:45:27 +)


Aaro Koskinen (1):
  fwlog: fix invalid pointers and copy size in wraparound case

Aaron Williams (4):
  mmc: octeontx2: Add tuning support for HS400 mode
  mmc: octeontx2: Use flags for hardware differences
  mmc: octeontx2: fix handling calibration glitch
  drives: soc: marvell: Display version information for flash components

Alex Belits (2):
  kernel/exit.c: Add task cleanup callbacks
  arm64: Add support for ASID locking

Amit Singh Tomar (9):
  perf/marvell: add MBWC event
  perf/marvell: get ddr speed from "marvell,ddr-speed"
  arm_mpam: discover MPAM device behind the memory controller
  arm_mpam: create DSS MPAM device
  arm_mpam: get CPU accessibility for DSS MPAM
  arm_mpam: resctrl: fix formula to calculate MBW % to max and vice-versa.
  arm_mpam: resctrl: set the bandwidth granularity to minimum value
  arm_mpam: Keep MBW_MIN close to MBW_MAX
  arm_mpam: remove debug message from __init

Andrew Pinski (1):
  arm64: Add workaround for Cavium erratum 36890

Angela Czubak (1):
  octeontx2-af: fix rvu_sso_ggrp_taq_flush

Anil Kumar Reddy (4):
  coresight: tmc-etr: Fix PREVBOOT mode trace buffer handling
  coresight: tmc-etr: Add support to use reserved memory
  coresight: tmc: Add support for register metadata
  coresight: tmc: Read previous boot trace data

Ankur Dwivedi (3):
  octeontx2-af: mcs: add mailboxes for fips
  octeontx2-af: rvu: enable mcs fips mailboxes
  soc: marvell: hw_access: add mapping for mcs registers

Ashwin Sekhar T K (2):
  octeontx2-af: extend npa context reading capability
  soc: marvell: hw_access: add support to read aura/pool context

Baha Mesleh (13):
  octeontx2-bphy-netdev: fix cleanup sequence in char device release
  octeontx2-bphy-netdev: add debugfs support
  octeontx2-bphy-netdev: limit cpri error logging rate
  octeontx2-bphy-netdev: fix link carrier state update
  octeontx2-bphy-netdev: fix possibility of processing the mbt multiple 
times
  octeontx2-bphy-netdev: Fix cpri rx packet handling
  octeontx2-bphy-netdev: Fix cpri interrupt handling
  octeontx2-bphy-netdev: re-enable cpri gpint when interface is stopped
  octeontx2-bphy-netdev: Fix cnf10k link state set
  octeontx2-bphy-netdev: Add cnf10k rfoe debugfs
  octeontx2-bphy-netdev: Use PTP ring tail index to read timestamp
  octeontx2-bphy-netdev: fix link carrier state update for cnf10k
  octeontx2-bphy-netdev: Fix rfoe ptp clock cleanup

Bharat Bhushan (4):
  soc/octeontx2 : Add driver support for NMI GTI watchdog
  cn10k: Add workaround for MRVL TAD Errata-38891
  clocksource: Add Marvell Errata-38627 workaround
  KVM: arm64: Extend timer errata-38627 to kvm

Bhaskara Budiredla (3):
  mmc: octeontx2: enables mmc polling for pstore path
  mmc: octeontx2: cleanup mmc_oops driver
  mmc: octeontx2: Add MMC polling method to support kmsg panic/oops write

Chandrakala Chavva (12):
  net: thunderx: Fix RXAUI link status
  driver: net: thunder: Print 1000Base-X or SGMII based on mode.
  mmc: octeontx2: Use proper register to clear interrupts
  mmc: octeontx2: Fix tuning for T96 C0
  mmc: octeontx2: Configure flags for T96 pass B0
  drives: soc: marvell: Update octtx_info to display sdk-version
  drivers: soc: sw_up: Check cn10k SOC check
  drivers: soc: sw_up: Change gserp firmware bit position
  driver: edac: octeontx: Add revision check for new pass of the chip
  drivers: mmc: sdhci-cadence: Change command delay value
  drivers: mrvl_swup: Adapt and fix memory allocation with ioctl
  drivers: mrvl_swup: Add additional changes to logbuffer support

Christina Jacob (3):
  net:thunderx: fix memory leak in nicvf driver.
  net: thunderx: Do a PCS reset upon SGMII link toggle
  octeontx2-pf: Add ethtool -m option support.

Damian Eppel (29):
  soc: marvell: MDIO uio driver
  soc: marvell: mvmdio_uio: lock on accessing mdio bus
  soc: marvell: mvmdio_uio: paged access support
  soc: marvell: cn10k SerDes diagnostics debugfs driver
  soc: marvell: cn10k SerDes diag: removed Tx pre3
  soc: marvell: cn10k SerDes diag: fix