forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 6
SG2042: update pcie driver & add numa-id description #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add 2500BASE-x interface type support for phytmac driver. Mainline: NA Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I9e0f81c8c9224a89be17714fb8a1b2905499f8bf Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/e1983bd12b88ce9b07660251c9d73d400cbab2e0 Signed-off-by: Kexy Biscuit <[email protected]>
It should notify the BIOS to enable or disable the WOL function. This patch adds support for it. Mainline: NA Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I1c900bc38faff9d0054c38329e55df8dd16e8d28 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/4c06f35e7d80ce9c350cfcfe8f35ec66326a12c0 Signed-off-by: Kexy Biscuit <[email protected]>
Signed-off-by: zuoqian <[email protected]> Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/98c9f77e608579c85080570858a83b2eb8e3f307 Signed-off-by: Kexy Biscuit <[email protected]>
Before configuring WOL, we need to obtain the packet types that WOL supports. Mainline: NA Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Signed-off-by: zuoqian <[email protected]> Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/88f00b76168d9ba6ee37c0286d5c750a4c6ab806 Signed-off-by: Kexy Biscuit <[email protected]>
This patch Adds support for phtymac v2.0,including acpi description, rx tail pointer supporting, power management and other functions. Mainline: NA Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I4758cfb98004683e6ea79079ec263fbc49e46c69 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/3f2b924070a4f3937eef439656d0971eaaa2aa14 Signed-off-by: Kexy Biscuit <[email protected]>
When the value of the bd_prefetch is equal to 0, subtracting 1 and shifting left will cause the overflow issue. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: Idc6b8f8100c62331ca6e9778082c533221558e8a Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/ec5f2c26458fcf71564603c01901a717eeddee19 Signed-off-by: Kexy Biscuit <[email protected]>
This reverts commit 94967211afe596a9e9c5d80ca9d54e915de3a335. Signed-off-by: liutianyu1250 <[email protected]> Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/15076a68a5a825e0275fb71dea20e9a0a1d54057 Signed-off-by: Kexy Biscuit <[email protected]>
This reverts commit 3161ed880479e35c7759e127c62c37d2d722edee. Signed-off-by: liutianyu1250 <[email protected]> Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/bbbe8cf7d988f8c0cd1369b8aa4700541444226a Signed-off-by: Kexy Biscuit <[email protected]>
Don't manage WoL on MAC, if PHY sets wol fails, So modify if statement to handle abnormal scenarios correctly. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I54cb5ea7f3a51d1b5c4768c6f15fd7e3bb6502ae Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/3b966d55109f329286fb6c3da0c57ac4a0fa5bfa Signed-off-by: Kexy Biscuit <[email protected]>
The bit of RX_TS_VALID should be retained in the process of zero RX address description, which indicates a valid timestamp in the BD entry. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I9b6b89ea3bb9907d2a929e4fa630b6cf28dac4ef Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/f1ff6d0c777103aba315cc3427f4b6dc5f18560b Signed-off-by: Kexy Biscuit <[email protected]>
The MAC register is powered on by default in the firmware and the driver cancels the power-on and power-off capability. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I6a55c577f92fe4f39bc7290861f217b7699ba9ee Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/ba2e5fa1f8e4e92786347336f7fd56c2cd4f65fc Signed-off-by: Kexy Biscuit <[email protected]>
Exit early to avoid system stuck due to MDIO timeout. We have added a callback function for mdio_idle and improved its return value for judgment. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I89bd4a42402bdcab150f0808444d776ee7f7a76e Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/75f8c2f029695ed165dfcbeca5fe7cda24dd9b3f Signed-off-by: Kexy Biscuit <[email protected]>
Add XDP feature support to the phytmac driver.XDP by optimizing the data processing flow provided significant performance improvements for high-performance network application. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: Icebe6d715b844b4386be631c292349d0a9a70b50 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/a6378f4881507aa0a5536551fe357ed0ab9065c8 Signed-off-by: Kexy Biscuit <[email protected]>
…ruction If the skb build failed, the descriptor address has been cleared, and the current descriptor will be considered invalid in the next round of processing. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I67900da07421ed3773e3f29dd2ddb16ce39fae1d Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/35be7e0f4fe7ed1612b14c56a83f497d06138afd Signed-off-by: Kexy Biscuit <[email protected]>
It is need to enable the RX/TX tail pointer to ensure the NIC works properly. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I6e7fbf04484539add0834d0aaa0fee1cb0001355 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/e1f3cb62ca1bb3fc7267def60f2f853ad27d2280 Signed-off-by: Kexy Biscuit <[email protected]>
Change the para size in the msg struct from 64 to 56 and add mutux to avoid race. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I295f019f2d659c656816c88c42ea74caf3afa1f0 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/3b223d03776f8201d3f0487fe61a10b5cd6b1b90 Signed-off-by: Kexy Biscuit <[email protected]>
Before configuring WOL, we need to obtain the packet types that WOL supports. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I22ed39f691044f35fa09ee76788711fc723fc6fc Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/b44b37fdc57a32edb8bf0a5e763ea71c716cce09 Signed-off-by: Kexy Biscuit <[email protected]>
After the spinlock is called, the mutex should no longer to be invoked, which will lead to unnecessary sleep. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: I325188e12bdf0674454aba238624d05e4d877d38 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/d35f06971ac92e652e17033d40067c58e0cfd90c Signed-off-by: Kexy Biscuit <[email protected]>
…nRnE The resource type is changed from nRE to nRnE to avoid interrupt loss at low probability of occurrence. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: If47dd823936b7c66b809952c844e2acff06a8ed1 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/cd72b3d4a536cd3f67210de692345ae704133d5f Signed-off-by: Kexy Biscuit <[email protected]>
The size of the memory released in the dma_free_coherent is smaller than the size of the memory allocated in the dma_alloc_coherent, which will lead to memory leakage and fragmentation. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: If06e83aec976cc485829b8e75d07e22ae7c6cfae Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/93ba71759d83f0122e818867a56bffcdc31f278d Signed-off-by: Kexy Biscuit <[email protected]>
It is need to limit retries that messages are processed to avoid deadlock, when RV has no response. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Change-Id: Ic300b8c8544af91c62564caf538a2a2eb6c0b512 Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/d8fbda0b50a320673194e971fac55b6adbb2a85f Signed-off-by: Kexy Biscuit <[email protected]>
Signed-off-by: liutianyu1250 <[email protected]> Link: https://gitee.com/phytium_embedded/phytium-linux-kernel/commit/f12de776aa34dbdc7e389542ade8a67325d18925 Signed-off-by: Kexy Biscuit <[email protected]>
There are 2 mode of value of IEEE NaN hardcoded by CPU. Currently, our mipsel/mips64el port is in so-called lagacy mode. Loongson 3A 4000 is set as the so-called 2008 mode. To make Debian workable on Loongson 3A 4000, we need set the kerenl in RELAXED mode. https://web.archive.org/web/20180830093617/https://dmz-portal.mips.com/wiki/MIPS_ABI_-_NaN_Interlinking [bwh: Update for addition of EMULATED mode in 6.11] Signed-off-by: YunQiang Su <[email protected]> Link: https://salsa.debian.org/kernel-team/linux/-/blob/a71628c034f0c156c0868f53b14a9928c4d02f91/debian/patches/debian/mips-ieee754-relaxed.patch Signed-off-by: Kexy Biscuit <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1929504 This refator patch adds support for the hwmon information which are transported to userspace through ASUS WMI interface. Signed-off-by: Kunyang_Fan <[email protected]> Review-by: Kai-Heng Feng <[email protected]> Review-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Acked-by: Stefan Bader <[email protected]> Acked-by: Kleber Sacilotto de Souza <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/d927fbdbccb2b2d8f6891b6f51e1570e74e25e14 Signed-off-by: Kexy Biscuit <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1929504 This patch adds support for the led devices which can be controlled from sysfs through ASUS WMI interface. Signed-off-by: Kunyang_Fan <[email protected]> Review-by: Kai-Heng Feng <[email protected]> Review-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Acked-by: Stefan Bader <[email protected]> Acked-by: Kleber Sacilotto de Souza <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/dea44875e926deababd0efc7d3200319562e3337 Signed-off-by: Kexy Biscuit <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1929504 This patch add support for the GPIO pins whose control are transported to BIOS through ASUS WMI interface. Signed-off-by: Kunyang_Fan <[email protected]> Review-by: Kai-Heng Feng <[email protected]> Review-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Acked-by: Stefan Bader <[email protected]> Acked-by: Kleber Sacilotto de Souza <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/37faff18ec5a41729832e8229cda02d7c0e47f72 Signed-off-by: Kexy Biscuit <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1929504 This adds the supports for multiple IO functions of the AAEON x86 devices and makes use of the WMI interface to control the these IO devices including: - GPIO - LED - Watchdog - HWMON It also adds the mfd child device drivers to support the above IO functions. Signed-off-by: Kunyang_Fan <[email protected]> Review-by: Kai-Heng Feng <[email protected]> Review-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Acked-by: Stefan Bader <[email protected]> Acked-by: Kleber Sacilotto de Souza <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/9c320f62f5890f8e78485453db7c0eec68884d34 Signed-off-by: Kexy Biscuit <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1937897 For the below: error log occurring in some devices: gpio gpiochip0: (gpio_aaeon): tried to insert a GPIO chip with zero lines gpiochip_add_data_with_key: GPIOs 0..-1 (gpio_aaeon) failed to register Add the BFPI version checking mechanism to prevent error log bumping. Fixes: 4249451 ("UBUNTU: ODM: mfd: Add support for IO functions of AAEON devices") Signed-off-by: Kunyang_Fan <[email protected]> Acked-by: Kai-Heng Feng <[email protected]> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Signed-off-by: Paolo Pisati <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/3d4fbe8d0b4b0f023fbfc2b45e6005b470a5db37 Signed-off-by: Kexy Biscuit <[email protected]>
Fix the build after commit 0edb555 Author: Uwe Kleine-König <[email protected]> Date: Mon Oct 9 12:37:26 2023 +0200 platform: Make platform_driver::remove() return void Signed-off-by: Timo Aaltonen <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/6dd48b760b813aae56a9b0d55d91b2e52e3ac73e Signed-off-by: Kexy Biscuit <[email protected]>
… gfx BugLink: https://bugs.launchpad.net/bugs/2062951 This patch addresses a screen flickering issues on systems with Skylake integrated graphics, identified under Ubuntu kernel version 6.8.0-x. Initially thought to be a regression from kernel 6.6, it has been determined that the flickering was caused by changes to the Ubuntu kernel configuration, specifically the enabling of CONFIG_INTEL_IOMMU_DEFAULT_ON and CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON. 77e530c ("UBUNTU: [Config] enable Intel DMA remapping by default") The problem persists in the latest drm tip, and there is an upstream bug addressing the issue. https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11504 Before there is a real fix for the issue, we may have to add the affected GPU IDs to the quirk to disable its DMAR. Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]> Acked-by: Kuan-Ying Lee <[email protected]> Acked-by: Aaron Jauregui <[email protected]> Signed-off-by: Timo Aaltonen <[email protected]> Link: https://kernel.ubuntu.com/forgejo/ubuntu-kernel-next/linux/commit/5e37d3712ea4bb1c175177ddcb7241edd2532bdb [Kexy: Resolved minor conflict in drivers/iommu/intel/iommu.c] Signed-off-by: Kexy Biscuit <[email protected]>
In "FROMLIST: MIPS: Add syscall auditing support", a copyright header was removed from arch/mips/include/uapi/asm/unistd.h with no proper reason or related changes. Adding them back now. Signed-off-by: Kexy Biscuit <[email protected]>
…ifdefs In 85fcde4 ("kexec: split crashkernel reservation code out from crash_core.c"), crashk_res was moved from kernel/crash_core.c to kernel/crash_reserve.c. When CONFIG_CRASH_DUMP is set to no, CONFIG_CRASH_RESERVE won't be selected either, so kernel/crash_reserve.c will not be built. In d739f19 ("mips, crash: wrap crash dumping code into crash related ifdefs"), code using symbols in kernel/crash_reserve.c are optimized out by if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) statements, adding another if statement to fix the symbol left behind. Fixes: 85fcde4 ("kexec: split crashkernel reservation code out from crash_core.c") Fixes: d739f19 ("mips, crash: wrap crash dumping code into crash related ifdefs") Fixes: "BACKPORT: FROMLIST: MIPS: Reserve extra memory for crash dump" Signed-off-by: Kexy Biscuit <[email protected]>
…N only Suggested-by: Mingcong Bai <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
Following upstream name changes. Fixes: 47c2e30 ("scsi: Rename .device_configure() into .sdev_configure()") Fixes: "AOSCOS: mvsas: Optimise performance and stability on CPU_LOONGSON64" Signed-off-by: Kexy Biscuit <[email protected]>
Fix incomplete port of the previous patch mentioned below. Fixes: 535a076 ("serial: 8250_pci: Share WCH IDs with parport_serial driver") Fixes: "AOSCOS: parport: Add support for the WCH384 4S/1P multi-IO card" Signed-off-by: Kexy Biscuit <[email protected]>
The upstream has renamed the timer related functions to have a strict timer_ prefixed namespace. See commit 9b13df3 ("timers: Rename del_timer_sync() to timer_delete_sync()") and commit 41cb085 ("treewide, timers: Rename from_timer() to timer_container_of()"). Signed-off-by: Xi Ruoyao <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
Signed-off-by: Kexy Biscuit <[email protected]>
On LoongArch laptops using LG110 GPU for display, LS7A PWM3 is used for backlight brightness control. Thus we need to call pwm_add_table() so that the loonggpu driver can find the PWM for controlling the backlight. Signed-off-by: Xi Ruoyao <[email protected]>
The original patch declares the quirk under an incorrect name. What can I say. Fix it. Fixes: "FROMLIST: PCI: Override PCIe bridge supported speeds for older Loongson 3C6000 series steppings" Signed-off-by: Mingcong Bai <[email protected]>
The original patch did not write `break;' for each case, triggering `-Werror=implicit-fallthrough='. Add `break;' to each case to fix build. Fixes: "FROMLIST: PCI: Override PCIe bridge supported speeds for older Loongson 3C6000 series steppings" Signed-off-by: Mingcong Bai <[email protected]>
This reverts commit 9f2f1ae.
This reverts commit 63178b6.
This reverts commit 2fadcda.
This reverts commit c4c1ed9.
This reverts commit dbf291a.
Add binding for Sophgo SG2042 PCIe host controller. Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/2755f145755b6096247c26852b63671a6fea4dbf.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
ops of struct cdns_pcie may be NULL, direct use will result in a null pointer error. Add checking of pcie->ops before using it for new driver that may not supply pcie->ops. Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/18aba25b853d00caf10cc784093c0b91fdc1747d.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
Add support for PCIe controller in SG2042 SoC. The controller uses the Cadence PCIe core programmed by pcie-cadence*.c. The PCIe controller will work in host mode only, supporting data rate(gen4) and lanes(x16 or x8). Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/162d064228261ccd0bf9313a20288e510912effd.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
Add PCIe controller nodes in DTS for Sophgo SG2042. Default they are disabled. Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/5cecf3c854253e508a88995011dd4631fa0c6eae.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
Enable PCIe controllers for PioneerBox, which uses SG2042 SoC. Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/4e885f30470ea07f499c9a83ab5dd327e00774ca.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
Enable PCIe controllers for Sophgo SG2042_EVB_V1.X board, which uses SG2042 SoC. Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/2d85c8b221bf4aceae6f3dfaef6d53221daf7e70.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
Enable PCIe controllers for Sophgo SG2042_EVB_V2.0 board, which uses SG2042 SoC. Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/023eb6dbd2d9d808c3992e954ad7eb3840da8260.1757467895.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
According to the description of [1], sg2042 is divided into 4 numa. STREAM test performance will improve. Before: Function Best Rate MB/s Avg time Min time Max time Copy: 10739.7 0.015687 0.014898 0.016385 Scale: 10865.9 0.015628 0.014725 0.016757 Add: 10622.3 0.023276 0.022594 0.023899 Triad: 10583.4 0.023653 0.022677 0.024761 After: Function Best Rate MB/s Avg time Min time Max time Copy: 34254.9 0.005142 0.004671 0.005995 Scale: 37735.5 0.004752 0.004240 0.005407 Add: 44206.8 0.005983 0.005429 0.006461 Triad: 43040.6 0.006320 0.005576 0.006996 [1] https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/pic/mesh.png Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Han Gao <[email protected]>
5f5467a to
18731d3
Compare
|
Picked to |
MingcongBai
pushed a commit
that referenced
this pull request
Oct 23, 2025
[ Upstream commit 48918ca ] The test starts a workload and then opens events. If the events fail to open, for example because of perf_event_paranoid, the gopipe of the workload is leaked and the file descriptor leak check fails when the test exits. To avoid this cancel the workload when opening the events fails. Before: ``` $ perf test -vv 7 7: PERF_RECORD_* events & perf_sample fields: --- start --- test child forked, pid 1189568 Using CPUID GenuineIntel-6-B7-1 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0xa00000000 (cpu_atom/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0xa00000000 (cpu_atom/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 exclude_kernel 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 3 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0x400000000 (cpu_core/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0x400000000 (cpu_core/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 exclude_kernel 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 3 Attempt to add: software/cpu-clock/ ..after resolving event: software/config=0/ cpu-clock -> software/cpu-clock/ ------------------------------------------------------------ perf_event_attr: type 1 (PERF_TYPE_SOFTWARE) size 136 config 0x9 (PERF_COUNT_SW_DUMMY) sample_type IP|TID|TIME|CPU read_format ID|LOST disabled 1 inherit 1 mmap 1 comm 1 enable_on_exec 1 task 1 sample_id_all 1 mmap2 1 comm_exec 1 ksymbol 1 bpf_event 1 { wakeup_events, wakeup_watermark } 1 ------------------------------------------------------------ sys_perf_event_open: pid 1189569 cpu 0 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 perf_evlist__open: Permission denied ---- end(-2) ---- Leak of file descriptor 6 that opened: 'pipe:[14200347]' ---- unexpected signal (6) ---- iFailed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon #0 0x565358f6666e in child_test_sig_handler builtin-test.c:311 #1 0x7f29ce849df0 in __restore_rt libc_sigaction.c:0 #2 0x7f29ce89e95c in __pthread_kill_implementation pthread_kill.c:44 #3 0x7f29ce849cc2 in raise raise.c:27 #4 0x7f29ce8324ac in abort abort.c:81 #5 0x565358f662d4 in check_leaks builtin-test.c:226 #6 0x565358f6682e in run_test_child builtin-test.c:344 #7 0x565358ef7121 in start_command run-command.c:128 #8 0x565358f67273 in start_test builtin-test.c:545 #9 0x565358f6771d in __cmd_test builtin-test.c:647 #10 0x565358f682bd in cmd_test builtin-test.c:849 #11 0x565358ee5ded in run_builtin perf.c:349 #12 0x565358ee6085 in handle_internal_command perf.c:401 #13 0x565358ee61de in run_argv perf.c:448 #14 0x565358ee6527 in main perf.c:555 #15 0x7f29ce833ca8 in __libc_start_call_main libc_start_call_main.h:74 #16 0x7f29ce833d65 in __libc_start_main@@GLIBC_2.34 libc-start.c:128 torvalds#17 0x565358e391c1 in _start perf[851c1] 7: PERF_RECORD_* events & perf_sample fields : FAILED! ``` After: ``` $ perf test 7 7: PERF_RECORD_* events & perf_sample fields : Skip (permissions) ``` Fixes: 16d00fe ("perf tests: Move test__PERF_RECORD into separate object") Signed-off-by: Ian Rogers <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Chun-Tse Shao <[email protected]> Cc: Howard Chu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
xry111
pushed a commit
that referenced
this pull request
Nov 3, 2025
Commit 4e65bda ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") revealed the problem in the slimbus regmap. That commit breaks audio playback, for instance, on sdm845 Thundercomm Dragonboard 845c board: Unable to handle kernel paging request at virtual address ffff8000847cbad4 ... CPU: 5 UID: 0 PID: 776 Comm: aplay Not tainted 6.18.0-rc1-00028-g7ea30958b305 #11 PREEMPT Hardware name: Thundercomm Dragonboard 845c (DT) ... Call trace: slim_xfer_msg+0x24/0x1ac [slimbus] (P) slim_read+0x48/0x74 [slimbus] regmap_slimbus_read+0x18/0x24 [regmap_slimbus] _regmap_raw_read+0xe8/0x174 _regmap_bus_read+0x44/0x80 _regmap_read+0x60/0xd8 _regmap_update_bits+0xf4/0x140 _regmap_select_page+0xa8/0x124 _regmap_raw_write_impl+0x3b8/0x65c _regmap_bus_raw_write+0x60/0x80 _regmap_write+0x58/0xc0 regmap_write+0x4c/0x80 wcd934x_hw_params+0x494/0x8b8 [snd_soc_wcd934x] snd_soc_dai_hw_params+0x3c/0x7c [snd_soc_core] __soc_pcm_hw_params+0x22c/0x634 [snd_soc_core] dpcm_be_dai_hw_params+0x1d4/0x38c [snd_soc_core] dpcm_fe_dai_hw_params+0x9c/0x17c [snd_soc_core] snd_pcm_hw_params+0x124/0x464 [snd_pcm] snd_pcm_common_ioctl+0x110c/0x1820 [snd_pcm] snd_pcm_ioctl+0x34/0x4c [snd_pcm] __arm64_sys_ioctl+0xac/0x104 invoke_syscall+0x48/0x104 el0_svc_common.constprop.0+0x40/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xec el0t_64_sync_handler+0xa0/0xf0 el0t_64_sync+0x198/0x19c The __devm_regmap_init_slimbus() started to be used instead of __regmap_init_slimbus() after the commit mentioned above and turns out the incorrect bus_context pointer (3rd argument) was used in __devm_regmap_init_slimbus(). It should be just "slimbus" (which is equal to &slimbus->dev). Correct it. The wcd934x codec seems to be the only or the first user of devm_regmap_init_slimbus() but we should fix it till the point where __devm_regmap_init_slimbus() was introduced therefore two "Fixes" tags. While at this, also correct the same argument in __regmap_init_slimbus(). Fixes: 4e65bda ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") Fixes: 7d6f7fb ("regmap: add SLIMbus support") Cc: [email protected] Cc: Dmitry Baryshkov <[email protected]> Cc: Ma Ke <[email protected]> Cc: Steev Klimaszewski <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Signed-off-by: Alexey Klimov <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
AirFortressIlikara
pushed a commit
that referenced
this pull request
Nov 30, 2025
[ Upstream commit 48918ca ] The test starts a workload and then opens events. If the events fail to open, for example because of perf_event_paranoid, the gopipe of the workload is leaked and the file descriptor leak check fails when the test exits. To avoid this cancel the workload when opening the events fails. Before: ``` $ perf test -vv 7 7: PERF_RECORD_* events & perf_sample fields: --- start --- test child forked, pid 1189568 Using CPUID GenuineIntel-6-B7-1 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0xa00000000 (cpu_atom/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0xa00000000 (cpu_atom/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 exclude_kernel 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 3 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0x400000000 (cpu_core/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 ------------------------------------------------------------ perf_event_attr: type 0 (PERF_TYPE_HARDWARE) config 0x400000000 (cpu_core/PERF_COUNT_HW_CPU_CYCLES/) disabled 1 exclude_kernel 1 ------------------------------------------------------------ sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 3 Attempt to add: software/cpu-clock/ ..after resolving event: software/config=0/ cpu-clock -> software/cpu-clock/ ------------------------------------------------------------ perf_event_attr: type 1 (PERF_TYPE_SOFTWARE) size 136 config 0x9 (PERF_COUNT_SW_DUMMY) sample_type IP|TID|TIME|CPU read_format ID|LOST disabled 1 inherit 1 mmap 1 comm 1 enable_on_exec 1 task 1 sample_id_all 1 mmap2 1 comm_exec 1 ksymbol 1 bpf_event 1 { wakeup_events, wakeup_watermark } 1 ------------------------------------------------------------ sys_perf_event_open: pid 1189569 cpu 0 group_fd -1 flags 0x8 sys_perf_event_open failed, error -13 perf_evlist__open: Permission denied ---- end(-2) ---- Leak of file descriptor 6 that opened: 'pipe:[14200347]' ---- unexpected signal (6) ---- iFailed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon Failed to read build ID for //anon #0 0x565358f6666e in child_test_sig_handler builtin-test.c:311 #1 0x7f29ce849df0 in __restore_rt libc_sigaction.c:0 #2 0x7f29ce89e95c in __pthread_kill_implementation pthread_kill.c:44 #3 0x7f29ce849cc2 in raise raise.c:27 #4 0x7f29ce8324ac in abort abort.c:81 #5 0x565358f662d4 in check_leaks builtin-test.c:226 #6 0x565358f6682e in run_test_child builtin-test.c:344 #7 0x565358ef7121 in start_command run-command.c:128 #8 0x565358f67273 in start_test builtin-test.c:545 #9 0x565358f6771d in __cmd_test builtin-test.c:647 #10 0x565358f682bd in cmd_test builtin-test.c:849 #11 0x565358ee5ded in run_builtin perf.c:349 #12 0x565358ee6085 in handle_internal_command perf.c:401 #13 0x565358ee61de in run_argv perf.c:448 #14 0x565358ee6527 in main perf.c:555 #15 0x7f29ce833ca8 in __libc_start_call_main libc_start_call_main.h:74 #16 0x7f29ce833d65 in __libc_start_main@@GLIBC_2.34 libc-start.c:128 torvalds#17 0x565358e391c1 in _start perf[851c1] 7: PERF_RECORD_* events & perf_sample fields : FAILED! ``` After: ``` $ perf test 7 7: PERF_RECORD_* events & perf_sample fields : Skip (permissions) ``` Fixes: 16d00fe ("perf tests: Move test__PERF_RECORD into separate object") Signed-off-by: Ian Rogers <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Chun-Tse Shao <[email protected]> Cc: Howard Chu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
AirFortressIlikara
pushed a commit
that referenced
this pull request
Nov 30, 2025
commit 434f734 upstream. Commit 4e65bda ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") revealed the problem in the slimbus regmap. That commit breaks audio playback, for instance, on sdm845 Thundercomm Dragonboard 845c board: Unable to handle kernel paging request at virtual address ffff8000847cbad4 ... CPU: 5 UID: 0 PID: 776 Comm: aplay Not tainted 6.18.0-rc1-00028-g7ea30958b305 #11 PREEMPT Hardware name: Thundercomm Dragonboard 845c (DT) ... Call trace: slim_xfer_msg+0x24/0x1ac [slimbus] (P) slim_read+0x48/0x74 [slimbus] regmap_slimbus_read+0x18/0x24 [regmap_slimbus] _regmap_raw_read+0xe8/0x174 _regmap_bus_read+0x44/0x80 _regmap_read+0x60/0xd8 _regmap_update_bits+0xf4/0x140 _regmap_select_page+0xa8/0x124 _regmap_raw_write_impl+0x3b8/0x65c _regmap_bus_raw_write+0x60/0x80 _regmap_write+0x58/0xc0 regmap_write+0x4c/0x80 wcd934x_hw_params+0x494/0x8b8 [snd_soc_wcd934x] snd_soc_dai_hw_params+0x3c/0x7c [snd_soc_core] __soc_pcm_hw_params+0x22c/0x634 [snd_soc_core] dpcm_be_dai_hw_params+0x1d4/0x38c [snd_soc_core] dpcm_fe_dai_hw_params+0x9c/0x17c [snd_soc_core] snd_pcm_hw_params+0x124/0x464 [snd_pcm] snd_pcm_common_ioctl+0x110c/0x1820 [snd_pcm] snd_pcm_ioctl+0x34/0x4c [snd_pcm] __arm64_sys_ioctl+0xac/0x104 invoke_syscall+0x48/0x104 el0_svc_common.constprop.0+0x40/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xec el0t_64_sync_handler+0xa0/0xf0 el0t_64_sync+0x198/0x19c The __devm_regmap_init_slimbus() started to be used instead of __regmap_init_slimbus() after the commit mentioned above and turns out the incorrect bus_context pointer (3rd argument) was used in __devm_regmap_init_slimbus(). It should be just "slimbus" (which is equal to &slimbus->dev). Correct it. The wcd934x codec seems to be the only or the first user of devm_regmap_init_slimbus() but we should fix it till the point where __devm_regmap_init_slimbus() was introduced therefore two "Fixes" tags. While at this, also correct the same argument in __regmap_init_slimbus(). Fixes: 4e65bda ("ASoC: wcd934x: fix error handling in wcd934x_codec_parse_data()") Fixes: 7d6f7fb ("regmap: add SLIMbus support") Cc: [email protected] Cc: Dmitry Baryshkov <[email protected]> Cc: Ma Ke <[email protected]> Cc: Steev Klimaszewski <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Signed-off-by: Alexey Klimov <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.