Linux 6.6.28
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.6.28 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/hw-vuln/spectre.rst | 22 Documentation/admin-guide/kernel-parameters.txt | 12 Documentation/networking/device_drivers/ethernet/amazon/ena.rst | 1 Makefile | 2 arch/arm/boot/dts/nxp/imx/imx7s-warp.dts | 1 arch/arm/mach-omap2/board-n8x0.c | 23 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 16 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 36 arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi | 16 arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi | 8 arch/x86/Kconfig | 21 arch/x86/events/core.c | 1 arch/x86/include/asm/apic.h | 3 arch/x86/kernel/apic/apic.c | 6 arch/x86/kernel/cpu/bugs.c | 82 - arch/x86/kernel/cpu/common.c | 48 block/blk-cgroup.c | 9 block/blk-cgroup.h | 2 block/blk-core.c | 2 drivers/accel/ivpu/ivpu_drv.c | 2 drivers/acpi/scan.c | 3 drivers/ata/libata-core.c | 2 drivers/ata/libata-scsi.c | 9 drivers/cxl/core/mbox.c | 5 drivers/cxl/core/regs.c | 5 drivers/firmware/arm_scmi/raw_mode.c | 7 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 drivers/gpu/drm/amd/amdgpu/soc21.c | 27 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 1 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 15 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c | 19 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c | 12 drivers/gpu/drm/ast/ast_dp.c | 3 drivers/gpu/drm/drm_client_modeset.c | 3 drivers/gpu/drm/i915/display/intel_cdclk.c | 7 drivers/gpu/drm/i915/display/intel_cdclk.h | 3 drivers/gpu/drm/i915/display/intel_ddi.c | 5 drivers/gpu/drm/i915/display/intel_vrr.c | 7 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 10 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c | 7 drivers/gpu/drm/panfrost/panfrost_mmu.c | 13 drivers/gpu/drm/qxl/qxl_release.c | 50 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 11 drivers/iommu/intel/perfmon.c | 2 drivers/iommu/intel/svm.c | 2 drivers/md/raid1.c | 2 drivers/media/cec/core/cec-adap.c | 14 drivers/mmc/host/omap.c | 48 drivers/net/dsa/mt7530.c | 229 ++- drivers/net/dsa/mt7530.h | 5 drivers/net/ethernet/amazon/ena/Makefile | 2 drivers/net/ethernet/amazon/ena/ena_com.c | 2 drivers/net/ethernet/amazon/ena/ena_ethtool.c | 1 drivers/net/ethernet/amazon/ena/ena_netdev.c | 688 ---------- drivers/net/ethernet/amazon/ena/ena_netdev.h | 83 - drivers/net/ethernet/amazon/ena/ena_xdp.c | 466 ++++++ drivers/net/ethernet/amazon/ena/ena_xdp.h | 152 ++ drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 6 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 20 drivers/net/ethernet/marvell/octeontx2/nic/qos.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h | 8 drivers/net/ethernet/mellanox/mlx5/core/en/qos.c | 33 drivers/net/ethernet/mellanox/mlx5/core/en/selq.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 7 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 17 drivers/net/ethernet/mellanox/mlx5/core/main.c | 37 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 4 drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c | 22 drivers/net/ethernet/micrel/ks8851.h | 3 drivers/net/ethernet/micrel/ks8851_common.c | 16 drivers/net/ethernet/micrel/ks8851_par.c | 11 drivers/net/ethernet/micrel/ks8851_spi.c | 11 drivers/net/ethernet/microchip/sparx5/sparx5_port.c | 4 drivers/net/geneve.c | 4 drivers/platform/chrome/cros_ec_uart.c | 28 drivers/scsi/hisi_sas/hisi_sas_main.c | 2 drivers/scsi/qla2xxx/qla_edif.c | 2 drivers/scsi/sg.c | 20 drivers/vhost/vhost.c | 24 fs/btrfs/delayed-inode.c | 3 fs/btrfs/inode.c | 13 fs/btrfs/ioctl.c | 37 fs/btrfs/qgroup.c | 2 fs/btrfs/root-tree.c | 10 fs/btrfs/root-tree.h | 2 fs/btrfs/transaction.c | 17 fs/smb/client/cached_dir.c | 4 include/linux/dma-fence.h | 7 include/linux/irqflags.h | 2 include/linux/u64_stats_sync.h | 9 include/net/addrconf.h | 4 include/net/af_unix.h | 2 include/net/bluetooth/bluetooth.h | 11 include/net/ip_tunnels.h | 33 io_uring/net.c | 1 kernel/cpu.c | 3 kernel/kprobes.c | 18 kernel/power/suspend.c | 6 kernel/trace/ring_buffer.c | 6 kernel/trace/trace_events.c | 4 net/batman-adv/translation-table.c | 2 net/bluetooth/hci_request.c | 4 net/bluetooth/hci_sync.c | 66 net/bluetooth/iso.c | 14 net/bluetooth/l2cap_core.c | 3 net/bluetooth/sco.c | 23 net/ipv4/netfilter/arp_tables.c | 4 net/ipv4/netfilter/ip_tables.c | 4 net/ipv4/route.c | 4 net/ipv6/addrconf.c | 7 net/ipv6/ip6_fib.c | 7 net/ipv6/netfilter/ip6_tables.c | 4 net/openvswitch/conntrack.c | 5 net/unix/af_unix.c | 8 net/unix/garbage.c | 35 net/unix/scm.c | 8 net/xdp/xsk.c | 2 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 53 tools/testing/selftests/net/mptcp/mptcp_join.sh | 30 tools/testing/selftests/timers/posix_timers.c | 2 122 files changed, 1750 insertions(+), 1250 deletions(-)
Aaro Koskinen (6):
ARM: OMAP2+: fix bogus MMC GPIO labels on Nokia N8x0
ARM: OMAP2+: fix N810 MMC gpiod table
mmc: omap: fix broken slot switch lookup
mmc: omap: fix deferred probe
mmc: omap: restore original power up/down steps
ARM: OMAP2+: fix USB regression on Nokia N8x0
Adam Dunlap (1):
x86/apic: Force native_apic_mem_read() to use the MOV instruction
Alex Constantino (1):
Revert "drm/qxl: simplify qxl_fence_wait"
Alex Deucher (1):
drm/amdgpu: always force full reset for SOC21
Alexander Wetzel (2):
scsi: sg: Avoid sg device teardown race
scsi: sg: Avoid race in error handling & drop bogus warn
Anna-Maria Behnsen (1):
PM: s2idle: Make sure CPUs will wakeup directly on resume
Archie Pusaka (1):
Bluetooth: l2cap: Don't double set the HCI_CONN_MGMT_CONNECTED bit
Arnd Bergmann (5):
nouveau: fix function cast warning
ipv6: fib: hide unused 'pn' variable
ipv4/route: avoid unused-but-set-variable warning
tracing: hide unused ftrace_event_id_fops
irqflags: Explicitly ignore lockdep_hrtimer_exit() argument
Arınç ÜNAL (1):
net: dsa: mt7530: trap link-local frames regardless of ST Port State
Boris Brezillon (1):
drm/panfrost: Fix the error path in panfrost_mmu_map_fault_addr()
Boris Burkov (4):
btrfs: qgroup: correctly model root qgroup rsv in convert
btrfs: qgroup: fix qgroup prealloc rsv leak in subvolume operations
btrfs: record delayed inode root in transaction
btrfs: qgroup: convert PREALLOC to PERTRANS after record_root_in_trans
Carolina Jubran (2):
net/mlx5e: Fix mlx5e_priv_init() cleanup flow net/mlx5e: HTB, Fix inconsistencies with QoS SQs number
Cosmin Ratiu (2):
net/mlx5: Properly link new fs rules into the tree net/mlx5: Correctly compare pkt reformat ids
Cristian Marussi (1):
firmware: arm_scmi: Make raw debugfs entries non-seekable
Damien Le Moal (1):
ata: libata-scsi: Fix ata_scsi_dev_rescan() error path
Dan Carpenter (1):
scsi: qla2xxx: Fix off by one in qla_edif_app_getstats()
Daniel Machon (1):
net: sparx5: fix wrong config being used when reconfiguring PCS
Daniel Sneddon (1):
x86/bugs: Fix return type of spectre_bhi_state()
Dave Jiang (1):
cxl/core/regs: Fix usage of map->reg_type in cxl_decode_regblock() before assigned
David Arinzon (7):
net: ena: Fix potential sign extension issue
net: ena: Wrong missing IO completions check order
net: ena: Fix incorrect descriptor free behavior
net: ena: Move XDP code to its new files
net: ena: Pass ena_adapter instead of net_device to ena_xmit_common()
net: ena: Use tx_ring instead of xdp_ring for XDP channel TX
net: ena: Set tx_info->xdpf value to NULL
Dmitry Antipov (1):
Bluetooth: Fix memory leak in hci_req_sync_complete()
Dmitry Baryshkov (1):
drm/msm/dpu: don't allow overriding data from catalog
Eric Dumazet (3):
xsk: validate user input for XDP_{UMEM|COMPLETION}_FILL_RING
geneve: fix header validation in geneve[6]_xmit_skb
netfilter: complete validation of user input
Fabio Estevam (1):
ARM: dts: imx7s-warp: Pass OV2680 link-frequencies
Frank Li (7):
arm64: dts: imx8-ss-conn: fix usdhc wrong lpcg clock order
arm64: dts: imx8qm-ss-dma: fix can lpcg indices
arm64: dts: imx8-ss-dma: fix can lpcg indices
arm64: dts: imx8-ss-dma: fix adc lpcg indices
arm64: dts: imx8-ss-conn: fix usb lpcg indices
arm64: dts: imx8-ss-lsio: fix pwm lpcg indices
arm64: dts: imx8-ss-dma: fix spi lpcg indices
Fudongwang (1):
drm/amd/display: fix disable otg wa logic in DCN316
Gavin Shan (2):
vhost: Add smp_rmb() in vhost_vq_avail_empty()
vhost: Add smp_rmb() in vhost_enable_notify()
Geetha sowjanya (1):
octeontx2-af: Fix NIX SQ mode and BP config
Geliang Tang (1):
selftests: mptcp: use += operator to append strings
Gerd Bayer (2):
s390/ism: fix receive message buffer allocation Revert "s390/ism: fix receive message buffer allocation"
Greg Kroah-Hartman (1):
Linux 6.6.28
Hans de Goede (1):
ACPI: scan: Do not increase dep_unmet for already met dependencies
Hariprasad Kelam (1):
octeontx2-pf: Fix transmit scheduler resource leak
Harish Kasiviswanathan (1):
drm/amdkfd: Reset GPU on queue preemption failure
Harry Wentland (2):
drm/amd/display: Program VSC SDP colorimetry for all DP sinks >= 1.4 drm/amd/display: Set VSC SDP Colorimetry same way for MST and SST
Igor Pylypiv (1):
ata: libata-core: Allow command duration limits detection for ACS-4 drives
Ilya Maximets (1):
net: openvswitch: fix unwanted error log on timeout policy probing
Ingo Molnar (1):
x86/bugs: Rename various 'ia32_cap' variables to 'x86_arch_cap_msr'
Jacek Lawrynowicz (1):
accel/ivpu: Fix deadlock in context_xa
Jacob Pan (1):
iommu/vt-d: Allocate local memory for page request queue
Jammy Huang (1):
drm/ast: Fix soft lockup
Jiri Benc (1):
ipv6: fix race condition between ipv6_get_ifaddr and ipv6_del_addr
John Stultz (1):
selftests: timers: Fix abs() warning in posix_timers test
Josh Poimboeuf (6):
x86/bugs: Fix BHI documentation
x86/bugs: Cache the value of MSR_IA32_ARCH_CAPABILITIES
x86/bugs: Fix BHI handling of RRSBA
x86/bugs: Clarify that syscall hardening isn't a BHI mitigation x86/bugs: Remove CONFIG_BHI_MITIGATION_AUTO and spectre_bhi=auto x86/bugs: Replace CONFIG_SPECTRE_BHI_{ON,OFF} with CONFIG_MITIGATION_SPECTRE_BHI
Kuniyuki Iwashima (2):
af_unix: Clear stale u->oob_skb.
af_unix: Do not use atomic ops for unix_sk(sk)->inflight.Kwangjin Ko (1):
cxl/core: Fix initialization of mbox_cmd.size_out in get event
Lijo Lazar (1):
drm/amdgpu: Reset dGPU if suspend got aborted
Luiz Augusto von Dentz (5):
Bluetooth: ISO: Align broadcast sync_timeout with connection timeout
Bluetooth: ISO: Don't reject BT_ISO_QOS if parameters are unset
Bluetooth: hci_sync: Use QoS to determine which PHY to scan
Bluetooth: hci_sync: Fix using the same interval and window for Coded PHY
Bluetooth: SCO: Fix not validating setsockopt user input
Marek Vasut (2):
net: ks8851: Inline ks8851_rx_skb()
net: ks8851: Handle softirqs at the end of IRQ thread to fix hang
Michael Liang (1):
net/mlx5: offset comp irq index in name by one
Michal Luczaj (1):
af_unix: Fix garbage collector racing against connect()
Ming Lei (1):
block: fix q->blkg_list corruption during disk rebind
Moshe Shemesh (1):
net/mlx5: SF, Stop waiting for FW as teardown was called
Namhyung Kim (1):
perf/x86: Fix out of range data
Nini Song (1):
media: cec: core: remove length check of Timer Status
Noah Loomans (1):
platform/chrome: cros_ec_uart: properly fix race condition
Pavan Chebbi (1):
bnxt_en: Reset PTP tx_avail after possible firmware reset
Pavel Begunkov (1):
io_uring/net: restore msg_control on sendzc retry
Petr Tesarik (1):
u64_stats: fix u64_stats_init() for lockdep when used repeatedly in one file
Rahul Rameshbabu (1):
net/mlx5e: Do not produce metadata freelist entries in Tx port ts WQE xmit
Sean Christopherson (1):
x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=n
Shay Drory (1):
net/mlx5: Register devlink first under devlink lock
Steve French (1):
smb3: fix Open files on server counter going negative
Steven Rostedt (Google) (1):
ring-buffer: Only update pages_touched when a new page is touched
Sven Eckelmann (1):
batman-adv: Avoid infinite loop trying to resize local TT
Tim Huang (2):
drm/amd/pm: fixes a random hang in S4 for SMU v13.0.4/11 drm/amdgpu: fix incorrect number of active RBs for gfx11
Vikas Gupta (2):
bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init()
bnxt_en: Fix error recovery for RoCE ulp client
Ville Syrjälä (4):
drm/i915/vrr: Disable VRR when using bigjoiner drm/client: Fully protect modes[] with dev->mode_config.mutex drm/i915/cdclk: Fix CDCLK programming order when pipes are active drm/i915: Disable port sync when bigjoiner is used
Xiang Chen (1):
scsi: hisi_sas: Modify the deadline for ata_wait_after_reset()
Xuchun Shang (1):
iommu/vt-d: Fix wrong use of pasid config
Yu Kuai (1):
raid1: fix use-after-free for original bio in raid1_write_request()
Yuquan Wang (1):
cxl/mem: Fix for the index of Clear Event Record Handle
Zack Rusin (1):
drm/vmwgfx: Enable DMA mappings with SEV
Zheng Yejian (1):
kprobes: Fix possible use-after-free issue on kprobe registration
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/hw-vuln/spectre.rst +9 -13
@@ -439,12 +439,12 @@ The possible values in this file are: - System is protected by retpoline * - BHI: BHI_DIS_S - System is protected by BHI_DIS_S - * - BHI: SW loop; KVM SW loop + * - BHI: SW loop, KVM SW loop - System is protected by software clearing sequence - * - BHI: Syscall hardening - - Syscalls are hardened against BHI - * - BHI: Syscall hardening; KVM: SW loop - - System is protected from userspace attacks by syscall hardening; KVM is protected by software clearing sequence + * - BHI: Vulnerable + - System is vulnerable to BHI + * - BHI: Vulnerable, KVM: SW loop + - System is vulnerable; KVM is protected by software clearing sequence Full mitigation might require a microcode update from the CPU vendor. When the necessary microcode is not available, the kernel will
@@ -661,18 +661,14 @@ kernel command line. spectre_bhi= [X86] Control mitigation of Branch History Injection - (BHI) vulnerability. Syscalls are hardened against BHI - regardless of this setting. This setting affects the deployment + (BHI) vulnerability. This setting affects the deployment of the HW BHI control and the SW BHB clearing sequence. on - unconditionally enable. + (default) Enable the HW or SW mitigation as + needed. off - unconditionally disable. - auto - enable if hardware mitigation - control(BHI_DIS_S) is available, otherwise - enable alternate mitigation in KVM. + Disable the mitigation. For spectre_v2_user see Documentation/admin-guide/kernel-parameters.txt
Documentation/admin-guide/kernel-parameters.txt +5 -7
@@ -3343,6 +3343,7 @@ reg_file_data_sampling=off [X86] retbleed=off [X86] spec_store_bypass_disable=off [X86,PPC] + spectre_bhi=off [X86] spectre_v2_user=off [X86] srbds=off [X86,INTEL] ssbd=force-off [ARM64]
@@ -5921,16 +5922,13 @@ See Documentation/admin-guide/laptops/sonypi.rst spectre_bhi= [X86] Control mitigation of Branch History Injection - (BHI) vulnerability. Syscalls are hardened against BHI - reglardless of this setting. This setting affects the + (BHI) vulnerability. This setting affects the deployment of the HW BHI control and the SW BHB clearing sequence. - on - unconditionally enable. - off - unconditionally disable. - auto - (default) enable hardware mitigation - (BHI_DIS_S) if available, otherwise enable - alternate mitigation in KVM. + on - (default) Enable the HW or SW mitigation + as needed. + off - Disable the mitigation. spectre_v2= [X86] Control mitigation of Spectre variant 2 (indirect branch speculation) vulnerability.
Documentation/networking/device_drivers/ethernet/amazon/ena.rst +1 -0
@@ -54,6 +54,7 @@ ena_common_defs.h Common definitions for ena_com layer. ena_regs_defs.h Definition of ENA PCI memory-mapped (MMIO) registers. ena_netdev.[ch] Main Linux kernel driver. ena_ethtool.c ethtool callbacks. +ena_xdp.[ch] XDP files ena_pci_id_tbl.h Supported device IDs. ================= ======================================================
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 6 -SUBLEVEL = 27 +SUBLEVEL = 28 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arm/boot/dts/nxp/imx/imx7s-warp.dts +1 -0
@@ -210,6 +210,7 @@ ov2680_to_mipi: endpoint { remote-endpoint = <&mipi_from_sensor>; clock-lanes = <0>; data-lanes = <1>; + link-frequencies = /bits/ 64 <330000000>; }; }; };
arch/arm/mach-omap2/board-n8x0.c +10 -13
@@ -79,10 +79,8 @@ static struct musb_hdrc_platform_data tusb_data = {static struct gpiod_lookup_table tusb_gpio_table = { .dev_id ="musb-tusb" , .table = { -GPIO_LOOKUP ("gpio-0-15" ,0 ,"enable" , -GPIO_ACTIVE_HIGH ), -GPIO_LOOKUP ("gpio-48-63" ,10 ,"int" , -GPIO_ACTIVE_HIGH ), +GPIO_LOOKUP ("gpio-0-31" ,0 ,"enable" ,GPIO_ACTIVE_HIGH ), +GPIO_LOOKUP ("gpio-32-63" ,26 ,"int" ,GPIO_ACTIVE_HIGH ), { } }, };
@@ -140,12 +138,11 @@ static int slot1_cover_open;static int slot2_cover_open;static struct device *mmc_device; -static struct gpiod_lookup_table nokia8xx_mmc_gpio_table = { +static struct gpiod_lookup_table nokia800_mmc_gpio_table = { .dev_id ="mmci-omap.0" , .table = {/* Slot switch, GPIO 96 */ -GPIO_LOOKUP ("gpio-80-111" ,16 , -"switch" ,GPIO_ACTIVE_HIGH ), +GPIO_LOOKUP ("gpio-96-127" ,0 ,"switch" ,GPIO_ACTIVE_HIGH ), { } }, };
@@ -153,12 +150,12 @@ static struct gpiod_lookup_table nokia8xx_mmc_gpio_table = {static struct gpiod_lookup_table nokia810_mmc_gpio_table = { .dev_id ="mmci-omap.0" , .table = { +/* Slot switch, GPIO 96 */ +GPIO_LOOKUP ("gpio-96-127" ,0 ,"switch" ,GPIO_ACTIVE_HIGH ),/* Slot index 1, VSD power, GPIO 23 */ -GPIO_LOOKUP_IDX ("gpio-16-31" ,7 , -"vsd" ,1 ,GPIO_ACTIVE_HIGH ), +GPIO_LOOKUP_IDX ("gpio-0-31" ,23 ,"vsd" ,1 ,GPIO_ACTIVE_HIGH ),/* Slot index 1, VIO power, GPIO 9 */ -GPIO_LOOKUP_IDX ("gpio-0-15" ,9 , -"vio" ,1 ,GPIO_ACTIVE_HIGH ), +GPIO_LOOKUP_IDX ("gpio-0-31" ,9 ,"vio" ,1 ,GPIO_ACTIVE_HIGH ), { } }, };
@@ -415,8 +412,6 @@ static struct omap_mmc_platform_data *mmc_data[OMAP24XX_NR_MMC];static void __init n8x0_mmc_init (void ) { -gpiod_add_lookup_table (&nokia8xx_mmc_gpio_table); -if (board_is_n810 ()) { mmc1_data.slots[0 ].name ="external" ;
@@ -429,6 +424,8 @@ static void __init n8x0_mmc_init(void) mmc1_data.slots[1 ].name ="internal" ; mmc1_data.slots[1 ].ban_openended =1 ;gpiod_add_lookup_table (&nokia810_mmc_gpio_table); + }else { +gpiod_add_lookup_table (&nokia800_mmc_gpio_table); } mmc1_data.nr_slots =2 ;
arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi +8 -8
@@ -41,7 +41,7 @@ usbotg1: usb@5b0d0000 { interrupts = <GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>; fsl,usbphy = <&usbphy1>; fsl,usbmisc = <&usbmisc1 0>; - clocks = <&usb2_lpcg 0>; + clocks = <&usb2_lpcg IMX_LPCG_CLK_6>; ahb-burst-config = <0x0>; tx-burst-size-dword = <0x10>; rx-burst-size-dword = <0x10>;
@@ -58,7 +58,7 @@ usbmisc1: usbmisc@5b0d0200 { usbphy1: usbphy@5b100000 { compatible = "fsl,imx7ulp-usbphy"; reg = <0x5b100000 0x1000>; - clocks = <&usb2_lpcg 1>; + clocks = <&usb2_lpcg IMX_LPCG_CLK_7>; power-domains = <&pd IMX_SC_R_USB_0_PHY>; status = "disabled"; };
@@ -67,8 +67,8 @@ usdhc1: mmc@5b010000 { interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>; reg = <0x5b010000 0x10000>; clocks = <&sdhc0_lpcg IMX_LPCG_CLK_4>, - <&sdhc0_lpcg IMX_LPCG_CLK_0>, - <&sdhc0_lpcg IMX_LPCG_CLK_5>; + <&sdhc0_lpcg IMX_LPCG_CLK_5>, + <&sdhc0_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "ahb", "per"; power-domains = <&pd IMX_SC_R_SDHC_0>; status = "disabled";
@@ -78,8 +78,8 @@ usdhc2: mmc@5b020000 { interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>; reg = <0x5b020000 0x10000>; clocks = <&sdhc1_lpcg IMX_LPCG_CLK_4>, - <&sdhc1_lpcg IMX_LPCG_CLK_0>, - <&sdhc1_lpcg IMX_LPCG_CLK_5>; + <&sdhc1_lpcg IMX_LPCG_CLK_5>, + <&sdhc1_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "ahb", "per"; power-domains = <&pd IMX_SC_R_SDHC_1>; fsl,tuning-start-tap = <20>;
@@ -91,8 +91,8 @@ usdhc3: mmc@5b030000 { interrupts = <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>; reg = <0x5b030000 0x10000>; clocks = <&sdhc2_lpcg IMX_LPCG_CLK_4>, - <&sdhc2_lpcg IMX_LPCG_CLK_0>, - <&sdhc2_lpcg IMX_LPCG_CLK_5>; + <&sdhc2_lpcg IMX_LPCG_CLK_5>, + <&sdhc2_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "ahb", "per"; power-domains = <&pd IMX_SC_R_SDHC_2>; status = "disabled";
arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +18 -18
@@ -27,8 +27,8 @@ lpspi0: spi@5a000000 { #size-cells = <0>; interrupts = <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&spi0_lpcg 0>, - <&spi0_lpcg 1>; + clocks = <&spi0_lpcg IMX_LPCG_CLK_0>, + <&spi0_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>;
@@ -43,8 +43,8 @@ lpspi1: spi@5a010000 { #size-cells = <0>; interrupts = <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&spi1_lpcg 0>, - <&spi1_lpcg 1>; + clocks = <&spi1_lpcg IMX_LPCG_CLK_0>, + <&spi1_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_SPI_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>;
@@ -59,8 +59,8 @@ lpspi2: spi@5a020000 { #size-cells = <0>; interrupts = <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&spi2_lpcg 0>, - <&spi2_lpcg 1>; + clocks = <&spi2_lpcg IMX_LPCG_CLK_0>, + <&spi2_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_SPI_2 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>;
@@ -75,8 +75,8 @@ lpspi3: spi@5a030000 { #size-cells = <0>; interrupts = <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&spi3_lpcg 0>, - <&spi3_lpcg 1>; + clocks = <&spi3_lpcg IMX_LPCG_CLK_0>, + <&spi3_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_SPI_3 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>;
@@ -282,8 +282,8 @@ adc0: adc@5a880000 { reg = <0x5a880000 0x10000>; interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&adc0_lpcg 0>, - <&adc0_lpcg 1>; + clocks = <&adc0_lpcg IMX_LPCG_CLK_0>, + <&adc0_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>;
@@ -297,8 +297,8 @@ adc1: adc@5a890000 { reg = <0x5a890000 0x10000>; interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&adc1_lpcg 0>, - <&adc1_lpcg 1>; + clocks = <&adc1_lpcg IMX_LPCG_CLK_0>, + <&adc1_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>;
@@ -311,8 +311,8 @@ flexcan1: can@5a8d0000 { reg = <0x5a8d0000 0x10000>; interrupts = <GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&gic>; - clocks = <&can0_lpcg 1>, - <&can0_lpcg 0>; + clocks = <&can0_lpcg IMX_LPCG_CLK_4>, + <&can0_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "per"; assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <40000000>;
@@ -332,8 +332,8 @@ flexcan2: can@5a8e0000 { * CAN1 shares CAN0's clock and to enable CAN0's clock it * has to be powered on. */ - clocks = <&can0_lpcg 1>, - <&can0_lpcg 0>; + clocks = <&can0_lpcg IMX_LPCG_CLK_4>, + <&can0_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "per"; assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <40000000>;
@@ -353,8 +353,8 @@ flexcan3: can@5a8f0000 { * CAN2 shares CAN0's clock and to enable CAN0's clock it * has to be powered on. */ - clocks = <&can0_lpcg 1>, - <&can0_lpcg 0>; + clocks = <&can0_lpcg IMX_LPCG_CLK_4>, + <&can0_lpcg IMX_LPCG_CLK_0>; clock-names = "ipg", "per"; assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <40000000>;
arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi +8 -8
@@ -32,8 +32,8 @@ lsio_pwm0: pwm@5d000000 { compatible = "fsl,imx27-pwm"; reg = <0x5d000000 0x10000>; clock-names = "ipg", "per"; - clocks = <&pwm0_lpcg 4>, - <&pwm0_lpcg 1>; + clocks = <&pwm0_lpcg IMX_LPCG_CLK_6>, + <&pwm0_lpcg IMX_LPCG_CLK_1>; assigned-clocks = <&clk IMX_SC_R_PWM_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; #pwm-cells = <3>;
@@ -45,8 +45,8 @@ lsio_pwm1: pwm@5d010000 { compatible = "fsl,imx27-pwm"; reg = <0x5d010000 0x10000>; clock-names = "ipg", "per"; - clocks = <&pwm1_lpcg 4>, - <&pwm1_lpcg 1>; + clocks = <&pwm1_lpcg IMX_LPCG_CLK_6>, + <&pwm1_lpcg IMX_LPCG_CLK_1>; assigned-clocks = <&clk IMX_SC_R_PWM_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; #pwm-cells = <3>;
@@ -58,8 +58,8 @@ lsio_pwm2: pwm@5d020000 { compatible = "fsl,imx27-pwm"; reg = <0x5d020000 0x10000>; clock-names = "ipg", "per"; - clocks = <&pwm2_lpcg 4>, - <&pwm2_lpcg 1>; + clocks = <&pwm2_lpcg IMX_LPCG_CLK_6>, + <&pwm2_lpcg IMX_LPCG_CLK_1>; assigned-clocks = <&clk IMX_SC_R_PWM_2 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; #pwm-cells = <3>;
@@ -71,8 +71,8 @@ lsio_pwm3: pwm@5d030000 { compatible = "fsl,imx27-pwm"; reg = <0x5d030000 0x10000>; clock-names = "ipg", "per"; - clocks = <&pwm3_lpcg 4>, - <&pwm3_lpcg 1>; + clocks = <&pwm3_lpcg IMX_LPCG_CLK_6>, + <&pwm3_lpcg IMX_LPCG_CLK_1>; assigned-clocks = <&clk IMX_SC_R_PWM_3 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <24000000>; #pwm-cells = <3>;
arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi +4 -4
@@ -49,15 +49,15 @@ &flexcan1 { }; &flexcan2 { - clocks = <&can1_lpcg 1>, - <&can1_lpcg 0>; + clocks = <&can1_lpcg IMX_LPCG_CLK_4>, + <&can1_lpcg IMX_LPCG_CLK_0>; assigned-clocks = <&clk IMX_SC_R_CAN_1 IMX_SC_PM_CLK_PER>; fsl,clk-source = /bits/ 8 <1>; }; &flexcan3 { - clocks = <&can2_lpcg 1>, - <&can2_lpcg 0>; + clocks = <&can2_lpcg IMX_LPCG_CLK_4>, + <&can2_lpcg IMX_LPCG_CLK_0>; assigned-clocks = <&clk IMX_SC_R_CAN_2 IMX_SC_PM_CLK_PER>; fsl,clk-source = /bits/ 8 <1>; };
arch/x86/Kconfig +3 -18
@@ -2566,31 +2566,16 @@ config MITIGATION_RFDS stored in floating point, vector and integer registers. See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst> -choice - prompt "Clear branch history" +config MITIGATION_SPECTRE_BHI + bool "Mitigate Spectre-BHB (Branch History Injection)" depends on CPU_SUP_INTEL - default SPECTRE_BHI_ON + default y help Enable BHI mitigations. BHI attacks are a form of Spectre V2 attacks where the branch history buffer is poisoned to speculatively steer indirect branches. See <file:Documentation/admin-guide/hw-vuln/spectre.rst> -config SPECTRE_BHI_ON - bool "on" - help - Equivalent to setting spectre_bhi=on command line parameter. -config SPECTRE_BHI_OFF - bool "off" - help - Equivalent to setting spectre_bhi=off command line parameter. -config SPECTRE_BHI_AUTO - bool "auto" - help - Equivalent to setting spectre_bhi=auto command line parameter. - -endchoice - endif config ARCH_HAS_ADD_PAGES
arch/x86/events/core.c +1 -0
@@ -1644,6 +1644,7 @@ static void x86_pmu_del(struct perf_event *event, int flags)while (++i < cpuc->n_events) { cpuc->event_list[i-1 ] = cpuc->event_list[i]; cpuc->event_constraint[i-1 ] = cpuc->event_constraint[i]; + cpuc->assign[i-1 ] = cpuc->assign[i]; } cpuc->event_constraint[i-1 ] =NULL ; --cpuc->n_events;
arch/x86/include/asm/apic.h +2 -1
@@ -13,6 +13,7 @@#include <asm/mpspec.h> #include <asm/msr.h> #include <asm/hardirq.h> +#include <asm/io.h> #define ARCH_APICTIMER_STOPS_ON_C3 1
@@ -96,7 +97,7 @@ static inline void native_apic_mem_write(u32 reg, u32 v)static inline u32 native_apic_mem_read (u32 reg) { -return *((volatile u32 *)(APIC_BASE + reg)); +return readl ((void __iomem *)(APIC_BASE + reg)); }static inline void native_apic_mem_eoi (void )
arch/x86/kernel/apic/apic.c +3 -3
@@ -1724,11 +1724,11 @@ static int x2apic_state;static bool x2apic_hw_locked (void ) { -u64 ia32_cap; +u64 x86_arch_cap_msr;u64 msr; - ia32_cap =x86_read_arch_cap_msr (); -if (ia32_cap &ARCH_CAP_XAPIC_DISABLE ) { + x86_arch_cap_msr =x86_read_arch_cap_msr (); +if (x86_arch_cap_msr &ARCH_CAP_XAPIC_DISABLE ) {rdmsrl (MSR_IA32_XAPIC_DISABLE_STATUS , msr);return (msr &LEGACY_XAPIC_DISABLED ); }
arch/x86/kernel/cpu/bugs.c +36 -46
222 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +24 -24
134 lines not on this page · raw message
block/blk-cgroup.c +6 -3
@@ -1409,6 +1409,12 @@ static int blkcg_css_online(struct cgroup_subsys_state *css)return 0 ; } +void blkg_init_queue (struct request_queue *q) +{ +INIT_LIST_HEAD (&q->blkg_list); +mutex_init (&q->blkcg_mutex); +} +int blkcg_init_disk (struct gendisk *disk) {struct request_queue *q = disk->queue;
@@ -1416,9 +1422,6 @@ int blkcg_init_disk(struct gendisk *disk)bool preloaded;int ret; -INIT_LIST_HEAD (&q->blkg_list); -mutex_init (&q->blkcg_mutex); - new_blkg =blkg_alloc (&blkcg_root, disk,GFP_KERNEL );if (!new_blkg)return -ENOMEM ;
block/blk-cgroup.h +2 -0
@@ -188,6 +188,7 @@ struct blkcg_policy {extern struct blkcg blkcg_root;extern bool blkcg_debug_stats; +void blkg_init_queue (struct request_queue *q);int blkcg_init_disk (struct gendisk *disk);void blkcg_exit_disk (struct gendisk *disk);
@@ -481,6 +482,7 @@ struct blkcg { };static inline struct blkcg_gq *blkg_lookup (struct blkcg *blkcg,void *key) {return NULL ; } +static inline void blkg_init_queue (struct request_queue *q) { }static inline int blkcg_init_disk (struct gendisk *disk) {return 0 ; }static inline void blkcg_exit_disk (struct gendisk *disk) { }static inline int blkcg_policy_register (struct blkcg_policy *pol) {return 0 ; }
block/blk-core.c +2 -0
@@ -430,6 +430,8 @@ struct request_queue *blk_alloc_queue(int node_id)init_waitqueue_head (&q->mq_freeze_wq);mutex_init (&q->mq_freeze_lock); +blkg_init_queue (q); +/* * Init percpu_ref in atomic mode so that it's faster to shutdown. * See blk_register_queue() for details.
drivers/accel/ivpu/ivpu_drv.c +1 -1
@@ -517,7 +517,7 @@ static int ivpu_dev_init(struct ivpu_device *vdev) vdev->context_xa_limit.min =IVPU_USER_CONTEXT_MIN_SSID ; vdev->context_xa_limit.max =IVPU_USER_CONTEXT_MAX_SSID ;atomic64_set (&vdev->unique_id_counter,0 ); -xa_init_flags (&vdev->context_xa,XA_FLAGS_ALLOC ); +xa_init_flags (&vdev->context_xa,XA_FLAGS_ALLOC |XA_FLAGS_LOCK_IRQ );xa_init_flags (&vdev->submitted_jobs_xa,XA_FLAGS_ALLOC1 );lockdep_set_class (&vdev->submitted_jobs_xa.xa_lock, &submitted_jobs_xa_lock_class_key);
drivers/acpi/scan.c +2 -1
@@ -1798,7 +1798,8 @@ static void acpi_scan_dep_init(struct acpi_device *adev)if (dep->honor_dep) adev->flags.honor_deps =1 ; - adev->dep_unmet++; +if (!dep->met) + adev->dep_unmet++; } } }
drivers/ata/libata-core.c +1 -1
@@ -2493,7 +2493,7 @@ static void ata_dev_config_cdl(struct ata_device *dev)bool cdl_enabled;u64 val; -if (ata_id_major_version (dev->id) <12 ) +if (ata_id_major_version (dev->id) <11 ) goto not_supported; if (!ata_log_supported(dev, ATA_LOG_IDENTIFY_DEVICE) ||
drivers/ata/libata-scsi.c +5 -4
@@ -4780,7 +4780,7 @@ void ata_scsi_dev_rescan(struct work_struct *work)* bail out. */ if (ap->pflags &ATA_PFLAG_SUSPENDED ) - goto unlock; + goto unlock_ap;if (!sdev)continue ;
@@ -4793,7 +4793,7 @@ void ata_scsi_dev_rescan(struct work_struct *work)if (do_resume) { ret =scsi_resume_device (sdev);if (ret == -EWOULDBLOCK ) - goto unlock; + goto unlock_scan; dev->flags &= ~ATA_DFLAG_RESUMING ; } ret =scsi_rescan_device (sdev);
@@ -4801,12 +4801,13 @@ void ata_scsi_dev_rescan(struct work_struct *work)spin_lock_irqsave (ap->lock, flags);if (ret) - goto unlock; + goto unlock_ap; } } -unlock: +unlock_ap:spin_unlock_irqrestore (ap->lock, flags); +unlock_scan:mutex_unlock (&ap->scsi_scan_mutex);/* Reschedule with a delay if scsi_rescan_device() returned an error */
drivers/cxl/core/mbox.c +3 -2
@@ -928,7 +928,7 @@ static int cxl_clear_event_record(struct cxl_memdev_state *mds,for (cnt =0 ; cnt < total; cnt++) { payload->handles[i++] = get_pl->records[cnt].hdr.handle;dev_dbg (mds->cxlds.dev,"Event log '%d': Clearing %u\n" , log, -le16_to_cpu (payload->handles[i])); +le16_to_cpu (payload->handles[i -1 ]));if (i == max_handles) { payload->nr_recs = i;
@@ -971,13 +971,14 @@ static void cxl_mem_get_records_log(struct cxl_memdev_state *mds, .payload_in = &log_type, .size_in = sizeof(log_type), .payload_out = payload, - .size_out = mds->payload_size, .min_out = struct_size(payload, records, 0), }; do { int rc, i; + mbox_cmd.size_out = mds->payload_size; + rc = cxl_internal_send_cmd(mds, &mbox_cmd); if (rc) { dev_err_ratelimited(dev,
drivers/cxl/core/regs.c +3 -2
@@ -271,6 +271,7 @@ EXPORT_SYMBOL_NS_GPL(cxl_map_device_regs, CXL);static bool cxl_decode_regblock (struct pci_dev *pdev,u32 reg_lo,u32 reg_hi,struct cxl_register_map *map) { +u8 reg_type =FIELD_GET (CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK , reg_lo);int bar =FIELD_GET (CXL_DVSEC_REG_LOCATOR_BIR_MASK , reg_lo);u64 offset = ((u64 )reg_hi <<32 ) | (reg_lo &CXL_DVSEC_REG_LOCATOR_BLOCK_OFF_LOW_MASK );
@@ -278,11 +279,11 @@ static bool cxl_decode_regblock(struct pci_dev *pdev, u32 reg_lo, u32 reg_hi,if (offset >pci_resource_len (pdev, bar)) {dev_warn (&pdev->dev,"BAR%d: %pr: too small (offset: %pa, type: %d)\n" , bar, - &pdev->resource[bar], &offset, map->reg_type); + &pdev->resource[bar], &offset, reg_type);return false; } - map->reg_type =FIELD_GET (CXL_DVSEC_REG_LOCATOR_BLOCK_ID_MASK , reg_lo); + map->reg_type = reg_type; map->resource =pci_resource_start (pdev, bar) + offset; map->max_size =pci_resource_len (pdev, bar) - offset;return true;
drivers/firmware/arm_scmi/raw_mode.c +6 -1
@@ -921,7 +921,7 @@ static int scmi_dbg_raw_mode_open(struct inode *inode, struct file *filp) rd->raw = raw; filp->private_data = rd; -return 0 ; +return nonseekable_open (inode, filp); }static int scmi_dbg_raw_mode_release (struct inode *inode,struct file *filp)
@@ -950,6 +950,7 @@ static const struct file_operations scmi_dbg_raw_mode_reset_fops = { .open = scmi_dbg_raw_mode_open, .release = scmi_dbg_raw_mode_release, .write = scmi_dbg_raw_mode_reset_write, + .llseek = no_llseek, .owner = THIS_MODULE, };
@@ -959,6 +960,7 @@ static const struct file_operations scmi_dbg_raw_mode_message_fops = { .read = scmi_dbg_raw_mode_message_read, .write = scmi_dbg_raw_mode_message_write, .poll = scmi_dbg_raw_mode_message_poll, + .llseek = no_llseek, .owner = THIS_MODULE, };
@@ -975,6 +977,7 @@ static const struct file_operations scmi_dbg_raw_mode_message_async_fops = { .read = scmi_dbg_raw_mode_message_read, .write = scmi_dbg_raw_mode_message_async_write, .poll = scmi_dbg_raw_mode_message_poll, + .llseek = no_llseek, .owner = THIS_MODULE, };
@@ -998,6 +1001,7 @@ static const struct file_operations scmi_dbg_raw_mode_notification_fops = { .release = scmi_dbg_raw_mode_release, .read = scmi_test_dbg_raw_mode_notif_read, .poll = scmi_test_dbg_raw_mode_notif_poll, + .llseek = no_llseek, .owner = THIS_MODULE, };
@@ -1021,6 +1025,7 @@ static const struct file_operations scmi_dbg_raw_mode_errors_fops = { .release = scmi_dbg_raw_mode_release, .read = scmi_test_dbg_raw_mode_errors_read, .poll = scmi_test_dbg_raw_mode_errors_poll, + .llseek = no_llseek, .owner = THIS_MODULE, };
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +1 -1
@@ -1616,7 +1616,7 @@ static void gfx_v11_0_setup_rb(struct amdgpu_device *adev) active_rb_bitmap |= (0x3 << (i * rb_bitmap_width_per_sa)); } - active_rb_bitmap |= global_active_rb_bitmap; + active_rb_bitmap &= global_active_rb_bitmap; adev->gfx.config.backend_enable_mask = active_rb_bitmap; adev->gfx.config.num_rbs =hweight32 (active_rb_bitmap); }
drivers/gpu/drm/amd/amdgpu/soc21.c +25 -2
@@ -449,10 +449,8 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev) {switch (adev->ip_versions[GC_HWIP ][0 ]) {case IP_VERSION (11 ,0 ,0 ): -return amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__UMC );case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): -return false;default :return true; }
@@ -804,10 +802,35 @@ static int soc21_common_suspend(void *handle)return soc21_common_hw_fini (adev); } +static bool soc21_need_reset_on_resume (struct amdgpu_device *adev) +{ +u32 sol_reg1, sol_reg2; + +/* Will reset for the following suspend abort cases. +* 1) Only reset dGPU side. +* 2) S3 suspend got aborted and TOS is active. +*/ +if (!(adev->flags &AMD_IS_APU ) && adev->in_s3 && + !adev->suspend_complete) { + sol_reg1 =RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_81); +msleep (100 ); + sol_reg2 =RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_81); + +return (sol_reg1 != sol_reg2); + } + +return false; +} +static int soc21_common_resume (void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; +if (soc21_need_reset_on_resume (adev)) { +dev_info (adev->dev,"S3 suspend aborted, resetting..." ); +soc21_asic_reset (adev); + } +return soc21_common_hw_init (adev); }
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +1 -0
@@ -1980,6 +1980,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,pr_err ("HIQ MQD's queue_doorbell_id0 is not 0, Queue preemption time out\n" );while (halt_if_hws_hang)schedule (); +kfd_hws_hang (dqm);return -ETIME ; }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +6 -9
@@ -6122,19 +6122,16 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,if (stream->signal ==SIGNAL_TYPE_HDMI_TYPE_A )mod_build_hf_vsif_infopacket (stream, &stream->vsp_infopacket); -if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) { +if (stream->signal ==SIGNAL_TYPE_DISPLAY_PORT || + stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST || + stream->signal ==SIGNAL_TYPE_EDP ) {// // should decide stream support vsc sdp colorimetry capability // before building vsc info packet // - stream->use_vsc_sdp_for_colorimetry = false; -if (aconnector->dc_sink->sink_signal ==SIGNAL_TYPE_DISPLAY_PORT_MST ) { - stream->use_vsc_sdp_for_colorimetry = - aconnector->dc_sink->is_vsc_sdp_colorimetry_supported; - }else { -if (stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED) - stream->use_vsc_sdp_for_colorimetry = true; - } + stream->use_vsc_sdp_for_colorimetry = stream->link->dpcd_caps.dpcd_rev.raw >=0x14 && + stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED; +if (stream->out_transfer_func->tf ==TRANSFER_FUNCTION_GAMMA22 ) tf =TRANSFER_FUNC_GAMMA_22 ;mod_build_vsc_infopacket (stream, &stream->vsc_infopacket, stream->output_color_space, tf);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c +12 -7
@@ -99,20 +99,25 @@ static int dcn316_get_active_display_cnt_wa(return display_count; } -static void dcn316_disable_otg_wa (struct clk_mgr *clk_mgr_base,struct dc_state *context,bool disable) +static void dcn316_disable_otg_wa (struct clk_mgr *clk_mgr_base,struct dc_state *context, +bool safe_to_lower,bool disable) {struct dc *dc = clk_mgr_base->ctx->dc;int i;for (i =0 ; i < dc->res_pool->pipe_count; ++i) { -struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; +struct pipe_ctx *pipe = safe_to_lower + ? &context->res_ctx.pipe_ctx[i] + : &dc->current_state->res_ctx.pipe_ctx[i];if (pipe->top_pipe || pipe->prev_odm_pipe)continue ; -if (pipe->stream && (pipe->stream->dpms_off || pipe->plane_state ==NULL || -dc_is_virtual_signal (pipe->stream->signal))) { +if (pipe->stream && (pipe->stream->dpms_off ||dc_is_virtual_signal (pipe->stream->signal) || + !pipe->stream->link_enc)) {if (disable) { - pipe->stream_res.tg->funcs->immediate_disable_crtc (pipe->stream_res.tg); +if (pipe->stream_res.tg && pipe->stream_res.tg->funcs->immediate_disable_crtc) + pipe->stream_res.tg->funcs->immediate_disable_crtc (pipe->stream_res.tg); +reset_sync_context_for_pipe (dc, context, i); }else pipe->stream_res.tg->funcs->enable_crtc (pipe->stream_res.tg);
@@ -207,11 +212,11 @@ static void dcn316_update_clocks(struct clk_mgr *clk_mgr_base, }if (should_set_clock (safe_to_lower, new_clocks->dispclk_khz, clk_mgr_base->clks.dispclk_khz)) { -dcn316_disable_otg_wa (clk_mgr_base, context, true); +dcn316_disable_otg_wa (clk_mgr_base, context, safe_to_lower, true); clk_mgr_base->clks.dispclk_khz = new_clocks->dispclk_khz;dcn316_smu_set_dispclk (clk_mgr, clk_mgr_base->clks.dispclk_khz); -dcn316_disable_otg_wa (clk_mgr_base, context, false); +dcn316_disable_otg_wa (clk_mgr_base, context, safe_to_lower, false); update_dispclk = true; }
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c +11 -1
@@ -226,8 +226,18 @@ static int smu_v13_0_4_system_features_control(struct smu_context *smu, bool en)struct amdgpu_device *adev = smu->adev;int ret =0 ; -if (!en && !adev->in_s0ix) +if (!en && !adev->in_s0ix) { +/* Adds a GFX reset as workaround just before sending the +* MP1_UNLOAD message to prevent GC/RLC/PMFW from entering +* an invalid state. +*/ + ret =smu_cmn_send_smc_msg_with_param (smu, SMU_MSG_GfxDeviceDriverReset, +SMU_RESET_MODE_2 ,NULL ); +if (ret) +return ret; + ret =smu_cmn_send_smc_msg (smu, SMU_MSG_PrepareMp1ForUnload,NULL ); + }return ret; }
drivers/gpu/drm/ast/ast_dp.c +3 -0
@@ -180,6 +180,7 @@ void ast_dp_set_on_off(struct drm_device *dev, bool on) {struct ast_device *ast =to_ast_device (dev);u8 video_on_off = on; +u32 i =0 ;// Video On/Off ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xE3 , (u8 ) ~AST_DP_VIDEO_ENABLE , on);
@@ -192,6 +193,8 @@ void ast_dp_set_on_off(struct drm_device *dev, bool on) ASTDP_MIRROR_VIDEO_ENABLE) != video_on_off) {// wait 1 ms mdelay (1 ); +if (++i >200 ) +break ; } } }
drivers/gpu/drm/drm_client_modeset.c +2 -1
@@ -777,6 +777,7 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,unsigned int total_modes_count =0 ;struct drm_client_offset *offsets;unsigned int connector_count =0 ; +/* points to modes protected by mode_config.mutex */ struct drm_display_mode **modes;struct drm_crtc **crtcs;int i, ret =0 ;
@@ -845,7 +846,6 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,drm_client_pick_crtcs (client, connectors, connector_count, crtcs, modes,0 , width, height); } -mutex_unlock (&dev->mode_config.mutex);drm_client_modeset_release (client);
@@ -875,6 +875,7 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width, modeset->y = offset->y; } } +mutex_unlock (&dev->mode_config.mutex);mutex_unlock (&client->modeset_mutex); out:
drivers/gpu/drm/i915/display/intel_cdclk.c +5 -2
@@ -2462,7 +2462,7 @@ intel_set_cdclk_pre_plane_update(struct intel_atomic_state *state)if (IS_DG2 (i915))intel_cdclk_pcode_pre_notify (state); -if (pipe ==INVALID_PIPE || +if (new_cdclk_state->disable_pipes || old_cdclk_state->actual.cdclk <= new_cdclk_state->actual.cdclk) {drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed);
@@ -2494,7 +2494,7 @@ intel_set_cdclk_post_plane_update(struct intel_atomic_state *state)if (IS_DG2 (i915))intel_cdclk_pcode_post_notify (state); -if (pipe !=INVALID_PIPE && +if (!new_cdclk_state->disable_pipes && old_cdclk_state->actual.cdclk > new_cdclk_state->actual.cdclk) {drm_WARN_ON (&i915->drm, !new_cdclk_state->base.changed);
@@ -2946,6 +2946,7 @@ static struct intel_global_state *intel_cdclk_duplicate_state(struct intel_globareturn NULL ; cdclk_state->pipe =INVALID_PIPE ; + cdclk_state->disable_pipes = false;return &cdclk_state->base; }
@@ -3124,6 +3125,8 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)if (ret)return ret; + new_cdclk_state->disable_pipes = true; +drm_dbg_kms (&dev_priv->drm,"Modeset required for cdclk change\n" ); }
drivers/gpu/drm/i915/display/intel_cdclk.h +3 -0
@@ -51,6 +51,9 @@ struct intel_cdclk_state {/* bitmask of active pipes */ u8 active_pipes; + +/* update cdclk with pipes disabled */ +bool disable_pipes; };int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state);
drivers/gpu/drm/i915/display/intel_ddi.c +5 -0
@@ -4111,7 +4111,12 @@ static bool m_n_equal(const struct intel_link_m_n *m_n_1,static bool crtcs_port_sync_compatible (const struct intel_crtc_state *crtc_state1,const struct intel_crtc_state *crtc_state2) { +/* +* FIXME the modeset sequence is currently wrong and +* can't deal with bigjoiner + port sync at the same time. +*/ return crtc_state1->hw.active && crtc_state2->hw.active && + !crtc_state1->bigjoiner_pipes && !crtc_state2->bigjoiner_pipes && crtc_state1->output_types == crtc_state2->output_types && crtc_state1->output_format == crtc_state2->output_format && crtc_state1->lane_count == crtc_state2->lane_count &&
drivers/gpu/drm/i915/display/intel_vrr.c +7 -0
@@ -111,6 +111,13 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state,if (!intel_vrr_is_capable (connector))return ; +/* +* FIXME all joined pipes share the same transcoder. +* Need to account for that during VRR toggle/push/etc. +*/ +if (crtc_state->bigjoiner_pipes) +return ; +if (adjusted_mode->flags &DRM_MODE_FLAG_INTERLACE )return ;
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c +5 -5
@@ -459,15 +459,15 @@ int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent) &perf->core_clk_rate);debugfs_create_u32 ("enable_bw_release" ,0600 , entry, (u32 *)&perf->enable_bw_release); -debugfs_create_u32 ("threshold_low" ,0600 , entry, +debugfs_create_u32 ("threshold_low" ,0400 , entry, (u32 *)&perf->perf_cfg->max_bw_low); -debugfs_create_u32 ("threshold_high" ,0600 , entry, +debugfs_create_u32 ("threshold_high" ,0400 , entry, (u32 *)&perf->perf_cfg->max_bw_high); -debugfs_create_u32 ("min_core_ib" ,0600 , entry, +debugfs_create_u32 ("min_core_ib" ,0400 , entry, (u32 *)&perf->perf_cfg->min_core_ib); -debugfs_create_u32 ("min_llcc_ib" ,0600 , entry, +debugfs_create_u32 ("min_llcc_ib" ,0400 , entry, (u32 *)&perf->perf_cfg->min_llcc_ib); -debugfs_create_u32 ("min_dram_ib" ,0600 , entry, +debugfs_create_u32 ("min_dram_ib" ,0400 , entry, (u32 *)&perf->perf_cfg->min_dram_ib);debugfs_create_file ("perf_mode" ,0600 , entry, (u32 *)perf, &dpu_core_perf_mode_fops);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c +6 -1
@@ -66,11 +66,16 @@ of_init(struct nvkm_bios *bios, const char *name)return ERR_PTR (-EINVAL ); } +static void of_fini (void *p) +{ +kfree (p); +} +const struct nvbios_source nvbios_of = { .name ="OpenFirmware" , .init = of_init, - .fini = (void (*)(void *))kfree, + .fini = of_fini, .read = of_read, .size = of_size, .rw = false,
drivers/gpu/drm/panfrost/panfrost_mmu.c +9 -4
@@ -500,11 +500,18 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as,mapping_set_unevictable (mapping);for (i = page_offset; i < page_offset +NUM_FAULT_PAGES ; i++) { +/* Can happen if the last fault only partially filled this +* section of the pages array before failing. In that case +* we skip already filled pages. +*/ +if (pages[i]) +continue ; + pages[i] =shmem_read_mapping_page (mapping, i);if (IS_ERR (pages[i])) { ret =PTR_ERR (pages[i]); pages[i] =NULL ; - goto err_pages; + goto err_unlock; } }
@@ -512,7 +519,7 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as, ret =sg_alloc_table_from_pages (sgt, pages + page_offset,NUM_FAULT_PAGES ,0 ,SZ_2M ,GFP_KERNEL );if (ret) - goto err_pages; + goto err_unlock; ret =dma_map_sgtable (pfdev->dev, sgt,DMA_BIDIRECTIONAL ,0 );if (ret)
@@ -534,8 +541,6 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as, err_map:sg_free_table (sgt); -err_pages: -drm_gem_shmem_put_pages (&bo->base); err_unlock:dma_resv_unlock (obj->resv); err_bo:
drivers/gpu/drm/qxl/qxl_release.c +45 -5
61 lines not on this page · raw message
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +6 -5
@@ -666,11 +666,12 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv) [vmw_dma_map_populate] = "Caching DMA mappings.", [vmw_dma_map_bind] = "Giving up DMA mappings early."}; -/* TTM currently doesn't fully support SEV encryption. */ -if (cc_platform_has (CC_ATTR_MEM_ENCRYPT )) -return -EINVAL ; - -if (vmw_force_coherent) +/* +* When running with SEV we always want dma mappings, because +* otherwise ttm tt pool pages will bounce through swiotlb running +* out of available space. +*/ +if (vmw_force_coherent ||cc_platform_has (CC_ATTR_MEM_ENCRYPT )) dev_priv->map_mode = vmw_dma_alloc_coherent;else if (vmw_restrict_iommu) dev_priv->map_mode = vmw_dma_map_bind;
drivers/iommu/intel/perfmon.c +1 -1
@@ -438,7 +438,7 @@ static int iommu_pmu_assign_event(struct iommu_pmu *iommu_pmu,iommu_pmu_set_filter (domain, event->attr.config1,IOMMU_PMU_FILTER_DOMAIN , idx, event->attr.config1); -iommu_pmu_set_filter (pasid, event->attr.config1, +iommu_pmu_set_filter (pasid, event->attr.config2,IOMMU_PMU_FILTER_PASID , idx, event->attr.config1); iommu_pmu_set_filter(ats, event->attr.config2,
drivers/iommu/intel/svm.c +1 -1
@@ -67,7 +67,7 @@ int intel_svm_enable_prq(struct intel_iommu *iommu)struct page *pages;int irq, ret; - pages =alloc_pages (GFP_KERNEL | __GFP_ZERO,PRQ_ORDER ); + pages =alloc_pages_node (iommu->node,GFP_KERNEL | __GFP_ZERO,PRQ_ORDER );if (!pages) {pr_warn ("IOMMU: %s: Failed to allocate page request queue\n" , iommu->name);
drivers/md/raid1.c +1 -1
@@ -1473,7 +1473,7 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio,for (j =0 ; j < i; j++)if (r1_bio->bios[j])rdev_dec_pending (conf->mirrors[j].rdev, mddev); -free_r1bio (r1_bio); +mempool_free (r1_bio, &conf->r1bio_pool);allow_barrier (conf, bio->bi_iter.bi_sector);if (bio->bi_opf &REQ_NOWAIT ) {
drivers/media/cec/core/cec-adap.c +0 -14
@@ -1124,20 +1124,6 @@ void cec_received_msg_ts(struct cec_adapter *adap,if (valid_la && min_len) {/* These messages have special length requirements */ switch (cmd) { -case CEC_MSG_TIMER_STATUS : -if (msg->msg[2 ] &0x10 ) { -switch (msg->msg[2 ] &0xf ) { -case CEC_OP_PROG_INFO_NOT_ENOUGH_SPACE : -case CEC_OP_PROG_INFO_MIGHT_NOT_BE_ENOUGH_SPACE : -if (msg->len <5 ) - valid_la = false; -break ; - } - }else if ((msg->msg[2 ] &0xf ) ==CEC_OP_PROG_ERROR_DUPLICATE ) { -if (msg->len <5 ) - valid_la = false; - } -break ;case CEC_MSG_RECORD_ON :switch (msg->msg[2 ]) {case CEC_OP_RECORD_SRC_OWN :
drivers/mmc/host/omap.c +31 -17
78 lines not on this page · raw message
drivers/net/dsa/mt7530.c +195 -34
250 lines not on this page · raw message
drivers/net/dsa/mt7530.h +5 -0
@@ -65,6 +65,7 @@ enum mt753x_id {/* Registers for BPDU and PAE frame control*/ #define MT753X_BPC 0x24 +#define MT753X_PAE_BPDU_FR BIT(25)#define MT753X_PAE_EG_TAG_MASK GENMASK(24, 22)#define MT753X_PAE_EG_TAG (x) FIELD_PREP(MT753X_PAE_EG_TAG_MASK, x)#define MT753X_PAE_PORT_FW_MASK GENMASK(18, 16)
@@ -75,20 +76,24 @@ enum mt753x_id {/* Register for :01 and :02 MAC DA frame control */ #define MT753X_RGAC1 0x28 +#define MT753X_R02_BPDU_FR BIT(25)#define MT753X_R02_EG_TAG_MASK GENMASK(24, 22)#define MT753X_R02_EG_TAG (x) FIELD_PREP(MT753X_R02_EG_TAG_MASK, x)#define MT753X_R02_PORT_FW_MASK GENMASK(18, 16)#define MT753X_R02_PORT_FW (x) FIELD_PREP(MT753X_R02_PORT_FW_MASK, x) +#define MT753X_R01_BPDU_FR BIT(9)#define MT753X_R01_EG_TAG_MASK GENMASK(8, 6)#define MT753X_R01_EG_TAG (x) FIELD_PREP(MT753X_R01_EG_TAG_MASK, x)#define MT753X_R01_PORT_FW_MASK GENMASK(2, 0)/* Register for :03 and :0E MAC DA frame control */ #define MT753X_RGAC2 0x2c +#define MT753X_R0E_BPDU_FR BIT(25)#define MT753X_R0E_EG_TAG_MASK GENMASK(24, 22)#define MT753X_R0E_EG_TAG (x) FIELD_PREP(MT753X_R0E_EG_TAG_MASK, x)#define MT753X_R0E_PORT_FW_MASK GENMASK(18, 16)#define MT753X_R0E_PORT_FW (x) FIELD_PREP(MT753X_R0E_PORT_FW_MASK, x) +#define MT753X_R03_BPDU_FR BIT(9)#define MT753X_R03_EG_TAG_MASK GENMASK(8, 6)#define MT753X_R03_EG_TAG (x) FIELD_PREP(MT753X_R03_EG_TAG_MASK, x)#define MT753X_R03_PORT_FW_MASK GENMASK(2, 0)
drivers/net/ethernet/amazon/ena/Makefile +1 -1
@@ -5,4 +5,4 @@ obj-$(CONFIG_ENA_ETHERNET) += ena.o -ena-y := ena_netdev.o ena_com.o ena_eth_com.o ena_ethtool.o +ena-y := ena_netdev.o ena_com.o ena_eth_com.o ena_ethtool.o ena_xdp.o
drivers/net/ethernet/amazon/ena/ena_com.c +1 -1
@@ -362,7 +362,7 @@ static int ena_com_init_io_sq(struct ena_com_dev *ena_dev,ENA_COM_BOUNCE_BUFFER_CNTRL_CNT ; io_sq->bounce_buf_ctrl.next_to_use =0 ; - size = io_sq->bounce_buf_ctrl.buffer_size * + size = (size_t )io_sq->bounce_buf_ctrl.buffer_size * io_sq->bounce_buf_ctrl.buffers_num; dev_node =dev_to_node (ena_dev->dmadev);
drivers/net/ethernet/amazon/ena/ena_ethtool.c +1 -0
@@ -7,6 +7,7 @@#include <linux/pci.h> #include "ena_netdev.h" +#include "ena_xdp.h" struct ena_stats {char name[ETH_GSTRING_LEN ];
drivers/net/ethernet/amazon/ena/ena_netdev.c +58 -630
870 lines not on this page · raw message
drivers/net/ethernet/amazon/ena/ena_netdev.h +33 -50
106 lines not on this page · raw message
drivers/net/ethernet/amazon/ena/ena_xdp.c new file +466 -0
251 lines not on this page · raw message
drivers/net/ethernet/amazon/ena/ena_xdp.h new file +152 -0
152 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/qos.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.h +7 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c +17 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +3 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +14 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/main.c +20 -17
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c +13 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8851_common.c +5 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8851_par.c +0 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8851_spi.c +0 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_port.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/platform/chrome/cros_ec_uart.c +14 -14
Lines of this file are not shown. View the raw message.
net/bluetooth/hci_sync.c +55 -11
66 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_connect.sh +28 -25
53 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_join.sh +15 -15
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/posix_timers.c +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Hi,
Quoted 8 lines
I'm announcing the release of the 6.6.28 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
Linux 6.6.28 failed to boot with the following panic *1 on a server with mellonax CX-6 VPI NIC, but 6.6.27/6.1.87 boot well.
After reverting 'net/mlx5: Restore mistakenly dropped parts in register devlink flow', linux boot well.
There is already a patch(*2 ) in upstream, but yet not in queue-6.6(for the coming 6.6.29).
*1 panic info:
[ 15.114364] BUG: unable to handle page fault for address: 0000000000001118 [ 15.114815] infiniband bnxt_re0: Device registered with IB successfully [ 15.114822] #PF: supervisor read access in kernel mode [ 15.134119] #PF: error_code(0x0000) - not-present page [ 15.139652] PGD 0 P4D 0 [ 15.142553] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 15.143055] infiniband bnxt_re1: Device registered with IB successfully [ 15.147233] CPU: 1 PID: 1253 Comm: kworker/1:4 Not tainted 6.6.28-1.el7.x86_64 #1 [ 15.147236] Hardware name: Dell Inc. PowerEdge T640/0TWW5Y, BIOS 2.21.0 12/11/2023 [ 15.147238] Workqueue: events work_for_cpu_fn [ 15.174498] RIP: 0010:esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.181056] Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 d3 e8 ce 28 9a cc 48 8b 80 b0 09 00 00 <8b> 80 18 11 00 00 88 03 31 c0 80 23 01 5b c3 cc cc cc cc 0f 1f 40 [ 15.200401] RSP: 0000:ffff9ec05bf1fb98 EFLAGS: 00010286 [ 15.205930] RAX: 0000000000000000 RBX: ffff9ec05bf1fbe4 RCX: 0000000000000028 [ 15.213364] RDX: ffff9ec05bf1fbe4 RSI: 0000000000000013 RDI: ffff8bdd1d696000 [ 15.220801] RBP: ffffffffc1134c60 R08: 0000000000000000 R09: 0000000000000000 [ 15.228235] R10: ffff9ec05bf1fbf8 R11: 0000000000001000 R12: ffff8bdd1d696000 [ 15.235671] R13: ffff8bdd9541c720 R14: 0000000000000000 R15: 0000000000000000 [ 15.243098] FS: 0000000000000000(0000) GS:ffff8c3b7ea00000(0000) knlGS:0000000000000000 [ 15.251480] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.257520] CR2: 0000000000001118 CR3: 00000004f9220003 CR4: 00000000007706e0 [ 15.264955] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 15.272383] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 15.279800] PKRU: 55555554 [ 15.282790] Call Trace: [ 15.285523] <TASK> [ 15.287905] ? __die_body+0x1e/0x60 [ 15.291675] ? page_fault_oops+0x151/0x490 [ 15.296050] ? __update_idle_core+0x27/0xc0 [ 15.300505] ? exc_page_fault+0x6b/0x150 [ 15.304700] ? asm_exc_page_fault+0x26/0x30 [ 15.309149] ? esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.315066] ? esw_port_metadata_get+0x12/0x30 [mlx5_core] [ 15.320940] devlink_nl_param_fill.constprop.23+0x88/0x5d0 [ 15.326679] ? __alloc_skb+0x87/0x190 [ 15.330594] ? __kmalloc_node_track_caller+0x55/0x130 [ 15.335897] ? __kmalloc_node_track_caller+0x55/0x130 [ 15.341196] ? kmalloc_reserve+0x65/0xf0 [ 15.345370] ? __alloc_skb+0xd9/0x190 [ 15.349280] devlink_param_notify.constprop.20+0x72/0xd0 [ 15.354845] devl_params_register+0x150/0x250 [ 15.359456] esw_offloads_init+0x181/0x1a0 [mlx5_core] [ 15.364967] mlx5_eswitch_init+0x4be/0x6e0 [mlx5_core] [ 15.370471] mlx5_init_once+0xf0/0x550 [mlx5_core] [ 15.375601] mlx5_init_one_devl_locked+0x7a/0x1d0 [mlx5_core] [ 15.381676] mlx5_init_one+0x2e/0x60 [mlx5_core] [ 15.386616] probe_one+0x2b6/0x410 [mlx5_core] [ 15.391382] local_pci_probe+0x45/0xa0 [ 15.395367] work_for_cpu_fn+0x17/0x30 [ 15.399345] process_scheduled_works+0x8a/0x380 [ 15.404102] worker_thread+0x165/0x2d0 [ 15.408082] ? __pfx_worker_thread+0x10/0x10 [ 15.412578] kthread+0xf2/0x120 [ 15.415952] ? __pfx_kthread+0x10/0x10 [ 15.419928] ret_from_fork+0x31/0x40 [ 15.423724] ? __pfx_kthread+0x10/0x10 [ 15.427692] ret_from_fork_asm+0x1b/0x30 [ 15.431827] </TASK> [ 15.434218] Modules linked in: xor bnxt_re zstd_compress raid6_pq ib_uverbs sd_mod ib_core t10_pi mlx5_core(+) pci_hyperv_intf mlxfw ahci libahci bnx2x mpi3mr psample i40e libata tls bnxt_en megaraid_sas scsi_transport_sas crc32c_intel mgag200 mdio i2c_algo_bit wmi dm_mirror dm_region_hash dm_log dm_mod [ 15.461684] CR2: 0000000000001118 [ 15.465213] ---[ end trace 0000000000000000 ]--- [ 15.476059] pstore: backend (erst) writing error (-28) [ 15.481415] RIP: 0010:esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.487856] Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 d3 e8 ce 28 9a cc 48 8b 80 b0 09 00 00 <8b> 80 18 11 00 00 88 03 31 c0 80 23 01 5b c3 cc cc cc cc 0f 1f 40 [ 15.507043] RSP: 0000:ffff9ec05bf1fb98 EFLAGS: 00010286 [ 15.512493] RAX: 0000000000000000 RBX: ffff9ec05bf1fbe4 RCX: 0000000000000028 [ 15.519852] RDX: ffff9ec05bf1fbe4 RSI: 0000000000000013 RDI: ffff8bdd1d696000 [ 15.527209] RBP: ffffffffc1134c60 R08: 0000000000000000 R09: 0000000000000000 [ 15.534568] R10: ffff9ec05bf1fbf8 R11: 0000000000001000 R12: ffff8bdd1d696000 [ 15.541934] R13: ffff8bdd9541c720 R14: 0000000000000000 R15: 0000000000000000 [ 15.549299] FS: 0000000000000000(0000) GS:ffff8c3b7ea00000(0000) knlGS:0000000000000000 [ 15.557618] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.563607] CR2: 0000000000001118 CR3: 00000004f9220003 CR4: 00000000007706e0 [ 15.570981] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 15.578356] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 15.585733] PKRU: 55555554 [ 15.588679] Kernel panic - not syncing: Fatal exception [ 15.594163] Kernel Offset: 0xbc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
*2
From bf729988303a27833a86acb561f42b9a3cc12728 Mon Sep 17 00:00:00 2001
From: Shay Drory <[email protected]>
Date: Thu, 11 Apr 2024 14:54:41 +0300
Subject: [PATCH] net/mlx5: Restore mistakenly dropped parts in register
devlink flow
Best Regards
Wang Yugui ([email protected])
2024/04/20
Quoted 14 lines · Wang Yugui
External email: Use caution opening links or attachments
Hi,
Quoted 8 lines
I'm announcing the release of the 6.6.28 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
Quoted 6 lines
Linux 6.6.28 failed to boot with the following panic *1 on a server with mellonax CX-6 VPI NIC, but 6.6.27/6.1.87 boot well.
After reverting 'net/mlx5: Restore mistakenly dropped parts in register devlink flow', linux boot well.
there is a similar discussion in net-dev ML[1].
In short, it seems this patch is missing from stable, which is prerequisite for the bad patch:0553e753ea9e
"net/mlx5: E-switch, store eswitch pointer before registering devlink_param".
Wang, can you test it out please?
thanks
Shay
[1]
https://lore.kernel.org/netdev/[email protected]/T/#m9a8dd7f2e76d805baf2ea441137928a4dc6a11a7
Quoted 101 lines
There is already a
patch(*2 )in upstream, but yet not in queue-6.6(for the coming 6.6.29).*1 panic info:
[ 15.114364] BUG: unable to handle page fault for address: 0000000000001118 [ 15.114815] infiniband bnxt_re0: Device registered with IB successfully [ 15.114822] #PF: supervisor read access in kernel mode [ 15.134119] #PF: error_code(0x0000) - not-present page [ 15.139652] PGD 0 P4D 0 [ 15.142553] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 15.143055] infiniband bnxt_re1: Device registered with IB successfully [ 15.147233] CPU: 1 PID: 1253 Comm: kworker/1:4 Not tainted 6.6.28-1.el7.x86_64 #1 [ 15.147236] Hardware name: Dell Inc. PowerEdge T640/0TWW5Y, BIOS 2.21.0 12/11/2023 [ 15.147238] Workqueue: events work_for_cpu_fn [ 15.174498] RIP: 0010:esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.181056] Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 d3 e8 ce 28 9a cc 48 8b 80 b0 09 00 00 <8b> 80 18 11 00 00 88 03 31 c0 80 23 01 5b c3 cc cc cc cc 0f 1f 40 [ 15.200401] RSP: 0000:ffff9ec05bf1fb98 EFLAGS: 00010286 [ 15.205930] RAX: 0000000000000000 RBX: ffff9ec05bf1fbe4 RCX: 0000000000000028 [ 15.213364] RDX: ffff9ec05bf1fbe4 RSI: 0000000000000013 RDI: ffff8bdd1d696000 [ 15.220801] RBP: ffffffffc1134c60 R08: 0000000000000000 R09: 0000000000000000 [ 15.228235] R10: ffff9ec05bf1fbf8 R11: 0000000000001000 R12: ffff8bdd1d696000 [ 15.235671] R13: ffff8bdd9541c720 R14: 0000000000000000 R15: 0000000000000000 [ 15.243098] FS: 0000000000000000(0000) GS:ffff8c3b7ea00000(0000) knlGS:0000000000000000 [ 15.251480] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.257520] CR2: 0000000000001118 CR3: 00000004f9220003 CR4: 00000000007706e0 [ 15.264955] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 15.272383] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 15.279800] PKRU: 55555554 [ 15.282790] Call Trace: [ 15.285523] <TASK> [ 15.287905] ? __die_body+0x1e/0x60 [ 15.291675] ? page_fault_oops+0x151/0x490 [ 15.296050] ? __update_idle_core+0x27/0xc0 [ 15.300505] ? exc_page_fault+0x6b/0x150 [ 15.304700] ? asm_exc_page_fault+0x26/0x30 [ 15.309149] ? esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.315066] ? esw_port_metadata_get+0x12/0x30 [mlx5_core] [ 15.320940] devlink_nl_param_fill.constprop.23+0x88/0x5d0 [ 15.326679] ? __alloc_skb+0x87/0x190 [ 15.330594] ? __kmalloc_node_track_caller+0x55/0x130 [ 15.335897] ? __kmalloc_node_track_caller+0x55/0x130 [ 15.341196] ? kmalloc_reserve+0x65/0xf0 [ 15.345370] ? __alloc_skb+0xd9/0x190 [ 15.349280] devlink_param_notify.constprop.20+0x72/0xd0 [ 15.354845] devl_params_register+0x150/0x250 [ 15.359456] esw_offloads_init+0x181/0x1a0 [mlx5_core] [ 15.364967] mlx5_eswitch_init+0x4be/0x6e0 [mlx5_core] [ 15.370471] mlx5_init_once+0xf0/0x550 [mlx5_core] [ 15.375601] mlx5_init_one_devl_locked+0x7a/0x1d0 [mlx5_core] [ 15.381676] mlx5_init_one+0x2e/0x60 [mlx5_core] [ 15.386616] probe_one+0x2b6/0x410 [mlx5_core] [ 15.391382] local_pci_probe+0x45/0xa0 [ 15.395367] work_for_cpu_fn+0x17/0x30 [ 15.399345] process_scheduled_works+0x8a/0x380 [ 15.404102] worker_thread+0x165/0x2d0 [ 15.408082] ? __pfx_worker_thread+0x10/0x10 [ 15.412578] kthread+0xf2/0x120 [ 15.415952] ? __pfx_kthread+0x10/0x10 [ 15.419928] ret_from_fork+0x31/0x40 [ 15.423724] ? __pfx_kthread+0x10/0x10 [ 15.427692] ret_from_fork_asm+0x1b/0x30 [ 15.431827] </TASK> [ 15.434218] Modules linked in: xor bnxt_re zstd_compress raid6_pq ib_uverbs sd_mod ib_core t10_pi mlx5_core(+) pci_hyperv_intf mlxfw ahci libahci bnx2x mpi3mr psample i40e libata tls bnxt_en megaraid_sas scsi_transport_sas crc32c_intel mgag200 mdio i2c_algo_bit wmi dm_mirror dm_region_hash dm_log dm_mod [ 15.461684] CR2: 0000000000001118 [ 15.465213] ---[ end trace 0000000000000000 ]--- [ 15.476059] pstore: backend (erst) writing error (-28) [ 15.481415] RIP: 0010:esw_port_metadata_get+0x19/0x30 [mlx5_core] [ 15.487856] Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 53 48 89 d3 e8 ce 28 9a cc 48 8b 80 b0 09 00 00 <8b> 80 18 11 00 00 88 03 31 c0 80 23 01 5b c3 cc cc cc cc 0f 1f 40 [ 15.507043] RSP: 0000:ffff9ec05bf1fb98 EFLAGS: 00010286 [ 15.512493] RAX: 0000000000000000 RBX: ffff9ec05bf1fbe4 RCX: 0000000000000028 [ 15.519852] RDX: ffff9ec05bf1fbe4 RSI: 0000000000000013 RDI: ffff8bdd1d696000 [ 15.527209] RBP: ffffffffc1134c60 R08: 0000000000000000 R09: 0000000000000000 [ 15.534568] R10: ffff9ec05bf1fbf8 R11: 0000000000001000 R12: ffff8bdd1d696000 [ 15.541934] R13: ffff8bdd9541c720 R14: 0000000000000000 R15: 0000000000000000 [ 15.549299] FS: 0000000000000000(0000) GS:ffff8c3b7ea00000(0000) knlGS:0000000000000000 [ 15.557618] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 15.563607] CR2: 0000000000001118 CR3: 00000004f9220003 CR4: 00000000007706e0 [ 15.570981] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 15.578356] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 15.585733] PKRU: 55555554 [ 15.588679] Kernel panic - not syncing: Fatal exception [ 15.594163] Kernel Offset: 0xbc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)*2
Frombf729988303a27833a86acb561f42b9a3cc12728Mon Sep 17 00:00:00 2001
From: Shay Drory <[email protected]>
Date: Thu, 11 Apr 2024 14:54:41 +0300
Subject: [PATCH] net/mlx5: Restore mistakenly dropped parts in register
devlink flowFixes c6e77aa9dd82 ("net/mlx5: Register devlink first under devlink lock")Best Regards
Wang Yugui ([email protected])
2024/04/20
Hi,
Quoted 23 lines · Wang Yugui
Quoted 14 lines
External email: Use caution opening links or attachments
Hi,
Quoted 8 lines
I'm announcing the release of the 6.6.28 kernel.
All users of the 6.6 kernel series must upgrade.
The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summaryQuoted 6 lines
Linux 6.6.28 failed to boot with the following panic *1 on a server with mellonax CX-6 VPI NIC, but 6.6.27/6.1.87 boot well.
After reverting 'net/mlx5: Restore mistakenly dropped parts in register devlink flow', linux boot well.
Quoted 6 lines
there is a similar discussion in net-dev ML[1].
In short, it seems this patch is missing from stable, which is prerequisite for the bad patch:0553e753ea9e
"net/mlx5: E-switch, store eswitch pointer before registeringdevlink_param".Wang, can you test it out please?
After apply "net/mlx5: E-switch, store eswitch pointer before registering devlink_param" to 6.6.28, linux boot well here.
and "net/mlx5: Restore mistakenly dropped parts in register devlink flow" is NOT applied here.
Thanks a lot.
Best Regards
Wang Yugui ([email protected])
2024/04/21