[linux-yocto][linux-yocto v6.1] kernel code for marvell octeon based on new SDK v6.1 branch[RT]
Hi Bruce, Please help to create branch and merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv6.1/octeon Thanks, Ruiqiang The following changes since commit ff8fd5f68aadf01de61a8a17d3f7fc69ea873801: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/base (2024-03-19 17:29:50 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/preempt-rt/cn-sdkv6.1/octeon for you to fetch changes up to 19d743ee348fa185e80d4fa76cd7c07bd3c40785: octeontx2-pf: Free parent class send queue resources (2024-03-26 10:29:16 +0800) 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 Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (12): perf/marvell: add MBWC event perf/marvell: get ddr speed from "marvell,ddr-speed" fs/resctrl: extend resource control group to 128 fs/resctrl: fix argument for devnode callback. 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: Keep MBW_MIN close to MBW_MAX arm_mpam: remove debug message from __init arm_mpam: resctrl: Add support for mbm total arm_mpam: add support for MSMON_MBWU_L/CAPTURE arm_mpam: remove MSC's affinity check. Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Andrew Pinski (1): arm64: Add workaround for Cavium erratum 36890 Angela Czubak (1): octeontx2-af: fix rvu_sso_ggrp_taq_flush Anil Kumar Reddy (5): 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 coresight: tmc-etr: Completely isolate reserve mode ops Ankur Dwivedi (6): octeontx2-af: mcs: add mailboxes for fips octeontx2-af: rvu: enable mcs fips mailboxes soc: marvell: hw_access: add mapping for mcs registers soc: marvell: hw_access: add mapping for DPI VF BAR0 soc: marvell: hw_access: add mapping for DPI PF BAR0 octeontx2-af: fix mcam hit counter Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Ard Biesheuvel (1): arm64: Enable data independent timing (DIT) in the kernel Ashwin Sekhar T K (2): octeontx2-af: extend npa context reading capability soc: marvell: hw_access: add support to read aura/pool context Babu Moger (1): x86/resctrl: Remove arch_has_empty_bitmaps Baha Mesleh (16): 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 octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (10): hwrng: cn10k - Add extended trng register support clocksource: Add Marvell Errata-38627 workaround KVM: arm64: Extend timer errata-38627 to kvm dt-bindings: watchdog: marvell GTI system watchdog driver Watchdog: Add marvell GTI watchdog driver soc:octeontx2 : Add driver support for NMI GTI watchdog drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF cn10k: Add workaround for MRVL TAD Errata-38891 crypto: octeontx2: Honor irqaffinity passed via bootargs Bhaskara Budiredla (4): drivers: mmc: enables mmc polling for pstore path drivers: mmc: cleanup mmc_oops driver mmc: cavium: Add MMC polling method to support kmsg panic/oops write drivers: mtd:
[linux-yocto][linux-yocto v6.1] kernel code for marvell octeon based on new SDK v6.1 branch
Hi Bruce, Please help to create branch and merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/cn-sdkv6.1/octeon Thanks, Ruiqiang The following changes since commit 329d19a5be2832acafa4a5c598a244ddb5d15737: Merge tag 'v6.1.82' into v6.1/standard/base (2024-03-19 17:29:25 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/cn-sdkv6.1/octeon for you to fetch changes up to ad0ab602e9453f89f006ae26e57b3f8ad93aa2cf: octeontx2-pf: Free parent class send queue resources (2024-03-26 10:27:28 +0800) 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 Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (12): perf/marvell: add MBWC event perf/marvell: get ddr speed from "marvell,ddr-speed" fs/resctrl: extend resource control group to 128 fs/resctrl: fix argument for devnode callback. 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: Keep MBW_MIN close to MBW_MAX arm_mpam: remove debug message from __init arm_mpam: resctrl: Add support for mbm total arm_mpam: add support for MSMON_MBWU_L/CAPTURE arm_mpam: remove MSC's affinity check. Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Andrew Pinski (1): arm64: Add workaround for Cavium erratum 36890 Angela Czubak (1): octeontx2-af: fix rvu_sso_ggrp_taq_flush Anil Kumar Reddy (5): 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 coresight: tmc-etr: Completely isolate reserve mode ops Ankur Dwivedi (6): octeontx2-af: mcs: add mailboxes for fips octeontx2-af: rvu: enable mcs fips mailboxes soc: marvell: hw_access: add mapping for mcs registers soc: marvell: hw_access: add mapping for DPI VF BAR0 soc: marvell: hw_access: add mapping for DPI PF BAR0 octeontx2-af: fix mcam hit counter Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Ard Biesheuvel (1): arm64: Enable data independent timing (DIT) in the kernel Ashwin Sekhar T K (2): octeontx2-af: extend npa context reading capability soc: marvell: hw_access: add support to read aura/pool context Babu Moger (1): x86/resctrl: Remove arch_has_empty_bitmaps Baha Mesleh (16): 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 octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (10): hwrng: cn10k - Add extended trng register support clocksource: Add Marvell Errata-38627 workaround KVM: arm64: Extend timer errata-38627 to kvm dt-bindings: watchdog: marvell GTI system watchdog driver Watchdog: Add marvell GTI watchdog driver soc:octeontx2 : Add driver support for NMI GTI watchdog drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF cn10k: Add workaround for MRVL TAD Errata-38891 crypto: octeontx2: Honor irqaffinity passed via bootargs Bhaskara Budiredla (4): drivers: mmc: enables mmc polling for pstore path drivers: mmc: cleanup mmc_oops driver mmc: cavium: Add MMC polling method to support kmsg panic/oops write drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk
[linux-yocto][linux-yocto v6.1] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 34d48a6c6406fbb97861ff8b55c50cecabadb8c0: Merge branch 'v6.1/standard/base' into v6.1/standard/cn-sdkv5.15/octeon (2024-03-10 23:16:49 -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 755d0e9afe53c6c4a99790263350128a352a9769: arm_mpam: replace acpi_table_mpam_msc with acpi_mpam_msc_node (2024-03-19 09:26:44 +0800) Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (2): crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg George Cherian (1): octeontx2-af: Fix Support of FDSA tag Hariprasad Kelam (3): octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action James Morse (1): ACPI/MPAM: update MPAM ACPI headers Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Naveen Mamindlapalli (1): octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (1): MMC: Fix for SD card support in cadence driver Piyush Malgujar (1): soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (2): Revert "octeontx2-pf: Set maximum queue size to 16K" octeontx2-af: Initialize bitmap arrays. Ruiqiang Hao (1): arm_mpam: replace acpi_table_mpam_msc with acpi_mpam_msc_node Sai Krishna (2): octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (4): octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-pf: Reschedule up message if message data is non zero octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step Suman Ghosh (1): octeontx2-af: Fix multicast/mirror group lock/unlock issue Sunil Goutham (1): octeontx2-pf: Fix module compilation failure Witold Sadowski (1): swup: Remove smc_update_obj_info drivers/acpi/arm64/mpam.c | 45 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 14 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 3 +- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 3 +- drivers/firmware/octeontx2/Kconfig | 22 + drivers/firmware/octeontx2/Makefile| 2 + drivers/firmware/octeontx2/led-blink-rate.c| 113 + drivers/firmware/octeontx2/portm-boot-cfg.c| 511 + drivers/mmc/host/sdhci-cadence.c | 3 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 5 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +- .../ethernet/marvell/octeontx2/af/npc_profile.h| 141 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 7 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 17 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 60 ++- .../ethernet/marvell/octeontx2/af/rvu_devlink.c| 41 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 125 +++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 95 ++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 10 +- .../ethernet/marvell/octeontx2/bphy/bphy_common.h | 31 ++ .../marvell/octeontx2/bphy/bphy_netdev_comm_if.h | 5 + .../marvell/octeontx2/bphy/cnf10k_bphy_hw.h| 16 + .../ethernet/marvell/octeontx2/bphy/cnf10k_rfoe.c | 29 +- .../ethernet/marvell/octeontx2/bphy/otx2_bphy.h| 5 + .../ethernet/marvell/octeontx2/bphy/otx2_bphy_hw.h | 14 + .../marvell/octeontx2/bphy/otx2_bphy_main.c| 78 .../ethernet/marvell/octeontx2/bphy/otx2_cpri.c| 30 ++ .../ethernet/marvell/octeontx2/bphy/otx2_cpri.h| 2 + .../ethernet/marvell/octeontx2/bphy/otx2_rfoe.c| 25 + .../ethernet/marvell
[linux-yocto][linux-yocto v6.1] kernel code for marvell octeon[RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 57c649eb668991093bfa90ded01f9e6c412c8cce: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/cn-sdkv5.15/octeon (2024-03-10 23:19:42 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to f961e1d65633aeba6191f5622b2ac1e8515d9320: arm_mpam: replace acpi_table_mpam_msc with acpi_mpam_msc_node (2024-03-19 21:37:24 +0800) Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (2): crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg George Cherian (1): octeontx2-af: Fix Support of FDSA tag Hariprasad Kelam (3): octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action James Morse (1): ACPI/MPAM: update MPAM ACPI headers Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Naveen Mamindlapalli (1): octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (1): MMC: Fix for SD card support in cadence driver Piyush Malgujar (1): soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (2): Revert "octeontx2-pf: Set maximum queue size to 16K" octeontx2-af: Initialize bitmap arrays. Ruiqiang Hao (1): arm_mpam: replace acpi_table_mpam_msc with acpi_mpam_msc_node Sai Krishna (2): octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (4): octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-pf: Reschedule up message if message data is non zero octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step Suman Ghosh (1): octeontx2-af: Fix multicast/mirror group lock/unlock issue Sunil Goutham (1): octeontx2-pf: Fix module compilation failure Witold Sadowski (1): swup: Remove smc_update_obj_info drivers/acpi/arm64/mpam.c | 45 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 14 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 3 +- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 3 +- drivers/firmware/octeontx2/Kconfig | 22 + drivers/firmware/octeontx2/Makefile| 2 + drivers/firmware/octeontx2/led-blink-rate.c| 113 + drivers/firmware/octeontx2/portm-boot-cfg.c| 511 + drivers/mmc/host/sdhci-cadence.c | 3 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 5 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +- .../ethernet/marvell/octeontx2/af/npc_profile.h| 141 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 7 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 17 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 60 ++- .../ethernet/marvell/octeontx2/af/rvu_devlink.c| 41 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 125 +++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 95 ++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 10 +- .../ethernet/marvell/octeontx2/bphy/bphy_common.h | 31 ++ .../marvell/octeontx2/bphy/bphy_netdev_comm_if.h | 5 + .../marvell/octeontx2/bphy/cnf10k_bphy_hw.h| 16 + .../ethernet/marvell/octeontx2/bphy/cnf10k_rfoe.c | 29 +- .../ethernet/marvell/octeontx2/bphy/otx2_bphy.h| 5 + .../ethernet/marvell/octeontx2/bphy/otx2_bphy_hw.h | 14 + .../marvell/octeontx2/bphy/otx2_bphy_main.c| 78 .../ethernet/marvell/octeontx2/bphy/otx2_cpri.c| 30 ++ .../ethernet/marvell/octeontx2/bphy/otx2_cpri.h| 2 + .../ethernet/marvell/octeontx2/bphy/otx2_rfoe.
[linux-yocto][linux-yocto v5.15] kernel code for marvell cn96xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13667): https://lists.yoctoproject.org/g/linux-yocto/message/13667 Mute This Topic: https://lists.yoctoproject.org/mt/104859344/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arm_mpam: replace acpi_table_mpam_msc with acpi_mpam_msc_node
From: Ruiqiang Hao When the ACPI_MPAM option is not enabled, there will be a warning during compilation. Replace acpi_table_mpam_msc with acpi_mpam_msc_node to fix this. In file included from drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:14: include/linux/arm_mpam.h:33:52: warning: 'struct acpi_table_mpam_msc' declared inside parameter list will not be visible outside of this definition or declaration 33 | struct acpi_table_mpam_msc *tbl_msc) |^~~ Signed-off-by: Ruiqiang Hao --- include/linux/arm_mpam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/arm_mpam.h b/include/linux/arm_mpam.h index fc950ffcc88f..b3510dd7ed9d 100644 --- a/include/linux/arm_mpam.h +++ b/include/linux/arm_mpam.h @@ -30,7 +30,7 @@ int acpi_mpam_parse_resources(struct mpam_msc *msc, int acpi_mpam_count_msc(void); #else static inline int acpi_mpam_parse_resources(struct mpam_msc *msc, - struct acpi_table_mpam_msc *tbl_msc) + struct acpi_mpam_msc_node *tbl_msc) { return -EINVAL; } -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13668): https://lists.yoctoproject.org/g/linux-yocto/message/13668 Mute This Topic: https://lists.yoctoproject.org/mt/104859345/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 v5.15] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 8ffb4420181ff1f8b7c73894f3fdc452191a1ffa: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.15/octeon (2024-02-26 23:30:34 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.15/octeon for you to fetch changes up to 41767f7772fa1d177fc1a76b32876a183b168e03: octeontx2-af: reveal only TIM params that are available (2024-03-04 10:59:35 +0800) Amit Singh Tomar (1): arm_mpam: Fix lock related warnings Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (3): drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg Geetha sowjanya (3): octeontx2-pf: TC flower offload support for ICMP type and code octeontx2-pf: Add support for offload tc with skbedit mark action octeontx2-af: Dump hw register state on error George Cherian (2): amba: Honour the CPU association while adding a new device octeontx2-af: Fix Support of FDSA tag Hariprasad Kelam (5): octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action James Morse (1): ACPI/MPAM: update MPAM ACPI headers Jayanthi Annadurai (1): edac: octeontx: Add support for GIC RAS reporting Jenishkumar Patel (2): net: mvpp2: corrected BM pool size net: mvpp2: fix ethernet issue caused after stopping DPDK app Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Muhammad Asim Zahid (1): resctrl: fix NULL pointer dereference Naveen Mamindlapalli (3): Revert "octeontx2-bphy-netdev: Clear MBT full condition in ndo_open callback" Revert "octeontx-bphy-netdev: enable mbt full drop enable" octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (5): mmc: added delay_element calculation from dll lock mmc: change read dqs cmd and read dqs values MMC: fix the init_timings lookup. Revert "mmc: revert emmc timing changes" MMC: Fix for SD card support in cadence driver Pavan Nikhilesh (3): octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Petr Malat (1): coresight: Add panic notifier cleanup Piyush Malgujar (2): soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (3): octeontx2-af: Fix printing of SPI field Revert "octeontx2-pf: Set maximum queue size to 16K" octeontx2-af: Initialize bitmap arrays. Sai Krishna (5): octeontx2-vf: Fix VF mbox up message error on PTP RX enable octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Add TC flower offload support for TCP flags octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (7): octeontx2-pf: Wait till detach_resources msg is complete octeontx2-pf: Use default max_active works instead of one octeontx2-af: Always allocate low priority entries for PF octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-pf: Reschedule up message if message data is non zero octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step Suman Ghosh (4): octeontx2-af: Add new mbox to support multicast/mirror offload octeontx2-pf: TC flower
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon[RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 2de25ec0bd6d6eab1cbae409c759afdeb3cd0fe7: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2024-02-26 23:31:41 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 535fb4dcd1bac766551cff518efa2eea8f0a7c72: octeontx2-af: reveal only TIM params that are available (2024-03-05 10:50:09 +0800) Amit Singh Tomar (1): arm_mpam: Fix lock related warnings Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (3): drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg Geetha sowjanya (3): octeontx2-pf: TC flower offload support for ICMP type and code octeontx2-pf: Add support for offload tc with skbedit mark action octeontx2-af: Dump hw register state on error George Cherian (2): amba: Honour the CPU association while adding a new device octeontx2-af: Fix Support of FDSA tag Hariprasad Kelam (5): octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action James Morse (1): ACPI/MPAM: update MPAM ACPI headers Jayanthi Annadurai (1): edac: octeontx: Add support for GIC RAS reporting Jenishkumar Patel (2): net: mvpp2: corrected BM pool size net: mvpp2: fix ethernet issue caused after stopping DPDK app Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Muhammad Asim Zahid (1): resctrl: fix NULL pointer dereference Naveen Mamindlapalli (3): Revert "octeontx2-bphy-netdev: Clear MBT full condition in ndo_open callback" Revert "octeontx-bphy-netdev: enable mbt full drop enable" octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (5): mmc: added delay_element calculation from dll lock mmc: change read dqs cmd and read dqs values MMC: fix the init_timings lookup. Revert "mmc: revert emmc timing changes" MMC: Fix for SD card support in cadence driver Pavan Nikhilesh (3): octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Petr Malat (1): coresight: Add panic notifier cleanup Piyush Malgujar (2): soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (3): octeontx2-af: Fix printing of SPI field Revert "octeontx2-pf: Set maximum queue size to 16K" octeontx2-af: Initialize bitmap arrays. Sai Krishna (5): octeontx2-vf: Fix VF mbox up message error on PTP RX enable octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Add TC flower offload support for TCP flags octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (7): octeontx2-pf: Wait till detach_resources msg is complete octeontx2-pf: Use default max_active works instead of one octeontx2-af: Always allocate low priority entries for PF octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-pf: Reschedule up message if message data is non zero octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step Suman Ghosh (4): octeontx2-af: Add new mbox to support multicast/mirror offload
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon[RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit bd40416c57380ae313532edb5225d972cc06bc95: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.4/octeon (2024-02-26 23:31:50 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.4/octeon for you to fetch changes up to 6781b2bea3fdae87e01901f6caf718438ca60aca: octeontx2-af: reveal only TIM params that are available (2024-03-05 10:30:32 +0800) Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Anshumali Gaur (1): octeontx2-af: Added debugfs support to dump NIX TM topology Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (3): drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg Hariprasad Kelam (5): octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Naveen Mamindlapalli (1): octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (3): MMC: fix the init_timings lookup. MMC: Fix sdhci_cdns_sd6_calc_phy function for SD card MMC: Added delay_element calculations to dqs delay Piyush Malgujar (1): soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (2): octeontx2-af: Fix printing of SPI field octeontx2-af: Initialize bitmap arrays. Sai Krishna (3): octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (4): octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step octeontx2-pf: Reschedule up message if message data is non zero Suman Ghosh (2): octeontx2-af: Add new devlink param to configure maximum usable NIX LFs octeontx2-af: Fix multicast/mirror group lock/unlock issue Suneel Garapati (1): drivers: spi-cadence-xspi: Change xfer logic base Sunil Goutham (3): octeontx2-pf: Honor irqaffinity passed via bootargs genirq: Export irqaffinity_default octeontx2-pf: Fix module compilation failure drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 14 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 3 +- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 3 +- drivers/firmware/octeontx2/Kconfig | 22 + drivers/firmware/octeontx2/Makefile| 2 + drivers/firmware/octeontx2/led-blink-rate.c| 113 + drivers/firmware/octeontx2/portm-boot-cfg.c| 511 + drivers/mmc/host/sdhci-cadence.c | 191 ++-- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 5 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +- .../ethernet/marvell/octeontx2/af/npc_profile.h| 141 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 18 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 17 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 4 + .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 60 ++- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c| 110 - .../ethernet/marvell/octeontx2/af/rvu_devlink.c| 124 - .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 125 +++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 94 ++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 10 +- .../net/ethernet/marvell/octeontx2/af/rvu_tim.c| 7 + .../ethernet/marvell/octeontx2/bphy/bphy_common.h | 31 ++
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 5a6888d21f19d880689e86db56d461115a632bbf: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.4/octeon (2024-02-26 23:30:41 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.4/octeon for you to fetch changes up to f9339e17cdb1e3a787423f1f2dea294207661091: octeontx2-af: reveal only TIM params that are available (2024-03-01 10:19:27 +0800) Ankur Dwivedi (1): octeontx2-af: fix mcam hit counter Anshumali Gaur (1): octeontx2-af: Added debugfs support to dump NIX TM topology Baha Mesleh (3): octeontx2-bphy-netdev: ignore MCS bypass errors octeontx2-bphy-netdev: release psm queues on exit octeontx2-bphy-netdev: disable rx on RFOEs on exit Bharat Bhushan (3): drivers: watchdog: marvell_gti: fix zero pretimeout handling crypto/octeontx2: By default allocate one CPT LF per CPT VF crypto: octeontx2: Honor irqaffinity passed via bootargs Damian Eppel (2): firmware: octeontx2: sysfs interface for PORTM boot cfg firmware: octeontx2: minor fixes for PORTM boot cfg Hariprasad Kelam (5): octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration octeontx2-af: configure 802.3 pause frames in SGMII/QSGMII mode octeontx2-af: map management port always to first PF octeontx2-af: Fix default entries mcam entry action Kiran Kumar K (2): octeontx2-af: Fix capture PPPOE ltype octeontx2-af: Add KPU parsing support for GRE ERSPAN Mikko Suni (1): FWLOG: Correct read length with ppos Naveen Mamindlapalli (1): octeontx2-bphy-netdev: Add cpri busrt packet limiter Nithin Dabilpuram (1): octeontx2-af: fix CN10KB FIFO length for RPM2 Paul Way (3): MMC: fix the init_timings lookup. MMC: Fix sdhci_cdns_sd6_calc_phy function for SD card MMC: Added delay_element calculations to dqs delay Piyush Malgujar (1): soc: marvell: otx2: Add dependency in Kconfig for GHES BERT Ratheesh Kannoth (2): octeontx2-af: Fix printing of SPI field octeontx2-af: Initialize bitmap arrays. Sai Krishna (3): octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Reorder tearing down of PTP RX info work queue, mailbox octeontx2-pf: Add ucast filter count configurability via devlink. Scott Rowberry (1): firmware: octeontx2: sysfs interface for led blink rate Shijith Thotton (1): octeontx2-af: reveal only TIM params that are available Subbaraya Sundeep (4): octeontx2-pf: Send UP messages to VF only when VF is up. octeontx2-af: Use separate handlers for interrupts octeontx2-cpt: Wake up waiting process as last step octeontx2-pf: Reschedule up message if message data is non zero Suman Ghosh (2): octeontx2-af: Add new devlink param to configure maximum usable NIX LFs octeontx2-af: Fix multicast/mirror group lock/unlock issue Suneel Garapati (1): drivers: spi-cadence-xspi: Change xfer logic base Sunil Goutham (3): octeontx2-pf: Honor irqaffinity passed via bootargs genirq: Export irqaffinity_default octeontx2-pf: Fix module compilation failure drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 14 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 3 +- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 3 +- drivers/firmware/octeontx2/Kconfig | 22 + drivers/firmware/octeontx2/Makefile| 2 + drivers/firmware/octeontx2/led-blink-rate.c| 113 + drivers/firmware/octeontx2/portm-boot-cfg.c| 511 + drivers/mmc/host/sdhci-cadence.c | 191 ++-- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 5 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 13 +- .../ethernet/marvell/octeontx2/af/npc_profile.h| 141 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 18 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 17 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h| 4 + .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 60 ++- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c| 110 - .../ethernet/marvell/octeontx2/af/rvu_devlink.c| 124 - .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 125 +++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 94 ++-- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 10 +- .../net/ethernet/marvell/octeontx2/af/rvu_tim.c| 7 + .../ethernet/marvell/octeontx2/bphy/bphy_common.h | 31 ++ .../marvell/octeontx2/bphy/bphy_netdev_comm_if.h |
[linux-yocto] [PATCH] gpio: thunderx: Convert to immutable irq_chip
From: Linus Walleij commit ef902f54e91b3012586f6387daeebec2966312f0 upstream. Convert the driver to immutable irq-chip with a bit of intuition. Whereas in most cases we put the gpiochip_[enable|disable]_irq() calls in the .irq_mask() and .irq_unmask() callbacks, here we need to put them in the .irq_enable() and .irq_disable() callbacks, as this driver uses both .irq_mask() and .irq_mask_ack(). Cc: Marc Zyngier Signed-off-by: Linus Walleij Reviewed-by: Marc Zyngier Signed-off-by: Bartosz Golaszewski Signed-off-by: Ruiqiang Hao --- drivers/gpio/gpio-thunderx.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/gpio/gpio-thunderx.c b/drivers/gpio/gpio-thunderx.c index 909b31e0e1ae..49c4c28b567f 100644 --- a/drivers/gpio/gpio-thunderx.c +++ b/drivers/gpio/gpio-thunderx.c @@ -358,16 +358,22 @@ static int thunderx_gpio_irq_set_type(struct irq_data *d, return IRQ_SET_MASK_OK; } -static void thunderx_gpio_irq_enable(struct irq_data *data) +static void thunderx_gpio_irq_enable(struct irq_data *d) { - irq_chip_enable_parent(data); - thunderx_gpio_irq_unmask(data); + struct gpio_chip *gc = irq_data_get_irq_chip_data(d); + + gpiochip_enable_irq(gc, irqd_to_hwirq(d)); + irq_chip_enable_parent(d); + thunderx_gpio_irq_unmask(d); } -static void thunderx_gpio_irq_disable(struct irq_data *data) +static void thunderx_gpio_irq_disable(struct irq_data *d) { - thunderx_gpio_irq_mask(data); - irq_chip_disable_parent(data); + struct gpio_chip *gc = irq_data_get_irq_chip_data(d); + + thunderx_gpio_irq_mask(d); + irq_chip_disable_parent(d); + gpiochip_disable_irq(gc, irqd_to_hwirq(d)); } /* @@ -376,7 +382,7 @@ static void thunderx_gpio_irq_disable(struct irq_data *data) * semantics and other acknowledgment tasks associated with the GPIO * mechanism. */ -static struct irq_chip thunderx_gpio_irq_chip = { +static const struct irq_chip thunderx_gpio_irq_chip = { .name = "GPIO", .irq_enable = thunderx_gpio_irq_enable, .irq_disable= thunderx_gpio_irq_disable, @@ -387,8 +393,8 @@ static struct irq_chip thunderx_gpio_irq_chip = { .irq_eoi= irq_chip_eoi_parent, .irq_set_affinity = irq_chip_set_affinity_parent, .irq_set_type = thunderx_gpio_irq_set_type, - - .flags = IRQCHIP_SET_TYPE_MASKED + .flags = IRQCHIP_SET_TYPE_MASKED | IRQCHIP_IMMUTABLE, + GPIOCHIP_IRQ_RESOURCE_HELPERS, }; static int thunderx_gpio_child_to_parent_hwirq(struct gpio_chip *gc, @@ -555,7 +561,7 @@ static int thunderx_gpio_probe(struct pci_dev *pdev, chip->set_multiple = thunderx_gpio_set_multiple; chip->set_config = thunderx_gpio_set_config; girq = >irq; - girq->chip = _gpio_irq_chip; + gpio_irq_chip_set_chip(girq, _gpio_irq_chip); girq->fwnode = of_node_to_fwnode(dev->of_node); girq->parent_domain = irq_get_irq_data(txgpio->msix_entries[0].vector)->domain; -- 2.43.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13622): https://lists.yoctoproject.org/g/linux-yocto/message/13622 Mute This Topic: https://lists.yoctoproject.org/mt/104661507/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] kernel code for marvell cn10xxx
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13621): https://lists.yoctoproject.org/g/linux-yocto/message/13621 Mute This Topic: https://lists.yoctoproject.org/mt/104661505/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] kernel code for marvell octeon
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13577): https://lists.yoctoproject.org/g/linux-yocto/message/13577 Mute This Topic: https://lists.yoctoproject.org/mt/104411522/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] spi-nor: w25q256jw: move SPI_NOR_4B_OPCODES into FIXUP_FLAGS
From: Ruiqiang Hao After commit ec1c0e996035("mtd: spi-nor: Rework the flash_info flags"), SPI_NOR_4B_OPCODES flag was moved into FIXUP_FLAGS, move this flag for w25q256jw flash to enable 4B opcodes. Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/winbond.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index e054a8749619..c18e2745df45 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -130,7 +130,8 @@ static const struct flash_info winbond_nor_parts[] = { PARSE_SFDP }, { "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | - SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, + SPI_NOR_QUAD_READ) + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, -- 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13578): https://lists.yoctoproject.org/g/linux-yocto/message/13578 Mute This Topic: https://lists.yoctoproject.org/mt/104411523/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn10xxx: enable NVME config for cn102xx
From: Ruiqiang Hao The Marvell cn102xx board has an NVME interface, so we should enable the NVME kernel configuration for this BSP. Signed-off-by: Ruiqiang Hao --- bsp/marvell-cn10xxx/marvell-cn10xxx.cfg | 4 1 file changed, 4 insertions(+) diff --git a/bsp/marvell-cn10xxx/marvell-cn10xxx.cfg b/bsp/marvell-cn10xxx/marvell-cn10xxx.cfg index a2f15050..878e95f2 100644 --- a/bsp/marvell-cn10xxx/marvell-cn10xxx.cfg +++ b/bsp/marvell-cn10xxx/marvell-cn10xxx.cfg @@ -173,6 +173,10 @@ CONFIG_ARM64_MPAM=y # MDIO device CONFIG_MDIO_DEVICE=y +# NVME +CONFIG_NVME_CORE=y +CONFIG_BLK_DEV_NVME=y + # Currently this driver only work for cn96xx, but it is set to 'm' by default. # So we have to disable it explicitly. # CONFIG_OCTEONTX_SERDES is not set -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13484): https://lists.yoctoproject.org/g/linux-yocto/message/13484 Mute This Topic: https://lists.yoctoproject.org/mt/103756433/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] enable NVME kernel config for marvell cn102xx
Hi Bruce, Please help to merge code 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 (#13483): https://lists.yoctoproject.org/g/linux-yocto/message/13483 Mute This Topic: https://lists.yoctoproject.org/mt/103756432/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] kernel code for for marvell octeon
Hi Bruce, Please help to merge following PR into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 85675a982b45af594a8b7066ec345d9ce9253b3a: Merge branch 'v6.1/standard/base' into v6.1/standard/cn-sdkv5.15/octeon (2024-01-03 15:53:12 -0500) 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 341bc92efd79b66c100f15002982b0d14bb9c28f: Revert "mmc: revert emmc timing changes" (2024-01-09 09:57:57 +0800) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (2): arm_mpam: make an explicit of_node_get call arm_mpam: Fix lock related warnings Anagha K J (1): net: mvpp2: fix mvpp2 IRQ affinity issue Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Bharat Bhushan (1): drivers: watchdog: marvell_gti: fix zero pretimeout handling Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Geetha sowjanya (3): octeontx2-pf: TC flower offload support for ICMP type and code octeontx2-pf: Add support for offload tc with skbedit mark action octeontx2-af: Dump hw register state on error George Cherian (2): genirq: Increase the number of interrupters amba: Honour the CPU association while adding a new device Hariprasad Kelam (6): octeontx2-pf: Tc flower offload support for MPLS octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration Harman Kalra (1): octeontx2: fix race condition between up and down mbox Harshal Chaudhari (1): dt-bindings: cn9130: Add r1p3 C dts config documents Jayanthi Annadurai (1): edac: octeontx: Add support for GIC RAS reporting Jenishkumar Patel (4): net: mvpp2: resolved ioctl issue when initialising mvpp2 driver net: mvpp2: resolved Segmentation fault when running DPDK net: mvpp2: corrected BM pool size net: mvpp2: fix ethernet issue caused after stopping DPDK app Linu Cherian (1): coresight: etm4x: Rework OcteonTx2 quirk Muhammad Asim Zahid (1): resctrl: fix NULL pointer dereference Naveen Mamindlapalli (3): octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Revert "octeontx-bphy-netdev: enable mbt full drop enable" octeontx2-af: Always configure NIX TX link credits based on max frame size Paul Way (4): mmc: added delay_element calculation from dll lock mmc: change read dqs cmd and read dqs values MMC: fix the init_timings lookup. Revert "mmc: revert emmc timing changes" Pavan Nikhilesh (7): octeontx2-af: add mbox to capture counters octeontx2-dpi: fix incorrect chunk size config octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Petr Malat (1): coresight: Add panic notifier cleanup Piyush Malgujar (3): driver: mmc: sdhci: Add ACPI check driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. Ratheesh Kannoth (11): net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-pf: fix page_pool creation fail for rings > 32k octeontx2-pf: Fix page pool cache index corruption. octeontx2-pf: Fix page pool frag allocation failure. octeontx2-af: Added missed code while back porting. octeontx2-af: Fix printing of SPI field Ruiqiang Hao (3): octeontx2: pf: fix the buffer size of sending queues octeontx2: nic: remove function otx2_qos_sq_setup() octeontx2: nic: drop the duplicate invoking Sai Krishna (5): Revert "octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter." octeontx2-pf: Use PTP HW timestamp counter atomic update feature octeontx2-vf: Fix VF mbox up message error on PTP RX enable octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Add TC flower offload support for TCP flags Satha Rao (1): octeontx2-dpi: extend sysfs to dump DPI PF registers Simon Horman (1): octeontx2-af: update type of prof
[linux-yocto][linux-yocto v6.1] kernel code for for marvell octeon[RT]
Hi Bruce, Please help to merge following PR into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 85dcdbd7ee65c485f5d8f5607e47f5e1e1085439: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/cn-sdkv5.15/octeon (2024-01-03 15:54:12 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to c4fde4e1c1093a1a8af6aaad295d1068c259cb3f: Revert "mmc: revert emmc timing changes" (2024-01-09 10:04:35 +0800) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (2): arm_mpam: make an explicit of_node_get call arm_mpam: Fix lock related warnings Anagha K J (1): net: mvpp2: fix mvpp2 IRQ affinity issue Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Bharat Bhushan (1): drivers: watchdog: marvell_gti: fix zero pretimeout handling Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Geetha sowjanya (3): octeontx2-pf: TC flower offload support for ICMP type and code octeontx2-pf: Add support for offload tc with skbedit mark action octeontx2-af: Dump hw register state on error George Cherian (2): genirq: Increase the number of interrupters amba: Honour the CPU association while adding a new device Hariprasad Kelam (6): octeontx2-pf: Tc flower offload support for MPLS octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode octeontx2-af: Enable loading more KPU profiles octeontx2-af: Fix pause frame configuration Harman Kalra (1): octeontx2: fix race condition between up and down mbox Harshal Chaudhari (1): dt-bindings: cn9130: Add r1p3 C dts config documents Jayanthi Annadurai (1): edac: octeontx: Add support for GIC RAS reporting Jenishkumar Patel (4): net: mvpp2: resolved ioctl issue when initialising mvpp2 driver net: mvpp2: resolved Segmentation fault when running DPDK net: mvpp2: corrected BM pool size net: mvpp2: fix ethernet issue caused after stopping DPDK app Linu Cherian (1): coresight: etm4x: Rework OcteonTx2 quirk Muhammad Asim Zahid (1): resctrl: fix NULL pointer dereference Naveen Mamindlapalli (3): octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Revert "octeontx-bphy-netdev: enable mbt full drop enable" octeontx2-af: Always configure NIX TX link credits based on max frame size Paul Way (4): mmc: added delay_element calculation from dll lock mmc: change read dqs cmd and read dqs values MMC: fix the init_timings lookup. Revert "mmc: revert emmc timing changes" Pavan Nikhilesh (7): octeontx2-af: add mbox to capture counters octeontx2-dpi: fix incorrect chunk size config octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Petr Malat (1): coresight: Add panic notifier cleanup Piyush Malgujar (3): driver: mmc: sdhci: Add ACPI check driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. Ratheesh Kannoth (11): net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-pf: fix page_pool creation fail for rings > 32k octeontx2-pf: Fix page pool cache index corruption. octeontx2-pf: Fix page pool frag allocation failure. octeontx2-af: Added missed code while back porting. octeontx2-af: Fix printing of SPI field Ruiqiang Hao (3): octeontx2: pf: fix the buffer size of sending queues octeontx2: nic: remove function otx2_qos_sq_setup() octeontx2: nic: drop the duplicate invoking Sai Krishna (5): Revert "octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter." octeontx2-pf: Use PTP HW timestamp counter atomic update feature octeontx2-vf: Fix VF mbox up message error on PTP RX enable octeontx2-bphy-netdev: Add SW workaround for Zero padding octeontx2-pf: Add TC flower offload support for TCP flags Satha Rao (1): octeontx2-dpi: extend sysfs to dump DPI PF registers Simon Horman (1):
[linux-yocto] [yocto-kernel-cache yocto-5.15] enable NVME kernel config for marvell cn102xx
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: yocto-kernel-cache branch: yocto-5.15 Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13395): https://lists.yoctoproject.org/g/linux-yocto/message/13395 Mute This Topic: https://lists.yoctoproject.org/mt/103031448/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn10xxx: enable NVME config for cn102xx
From: Ruiqiang Hao The Marvell cn102xx board has an NVME interface, so we should enable the NVME kernel configuration for this BSP. Signed-off-by: Ruiqiang Hao --- bsp/marvell-cn106xx/marvell-cn106xx.cfg | 4 1 file changed, 4 insertions(+) diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.cfg b/bsp/marvell-cn106xx/marvell-cn106xx.cfg index 5503d3fd..a33e17b0 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx.cfg +++ b/bsp/marvell-cn106xx/marvell-cn106xx.cfg @@ -173,6 +173,10 @@ CONFIG_ARM_SMMU_V3_PMU=y CONFIG_MARVELL_CN10K_TAD_PMU=y CONFIG_MARVELL_CN10K_DDR_PMU=y +# NVME +CONFIG_NVME_CORE=y +CONFIG_BLK_DEV_NVME=y + # Currently this driver only work for cn96xx, but it is set to 'm' by default. # So we have to disable it explicitly. # CONFIG_OCTEONTX_SERDES is not set -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13394): https://lists.yoctoproject.org/g/linux-yocto/message/13394 Mute This Topic: https://lists.yoctoproject.org/mt/103031447/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 v5.15] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 2efa1324ab57a44dd5196ca0996035d9c278fe37: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.4/octeon (2023-12-03 22:21:51 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.4/octeon for you to fetch changes up to 39fc298103b20471927674c93ec0149ee14dd7e1: octeontx2-pf: Fix validation in ndo_set_rx_mode callback (2023-12-04 08:28:52 +) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (1): arm_mpam: properly clean up device node object Ankur Dwivedi (2): soc: marvell: hw_access: add mapping for DPI VF BAR0 soc: marvell: hw_access: add mapping for DPI PF BAR0 Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Geetha sowjanya (5): octeontx2-af: fix truncation of smq in CN10K NIX AQ enqueue mbox handler octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages octeontx2-af: Use correct enums for NIX AQ comp code octeontx2-af: Dump hw register state on error George Cherian (2): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms amba: Honour the CPU association while adding a new device Hariprasad Kelam (6): octeontx2-af: CN10KB: fix PFC configuration octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode octeontx2-pf: Fix promisc mcam entry action octeontx2-pf: Fix validation in ndo_set_rx_mode callback Harman Kalra (1): octeontx2: fix race condition between up and down mbox Jayanthi Annadurai (2): edac: octeontx: Add error syndrome edac: octeontx: Add support for GIC RAS reporting Linu Cherian (2): coresight: etm4x: Rework OcteonTx2 quirk coresight: core: Add panic notifier cleanup Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Naveen Mamindlapalli (2): octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Revert "octeontx-bphy-netdev: enable mbt full drop enable" Pavan Nikhilesh (7): octeontx2-dpi: fix incorrect chunk size config octeontx2-af: add mbox to capture counters octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Piyush Malgujar (5): firmware: mub: Add ACPI check soc: marvell: octeontx: Using strchr to match the revision driver: mmc: sdhci: Add ACPI support driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. Ratheesh Kannoth (10): octeontx2-af: Add debug logs. net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-af: Fix devlink unregister octeontx2-af: Added missed code while back porting. octeontx2-af: Fix devlink crash Sai Krishna (1): octeontx2-af: Move validation of ptp pointer before its usage Simon Horman (1): octeontx2-af: update type of prof fields in nix_aw_enq_req Srujana Challa (5): crypto: octeontx2: add timeout for load_fvc completion poll crypto: octeontx2: fix reset of inline inbound CPT LF. octeontx2-af: reduce cpt flt interrupt vectors for cn10kb crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll Subbaraya Sundeep (6): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF octeontx2-pf: Wait till detach_resources msg is complete octeontx2-pf: Use default max_active works instead of one octeontx2-af: Always allocate low priority entries for PF Suman Ghosh (5): octeontx2-pf: Fix updating PFC configuration during running traffic octeontx2-pf: Fix graceful exit during PFC configuration failure octeontx2-af: Fix register configuration octeontx2-af: Add new mbox to support multicast/mirror offload octeontx2-pf: TC flower offload support for
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon[RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit e8d26acb735ae26d514246fde2457abf77cb3431: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.4/octeon (2023-12-03 22:54:15 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.4/octeon for you to fetch changes up to 867076fd7ed82c49edccd35a77df51028df44522: octeontx2-pf: Fix validation in ndo_set_rx_mode callback (2023-12-04 08:29:58 +) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (1): arm_mpam: properly clean up device node object Ankur Dwivedi (2): soc: marvell: hw_access: add mapping for DPI VF BAR0 soc: marvell: hw_access: add mapping for DPI PF BAR0 Anshumali Gaur (1): net: thunderx: update dmac filter when user changes mac addr Chandrakala Chavva (1): driver: edac: octeontx: Improvements to GIC RAS handler Geetha sowjanya (5): octeontx2-af: fix truncation of smq in CN10K NIX AQ enqueue mbox handler octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages octeontx2-af: Use correct enums for NIX AQ comp code octeontx2-af: Dump hw register state on error George Cherian (2): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms amba: Honour the CPU association while adding a new device Hariprasad Kelam (6): octeontx2-af: CN10KB: fix PFC configuration octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode octeontx2-pf: Fix promisc mcam entry action octeontx2-pf: Fix validation in ndo_set_rx_mode callback Harman Kalra (1): octeontx2: fix race condition between up and down mbox Jayanthi Annadurai (2): edac: octeontx: Add error syndrome edac: octeontx: Add support for GIC RAS reporting Linu Cherian (2): coresight: etm4x: Rework OcteonTx2 quirk coresight: core: Add panic notifier cleanup Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Naveen Mamindlapalli (2): octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Revert "octeontx-bphy-netdev: enable mbt full drop enable" Pavan Nikhilesh (7): octeontx2-dpi: fix incorrect chunk size config octeontx2-af: add mbox to capture counters octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound octeontx2-af: disable preemption when enabling TIM octeontx2-af: clear state on TIM ring disable octeontx2-af: add TIM error af interrupt handlers Piyush Malgujar (5): firmware: mub: Add ACPI check soc: marvell: octeontx: Using strchr to match the revision driver: mmc: sdhci: Add ACPI support driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K soc: marvell: otx2: Add Kconfig option for otx2-ghes-init file. Ratheesh Kannoth (10): octeontx2-af: Add debug logs. net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-af: Fix devlink unregister octeontx2-af: Added missed code while back porting. octeontx2-af: Fix devlink crash Sai Krishna (1): octeontx2-af: Move validation of ptp pointer before its usage Simon Horman (1): octeontx2-af: update type of prof fields in nix_aw_enq_req Srujana Challa (5): crypto: octeontx2: add timeout for load_fvc completion poll crypto: octeontx2: fix reset of inline inbound CPT LF. octeontx2-af: reduce cpt flt interrupt vectors for cn10kb crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll Subbaraya Sundeep (6): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF octeontx2-pf: Wait till detach_resources msg is complete octeontx2-pf: Use default max_active works instead of one octeontx2-af: Always allocate low priority entries for PF Suman Ghosh (5): octeontx2-pf: Fix updating PFC configuration during running traffic octeontx2-pf: Fix graceful exit during PFC configuration failure octeontx2-af: Fix register configuration octeontx2-af: Add new mbox to support multicast/mirror offload octeontx2-pf:
[linux-yocto] [PATCH] spi: cadence-xspi: Wrap the access to cdns_xspi_dev::cs_defined in #if
From: Kevin Hao The cdns_xspi_dev::cs_defined is only defined when CONFIG_SPI_CADENCE_MRVL_XSPI is enabled. So wrap the access to cdns_xspi_dev::cs_defined in #if to fix the build failure. Signed-off-by: Kevin Hao Signed-off-by: Bruce Ashfield --- drivers/spi/spi-cadence-xspi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c index 81e71f19411f..e19170cf2448 100644 --- a/drivers/spi/spi-cadence-xspi.c +++ b/drivers/spi/spi-cadence-xspi.c @@ -1138,7 +1138,9 @@ static int cdns_xspi_of_get_plat_data(struct platform_device *pdev) fwnode_handle_put(fwnode_child); return -ENXIO; } +#if IS_ENABLED(CONFIG_SPI_CADENCE_MRVL_XSPI) cdns_xspi->cs_defined |= BIT(cs); +#endif } return 0; -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13316): https://lists.yoctoproject.org/g/linux-yocto/message/13316 Mute This Topic: https://lists.yoctoproject.org/mt/102825160/21656 Mute #if:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/if 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 v5.15] fix patch for marvell octeon xspi driver [RT]
Hi Bruce, This fix patch is from branch: v5.15/standard/cn-sdkv5.15/octeon Please help to merge this into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13315): https://lists.yoctoproject.org/g/linux-yocto/message/13315 Mute This Topic: https://lists.yoctoproject.org/mt/102825159/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn106xx: introduce machine name marvell-cn10xxx
From: Ruiqiang Hao Introduce new machine name marvell-cn10xxx to be compatible with the marvell-cn102xx and marvell-cn103xx. Signed-off-by: Ruiqiang Hao --- bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc | 1 + bsp/marvell-cn106xx/marvell-cn106xx-standard.scc | 1 + 2 files changed, 2 insertions(+) diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc b/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc index 8733cbad..2a695820 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc +++ b/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc @@ -1,4 +1,5 @@ define KMACHINE marvell-cn106xx +define KMACHINE marvell-cn10xxx define KTYPE preempt-rt define KARCH arm64 diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc b/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc index 037540b1..bbc892c7 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc +++ b/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc @@ -1,5 +1,6 @@ # SPDX-License-Identifier: MIT define KMACHINE marvell-cn106xx +define KMACHINE marvell-cn10xxx define KTYPE standard define KARCH arm64 -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13313): https://lists.yoctoproject.org/g/linux-yocto/message/13313 Mute This Topic: https://lists.yoctoproject.org/mt/102824854/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-5.15] add a new machine name to be compatible with marvell 102xx and 103xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: yocto-kernel-cache branch: yocto-5.15 Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13312): https://lists.yoctoproject.org/g/linux-yocto/message/13312 Mute This Topic: https://lists.yoctoproject.org/mt/102824853/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 v5.15] kernel code for marvell octeon[RT]
Hi Bruce, I rebased preempt-rt branch for marvell octeon. Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 144746cb72520283df1078a0c00d1ada189c9059: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2023-11-17 12:55:23 -0500) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 6e7aa4b2845e2ebb110e6ea119d6ddd8cabe057d: octeontx2-af: Added missed code while back porting. (2023-11-27 02:49:42 +) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (1): arm_mpam: make an explicit of_node_get call Anagha K J (1): net: mvpp2: fix mvpp2 IRQ affinity issue Geetha sowjanya (3): octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages octeontx2-af: Move mutex lock to specific function George Cherian (2): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms genirq: Increase the number of interrupters Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (5): octeontx2-af: CN10KB: fix PFC configuration octeontx2-pf: Tc flower offload support for MPLS octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode Harman Kalra (1): octeontx2: fix race condition between up and down mbox Jayanthi Annadurai (1): edac: octeontx: Add error syndrome Jenishkumar Patel (3): net: mvpp2: code changes to support MUSDK for cn9130crb-r1p3 net: mvpp2: resolved ioctl issue when initialising mvpp2 driver net: mvpp2: resolved Segmentation fault when running DPDK Linu Cherian (1): coresight: etm4x: Rework OcteonTx2 quirk Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Naveen Mamindlapalli (2): octeontx2-bphy-netdev: Clear MBT full condition in ndo_open callback octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Pavan Nikhilesh (4): octeontx2-af: add mbox to capture counters octeontx2-dpi: fix incorrect chunk size config octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound Piyush Malgujar (3): soc: marvell: otx2: Add CN10 check driver: mmc: sdhci: Add ACPI check driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K Ratheesh Kannoth (13): octeontx2-pf: Set maximum queue size to 16K octeontx2-af: Add debug logs. net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-pf: fix page_pool creation fail for rings > 32k octeontx2-pf: Fix page pool cache index corruption. octeontx2-af: Fix devlink unregister octeontx2-pf: Fix page pool frag allocation failure. octeontx2-af: Added missed code while back porting. Sai Krishna (3): octeontx2-af: Move validation of ptp pointer before its usage Revert "octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter." octeontx2-pf: Use PTP HW timestamp counter atomic update feature Satha Rao (1): octeontx2-dpi: extend sysfs to dump DPI PF registers Simon Horman (1): octeontx2-af: update type of prof fields in nix_aw_enq_req Srujana Challa (4): crypto: octeontx2: add timeout for load_fvc completion poll octeontx2-af: reduce cpt flt interrupt vectors for cn10kb crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll Subbaraya Sundeep (3): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF Suman Ghosh (4): octeontx2-pf: Fix check to identify if a ntuple rule has VF action octeontx2-pf: Fix updating PFC configuration during running traffic octeontx2-pf: Fix graceful exit during PFC configuration failure octeontx2-af: Added missing debug prints Suneel Garapati (6): drivers: i2c-octeon-core: Add recovery for WDOG_TOUT error status drivers: cadence-xspi: Optimize workaround logic drivers: spi-cadence-xspi: Fix clock divisor change logic drivers: pci: probe: Read after write fixup for PBUS register drivers: soc: mrvl_swup: Fix out of order smc call
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 93e1a44de8eb10eeb4f96e33d36fc4b6207fc003: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.15/octeon (2023-10-27 16:03:24 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.15/octeon for you to fetch changes up to 8798fabd8400c44478fd57140f59767091182889: octeontx2-af: Added missed code while back porting. (2023-11-13 15:23:32 +0800) Amit Prakash Shukla (1): octeontx2-dpi: configure dma engine FIFO Amit Singh Tomar (1): arm_mpam: make an explicit of_node_get call Anagha K J (1): net: mvpp2: fix mvpp2 IRQ affinity issue Geetha sowjanya (3): octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages octeontx2-af: Move mutex lock to specific function George Cherian (2): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms genirq: Increase the number of interrupters Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (5): octeontx2-af: CN10KB: fix PFC configuration octeontx2-pf: Tc flower offload support for MPLS octeontx2-pf: ethtool: Remove dependency of phyad octeontx-pf: Update SGMII mode mapping octeontx2-pf: ethtool: support multi advertise mode Harman Kalra (1): octeontx2: fix race condition between up and down mbox Jayanthi Annadurai (1): edac: octeontx: Add error syndrome Jenishkumar Patel (3): net: mvpp2: code changes to support MUSDK for cn9130crb-r1p3 net: mvpp2: resolved ioctl issue when initialising mvpp2 driver net: mvpp2: resolved Segmentation fault when running DPDK Linu Cherian (1): coresight: etm4x: Rework OcteonTx2 quirk Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Naveen Mamindlapalli (2): octeontx2-bphy-netdev: Clear MBT full condition in ndo_open callback octeontx2-bphy-netdev: Fix PTP PHC sw timecounter reset ioctl Pavan Nikhilesh (4): octeontx2-af: add mbox to capture counters octeontx2-dpi: fix incorrect chunk size config octeontx2-af: prevent TIM register read reorder octeontx2-af: account for cycle wraparound Piyush Malgujar (3): soc: marvell: otx2: Add CN10 check driver: mmc: sdhci: Add ACPI check driver: mmc: sdhci-cadence: ACPI support added for eMMC driver for CN10K Ratheesh Kannoth (13): octeontx2-pf: Set maximum queue size to 16K octeontx2-af: Add debug logs. net: flow_dissector: Use 64bits for used_keys net: flow_dissector: Add IPSEC dissector tc: flower: support for SPI tc: flower: Enable offload support for SPI field. octeontx2-pf: TC flower offload for SPI field octeontx2-af: Harden offlod rule validation octeontx2-pf: fix page_pool creation fail for rings > 32k octeontx2-pf: Fix page pool cache index corruption. octeontx2-af: Fix devlink unregister octeontx2-pf: Fix page pool frag allocation failure. octeontx2-af: Added missed code while back porting. Sai Krishna (3): octeontx2-af: Move validation of ptp pointer before its usage Revert "octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter." octeontx2-pf: Use PTP HW timestamp counter atomic update feature Satha Rao (1): octeontx2-dpi: extend sysfs to dump DPI PF registers Simon Horman (1): octeontx2-af: update type of prof fields in nix_aw_enq_req Srujana Challa (4): crypto: octeontx2: add timeout for load_fvc completion poll octeontx2-af: reduce cpt flt interrupt vectors for cn10kb crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll crypto: octeontx2: increase timeout value of load_fvc CPT instruction poll Subbaraya Sundeep (3): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF Suman Ghosh (4): octeontx2-pf: Fix check to identify if a ntuple rule has VF action octeontx2-pf: Fix updating PFC configuration during running traffic octeontx2-pf: Fix graceful exit during PFC configuration failure octeontx2-af: Added missing debug prints Suneel Garapati (6): drivers: i2c-octeon-core: Add recovery for WDOG_TOUT error status drivers: cadence-xspi: Optimize workaround logic drivers: spi-cadence-xspi: Fix clock divisor change logic drivers: pci: probe: Read after write fixup for PBUS register drivers: soc: mrvl_swup: Fix out of order smc call in get_version drivers: spi:
[linux-yocto] [PATCH] octeontx-83xx: fix compilation issue caused by using uninitialized variable
From: Ruiqiang Hao commit 1a7449b36bec ("octeontx-83: domain based driver for 83xx") use one uninitialized variable. Fix it to avoid following build warning: drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c: In function 'pki_ecc_intr_handler': drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c:38:23: warning: 'pki' is used uninitialized [-Wuninitialized] 38 | struct pki_t *pki = (struct pki_t *)pki; | ^~~ drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c:38:23: note: 'pki' was declared here 38 | struct pki_t *pki = (struct pki_t *)pki; | ^~~ Signed-off-by: Ruiqiang Hao --- drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c b/drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c index 9800d283dfcb..83538710f09a 100644 --- a/drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c +++ b/drivers/net/ethernet/cavium/octeontx-83xx/pki_main.c @@ -35,7 +35,7 @@ static irqreturn_t pki_gen_intr_handler(int irq, void *pki_irq) static irqreturn_t pki_ecc_intr_handler(int irq, void *pki_irq) { - struct pki_t *pki = (struct pki_t *)pki; + struct pki_t *pki = (struct pki_t *)pki_irq; u64 reg; dev_err(>pdev->dev, "Received ECC INT\n"); -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13229): https://lists.yoctoproject.org/g/linux-yocto/message/13229 Mute This Topic: https://lists.yoctoproject.org/mt/102173117/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] kernel code for marvell octeon
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13230): https://lists.yoctoproject.org/g/linux-yocto/message/13230 Mute This Topic: https://lists.yoctoproject.org/mt/102173118/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] kernel code for marvell octeon
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13186): https://lists.yoctoproject.org/g/linux-yocto/message/13186 Mute This Topic: https://lists.yoctoproject.org/mt/101991767/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] firmware: arm_scmi: remove the early break to avoid initialization failed
From: Ruiqiang Hao commit 3b0041f6e10e ("firmware: arm_scmi: Validate BASE_DISCOVER_LIST_PROTOCOLS response") introduced a rigorous verification mechanism, will break early when calc_list_sz > real_list_sz, which will cause all scmi protocol initialization to fail. Remove the break statement for Marvell's firmware as a workaround to avoid this issue. If Marvell's arm-scmi firmware driver updated later, we can restore it again. arm-scmi firmware:scmi: SCMI Notifications - Core Enabled. arm-scmi firmware:scmi: Malformed reply - real_sz:6 calc_sz:8 (loop_num_ret:6) arm-scmi firmware:scmi: SCMI Protocol v1.0 'Marvell:Marvell' Firmware version 0x1 arm-scmi firmware:scmi: SCMI protocol 17 not implemented arm-scmi firmware:scmi: SCMI protocol 19 not implemented arm-scmi firmware:scmi: SCMI protocol 20 not implemented arm-scmi firmware:scmi: SCMI protocol 21 not implemented Signed-off-by: Ruiqiang Hao --- drivers/firmware/arm_scmi/base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/base.c b/drivers/firmware/arm_scmi/base.c index a52f084a6a87..d5d34076c2b3 100644 --- a/drivers/firmware/arm_scmi/base.c +++ b/drivers/firmware/arm_scmi/base.c @@ -230,7 +230,6 @@ scmi_base_implementation_list_get(const struct scmi_protocol_handle *ph, */ if (calc_list_sz > real_list_sz) { ret = -EPROTO; - break; } } -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13187): https://lists.yoctoproject.org/g/linux-yocto/message/13187 Mute This Topic: https://lists.yoctoproject.org/mt/101991768/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] Rename marvell-cn106xx to marvell-cn10xxx
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 (#13182): https://lists.yoctoproject.org/g/linux-yocto/message/13182 Mute This Topic: https://lists.yoctoproject.org/mt/101935165/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn10xxx: rename marvell-cn106xx to new name
From: Ruiqiang Hao To add support for marvell-cn102xx and marvell-cn103xx, rename origin name to marvell-cn10xxx. Signed-off-by: Ruiqiang Hao --- .../marvell-cn10xxx-preempt-rt.scc} | 4 ++-- .../marvell-cn10xxx-standard.scc} | 4 ++-- .../marvell-cn10xxx.cfg} | 0 .../marvell-cn10xxx.scc} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename bsp/{marvell-cn106xx/marvell-cn106xx-preempt-rt.scc => marvell-cn10xxx/marvell-cn10xxx-preempt-rt.scc} (54%) rename bsp/{marvell-cn106xx/marvell-cn106xx-standard.scc => marvell-cn10xxx/marvell-cn10xxx-standard.scc} (62%) rename bsp/{marvell-cn106xx/marvell-cn106xx.cfg => marvell-cn10xxx/marvell-cn10xxx.cfg} (100%) rename bsp/{marvell-cn106xx/marvell-cn106xx.scc => marvell-cn10xxx/marvell-cn10xxx.scc} (86%) diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc b/bsp/marvell-cn10xxx/marvell-cn10xxx-preempt-rt.scc similarity index 54% rename from bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc rename to bsp/marvell-cn10xxx/marvell-cn10xxx-preempt-rt.scc index 8733cbad..a0ed4819 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc +++ b/bsp/marvell-cn10xxx/marvell-cn10xxx-preempt-rt.scc @@ -1,7 +1,7 @@ -define KMACHINE marvell-cn106xx +define KMACHINE marvell-cn10xxx define KTYPE preempt-rt define KARCH arm64 include ktypes/preempt-rt -include marvell-cn106xx.scc +include marvell-cn10xxx.scc diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc b/bsp/marvell-cn10xxx/marvell-cn10xxx-standard.scc similarity index 62% rename from bsp/marvell-cn106xx/marvell-cn106xx-standard.scc rename to bsp/marvell-cn10xxx/marvell-cn10xxx-standard.scc index 037540b1..03115305 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc +++ b/bsp/marvell-cn10xxx/marvell-cn10xxx-standard.scc @@ -1,8 +1,8 @@ # SPDX-License-Identifier: MIT -define KMACHINE marvell-cn106xx +define KMACHINE marvell-cn10xxx define KTYPE standard define KARCH arm64 include ktypes/standard -include marvell-cn106xx.scc +include marvell-cn10xxx.scc diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.cfg b/bsp/marvell-cn10xxx/marvell-cn10xxx.cfg similarity index 100% rename from bsp/marvell-cn106xx/marvell-cn106xx.cfg rename to bsp/marvell-cn10xxx/marvell-cn10xxx.cfg diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.scc b/bsp/marvell-cn10xxx/marvell-cn10xxx.scc similarity index 86% rename from bsp/marvell-cn106xx/marvell-cn106xx.scc rename to bsp/marvell-cn10xxx/marvell-cn10xxx.scc index a809af52..f72630d7 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx.scc +++ b/bsp/marvell-cn10xxx/marvell-cn10xxx.scc @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -kconf hardware marvell-cn106xx.cfg +kconf hardware marvell-cn10xxx.cfg kconf hardware features/edac/edac.cfg include cfg/usb-mass-storage.scc -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13181): https://lists.yoctoproject.org/g/linux-yocto/message/13181 Mute This Topic: https://lists.yoctoproject.org/mt/101935164/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] fix 8a25f2e93f16 ("octeontx2-pf: remove redundant invoking of otx2_sync_mbox_msg()" for octeon RT
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13164): https://lists.yoctoproject.org/g/linux-yocto/message/13164 Mute This Topic: https://lists.yoctoproject.org/mt/101869739/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] octeontx2-pf: restore function call that were removed by mistake
From: Ruiqiang Hao commit 8a25f2e93f16 ("octeontx2-pf: remove redundant invoking of otx2_sync_mbox_msg()") removed the correct function call by mistake, restore it. Signed-off-by: Ruiqiang Hao --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c index 514587665d84..8fddd37bd33f 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c @@ -806,6 +806,10 @@ int otx2_txsch_alloc(struct otx2_nic *pfvf) req->schq[NIX_TXSCH_LVL_TL4] = chan_cnt; } + rc = otx2_sync_mbox_msg(>mbox); + if (rc) + return rc; + rsp = (struct nix_txsch_alloc_rsp *) otx2_mbox_get_rsp(>mbox.mbox, 0, >hdr); if (IS_ERR(rsp)) -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13165): https://lists.yoctoproject.org/g/linux-yocto/message/13165 Mute This Topic: https://lists.yoctoproject.org/mt/101869740/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto][linux-yocto v6.1] fix patch for marvell cn96xx
The condition being removed wasn't in exactly the same place on the -rt brances, so I fixedup the patch when applying it. Both branches should be fixed. I just realized that RT branch and Standard branch are different when processing merges, this patch is not applicable on the RT branch. I will send a pull-request later to fix this. Thanks, Ruiqiang From: Bruce Ashfield Sent: Monday, October 9, 2023 20:02 To: Hao, Ruiqiang Cc: linux-yocto@lists.yoctoproject.org Subject: Re: [linux-yocto][linux-yocto v6.1] fix patch for marvell cn96xx CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: [linux-yocto][linux-yocto v6.1] fix patch for marvell cn96xx on 09/10/2023 Ruiqiang Hao wrote: > Hi Bruce, > > Please help to merge this patch 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 The condition being removed wasn't in exactly the same place on the -rt brances, so I fixedup the patch when applying it. Both branches should be fixed. Bruce > > Thanks, > Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13162): https://lists.yoctoproject.org/g/linux-yocto/message/13162 Mute This Topic: https://lists.yoctoproject.org/mt/101845880/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] fix patch for marvell cn96xx
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13158): https://lists.yoctoproject.org/g/linux-yocto/message/13158 Mute This Topic: https://lists.yoctoproject.org/mt/101845880/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] octeontx2-pf: remove redundant invoking of otx2_sync_mbox_msg()
From: Ruiqiang Hao commit bbf258fecfff ("Merge branch 'v6.1/standard/base' into v6.1/ standard/cn-sdkv5.15/octeon") introduced redundant mbox sync operation, which will cause error when processing message NIX_TXSCH_ALLOC. Remove this invoking to solve the error below. rvu_af 0002:01:00.0: Error -406 when processing message NIX_TXSCH_ALLOC (0x8004) from PF2 rvu_nicpf 0002:03:00.0: Mbox msg response has err -406, ID 0x8004 rvu_nicpf 0002:03:00.0: Failed to allocate TXSCH Signed-off-by: Ruiqiang Hao --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 3 --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c index 3565f2be31c2..8fddd37bd33f 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c @@ -797,9 +797,6 @@ int otx2_txsch_alloc(struct otx2_nic *pfvf) /* Request one schq per level */ for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++) req->schq[lvl] = 1; - rc = otx2_sync_mbox_msg(>mbox); - if (rc) - return rc; if (is_otx2_sdpvf(pfvf->pdev) && chan_cnt > 1) { /* For SDP, backpressure is asserted at TL4, diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h index a09aaedb77f7..c946717c5610 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h @@ -1010,7 +1010,6 @@ int otx2_config_nix_queues(struct otx2_nic *pfvf); int otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool pfc_en); int otx2_txsch_alloc(struct otx2_nic *pfvf); int otx2_txschq_stop(struct otx2_nic *pfvf); -void otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq); void otx2_sqb_flush(struct otx2_nic *pfvf); int __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool, dma_addr_t *dma); -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13159): https://lists.yoctoproject.org/g/linux-yocto/message/13159 Mute This Topic: https://lists.yoctoproject.org/mt/101845884/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] kernel code for marvell octeon [RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit db3c7e43c6af49aa6711d7a0f44db5a1eeda8b52: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/cn-sdkv5.15/octeon (2023-09-08 09:17:50 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 9a7f451ba70f2158c408e3ed6f87f737836c6ed1: octeontx2-af: Add debug logs. (2023-09-14 07:50:22 +) Geetha sowjanya (3): octeontx2-af: fix truncation of smq in CN10K NIX AQ enqueue mbox handler octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages George Cherian (1): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (1): octeontx2-af: CN10KB: fix PFC configuration Jayanthi Annadurai (1): edac: octeontx: Add error syndrome Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Piyush Malgujar (1): soc: marvell: otx2: Add CN10 check Ratheesh Kannoth (2): octeontx2-pf: Set maximum queue size to 16K octeontx2-af: Add debug logs. Srujana Challa (1): crypto: octeontx2: add timeout for load_fvc completion poll Subbaraya Sundeep (3): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF Suneel Garapati (2): drivers: i2c-octeon-core: Add recovery for WDOG_TOUT error status drivers: cadence-xspi: Optimize workaround logic .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c| 14 +- drivers/edac/octeontx_edac.c | 2 +- drivers/edac/octeontx_edac.h | 1 + drivers/firmware/octeontx2/memtest.c | 64 -- drivers/i2c/busses/i2c-octeon-core.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 6 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 17 +-- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 30 - .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 4 + .../net/ethernet/marvell/octeontx2/af/rvu_trace.c | 1 + .../net/ethernet/marvell/octeontx2/af/rvu_trace.h | 51 ++-- .../ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 137 ++-- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 4 +- .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 2 +- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 67 -- .../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 2 +- drivers/perf/marvell_cn10k_tad_pmu.c | 13 +- .../soc/marvell/octeontx2-ghes/otx2-ghes-init.c| 5 + drivers/spi/Kconfig| 61 +++-- drivers/spi/spi-cadence-xspi.c | 141 + drivers/watchdog/marvell_gti_wdt.c | 1 + 23 files changed, 378 insertions(+), 251 deletions(-) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13062): https://lists.yoctoproject.org/g/linux-yocto/message/13062 Mute This Topic: https://lists.yoctoproject.org/mt/101354175/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] kernel code for marvell octeon
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 3d93ac1a6e2dfe1550842d9c597969ba7b855f3d: Merge branch 'v6.1/standard/base' into v6.1/standard/cn-sdkv5.15/octeon (2023-09-08 09:17:37 -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 de65af86e11d81f91b26df0714133da69f509444: octeontx2-af: Add debug logs. (2023-09-14 02:07:22 +) Geetha sowjanya (3): octeontx2-af: fix truncation of smq in CN10K NIX AQ enqueue mbox handler octeontx2-pf: Fix dangling pointers in the netdev qset octeontx2-pf: Add more debug messages George Cherian (1): drivers: watchdog: marvell_gti: Program the max_hw_heartbeat_ms Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (1): octeontx2-af: CN10KB: fix PFC configuration Jayanthi Annadurai (1): edac: octeontx: Add error syndrome Michael Lawnick (1): drivers: octeontx2: memtest: Retry on failing SPI lock Piyush Malgujar (1): soc: marvell: otx2: Add CN10 check Ratheesh Kannoth (2): octeontx2-pf: Set maximum queue size to 16K octeontx2-af: Add debug logs. Srujana Challa (1): crypto: octeontx2: add timeout for load_fvc completion poll Subbaraya Sundeep (3): octeontx2-pf: mcs: Generate hash key using ecb(aes) octeontx2: Improve mailbox tracepoints for debugging octeontx2-af: Consider the action set by PF Suneel Garapati (2): drivers: i2c-octeon-core: Add recovery for WDOG_TOUT error status drivers: cadence-xspi: Optimize workaround logic .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c| 14 +- drivers/edac/octeontx_edac.c | 2 +- drivers/edac/octeontx_edac.h | 1 + drivers/firmware/octeontx2/memtest.c | 64 -- drivers/i2c/busses/i2c-octeon-core.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 6 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c| 17 +-- drivers/net/ethernet/marvell/octeontx2/af/rvu.c| 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c| 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c| 30 - .../net/ethernet/marvell/octeontx2/af/rvu_npc.c| 4 + .../net/ethernet/marvell/octeontx2/af/rvu_trace.c | 1 + .../net/ethernet/marvell/octeontx2/af/rvu_trace.h | 51 ++-- .../ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 137 ++-- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 4 +- .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 2 +- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 67 -- .../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 2 +- drivers/perf/marvell_cn10k_tad_pmu.c | 13 +- .../soc/marvell/octeontx2-ghes/otx2-ghes-init.c| 5 + drivers/spi/Kconfig| 61 +++-- drivers/spi/spi-cadence-xspi.c | 141 + drivers/watchdog/marvell_gti_wdt.c | 1 + 23 files changed, 378 insertions(+), 251 deletions(-) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13061): https://lists.yoctoproject.org/g/linux-yocto/message/13061 Mute This Topic: https://lists.yoctoproject.org/mt/101354174/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn106xx: add marvell-cn106xx kernel config
From: Ruiqiang Hao Add marvell-cn106xx kernel config for linux v6.1. This kernel configuration is applicable to the Marvell SDK 12. Signed-off-by: Ruiqiang Hao --- .../marvell-cn106xx-preempt-rt.scc| 7 + .../marvell-cn106xx-standard.scc | 8 + bsp/marvell-cn106xx/marvell-cn106xx.cfg | 178 ++ bsp/marvell-cn106xx/marvell-cn106xx.scc | 9 + 4 files changed, 202 insertions(+) create mode 100644 bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc create mode 100644 bsp/marvell-cn106xx/marvell-cn106xx-standard.scc create mode 100644 bsp/marvell-cn106xx/marvell-cn106xx.cfg create mode 100644 bsp/marvell-cn106xx/marvell-cn106xx.scc diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc b/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc new file mode 100644 index ..8733cbad --- /dev/null +++ b/bsp/marvell-cn106xx/marvell-cn106xx-preempt-rt.scc @@ -0,0 +1,7 @@ +define KMACHINE marvell-cn106xx +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include marvell-cn106xx.scc diff --git a/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc b/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc new file mode 100644 index ..037540b1 --- /dev/null +++ b/bsp/marvell-cn106xx/marvell-cn106xx-standard.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE marvell-cn106xx +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include marvell-cn106xx.scc diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.cfg b/bsp/marvell-cn106xx/marvell-cn106xx.cfg new file mode 100644 index ..a2f15050 --- /dev/null +++ b/bsp/marvell-cn106xx/marvell-cn106xx.cfg @@ -0,0 +1,178 @@ +# SPDX-License-Identifier: MIT +.. +.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_ARM64=y +CONFIG_ARM64_VA_BITS_48=y +CONFIG_ARM64_64K_PAGES=y +CONFIG_ARM_SMMU_V3=y +CONFIG_NR_CPUS=24 +CONFIG_ARCH_THUNDER=y +CONFIG_ARCH_THUNDER2=y + +# Since we use the 64K pages, so we have to enable this for the multilib support +CONFIG_EXPERT=y + +# PCIe +CONFIG_PCI=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_PCIE=y +CONFIG_PCI_IOV=y +CONFIG_PCI_HOST_GENERIC=y + +# Ethernet +CONFIG_OCTEONTX2_AF=y +CONFIG_OCTEONTX2_PF=y +CONFIG_OCTEONTX2_VF=y +CONFIG_CAVIUM_PTP=y +CONFIG_PTP_1588_CLOCK=y +CONFIG_DCB=y + +# DMA +CONFIG_OCTEONTX2_DPI_PF=y + +# MTD +CONFIG_MTD=y +CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_BLOCK=y + +# USB +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y + +# SPI +CONFIG_SPI=y +CONFIG_SPI_CADENCE_XSPI=y +CONFIG_SPI_CADENCE_MRVL_XSPI=y + +# I2C +CONFIG_I2C=y +CONFIG_I2C_THUNDERX=y + +# Serial +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y + +# Watchdog +CONFIG_ARM_SBSA_WATCHDOG=y + +# SD +CONFIG_MMC=y +CONFIG_MMC_CAVIUM_THUNDERX=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_CADENCE=y + +# GPIO +CONFIG_GPIOLIB=y +CONFIG_GPIO_THUNDERX=y + +# HWMON +CONFIG_SENSORS_MAX6697=y +CONFIG_SENSORS_JC42=y +CONFIG_SENSORS_ARM_SCMI=y + +# RTC +CONFIG_RTC_CLASS=y + +# PM +CONFIG_ARM_SCMI_POWER_DOMAIN=y +CONFIG_RTC_DRV_DS1307=y + +# Regulator +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_REGULATOR_GPIO=y + +# VFIO +CONFIG_VFIO=y +CONFIG_VFIO_PCI=y + +# Misc +CONFIG_EEPROM_AT24=y +CONFIG_HW_RANDOM=y +CONFIG_HW_RANDOM_CAVIUM=y +CONFIG_HW_RANDOM_CN10K=y +CONFIG_OCTEONTX_INFO=y + +# BPHY +CONFIG_MARVELL_OTX_BPHY_CTR=y +CONFIG_OCTEONTX2_BPHY_RFOE_NETDEV=y + +# Mailbox +CONFIG_MAILBOX=y +CONFIG_MVL_MHU=y + +# SCMI +CONFIG_ARM_SCMI_PROTOCOL=y + +# CLK +CONFIG_COMMON_CLK_SCMI=y + +# CPU freq +CONFIG_CPU_FREQ=y +CONFIG_ARM_SCMI_CPUFREQ=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y + +# CRYPT +CONFIG_CRYPTO_DEV_OCTEONTX2_CPT=y + +# FWLOG +CONFIG_MARVELL_FWLOG=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 + +# MARVELL_UB_FUNCTIONS +CONFIG_MARVELL_AVS_RESET=y +CONFIG_MARVELL_CN10K_MAC_MGMT=y +CONFIG_MARVELL_SFP_INFO=y +CONFIG_MARVELL_CN10K_RPRAM=y +CONFIG_MARVELL_MEMTEST=y + +# GHES +CONFIG_ACPI=y +CONFIG_ACPI_APEI=y
[linux-yocto] [yocto-kernel-cache yocto-6.1] Add kernel config for marvell cn106xx
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 (#13039): https://lists.yoctoproject.org/g/linux-yocto/message/13039 Mute This Topic: https://lists.yoctoproject.org/mt/101188791/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] kernel code for marvell cn96xx
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 5fea53f290b75bf67cce970cdaa9aa6bc0ea0bce: Merge branch 'v6.1/standard/base' into v6.1/standard/cn-sdkv5.15/octeon (2023-08-14 12:00:15 -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 4eb388761b1d7b457477284742979a6492d08599: drivers: mpam: Drop the improper assertions (2023-08-16 08:04:45 +) Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Emeel Hakim (2): vlan: Add MACsec offload operations for VLAN interface macsec: Don't rely solely on the dst MAC address to identify destination MACsec device Geetha sowjanya (5): Revert: 'octeontx2-af: Secure APR table update with the lock' octeontx2-pf: Fix xdp frame start address octeontx2-pf: Remove xdp queues on program detach octeontx2-af: mcs: Fix sa entries size octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (2): watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Hariprasad Kelam (2): octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Kevin Hao (1): drivers: mpam: Drop the improper assertions Kiran Kumar K (1): octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (6): coresight: tmc: Keep reserved region parsing common coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Min Li (2): ptp: idt82p33: Add PTP_CLK_REQ_EXTTS support ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK Naveen Mamindlapalli (7): octeontx2-bphy-netdev: Fix register offset definitions octeontx2-bphy-netdev: cnf10k: don't drop packets with macsec errors driver: mfd/misc/ptp: update renasas smu drivers to v1.0 tag ptp_clockmatrix: print driver version during probe octeontx2-pf: Use TL2 level for egress match all configuration octeontx2-bphy-netdev: Add an ioctl to reset PTP PHC sw timecounter offset octeontx-bphy-netdev: enable mbt full drop enable Nithin Dabilpuram (2): crypto: octeontx2: support setting ctx ilen for inline CPT LF octeontx2-af: avoid RXC register access in FLR on CN10KB Ratheesh Kannoth (3): octeontx2-pf: Add support for page pool octeontx2-pf: TC flower offload support for rxqueue mapping octeontx-pf: Fix Call trace' while running netdev rss test Ruiqiang Hao (2): mmc: cavium-thunderx: Drop the IRQF_NO_THREAD constraint octeontx2-pf: drop unused parts introduced by marvell SDK12 Sai Krishna (1): octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter. Sebastien Dubois (4): drivers: mrvl_swup: Add logging for clone and get_version calls drivers: mrvl_swup: Add logging for read flash call drivers: mrvl_swup: Add debug flag for SMC calls drivers: mrvl_swup: clear SMC log buffer for each SMC call Srujana Challa (3): crypto: octeontx2: add devlink option to set t106 mode crypto: octeontx2: fix opcode incase of SGv2 crypto: octeontx2: fix devlink params get callback Subbaraya Sundeep (3): octeontx2-pf: mcs: Support VLAN in clear text macsec: Use helper macsec_netdev_priv for offload drivers octeontx2-af: Remove the PF_FUNC validation for NPC transmit rules Suman Ghosh (6): octeontx2-pf: Allow ntuple rule to direct packet to VF with higher Rx queue than its PF octeontx2-pf: Fix memory leak during interface down octeontx2-af: Add a new mbox to read/write MCAM hit status octeontx2-af: Tc flower offload support for inner VLAN octeonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneously. octeontx2-af: Remove MAC address validation check Suneel Garapati (2): drivers: spi: Add arbitration support for Cadence SPI spi: Add xfer() function for cadence xSPI Sunil Goutham (1): octeontx-83: Ignore BGX operations for LBK interfaces Vasyl Gomonovych (1): driver: edac: octeontx: Init MC grain Witold Sadowski (1): drivers: spi: cadence: Reconfigure x
[linux-yocto][linux-yocto v6.1] kernel code for marvell cn96xx [RT]
Hi Bruce, Please help to merge code into our linux-yocto repo. repo: linux-yocto branch: v6.1/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit 87fb080409cccf2e6dc752164b5af988622e86dd: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/cn-sdkv5.15/octeon (2023-08-14 12:12:36 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v6.1/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 499a6c331620077037a8ed5e426e881314bcc012: drivers: mpam: Drop the improper assertions (2023-08-16 08:05:21 +) Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Emeel Hakim (2): vlan: Add MACsec offload operations for VLAN interface macsec: Don't rely solely on the dst MAC address to identify destination MACsec device Geetha sowjanya (5): Revert: 'octeontx2-af: Secure APR table update with the lock' octeontx2-pf: Fix xdp frame start address octeontx2-pf: Remove xdp queues on program detach octeontx2-af: mcs: Fix sa entries size octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (2): watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Hariprasad Kelam (2): octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Kevin Hao (1): drivers: mpam: Drop the improper assertions Kiran Kumar K (1): octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (6): coresight: tmc: Keep reserved region parsing common coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Min Li (2): ptp: idt82p33: Add PTP_CLK_REQ_EXTTS support ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK Naveen Mamindlapalli (7): octeontx2-bphy-netdev: Fix register offset definitions octeontx2-bphy-netdev: cnf10k: don't drop packets with macsec errors driver: mfd/misc/ptp: update renasas smu drivers to v1.0 tag ptp_clockmatrix: print driver version during probe octeontx2-pf: Use TL2 level for egress match all configuration octeontx2-bphy-netdev: Add an ioctl to reset PTP PHC sw timecounter offset octeontx-bphy-netdev: enable mbt full drop enable Nithin Dabilpuram (2): crypto: octeontx2: support setting ctx ilen for inline CPT LF octeontx2-af: avoid RXC register access in FLR on CN10KB Ratheesh Kannoth (3): octeontx2-pf: Add support for page pool octeontx2-pf: TC flower offload support for rxqueue mapping octeontx-pf: Fix Call trace' while running netdev rss test Ruiqiang Hao (2): mmc: cavium-thunderx: Drop the IRQF_NO_THREAD constraint octeontx2-pf: drop unused parts introduced by marvell SDK12 Sai Krishna (1): octeontx2-pf: Use HW PTP timestamp atomic update to avoid SW timecounter. Sebastien Dubois (4): drivers: mrvl_swup: Add logging for clone and get_version calls drivers: mrvl_swup: Add logging for read flash call drivers: mrvl_swup: Add debug flag for SMC calls drivers: mrvl_swup: clear SMC log buffer for each SMC call Srujana Challa (3): crypto: octeontx2: add devlink option to set t106 mode crypto: octeontx2: fix opcode incase of SGv2 crypto: octeontx2: fix devlink params get callback Subbaraya Sundeep (3): octeontx2-pf: mcs: Support VLAN in clear text macsec: Use helper macsec_netdev_priv for offload drivers octeontx2-af: Remove the PF_FUNC validation for NPC transmit rules Suman Ghosh (6): octeontx2-pf: Allow ntuple rule to direct packet to VF with higher Rx queue than its PF octeontx2-pf: Fix memory leak during interface down octeontx2-af: Add a new mbox to read/write MCAM hit status octeontx2-af: Tc flower offload support for inner VLAN octeonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneously. octeontx2-af: Remove MAC address validation check Suneel Garapati (2): drivers: spi: Add arbitration support for Cadence SPI spi: Add xfer() function for cadence xSPI Sunil Goutham (1): octeontx-83: Ignore BGX operations for LBK interfaces Vasyl Gomonovych (1): driver: edac: octeontx: Init MC grain Witold Sadowski
[linux-yocto] [PATCH 2/2] octeontx2-pf: drop unused parts introduced by marvell SDK12
From: Ruiqiang Hao commit e91e87b7adf9(octeontx2-pf: disable preemption while using per_cpu pointer) introduce following issue fixed by commit 29e9c67bf327 (octeontx2-pf: Fix the use of GFP_KERNEL in atomic context on rt) and commit 2827c4eb429d (octeontx2-pf: Avoid use of GFP_KERNEL in atomic context), drop get_cpu()/put_cpu() pair to fix this. BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:46 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 Preemption disabled at: [] otx2_rq_aura_pool_init+0x14c/0x290 CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.15.124-rt61-yocto-preempt-rt #2 Hardware name: Marvell OcteonTX CN96XX board (DT) Call trace: dump_backtrace+0x0/0x1c0 show_stack+0x20/0x30 dump_stack_lvl+0x68/0x84 dump_stack+0x18/0x34 __might_resched+0x154/0x1b0 rt_spin_lock+0x38/0xd0 __alloc_pages_bulk+0x2e0/0x5e0 __page_pool_alloc_pages_slow+0x68/0x39c page_pool_alloc_frag+0x158/0x240 __otx2_alloc_rbuf+0x60/0xc0 otx2_rq_aura_pool_init+0x1cc/0x290 otx2_open+0x238/0xa00 __dev_open+0x100/0x220 __dev_change_flags+0x1a8/0x230 dev_change_flags+0x2c/0x70 ip_auto_config+0x274/0xf58 do_one_initcall+0x4c/0x2c0 kernel_init_freeable+0x238/0x2a8 kernel_init+0x2c/0x12c ret_from_fork+0x10/0x20 Signed-off-by: Ruiqiang Hao --- .../net/ethernet/marvell/octeontx2/nic/otx2_common.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c index c3797d623977..e792b0ae399e 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c @@ -1144,7 +1144,6 @@ static void otx2_pool_refill_task(struct work_struct *work) rbpool = cq->rbpool; free_ptrs = cq->pool_ptrs; - get_cpu(); while (cq->pool_ptrs) { if (otx2_alloc_rbuf(pfvf, rbpool, )) { /* Schedule a WQ if we fails to free atleast half of the @@ -1164,7 +1163,6 @@ static void otx2_pool_refill_task(struct work_struct *work) pfvf->hw_ops->aura_freeptr(pfvf, qidx, bufptr + OTX2_HEAD_ROOM); cq->pool_ptrs--; } - put_cpu(); cq->refill_task_sched = false; } @@ -1541,7 +1539,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf) if (err) goto fail; - get_cpu(); /* Allocate pointers and free them to aura/pool */ for (qidx = 0; qidx < hw->tot_tx_queues; qidx++) { pool_id = otx2_get_pool_idx(pfvf, AURA_NIX_SQ, qidx); @@ -1565,7 +1562,6 @@ int otx2_sq_aura_pool_init(struct otx2_nic *pfvf) } err_mem: - put_cpu(); return err ? -ENOMEM : 0; fail: @@ -1606,21 +1602,18 @@ int otx2_rq_aura_pool_init(struct otx2_nic *pfvf) if (err) goto fail; - get_cpu(); /* Allocate pointers and free them to aura/pool */ for (pool_id = 0; pool_id < hw->rqpool_cnt; pool_id++) { pool = >qset.pool[pool_id]; for (ptr = 0; ptr < num_ptrs; ptr++) { err = otx2_alloc_rbuf(pfvf, pool, ); if (err) - goto err_mem; + return -ENOMEM; pfvf->hw_ops->aura_freeptr(pfvf, pool_id, bufptr + OTX2_HEAD_ROOM); } } -err_mem: - put_cpu(); - return err ? -ENOMEM : 0; + return 0; fail: otx2_mbox_reset(>mbox.mbox, 0); otx2_aura_pool_free(pfvf); -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12953): https://lists.yoctoproject.org/g/linux-yocto/message/12953 Mute This Topic: https://lists.yoctoproject.org/mt/100639429/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 v5.15] fix patches for marvell cn96xx
Hi Bruce, Please help to merge these 2 patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12951): https://lists.yoctoproject.org/g/linux-yocto/message/12951 Mute This Topic: https://lists.yoctoproject.org/mt/100639427/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 1/2] mmc: cavium-thunderx: Drop the IRQF_NO_THREAD constraint
From: Ruiqiang Hao The IRQF_NO_THREAD is added by a Marvell SDK12 patch commit 65549eba1b08 ("mmc: octeontx2: fix swiotlb buffer is full") in order to get back some of the performance loss. But in some cases (such as rt kernel), we need the capability to thread irq handler. Otherwise we would get following warnings because the normal spin lock is used in the irq handler. So drop this constraint. BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:46 in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 767, name: systemd-udevd preempt_count: 10002, expected: 0 RCU nest depth: 0, expected: 0 Preemption disabled at: [] create_object.isra.0+0xfc/0x300 CPU: 0 PID: 767 Comm: systemd-udevd Tainted: GW 5.15.124-rt61-yocto-preempt-rt #2 Hardware name: Marvell OcteonTX CN96XX board (DT) Call trace: dump_backtrace+0x0/0x1c0 show_stack+0x20/0x30 dump_stack_lvl+0x68/0x84 dump_stack+0x18/0x34 __might_resched+0x154/0x1b0 rt_spin_lock+0x38/0xd0 free_iova_fast+0x9c/0x27c __iommu_dma_unmap+0x164/0x174 iommu_dma_unmap_sg+0xb0/0x140 dma_unmap_sg_attrs+0x30/0x54 cvm_mmc_interrupt+0x2a4/0x5f0 __handle_irq_event_percpu+0x64/0x28c handle_irq_event_percpu+0x68/0xc0 handle_irq_event+0x84/0xe0 handle_fasteoi_irq+0xc4/0x234 handle_domain_irq+0xa0/0xf0 gic_handle_irq+0x60/0x154 call_on_irq_stack+0x20/0x2c do_interrupt_handler+0x5c/0x68 el1_interrupt+0x30/0x80 el1h_64_irq_handler+0x18/0x24 el1h_64_irq+0x78/0x7c _raw_spin_unlock_irqrestore+0x20/0x6c create_object.isra.0+0x19c/0x300 kmemleak_alloc+0x38/0x4c kmem_cache_alloc+0x1e8/0x320 anon_vma_clone+0x74/0x1e0 anon_vma_fork+0x34/0x1e0 dup_mm+0x38c/0x5ac copy_process+0x1594/0x16a0 kernel_clone+0x94/0x490 __do_sys_clone+0x70/0xac __arm64_sys_clone+0x28/0x3c invoke_syscall.constprop.0+0x58/0xf0 do_el0_svc+0x144/0x160 el0_svc+0x28/0xe0 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x1a0/0x1a4 Signed-off-by: Ruiqiang Hao --- drivers/mmc/host/cavium-thunderx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/cavium-thunderx.c b/drivers/mmc/host/cavium-thunderx.c index 8b8b45a43b75..5795dc7c2bb3 100644 --- a/drivers/mmc/host/cavium-thunderx.c +++ b/drivers/mmc/host/cavium-thunderx.c @@ -61,7 +61,7 @@ static int thunder_mmc_register_interrupts(struct cvm_mmc_host *host, /* register interrupts */ for (i = 0; i < nvec; i++) { ret = devm_request_irq(>dev, pci_irq_vector(pdev, i), - cvm_mmc_interrupt, IRQF_NO_THREAD, + cvm_mmc_interrupt, 0, cvm_mmc_irq_names[i], host); if (ret) return ret; -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12952): https://lists.yoctoproject.org/g/linux-yocto/message/12952 Mute This Topic: https://lists.yoctoproject.org/mt/100639428/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-5.15] Add crypto config for marvell cn106xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: yocto-kernel-cache branch: yocto-5.15 Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12948): https://lists.yoctoproject.org/g/linux-yocto/message/12948 Mute This Topic: https://lists.yoctoproject.org/mt/100636886/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn106xx: add crypto kernel config for dependency
From: Ruiqiang Hao After sync kernel with marvell SDK11.23.07, CRYPTO_DH and CRYPTO_ECDSA are depended by CRYPTO_DEV_OCTEONTX2_CPT. add them to the cfg file. Signed-off-by: Ruiqiang Hao --- bsp/marvell-cn106xx/marvell-cn106xx.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.cfg b/bsp/marvell-cn106xx/marvell-cn106xx.cfg index e64ee22d..5503d3fd 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx.cfg +++ b/bsp/marvell-cn106xx/marvell-cn106xx.cfg @@ -128,6 +128,8 @@ CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y # CRYPT +CONFIG_CRYPTO_DH=y +CONFIG_CRYPTO_ECDSA=y CONFIG_CRYPTO_DEV_OCTEONTX2_CPT=y # NPA -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12947): https://lists.yoctoproject.org/g/linux-yocto/message/12947 Mute This Topic: https://lists.yoctoproject.org/mt/100636885/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 v5.15] kernel code for marvell octeon
Hi Bruce, Please help to merge following pull request into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit db1c8a12ce471d006e214777feb071f555cdbc58: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.4/octeon (2023-08-03 13:56:50 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.4/octeon for you to fetch changes up to c90cb658559d83a6d82dfbfb974b82c38477d47d: driver:phy:macsec: MACsec SCI command corercted not to accept invalid inputs. (2023-08-08 06:12:42 +) Alexander Graf (1): ACPI: allow longer device IDs Anil Kumar Reddy (6): coresight: tmc-etr: Fix PREVBOOT mode trace buffer handling dt-bindings: coresight: Add reserved memory for TMC ETR coresight: tmc-etr: Add support to use reserved memory dt-bindings: coresight: Add metadata region property coresight: tmc: Add support for register metadata coresight: tmc: Read previous boot trace data Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Chandrakala Chavva (3): driver: edac: octeontx: Add revision check for new pass of the chip drivers: mrvl_swup: Adapt and fix memory allocation with ioctl drivers: mrvl_swup: Add additional changes to logbuffer support Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (10): octeontx2-af: mcs: Add PAB and BBE block interrupt handler octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Check sg address for null before free octeontx2-pf: Using compound/head page ref count driver: spi: cadence: Remove unused variables octeontx2-af: mcs: Fix sa entries size octeontx2-pf: Remove xdp queues on program detach octeontx2-pf: Fix xdp frame start address octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (5): watchdog: sbsa_wdog: Fix the timeout calculation drivers: watchdog: Add support for panic notifier callback watchdog: sbsa_gwdt: Enable the WDOG_STOP_ON_PANIC watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (17): octeontx2-pf: Fix resource leakage in VF driver unbind octeontx2-af: Back port upstream changes octeontx2-af: Reset MAC internal loopback in FLR octeontx2-af: Add validation for lmac type octeontx2-pf: Generate PPS OUT on PHC PTP_CLK_REQ_PEROUT octeontx2-bphy: Generate PPS OUT on PHC PTP_CLK_REQ_PEROUT octeontx2-pf: dont configure ptp one-step for non-sync packets octeontx2-af: Do not skip probe for RPM_USX Octeontx2-af: Fix cgx link notification issue octeontx2-af: CN10KB: Add USGMII LMAC mode octeontx2-af: Fix wrong cgx link notification error message octeontx2-pf: fix scheduler queue free order octeontx2-pf: Define new ethtool modes for CN10KB octeontx2-af: Add validation before accessing cgx device octeontx2-af: Fix RPM and NIX channel mapping octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Janne Kukkonen (2): octeontx2-bphy-netdev: Fix ioctl OTX2_CPRI_IOCTL_LINK_EVENT cpri context octeontx2-bphy-netdev: Fix OTX2_RFOE_IOCTL_RX_IND_CFG in case of CNF10K Jenishkumar Patel (1): net: mvpp2: fix mvpp2 IRQ affinity issue Kiran Kumar K (4): octeontx2-af: Move EOH pointer on unknown ethertype for QINQ octeontx2-af: Add KPU parsing for custom data as custom Ltype octeontx2-af: Fix mcam match with second pass rules for VF octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (9): dt-bindings: coresight: ETF can use reserved region Revert "coresight: Add Coresight kdump support" Revert "coresight: Add provision for kdump sync callbacks" coresight: tmc: Keep reserved region parsing common coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Mikko Suni (1): octeontx2-bphy-netdev: Avoid kernel crash when psw jd_ptr is NULL Narendra Hadke (2): driver:phy:macsec: Corrected MACsec
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon[RT]
Hi Bruce, Please help to merge following pull request into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 12120b82abacbfec0e23ad666b8c0681f3eb90eb: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.4/octeon (2023-08-03 14:06:08 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.4/octeon for you to fetch changes up to 04e964d2ce41a1871a93742fc333bc8789bb3342: driver:phy:macsec: MACsec SCI command corercted not to accept invalid inputs. (2023-08-08 06:14:37 +) Alexander Graf (1): ACPI: allow longer device IDs Anil Kumar Reddy (6): coresight: tmc-etr: Fix PREVBOOT mode trace buffer handling dt-bindings: coresight: Add reserved memory for TMC ETR coresight: tmc-etr: Add support to use reserved memory dt-bindings: coresight: Add metadata region property coresight: tmc: Add support for register metadata coresight: tmc: Read previous boot trace data Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Chandrakala Chavva (3): driver: edac: octeontx: Add revision check for new pass of the chip drivers: mrvl_swup: Adapt and fix memory allocation with ioctl drivers: mrvl_swup: Add additional changes to logbuffer support Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (10): octeontx2-af: mcs: Add PAB and BBE block interrupt handler octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Check sg address for null before free octeontx2-pf: Using compound/head page ref count driver: spi: cadence: Remove unused variables octeontx2-af: mcs: Fix sa entries size octeontx2-pf: Remove xdp queues on program detach octeontx2-pf: Fix xdp frame start address octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (5): watchdog: sbsa_wdog: Fix the timeout calculation drivers: watchdog: Add support for panic notifier callback watchdog: sbsa_gwdt: Enable the WDOG_STOP_ON_PANIC watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Gowthami (1): perf/marvell: Apply TAD pmu errata to cn10k silicons Hariprasad Kelam (17): octeontx2-pf: Fix resource leakage in VF driver unbind octeontx2-af: Back port upstream changes octeontx2-af: Reset MAC internal loopback in FLR octeontx2-af: Add validation for lmac type octeontx2-pf: Generate PPS OUT on PHC PTP_CLK_REQ_PEROUT octeontx2-bphy: Generate PPS OUT on PHC PTP_CLK_REQ_PEROUT octeontx2-pf: dont configure ptp one-step for non-sync packets octeontx2-af: Do not skip probe for RPM_USX Octeontx2-af: Fix cgx link notification issue octeontx2-af: CN10KB: Add USGMII LMAC mode octeontx2-af: Fix wrong cgx link notification error message octeontx2-pf: fix scheduler queue free order octeontx2-pf: Define new ethtool modes for CN10KB octeontx2-af: Add validation before accessing cgx device octeontx2-af: Fix RPM and NIX channel mapping octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Janne Kukkonen (2): octeontx2-bphy-netdev: Fix ioctl OTX2_CPRI_IOCTL_LINK_EVENT cpri context octeontx2-bphy-netdev: Fix OTX2_RFOE_IOCTL_RX_IND_CFG in case of CNF10K Jenishkumar Patel (1): net: mvpp2: fix mvpp2 IRQ affinity issue Kiran Kumar K (4): octeontx2-af: Move EOH pointer on unknown ethertype for QINQ octeontx2-af: Add KPU parsing for custom data as custom Ltype octeontx2-af: Fix mcam match with second pass rules for VF octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (9): dt-bindings: coresight: ETF can use reserved region Revert "coresight: Add Coresight kdump support" Revert "coresight: Add provision for kdump sync callbacks" coresight: tmc: Keep reserved region parsing common coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Mikko Suni (1): octeontx2-bphy-netdev: Avoid kernel crash when psw jd_ptr is NULL Narendra Hadke (2):
[linux-yocto] [PATCH 1/2] mtd/spi-nor: enable USE_CLSR capability for Cypress FL-L product family
From: Yaliang Wang In Cypress FL-L product family, P_ERR or E_ERR bits are shifted to SR2V, and are actually being used. Which means we need cope this special condition accordingly. Signed-off-by: Yaliang Wang [RQ: adjust code structure to fit kernel v5.15.] Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/core.c | 45 +- drivers/mtd/spi-nor/spansion.c | 6 ++--- include/linux/mtd/spi-nor.h| 1 + 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 77ae145189ca..c1eee9ef1778 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -676,6 +676,40 @@ static void spi_nor_clear_sr(struct spi_nor *nor) dev_dbg(nor->dev, "error %d clearing SR\n", ret); } +static const struct flash_info *spi_nor_read_id(struct spi_nor *nor); +/* + * Cypress FL-L series devices have redesigned the status register, + * P_ERR and E_ERR bits are shifted to the status register 2. + */ +static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) +{ + u8 sr1, sr2; + int ret; + + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); + if (ret < 0) { + pr_err("error %d reading SR\n", (int) ret); + return ret; + } + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); + if (ret < 0) { + pr_err("error %d reading SR2\n", (int) ret); + return ret; + } + + if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { + if (sr2 & SR_E_ERR) + dev_err(nor->dev, "Erase Error occurred\n"); + else + dev_err(nor->dev, "Programming Error occurred\n"); + + nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + return -EIO; + } + + return !(sr1 & SR_WIP); +} + /** * spi_nor_sr_ready() - Query the Status Register to see if the flash is ready * for new commands. @@ -685,7 +719,16 @@ static void spi_nor_clear_sr(struct spi_nor *nor) */ static int spi_nor_sr_ready(struct spi_nor *nor) { - int ret = spi_nor_read_sr(nor, nor->bouncebuf); + int ret; + const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + + if (!IS_ERR_OR_NULL(tmpinfo)){ + if (!strcmp(tmpinfo->name, "s25fl064l") || !strcmp(tmpinfo->name, "s25fl128l") || !strcmp(tmpinfo->name, "s25fl256l")){ + return spi_nor_s25fl_l_sr_ready(nor); + } + } + + ret = spi_nor_read_sr(nor, nor->bouncebuf); if (ret) return ret; diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index f3684b3f4089..3679aa55259a 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -265,13 +265,13 @@ static const struct flash_info spansion_parts[] = { SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "cy15x104q", INFO6(0x042cc2, 0x7f7f7f, 512 * 1024, 1, SPI_NOR_NO_ERASE) }, { "s28hs512t", INFO(0x345b1a, 0, 256 * 1024, 256, diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index cd84afa17663..385edb74fd52 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -102,6 +102,7 @@ /* Used for Spansion flashes only. */ #define SPINOR_OP_BRWR 0x17/* Bank register write */ #define SPINOR_OP_CLSR 0x30/* Clear status register 1 */ +#define SPINOR_OP_RDSR2_FL_L 0x07/* Read status register 2 */ /* Used for Micron flashes only. */ #define SPINOR_OP_RD_EVCR 0x65/* Read EVCR register */ -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12932): https://lists.yoctoproject.org/g/linux-yocto/message/12932 Mute This Topic: https://lists.yoctoproject.org/mt/100542138/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/2] mtd: spi-nor: Use CLSR command for FL-L chips
From: Yaliang Wang S25FL{064|128|256}L chips can't recover from errors, when there are program error or erase error, P_ERR or E_ERR bit will set to one, WIP bit will remain set to one, A Clear Status Register command must be sent to return the device to STANDBY state. The error first recorded in commit ("mtd: spi-nor: Recover from Spansion/Cypress errors"). Whlie FL-L chips shifted P_ERR or E_ERR bits to Status Register 2, which causing the current recover process doesn't work any more after enabling using CLSR. Signed-off-by: Yaliang Wang Upstream-Status: Backport [Wind River Case 00112304] Signed-off-by: Kalle Pirinen Signed-off-by: Ruqiang Hao --- drivers/mtd/spi-nor/core.c | 91 +- 1 file changed, 71 insertions(+), 20 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index c1eee9ef1778..0c401d8a05f5 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -677,37 +677,85 @@ static void spi_nor_clear_sr(struct spi_nor *nor) } static const struct flash_info *spi_nor_read_id(struct spi_nor *nor); + +/** + * spi_nor_s25fl_l_read_sr2() - Read the Status Register 2 using the + * SPINOR_OP_RDSR2_FL_L (07h) command. + * @nor: pointer to 'struct spi_nor'. + * @sr2: pointer to DMA-able buffer where the value of the + * Status Register 2 will be written. + * + * Return: 0 on success, -errno otherwise. + */ +static int spi_nor_s25fl_l_read_sr2(struct spi_nor *nor, u8 *sr2) +{ + int ret; + + if (nor->spimem) { + struct spi_mem_op op = + SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_RDSR2_FL_L, 1), + SPI_MEM_OP_NO_ADDR, + SPI_MEM_OP_NO_DUMMY, + SPI_MEM_OP_DATA_IN(1, sr2, 1)); + + ret = spi_mem_exec_op(nor->spimem, ); + } else { + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, + sr2, 1); + } + + if (ret) + dev_dbg(nor->dev, "error %d reading SR2\n", ret); + + return ret; +} + /* - * Cypress FL-L series devices have redesigned the status register, - * P_ERR and E_ERR bits are shifted to the status register 2. + * spi_nor_s25fl_l_sr_ready() - Query the Status Register to see if the flash + * is ready for new commands. Used by Cypress FL-L series chips. + * @nor: pointer to 'struct spi_nor'. + * + * Return: 1 if ready, 0 if not ready, -errno on errors. */ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) { - u8 sr1, sr2; + u8 *sr = nor->bouncebuf; int ret; - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); - if (ret < 0) { - pr_err("error %d reading SR\n", (int) ret); + ret = spi_nor_read_sr(nor, sr); + if (ret) return ret; - } - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); - if (ret < 0) { - pr_err("error %d reading SR2\n", (int) ret); + + /** +* P_ERR and E_ERR bits are located in the Status Register 2 +* of Cypress FL-L series chips. +*/ + ret = spi_nor_s25fl_l_read_sr2(nor, [1]); + if (ret) return ret; - } - if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { - if (sr2 & SR_E_ERR) + if (nor->flags & SNOR_F_USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { + if (sr[1] & SR_E_ERR) dev_err(nor->dev, "Erase Error occurred\n"); else dev_err(nor->dev, "Programming Error occurred\n"); - nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + spi_nor_clear_sr(nor); + + /* +* WEL bit remains set to one when an erase or page program +* error occurs. Issue a Write Disable command to protect +* against inadvertent writes that can possibly corrupt the +* contents of the memory. +*/ + ret = spi_nor_write_disable(nor); + if (ret) + return ret; + return -EIO; } - return !(sr1 & SR_WIP); + return !(sr[0] & SR_WIP); } /** @@ -720,12 +768,15 @@ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) static int spi_nor_sr_ready(struct spi_nor *nor) { int ret; - const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + const struct flash_info *tmpinfo = nor->info ? nor->info : spi_nor_read_id(nor); - if (!IS_ERR_OR_NULL(tmpinfo)){ - if (!strcmp(tmpinfo->name, "s25fl064l") || !strcmp(tmpinfo->name, "s25fl128l") || !strcmp(tmpinfo->name, "s25fl256l")){ - return spi_nor_s25fl_l_sr_ready(nor); -
[linux-yocto][linux-yocto v5.15] support for cypress flash s25fl064l on Marvell cn96xx boards
Hi Bruce, Please help to merge these 2 patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12933): https://lists.yoctoproject.org/g/linux-yocto/message/12933 Mute This Topic: https://lists.yoctoproject.org/mt/100542139/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 1/2] dt-bindings: hwmon: add tmp464.yaml
From: Agathe Porte commit b4fa042e92e17f243bdfa2c53e3cd4c8b3dfb56c upstream. Add basic description of the tmp464 driver DT bindings. Signed-off-by: Agathe Porte Cc: Krzysztof Adamski Reviewed-by: Rob Herring Link: https://lore.kernel.org/r/2022023610.23098-1-li...@roeck-us.net Signed-off-by: Guenter Roeck Signed-off-by: Ruiqiang Hao --- .../devicetree/bindings/hwmon/ti,tmp464.yaml | 114 ++ MAINTAINERS | 7 ++ 2 files changed, 121 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml new file mode 100644 index ..801ca9ba7d34 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml @@ -0,0 +1,114 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,tmp464.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TMP464 and TMP468 temperature sensors + +maintainers: + - Agathe Porte + +description: | + ±0.0625°C Remote and Local temperature sensor + https://www.ti.com/lit/ds/symlink/tmp464.pdf + https://www.ti.com/lit/ds/symlink/tmp468.pdf + +properties: + compatible: +enum: + - ti,tmp464 + - ti,tmp468 + + reg: +maxItems: 1 + + '#address-cells': +const: 1 + + '#size-cells': +const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +patternProperties: + "^channel@([0-8])$": +type: object +description: | + Represents channels of the device and their specific configuration. + +properties: + reg: +description: | + The channel number. 0 is local channel, 1-8 are remote channels. +items: + minimum: 0 + maximum: 8 + + label: +description: | + A descriptive name for this channel, like "ambient" or "psu". + + ti,n-factor: +description: | + The value (two's complement) to be programmed in the channel specific N correction register. + For remote channels only. +$ref: /schemas/types.yaml#/definitions/int32 +items: + minimum: -128 + maximum: 127 + +required: + - reg + +additionalProperties: false + +examples: + - | +i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@4b { +compatible = "ti,tmp464"; +reg = <0x4b>; + }; +}; + - | +i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@4b { +compatible = "ti,tmp464"; +reg = <0x4b>; +#address-cells = <1>; +#size-cells = <0>; + +channel@0 { + reg = <0x0>; + label = "local"; +}; + +channel@1 { + reg = <0x1>; + ti,n-factor = <(-10)>; + label = "external"; +}; + +channel@2 { + reg = <0x2>; + ti,n-factor = <0x10>; + label = "somelabel"; +}; + +channel@3 { + reg = <0x3>; + status = "disabled"; +}; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index c01edb09d712..997d006dc152 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18907,6 +18907,13 @@ S: Maintained F: Documentation/hwmon/tmp401.rst F: drivers/hwmon/tmp401.c +TMP464 HARDWARE MONITOR DRIVER +M: Agathe Porte +M: Guenter Roeck +L: linux-hw...@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml + TMP513 HARDWARE MONITOR DRIVER M: Eric Tremblay L: linux-hw...@vger.kernel.org -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12928): https://lists.yoctoproject.org/g/linux-yocto/message/12928 Mute This Topic: https://lists.yoctoproject.org/mt/100541313/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/2] hwmon: Add driver for Texas Instruments TMP464 and TMP468
From: Guenter Roeck commit 007e433cf0373334a2bef1b0c9831647184906ba upstream. Add support for Texas Instruments TMP464 and TMP468 temperature sensor ICs. TI's TMP464 is an I2C temperature sensor chip. This chip is similar to TI's TMP421 chip, but with 16bit-wide registers (instead of 8bit-wide registers). The chip has one local sensor and four remote sensors. TMP468 is similar to TMP464 but has one local and eight remote sensors. Originally-from: Agathe Porte Cc: Agathe Porte Cc: Krzysztof Adamski Tested-by: Agathe Porte Link: https://lore.kernel.org/r/2022023610.23098-2-li...@roeck-us.net Signed-off-by: Guenter Roeck Signed-off-by: Ruiqiang Hao --- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/tmp464.rst | 73 MAINTAINERS| 2 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/tmp464.c | 712 + 6 files changed, 800 insertions(+) create mode 100644 Documentation/hwmon/tmp464.rst create mode 100644 drivers/hwmon/tmp464.c diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index f790f1260c33..a99f3624f9a7 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -187,6 +187,7 @@ Hardware Monitoring Kernel Drivers tmp108 tmp401 tmp421 + tmp464 tmp513 tps23861 tps40422 diff --git a/Documentation/hwmon/tmp464.rst b/Documentation/hwmon/tmp464.rst new file mode 100644 index ..7596e7623d06 --- /dev/null +++ b/Documentation/hwmon/tmp464.rst @@ -0,0 +1,73 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver tmp464 + + +Supported chips: + + * Texas Instruments TMP464 + +Prefix: 'tmp464' + +Addresses scanned: I2C 0x48, 0x49, 0x4a and 0x4b + +Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp464.html + + * Texas Instruments TMP468 + +Prefix: 'tmp468' + +Addresses scanned: I2C 0x48, 0x49, 0x4a and 0x4b + +Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp468.html + +Authors: + + Agathe Porte + Guenter Roeck + +Description +--- + +This driver implements support for Texas Instruments TMP464 and TMP468 +temperature sensor chips. TMP464 provides one local and four remote +sensors. TMP468 provides one local and eight remote sensors. +Temperature is measured in degrees Celsius. The chips are wired over +I2C/SMBus and specified over a temperature range of -40 to +125 degrees +Celsius. Resolution for both the local and remote channels is 0.0625 +degree C. + +The chips support only temperature measurements. The driver exports +temperature values, limits, and alarms via the following sysfs files: + +**temp[1-9]_input** + +**temp[1-9]_max** + +**temp[1-9]_max_hyst** + +**temp[1-9]_max_alarm** + +**temp[1-9]_crit** + +**temp[1-9]_crit_alarm** + +**temp[1-9]_crit_hyst** + +**temp[2-9]_offset** + +**temp[2-9]_fault** + +Each sensor can be individually disabled via Devicetree or from sysfs +via: + +**temp[1-9]_enable** + +If labels were specified in Devicetree, additional sysfs files will +be present: + +**temp[1-9]_label** + +The update interval is configurable with the following sysfs attribute. + +**update_interval** diff --git a/MAINTAINERS b/MAINTAINERS index 997d006dc152..edf2603c8ff9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18913,6 +18913,8 @@ M: Guenter Roeck L: linux-hw...@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/hwmon/ti,tmp464.yaml +F: Documentation/hwmon/tmp464.rst +F: drivers/hwmon/tmp464.c TMP513 HARDWARE MONITOR DRIVER M: Eric Tremblay diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 17ba1d9ff075..0e2a2b7db7d3 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -1946,6 +1946,17 @@ config SENSORS_TMP421 This driver can also be built as a module. If so, the module will be called tmp421. +config SENSORS_TMP464 + tristate "Texas Instruments TMP464 and compatible" + depends on I2C + select REGMAP_I2C + help + If you say yes here you get support for Texas Instruments TMP464 + and TMP468 temperature sensor chips. + + This driver can also be built as a module. If so, the module + will be called tmp464. + config SENSORS_TMP513 tristate "Texas Instruments TMP513 and compatibles" depends on I2C diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 162940270661..c8a8077ca1ad 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile @@ -189,6 +189,7 @@ obj-$(CONFIG_SENSORS_TMP103)+= tmp103.o obj-$(CONFIG_SENSORS_TMP108) += tmp108.o obj-$(CONFIG_SENSORS_TMP401) += tmp401.o obj-$(CONFIG_SENSORS_TMP421) += tmp421.o +obj-$(CONFIG_SENSORS_TMP464) += tmp464.o obj-$(CONFIG_SENSORS_TMP513) += tmp513.o obj-$(CONFIG_SENSORS_VEXPRESS) += vexpress-hwmon.o obj-$(CONFIG_SENSOR
[linux-yocto][linux-yocto v5.15] Add TMP464 driver for octeon branches
Hi Bruce, Please help to merge following 2 patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12927): https://lists.yoctoproject.org/g/linux-yocto/message/12927 Mute This Topic: https://lists.yoctoproject.org/mt/100541312/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 v5.15] kernel code for marvell octeon based on SDK12
Hi Bruce, Please help to merge following request into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit ef73fad9d1d31ff7e6fc2922339c7dbe1e9cbf9a: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.15/octeon (2023-07-27 11:04:17 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/cn-sdkv5.15/octeon for you to fetch changes up to fecaaa9a942d454f3ea0fc93453e53bdb767e22f: octeontx2-pf: Qos: fix root node dwrr priority corruption (2023-08-02 08:33:16 +) Amit Singh Tomar (1): arm_mpam: remove debug message from __init Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Anil Kumar Reddy (6): coresight: tmc-etr: Fix PREVBOOT mode trace buffer handling dt-bindings: coresight: Add reserved memory for TMC ETR coresight: tmc-etr: Add support to use reserved memory dt-bindings: coresight: Add metadata region property coresight: tmc: Add support for register metadata coresight: tmc: Read previous boot trace data Baowen Zheng (6): flow_offload: rename offload functions with offload instead of flow flow_offload: add index to flow_action_entry structure flow_offload: add ops to tc_action_ops for flow action setup flow_offload: allow user to offload tc action to net device flow_offload: add skip_hw and skip_sw to control if offload the action net: sched: save full flags for tc action Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Chandrakala Chavva (2): drivers: mrvl_swup: Adapt and fix memory allocation with ioctl drivers: mrvl_swup: Add additional changes to logbuffer support Emeel Hakim (2): vlan: Add MACsec offload operations for VLAN interface macsec: Don't rely solely on the dst MAC address to identify destination MACsec device Geetha sowjanya (9): Revert: 'octeontx2-af: Secure APR table update with the lock' octeontx2-af: mcs: Add PAB and BBE block interrupt handler octeontx2-pf: Check address for Null before free octeontx2-af: Flush WQ before destroy octeontx2-pf: Fix xdp frame start address octeontx2-pf: Remove xdp queues on program detach octeontx2-af: mcs: Fix sa entries size rqchip/gic-v3: Use raw_spin_lock in irq context octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (2): watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Hariprasad Kelam (4): octeontx2-af: Add validation before accessing cgx device octeontx2-af: Fix RPM and NIX channel mapping octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Ido Schimmel (1): net/sched: act_skbedit: Add extack messages for offload failure Kiran Kumar K (4): octeontx2-af: Add KPU parsing for custom data as custom Ltype octeontx2-af: Fix mcam match with second pass rules for VF octeontx2-af: Fix issue with IPv6 ext match for RSS octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (7): coresight: tmc: Keep reserved region parsing common dt-bindings: coresight: ETF can use reserved region coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Marc Zyngier (2): irqchip/gic-v3: Exposes bit values for GICR_CTLR.{IR, CES} irqchip/gic-v3: Detect LPI invalidation MMIO registers Min Li (10): ptp: ptp_clockmatrix: Remove idtcm_enable_tod_sync() ptp: ptp_clockmatrix: Add support for FW 5.2 (8A34005) ptp: ptp_clockmatrix: Add support for pll_mode=0 and manual ref switch of WF and WP ptp: clockmatrix: use rsmu driver to access i2c/spi bus ptp: idt82p33: use rsmu driver to access i2c/spi bus ptp: ptp_clockmatrix: Add PTP_CLK_REQ_EXTTS support ptp: ptp_clockmatrix: return -EBUSY if phase pull-in is in progress ptp: ptp_clockmatrix: fix is_single_shot ptp: idt82p33: Add PTP_CLK_REQ_EXTTS support ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK Naveen Mamindlapalli (8): octeontx2-af: add validation checks for function arguments octeontx2-bphy-netdev: Fix register offset definitions octeontx2-bphy-netdev: cnf10k: don't drop packets with macsec errors driver:
[linux-yocto][linux-yocto v5.15] kernel code for marvell octeon based on SDK12[RT]
Hi Bruce, Please help to merge following request into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang The following changes since commit d025cc37131d6e4223a98161fc2feb14a65a468a: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2023-07-27 11:04:37 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git linux-yocto/v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to d9d57bfab139ed42b601d1d5738312251cd78bc9: octeontx2-pf: Qos: fix root node dwrr priority corruption (2023-08-02 20:04:12 +0800) Amit Singh Tomar (1): arm_mpam: remove debug message from __init Amritha Nambiar (1): act_skbedit: skbedit queue mapping for receive queue Anil Kumar Reddy (6): coresight: tmc-etr: Fix PREVBOOT mode trace buffer handling dt-bindings: coresight: Add reserved memory for TMC ETR coresight: tmc-etr: Add support to use reserved memory dt-bindings: coresight: Add metadata region property coresight: tmc: Add support for register metadata coresight: tmc: Read previous boot trace data Baowen Zheng (6): flow_offload: rename offload functions with offload instead of flow flow_offload: add index to flow_action_entry structure flow_offload: add ops to tc_action_ops for flow action setup flow_offload: allow user to offload tc action to net device flow_offload: add skip_hw and skip_sw to control if offload the action net: sched: save full flags for tc action Bharat Bhushan (3): Watchdog: Add marvell GTI watchdog driver hwrng: cn10k: Add extended trng register support dt-bindings: watchdog: marvell GTI system watchdog driver Bruno Matic (1): drivers: i2c-octeon-core: Add error state recovery Chandrakala Chavva (2): drivers: mrvl_swup: Adapt and fix memory allocation with ioctl drivers: mrvl_swup: Add additional changes to logbuffer support Emeel Hakim (2): vlan: Add MACsec offload operations for VLAN interface macsec: Don't rely solely on the dst MAC address to identify destination MACsec device Geetha sowjanya (9): Revert: 'octeontx2-af: Secure APR table update with the lock' octeontx2-af: mcs: Add PAB and BBE block interrupt handler octeontx2-pf: Check address for Null before free octeontx2-af: Flush WQ before destroy octeontx2-pf: Fix xdp frame start address octeontx2-pf: Remove xdp queues on program detach octeontx2-af: mcs: Fix sa entries size rqchip/gic-v3: Use raw_spin_lock in irq context octeontx2-pf: Fix adding mbox work queue entry when num_vfs > 64 George Cherian (2): watchdog: sbsa_gwdt: Apply the Errata workaround seen on CN10K Processors watchdog:marvell_gti: Update missing MODULE_LICENSE Hariprasad Kelam (4): octeontx2-af: Add validation before accessing cgx device octeontx2-af: Fix RPM and NIX channel mapping octeontx2-pf: Qos: Validate quantum parameter octeontx2-pf: Qos: fix root node dwrr priority corruption Ido Schimmel (1): net/sched: act_skbedit: Add extack messages for offload failure Kiran Kumar K (4): octeontx2-af: Add KPU parsing for custom data as custom Ltype octeontx2-af: Fix mcam match with second pass rules for VF octeontx2-af: Fix issue with IPv6 ext match for RSS octeontx2-af: Add KPU parsing support for IPV6 SRH header Linu Cherian (7): coresight: tmc: Keep reserved region parsing common dt-bindings: coresight: ETF can use reserved region coresight: core: Add provision for panic callbacks coresight: tmc: Enable panic sync handling coresight: etm4x: Configure ETM to trigger on panic coresight: cti: Add CTI id for Neoverse N2 core CTI coresight: tmc: Stop trace capture on FlIn Marc Zyngier (2): irqchip/gic-v3: Exposes bit values for GICR_CTLR.{IR, CES} irqchip/gic-v3: Detect LPI invalidation MMIO registers Min Li (10): ptp: ptp_clockmatrix: Remove idtcm_enable_tod_sync() ptp: ptp_clockmatrix: Add support for FW 5.2 (8A34005) ptp: ptp_clockmatrix: Add support for pll_mode=0 and manual ref switch of WF and WP ptp: clockmatrix: use rsmu driver to access i2c/spi bus ptp: idt82p33: use rsmu driver to access i2c/spi bus ptp: ptp_clockmatrix: Add PTP_CLK_REQ_EXTTS support ptp: ptp_clockmatrix: return -EBUSY if phase pull-in is in progress ptp: ptp_clockmatrix: fix is_single_shot ptp: idt82p33: Add PTP_CLK_REQ_EXTTS support ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK Naveen Mamindlapalli (8): octeontx2-af: add validation checks for function arguments octeontx2-bphy-netdev: Fix register offset definitions octeontx2-bphy-netdev: cnf10k: don't drop packets with
[linux-yocto] [PATCH] mtd: spi_nor: fix build issue for S25FL{064|128|256}L
From: Ruiqiang Hao commit 4e35f5591b43 (mtd: spi-nor: Use CLSR command for FL-L chips) and commit c9d6aaec411f (mtd/spi-nor: enable USE_CLSR capability for Cypress FL-L product family) are based on kernel v5.15, after commit 51c55506a7b1 (mtd: spi-nor: spansion: convert USE_CLSR to a manufacturer flag), there will be build issue below. According to this commit to fix it. drivers/mtd/spi-nor/spansion.c: In function 'spi_nor_s25fl_l_sr_ready': drivers/mtd/spi-nor/spansion.c:554:26: error: 'SNOR_F_USE_CLSR' undeclared (first use in this function) 554 | if (nor->flags & SNOR_F_USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { | ^~~ drivers/mtd/spi-nor/spansion.c:554:26: note: each undeclared identifier is reported only once for each function it appears in drivers/mtd/spi-nor/spansion.c:560:17: error: implicit declaration of function 'spi_nor_clear_sr'; did you mean 'spi_nor_read_sr'? [-Werror=implicit-function-declaration] 560 | spi_nor_clear_sr(nor); | ^~~~ | spi_nor_read_sr drivers/mtd/spi-nor/spansion.c: In function 'spansion_nor_sr_ready_and_clear': drivers/mtd/spi-nor/spansion.c:588:68: error: too few arguments to function 'spi_nor_read_id' 588 | const struct flash_info *tmpinfo = nor->info ? nor->info : spi_nor_read_id(nor); | ^~~ In file included from drivers/mtd/spi-nor/spansion.c:9: drivers/mtd/spi-nor/core.h:652:5: note: declared here 652 | int spi_nor_read_id(struct spi_nor *nor, u8 naddr, u8 ndummy, u8 *id, | ^~~ Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/core.c | 2 +- drivers/mtd/spi-nor/core.h | 1 + drivers/mtd/spi-nor/spansion.c | 15 +-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index bde32d0e8e38..dccf4169e301 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -1655,7 +1655,7 @@ static const struct flash_info *spi_nor_match_id(struct spi_nor *nor, return NULL; } -static const struct flash_info *spi_nor_detect(struct spi_nor *nor) +const struct flash_info *spi_nor_detect(struct spi_nor *nor) { const struct flash_info *info; u8 *id = nor->bouncebuf; diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 290613fd63ae..2f9871751544 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -651,6 +651,7 @@ int spi_nor_sr2_bit1_quad_enable(struct spi_nor *nor); int spi_nor_sr2_bit7_quad_enable(struct spi_nor *nor); int spi_nor_read_id(struct spi_nor *nor, u8 naddr, u8 ndummy, u8 *id, enum spi_nor_protocol reg_proto); +const struct flash_info *spi_nor_detect(struct spi_nor *nor); int spi_nor_read_sr(struct spi_nor *nor, u8 *sr); int spi_nor_sr_ready(struct spi_nor *nor); int spi_nor_read_cr(struct spi_nor *nor, u8 *cr); diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index b2e220e6b111..18b8f9a564b8 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -441,13 +441,16 @@ static const struct flash_info spansion_nor_parts[] = { NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) + MFR_FLAGS(USE_CLSR) }, { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) + MFR_FLAGS(USE_CLSR) }, { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) + MFR_FLAGS(USE_CLSR) }, { "s25hl512t", INFO6(0x342a1a, 0x0f0390, 256 * 1024, 256) PARSE_SFDP MFR_FLAGS(USE_CLSR) @@ -551,13 +554,13 @@ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) if (ret) return ret; - if (nor->flags & SNOR_F_USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { + if (nor->info->mfr_flags & USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { if (sr[1] & SR_E_ERR) dev_err(nor->dev, "Erase Error occurred\n"); else dev_err
[linux-yocto][linux-yocto v6.1] fix build issue for s25fl064l
Hi Bruce, Please help to merge this patch 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12882): https://lists.yoctoproject.org/g/linux-yocto/message/12882 Mute This Topic: https://lists.yoctoproject.org/mt/100271680/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] coresight: tmc: secure-etr: mark the timer as hard interrupt expire mode for RT kernel
From: Ruiqiang Hao In function tmc_etr_timer_cance(), we try to cancel an hrtimer in the interrupt context, this will trigger warning below, mark this hrtimer as hard interrupt expire mode to solve this problem. WARNING: CPU: 6 PID: 63 at kernel/softirq.c:163 __local_bh_disable_ip+0x220/0x24c Modules linked in: 8021q sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 CPU: 6 PID: 63 Comm: ksoftirqd/6 Not tainted 5.15.120-rt61-yocto-preempt-rt #3 Hardware name: Marvell OcteonTX CN96XX board (DT) pstate: 004000c9 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __local_bh_disable_ip+0x220/0x24c lr : hrtimer_cancel_wait_running+0x7c/0x110 sp : 8b4efe10 x29: 8b4efe10 x28: 000102be9080 x27: 8b4eff80 x26: 8e26fa70 x25: x24: 8b4eff40 x23: x22: x21: 0200 x20: 88111944 x19: 000bf3f13ec0 x18: x17: 800bea62 x16: 8b4e x15: 13b81b7517e6 x14: 004f10fcbc83e338 x13: 89051530 x12: eac0c6e6 x11: 00020009 x10: bcbc83c7 x9 : 8811195c x8 : 89fa6990 x7 : x6 : 000102be9c48 x5 : 8ab60416 x4 : 00010001 x3 : 89720008 x2 : 0001 x1 : 0200 x0 : 88111944 Call trace: __local_bh_disable_ip+0x220/0x24c hrtimer_cancel_wait_running+0x7c/0x110 hrtimer_cancel+0x44/0x70 tmc_etr_timer_cancel+0x34/0x70 flush_smp_call_function_queue+0x16c/0x340 generic_smp_call_function_single_interrupt+0x1c/0x30 do_handle_IPI+0x74/0x330 ipi_handler+0x24/0x34 handle_percpu_devid_irq+0xb0/0x174 handle_domain_irq+0xa0/0xec gic_handle_irq+0x64/0xdc call_on_irq_stack+0x20/0x2c do_interrupt_handler+0x5c/0x68 el1_interrupt+0x30/0x150 el1h_64_irq_handler+0x18/0x24 el1h_64_irq+0x78/0x7c seqcount_lockdep_reader_access.constprop.0+0xbc/0x100 ktime_get+0x3c/0x120 tmc_etr_timer_handler_percore+0x34/0x6c __run_hrtimer+0xe0/0x34c __hrtimer_run_queues+0xbc/0x164 hrtimer_run_softirq+0x90/0xd0 __do_softirq+0x13c/0x51c run_ksoftirqd+0xd4/0x14c smpboot_thread_fn+0x290/0x350 kthread+0x164/0x170 ret_from_fork+0x10/0x20 Signed-off-by: Ruiqiang Hao --- drivers/hwtracing/coresight/coresight-tmc-secure-etr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-tmc-secure-etr.c b/drivers/hwtracing/coresight/coresight-tmc-secure-etr.c index 60849e91c546..59bee8fd2279 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-secure-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-secure-etr.c @@ -167,7 +167,7 @@ void tmc_etr_timer_init(struct tmc_drvdata *drvdata) timer = coresight_get_etm_sync_mode() == SYNC_MODE_SW_GLOBAL ? tmc_etr_tsync_global_timer() : >timer; - hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); + hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); } /* Timer setup API common for both global and per core mode @@ -203,7 +203,7 @@ void tmc_etr_timer_start(void *data) tmc_etr_timer_handler_global : tmc_etr_timer_handler_percore; dev_dbg(>csdev->dev, "Starting sync timer, mode:%s period:%lld ns\n", mode_global ? "global" : "percore", tick); - hrtimer_start(timer, ns_to_ktime(tick), HRTIMER_MODE_REL_PINNED); + hrtimer_start(timer, ns_to_ktime(tick), HRTIMER_MODE_REL_PINNED_HARD); } /* Timer cancel API common for both global and per core mode -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12881): https://lists.yoctoproject.org/g/linux-yocto/message/12881 Mute This Topic: https://lists.yoctoproject.org/mt/100271671/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 v5.15] kernel code for marvell cn96xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12880): https://lists.yoctoproject.org/g/linux-yocto/message/12880 Mute This Topic: https://lists.yoctoproject.org/mt/100271670/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] add s25fl064l support for marvell cn96xx
Hi Bruce, These 2 patches are for Cypress flash s25fl064l used by customer. Please help to merge them 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12857): https://lists.yoctoproject.org/g/linux-yocto/message/12857 Mute This Topic: https://lists.yoctoproject.org/mt/100189437/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/2] mtd: spi-nor: Use CLSR command for FL-L chips
From: Yaliang Wang S25FL{064|128|256}L chips can't recover from errors, when there are program error or erase error, P_ERR or E_ERR bit will set to one, WIP bit will remain set to one, A Clear Status Register command must be sent to return the device to STANDBY state. The error first recorded in commit ("mtd: spi-nor: Recover from Spansion/Cypress errors"). Whlie FL-L chips shifted P_ERR or E_ERR bits to Status Register 2, which causing the current recover process doesn't work any more after enabling using CLSR. Signed-off-by: Yaliang Wang Upstream-Status: Backport [Wind River Case 00112304] Signed-off-by: Kalle Pirinen [RQ: Apply patch to spansion.c.] Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/spansion.c | 91 ++ 1 file changed, 70 insertions(+), 21 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 5853b1232f9b..b2e220e6b111 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -495,37 +495,84 @@ static void spansion_nor_clear_sr(struct spi_nor *nor) dev_dbg(nor->dev, "error %d clearing SR\n", ret); } +/** + * spi_nor_s25fl_l_read_sr2() - Read the Status Register 2 using the + * SPINOR_OP_RDSR2_FL_L (07h) command. + * @nor: pointer to 'struct spi_nor'. + * @sr2: pointer to DMA-able buffer where the value of the + * Status Register 2 will be written. + * + * Return: 0 on success, -errno otherwise. + */ +static int spi_nor_s25fl_l_read_sr2(struct spi_nor *nor, u8 *sr2) +{ + int ret; + + if (nor->spimem) { + struct spi_mem_op op = + SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_RDSR2_FL_L, 1), + SPI_MEM_OP_NO_ADDR, + SPI_MEM_OP_NO_DUMMY, + SPI_MEM_OP_DATA_IN(1, sr2, 1)); + + ret = spi_mem_exec_op(nor->spimem, ); + } else { + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, + sr2, 1); + } + + if (ret) + dev_dbg(nor->dev, "error %d reading SR2\n", ret); + + return ret; +} + /* - * Cypress FL-L series devices have redesigned the status register, - * P_ERR and E_ERR bits are shifted to the status register 2. + * spi_nor_s25fl_l_sr_ready() - Query the Status Register to see if the flash + * is ready for new commands. Used by Cypress FL-L series chips. + * @nor: pointer to 'struct spi_nor'. + * + * Return: 1 if ready, 0 if not ready, -errno on errors. */ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) { - u8 sr1, sr2; + u8 *sr = nor->bouncebuf; int ret; - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); - if (ret < 0) { - pr_err("error %d reading SR\n", (int) ret); + ret = spi_nor_read_sr(nor, sr); + if (ret) return ret; - } - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); - if (ret < 0) { - pr_err("error %d reading SR2\n", (int) ret); + + /** +* P_ERR and E_ERR bits are located in the Status Register 2 +* of Cypress FL-L series chips. +*/ + ret = spi_nor_s25fl_l_read_sr2(nor, [1]); + if (ret) return ret; - } - if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { - if (sr2 & SR_E_ERR) + if (nor->flags & SNOR_F_USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { + if (sr[1] & SR_E_ERR) dev_err(nor->dev, "Erase Error occurred\n"); else dev_err(nor->dev, "Programming Error occurred\n"); - nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + spi_nor_clear_sr(nor); + + /* +* WEL bit remains set to one when an erase or page program +* error occurs. Issue a Write Disable command to protect +* against inadvertent writes that can possibly corrupt the +* contents of the memory. +*/ + ret = spi_nor_write_disable(nor); + if (ret) + return ret; + return -EIO; } - return !(sr1 & SR_WIP); + return !(sr[0] & SR_WIP); } /** @@ -538,13 +585,15 @@ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) static int spansion_nor_sr_ready_and_clear(struct spi_nor *nor) { int ret; - const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + const struct flash_info *tmpinfo = nor->info ? nor->info : spi_nor_
[linux-yocto] [PATCH 1/2] mtd/spi-nor: enable USE_CLSR capability for Cypress FL-L product family
From: Yaliang Wang In Cypress FL-L product family, P_ERR or E_ERR bits are shifted to SR2V, and are actually being used. Which means we need cope this special condition accordingly. Signed-off-by: Yaliang Wang [RQ: adjust code structure to fit kernel v6.1.] Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/spansion.c | 46 +++--- include/linux/mtd/spi-nor.h| 1 + 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 7e7c68fc7776..5853b1232f9b 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -441,13 +441,13 @@ static const struct flash_info spansion_nor_parts[] = { NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) - FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, + FIXUP_FLAGS(SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25hl512t", INFO6(0x342a1a, 0x0f0390, 256 * 1024, 256) PARSE_SFDP MFR_FLAGS(USE_CLSR) @@ -495,6 +495,39 @@ static void spansion_nor_clear_sr(struct spi_nor *nor) dev_dbg(nor->dev, "error %d clearing SR\n", ret); } +/* + * Cypress FL-L series devices have redesigned the status register, + * P_ERR and E_ERR bits are shifted to the status register 2. + */ +static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) +{ + u8 sr1, sr2; + int ret; + + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); + if (ret < 0) { + pr_err("error %d reading SR\n", (int) ret); + return ret; + } + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); + if (ret < 0) { + pr_err("error %d reading SR2\n", (int) ret); + return ret; + } + + if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { + if (sr2 & SR_E_ERR) + dev_err(nor->dev, "Erase Error occurred\n"); + else + dev_err(nor->dev, "Programming Error occurred\n"); + + nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + return -EIO; + } + + return !(sr1 & SR_WIP); +} + /** * spansion_nor_sr_ready_and_clear() - Query the Status Register to see if the * flash is ready for new commands and clear it if there are any errors. @@ -505,6 +538,13 @@ static void spansion_nor_clear_sr(struct spi_nor *nor) static int spansion_nor_sr_ready_and_clear(struct spi_nor *nor) { int ret; + const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + + if (!IS_ERR_OR_NULL(tmpinfo)){ + if (!strcmp(tmpinfo->name, "s25fl064l") || !strcmp(tmpinfo->name, "s25fl128l") || !strcmp(tmpinfo->name, "s25fl256l")){ + return spi_nor_s25fl_l_sr_ready(nor); + } + } ret = spi_nor_read_sr(nor, nor->bouncebuf); if (ret) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index fb8a0b8ed242..c21d4aa2be6d 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -87,6 +87,7 @@ /* Used for Spansion flashes only. */ #define SPINOR_OP_BRWR 0x17/* Bank register write */ +#define SPINOR_OP_RDSR2_FL_L 0x07/* Read status register 2 */ /* Used for Micron flashes only. */ #define SPINOR_OP_RD_EVCR 0x65/* Read EVCR register */ -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12859): https://lists.yoctoproject.org/g/linux-yocto/message/12859 Mute This Topic: https://lists.yoctoproject.org/mt/100189439/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 v5.15] kernel code for marvell cn96xx
Hi Bruce, This patch is for Cypress flash s25fl064l used by customer. Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12847): https://lists.yoctoproject.org/g/linux-yocto/message/12847 Mute This Topic: https://lists.yoctoproject.org/mt/100094135/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] mtd: spi-nor: Use CLSR command for FL-L chips
From: Yaliang Wang S25FL{064|128|256}L chips can't recover from errors, when there are program error or erase error, P_ERR or E_ERR bit will set to one, WIP bit will remain set to one, A Clear Status Register command must be sent to return the device to STANDBY state. The error first recorded in commit ("mtd: spi-nor: Recover from Spansion/Cypress errors"). Whlie FL-L chips shifted P_ERR or E_ERR bits to Status Register 2, which causing the current recover process doesn't work any more after enabling using CLSR. Signed-off-by: Yaliang Wang Upstream-Status: Backport [Wind River Case 00112304] Signed-off-by: Kalle Pirinen Signed-off-by: Ruqiang Hao --- drivers/mtd/spi-nor/core.c | 91 +- 1 file changed, 71 insertions(+), 20 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index b87d11c54b2a..c94e2389b8aa 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -677,37 +677,85 @@ static void spi_nor_clear_sr(struct spi_nor *nor) } static const struct flash_info *spi_nor_read_id(struct spi_nor *nor); + +/** + * spi_nor_s25fl_l_read_sr2() - Read the Status Register 2 using the + * SPINOR_OP_RDSR2_FL_L (07h) command. + * @nor: pointer to 'struct spi_nor'. + * @sr2: pointer to DMA-able buffer where the value of the + * Status Register 2 will be written. + * + * Return: 0 on success, -errno otherwise. + */ +static int spi_nor_s25fl_l_read_sr2(struct spi_nor *nor, u8 *sr2) +{ + int ret; + + if (nor->spimem) { + struct spi_mem_op op = + SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_RDSR2_FL_L, 1), + SPI_MEM_OP_NO_ADDR, + SPI_MEM_OP_NO_DUMMY, + SPI_MEM_OP_DATA_IN(1, sr2, 1)); + + ret = spi_mem_exec_op(nor->spimem, ); + } else { + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, + sr2, 1); + } + + if (ret) + dev_dbg(nor->dev, "error %d reading SR2\n", ret); + + return ret; +} + /* - * Cypress FL-L series devices have redesigned the status register, - * P_ERR and E_ERR bits are shifted to the status register 2. + * spi_nor_s25fl_l_sr_ready() - Query the Status Register to see if the flash + * is ready for new commands. Used by Cypress FL-L series chips. + * @nor: pointer to 'struct spi_nor'. + * + * Return: 1 if ready, 0 if not ready, -errno on errors. */ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) { - u8 sr1, sr2; + u8 *sr = nor->bouncebuf; int ret; - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); - if (ret < 0) { - pr_err("error %d reading SR\n", (int) ret); + ret = spi_nor_read_sr(nor, sr); + if (ret) return ret; - } - ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); - if (ret < 0) { - pr_err("error %d reading SR2\n", (int) ret); + + /** +* P_ERR and E_ERR bits are located in the Status Register 2 +* of Cypress FL-L series chips. +*/ + ret = spi_nor_s25fl_l_read_sr2(nor, [1]); + if (ret) return ret; - } - if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { - if (sr2 & SR_E_ERR) + if (nor->flags & SNOR_F_USE_CLSR && sr[1] & (SR_E_ERR | SR_P_ERR)) { + if (sr[1] & SR_E_ERR) dev_err(nor->dev, "Erase Error occurred\n"); else dev_err(nor->dev, "Programming Error occurred\n"); - nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + spi_nor_clear_sr(nor); + + /* +* WEL bit remains set to one when an erase or page program +* error occurs. Issue a Write Disable command to protect +* against inadvertent writes that can possibly corrupt the +* contents of the memory. +*/ + ret = spi_nor_write_disable(nor); + if (ret) + return ret; + return -EIO; } - return !(sr1 & SR_WIP); + return !(sr[0] & SR_WIP); } /** @@ -720,12 +768,15 @@ static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) static int spi_nor_sr_ready(struct spi_nor *nor) { int ret; - const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + const struct flash_info *tmpinfo = nor->info ? nor->info : spi_nor_read_id(nor); - if (!IS_ERR_OR_NULL(tmpinfo)){ - if (!strcmp(tmpinfo->name, "s25fl064l") || !strcmp(tmpinfo->name, "s25fl128l") || !strcmp(tmpinfo->name, "s25fl256l")){ - return spi_nor_s25fl_l_sr_ready(nor); -
[linux-yocto][linux-yocto v5.15] fix double-free error for marvell-cn96xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12791): https://lists.yoctoproject.org/g/linux-yocto/message/12791 Mute This Topic: https://lists.yoctoproject.org/mt/99765803/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] drivers: net: octeontx2: fix double-free bug in rvu_mbox_init()
From: Ruiqiang Hao commit 02b4d71948b3(octeontx2-af: Skip PFs if not enabled) conflicts with commit 6b914fc07ca8(octeontx2-af: Skip PFs if not enabled) from marvell SDK11. When merged this into v5.15.112, we allocate bitmaps using devm_kcalloc() and free bitmaps using bitmap_free(), this will cause memory free error and the following panic, replace devm_kcalloc() with bitmap_zalloc() to solve this problem. Unable to handle kernel paging request at virtual address 893e8810 Mem abort info: ESR = 0x9647 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x0047 CM = 0, WnR = 1 swapper pgtable: 64k pages, 48-bit VAs, pgdp=4145 [893e8810] pgd=100bf9fe0803, p4d=100bf9fe0803, pud=100bf9fe0803, pmd=100bf9fd0803, pte= Internal error: Oops: 9647 [#1] PREEMPT SMP Modules linked in: CPU: 11 PID: 1 Comm: systemd Not tainted 5.15.116-yocto-standard #1 Hardware name: Marvell OcteonTX CN96XX board (DT) pstate: 804000c9 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x200/0x3a0 lr : queued_spin_lock_slowpath+0x64/0x3a0 sp : 89e2f9f0 x29: 89e2f9f0 x28: ffec x27: 0049 x26: x25: x24: 000bedf8f0c8 x23: 897442f8 x22: x21: 893e8800 x20: 000bf6198800 x19: 000bedf8f0c8 x18: 0001 x17: x16: x15: 0001 x14: 0001 x13: 000119a1 x12: x11: x10: 0028 x9 : 88dd3134 x8 : fefefefefefefeff x7 : 0040 x6 : x5 : x4 : 000bf6198800 x3 : 893e8810 x2 : x1 : 000bf6198808 x0 : 0030 Call trace: queued_spin_lock_slowpath+0x200/0x3a0 _raw_spin_lock_irq+0x94/0xb0 wq_worker_comm+0x94/0xe0 proc_task_name+0x50/0xd0 do_task_stat+0x3a8/0xa60 proc_tgid_stat+0x1c/0x30 proc_single_show+0x68/0x12c seq_read_iter+0x1bc/0x4b0 seq_read+0xe0/0x140 vfs_read+0xb4/0x1b4 ksys_read+0x70/0x100 __arm64_sys_read+0x24/0x30 invoke_syscall.constprop.0+0x58/0xf0 do_el0_svc+0x60/0x160 el0_svc+0x28/0xe0 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x1a0/0x1a4 Code: 51000422 8b0302a3 91002081 f862dae2 (f8226864) ---[ end trace 15a9f1de12dfc7a2 ]--- note: systemd[1] exited with preempt_count 1 Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b SMP: stopping secondary CPUs Kernel Offset: disabled CPU features: 0x0c,04d1,a3200e40 Memory Limit: none ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b ]--- Signed-off-by: Ruiqiang Hao --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c index bad16f561cd4..a199b04aa31b 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c @@ -2538,7 +2538,7 @@ static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, const char *name; u64 cfg; - pf_bmap = devm_kcalloc(rvu->dev, BITS_TO_LONGS(num), sizeof(long), GFP_KERNEL); + pf_bmap = bitmap_zalloc(num, GFP_KERNEL); if (!pf_bmap) return -ENOMEM; -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12792): https://lists.yoctoproject.org/g/linux-yocto/message/12792 Mute This Topic: https://lists.yoctoproject.org/mt/99765804/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] Revert 'spi: spi-octeontx2: fix erase sector error by limit spi buswidth'
From: Ruiqiang Hao Revert commit e223229ee63803fc233885f686a7890453be9587 Commit e223229ee638(spi: spi-octeontx2: fix erase sector error by limit spi buswidth) try to fix erase sector error. After testing, spi-nor can work normally without this commit now. It is not needed and causes follow problem: 'spi spi0.0: setup: ignoring unsupported mode bits a00' Signed-off-by: Ruiqiang Hao --- drivers/spi/spi-octeontx2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-octeontx2.c b/drivers/spi/spi-octeontx2.c index 4edda6c1f74b..9ac5a6f37510 100644 --- a/drivers/spi/spi-octeontx2.c +++ b/drivers/spi/spi-octeontx2.c @@ -390,7 +390,9 @@ static int octeontx2_spi_probe(struct pci_dev *pdev, master->num_chipselect = 4; master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | - SPI_LSB_FIRST | SPI_3WIRE; + SPI_LSB_FIRST | SPI_3WIRE | + SPI_TX_DUAL | SPI_RX_DUAL | + SPI_TX_QUAD | SPI_RX_QUAD; master->transfer_one_message = octeontx2_spi_transfer_one_message; master->bits_per_word_mask = SPI_BPW_MASK(8); master->max_speed_hz = OCTEONTX2_SPI_MAX_CLOCK_HZ; -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12741): https://lists.yoctoproject.org/g/linux-yocto/message/12741 Mute This Topic: https://lists.yoctoproject.org/mt/99481785/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 v5.15] kernel code for marvell cn96xx
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12740): https://lists.yoctoproject.org/g/linux-yocto/message/12740 Mute This Topic: https://lists.yoctoproject.org/mt/99481784/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
ontx2-bphy-netdev:: Share RFOE PTP offset with host octeontx2-bphy-netdev:cnf10k: Share RFOE PTP offset with host octeontx2-sdpvf: Fix PTP options for SDP interfaces octeontx2-pf: Use 1 TL4 queue per SDP output queue, enable SDP backpressure Ruiqiang Hao (7): of: unittest: fix refcount error "use-after-free" firmware: sdei: Change sdei_list_lock type coresight: etm4x: Change sdei_list_lock type net: cavium: remove unused lock octeontx_fpavf_alloc_lock edac: octeontx_edac: resolve dead lock in queue work pool driver: mpam: deal with unused variable prot driver: spi: cadence: remove unused variables Sai Krishna (1): octeontx2-bphy-netdev: Fix PTP RX enable for VF Satananda Burla (1): PCI: add misc character device for BAR4 mem access Satha Rao (2): octeontx2-af: add new mbox to support sync cycle on rx path octeontx2-af: fixed resource availability check Satheesh Paul A (1): octeontx2-af: support for custom L2 header Sathesh Edara (1): octeontx2-af: Update minimum receive frame size Selvam Venkatachalam (2): drives: soc: marvell: support to print reset counters drives: soc: marvell: update to support to print reset counters Shijith Thotton (19): octeontx2-af: add SSO mbox message to release XAQ aura octeontx2-af: enhance SSO FLR for CN10K octeontx2-af: fixes for SSO FLR octeontx2-af: allow lower threshold in sso group qos mbox octeontx2-af: remove support to limit xaq depth octeontx2-af: add ratelimit to limit the asynchronous err messages octeontx2-af: cycle through SSO queues to drain work octeontx2-af: timeout while draining SSO queues octeontx2-af: add SSO XAQ AURA access errata workaround octeontx2-af: sync changes missed from sso octeontx2-af: sync changes missed from tim octeontx2-af: add NIX mbox message to get HW info octeontx2-af: fix arguments passed to XAQ aura deinit octeontx2-af: cn10k: devlink params to configure TIM octeontx2-af: add TIM adjust GTI errata workaround octeontx2-af: update TIM adjust GTI errata silicons octeontx2-af: debugfs: fix undefined SSO register access octeontx2-af: update TIM adjust GTI errata silicons octeontx2-af: utilize hardware FLR support in SSO Sibaranjan Pattnayak (3): octeontx2-dpi: configure writing DMA result to an offset of the event octeontx2-dpi: add sysfs for communication from userspace octeontx2-dpi: queue reset of DPI VF during initialization Smadar Fuks (1): octeontx2-af: Introducing REE block for 98xx Srikanth Pidugu (2): soc: marvell: PHY diagnostics: more debug capabilities soc: marvell: PHY diagnostics: minor updates Srujana Challa (51): octeontx2-af: add read back of AF_BAR2_SEL register octeontx2-af: serialize bar2 alias access octeontx2-af: recover CPT engine when it gets fault octeontx2-af: add mbox for CPT LF reset octeontx2-af: fix CPT engine recovery octeontx2-af: modify FLR sequence for CPT octeontx2-af: fix CPT FLT handler octeontx2-af: add mbox to return CPT_AF_FLT_INT info octeontx2-af: update CPT inbound inline IPsec config mailbox crypto: octeontx2: remove CPT block reset crypto: octeontx2: add support for 103xx firmware load crypto: octeontx2: add support for AF to CPT PF uplink mbox crypto: octeontx2: hardware configuration for inline IPsec crypto: octeontx2: add CN10KB SG support crypto: octeontx2: add support for hash algorithms crypto: octeontx2: add support for akcipher rsa crypto: octeontx2: add support for gcm(aes) crypto: octeontx2: add support for rsa sign and verify crypto: octeontx2: add pdcp chain to capabilities crypto: octeontx2: add support for CPT1 in VF driver crypto: octeontx2: decrease CPT_AF_CTX_FLUSH_TIMER count crypto: octeontx2: add support for ECDH octeontx2-af: update CPT inbound inline IPsec mailbox crypto: octeontx2: fix dma unmap issue with ahash crypto: octeontx2: fix rsa verify crypto: octeontx2: add ctx_val workaround octeontx2: crypto: fix microcode version string print octeontx2-af: add ctx ilen to cpt lf alloc mailbox octeontx2-af: fix inline inbound IPsec configuration crypto: octeontx2: enable microcode load for cn10ka B0 crypto: octeontx2: fix cn10ka A0/A1 model check crypto: octeontx2: remove errata workaround for cn10kb and cn10ka B0 chip. octeontx2-af: fix a issue with cpt_lf_alloc mailbox octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx.
[linux-yocto] [PATCH] marvell-cn96xx: add marvell-cn96xx kernel config
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
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
z (4): octeontx2-bphy-netdev:: Share RFOE PTP offset with host octeontx2-bphy-netdev:cnf10k: Share RFOE PTP offset with host octeontx2-sdpvf: Fix PTP options for SDP interfaces octeontx2-pf: Use 1 TL4 queue per SDP output queue, enable SDP backpressure Ruiqiang Hao (7): of: unittest: fix refcount error "use-after-free" firmware: sdei: Change sdei_list_lock type coresight: etm4x: Change sdei_list_lock type net: cavium: remove unused lock octeontx_fpavf_alloc_lock edac: octeontx_edac: resolve dead lock in queue work pool driver: mpam: deal with unused variable prot driver: spi: cadence: remove unused variables Sai Krishna (1): octeontx2-bphy-netdev: Fix PTP RX enable for VF Satananda Burla (1): PCI: add misc character device for BAR4 mem access Satha Rao (2): octeontx2-af: add new mbox to support sync cycle on rx path octeontx2-af: fixed resource availability check Satheesh Paul A (1): octeontx2-af: support for custom L2 header Sathesh Edara (1): octeontx2-af: Update minimum receive frame size Selvam Venkatachalam (2): drives: soc: marvell: support to print reset counters drives: soc: marvell: update to support to print reset counters Shijith Thotton (19): octeontx2-af: add SSO mbox message to release XAQ aura octeontx2-af: enhance SSO FLR for CN10K octeontx2-af: fixes for SSO FLR octeontx2-af: allow lower threshold in sso group qos mbox octeontx2-af: remove support to limit xaq depth octeontx2-af: add ratelimit to limit the asynchronous err messages octeontx2-af: cycle through SSO queues to drain work octeontx2-af: timeout while draining SSO queues octeontx2-af: add SSO XAQ AURA access errata workaround octeontx2-af: sync changes missed from sso octeontx2-af: sync changes missed from tim octeontx2-af: add NIX mbox message to get HW info octeontx2-af: fix arguments passed to XAQ aura deinit octeontx2-af: cn10k: devlink params to configure TIM octeontx2-af: add TIM adjust GTI errata workaround octeontx2-af: update TIM adjust GTI errata silicons octeontx2-af: debugfs: fix undefined SSO register access octeontx2-af: update TIM adjust GTI errata silicons octeontx2-af: utilize hardware FLR support in SSO Sibaranjan Pattnayak (3): octeontx2-dpi: configure writing DMA result to an offset of the event octeontx2-dpi: add sysfs for communication from userspace octeontx2-dpi: queue reset of DPI VF during initialization Smadar Fuks (1): octeontx2-af: Introducing REE block for 98xx Srikanth Pidugu (2): soc: marvell: PHY diagnostics: more debug capabilities soc: marvell: PHY diagnostics: minor updates Srujana Challa (51): octeontx2-af: add read back of AF_BAR2_SEL register octeontx2-af: serialize bar2 alias access octeontx2-af: recover CPT engine when it gets fault octeontx2-af: add mbox for CPT LF reset octeontx2-af: fix CPT engine recovery octeontx2-af: modify FLR sequence for CPT octeontx2-af: fix CPT FLT handler octeontx2-af: add mbox to return CPT_AF_FLT_INT info octeontx2-af: update CPT inbound inline IPsec config mailbox crypto: octeontx2: remove CPT block reset crypto: octeontx2: add support for 103xx firmware load crypto: octeontx2: add support for AF to CPT PF uplink mbox crypto: octeontx2: hardware configuration for inline IPsec crypto: octeontx2: add CN10KB SG support crypto: octeontx2: add support for hash algorithms crypto: octeontx2: add support for akcipher rsa crypto: octeontx2: add support for gcm(aes) crypto: octeontx2: add support for rsa sign and verify crypto: octeontx2: add pdcp chain to capabilities crypto: octeontx2: add support for CPT1 in VF driver crypto: octeontx2: decrease CPT_AF_CTX_FLUSH_TIMER count crypto: octeontx2: add support for ECDH octeontx2-af: update CPT inbound inline IPsec mailbox crypto: octeontx2: fix dma unmap issue with ahash crypto: octeontx2: fix rsa verify crypto: octeontx2: add ctx_val workaround octeontx2: crypto: fix microcode version string print octeontx2-af: add ctx ilen to cpt lf alloc mailbox octeontx2-af: fix inline inbound IPsec configuration crypto: octeontx2: enable microcode load for cn10ka B0 crypto: octeontx2: fix cn10ka A0/A1 model check crypto: octeontx2: remove errata workaround for cn10kb and cn10ka B0 chip. octeontx2-af: fix a issue with cpt_lf_alloc mailbox octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT regis
[linux-yocto] [PATCH 3/3] ACPI: allow longer device IDs
From: Alexander Graf commit d273845ecb0e0626842782a4497f0c5876139ec3 upstream. We create a list of ACPI "PNP" IDs which contains _HID, _CID, and CLS entries of the respective devices. However, when making structs for matching, we squeeze those IDs into acpi_device_id, which only has 9 bytes space to store the identifier. The subsystem actually captures the full length of the IDs, and the modalias has the full length, but this struct we use for matching is limited. It originally had 16 bytes, but was changed to only have 9 in 6543becf26ff ("mod/file2alias: make modalias generation safe for cross compiling"), presumably on the theory that it would match the ACPI spec so it didn't matter. Unfortunately, while most people adhere to the ACPI specs, Microsoft decided that its VM Generation Counter device [1] should only be identifiable by _CID with a value of "VM_Gen_Counter", which is longer than 9 characters. To allow device drivers to match identifiers that exceed the 9 byte limit, this simply ups the length to 16, just like it was before the aforementioned commit. Empirical testing indicates that this doesn't actually increase vmlinux size on 64-bit, because the ulong in the same struct caused there to be 7 bytes of padding anyway, and when doing a s/M/Y/g i386_defconfig build, the bzImage only increased by 0.0055%, so negligible. This patch is a prerequisite to add support for VMGenID in Linux, the subsequent patch in this series. It has been confirmed to also work on the udev/modalias side in userspace. [1] https://download.microsoft.com/download/3/1/C/31CFC307-98CA-4CA5-914C-D9772691E214/VirtualMachineGenerationID.docx Signed-off-by: Alexander Graf Co-developed-by: Jason A. Donenfeld [Jason: reworked commit message a bit, went with len=16 approach.] Cc: Mika Westerberg Cc: Andy Shevchenko Cc: Len Brown Cc: Greg Kroah-Hartman Reviewed-by: Ard Biesheuvel Acked-by: Hans de Goede Acked-by: Rafael J. Wysocki Signed-off-by: Jason A. Donenfeld Signed-off-by: Ruiqiang Hao --- include/linux/mod_devicetable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index ae2e75d15b21..28cbf11417d2 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -211,7 +211,7 @@ struct css_device_id { kernel_ulong_t driver_data; }; -#define ACPI_ID_LEN9 +#define ACPI_ID_LEN16 struct acpi_device_id { __u8 id[ACPI_ID_LEN]; -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12464): https://lists.yoctoproject.org/g/linux-yocto/message/12464 Mute This Topic: https://lists.yoctoproject.org/mt/98753862/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 2/3] driver: spi: cadence: remove unused variables
From: Ruiqiang Hao commit 51e67b2bec0a (driver: spi: cadence: Add ACPI support) replaced node_child with fwnode_child, but the old variables were not deleted, this will cause compiler warning below, so remove these unused variables. drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_of_get_plat_data': drivers/spi/spi-cadence-xspi.c:873:29: warning: unused variable 'node_child' [-Wunused-variable] 873 | struct device_node *node_child; | ^~ drivers/spi/spi-cadence-xspi.c:871:29: warning: unused variable 'node_prop' [-Wunused-variable] 871 | struct device_node *node_prop = pdev->dev.of_node; | ^ Signed-off-by: Ruiqiang Hao --- drivers/spi/spi-cadence-xspi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c index f9a60aa04d77..549a43cc491d 100644 --- a/drivers/spi/spi-cadence-xspi.c +++ b/drivers/spi/spi-cadence-xspi.c @@ -868,9 +868,7 @@ static irqreturn_t cdns_xspi_irq_handler(int this_irq, void *dev) static int cdns_xspi_of_get_plat_data(struct platform_device *pdev) { - struct device_node *node_prop = pdev->dev.of_node; struct fwnode_handle *fwnode_child; - struct device_node *node_child; struct spi_master *master = platform_get_drvdata(pdev); struct cdns_xspi_dev *cdns_xspi = spi_master_get_devdata(master); unsigned int cs; -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12463): https://lists.yoctoproject.org/g/linux-yocto/message/12463 Mute This Topic: https://lists.yoctoproject.org/mt/98753851/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH 1/3] driver: mpam: deal with unused variable prot
From: Ruiqiang Hao In commit de8f520a0c92 (driver:mpam: Fix the compilations issues when ACPI is not selected) introduced compiler warning below, add #ifdef statement around variable 'prot' and replace ACPI with CONFIG_ACPI to solve this problem. drivers/platform/mpam/mpam_devices.c: In function 'mpam_msc_drv_probe': drivers/platform/mpam/mpam_devices.c:1598:18: warning: unused variable 'prot' [-Wunused-variable] 1598 | pgprot_t prot; | ^~~~ Signed-off-by: Ruiqiang Hao --- drivers/platform/mpam/mpam_devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/platform/mpam/mpam_devices.c b/drivers/platform/mpam/mpam_devices.c index b3aab46e06a1..3dfa114abea0 100644 --- a/drivers/platform/mpam/mpam_devices.c +++ b/drivers/platform/mpam/mpam_devices.c @@ -1595,7 +1595,9 @@ static void mpam_pcc_rx_callback(struct mbox_client *cl, void *msg) static int mpam_msc_drv_probe(struct platform_device *pdev) { int err; +#ifdef CONFIG_ACPI pgprot_t prot; +#endif void * __iomem io; struct mpam_msc *msc; struct resource *msc_res; @@ -1672,7 +1674,7 @@ static int mpam_msc_drv_probe(struct platform_device *pdev) err = PTR_ERR(msc->pcc_chan); break; } -#ifdef ACPI +#ifdef CONFIG_ACPI prot = __acpi_get_mem_attribute(msc->pcc_chan->shmem_base_addr); io = ioremap_prot(msc->pcc_chan->shmem_base_addr, msc->pcc_chan->shmem_size, pgprot_val(prot)); -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12462): https://lists.yoctoproject.org/g/linux-yocto/message/12462 Mute This Topic: https://lists.yoctoproject.org/mt/98753839/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 v5.15] fix patches for marvell octeon
Hi Bruce, These 3 patches solve some build warning. Please help to merge them into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12461): https://lists.yoctoproject.org/g/linux-yocto/message/12461 Mute This Topic: https://lists.yoctoproject.org/mt/98753835/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-5.15] Add PM policy for marvell octeon
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: yocto-kernel-cache branch: yocto-5.15 Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12458): https://lists.yoctoproject.org/g/linux-yocto/message/12458 Mute This Topic: https://lists.yoctoproject.org/mt/98701427/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] marvell-cn106xx: setting PM policy to Performance by default
From: Ruiqiang Hao Marvell sdk11 only supports performance and userspace power management policies, and customers use GOV_PERFORMANCE by default, so set default PM policy to Performance. Signed-off-by: Ruiqiang Hao --- bsp/marvell-cn106xx/marvell-cn106xx.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsp/marvell-cn106xx/marvell-cn106xx.cfg b/bsp/marvell-cn106xx/marvell-cn106xx.cfg index 61dccb36..e64ee22d 100644 --- a/bsp/marvell-cn106xx/marvell-cn106xx.cfg +++ b/bsp/marvell-cn106xx/marvell-cn106xx.cfg @@ -124,6 +124,8 @@ CONFIG_COMMON_CLK_SCMI=y # CPU freq CONFIG_CPU_FREQ=y CONFIG_ARM_SCMI_CPUFREQ=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y # CRYPT CONFIG_CRYPTO_DEV_OCTEONTX2_CPT=y -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12457): https://lists.yoctoproject.org/g/linux-yocto/message/12457 Mute This Topic: https://lists.yoctoproject.org/mt/98701426/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT]
Hi Bruce, This branch is provided for preempt RT. Thanks, Ruiqiang From: linux-yocto@lists.yoctoproject.org on behalf of Ruiqiang Hao via lists.yoctoproject.org Sent: Friday, April 28, 2023 16:03 To: bruce.ashfi...@gmail.com ; Hao, Ruiqiang Cc: linux-yocto@lists.yoctoproject.org Subject: Re: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT] Hi Bruce, Sorry, my branch name in the above email is incorrect, please merge into follow branch. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang From: linux-yocto@lists.yoctoproject.org on behalf of Ruiqiang Hao via lists.yoctoproject.org Sent: Friday, April 28, 2023 15:53 To: bruce.ashfi...@gmail.com Cc: linux-yocto@lists.yoctoproject.org Subject: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT] Hi Bruce, Please help to merge these patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 27ce0c445507e848b9ed5de6a0d6b02d2510e12c: Merge branch 'v5.15/standard/preempt-rt/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2023-04-27 10:30:42 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 5a32bd6c1fb3869464a5ff2f68318d978b5797c2: octeontx2-af: update TIM adjust GTI errata silicons (2023-04-28 02:37:58 +) Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (3): octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Using compound/head page ref count George Cherian (1): driver:mpam: Fix the compilations issues when ACPI is not selected Gowthami Thiagarajan (4): drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk spi: spi-nor: Fix the spi_nor_panic_write drivers:spi:cadence-xspi: Add low-level changes to support kmsg panic/oops write drivers:spi:cadence-xspi: Switch to polling mode when in panic Hariprasad Kelam (2): octeontx2-af: cn10kb: Correct PF to NIX block mapping octeontx2-pf: Define new ethtool modes for CN10KB Naveen Mamindlapalli (5): octeontx2-af: Fix return value in rvu_mbox_handler_nix_lf_stop_rx octeontx2-bphy-netdev: cnf10k: don't modify pps threshold when sw timecounter is not used octeontx2-af: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fixed sparse errors Nithin Dabilpuram (1): octeontx2-af: fix issue with spitosa table teardown Piyush Malgujar (1): driver: spi: cadence: Add ACPI support Radha Mohan Chintakuntla (2): ptm-ep: Add PTM requestor driver octeontx2-sdp: add CN10kB for using correct mask Rahul Bhansali (1): octeontx2-af: updated Tx link register range Rakesh Babu Saladi (1): octeontx2-af: cn10k: Apply PTP errata workaround for relevant chip variants Shijith Thotton (1): octeontx2-af: update TIM adjust GTI errata silicons Srujana Challa (6): octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx. Subbaraya Sundeep (4): octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Fix shared counters logic octeontx2-af: Remove AF resource limits octeontx2-pf: Restore TC ingress police rules when interface is up Suman Ghosh (9): octeontx2-af: Fix issues with NPC field hash extract octeontx2-pf: Update PFC configuration Octeontx2-af: Remove DMAC filter check during NPC initialization Octeontx2-pf: Fix error condition for GTP-U/C rule insertion Octeontx2-af: Install TC filter rules in hardware based on priority octeontx2-af: Remove tc rule count check while getting ntuple rule count octeontx2-pf: Remove source port check while adding ntuple rule for GTP-U/C octeontx2-pf: Check ntuple status from netdev feautre status octeontx2-af: Enable hash extraction of IPv6 source/destination Sunil Kumar Kori (1): octeontx2-af: fix Rx PTP mode cleanup drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 18 +- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 17 +- .../crypto
Re: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon
Hi Bruce, Sorry, my branch name in the above email is incorrect, please merge into follow branch. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.15/octeon Thanks, Ruiqiang From: linux-yocto@lists.yoctoproject.org on behalf of Ruiqiang Hao via lists.yoctoproject.org Sent: Friday, April 28, 2023 15:53 To: bruce.ashfi...@gmail.com Cc: linux-yocto@lists.yoctoproject.org Subject: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon Hi Bruce, Please help to merge these patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 2d0d753026e95a7a3984d58fa600f8383dd2fbc8: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.15/octeon (2023-04-27 10:27:35 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git v5.15/standard/cn-sdkv5.15/octeon for you to fetch changes up to 4d797c95997e67fc3db8433597cb044ef55cb379: octeontx2-af: update TIM adjust GTI errata silicons (2023-04-28 01:49:28 +) Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (3): octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Using compound/head page ref count George Cherian (1): driver:mpam: Fix the compilations issues when ACPI is not selected Gowthami Thiagarajan (4): drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk spi: spi-nor: Fix the spi_nor_panic_write drivers:spi:cadence-xspi: Add low-level changes to support kmsg panic/oops write drivers:spi:cadence-xspi: Switch to polling mode when in panic Hariprasad Kelam (2): octeontx2-af: cn10kb: Correct PF to NIX block mapping octeontx2-pf: Define new ethtool modes for CN10KB Naveen Mamindlapalli (5): octeontx2-af: Fix return value in rvu_mbox_handler_nix_lf_stop_rx octeontx2-bphy-netdev: cnf10k: don't modify pps threshold when sw timecounter is not used octeontx2-af: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fixed sparse errors Nithin Dabilpuram (1): octeontx2-af: fix issue with spitosa table teardown Piyush Malgujar (1): driver: spi: cadence: Add ACPI support Radha Mohan Chintakuntla (2): ptm-ep: Add PTM requestor driver octeontx2-sdp: add CN10kB for using correct mask Rahul Bhansali (1): octeontx2-af: updated Tx link register range Rakesh Babu Saladi (1): octeontx2-af: cn10k: Apply PTP errata workaround for relevant chip variants Shijith Thotton (1): octeontx2-af: update TIM adjust GTI errata silicons Srujana Challa (6): octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx. Subbaraya Sundeep (4): octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Fix shared counters logic octeontx2-af: Remove AF resource limits octeontx2-pf: Restore TC ingress police rules when interface is up Suman Ghosh (9): octeontx2-af: Fix issues with NPC field hash extract octeontx2-pf: Update PFC configuration Octeontx2-af: Remove DMAC filter check during NPC initialization Octeontx2-pf: Fix error condition for GTP-U/C rule insertion Octeontx2-af: Install TC filter rules in hardware based on priority octeontx2-af: Remove tc rule count check while getting ntuple rule count octeontx2-pf: Remove source port check while adding ntuple rule for GTP-U/C octeontx2-pf: Check ntuple status from netdev feautre status octeontx2-af: Enable hash extraction of IPv6 source/destination Sunil Kumar Kori (1): octeontx2-af: fix Rx PTP mode cleanup drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 18 +- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 17 +- .../crypto/marvell/octeontx2/otx2_cpt_devlink.c| 45 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 25 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 16 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 76 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 2 + drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 13 + drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 27
Re: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT]
Hi Bruce, Sorry, my branch name in the above email is incorrect, please merge into follow branch. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.15/octeon Thanks, Ruiqiang From: linux-yocto@lists.yoctoproject.org on behalf of Ruiqiang Hao via lists.yoctoproject.org Sent: Friday, April 28, 2023 15:53 To: bruce.ashfi...@gmail.com Cc: linux-yocto@lists.yoctoproject.org Subject: [linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT] Hi Bruce, Please help to merge these patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 27ce0c445507e848b9ed5de6a0d6b02d2510e12c: Merge branch 'v5.15/standard/preempt-rt/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2023-04-27 10:30:42 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 5a32bd6c1fb3869464a5ff2f68318d978b5797c2: octeontx2-af: update TIM adjust GTI errata silicons (2023-04-28 02:37:58 +) Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (3): octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Using compound/head page ref count George Cherian (1): driver:mpam: Fix the compilations issues when ACPI is not selected Gowthami Thiagarajan (4): drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk spi: spi-nor: Fix the spi_nor_panic_write drivers:spi:cadence-xspi: Add low-level changes to support kmsg panic/oops write drivers:spi:cadence-xspi: Switch to polling mode when in panic Hariprasad Kelam (2): octeontx2-af: cn10kb: Correct PF to NIX block mapping octeontx2-pf: Define new ethtool modes for CN10KB Naveen Mamindlapalli (5): octeontx2-af: Fix return value in rvu_mbox_handler_nix_lf_stop_rx octeontx2-bphy-netdev: cnf10k: don't modify pps threshold when sw timecounter is not used octeontx2-af: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fixed sparse errors Nithin Dabilpuram (1): octeontx2-af: fix issue with spitosa table teardown Piyush Malgujar (1): driver: spi: cadence: Add ACPI support Radha Mohan Chintakuntla (2): ptm-ep: Add PTM requestor driver octeontx2-sdp: add CN10kB for using correct mask Rahul Bhansali (1): octeontx2-af: updated Tx link register range Rakesh Babu Saladi (1): octeontx2-af: cn10k: Apply PTP errata workaround for relevant chip variants Shijith Thotton (1): octeontx2-af: update TIM adjust GTI errata silicons Srujana Challa (6): octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx. Subbaraya Sundeep (4): octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Fix shared counters logic octeontx2-af: Remove AF resource limits octeontx2-pf: Restore TC ingress police rules when interface is up Suman Ghosh (9): octeontx2-af: Fix issues with NPC field hash extract octeontx2-pf: Update PFC configuration Octeontx2-af: Remove DMAC filter check during NPC initialization Octeontx2-pf: Fix error condition for GTP-U/C rule insertion Octeontx2-af: Install TC filter rules in hardware based on priority octeontx2-af: Remove tc rule count check while getting ntuple rule count octeontx2-pf: Remove source port check while adding ntuple rule for GTP-U/C octeontx2-pf: Check ntuple status from netdev feautre status octeontx2-af: Enable hash extraction of IPv6 source/destination Sunil Kumar Kori (1): octeontx2-af: fix Rx PTP mode cleanup drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 18 +- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 17 +- .../crypto/marvell/octeontx2/otx2_cpt_devlink.c| 45 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 25 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 16 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 76 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 2 + drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 13
[linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon[RT]
Hi Bruce, Please help to merge these patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 27ce0c445507e848b9ed5de6a0d6b02d2510e12c: Merge branch 'v5.15/standard/preempt-rt/base' into v5.15/standard/preempt-rt/cn-sdkv5.15/octeon (2023-04-27 10:30:42 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git v5.15/standard/preempt-rt/cn-sdkv5.15/octeon for you to fetch changes up to 5a32bd6c1fb3869464a5ff2f68318d978b5797c2: octeontx2-af: update TIM adjust GTI errata silicons (2023-04-28 02:37:58 +) Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (3): octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Using compound/head page ref count George Cherian (1): driver:mpam: Fix the compilations issues when ACPI is not selected Gowthami Thiagarajan (4): drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk spi: spi-nor: Fix the spi_nor_panic_write drivers:spi:cadence-xspi: Add low-level changes to support kmsg panic/oops write drivers:spi:cadence-xspi: Switch to polling mode when in panic Hariprasad Kelam (2): octeontx2-af: cn10kb: Correct PF to NIX block mapping octeontx2-pf: Define new ethtool modes for CN10KB Naveen Mamindlapalli (5): octeontx2-af: Fix return value in rvu_mbox_handler_nix_lf_stop_rx octeontx2-bphy-netdev: cnf10k: don't modify pps threshold when sw timecounter is not used octeontx2-af: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fixed sparse errors Nithin Dabilpuram (1): octeontx2-af: fix issue with spitosa table teardown Piyush Malgujar (1): driver: spi: cadence: Add ACPI support Radha Mohan Chintakuntla (2): ptm-ep: Add PTM requestor driver octeontx2-sdp: add CN10kB for using correct mask Rahul Bhansali (1): octeontx2-af: updated Tx link register range Rakesh Babu Saladi (1): octeontx2-af: cn10k: Apply PTP errata workaround for relevant chip variants Shijith Thotton (1): octeontx2-af: update TIM adjust GTI errata silicons Srujana Challa (6): octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx. Subbaraya Sundeep (4): octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Fix shared counters logic octeontx2-af: Remove AF resource limits octeontx2-pf: Restore TC ingress police rules when interface is up Suman Ghosh (9): octeontx2-af: Fix issues with NPC field hash extract octeontx2-pf: Update PFC configuration Octeontx2-af: Remove DMAC filter check during NPC initialization Octeontx2-pf: Fix error condition for GTP-U/C rule insertion Octeontx2-af: Install TC filter rules in hardware based on priority octeontx2-af: Remove tc rule count check while getting ntuple rule count octeontx2-pf: Remove source port check while adding ntuple rule for GTP-U/C octeontx2-pf: Check ntuple status from netdev feautre status octeontx2-af: Enable hash extraction of IPv6 source/destination Sunil Kumar Kori (1): octeontx2-af: fix Rx PTP mode cleanup drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 18 +- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 17 +- .../crypto/marvell/octeontx2/otx2_cpt_devlink.c| 45 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 25 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 16 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 76 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 2 + drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 13 + drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 27 + drivers/firmware/octeontx2/Kconfig | 15 + drivers/firmware/octeontx2/Makefile| 1 + drivers/firmware/octeontx2/retimer-mgmt.c | 243 + drivers/mtd/spi-nor/core.c | 61 ++ drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 38 +- .../net/ethernet/marvell/octeontx2/af/cgx_fw_if.h | 11 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 25 +-
[linux-yocto][linux-yocto v5.15] update to SDK12.23.04 for marvell octeon
Hi Bruce, Please help to merge these patches into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon Thanks, Ruiqiang The following changes since commit 2d0d753026e95a7a3984d58fa600f8383dd2fbc8: Merge branch 'v5.15/standard/base' into v5.15/standard/cn-sdkv5.15/octeon (2023-04-27 10:27:35 -0400) are available in the Git repository at: g...@github.com:cythe/linux.git v5.15/standard/cn-sdkv5.15/octeon for you to fetch changes up to 4d797c95997e67fc3db8433597cb044ef55cb379: octeontx2-af: update TIM adjust GTI errata silicons (2023-04-28 01:49:28 +) Damian Eppel (2): firmware: octeontx2: sysfs interface for retimer firmware: octeontx2: retimer-mgmt: change SMC call number Geetha sowjanya (3): octeontx2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Remove SA stats support octeontx2-pf: Using compound/head page ref count George Cherian (1): driver:mpam: Fix the compilations issues when ACPI is not selected Gowthami Thiagarajan (4): drivers: mtd: spi-nor: Support kmsg dumper based on pstore/blk spi: spi-nor: Fix the spi_nor_panic_write drivers:spi:cadence-xspi: Add low-level changes to support kmsg panic/oops write drivers:spi:cadence-xspi: Switch to polling mode when in panic Hariprasad Kelam (2): octeontx2-af: cn10kb: Correct PF to NIX block mapping octeontx2-pf: Define new ethtool modes for CN10KB Naveen Mamindlapalli (5): octeontx2-af: Fix return value in rvu_mbox_handler_nix_lf_stop_rx octeontx2-bphy-netdev: cnf10k: don't modify pps threshold when sw timecounter is not used octeontx2-af: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fix ptp timestamp conversion when using external clock octeontx2-bphy-netdev: Fixed sparse errors Nithin Dabilpuram (1): octeontx2-af: fix issue with spitosa table teardown Piyush Malgujar (1): driver: spi: cadence: Add ACPI support Radha Mohan Chintakuntla (2): ptm-ep: Add PTM requestor driver octeontx2-sdp: add CN10kB for using correct mask Rahul Bhansali (1): octeontx2-af: updated Tx link register range Rakesh Babu Saladi (1): octeontx2-af: cn10k: Apply PTP errata workaround for relevant chip variants Shijith Thotton (1): octeontx2-af: update TIM adjust GTI errata silicons Srujana Challa (6): octeontx2-af: fix CPT ctx flush crypto:octeontx2: fetch engine capabilities for SGv2 crypto: octeontx2: add LF reset on queue disable crypto:octeontx2: Fix CN10KA model detection logic crypto: octeontx2: add devlink option to set max_rxc_icb_cnt octeontx2-af: fix accessing of CPT register on 105xx. Subbaraya Sundeep (4): octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Fix shared counters logic octeontx2-af: Remove AF resource limits octeontx2-pf: Restore TC ingress police rules when interface is up Suman Ghosh (9): octeontx2-af: Fix issues with NPC field hash extract octeontx2-pf: Update PFC configuration Octeontx2-af: Remove DMAC filter check during NPC initialization Octeontx2-pf: Fix error condition for GTP-U/C rule insertion Octeontx2-af: Install TC filter rules in hardware based on priority octeontx2-af: Remove tc rule count check while getting ntuple rule count octeontx2-pf: Remove source port check while adding ntuple rule for GTP-U/C octeontx2-pf: Check ntuple status from netdev feautre status octeontx2-af: Enable hash extraction of IPv6 source/destination Sunil Kumar Kori (1): octeontx2-af: fix Rx PTP mode cleanup drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 18 +- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 17 +- .../crypto/marvell/octeontx2/otx2_cpt_devlink.c| 45 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 25 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 16 +- drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 76 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 1 + drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 2 + drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 13 + drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 27 + drivers/firmware/octeontx2/Kconfig | 15 + drivers/firmware/octeontx2/Makefile| 1 + drivers/firmware/octeontx2/retimer-mgmt.c | 243 + drivers/mtd/spi-nor/core.c | 61 ++ drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 38 +- .../net/ethernet/marvell/octeontx2/af/cgx_fw_if.h | 11 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 25 +-
[linux-yocto] [PATCH] coresight: etm4x: add a tweak of TRCDEVARCH to support Ignore Packet feature
From: Ruiqiang Hao The tweak of TRCIDR1 introduced by commit 233b9a7d036d ("coresight: etm4x: Add support for Marvell OcteonTX2") was dropped by commit 7b579662e78d (coresight: etm4x: Drop the useless tweak of TRCIDR1), This will loss the original Ignore Packet feature, so we use a tweak of TRCDEVARCH to support this feature again. Signed-off-by: Ruiqiang Hao --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index d5d1136ab83d..9c01ed6b4b8a 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -990,6 +990,15 @@ static bool etm4_init_iomem_access(struct etmv4_drvdata *drvdata, { u32 devarch = readl_relaxed(drvdata->base + TRCDEVARCH); + /* OcteonTX2 hardware reports version as ETMv4.2 but it supports +* Ignore Packet feature of ETMv4.3. Hence, treat this as comaptible +* with ETMv4.3. +*/ + if (drvdata->etm_quirks & CORESIGHT_QUIRK_ETM_TREAT_ETMv43) { + devarch &= ~ETM_DEVARCH_REVISION_MASK; + devarch |= 0x3 << ETM_DEVARCH_REVISION_SHIFT; + } + /* * All ETMs must implement TRCDEVARCH to indicate that * the component is an ETMv4. Even though TRCIDR1 also -- 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12423): https://lists.yoctoproject.org/g/linux-yocto/message/12423 Mute This Topic: https://lists.yoctoproject.org/mt/98528771/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 v5.15] add tweak of TRCDEVARCH to support ignore packet feature of ETMv4.3 for marvell octeon
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12422): https://lists.yoctoproject.org/g/linux-yocto/message/12422 Mute This Topic: https://lists.yoctoproject.org/mt/98528770/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 v5.15] kernel code based on new sdk version for marvell octeon
zation support for CNF10k platforms. octeontx2-bphy-netdev: cnf10k: fix for PTP BCN delta octeontx2-bphy-netdev: debugfs: Add new debugfs root entry octeontx2-bphy-netdev: debugfs: new entry to dump jdt ring octeontx2-bphy-netdev: debugfs: new entry to dump timestamp ring octeontx2-bphy-netdev: debugfs: new entry to dump RPM stats octeontx2-bphy-netdev: cnf10k: Recalculate UDP checksum. octeontx2-bphy-netdev: cnf10k: Enable force_cond_clk_en bit octeontx2-bphy-netdev: Set external_clock_rate for all RFOE interfaces. octeontx2-bphy-netdev: Add new fields in ethtool stats octeontx2-bphy-netdev: cnf10k: enable skb list processing for delay_request. octeontx2-bphy-netdev: Add new secondary BCN offset for slave octeontx2-bphy-netdev: debugfs: Added FEC stats in debugfs. octeontx2-bphy-netdev: cnf10k: Enable FORCE_COND_CLK_EN only for applicable chips. octeontx2-bphy-netdev: debugfs: remove debugfs entries. octeontx2-bphy-netdev: cnf10k: Poll for timestamp to commit into PTP ring Rakesh Kudurumalla (1): octeontx2-af: add support for CPT second pass Raphael Gault (1): Documentation: arm64: Document PMU counters access from userspace Ratheesh Kannoth (20): octeontx2-af: Use hashed field in MCAM key octeontx2-af: Exact match support octeontx2-af: Exact match scan from kex profile octeontx2-af: devlink configuration support octeontx2-af: FLR handler for exact match table. octeontx2-af: Drop rules for NPC MCAM octeontx2-af: Debugsfs support for exact match. octeontx2: Modify mbox request and response structures octeontx2-af: Wrapper functions for MAC addr add/del/update/reset octeontx2-af: Invoke exact match functions if supported octeontx2-pf: Add support for exact match table. octeontx2-af: Enable Exact match flag in kex profile octeontx2-af: Fixes static warnings octeontx2-af: Skip PFs if not enabled octeontx2-pf: Fix SQE threshold checking octeontx2-af: Fix devlink unregister octeontx2-pf: Fix coverity issues octeontx2-af: Fix start and end bit for scan config octeontx2-af: Fix depth of cam and mem table. octeontx2-pf: Increase the size of dmacflt_max_flows Ravi Bangoria (3): perf/uapi: Define PERF_MEM_SNOOPX_PEER in kernel header file perf mem/c2c: Avoid printing empty lines for unsupported events perf mem: Print "LFB/MAB" for PERF_MEM_LVLNUM_LFB Ray Asbury (1): drivers: pci-octeon-pem: Rectify resetting PEM Ren Zhijie (1): octeontx2-pf: Fix unused variable build error Rick Farrington (1): drivers: soc: marvell: Add PCI console driver Rob Herring (8): x86: perf: Move RDPMC event flag to a common definition perf: Add a counter for number of user access events in context arm64: perf: Add userspace counter access disable switch arm64: perf: Enable PMU counter userspace access for perf event dt-bindings: arm: Add MPAM MSC binding of: Add of_get_cpu_hwid() to read hardware ID from CPU nodes cacheinfo: Allow for >32-bit cache 'id' cacheinfo: Set cache 'id' based on DT data Roy Franz (4): octeontx2-bphy-netdev:: Share RFOE PTP offset with host octeontx2-bphy-netdev:cnf10k: Share RFOE PTP offset with host octeontx2-sdpvf: Fix PTP options for SDP interfaces octeontx2-pf: Use 1 TL4 queue per SDP output queue, enable SDP backpressure Ruiqiang Hao (5): of: unittest: fix refcount error "use-after-free" firmware: sdei: Change sdei_list_lock type coresight: etm4x: Change sdei_list_lock type net: cavium: remove unused lock octeontx_fpavf_alloc_lock edac: octeontx_edac: resolve dead lock in queue work pool Samuel Holland (1): genirq: GENERIC_IRQ_EFFECTIVE_AFF_MASK depends on SMP Satananda Burla (1): PCI: add misc character device for BAR4 mem access Satha Rao (2): octeontx2-af: add new mbox to support sync cycle on rx path octeontx2-af: fixed resource availability check Satheesh Paul A (1): octeontx2-af: support for custom L2 header Sathesh Edara (1): octeontx2-af: Update minimum receive frame size Sean Anderson (1): net: convert users of bitmap_foo() to linkmode_foo() Sebin Sebastian (1): octeontx2-af: returning uninitialized variable Selvam Venkatachalam (2): drives: soc: marvell: support to print reset counters drives: soc: marvell: update to support to print reset counters Shang XiaoJing (1): spi: cadence: Remove redundant dev_err call Shijith Thotton (20): octeontx2-af: fix operand size in bitwise operation octeontx2-af: add SSO mbox message to release XAQ aura octeontx2-af: enhance SSO FLR for CN10K octeontx2-af: fixes for SSO FLR octeontx2-af: allow lower threshold in sso group qos mbox octeontx2-af: remove support to lim
[linux-yocto][linux-yocto v5.15] include support for cypress flash s25fl064l on Marvell cn96xx board
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12417): https://lists.yoctoproject.org/g/linux-yocto/message/12417 Mute This Topic: https://lists.yoctoproject.org/mt/98443643/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] mtd/spi-nor: enable USE_CLSR capability for Cypress FL-L product family
From: Yaliang Wang In Cypress FL-L product family, P_ERR or E_ERR bits are shifted to SR2V, and are actually being used. Which means we need cope this special condition accordingly. Signed-off-by: Yaliang Wang [RQ: adjust code structure to fit kernel v5.15.] Signed-off-by: Ruiqiang Hao --- drivers/mtd/spi-nor/core.c | 45 +- drivers/mtd/spi-nor/spansion.c | 6 ++--- include/linux/mtd/spi-nor.h| 1 + 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 479f22c2dc01..b87d11c54b2a 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -676,6 +676,40 @@ static void spi_nor_clear_sr(struct spi_nor *nor) dev_dbg(nor->dev, "error %d clearing SR\n", ret); } +static const struct flash_info *spi_nor_read_id(struct spi_nor *nor); +/* + * Cypress FL-L series devices have redesigned the status register, + * P_ERR and E_ERR bits are shifted to the status register 2. + */ +static int spi_nor_s25fl_l_sr_ready(struct spi_nor *nor) +{ + u8 sr1, sr2; + int ret; + + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR, , 1); + if (ret < 0) { + pr_err("error %d reading SR\n", (int) ret); + return ret; + } + ret = nor->controller_ops->read_reg(nor, SPINOR_OP_RDSR2_FL_L, , 1); + if (ret < 0) { + pr_err("error %d reading SR2\n", (int) ret); + return ret; + } + + if (nor->flags & SNOR_F_USE_CLSR && sr2 & (SR_E_ERR | SR_P_ERR)) { + if (sr2 & SR_E_ERR) + dev_err(nor->dev, "Erase Error occurred\n"); + else + dev_err(nor->dev, "Programming Error occurred\n"); + + nor->controller_ops->write_reg(nor, SPINOR_OP_CLSR, NULL, 0); + return -EIO; + } + + return !(sr1 & SR_WIP); +} + /** * spi_nor_sr_ready() - Query the Status Register to see if the flash is ready * for new commands. @@ -685,7 +719,16 @@ static void spi_nor_clear_sr(struct spi_nor *nor) */ static int spi_nor_sr_ready(struct spi_nor *nor) { - int ret = spi_nor_read_sr(nor, nor->bouncebuf); + int ret; + const struct flash_info *tmpinfo = (nor->info == NULL) ? nor->info : spi_nor_read_id(nor); + + if (!IS_ERR_OR_NULL(tmpinfo)){ + if (!strcmp(tmpinfo->name, "s25fl064l") || !strcmp(tmpinfo->name, "s25fl128l") || !strcmp(tmpinfo->name, "s25fl256l")){ + return spi_nor_s25fl_l_sr_ready(nor); + } + } + + ret = spi_nor_read_sr(nor, nor->bouncebuf); if (ret) return ret; diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 036095cb68bb..a9cdb3099eb3 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -267,13 +267,13 @@ static const struct flash_info spansion_parts[] = { SECT_4K | SPI_NOR_DUAL_READ) }, { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | -SPI_NOR_4B_OPCODES) }, +SPI_NOR_4B_OPCODES | USE_CLSR) }, { "cy15x104q", INFO6(0x042cc2, 0x7f7f7f, 512 * 1024, 1, SPI_NOR_NO_ERASE) }, { "s28hs512t", INFO(0x345b1a, 0, 256 * 1024, 256, diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index cd84afa17663..385edb74fd52 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -102,6 +102,7 @@ /* Used for Spansion flashes only. */ #define SPINOR_OP_BRWR 0x17/* Bank register write */ #define SPINOR_OP_CLSR 0x30/* Clear status register 1 */ +#define SPINOR_OP_RDSR2_FL_L 0x07/* Read status register 2 */ /* Used for Micron flashes only. */ #define SPINOR_OP_RD_EVCR 0x65/* Read EVCR register */ -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12418): https://lists.yoctoproject.org/g/linux-yocto/message/12418 Mute This Topic: https://lists.yoctoproject.org/mt/98443644/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arch: arm64: change the formal parameters to fit the new kernel data structure
From: Ruiqiang Hao After commit 46ddfb9d1e46 (arm64: Treat ESR_ELx as a 64-bit register), ESR_ELx is defined as 64-bit register. We need to adapt this change for marvell erratum 38891 to avoid the following compilation problems. arch/arm64/kernel/traps.c:702:28: error: initialization of 'void (*)(long unsigned int, struct pt_regs *)' from incompatible pointer type 'void (*)(unsigned int, struct pt_regs *)' [-Werror=incompatible-pointer-types] 702 | .handler = user_cache_maint_handler, |^~~~ arch/arm64/kernel/traps.c:702:28: note: (near initialization for 'sys64_hooks[0].handler') arch/arm64/kernel/traps.c:708:28: error: initialization of 'void (*)(long unsigned int, struct pt_regs *)' from incompatible pointer type 'void (*)(unsigned int, struct pt_regs *)' [-Werror=incompatible-pointer-types] 708 | .handler = ctr_read_handler, |^~~~ Signed-off-by: Ruiqiang Hao --- arch/arm64/kernel/traps.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 79feff027923..e199f768d27a 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -539,7 +539,7 @@ NOKPROBE_SYMBOL(do_ptrauth_fault); } void -user_cache_maint_handler_errtaum_38891(unsigned int esr, struct pt_regs *regs) +user_cache_maint_handler_errtaum_38891(unsigned long esr, struct pt_regs *regs) { unsigned long address; int rt = ESR_ELx_SYS64_ISS_RT(esr); @@ -590,7 +590,7 @@ user_cache_maint_handler_errtaum_38891(unsigned int esr, struct pt_regs *regs) } -void user_cache_maint_handler_generic(unsigned int esr, struct pt_regs *regs) +void user_cache_maint_handler_generic(unsigned long esr, struct pt_regs *regs) { unsigned long tagged_address, address; int rt = ESR_ELx_SYS64_ISS_RT(esr); @@ -630,7 +630,7 @@ void user_cache_maint_handler_generic(unsigned int esr, struct pt_regs *regs) arm64_skip_faulting_instruction(regs, AARCH64_INSN_SIZE); } -static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs) +static void user_cache_maint_handler(unsigned long esr, struct pt_regs *regs) { if (cpus_have_cap(ARM64_WORKAROUND_MARVELL_38891)) user_cache_maint_handler_errtaum_38891(esr, regs); @@ -638,7 +638,7 @@ static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs) user_cache_maint_handler_generic(esr, regs); } -static void ctr_read_handler(unsigned int esr, struct pt_regs *regs) +static void ctr_read_handler(unsigned long esr, struct pt_regs *regs) { int rt = ESR_ELx_SYS64_ISS_RT(esr); unsigned long val = arm64_ftr_reg_user_value(_ftr_reg_ctrel0); -- 2.32.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12060): https://lists.yoctoproject.org/g/linux-yocto/message/12060 Mute This Topic: https://lists.yoctoproject.org/mt/96148235/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 v5.15] fix patch for marvell octeon
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12059): https://lists.yoctoproject.org/g/linux-yocto/message/12059 Mute This Topic: https://lists.yoctoproject.org/mt/96148234/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] net: octeontx2: nic: fix compile error caused by redefinition of otx2_nix_cq_op_status()
From: Ruiqiang Hao commit ec0db81883b4(octeontx2-pf: Use hardware register for CQE count) introduced duplicate function definition 'otx2_nix_cq_op_status', this function already available in SDK11's patches, so delete one to solve the following compiling issue. drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:57:12: error: redefinition of 'otx2_nix_cq_op_status' 57 | static int otx2_nix_cq_op_status(struct otx2_nic *pfvf, |^ drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:28:19: note: previous definition of 'otx2_nix_cq_op_status' with type 'int(struct otx2_nic *, struct otx2_cq_queue *)' 28 | static inline int otx2_nix_cq_op_status(struct otx2_nic *pfvf, | ^ Signed-off-by: Ruiqiang Hao --- .../marvell/octeontx2/nic/otx2_txrx.c | 25 --- 1 file changed, 25 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c index 7751db3b1daf..84813fbea855 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c @@ -25,31 +25,6 @@ */ #define PTP_SYNC_SEC_OFFSET34 -static inline int otx2_nix_cq_op_status(struct otx2_nic *pfvf, - struct otx2_cq_queue *cq) -{ - u64 incr = (u64)(cq->cq_idx) << 32; - u64 status; - - status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); - - if (unlikely(status & BIT_ULL(CQ_OP_STAT_OP_ERR) || -status & BIT_ULL(CQ_OP_STAT_CQ_ERR))) { - dev_err(pfvf->dev, "CQ stopped due to error"); - return -EINVAL; - } - - cq->cq_tail = status & 0xF; - cq->cq_head = (status >> 20) & 0xF; - if (cq->cq_tail < cq->cq_head) - cq->pend_cqe = (cq->cqe_cnt - cq->cq_head) + - cq->cq_tail; - else - cq->pend_cqe = cq->cq_tail - cq->cq_head; - - return 0; -} - static inline bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf, struct nix_cqe_rx_s *cqe, struct otx2_cq_queue *cq); -- 2.38.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11989): https://lists.yoctoproject.org/g/linux-yocto/message/11989 Mute This Topic: https://lists.yoctoproject.org/mt/95459471/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 v5.15] fix build error of duplicate function definition
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11990): https://lists.yoctoproject.org/g/linux-yocto/message/11990 Mute This Topic: https://lists.yoctoproject.org/mt/95459472/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 v5.15] fix build warning of phy_7121p_macadv_features for marvell octeon
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11962): https://lists.yoctoproject.org/g/linux-yocto/message/11962 Mute This Topic: https://lists.yoctoproject.org/mt/95308096/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] soc: marvell: remove useless condition judgment
From: Ruiqiang Hao commit 35de797c1e8f(driver :soc :phy7121:MACsec: Params support for SA) add MACSEC feature. It seems to compare a char array with 0 in function phy_debug_mac_sec_write(), it is useless and introduces below warning, we can remove it temporarily and restore it if necessary in the future. drivers/soc/marvell/phy_7121p_macadv_features.c: In function 'phy_debug_mac_sec_write': drivers/soc/marvell/phy_7121p_macadv_features.c:695:52: warning: the comparison will always evaluate as 'false' for the address of 'mac' will never be NULL [-Waddress] 695 | if (mac_adv->data.vport_params.mac == 0) |^~ drivers/soc/marvell/phy_7121p_macadv_features.c:250:23: note: 'mac' declared here 250 | unsigned char mac[6]; | ^~~ drivers/soc/marvell/phy_7121p_macadv_features.c:870:49: warning: the comparison will always evaluate as 'false' for the address of 'sci' will never be NULL [-Waddress] 870 | if (mac_adv->data.sa_params.sci == 0) | ^~ drivers/soc/marvell/phy_7121p_macadv_features.c:312:23: note: 'sci' declared here 312 | unsigned char sci[MACSEC_SCI_SIZE]; | ^~~ Signed-off-by: Ruiqiang Hao --- drivers/soc/marvell/phy_7121p_macadv_features.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/soc/marvell/phy_7121p_macadv_features.c b/drivers/soc/marvell/phy_7121p_macadv_features.c index fed10f5618bc..13ffeeed7c30 100644 --- a/drivers/soc/marvell/phy_7121p_macadv_features.c +++ b/drivers/soc/marvell/phy_7121p_macadv_features.c @@ -692,9 +692,6 @@ static ssize_t phy_debug_mac_sec_write(struct file *filp, MAC_ADV_DEBUG("\n %s PHY_MAC_ADV_MACSEC_SET_DA mac_adv->data.mac.mac %s", __func__, (char *)mac_adv->data.vport_params.mac); - if (mac_adv->data.vport_params.mac == 0) - return -EINVAL; - break; case PHY_MAC_ADV_MACSEC_SET_KEY: @@ -867,9 +864,6 @@ static ssize_t phy_debug_mac_sec_write(struct file *filp, MAC_ADV_DEBUG("\n %s PHY_MAC_ADV_MACSEC_SET_SCI mac_adv->data.sci_id.sci %s", __func__, (char *)mac_adv->data.sa_params.sci); - if (mac_adv->data.sa_params.sci == 0) - return -EINVAL; - mac_adv->data.sa_params.is_sci = true; break; -- 2.38.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11963): https://lists.yoctoproject.org/g/linux-yocto/message/11963 Mute This Topic: https://lists.yoctoproject.org/mt/95308097/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 v5.15] fix dead lock in queue work pool for marvell octeon GHES function
Hi Bruce, Please help to merge this patch into our linux-yocto repo. repo: linux-yocto branch: v5.15/standard/cn-sdkv5.4/octeon v5.15/standard/preempt-rt/cn-sdkv5.4/octeon Thanks, Ruiqiang -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11956): https://lists.yoctoproject.org/g/linux-yocto/message/11956 Mute This Topic: https://lists.yoctoproject.org/mt/95304742/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-