Skip to contentSkip to conversation

Linux 6.6.45

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 11, 2024 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.6.45 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

------------

 Makefile                                                         |    2 
 arch/arm/kernel/perf_callchain.c                                 |    3 
 arch/arm64/boot/dts/qcom/ipq8074.dtsi                            |    2 
 arch/arm64/boot/dts/qcom/msm8998.dtsi                            |   36 -
 arch/arm64/boot/dts/qcom/sc7180.dtsi                             |   58 --
 arch/arm64/boot/dts/qcom/sc7280.dtsi                             |   60 --
 arch/arm64/boot/dts/qcom/sdm845.dtsi                             |   98 +---
 arch/arm64/include/asm/jump_label.h                              |    1 
 arch/arm64/kernel/jump_label.c                                   |   11 
 arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi               |   81 ++-
 arch/riscv/kernel/traps_misaligned.c                             |   46 --
 arch/riscv/mm/fault.c                                            |   17 
 arch/riscv/mm/init.c                                             |   15 
 arch/x86/include/asm/posted_intr.h                               |   88 ++++
 arch/x86/kvm/Makefile                                            |    4 
 arch/x86/kvm/vmx/hyperv.c                                        |  139 ------
 arch/x86/kvm/vmx/hyperv.h                                        |  217 ++++------
 arch/x86/kvm/vmx/nested.c                                        |   41 +
 arch/x86/kvm/vmx/posted_intr.h                                   |  101 ----
 arch/x86/kvm/vmx/vmx.c                                           |    2 
 arch/x86/kvm/vmx/vmx.h                                           |    2 
 arch/x86/kvm/vmx/vmx_onhyperv.c                                  |   36 +
 arch/x86/kvm/vmx/vmx_onhyperv.h                                  |  124 +++++
 arch/x86/kvm/vmx/vmx_ops.h                                       |    2 
 drivers/bluetooth/btintel.c                                      |    3 
 drivers/cpufreq/qcom-cpufreq-nvmem.c                             |   50 +-
 drivers/dma/fsl-edma-common.c                                    |   31 -
 drivers/dma/fsl-edma-common.h                                    |    6 
 drivers/dma/fsl-edma-main.c                                      |   25 -
 drivers/firmware/Kconfig                                         |    1 
 drivers/firmware/sysfb.c                                         |    2 
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c                    |    6 
 drivers/gpu/drm/i915/display/intel_hdcp_regs.h                   |    2 
 drivers/gpu/drm/i915/i915_perf.c                                 |   33 -
 drivers/gpu/drm/nouveau/nouveau_prime.c                          |    3 
 drivers/gpu/drm/virtio/virtgpu_submit.c                          |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c                            |   17 
 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c                          |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c                             |   29 +
 drivers/hid/amd-sfh-hid/amd_sfh_client.c                         |   18 
 drivers/hid/wacom_wac.c                                          |    3 
 drivers/leds/led-triggers.c                                      |   32 -
 drivers/leds/trigger/ledtrig-timer.c                             |    5 
 drivers/net/ethernet/intel/ice/ice_txrx.c                        |    2 
 drivers/net/ethernet/intel/ice/ice_xsk.c                         |   19 
 drivers/net/ethernet/intel/igc/igc_main.c                        |   33 -
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c                  |    6 
 drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c               |    1 
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c |    7 
 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c             |    7 
 drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c               |    5 
 drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c           |   10 
 drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c                |    2 
 drivers/net/ethernet/mellanox/mlx5/core/main.c                   |    2 
 drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c          |    1 
 drivers/net/ethernet/realtek/r8169_main.c                        |    8 
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c                |    2 
 drivers/net/phy/micrel.c                                         |   34 -
 drivers/net/phy/realtek.c                                        |    7 
 drivers/net/usb/sr9700.c                                         |   11 
 drivers/pci/search.c                                             |   31 +
 drivers/perf/fsl_imx9_ddr_perf.c                                 |    6 
 drivers/perf/riscv_pmu_sbi.c                                     |    2 
 drivers/platform/chrome/cros_ec_proto.c                          |    2 
 drivers/thermal/broadcom/bcm2835_thermal.c                       |   25 -
 drivers/video/Kconfig                                            |    4 
 drivers/video/Makefile                                           |    4 
 drivers/video/fbdev/vesafb.c                                     |   66 +--
 drivers/video/screen_info_generic.c                              |  146 ++++++
 drivers/video/screen_info_pci.c                                  |  136 ++++++
 fs/btrfs/block-group.c                                           |   13 
 fs/btrfs/extent-tree.c                                           |    3 
 fs/btrfs/free-space-cache.c                                      |    4 
 fs/btrfs/space-info.c                                            |    5 
 fs/btrfs/space-info.h                                            |    1 
 fs/ext4/inode.c                                                  |   98 ++--
 fs/f2fs/segment.c                                                |    4 
 fs/file.c                                                        |    1 
 fs/proc/proc_sysctl.c                                            |    8 
 include/linux/leds.h                                             |   30 -
 include/linux/pci.h                                              |    5 
 include/linux/screen_info.h                                      |  136 ++++++
 include/linux/sysctl.h                                           |    1 
 include/trace/events/btrfs.h                                     |    8 
 include/trace/events/mptcp.h                                     |    2 
 init/Kconfig                                                     |    1 
 ipc/ipc_sysctl.c                                                 |   36 +
 ipc/mq_sysctl.c                                                  |   35 +
 mm/Kconfig                                                       |   11 
 mm/page_alloc.c                                                  |   19 
 net/bluetooth/hci_sync.c                                         |   21 
 net/core/rtnetlink.c                                             |    2 
 net/ipv4/netfilter/iptable_nat.c                                 |   18 
 net/ipv4/syncookies.c                                            |    3 
 net/ipv4/tcp.c                                                   |    8 
 net/ipv4/tcp_input.c                                             |   36 +
 net/ipv4/tcp_output.c                                            |   18 
 net/ipv6/ndisc.c                                                 |   34 -
 net/ipv6/netfilter/ip6table_nat.c                                |   14 
 net/ipv6/syncookies.c                                            |    2 
 net/iucv/af_iucv.c                                               |    4 
 net/mptcp/mib.c                                                  |    2 
 net/mptcp/mib.h                                                  |    2 
 net/mptcp/options.c                                              |    2 
 net/mptcp/pm_netlink.c                                           |   28 -
 net/mptcp/protocol.c                                             |   44 +-
 net/mptcp/protocol.h                                             |   21 
 net/mptcp/sockopt.c                                              |   46 ++
 net/mptcp/subflow.c                                              |   35 +
 net/sched/act_ct.c                                               |    4 
 net/sysctl_net.c                                                 |    1 
 net/wireless/sme.c                                               |    1 
 sound/core/seq/seq_ump_convert.c                                 |   37 +
 sound/firewire/amdtp-stream.c                                    |   38 +
 sound/firewire/amdtp-stream.h                                    |    1 
 sound/pci/hda/hda_controller.h                                   |    2 
 sound/pci/hda/hda_intel.c                                        |   10 
 sound/pci/hda/patch_conexant.c                                   |   54 --
 sound/pci/hda/patch_realtek.c                                    |    1 
 sound/usb/stream.c                                               |    4 
 tools/perf/util/callchain.c                                      |    2 
 tools/testing/selftests/net/mptcp/mptcp_connect.c                |    8 
 tools/testing/selftests/net/mptcp/mptcp_join.sh                  |   72 ++-
 123 files changed, 1918 insertions(+), 1113 deletions(-)

Al Viro (1):

      protect the fetch of ->fd[fd] in do_dup2() from mispredictions

Alexandra Winter (1):
net/iucv: fix use after free in iucv_sock_close()

Alexey Gladkov (2):
sysctl: allow change system v ipc sysctls inside ipc namespace
sysctl: allow to change limits for posix messages queues

Alice Ryhl (1):
rust: SHADOW_CALL_STACK is incompatible with Rust

Andy Chiu (1):
net: axienet: start napi before enabling Rx/Tx

Basavaraj Natikar (1):
HID: amd_sfh: Move sensor discovery before HID device initialization

Casey Chen (1):

      perf tool: fix dereferencing NULL al->maps

Chris Mi (1):
net/mlx5e: Fix CT entry update leaks of modify header context

Clément Léger (1):
riscv: remove unused functions in traps_misaligned.c

Dan Carpenter (1):
net: mvpp2: Don't re-use loop iterator

Danilo Krummrich (1):
drm/nouveau: prime: fix refcount underflow

Dmitry Baryshkov (5):
arm64: dts: qcom: sc7180: switch USB+DP QMP PHY to new style of bindings
arm64: dts: qcom: sc7280: switch USB+DP QMP PHY to new style of bindings
arm64: dts: qcom: msm8998: switch USB QMP PHY to new style of bindings
arm64: dts: qcom: sdm845: switch USB+DP QMP PHY to new style of bindings
arm64: dts: qcom: sdm845: switch USB QMP PHY to new style of bindings

Dmitry Osipenko (1):
drm/virtio: Fix type of dma-fence context variable

Edmund Raile (2):
Revert "ALSA: firewire-lib: obsolete workqueue for period update" Revert "ALSA: firewire-lib: operate for period elapse event in process context"

Eric Dumazet (2):
sched: act_ct: take care of padding in struct zones_ht_key
tcp: annotate data-races around tp->window_clamp

Faizal Rahim (1):
igc: Fix double reset adapter triggered from a single taprio cmd

Frank Li (1):
dmaengine: fsl-edma: add address for channel mux register in fsl_edma_chan

Greg Kroah-Hartman (1):

      Linux 6.6.45

Hans de Goede (1):

      leds: trigger: Call synchronize_rcu() before calling trig->activate()

Heiner Kallweit (3):
leds: trigger: Remove unused function led_trigger_rename_static()
leds: trigger: Store brightness set by led_trigger_event()
r8169: don't increment tx_dropped in case of NETDEV_TX_BUSY

Huang Ying (1):
mm: restrict the pcp batch scale factor to avoid too long latency

Ian Forbes (2):
drm/vmwgfx: Fix overlay when using Screen Targets drm/vmwgfx: Trigger a modeset when the screen moves

Jacob Pan (1):
KVM: VMX: Move posted interrupt descriptor out of VMX code

Jaegeuk Kim (1):
f2fs: assign CURSEG_ALL_DATA_ATGC if blkaddr is valid

Javier Carrasco (1):
cpufreq: qcom-nvmem: fix memory leaks in probe error paths

Jiaxun Yang (3):
MIPS: Loongson64: DTS: Fix PCIe port nodes for ls7a
MIPS: dts: loongson: Fix liointc IRQ polarity
MIPS: dts: loongson: Fix ls2k1000-rtc interrupt

Jinjie Ruan (1):
ARM: 9406/1: Fix callchain_trace() return value

Joy Zou (3):
dmaengine: fsl-edma: add i.MX8ULP edma support
dmaengine: fsl-edma: clean up unused "fsl,imx8qm-adma" compatible string
dmaengine: fsl-edma: change the memory access from local into remote mode in i.MX 8QM

Kiran K (1):
Bluetooth: btintel: Fail setup on error

Krishna Kurapati (5):
arm64: dts: qcom: sc7180: Disable SuperSpeed instances in park mode
arm64: dts: qcom: sc7280: Disable SuperSpeed instances in park mode
arm64: dts: qcom: msm8998: Disable SS instance in Parkmode for USB
arm64: dts: qcom: ipq8074: Disable SS instance in Parkmode for USB
arm64: dts: qcom: sdm845: Disable SS instance in Parkmode for USB

Krzysztof Kozlowski (1):
thermal/drivers/broadcom: Fix race between removal and clock disable

Kuniyuki Iwashima (3):
rtnetlink: Don't ignore IFLA_TARGET_NETNSID when ifname is specified in rtnl_dellink().
netfilter: iptables: Fix null-ptr-deref in iptable_nat_table_init().
netfilter: iptables: Fix potential null-ptr-deref in ip6table_nat_table_init().

Li Zhijian (1):

      mm/page_alloc: fix pcp->count race between drain_pages_zone() vs __rmqueue_pcplist()

Liu Jing (1):
selftests: mptcp: always close input's FD if opened

Lucas Stach (1):
mm: page_alloc: control latency caused by zone PCP draining

Luiz Augusto von Dentz (1):
Bluetooth: hci_sync: Fix suspending with wrong filter policy

Ma Ke (1):
net: usb: sr9700: fix uninitialized variable use in sr_mdio_read

Maciej Fijalkowski (3):
ice: don't busy wait for Rx queue disable in ice_qp_dis()
ice: replace synchronize_rcu with synchronize_net
ice: add missing WRITE_ONCE when clearing ice_rx_ring::xdp_prog

Maciej Żenczykowski (1):
ipv6: fix ndisc_is_useropt() handling for PIO

Mark Bloch (1):
net/mlx5: Lag, don't use the hardcoded value of the first port

Mark Mentovai (1):
net: phy: realtek: add support for RTL8366S Gigabit PHY

Matthieu Baerts (NGI0) (6):
mptcp: sched: check both directions for backup
mptcp: distinguish rcv vs sent backup flag in requests
mptcp: mib: count MPJ with backup flag
mptcp: pm: only set request_bkup flag when sending MP_PRIO
selftests: mptcp: join: validate backup in MPJ
selftests: mptcp: join: check backup support in signal endp

Mavroudis Chatzilazaridis (1):
ALSA: hda/realtek: Add quirk for Acer Aspire E5-574G

Michal Kubiak (1):
ice: respect netif readiness in AF_XDP ZC related ndo's

Moshe Shemesh (1):
net/mlx5: Fix missing lock on sync reset reload

Naohiro Aota (2):
btrfs: zoned: fix zone_unusable accounting on making block group read-write again
btrfs: do not subtract delalloc from avail bytes

Nikita Zhandarovich (1):
drm/i915: Fix possible int overflow in skl_ddi_calculate_wrpll()

Paolo Abeni (6):
mptcp: give rcvlowat some love
mptcp: fix user-space PM announced address accounting
mptcp: fix NL PM announced address accounting
mptcp: fix bad RCVPRUNED mib accounting
mptcp: fix duplicate data handling
mptcp: prevent BPF accessing lowat from a subflow socket.

Patryk Duda (1):
platform/chrome: cros_ec_proto: Lock device when updating MKBP version

Rahul Rameshbabu (1):
net/mlx5e: Require mlx5 tc classifier action support for IPsec prio capability

Raju Lakkaraju (1):
net: phy: micrel: Fix the KSZ9131 MDI-X status issue

Sean Christopherson (2):
KVM: nVMX: Add a helper to get highest pending from Posted Interrupt vector
KVM: nVMX: Check for pending posted interrupts when looking for nested events

Shahar Shitrit (1):
net/mlx5e: Add a check for the return value from mlx5_port_set_eth_ptys

Shay Drory (2):
net/mlx5: Always drain health in shutdown callback net/mlx5: Fix error handling in irq_pool_request_irq

Shifrin Dmitry (1):
perf: riscv: Fix selecting counters in legacy mode

Stephan Gerhold (1):
cpufreq: qcom-nvmem: Simplify driver data allocation

Stuart Menefy (1):
riscv: Fix linear mapping checks for non-contiguous memory regions

Subash Abhinov Kasiviswanathan (1):
tcp: Adjust clamping window for applications specifying SO_RCVBUF

Sui Jingfeng (1):
PCI: Add pci_get_base_class() helper

Suraj Kandpal (1):
drm/i915/hdcp: Fix HDCP2_STREAM_STATUS macro

Takashi Iwai (3):
ALSA: hda: Conditionally use snooping for AMD HDMI
ALSA: usb-audio: Correct surround channels in UAC1 channel map
ALSA: seq: ump: Optimize conversions from SysEx to UMP

Tatsunosuke Tobita (1):
HID: wacom: Modify pen IDs

Thomas Weißschuh (3):
sysctl: treewide: drop unused argument ctl_table_root::set_ownership(table)
sysctl: always initialize i_uid/i_gid
leds: triggers: Flush pending brightness before activating trigger

Thomas Zimmermann (5):
fbdev/vesafb: Replace references to global screen_info by local pointer
video: Add helpers for decoding screen_info
video: Provide screen_info_get_pci_dev() to find screen_info's PCI device firmware/sysfb: Update screen_info for relocated EFI framebuffers
fbdev: vesafb: Detect VGA compatibility from screen info's VESA attributes

Umesh Nerlige Ramappa (1):
i915/perf: Remove code to update PWR_CLK_STATE for gen12

Uwe Kleine-König (1):
thermal: bcm2835: Convert to platform remove callback returning void

Veerendranath Jakkam (1):
wifi: cfg80211: fix reporting failed MLO links status with cfg80211_connect_done

Vitaly Kuznetsov (1):

      KVM: VMX: Split off vmx_onhyperv.{ch} from hyperv.{ch}

Will Deacon (1):
arm64: jump_label: Ensure patched jump_labels are visible to all CPUs

Xu Yang (1):
perf: imx_perf: fix counter start and config sequence

Zack Rusin (1):
drm/vmwgfx: Fix a deadlock in dma buf fence polling

Zhang Yi (4):
ext4: refactor ext4_da_map_blocks()
ext4: convert to exclusive lock while inserting delalloc extents
ext4: factor out a common helper to query extent map
ext4: check the extent status again before inserting delalloc block

Zhe Qiao (1):
riscv/mm: Add handling for VM_FAULT_SIGSEGV in mm_fault_error()

Zhiguo Niu (1):
f2fs: fix to avoid use SSR allocate when do defragment

songxiebing (1):
ALSA: hda: conexant: Fix headset auto detect fail in the polling mode

author maintainer
#1 lore raw
Makefile +1 -1
index 2e5d92ce2774..0bd4bee2128b 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 6
-SUBLEVEL = 44
+SUBLEVEL = 45
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm/kernel/perf_callchain.c +1 -2
index 7147edbe56c6..1d230ac9d0eb 100644
@@ -85,8 +85,7 @@ static bool
 callchain_trace(void *data, unsigned long pc)
 {
 	struct perf_callchain_entry_ctx *entry = data;
-	perf_callchain_store(entry, pc);
-	return true;
+	return perf_callchain_store(entry, pc) == 0;
 }
 
 void
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2 -0
index 5effd8180cc4..e5993a365870 100644
@@ -641,6 +641,7 @@ dwc_0: usb@8a00000 {
 				interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
 				phys = <&qusb_phy_0>, <&usb0_ssphy>;
 				phy-names = "usb2-phy", "usb3-phy";
+				snps,parkmode-disable-ss-quirk;
 				snps,is-utmi-l1-suspend;
 				snps,hird-threshold = /bits/ 8 <0x0>;
 				snps,dis_u2_susphy_quirk;
@@ -683,6 +684,7 @@ dwc_1: usb@8c00000 {
 				interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
 				phys = <&qusb_phy_1>, <&usb1_ssphy>;
 				phy-names = "usb2-phy", "usb3-phy";
+				snps,parkmode-disable-ss-quirk;
 				snps,is-utmi-l1-suspend;
 				snps,hird-threshold = /bits/ 8 <0x0>;
 				snps,dis_u2_susphy_quirk;
arch/arm64/boot/dts/qcom/msm8998.dtsi +15 -21
index 9c072ce19735..7fcc15b6946a 100644
@@ -2159,7 +2159,8 @@ usb3_dwc3: usb@a800000 {
 				interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
 				snps,dis_u2_susphy_quirk;
 				snps,dis_enblslpm_quirk;
-				phys = <&qusb2phy>, <&usb1_ssphy>;
+				snps,parkmode-disable-ss-quirk;
+				phys = <&qusb2phy>, <&usb3phy>;
 				phy-names = "usb2-phy", "usb3-phy";
 				snps,has-lpm-erratum;
 				snps,hird-threshold = /bits/ 8 <0x10>;
@@ -2168,33 +2169,26 @@ usb3_dwc3: usb@a800000 {
 
 		usb3phy: phy@c010000 {
 			compatible = "qcom,msm8998-qmp-usb3-phy";
-			reg = <0x0c010000 0x18c>;
-			status = "disabled";
-			#address-cells = <1>;
-			#size-cells = <1>;
-			ranges;
+			reg = <0x0c010000 0x1000>;
 
 			clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
+				 <&gcc GCC_USB3_CLKREF_CLK>,
 				 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
-				 <&gcc GCC_USB3_CLKREF_CLK>;
-			clock-names = "aux", "cfg_ahb", "ref";
+				 <&gcc GCC_USB3_PHY_PIPE_CLK>;
+			clock-names = "aux",
+				      "ref",
+				      "cfg_ahb",
+				      "pipe";
+			clock-output-names = "usb3_phy_pipe_clk_src";
+			#clock-cells = <0>;
+			#phy-cells = <0>;
 
 			resets = <&gcc GCC_USB3_PHY_BCR>,
 				 <&gcc GCC_USB3PHY_PHY_BCR>;
-			reset-names = "phy", "common";
+			reset-names = "phy",
+				      "phy_phy";
 
-			usb1_ssphy: phy@c010200 {
-				reg = <0xc010200 0x128>,
-				      <0xc010400 0x200>,
-				      <0xc010c00 0x20c>,
-				      <0xc010600 0x128>,
-				      <0xc010800 0x200>;
-				#phy-cells = <0>;
-				#clock-cells = <0>;
-				clocks = <&gcc GCC_USB3_PHY_PIPE_CLK>;
-				clock-names = "pipe0";
-				clock-output-names = "usb3_phy_pipe_clk_src";
-			};
+			status = "disabled";
 		};
 
 		qusb2phy: phy@c012000 {
arch/arm64/boot/dts/qcom/sc7180.dtsi +20 -38

98 lines not on this page · raw message

arch/arm64/boot/dts/qcom/sc7280.dtsi +20 -40

105 lines not on this page · raw message

arch/arm64/boot/dts/qcom/sdm845.dtsi +38 -60

154 lines not on this page · raw message

arch/arm64/include/asm/jump_label.h +1 -0
index 6aafbb789991..4b9915915082 100644
@@ -13,6 +13,7 @@
 #include <linux/types.h>
 #include <asm/insn.h>
 
+#define HAVE_JUMP_LABEL_BATCH
 #define JUMP_LABEL_NOP_SIZE		AARCH64_INSN_SIZE
 
 static __always_inline bool arch_static_branch(struct static_key * const key,
arch/arm64/kernel/jump_label.c +9 -2
index faf88ec9c48e..f63ea915d6ad 100644
@@ -7,11 +7,12 @@
  */
 #include <linux/kernel.h>
 #include <linux/jump_label.h>
+#include <linux/smp.h>
 #include <asm/insn.h>
 #include <asm/patching.h>
 
-void arch_jump_label_transform(struct jump_entry *entry,
-			       enum jump_label_type type)
+bool arch_jump_label_transform_queue(struct jump_entry *entry,
+				     enum jump_label_type type)
 {
 	void *addr = (void *)jump_entry_code(entry);
 	u32 insn;
@@ -25,4 +26,10 @@ void arch_jump_label_transform(struct jump_entry *entry,
 	}
 
 	aarch64_insn_patch_text_nosync(addr, insn);
+	return true;
+}
+
+void arch_jump_label_transform_apply(void)
+{
+	kick_all_cpus_sync();
 }
arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi +52 -29

201 lines not on this page · raw message

arch/riscv/kernel/traps_misaligned.c +7 -39

58 lines not on this page · raw message

arch/riscv/mm/fault.c +9 -8
index 90d4ba36d1d0..655b2b1bb529 100644
@@ -61,26 +61,27 @@ static inline void no_context(struct pt_regs *regs, unsigned long addr)
 
 static inline void mm_fault_error(struct pt_regs *regs, unsigned long addr, vm_fault_t fault)
 {
+	if (!user_mode(regs)) {
+		no_context(regs, addr);
+		return;
+	}
+
 	if (fault & VM_FAULT_OOM) {
 		/*
 		 * We ran out of memory, call the OOM killer, and return the userspace
 		 * (which will retry the fault, or kill us if we got oom-killed).
 		 */
-		if (!user_mode(regs)) {
-			no_context(regs, addr);
-			return;
-		}
 		pagefault_out_of_memory();
 		return;
 	} else if (fault & (VM_FAULT_SIGBUS | VM_FAULT_HWPOISON | VM_FAULT_HWPOISON_LARGE)) {
 		/* Kernel mode? Handle exceptions or die */
-		if (!user_mode(regs)) {
-			no_context(regs, addr);
-			return;
-		}
 		do_trap(regs, SIGBUS, BUS_ADRERR, addr);
 		return;
+	} else if (fault & VM_FAULT_SIGSEGV) {
+		do_trap(regs, SIGSEGV, SEGV_MAPERR, addr);
+		return;
 	}
+
 	BUG();
 }
 
arch/riscv/mm/init.c +11 -4
index 8adcb9419ad5..9b10e9655df8 100644
@@ -217,8 +217,6 @@ static void __init setup_bootmem(void)
 	 */
 	memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start);
 
-	phys_ram_end = memblock_end_of_DRAM();
-
 	/*
 	 * Make sure we align the start of the memory on a PMD boundary so that
 	 * at worst, we map the linear mapping with PMD mappings.
@@ -233,6 +231,16 @@ static void __init setup_bootmem(void)
 	if (IS_ENABLED(CONFIG_64BIT) && IS_ENABLED(CONFIG_MMU))
 		kernel_map.va_pa_offset = PAGE_OFFSET - phys_ram_base;
 
+	/*
+	 * The size of the linear page mapping may restrict the amount of
+	 * usable RAM.
+	 */
+	if (IS_ENABLED(CONFIG_64BIT)) {
+		max_mapped_addr = __pa(PAGE_OFFSET) + KERN_VIRT_SIZE;
+		memblock_cap_memory_range(phys_ram_base,
+					  max_mapped_addr - phys_ram_base);
+	}
+
 	/*
 	 * Reserve physical address space that would be mapped to virtual
 	 * addresses greater than (void *)(-PAGE_SIZE) because:
@@ -249,6 +257,7 @@ static void __init setup_bootmem(void)
 		memblock_reserve(max_mapped_addr, (phys_addr_t)-max_mapped_addr);
 	}
 
+	phys_ram_end = memblock_end_of_DRAM();
 	min_low_pfn = PFN_UP(phys_ram_base);
 	max_low_pfn = max_pfn = PFN_DOWN(phys_ram_end);
 	high_memory = (void *)(__va(PFN_PHYS(max_low_pfn)));
@@ -1269,8 +1278,6 @@ static void __init create_linear_mapping_page_table(void)
 		if (start <= __pa(PAGE_OFFSET) &&
 		    __pa(PAGE_OFFSET) < end)
 			start = __pa(PAGE_OFFSET);
-		if (end >= __pa(PAGE_OFFSET) + memory_limit)
-			end = __pa(PAGE_OFFSET) + memory_limit;
 
 		create_linear_mapping_range(start, end, 0);
 	}
arch/x86/include/asm/posted_intr.h new file +88 -0

88 lines not on this page · raw message

arch/x86/kvm/Makefile +4 -0
index 80e3fe184d17..a99ffc3f3a3f 100644
@@ -26,6 +26,10 @@ kvm-intel-y		+= vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o \
 			   vmx/hyperv.o vmx/nested.o vmx/posted_intr.o
 kvm-intel-$(CONFIG_X86_SGX_KVM)	+= vmx/sgx.o
 
+ifdef CONFIG_HYPERV
+kvm-intel-y		+= vmx/vmx_onhyperv.o
+endif
+
 kvm-amd-y		+= svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o \
 			   svm/sev.o svm/hyperv.o
 
arch/x86/kvm/vmx/hyperv.c +0 -139

151 lines not on this page · raw message

arch/x86/kvm/vmx/hyperv.h +105 -112

231 lines not on this page · raw message

arch/x86/kvm/vmx/nested.c +37 -4

59 lines not on this page · raw message

arch/x86/kvm/vmx/posted_intr.h +10 -91

111 lines not on this page · raw message

arch/x86/kvm/vmx/vmx.c +2 -0
index f5f652a546bf..2e0106d9d371 100644
@@ -66,6 +66,8 @@
 #include "vmx.h"
 #include "x86.h"
 #include "smm.h"
+#include "vmx_onhyperv.h"
+#include "posted_intr.h"
 
 MODULE_AUTHOR("Qumranet");
 MODULE_LICENSE("GPL");
arch/x86/kvm/vmx/vmx.h +1 -1
index 912b0c469742..6be1627d888e 100644
@@ -7,10 +7,10 @@
 #include <asm/kvm.h>
 #include <asm/intel_pt.h>
 #include <asm/perf_event.h>
+#include <asm/posted_intr.h>
 
 #include "capabilities.h"
 #include "../kvm_cache_regs.h"
-#include "posted_intr.h"
 #include "vmcs.h"
 #include "vmx_ops.h"
 #include "../cpuid.h"
arch/x86/kvm/vmx/vmx_onhyperv.c new file +36 -0
new file mode 100644
index 000000000000..b9a8b91166d0
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "capabilities.h"
+#include "vmx_onhyperv.h"
+
+DEFINE_STATIC_KEY_FALSE(__kvm_is_using_evmcs);
+
+/*
+ * KVM on Hyper-V always uses the latest known eVMCSv1 revision, the assumption
+ * is: in case a feature has corresponding fields in eVMCS described and it was
+ * exposed in VMX feature MSRs, KVM is free to use it. Warn if KVM meets a
+ * feature which has no corresponding eVMCS field, this likely means that KVM
+ * needs to be updated.
+ */
+#define evmcs_check_vmcs_conf(field, ctrl)					\
+	do {									\
+		typeof(vmcs_conf->field) unsupported;				\
+										\
+		unsupported = vmcs_conf->field & ~EVMCS1_SUPPORTED_ ## ctrl;	\
+		if (unsupported) {						\
+			pr_warn_once(#field " unsupported with eVMCS: 0x%llx\n",\
+				     (u64)unsupported);				\
+			vmcs_conf->field &= EVMCS1_SUPPORTED_ ## ctrl;		\
+		}								\
+	}									\
+	while (0)
+
+void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf)
+{
+	evmcs_check_vmcs_conf(cpu_based_exec_ctrl, EXEC_CTRL);
+	evmcs_check_vmcs_conf(pin_based_exec_ctrl, PINCTRL);
+	evmcs_check_vmcs_conf(cpu_based_2nd_exec_ctrl, 2NDEXEC);
+	evmcs_check_vmcs_conf(cpu_based_3rd_exec_ctrl, 3RDEXEC);
+	evmcs_check_vmcs_conf(vmentry_ctrl, VMENTRY_CTRL);
+	evmcs_check_vmcs_conf(vmexit_ctrl, VMEXIT_CTRL);
+}
arch/x86/kvm/vmx/vmx_onhyperv.h new file +124 -0

124 lines not on this page · raw message

arch/x86/kvm/vmx/vmx_ops.h +1 -1
index 6a0c6e81f7f3..8060e5fc6dbd 100644
@@ -6,7 +6,7 @@
 
 #include <asm/vmx.h>
 
-#include "hyperv.h"
+#include "vmx_onhyperv.h"
 #include "vmcs.h"
 #include "../x86.h"
 
drivers/bluetooth/btintel.c +3 -0
index 3da3c266a66f..a936219aebb8 100644
@@ -2845,6 +2845,9 @@ static int btintel_setup_combined(struct hci_dev *hdev)
 		btintel_set_dsm_reset_method(hdev, &ver_tlv);
 
 		err = btintel_bootloader_setup_tlv(hdev, &ver_tlv);
+		if (err)
+			goto exit_error;
+
 		btintel_register_devcoredump_support(hdev);
 		break;
 	default:
drivers/cpufreq/qcom-cpufreq-nvmem.c +22 -28

104 lines not on this page · raw message

drivers/dma/fsl-edma-common.c +16 -15
index 793f1a7ad5e3..53fdfd32a7e7 100644
@@ -3,6 +3,7 @@
 // Copyright (c) 2013-2014 Freescale Semiconductor, Inc
 // Copyright (c) 2017 Sysam, Angelo Dureghello  <[email protected]>
 
+#include <linux/clk.h>
 #include <linux/dmapool.h>
 #include <linux/module.h>
 #include <linux/slab.h>
@@ -74,18 +75,10 @@ static void fsl_edma3_enable_request(struct fsl_edma_chan *fsl_chan)
 
 	flags = fsl_edma_drvflags(fsl_chan);
 	val = edma_readl_chreg(fsl_chan, ch_sbr);
-	/* Remote/local swapped wrongly on iMX8 QM Audio edma */
-	if (flags & FSL_EDMA_DRV_QUIRK_SWAPPED) {
-		if (!fsl_chan->is_rxchan)
-			val |= EDMA_V3_CH_SBR_RD;
-		else
-			val |= EDMA_V3_CH_SBR_WR;
-	} else {
-		if (fsl_chan->is_rxchan)
-			val |= EDMA_V3_CH_SBR_RD;
-		else
-			val |= EDMA_V3_CH_SBR_WR;
-	}
+	if (fsl_chan->is_rxchan)
+		val |= EDMA_V3_CH_SBR_RD;
+	else
+		val |= EDMA_V3_CH_SBR_WR;
 
 	if (fsl_chan->is_remote)
 		val &= ~(EDMA_V3_CH_SBR_RD | EDMA_V3_CH_SBR_WR);
@@ -97,8 +90,8 @@ static void fsl_edma3_enable_request(struct fsl_edma_chan *fsl_chan)
 		 * ch_mux: With the exception of 0, attempts to write a value
 		 * already in use will be forced to 0.
 		 */
-		if (!edma_readl_chreg(fsl_chan, ch_mux))
-			edma_writel_chreg(fsl_chan, fsl_chan->srcid, ch_mux);
+		if (!edma_readl(fsl_chan->edma, fsl_chan->mux_addr))
+			edma_writel(fsl_chan->edma, fsl_chan->srcid, fsl_chan->mux_addr);
 	}
 
 	val = edma_readl_chreg(fsl_chan, ch_csr);
@@ -134,7 +127,7 @@ static void fsl_edma3_disable_request(struct fsl_edma_chan *fsl_chan)
 	flags = fsl_edma_drvflags(fsl_chan);
 
 	if (flags & FSL_EDMA_DRV_HAS_CHMUX)
-		edma_writel_chreg(fsl_chan, 0, ch_mux);
+		edma_writel(fsl_chan->edma, 0, fsl_chan->mux_addr);
 
 	val &= ~EDMA_V3_CH_CSR_ERQ;
 	edma_writel_chreg(fsl_chan, val, ch_csr);
@@ -754,6 +747,8 @@ struct dma_async_tx_descriptor *fsl_edma_prep_memcpy(struct dma_chan *chan,
 	fsl_desc->iscyclic = false;
 
 	fsl_chan->is_sw = true;
+	if (fsl_edma_drvflags(fsl_chan) & FSL_EDMA_DRV_MEM_REMOTE)
+		fsl_chan->is_remote = true;
 
 	/* To match with copy_align and max_seg_size so 1 tcd is enough */
 	fsl_edma_fill_tcd(fsl_chan, fsl_desc->tcd[0].vtcd, dma_src, dma_dst,
@@ -802,6 +797,9 @@ int fsl_edma_alloc_chan_resources(struct dma_chan *chan)
 {
 	struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan);
 
+	if (fsl_edma_drvflags(fsl_chan) & FSL_EDMA_DRV_HAS_CHCLK)
+		clk_prepare_enable(fsl_chan->clk);
+
 	fsl_chan->tcd_pool = dma_pool_create("tcd_pool", chan->device->dev,
 				sizeof(struct fsl_edma_hw_tcd),
 				32, 0);
@@ -829,6 +827,9 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan)
 	fsl_chan->tcd_pool = NULL;
 	fsl_chan->is_sw = false;
 	fsl_chan->srcid = 0;
+	fsl_chan->is_remote = false;
+	if (fsl_edma_drvflags(fsl_chan) & FSL_EDMA_DRV_HAS_CHCLK)
+		clk_disable_unprepare(fsl_chan->clk);
 }
 
 void fsl_edma_cleanup_vchan(struct dma_device *dmadev)
drivers/dma/fsl-edma-common.h +4 -2
index 92fe53faa53b..6028389de408 100644
@@ -146,6 +146,7 @@ struct fsl_edma_chan {
 	enum dma_data_direction		dma_dir;
 	char				chan_name[32];
 	struct fsl_edma_hw_tcd __iomem *tcd;
+	void __iomem			*mux_addr;
 	u32				real_count;
 	struct work_struct		issue_worker;
 	struct platform_device		*pdev;
@@ -177,8 +178,7 @@ struct fsl_edma_desc {
 #define FSL_EDMA_DRV_HAS_PD		BIT(5)
 #define FSL_EDMA_DRV_HAS_CHCLK		BIT(6)
 #define FSL_EDMA_DRV_HAS_CHMUX		BIT(7)
-/* imx8 QM audio edma remote local swapped */
-#define FSL_EDMA_DRV_QUIRK_SWAPPED	BIT(8)
+#define FSL_EDMA_DRV_MEM_REMOTE		BIT(8)
 /* control and status register is in tcd address space, edma3 reg layout */
 #define FSL_EDMA_DRV_SPLIT_REG		BIT(9)
 #define FSL_EDMA_DRV_BUS_8BYTE		BIT(10)
@@ -207,6 +207,8 @@ struct fsl_edma_drvdata {
 	u32			chreg_off;
 	u32			chreg_space_sz;
 	u32			flags;
+	u32			mux_off;	/* channel mux register offset */
+	u32			mux_skip;	/* how much skip for each channel */
 	int			(*setup_irq)(struct platform_device *pdev,
 					     struct fsl_edma_engine *fsl_edma);
 };
drivers/dma/fsl-edma-main.c +21 -4
index 42a338cbe614..8a0ae9054899 100644
@@ -340,16 +340,19 @@ static struct fsl_edma_drvdata imx7ulp_data = {
 };
 
 static struct fsl_edma_drvdata imx8qm_data = {
-	.flags = FSL_EDMA_DRV_HAS_PD | FSL_EDMA_DRV_EDMA3,
+	.flags = FSL_EDMA_DRV_HAS_PD | FSL_EDMA_DRV_EDMA3 | FSL_EDMA_DRV_MEM_REMOTE,
 	.chreg_space_sz = 0x10000,
 	.chreg_off = 0x10000,
 	.setup_irq = fsl_edma3_irq_init,
 };
 
-static struct fsl_edma_drvdata imx8qm_audio_data = {
-	.flags = FSL_EDMA_DRV_QUIRK_SWAPPED | FSL_EDMA_DRV_HAS_PD | FSL_EDMA_DRV_EDMA3,
+static struct fsl_edma_drvdata imx8ulp_data = {
+	.flags = FSL_EDMA_DRV_HAS_CHMUX | FSL_EDMA_DRV_HAS_CHCLK | FSL_EDMA_DRV_HAS_DMACLK |
+		 FSL_EDMA_DRV_EDMA3,
 	.chreg_space_sz = 0x10000,
 	.chreg_off = 0x10000,
+	.mux_off = 0x10000 + offsetof(struct fsl_edma3_ch_reg, ch_mux),
+	.mux_skip = 0x10000,
 	.setup_irq = fsl_edma3_irq_init,
 };
 
@@ -364,6 +367,8 @@ static struct fsl_edma_drvdata imx93_data4 = {
 	.flags = FSL_EDMA_DRV_HAS_CHMUX | FSL_EDMA_DRV_HAS_DMACLK | FSL_EDMA_DRV_EDMA4,
 	.chreg_space_sz = 0x8000,
 	.chreg_off = 0x10000,
+	.mux_off = 0x10000 + offsetof(struct fsl_edma3_ch_reg, ch_mux),
+	.mux_skip = 0x8000,
 	.setup_irq = fsl_edma3_irq_init,
 };
 
@@ -372,7 +377,7 @@ static const struct of_device_id fsl_edma_dt_ids[] = {
 	{ .compatible = "fsl,ls1028a-edma", .data = &ls1028a_data},
 	{ .compatible = "fsl,imx7ulp-edma", .data = &imx7ulp_data},
 	{ .compatible = "fsl,imx8qm-edma", .data = &imx8qm_data},
-	{ .compatible = "fsl,imx8qm-adma", .data = &imx8qm_audio_data},
+	{ .compatible = "fsl,imx8ulp-edma", .data = &imx8ulp_data},
 	{ .compatible = "fsl,imx93-edma3", .data = &imx93_data3},
 	{ .compatible = "fsl,imx93-edma4", .data = &imx93_data4},
 	{ /* sentinel */ }
@@ -427,6 +432,7 @@ static int fsl_edma_probe(struct platform_device *pdev)
 	struct fsl_edma_engine *fsl_edma;
 	const struct fsl_edma_drvdata *drvdata = NULL;
 	u32 chan_mask[2] = {0, 0};
+	char clk_name[36];
 	struct edma_regs *regs;
 	int chans;
 	int ret, i;
@@ -540,12 +546,23 @@ static int fsl_edma_probe(struct platform_device *pdev)
 				offsetof(struct fsl_edma3_ch_reg, tcd) : 0;
 		fsl_chan->tcd = fsl_edma->membase
 				+ i * drvdata->chreg_space_sz + drvdata->chreg_off + len;
+		fsl_chan->mux_addr = fsl_edma->membase + drvdata->mux_off + i * drvdata->mux_skip;
 
+		if (drvdata->flags & FSL_EDMA_DRV_HAS_CHCLK) {
+			snprintf(clk_name, sizeof(clk_name), "ch%02d", i);
+			fsl_chan->clk = devm_clk_get_enabled(&pdev->dev,
+							     (const char *)clk_name);
+
+			if (IS_ERR(fsl_chan->clk))
+				return PTR_ERR(fsl_chan->clk);
+		}
 		fsl_chan->pdev = pdev;
 		vchan_init(&fsl_chan->vchan, &fsl_edma->dma_dev);
 
 		edma_write_tcdreg(fsl_chan, 0, csr);
 		fsl_edma_chan_mux(fsl_chan, 0, false);
+		if (fsl_chan->edma->drvdata->flags & FSL_EDMA_DRV_HAS_CHCLK)
+			clk_disable_unprepare(fsl_chan->clk);
 	}
 
 	ret = fsl_edma->drvdata->setup_irq(pdev, fsl_edma);
drivers/firmware/Kconfig +1 -0
index b59e3041fd62..f0e9f250669e 100644
@@ -229,6 +229,7 @@ config QCOM_SCM_DOWNLOAD_MODE_DEFAULT
 config SYSFB
 	bool
 	select BOOT_VESA_SUPPORT
+	select SCREEN_INFO
 
 config SYSFB_SIMPLEFB
 	bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
drivers/firmware/sysfb.c +2 -0
index 3c197db42c9d..defd7a36cb08 100644
@@ -77,6 +77,8 @@ static __init int sysfb_init(void)
 	bool compatible;
 	int ret = 0;
 
+	screen_info_apply_fixups();
+
 	mutex_lock(&disable_lock);
 	if (disabled)
 		goto unlock_mutex;
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +3 -3
index d0255ea98348..247e7d675e2b 100644
@@ -1556,7 +1556,7 @@ static void skl_wrpll_params_populate(struct skl_wrpll_params *params,
 }
 
 static int
-skl_ddi_calculate_wrpll(int clock /* in Hz */,
+skl_ddi_calculate_wrpll(int clock,
 			int ref_clock,
 			struct skl_wrpll_params *wrpll_params)
 {
@@ -1581,7 +1581,7 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */,
 	};
 	unsigned int dco, d, i;
 	unsigned int p0, p1, p2;
-	u64 afe_clock = clock * 5; /* AFE Clock is 5x Pixel clock */
+	u64 afe_clock = (u64)clock * 1000 * 5; /* AFE Clock is 5x Pixel clock, in Hz */
 
 	for (d = 0; d < ARRAY_SIZE(dividers); d++) {
 		for (dco = 0; dco < ARRAY_SIZE(dco_central_freq); dco++) {
@@ -1713,7 +1713,7 @@ static int skl_ddi_hdmi_pll_dividers(struct intel_crtc_state *crtc_state)
 
 	ctrl1 |= DPLL_CTRL1_HDMI_MODE(0);
 
-	ret = skl_ddi_calculate_wrpll(crtc_state->port_clock * 1000,
+	ret = skl_ddi_calculate_wrpll(crtc_state->port_clock,
 				      i915->display.dpll.ref_clks.nssc, &wrpll_params);
 	if (ret)
 		return ret;
drivers/gpu/drm/i915/display/intel_hdcp_regs.h +1 -1
index 8023c85c7fa0..74059384892a 100644
@@ -249,7 +249,7 @@
 #define HDCP2_STREAM_STATUS(dev_priv, trans, port) \
 					(GRAPHICS_VER(dev_priv) >= 12 ? \
 					 TRANS_HDCP2_STREAM_STATUS(trans) : \
-					 PIPE_HDCP2_STREAM_STATUS(pipe))
+					 PIPE_HDCP2_STREAM_STATUS(port))
 
 #define _PORTA_HDCP2_AUTH_STREAM		0x66F00
 #define _PORTB_HDCP2_AUTH_STREAM		0x66F04
drivers/gpu/drm/i915/i915_perf.c +0 -33
index 3f90403d86cb..0808b54d3c51 100644
@@ -2781,26 +2781,6 @@ oa_configure_all_contexts(struct i915_perf_stream *stream,
 	return 0;
 }
 
-static int
-gen12_configure_all_contexts(struct i915_perf_stream *stream,
-			     const struct i915_oa_config *oa_config,
-			     struct i915_active *active)
-{
-	struct flex regs[] = {
-		{
-			GEN8_R_PWR_CLK_STATE(RENDER_RING_BASE),
-			CTX_R_PWR_CLK_STATE,
-		},
-	};
-
-	if (stream->engine->class != RENDER_CLASS)
-		return 0;
-
-	return oa_configure_all_contexts(stream,
-					 regs, ARRAY_SIZE(regs),
-					 active);
-}
-
 static int
 lrc_configure_all_contexts(struct i915_perf_stream *stream,
 			   const struct i915_oa_config *oa_config,
@@ -2907,7 +2887,6 @@ gen12_enable_metric_set(struct i915_perf_stream *stream,
 {
 	struct drm_i915_private *i915 = stream->perf->i915;
 	struct intel_uncore *uncore = stream->uncore;
-	struct i915_oa_config *oa_config = stream->oa_config;
 	bool periodic = stream->periodic;
 	u32 period_exponent = stream->period_exponent;
 	u32 sqcnt1;
@@ -2951,15 +2930,6 @@ gen12_enable_metric_set(struct i915_perf_stream *stream,
 
 	intel_uncore_rmw(uncore, GEN12_SQCNT1, 0, sqcnt1);
 
-	/*
-	 * Update all contexts prior writing the mux configurations as we need
-	 * to make sure all slices/subslices are ON before writing to NOA
-	 * registers.
-	 */
-	ret = gen12_configure_all_contexts(stream, oa_config, active);
-	if (ret)
-		return ret;
-
 	/*
 	 * For Gen12, performance counters are context
 	 * saved/restored. Only enable it for the context that
@@ -3014,9 +2984,6 @@ static void gen12_disable_metric_set(struct i915_perf_stream *stream)
 				   _MASKED_BIT_DISABLE(GEN12_DISABLE_DOP_GATING));
 	}
 
-	/* Reset all contexts' slices/subslices configurations. */
-	gen12_configure_all_contexts(stream, NULL, NULL);
-
 	/* disable the context save/restore or OAR counters */
 	if (stream->ctx)
 		gen12_configure_oar_context(stream, NULL);
drivers/gpu/drm/nouveau/nouveau_prime.c +2 -1
index 1b2ff0c40fc1..6c599a9f49ee 100644
@@ -64,7 +64,8 @@ struct drm_gem_object *nouveau_gem_prime_import_sg_table(struct drm_device *dev,
 	 * to the caller, instead of a normal nouveau_bo ttm reference. */
 	ret = drm_gem_object_init(dev, &nvbo->bo.base, size);
 	if (ret) {
-		nouveau_bo_ref(NULL, &nvbo);
+		drm_gem_object_release(&nvbo->bo.base);
+		kfree(nvbo);
 		obj = ERR_PTR(-ENOMEM);
 		goto unlock;
 	}
drivers/gpu/drm/virtio/virtgpu_submit.c +1 -1
index 5c514946bbad..d530c058f53e 100644
@@ -48,7 +48,7 @@ struct virtio_gpu_submit {
 static int virtio_gpu_do_fence_wait(struct virtio_gpu_submit *submit,
 				    struct dma_fence *in_fence)
 {
-	u32 context = submit->fence_ctx + submit->ring_idx;
+	u64 context = submit->fence_ctx + submit->ring_idx;
 
 	if (dma_fence_match_context(in_fence, context))
 		return 0;
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +7 -10
index 5efc6a766f64..588d50ababf6 100644
@@ -32,7 +32,6 @@
 #define VMW_FENCE_WRAP (1 << 31)
 
 struct vmw_fence_manager {
-	int num_fence_objects;
 	struct vmw_private *dev_priv;
 	spinlock_t lock;
 	struct list_head fence_list;
@@ -124,13 +123,13 @@ static void vmw_fence_obj_destroy(struct dma_fence *f)
 {
 	struct vmw_fence_obj *fence =
 		container_of(f, struct vmw_fence_obj, base);
-
 	struct vmw_fence_manager *fman = fman_from_fence(fence);
 
-	spin_lock(&fman->lock);
-	list_del_init(&fence->head);
-	--fman->num_fence_objects;
-	spin_unlock(&fman->lock);
+	if (!list_empty(&fence->head)) {
+		spin_lock(&fman->lock);
+		list_del_init(&fence->head);
+		spin_unlock(&fman->lock);
+	}
 	fence->destroy(fence);
 }
 
@@ -257,7 +256,6 @@ static const struct dma_fence_ops vmw_fence_ops = {
 	.release = vmw_fence_obj_destroy,
 };
 
-
 /*
  * Execute signal actions on fences recently signaled.
  * This is done from a workqueue so we don't have to execute
@@ -355,7 +353,6 @@ static int vmw_fence_obj_init(struct vmw_fence_manager *fman,
 		goto out_unlock;
 	}
 	list_add_tail(&fence->head, &fman->fence_list);
-	++fman->num_fence_objects;
 
 out_unlock:
 	spin_unlock(&fman->lock);
@@ -403,7 +400,7 @@ static bool vmw_fence_goal_new_locked(struct vmw_fence_manager *fman,
 				      u32 passed_seqno)
 {
 	u32 goal_seqno;
-	struct vmw_fence_obj *fence;
+	struct vmw_fence_obj *fence, *next_fence;
 
 	if (likely(!fman->seqno_valid))
 		return false;
@@ -413,7 +410,7 @@ static bool vmw_fence_goal_new_locked(struct vmw_fence_manager *fman,
 		return false;
 
 	fman->seqno_valid = false;
-	list_for_each_entry(fence, &fman->fence_list, head) {
+	list_for_each_entry_safe(fence, next_fence, &fman->fence_list, head) {
 		if (!list_empty(&fence->seq_passed_actions)) {
 			fman->seqno_valid = true;
 			vmw_fence_goal_write(fman->dev_priv,
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c +1 -1
index c45b4724e414..e20f64b67b26 100644
@@ -92,7 +92,7 @@ static int vmw_overlay_send_put(struct vmw_private *dev_priv,
 {
 	struct vmw_escape_video_flush *flush;
 	size_t fifo_size;
-	bool have_so = (dev_priv->active_display_unit == vmw_du_screen_object);
+	bool have_so = (dev_priv->active_display_unit != vmw_du_legacy);
 	int i, num_items;
 	SVGAGuestPtr ptr;
 
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +28 -1
index 4ccab07faff0..cb03c589ab22 100644
@@ -868,6 +868,32 @@ vmw_stdu_connector_mode_valid(struct drm_connector *connector,
 	return MODE_OK;
 }
 
+/*
+ * Trigger a modeset if the X,Y position of the Screen Target changes.
+ * This is needed when multi-mon is cycled. The original Screen Target will have
+ * the same mode but its relative X,Y position in the topology will change.
+ */
+static int vmw_stdu_connector_atomic_check(struct drm_connector *conn,
+					   struct drm_atomic_state *state)
+{
+	struct drm_connector_state *conn_state;
+	struct vmw_screen_target_display_unit *du;
+	struct drm_crtc_state *new_crtc_state;
+
+	conn_state = drm_atomic_get_connector_state(state, conn);
+	du = vmw_connector_to_stdu(conn);
+
+	if (!conn_state->crtc)
+		return 0;
+
+	new_crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
+	if (du->base.gui_x != du->base.set_gui_x ||
+	    du->base.gui_y != du->base.set_gui_y)
+		new_crtc_state->mode_changed = true;
+
+	return 0;
+}
+
 static const struct drm_connector_funcs vmw_stdu_connector_funcs = {
 	.dpms = vmw_du_connector_dpms,
 	.detect = vmw_du_connector_detect,
@@ -882,7 +908,8 @@ static const struct drm_connector_funcs vmw_stdu_connector_funcs = {
 static const struct
 drm_connector_helper_funcs vmw_stdu_connector_helper_funcs = {
 	.get_modes = vmw_connector_get_modes,
-	.mode_valid = vmw_stdu_connector_mode_valid
+	.mode_valid = vmw_stdu_connector_mode_valid,
+	.atomic_check = vmw_stdu_connector_atomic_check,
 };
 
 
drivers/hid/amd-sfh-hid/amd_sfh_client.c +11 -7
index bdb578e0899f..4b59687ff5d8 100644
@@ -288,12 +288,22 @@ int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata)
 		mp2_ops->start(privdata, info);
 		cl_data->sensor_sts[i] = amd_sfh_wait_for_response
 						(privdata, cl_data->sensor_idx[i], SENSOR_ENABLED);
+
+		if (cl_data->sensor_sts[i] == SENSOR_ENABLED)
+			cl_data->is_any_sensor_enabled = true;
+	}
+
+	if (!cl_data->is_any_sensor_enabled ||
+	    (mp2_ops->discovery_status && mp2_ops->discovery_status(privdata) == 0)) {
+		dev_warn(dev, "Failed to discover, sensors not enabled is %d\n",
+			 cl_data->is_any_sensor_enabled);
+		rc = -EOPNOTSUPP;
+		goto cleanup;
 	}
 
 	for (i = 0; i < cl_data->num_hid_devices; i++) {
 		cl_data->cur_hid_dev = i;
 		if (cl_data->sensor_sts[i] == SENSOR_ENABLED) {
-			cl_data->is_any_sensor_enabled = true;
 			rc = amdtp_hid_probe(i, cl_data);
 			if (rc)
 				goto cleanup;
@@ -305,12 +315,6 @@ int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata)
 			cl_data->sensor_sts[i]);
 	}
 
-	if (!cl_data->is_any_sensor_enabled ||
-	   (mp2_ops->discovery_status && mp2_ops->discovery_status(privdata) == 0)) {
-		dev_warn(dev, "Failed to discover, sensors not enabled is %d\n", cl_data->is_any_sensor_enabled);
-		rc = -EOPNOTSUPP;
-		goto cleanup;
-	}
 	schedule_delayed_work(&cl_data->work_buffer, msecs_to_jiffies(AMD_SFH_IDLE_LOOP));
 	return 0;
 
drivers/hid/wacom_wac.c +1 -2
index 002cbaa16bd1..d2fe14ce423e 100644
@@ -714,13 +714,12 @@ static int wacom_intuos_get_tool_type(int tool_id)
 	case 0x8e2: /* IntuosHT2 pen */
 	case 0x022:
 	case 0x200: /* Pro Pen 3 */
-	case 0x04200: /* Pro Pen 3 */
 	case 0x10842: /* MobileStudio Pro Pro Pen slim */
 	case 0x14802: /* Intuos4/5 13HD/24HD Classic Pen */
 	case 0x16802: /* Cintiq 13HD Pro Pen */
 	case 0x18802: /* DTH2242 Pen */
 	case 0x10802: /* Intuos4/5 13HD/24HD General Pen */
-	case 0x80842: /* Intuos Pro and Cintiq Pro 3D Pen */
+	case 0x8842: /* Intuos Pro and Cintiq Pro 3D Pen */
 		tool_type = BTN_TOOL_PEN;
 		break;
 
drivers/leds/led-triggers.c +17 -15
index 4f5829b726a7..72fd2fe8f6fe 100644
@@ -194,11 +194,24 @@ int led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trig)
 		spin_unlock(&trig->leddev_list_lock);
 		led_cdev->trigger = trig;
 
+		/*
+		 * Some activate() calls use led_trigger_event() to initialize
+		 * the brightness of the LED for which the trigger is being set.
+		 * Ensure the led_cdev is visible on trig->led_cdevs for this.
+		 */
+		synchronize_rcu();
+
+		/*
+		 * If "set brightness to 0" is pending in workqueue,
+		 * we don't want that to be reordered after ->activate()
+		 */
+		flush_work(&led_cdev->set_brightness_work);
+
+		ret = 0;
 		if (trig->activate)
 			ret = trig->activate(led_cdev);
 		else
-			ret = 0;
-
+			led_set_brightness(led_cdev, trig->brightness);
 		if (ret)
 			goto err_activate;
 
@@ -269,19 +282,6 @@ void led_trigger_set_default(struct led_classdev *led_cdev)
 }
 EXPORT_SYMBOL_GPL(led_trigger_set_default);
 
-void led_trigger_rename_static(const char *name, struct led_trigger *trig)
-{
-	/* new name must be on a temporary string to prevent races */
-	BUG_ON(name == trig->name);
-
-	down_write(&triggers_list_lock);
-	/* this assumes that trig->name was originaly allocated to
-	 * non constant storage */
-	strcpy((char *)trig->name, name);
-	up_write(&triggers_list_lock);
-}
-EXPORT_SYMBOL_GPL(led_trigger_rename_static);
-
 /* LED Trigger Interface */
 
 int led_trigger_register(struct led_trigger *trig)
@@ -386,6 +386,8 @@ void led_trigger_event(struct led_trigger *trig,
 	if (!trig)
 		return;
 
+	trig->brightness = brightness;
+
 	rcu_read_lock();
 	list_for_each_entry_rcu(led_cdev, &trig->led_cdevs, trig_list)
 		led_set_brightness(led_cdev, brightness);
drivers/leds/trigger/ledtrig-timer.c +0 -5
index b4688d1d9d2b..1d213c999d40 100644
@@ -110,11 +110,6 @@ static int timer_trig_activate(struct led_classdev *led_cdev)
 		led_cdev->flags &= ~LED_INIT_DEFAULT_TRIGGER;
 	}
 
-	/*
-	 * If "set brightness to 0" is pending in workqueue, we don't
-	 * want that to be reordered after blink_set()
-	 */
-	flush_work(&led_cdev->set_brightness_work);
 	led_blink_set(led_cdev, &led_cdev->blink_delay_on,
 		      &led_cdev->blink_delay_off);
 
drivers/net/ethernet/intel/ice/ice_txrx.c +1 -1
index 24c914015973..49b1fa965116 100644
@@ -456,7 +456,7 @@ void ice_free_rx_ring(struct ice_rx_ring *rx_ring)
 	if (rx_ring->vsi->type == ICE_VSI_PF)
 		if (xdp_rxq_info_is_reg(&rx_ring->xdp_rxq))
 			xdp_rxq_info_unreg(&rx_ring->xdp_rxq);
-	rx_ring->xdp_prog = NULL;
+	WRITE_ONCE(rx_ring->xdp_prog, NULL);
 	if (rx_ring->xsk_pool) {
 		kfree(rx_ring->xdp_buf);
 		rx_ring->xdp_buf = NULL;
drivers/net/ethernet/intel/ice/ice_xsk.c +10 -9
index f53566cb6bfb..67511153081a 100644
@@ -52,10 +52,8 @@ static void ice_qp_reset_stats(struct ice_vsi *vsi, u16 q_idx)
 static void ice_qp_clean_rings(struct ice_vsi *vsi, u16 q_idx)
 {
 	ice_clean_tx_ring(vsi->tx_rings[q_idx]);
-	if (ice_is_xdp_ena_vsi(vsi)) {
-		synchronize_rcu();
+	if (ice_is_xdp_ena_vsi(vsi))
 		ice_clean_tx_ring(vsi->xdp_rings[q_idx]);
-	}
 	ice_clean_rx_ring(vsi->rx_rings[q_idx]);
 }
 
@@ -180,11 +178,12 @@ static int ice_qp_dis(struct ice_vsi *vsi, u16 q_idx)
 		usleep_range(1000, 2000);
 	}
 
+	synchronize_net();
+	netif_tx_stop_queue(netdev_get_tx_queue(vsi->netdev, q_idx));
+
 	ice_qvec_dis_irq(vsi, rx_ring, q_vector);
 	ice_qvec_toggle_napi(vsi, q_vector, false);
 
-	netif_tx_stop_queue(netdev_get_tx_queue(vsi->netdev, q_idx));
-
 	ice_fill_txq_meta(vsi, tx_ring, &txq_meta);
 	err = ice_vsi_stop_tx_ring(vsi, ICE_NO_RESET, 0, tx_ring, &txq_meta);
 	if (err)
@@ -199,10 +198,8 @@ static int ice_qp_dis(struct ice_vsi *vsi, u16 q_idx)
 		if (err)
 			return err;
 	}
-	err = ice_vsi_ctrl_one_rx_ring(vsi, false, q_idx, true);
-	if (err)
-		return err;
 
+	ice_vsi_ctrl_one_rx_ring(vsi, false, q_idx, false);
 	ice_qp_clean_rings(vsi, q_idx);
 	ice_qp_reset_stats(vsi, q_idx);
 
@@ -1068,6 +1065,10 @@ bool ice_xmit_zc(struct ice_tx_ring *xdp_ring)
 
 	ice_clean_xdp_irq_zc(xdp_ring);
 
+	if (!netif_carrier_ok(xdp_ring->vsi->netdev) ||
+	    !netif_running(xdp_ring->vsi->netdev))
+		return true;
+
 	budget = ICE_DESC_UNUSED(xdp_ring);
 	budget = min_t(u16, budget, ICE_RING_QUARTER(xdp_ring));
 
@@ -1111,7 +1112,7 @@ ice_xsk_wakeup(struct net_device *netdev, u32 queue_id,
 	struct ice_vsi *vsi = np->vsi;
 	struct ice_tx_ring *ring;
 
-	if (test_bit(ICE_VSI_DOWN, vsi->state))
+	if (test_bit(ICE_VSI_DOWN, vsi->state) || !netif_carrier_ok(netdev))
 		return -ENETDOWN;
 
 	if (!ice_is_xdp_ena_vsi(vsi))
drivers/net/ethernet/intel/igc/igc_main.c +17 -16
index e83700ad7e62..d80bbcdeb93e 100644
@@ -6208,21 +6208,6 @@ static int igc_save_qbv_schedule(struct igc_adapter *adapter,
 	size_t n;
 	int i;
 
-	switch (qopt->cmd) {
-	case TAPRIO_CMD_REPLACE:
-		break;
-	case TAPRIO_CMD_DESTROY:
-		return igc_tsn_clear_schedule(adapter);
-	case TAPRIO_CMD_STATS:
-		igc_taprio_stats(adapter->netdev, &qopt->stats);
-		return 0;
-	case TAPRIO_CMD_QUEUE_STATS:
-		igc_taprio_queue_stats(adapter->netdev, &qopt->queue_stats);
-		return 0;
-	default:
-		return -EOPNOTSUPP;
-	}
-
 	if (qopt->base_time < 0)
 		return -ERANGE;
 
@@ -6331,7 +6316,23 @@ static int igc_tsn_enable_qbv_scheduling(struct igc_adapter *adapter,
 	if (hw->mac.type != igc_i225)
 		return -EOPNOTSUPP;
 
-	err = igc_save_qbv_schedule(adapter, qopt);
+	switch (qopt->cmd) {
+	case TAPRIO_CMD_REPLACE:
+		err = igc_save_qbv_schedule(adapter, qopt);
+		break;
+	case TAPRIO_CMD_DESTROY:
+		err = igc_tsn_clear_schedule(adapter);
+		break;
+	case TAPRIO_CMD_STATS:
+		igc_taprio_stats(adapter->netdev, &qopt->stats);
+		return 0;
+	case TAPRIO_CMD_QUEUE_STATS:
+		igc_taprio_queue_stats(adapter->netdev, &qopt->queue_stats);
+		return 0;
+	default:
+		return -EOPNOTSUPP;
+	}
+
 	if (err)
 		return err;
 
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +3 -3
index 05f4aa11b95c..34051c9abd97 100644
@@ -953,13 +953,13 @@ static void mvpp2_bm_pool_update_fc(struct mvpp2_port *port,
 static void mvpp2_bm_pool_update_priv_fc(struct mvpp2 *priv, bool en)
 {
 	struct mvpp2_port *port;
-	int i;
+	int i, j;
 
 	for (i = 0; i < priv->port_count; i++) {
 		port = priv->port_list[i];
 		if (port->priv->percpu_pools) {
-			for (i = 0; i < port->nrxqs; i++)
-				mvpp2_bm_pool_update_fc(port, &port->priv->bm_pools[i],
+			for (j = 0; j < port->nrxqs; j++)
+				mvpp2_bm_pool_update_fc(port, &port->priv->bm_pools[j],
 							port->tx_fc & en);
 		} else {
 			mvpp2_bm_pool_update_fc(port, port->pool_long, port->tx_fc & en);
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c +1 -0
index fadfa8b50beb..8c4e3ecef590 100644
@@ -920,6 +920,7 @@ mlx5_tc_ct_entry_replace_rule(struct mlx5_tc_ct_priv *ct_priv,
 	mlx5_tc_ct_entry_destroy_mod_hdr(ct_priv, zone_rule->attr, mh);
 	mlx5_put_label_mapping(ct_priv, attr->ct_attr.ct_labels_id);
 err_mod_hdr:
+	*attr = *old_attr;
 	kfree(old_attr);
 err_attr:
 	kvfree(spec);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c +4 -3
index ce29e3172120..de83567aae79 100644
@@ -50,9 +50,10 @@ u32 mlx5_ipsec_device_caps(struct mlx5_core_dev *mdev)
 		    MLX5_CAP_FLOWTABLE_NIC_RX(mdev, decap))
 			caps |= MLX5_IPSEC_CAP_PACKET_OFFLOAD;
 
-		if ((MLX5_CAP_FLOWTABLE_NIC_TX(mdev, ignore_flow_level) &&
-		     MLX5_CAP_FLOWTABLE_NIC_RX(mdev, ignore_flow_level)) ||
-		    MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, ignore_flow_level))
+		if (IS_ENABLED(CONFIG_MLX5_CLS_ACT) &&
+		    ((MLX5_CAP_FLOWTABLE_NIC_TX(mdev, ignore_flow_level) &&
+		      MLX5_CAP_FLOWTABLE_NIC_RX(mdev, ignore_flow_level)) ||
+		     MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, ignore_flow_level)))
 			caps |= MLX5_IPSEC_CAP_PRIO;
 
 		if (MLX5_CAP_FLOWTABLE_NIC_TX(mdev,
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +6 -1
index 38263d5c98b3..50db127e6371 100644
@@ -1223,7 +1223,12 @@ int mlx5e_ethtool_set_link_ksettings(struct mlx5e_priv *priv,
 	if (!an_changes && link_modes == eproto.admin)
 		goto out;
 
-	mlx5_port_set_eth_ptys(mdev, an_disable, link_modes, ext);
+	err = mlx5_port_set_eth_ptys(mdev, an_disable, link_modes, ext);
+	if (err) {
+		netdev_err(priv->netdev, "%s: failed to set ptys reg: %d\n", __func__, err);
+		goto out;
+	}
+
 	mlx5_toggle_port_link(mdev);
 
 out:
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c +4 -1
index 3a9cdf79403a..6b17346aa4ce 100644
@@ -206,6 +206,7 @@ int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev)
 static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev, bool unloaded)
 {
 	struct mlx5_fw_reset *fw_reset = dev->priv.fw_reset;
+	struct devlink *devlink = priv_to_devlink(dev);
 
 	/* if this is the driver that initiated the fw reset, devlink completed the reload */
 	if (test_bit(MLX5_FW_RESET_FLAGS_PENDING_COMP, &fw_reset->reset_flags)) {
@@ -217,9 +218,11 @@ static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev, bool unload
 			mlx5_core_err(dev, "reset reload flow aborted, PCI reads still not working\n");
 		else
 			mlx5_load_one(dev, true);
-		devlink_remote_reload_actions_performed(priv_to_devlink(dev), 0,
+		devl_lock(devlink);
+		devlink_remote_reload_actions_performed(devlink, 0,
 							BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT) |
 							BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE));
+		devl_unlock(devlink);
 	}
 }
 
drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c +7 -3
index 612e666ec263..e2230c8f1815 100644
@@ -48,6 +48,7 @@ static struct mlx5_irq *
 irq_pool_request_irq(struct mlx5_irq_pool *pool, struct irq_affinity_desc *af_desc)
 {
 	struct irq_affinity_desc auto_desc = {};
+	struct mlx5_irq *irq;
 	u32 irq_index;
 	int err;
 
@@ -64,9 +65,12 @@ irq_pool_request_irq(struct mlx5_irq_pool *pool, struct irq_affinity_desc *af_de
 		else
 			cpu_get(pool, cpumask_first(&af_desc->mask));
 	}
-	return mlx5_irq_alloc(pool, irq_index,
-			      cpumask_empty(&auto_desc.mask) ? af_desc : &auto_desc,
-			      NULL);
+	irq = mlx5_irq_alloc(pool, irq_index,
+			     cpumask_empty(&auto_desc.mask) ? af_desc : &auto_desc,
+			     NULL);
+	if (IS_ERR(irq))
+		xa_erase(&pool->irqs, irq_index);
+	return irq;
 }
 
 /* Looking for the IRQ with the smallest refcount that fits req_mask.
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c +1 -1
index dfc2ba6f780a..18cf756bad8c 100644
@@ -1512,7 +1512,7 @@ u8 mlx5_lag_get_slave_port(struct mlx5_core_dev *dev,
 		goto unlock;
 
 	for (i = 0; i < ldev->ports; i++) {
-		if (ldev->pf[MLX5_LAG_P1].netdev == slave) {
+		if (ldev->pf[i].netdev == slave) {
 			port = i;
 			break;
 		}
drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -1
index 2237b3d01e0e..11f11248feb8 100644
@@ -2130,7 +2130,6 @@ static int mlx5_try_fast_unload(struct mlx5_core_dev *dev)
 	/* Panic tear down fw command will stop the PCI bus communication
 	 * with the HCA, so the health poll is no longer needed.
 	 */
-	mlx5_drain_health_wq(dev);
 	mlx5_stop_health_poll(dev, false);
 
 	ret = mlx5_cmd_fast_teardown_hca(dev);
@@ -2165,6 +2164,7 @@ static void shutdown(struct pci_dev *pdev)
 
 	mlx5_core_info(dev, "Shutdown was called\n");
 	set_bit(MLX5_BREAK_FW_WAIT, &dev->intf_state);
+	mlx5_drain_health_wq(dev);
 	err = mlx5_try_fast_unload(dev);
 	if (err)
 		mlx5_unload_one(dev, false);
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c +1 -0
index 30218f37d528..2028acbe85ca 100644
@@ -90,6 +90,7 @@ static void mlx5_sf_dev_shutdown(struct auxiliary_device *adev)
 	struct mlx5_core_dev *mdev = sf_dev->mdev;
 
 	set_bit(MLX5_BREAK_FW_WAIT, &mdev->intf_state);
+	mlx5_drain_health_wq(mdev);
 	mlx5_unload_one(mdev, false);
 }
 
drivers/net/ethernet/realtek/r8169_main.c +2 -6
index d759f3373b17..8a732edac15a 100644
@@ -4256,7 +4256,8 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
 	if (unlikely(!rtl_tx_slots_avail(tp))) {
 		if (net_ratelimit())
 			netdev_err(dev, "BUG! Tx Ring full when queue awake!\n");
-		goto err_stop_0;
+		netif_stop_queue(dev);
+		return NETDEV_TX_BUSY;
 	}
 
 	opts[1] = rtl8169_tx_vlan_tag(skb);
@@ -4312,11 +4313,6 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
 	dev_kfree_skb_any(skb);
 	dev->stats.tx_dropped++;
 	return NETDEV_TX_OK;
-
-err_stop_0:
-	netif_stop_queue(dev);
-	dev->stats.tx_dropped++;
-	return NETDEV_TX_BUSY;
 }
 
 static unsigned int rtl_last_frag_len(struct sk_buff *skb)
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -1
index 3297aff969c8..11e08cb8d3c3 100644
@@ -1826,9 +1826,9 @@ static void axienet_dma_err_handler(struct work_struct *work)
 			   ~(XAE_OPTION_TXEN | XAE_OPTION_RXEN));
 	axienet_set_mac_address(ndev, NULL);
 	axienet_set_multicast_list(ndev);
-	axienet_setoptions(ndev, lp->options);
 	napi_enable(&lp->napi_rx);
 	napi_enable(&lp->napi_tx);
+	axienet_setoptions(ndev, lp->options);
 }
 
 /**
drivers/net/phy/micrel.c +19 -15
index 029c82f88ee3..9a0432145645 100644
@@ -1293,6 +1293,8 @@ static int ksz9131_config_init(struct phy_device *phydev)
 	const struct device *dev_walker;
 	int ret;
 
+	phydev->mdix_ctrl = ETH_TP_MDI_AUTO;
+
 	dev_walker = &phydev->mdio.dev;
 	do {
 		of_node = dev_walker->of_node;
@@ -1342,28 +1344,30 @@ static int ksz9131_config_init(struct phy_device *phydev)
 #define MII_KSZ9131_AUTO_MDIX		0x1C
 #define MII_KSZ9131_AUTO_MDI_SET	BIT(7)
 #define MII_KSZ9131_AUTO_MDIX_SWAP_OFF	BIT(6)
+#define MII_KSZ9131_DIG_AXAN_STS	0x14
+#define MII_KSZ9131_DIG_AXAN_STS_LINK_DET	BIT(14)
+#define MII_KSZ9131_DIG_AXAN_STS_A_SELECT	BIT(12)
 
 static int ksz9131_mdix_update(struct phy_device *phydev)
 {
 	int ret;
 
-	ret = phy_read(phydev, MII_KSZ9131_AUTO_MDIX);
-	if (ret < 0)
-		return ret;
-
-	if (ret & MII_KSZ9131_AUTO_MDIX_SWAP_OFF) {
-		if (ret & MII_KSZ9131_AUTO_MDI_SET)
-			phydev->mdix_ctrl = ETH_TP_MDI;
-		else
-			phydev->mdix_ctrl = ETH_TP_MDI_X;
+	if (phydev->mdix_ctrl != ETH_TP_MDI_AUTO) {
+		phydev->mdix = phydev->mdix_ctrl;
 	} else {
-		phydev->mdix_ctrl = ETH_TP_MDI_AUTO;
-	}
+		ret = phy_read(phydev, MII_KSZ9131_DIG_AXAN_STS);
+		if (ret < 0)
+			return ret;
 
-	if (ret & MII_KSZ9131_AUTO_MDI_SET)
-		phydev->mdix = ETH_TP_MDI;
-	else
-		phydev->mdix = ETH_TP_MDI_X;
+		if (ret & MII_KSZ9131_DIG_AXAN_STS_LINK_DET) {
+			if (ret & MII_KSZ9131_DIG_AXAN_STS_A_SELECT)
+				phydev->mdix = ETH_TP_MDI;
+			else
+				phydev->mdix = ETH_TP_MDI_X;
+		} else {
+			phydev->mdix = ETH_TP_MDI_INVALID;
+		}
+	}
 
 	return 0;
 }
drivers/net/phy/realtek.c +7 -0
index 337899c69738..2604d9663a5b 100644
@@ -1083,6 +1083,13 @@ static struct phy_driver realtek_drvs[] = {
 		.handle_interrupt = genphy_handle_interrupt_no_ack,
 		.suspend	= genphy_suspend,
 		.resume		= genphy_resume,
+	}, {
+		PHY_ID_MATCH_EXACT(0x001cc960),
+		.name		= "RTL8366S Gigabit Ethernet",
+		.suspend	= genphy_suspend,
+		.resume		= genphy_resume,
+		.read_mmd	= genphy_read_mmd_unsupported,
+		.write_mmd	= genphy_write_mmd_unsupported,
 	},
 };
 
drivers/net/usb/sr9700.c +9 -2
index 0a662e42ed96..cb7d2f798fb4 100644
@@ -179,6 +179,7 @@ static int sr_mdio_read(struct net_device *netdev, int phy_id, int loc)
 	struct usbnet *dev = netdev_priv(netdev);
 	__le16 res;
 	int rc = 0;
+	int err;
 
 	if (phy_id) {
 		netdev_dbg(netdev, "Only internal phy supported\n");
@@ -189,11 +190,17 @@ static int sr_mdio_read(struct net_device *netdev, int phy_id, int loc)
 	if (loc == MII_BMSR) {
 		u8 value;
 
-		sr_read_reg(dev, SR_NSR, &value);
+		err = sr_read_reg(dev, SR_NSR, &value);
+		if (err < 0)
+			return err;
+
 		if (value & NSR_LINKST)
 			rc = 1;
 	}
-	sr_share_read_word(dev, 1, loc, &res);
+	err = sr_share_read_word(dev, 1, loc, &res);
+	if (err < 0)
+		return err;
+
 	if (rc == 1)
 		res = le16_to_cpu(res) | BMSR_LSTATUS;
 	else
drivers/pci/search.c +31 -0
index b4c138a6ec02..53840634fbfc 100644
@@ -363,6 +363,37 @@ struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from)
 }
 EXPORT_SYMBOL(pci_get_class);
 
+/**
+ * pci_get_base_class - searching for a PCI device by matching against the base class code only
+ * @class: search for a PCI device with this base class code
+ * @from: Previous PCI device found in search, or %NULL for new search.
+ *
+ * Iterates through the list of known PCI devices. If a PCI device is found
+ * with a matching base class code, the reference count to the device is
+ * incremented. See pci_match_one_device() to figure out how does this works.
+ * A new search is initiated by passing %NULL as the @from argument.
+ * Otherwise if @from is not %NULL, searches continue from next device on the
+ * global list. The reference count for @from is always decremented if it is
+ * not %NULL.
+ *
+ * Returns:
+ * A pointer to a matched PCI device, %NULL Otherwise.
+ */
+struct pci_dev *pci_get_base_class(unsigned int class, struct pci_dev *from)
+{
+	struct pci_device_id id = {
+		.vendor = PCI_ANY_ID,
+		.device = PCI_ANY_ID,
+		.subvendor = PCI_ANY_ID,
+		.subdevice = PCI_ANY_ID,
+		.class_mask = 0xFF0000,
+		.class = class << 16,
+	};
+
+	return pci_get_dev_by_id(&id, from);
+}
+EXPORT_SYMBOL(pci_get_base_class);
+
 /**
  * pci_dev_present - Returns 1 if device matching the device list is present, 0 if not.
  * @ids: A pointer to a null terminated list of struct pci_device_id structures
drivers/perf/fsl_imx9_ddr_perf.c +3 -3
index 5cf770a1bc31..4f6eade52202 100644
@@ -476,12 +476,12 @@ static int ddr_perf_event_add(struct perf_event *event, int flags)
 	hwc->idx = counter;
 	hwc->state |= PERF_HES_STOPPED;
 
-	if (flags & PERF_EF_START)
-		ddr_perf_event_start(event, flags);
-
 	/* read trans, write trans, read beat */
 	ddr_perf_monitor_config(pmu, cfg, cfg1, cfg2);
 
+	if (flags & PERF_EF_START)
+		ddr_perf_event_start(event, flags);
+
 	return 0;
 }
 
drivers/perf/riscv_pmu_sbi.c +1 -1
index ae16ecb15f2d..901da688ea3f 100644
@@ -355,7 +355,7 @@ static int pmu_sbi_ctr_get_idx(struct perf_event *event)
 	 * but not in the user access mode as we want to use the other counters
 	 * that support sampling/filtering.
 	 */
-	if (hwc->flags & PERF_EVENT_FLAG_LEGACY) {
+	if ((hwc->flags & PERF_EVENT_FLAG_LEGACY) && (event->attr.type == PERF_TYPE_HARDWARE)) {
 		if (event->attr.config == PERF_COUNT_HW_CPU_CYCLES) {
 			cflags |= SBI_PMU_CFG_FLAG_SKIP_MATCH;
 			cmask = 1;
drivers/platform/chrome/cros_ec_proto.c +2 -0
index 475a6dd72db6..809fabef3b44 100644
@@ -805,9 +805,11 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev,
 	if (ret == -ENOPROTOOPT) {
 		dev_dbg(ec_dev->dev,
 			"GET_NEXT_EVENT returned invalid version error.\n");
+		mutex_lock(&ec_dev->lock);
 		ret = cros_ec_get_host_command_version_mask(ec_dev,
 							EC_CMD_GET_NEXT_EVENT,
 							&ver_mask);
+		mutex_unlock(&ec_dev->lock);
 		if (ret < 0 || ver_mask == 0)
 			/*
 			 * Do not change the MKBP supported version if we can't
drivers/thermal/broadcom/bcm2835_thermal.c +6 -19
index 3acc9288b310..3b1030fc4fbf 100644
@@ -185,7 +185,7 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
 		return err;
 	}
 
-	data->clk = devm_clk_get(&pdev->dev, NULL);
+	data->clk = devm_clk_get_enabled(&pdev->dev, NULL);
 	if (IS_ERR(data->clk)) {
 		err = PTR_ERR(data->clk);
 		if (err != -EPROBE_DEFER)
@@ -193,10 +193,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
 		return err;
 	}
 
-	err = clk_prepare_enable(data->clk);
-	if (err)
-		return err;
-
 	rate = clk_get_rate(data->clk);
 	if ((rate < 1920000) || (rate > 5000000))
 		dev_warn(&pdev->dev,
@@ -211,7 +207,7 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
 		dev_err(&pdev->dev,
 			"Failed to register the thermal device: %d\n",
 			err);
-		goto err_clk;
+		return err;
 	}
 
 	/*
@@ -236,7 +232,7 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
 			dev_err(&pdev->dev,
 				"Not able to read trip_temp: %d\n",
 				err);
-			goto err_tz;
+			return err;
 		}
 
 		/* set bandgap reference voltage and enable voltage regulator */
@@ -269,32 +265,23 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
 	 */
 	err = thermal_add_hwmon_sysfs(tz);
 	if (err)
-		goto err_tz;
+		return err;
 
 	bcm2835_thermal_debugfs(pdev);
 
 	return 0;
-err_tz:
-	devm_thermal_of_zone_unregister(&pdev->dev, tz);
-err_clk:
-	clk_disable_unprepare(data->clk);
-
-	return err;
 }
 
-static int bcm2835_thermal_remove(struct platform_device *pdev)
+static void bcm2835_thermal_remove(struct platform_device *pdev)
 {
 	struct bcm2835_thermal_data *data = platform_get_drvdata(pdev);
 
 	debugfs_remove_recursive(data->debugfsdir);
-	clk_disable_unprepare(data->clk);
-
-	return 0;
 }
 
 static struct platform_driver bcm2835_thermal_driver = {
 	.probe = bcm2835_thermal_probe,
-	.remove = bcm2835_thermal_remove,
+	.remove_new = bcm2835_thermal_remove,
 	.driver = {
 		.name = "bcm2835_thermal",
 		.of_match_table = bcm2835_thermal_of_match_table,
drivers/video/Kconfig +4 -0
index b694d7669d32..1eb755a94940 100644
@@ -11,6 +11,10 @@ config APERTURE_HELPERS
 	  Support tracking and hand-over of aperture ownership. Required
 	  by graphics drivers for firmware-provided framebuffers.
 
+config SCREEN_INFO
+	bool
+	default n
+
 config STI_CORE
 	bool
 	depends on PARISC
drivers/video/Makefile +4 -0
index 6bbc03950899..6bbf87c1b579 100644
@@ -1,12 +1,16 @@
 # SPDX-License-Identifier: GPL-2.0
 
 obj-$(CONFIG_APERTURE_HELPERS)    += aperture.o
+obj-$(CONFIG_SCREEN_INFO)         += screen_info.o
 obj-$(CONFIG_STI_CORE)            += sticore.o
 obj-$(CONFIG_VGASTATE)            += vgastate.o
 obj-$(CONFIG_VIDEO_CMDLINE)       += cmdline.o
 obj-$(CONFIG_VIDEO_NOMODESET)     += nomodeset.o
 obj-$(CONFIG_HDMI)                += hdmi.o
 
+screen_info-y			  := screen_info_generic.o
+screen_info-$(CONFIG_PCI)         += screen_info_pci.o
+
 obj-$(CONFIG_VT)		  += console/
 obj-$(CONFIG_FB_STI)		  += console/
 obj-$(CONFIG_LOGO)		  += logo/
drivers/video/fbdev/vesafb.c +35 -31

123 lines not on this page · raw message

drivers/video/screen_info_generic.c new file +146 -0

103 lines not on this page · raw message

drivers/video/screen_info_pci.c new file +136 -0

136 lines not on this page · raw message

fs/btrfs/block-group.c +8 -5
index dd065349fae3..4e999e1c1407 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/extent-tree.c +2 -1
index b89b558b1592..c6ecfd05e1db 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/free-space-cache.c +3 -1
index dcfc0425115e..f59e59976666 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/space-info.c +2 -3
index 3f7a9605e2d3..581bdd709ee0 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/space-info.h +1 -0
index 0bb9d14e60a8..08a3bd10addc 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inode.c +59 -39

98 lines not on this page · raw message

fs/f2fs/segment.c +3 -1
index 22080606b876..804958c6de34 100644

Lines of this file are not shown. View the raw message.

fs/file.c +1 -0
index a815f6eddc51..b64a84137c00 100644

Lines of this file are not shown. View the raw message.

fs/proc/proc_sysctl.c +3 -5
index 5b5cdc747cef..071a71eb1a2d 100644

Lines of this file are not shown. View the raw message.

include/linux/leds.h +14 -16
index aa16dc2a8230..d3056bc6f0a1 100644

Lines of this file are not shown. View the raw message.

include/linux/pci.h +5 -0
index f14130011621..7b18a4b3efb0 100644

Lines of this file are not shown. View the raw message.

include/linux/screen_info.h +136 -0

136 lines not on this page · raw message

include/linux/sysctl.h +0 -1
index 61b40ea81f4d..698a71422a14 100644

Lines of this file are not shown. View the raw message.

include/trace/events/btrfs.h +8 -0
index b2db2c2f1c57..3c4d5ef6d446 100644

Lines of this file are not shown. View the raw message.

include/trace/events/mptcp.h +1 -1
index 563e48617374..54e8fb5a229c 100644

Lines of this file are not shown. View the raw message.

init/Kconfig +1 -0
index e403a2925635..e173364abd6c 100644

Lines of this file are not shown. View the raw message.

ipc/ipc_sysctl.c +34 -2
index 8c62e443f78b..b2f39a86f473 100644

Lines of this file are not shown. View the raw message.

ipc/mq_sysctl.c +35 -0
index ebb5ed81c151..6bb1c5397c69 100644

Lines of this file are not shown. View the raw message.

mm/Kconfig +11 -0
index 264a2df5ecf5..ece4f2847e2b 100644

Lines of this file are not shown. View the raw message.

mm/page_alloc.c +13 -6
index e99d3223f0fc..39bdbfb5313f 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_sync.c +21 -0
index b3f5714dab34..6dab0c99c82c 100644

Lines of this file are not shown. View the raw message.

net/core/rtnetlink.c +1 -1
index 7ea66de1442c..8573dad6d817 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/iptable_nat.c +10 -8
index 56f6ecc43451..12ca666d6e2c 100644

Lines of this file are not shown. View the raw message.

net/ipv4/syncookies.c +2 -1
index 3b4dafefb4b0..e14356207795 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp.c +4 -4
index 91c3d8264059..1e3202f2b7a8 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_input.c +24 -12
index c2e4dac42453..d0364cff65c9 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_output.c +10 -8
index 5631041ae12c..15c49d559db5 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ndisc.c +18 -16
index 68debc78189c..2062ab94721e 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6table_nat.c +9 -5
index bf3cb3a13600..52d597b16b65 100644

Lines of this file are not shown. View the raw message.

net/ipv6/syncookies.c +1 -1
index 8698b49dfc8d..593ead8a45d7 100644

Lines of this file are not shown. View the raw message.

net/iucv/af_iucv.c +2 -2
index 498a0c35b7bb..815b1df0b2d1 100644

Lines of this file are not shown. View the raw message.

net/mptcp/mib.c +2 -0
index c30405e76833..7884217f33eb 100644

Lines of this file are not shown. View the raw message.

net/mptcp/mib.h +2 -0
index dd7fd1f246b5..443604462ace 100644

Lines of this file are not shown. View the raw message.

net/mptcp/options.c +1 -1
index 63fc0758c22d..85aafa94cc8a 100644

Lines of this file are not shown. View the raw message.

net/mptcp/pm_netlink.c +19 -9
index f58bf77d76b8..db621933b203 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.c +22 -22

44 lines not on this page · raw message

net/mptcp/protocol.h +21 -0
index 93ba48f4ae38..c28ac5dfd0b5 100644

Lines of this file are not shown. View the raw message.

net/mptcp/sockopt.c +46 -0

46 lines not on this page · raw message

net/mptcp/subflow.c +29 -6
index 23ee96c6abcb..bc1efc178772 100644

Lines of this file are not shown. View the raw message.

net/sched/act_ct.c +3 -1
index 3ac19516ed80..50d24e240e8f 100644

Lines of this file are not shown. View the raw message.

net/sysctl_net.c +0 -1
index 051ed5f6fc93..a0a7a79991f9 100644

Lines of this file are not shown. View the raw message.

net/wireless/sme.c +1 -0
index 9bba233b5a6e..72d78dbc55ff 100644

Lines of this file are not shown. View the raw message.

sound/core/seq/seq_ump_convert.c +23 -14
index e90b27a135e6..d9dacfbe4a9a 100644

Lines of this file are not shown. View the raw message.

sound/firewire/amdtp-stream.c +24 -14
index c9f153f85ae6..5f0f8d9c08d1 100644

Lines of this file are not shown. View the raw message.

sound/firewire/amdtp-stream.h +1 -0
index a1ed2e80f91a..775db3fc4959 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_controller.h +1 -1
index 8556031bcd68..f31cb31d4636 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_intel.c +9 -1
index a6a9d353fe63..d5c9f113e477 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_conexant.c +9 -45

54 lines not on this page · raw message

sound/pci/hda/patch_realtek.c +1 -0
index f3aca1c38b77..0b33a0077145 100644

Lines of this file are not shown. View the raw message.

sound/usb/stream.c +2 -2
index d5409f387945..e14c725acebf 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/callchain.c +1 -1
index aee937d14fbb..09e6b4e1401c 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/mptcp/mptcp_connect.c +4 -4
index d2043ec3bf6d..4209b9569039 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/mptcp/mptcp_join.sh +58 -14

72 lines not on this page · 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.