Skip to contentSkip to conversation

Linux 6.4.12

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 23, 2023 Stable branch

lore
Share & tools
lore
author maintainer
#1 lore raw
In reply to Greg Kroah-Hartman
Documentation/admin-guide/hw-vuln/srso.rst +2 -2
index 2f923c805802..f79cb11b080f 100644
@@ -124,8 +124,8 @@ sequence.
 To ensure the safety of this mitigation, the kernel must ensure that the
 safe return sequence is itself free from attacker interference.  In Zen3
 and Zen4, this is accomplished by creating a BTB alias between the
-untraining function srso_untrain_ret_alias() and the safe return
-function srso_safe_ret_alias() which results in evicting a potentially
+untraining function srso_alias_untrain_ret() and the safe return
+function srso_alias_safe_ret() which results in evicting a potentially
 poisoned BTB entry and using that safe one for all function returns.
 
 In older Zen1 and Zen2, this is accomplished using a reinterpretation
Documentation/admin-guide/kernel-parameters.txt +1 -0
index a8fc0eb6fb1d..732391193182 100644
@@ -323,6 +323,7 @@
 				       option with care.
 			pgtbl_v1     - Use v1 page table for DMA-API (Default).
 			pgtbl_v2     - Use v2 page table for DMA-API.
+			irtcachedis  - Disable Interrupt Remapping Table (IRT) caching.
 
 	amd_iommu_dump=	[HW,X86-64]
 			Enable AMD IOMMU driver option to dump the ACPI table
Documentation/devicetree/bindings/input/goodix,gt7375p.yaml +9 -0
index ce18d7dadae2..1edad1da1196 100644
@@ -43,6 +43,15 @@ properties:
       itself as long as it allows the main board to make signals compatible
       with what the touchscreen is expecting for its IO rails.
 
+  goodix,no-reset-during-suspend:
+    description:
+      Set this to true to enforce the driver to not assert the reset GPIO
+      during suspend.
+      Due to potential touchscreen hardware flaw, back-powering could happen in
+      suspend if the power supply is on and with active-low reset GPIO asserted.
+      This property is used to avoid the back-powering issue.
+    type: boolean
+
 required:
   - compatible
   - reg
Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml +1 -1
index e608a4f1bcae..e119a226a4b1 100644
@@ -87,7 +87,7 @@ $defs:
                 emac0_mdc, emac0_mdio, emac0_ptp_aux, emac0_ptp_pps, emac1_mcg0,
                 emac1_mcg1, emac1_mcg2, emac1_mcg3, emac1_mdc, emac1_mdio,
                 emac1_ptp_aux, emac1_ptp_pps, gcc_gp1, gcc_gp2, gcc_gp3,
-                gcc_gp4, gcc_gp5, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c,
+                gcc_gp4, gcc_gp5, gpio, hs0_mi2s, hs1_mi2s, hs2_mi2s, ibi_i3c,
                 jitter_bist, mdp0_vsync0, mdp0_vsync1, mdp0_vsync2, mdp0_vsync3,
                 mdp0_vsync4, mdp0_vsync5, mdp0_vsync6, mdp0_vsync7, mdp0_vsync8,
                 mdp1_vsync0, mdp1_vsync1, mdp1_vsync2, mdp1_vsync3, mdp1_vsync4,
Documentation/networking/nf_conntrack-sysctl.rst +2 -2
index 8b1045c3b59e..c383a394c665 100644
@@ -178,10 +178,10 @@ nf_conntrack_sctp_timeout_established - INTEGER (seconds)
 	Default is set to (hb_interval * path_max_retrans + rto_max)
 
 nf_conntrack_sctp_timeout_shutdown_sent - INTEGER (seconds)
-	default 0.3
+	default 3
 
 nf_conntrack_sctp_timeout_shutdown_recd - INTEGER (seconds)
-	default 0.3
+	default 3
 
 nf_conntrack_sctp_timeout_shutdown_ack_sent - INTEGER (seconds)
 	default 3
Makefile +1 -1
index d0efd84bb7d0..0ff13b943f99 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 4
-SUBLEVEL = 11
+SUBLEVEL = 12
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm/boot/dts/imx23.dtsi +1 -1
index d19508c8f9ed..a3668a0827fc 100644
@@ -59,7 +59,7 @@ icoll: interrupt-controller@80000000 {
 				reg = <0x80000000 0x2000>;
 			};
 
-			dma_apbh: dma-apbh@80004000 {
+			dma_apbh: dma-controller@80004000 {
 				compatible = "fsl,imx23-dma-apbh";
 				reg = <0x80004000 0x2000>;
 				interrupts = <0 14 20 0
arch/arm/boot/dts/imx28.dtsi +1 -1
index a8d3c3113e0f..29e37b1fae66 100644
@@ -78,7 +78,7 @@ hsadc: hsadc@80002000 {
 				status = "disabled";
 			};
 
-			dma_apbh: dma-apbh@80004000 {
+			dma_apbh: dma-controller@80004000 {
 				compatible = "fsl,imx28-dma-apbh";
 				reg = <0x80004000 0x2000>;
 				interrupts = <82 83 84 85
arch/arm/boot/dts/imx6dl-prtrvt.dts +4 -0
index 56bb1ca56a2d..36b031236e47 100644
@@ -124,6 +124,10 @@ &usbh1 {
 	status = "disabled";
 };
 
+&usbotg {
+	disable-over-current;
+};
+
 &vpu {
 	status = "disabled";
 };
arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi +1 -1
index 1a599c294ab8..1ca4d219609f 100644
@@ -182,7 +182,7 @@ i2c_rtc: rtc@68 {
 		pinctrl-0 = <&pinctrl_rtc_int>;
 		reg = <0x68>;
 		interrupt-parent = <&gpio7>;
-		interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
+		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
 		status = "disabled";
 	};
 };
arch/arm/boot/dts/imx6qdl-prti6q.dtsi +10 -1
index f0db0d4471f4..36f84f4da6b0 100644
@@ -69,6 +69,7 @@ &usbh1 {
 	vbus-supply = <&reg_usb_h1_vbus>;
 	phy_type = "utmi";
 	dr_mode = "host";
+	disable-over-current;
 	status = "okay";
 };
 
@@ -78,10 +79,18 @@ &usbotg {
 	pinctrl-0 = <&pinctrl_usbotg>;
 	phy_type = "utmi";
 	dr_mode = "host";
-	disable-over-current;
+	over-current-active-low;
 	status = "okay";
 };
 
+&usbphynop1 {
+	status = "disabled";
+};
+
+&usbphynop2 {
+	status = "disabled";
+};
+
 &usdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usdhc1>;
arch/arm/boot/dts/imx6qdl.dtsi +1 -1
index b72ec745f6d1..bda182edc589 100644
@@ -150,7 +150,7 @@ soc: soc {
 		interrupt-parent = <&gpc>;
 		ranges;
 
-		dma_apbh: dma-apbh@110000 {
+		dma_apbh: dma-controller@110000 {
 			compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x00110000 0x2000>;
 			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx6sx.dtsi +7 -1
index 93ac2380ca1e..fc0654e3fe95 100644
@@ -209,7 +209,7 @@ gpu: gpu@1800000 {
 			power-domains = <&pd_pu>;
 		};
 
-		dma_apbh: dma-apbh@1804000 {
+		dma_apbh: dma-controller@1804000 {
 			compatible = "fsl,imx6sx-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x01804000 0x2000>;
 			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
@@ -980,6 +980,8 @@ usdhc1: mmc@2190000 {
 					 <&clks IMX6SX_CLK_USDHC1>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
@@ -992,6 +994,8 @@ usdhc2: mmc@2194000 {
 					 <&clks IMX6SX_CLK_USDHC2>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
@@ -1004,6 +1008,8 @@ usdhc3: mmc@2198000 {
 					 <&clks IMX6SX_CLK_USDHC3>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-start-tap = <20>;
+				fsl,tuning-step= <2>;
 				status = "disabled";
 			};
 
arch/arm/boot/dts/imx6ul.dtsi +1 -1
index 3d9d0f823568..118764c50d92 100644
@@ -164,7 +164,7 @@ intc: interrupt-controller@a01000 {
 			      <0x00a06000 0x2000>;
 		};
 
-		dma_apbh: dma-apbh@1804000 {
+		dma_apbh: dma-controller@1804000 {
 			compatible = "fsl,imx6q-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x01804000 0x2000>;
 			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>,
arch/arm/boot/dts/imx7s.dtsi +7 -1
index efe2525b62fa..6ffb428dc939 100644
@@ -1184,6 +1184,8 @@ usdhc1: mmc@30b40000 {
 					<&clks IMX7D_USDHC1_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1196,6 +1198,8 @@ usdhc2: mmc@30b50000 {
 					<&clks IMX7D_USDHC2_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1208,6 +1212,8 @@ usdhc3: mmc@30b60000 {
 					<&clks IMX7D_USDHC3_ROOT_CLK>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
+				fsl,tuning-step = <2>;
+				fsl,tuning-start-tap = <20>;
 				status = "disabled";
 			};
 
@@ -1257,7 +1263,7 @@ fec1: ethernet@30be0000 {
 			};
 		};
 
-		dma_apbh: dma-apbh@33000000 {
+		dma_apbh: dma-controller@33000000 {
 			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
 			reg = <0x33000000 0x2000>;
 			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/freescale/imx8mm.dtsi +3 -4
index d6b36f04f3dc..1a647d4072ba 100644
@@ -1221,10 +1221,9 @@ mipi_csi: mipi-csi@32e30000 {
 				compatible = "fsl,imx8mm-mipi-csi2";
 				reg = <0x32e30000 0x1000>;
 				interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
-				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>,
-						  <&clk IMX8MM_CLK_CSI1_PHY_REF>;
-				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>,
-							  <&clk IMX8MM_SYS_PLL2_1000M>;
+				assigned-clocks = <&clk IMX8MM_CLK_CSI1_CORE>;
+				assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_1000M>;
+
 				clock-frequency = <333000000>;
 				clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>,
 					 <&clk IMX8MM_CLK_CSI1_ROOT>,
arch/arm64/boot/dts/freescale/imx93.dtsi +1 -1
index e8d49660ac85..c0f49fedaf9e 100644
@@ -306,7 +306,7 @@ mlmix: power-domain@44461800 {
 
 			anatop: anatop@44480000 {
 				compatible = "fsl,imx93-anatop", "syscon";
-				reg = <0x44480000 0x10000>;
+				reg = <0x44480000 0x2000>;
 			};
 
 			adc1: adc@44530000 {
arch/arm64/boot/dts/qcom/ipq5332.dtsi +7 -0
index af4d97143bcf..c2d6cc65a323 100644
@@ -135,6 +135,13 @@ soc@0 {
 		#size-cells = <1>;
 		ranges = <0 0 0 0xffffffff>;
 
+		qfprom: efuse@a4000 {
+			compatible = "qcom,ipq5332-qfprom", "qcom,qfprom";
+			reg = <0x000a4000 0x721>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+		};
+
 		rng: rng@e3000 {
 			compatible = "qcom,prng-ee";
 			reg = <0x000e3000 0x1000>;
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +1 -1
index dd924331b0ee..ec066a89436a 100644
@@ -121,7 +121,7 @@ active-config0 {
 			};
 		};
 
-		pm8150l-thermal {
+		pm8150l-pcb-thermal {
 			polling-delay-passive = <0>;
 			polling-delay = <0>;
 			thermal-sensors = <&pm8150l_adc_tm 1>;
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts +1 -2
index 028eb508ae30..8bfd5f88d1ef 100644
@@ -548,9 +548,8 @@ &saradc {
 &sdhci {
 	max-frequency = <150000000>;
 	bus-width = <8>;
-	mmc-hs400-1_8v;
+	mmc-hs200-1_8v;
 	non-removable;
-	mmc-hs400-enhanced-strobe;
 	status = "okay";
 };
 
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +3 -3
index 907071d4fe80..980c4534313a 100644
@@ -45,7 +45,7 @@ led-0 {
 	sdio_pwrseq: sdio-pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		clocks = <&rk808 1>;
-		clock-names = "ext_clock";
+		clock-names = "lpo";
 		pinctrl-names = "default";
 		pinctrl-0 = <&wifi_enable_h>;
 		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
@@ -645,9 +645,9 @@ &saradc {
 };
 
 &sdhci {
+	max-frequency = <150000000>;
 	bus-width = <8>;
-	mmc-hs400-1_8v;
-	mmc-hs400-enhanced-strobe;
+	mmc-hs200-1_8v;
 	non-removable;
 	status = "okay";
 };
arch/arm64/include/asm/fpsimd.h +2 -2
index 67f2fb781f59..8df46f186c64 100644
@@ -356,7 +356,7 @@ static inline int sme_max_virtualisable_vl(void)
 	return vec_max_virtualisable_vl(ARM64_VEC_SME);
 }
 
-extern void sme_alloc(struct task_struct *task);
+extern void sme_alloc(struct task_struct *task, bool flush);
 extern unsigned int sme_get_vl(void);
 extern int sme_set_current_vl(unsigned long arg);
 extern int sme_get_current_vl(void);
@@ -388,7 +388,7 @@ static inline void sme_smstart_sm(void) { }
 static inline void sme_smstop_sm(void) { }
 static inline void sme_smstop(void) { }
 
-static inline void sme_alloc(struct task_struct *task) { }
+static inline void sme_alloc(struct task_struct *task, bool flush) { }
 static inline void sme_setup(void) { }
 static inline unsigned int sme_get_vl(void) { return 0; }
 static inline int sme_max_vl(void) { return 0; }
arch/arm64/kernel/fpsimd.c +3 -3
index 75c37b1c55aa..087c05aa960e 100644
@@ -1285,9 +1285,9 @@ void fpsimd_release_task(struct task_struct *dead_task)
  * the interest of testability and predictability, the architecture
  * guarantees that when ZA is enabled it will be zeroed.
  */
-void sme_alloc(struct task_struct *task)
+void sme_alloc(struct task_struct *task, bool flush)
 {
-	if (task->thread.sme_state) {
+	if (task->thread.sme_state && flush) {
 		memset(task->thread.sme_state, 0, sme_state_size(task));
 		return;
 	}
@@ -1515,7 +1515,7 @@ void do_sme_acc(unsigned long esr, struct pt_regs *regs)
 	}
 
 	sve_alloc(current, false);
-	sme_alloc(current);
+	sme_alloc(current, true);
 	if (!current->thread.sve_state || !current->thread.sme_state) {
 		force_sig(SIGKILL);
 		return;
arch/arm64/kernel/ptrace.c +17 -3
index 5b9b4305248b..187aa2b175b4 100644
@@ -881,6 +881,13 @@ static int sve_set_common(struct task_struct *target,
 			break;
 		case ARM64_VEC_SME:
 			target->thread.svcr |= SVCR_SM_MASK;
+
+			/*
+			 * Disable traps and ensure there is SME storage but
+			 * preserve any currently set values in ZA/ZT.
+			 */
+			sme_alloc(target, false);
+			set_tsk_thread_flag(target, TIF_SME);
 			break;
 		default:
 			WARN_ON_ONCE(1);
@@ -1100,7 +1107,7 @@ static int za_set(struct task_struct *target,
 	}
 
 	/* Allocate/reinit ZA storage */
-	sme_alloc(target);
+	sme_alloc(target, true);
 	if (!target->thread.sme_state) {
 		ret = -ENOMEM;
 		goto out;
@@ -1170,8 +1177,13 @@ static int zt_set(struct task_struct *target,
 	if (!system_supports_sme2())
 		return -EINVAL;
 
+	/* Ensure SVE storage in case this is first use of SME */
+	sve_alloc(target, false);
+	if (!target->thread.sve_state)
+		return -ENOMEM;
+
 	if (!thread_za_enabled(&target->thread)) {
-		sme_alloc(target);
+		sme_alloc(target, true);
 		if (!target->thread.sme_state)
 			return -ENOMEM;
 	}
@@ -1179,8 +1191,10 @@ static int zt_set(struct task_struct *target,
 	ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
 				 thread_zt_state(&target->thread),
 				 0, ZT_SIG_REG_BYTES);
-	if (ret == 0)
+	if (ret == 0) {
 		target->thread.svcr |= SVCR_ZA_MASK;
+		set_tsk_thread_flag(target, TIF_SME);
+	}
 
 	fpsimd_flush_task_state(target);
 
arch/arm64/kernel/signal.c +1 -1
index 10b407672c42..bcd1ebb21da6 100644
@@ -474,7 +474,7 @@ static int restore_za_context(struct user_ctxs *user)
 	fpsimd_flush_task_state(current);
 	/* From now, fpsimd_thread_switch() won't touch thread.sve_state */
 
-	sme_alloc(current);
+	sme_alloc(current, true);
 	if (!current->thread.sme_state) {
 		current->thread.svcr &= ~SVCR_ZA_MASK;
 		clear_thread_flag(TIF_SME);
arch/parisc/kernel/entry.S +23 -24

165 lines not on this page · raw message

arch/powerpc/kernel/rtas_flash.c +3 -3
index 4caf5e3079eb..359577ec1680 100644
@@ -709,9 +709,9 @@ static int __init rtas_flash_init(void)
 	if (!rtas_validate_flash_data.buf)
 		return -ENOMEM;
 
-	flash_block_cache = kmem_cache_create("rtas_flash_cache",
-					      RTAS_BLK_SIZE, RTAS_BLK_SIZE, 0,
-					      NULL);
+	flash_block_cache = kmem_cache_create_usercopy("rtas_flash_cache",
+						       RTAS_BLK_SIZE, RTAS_BLK_SIZE,
+						       0, 0, RTAS_BLK_SIZE, NULL);
 	if (!flash_block_cache) {
 		printk(KERN_ERR "%s: failed to create block cache\n",
 				__func__);
arch/powerpc/mm/kasan/Makefile +1 -0
index 699eeffd9f55..f9522fd70b2f 100644
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 
 KASAN_SANITIZE := n
+KCOV_INSTRUMENT := n
 
 obj-$(CONFIG_PPC32)		+= init_32.o
 obj-$(CONFIG_PPC_8xx)		+= 8xx.o
arch/riscv/include/asm/insn.h +13 -2
index 8d5c84f2d5ef..603095c913e3 100644
@@ -110,6 +110,7 @@
 #define RVC_INSN_FUNCT4_OPOFF	12
 #define RVC_INSN_FUNCT3_MASK	GENMASK(15, 13)
 #define RVC_INSN_FUNCT3_OPOFF	13
+#define RVC_INSN_J_RS1_MASK	GENMASK(11, 7)
 #define RVC_INSN_J_RS2_MASK	GENMASK(6, 2)
 #define RVC_INSN_OPCODE_MASK	GENMASK(1, 0)
 #define RVC_ENCODE_FUNCT3(f_)	(RVC_FUNCT3_##f_ << RVC_INSN_FUNCT3_OPOFF)
@@ -225,8 +226,6 @@ __RISCV_INSN_FUNCS(c_jal, RVC_MASK_C_JAL, RVC_MATCH_C_JAL)
 __RISCV_INSN_FUNCS(auipc, RVG_MASK_AUIPC, RVG_MATCH_AUIPC)
 __RISCV_INSN_FUNCS(jalr, RVG_MASK_JALR, RVG_MATCH_JALR)
 __RISCV_INSN_FUNCS(jal, RVG_MASK_JAL, RVG_MATCH_JAL)
-__RISCV_INSN_FUNCS(c_jr, RVC_MASK_C_JR, RVC_MATCH_C_JR)
-__RISCV_INSN_FUNCS(c_jalr, RVC_MASK_C_JALR, RVC_MATCH_C_JALR)
 __RISCV_INSN_FUNCS(c_j, RVC_MASK_C_J, RVC_MATCH_C_J)
 __RISCV_INSN_FUNCS(beq, RVG_MASK_BEQ, RVG_MATCH_BEQ)
 __RISCV_INSN_FUNCS(bne, RVG_MASK_BNE, RVG_MATCH_BNE)
@@ -253,6 +252,18 @@ static __always_inline bool riscv_insn_is_branch(u32 code)
 	return (code & RV_INSN_OPCODE_MASK) == RVG_OPCODE_BRANCH;
 }
 
+static __always_inline bool riscv_insn_is_c_jr(u32 code)
+{
+	return (code & RVC_MASK_C_JR) == RVC_MATCH_C_JR &&
+	       (code & RVC_INSN_J_RS1_MASK) != 0;
+}
+
+static __always_inline bool riscv_insn_is_c_jalr(u32 code)
+{
+	return (code & RVC_MASK_C_JALR) == RVC_MATCH_C_JALR &&
+	       (code & RVC_INSN_J_RS1_MASK) != 0;
+}
+
 #define RV_IMM_SIGN(x) (-(((x) >> 31) & 1))
 #define RVC_IMM_SIGN(x) (-(((x) >> 12) & 1))
 #define RV_X(X, s, mask)  (((X) >> (s)) & (mask))
arch/riscv/kernel/traps.c +3 -3
index 8c258b78c925..bd19e885dcec 100644
@@ -268,16 +268,16 @@ asmlinkage __visible __trap_section void do_trap_break(struct pt_regs *regs)
 asmlinkage __visible __trap_section void do_trap_ecall_u(struct pt_regs *regs)
 {
 	if (user_mode(regs)) {
-		ulong syscall = regs->a7;
+		long syscall = regs->a7;
 
 		regs->epc += 4;
 		regs->orig_a0 = regs->a0;
 
 		syscall = syscall_enter_from_user_mode(regs, syscall);
 
-		if (syscall < NR_syscalls)
+		if (syscall >= 0 && syscall < NR_syscalls)
 			syscall_handler(regs, syscall);
-		else
+		else if (syscall != -1)
 			regs->a0 = -ENOSYS;
 
 		syscall_exit_to_user_mode(regs);
arch/riscv/lib/uaccess.S +7 -4
index ec486e5369d9..09b47ebacf2e 100644
@@ -17,8 +17,11 @@ ENTRY(__asm_copy_from_user)
 	li t6, SR_SUM
 	csrs CSR_STATUS, t6
 
-	/* Save for return value */
-	mv	t5, a2
+	/*
+	 * Save the terminal address which will be used to compute the number
+	 * of bytes copied in case of a fixup exception.
+	 */
+	add	t5, a0, a2
 
 	/*
 	 * Register allocation for code below:
@@ -176,7 +179,7 @@ ENTRY(__asm_copy_from_user)
 10:
 	/* Disable access to user memory */
 	csrc CSR_STATUS, t6
-	mv a0, t5
+	sub a0, t5, a0
 	ret
 ENDPROC(__asm_copy_to_user)
 ENDPROC(__asm_copy_from_user)
@@ -228,7 +231,7 @@ ENTRY(__clear_user)
 11:
 	/* Disable access to user memory */
 	csrc CSR_STATUS, t6
-	mv a0, a1
+	sub a0, a3, a0
 	ret
 ENDPROC(__clear_user)
 EXPORT_SYMBOL(__clear_user)
arch/um/os-Linux/user_syms.c +0 -7
index 9b62a9d352b3..a310ae27b479 100644
@@ -37,13 +37,6 @@ EXPORT_SYMBOL(vsyscall_ehdr);
 EXPORT_SYMBOL(vsyscall_end);
 #endif
 
-/* Export symbols used by GCC for the stack protector. */
-extern void __stack_smash_handler(void *) __attribute__((weak));
-EXPORT_SYMBOL(__stack_smash_handler);
-
-extern long __guard __attribute__((weak));
-EXPORT_SYMBOL(__guard);
-
 #ifdef _FORTIFY_SOURCE
 extern int __sprintf_chk(char *str, int flag, size_t len, const char *format);
 EXPORT_SYMBOL(__sprintf_chk);
arch/x86/include/asm/entry-common.h +1 -0
index 117903881fe4..ce8f50192ae3 100644
@@ -92,6 +92,7 @@ static inline void arch_exit_to_user_mode_prepare(struct pt_regs *regs,
 static __always_inline void arch_exit_to_user_mode(void)
 {
 	mds_user_clear_cpu_buffers();
+	amd_clear_divider();
 }
 #define arch_exit_to_user_mode arch_exit_to_user_mode
 
arch/x86/include/asm/nospec-branch.h +27 -22

98 lines not on this page · raw message

arch/x86/kernel/alternative.c +0 -4
index f615e0cb6d93..94b42fbb6ffa 100644
@@ -571,10 +571,6 @@ void __init_or_module noinline apply_retpolines(s32 *start, s32 *end)
 
 #ifdef CONFIG_RETHUNK
 
-#ifdef CONFIG_CALL_THUNKS
-void (*x86_return_thunk)(void) __ro_after_init = &__x86_return_thunk;
-#endif
-
 /*
  * Rewrite the compiler generated return thunk tail-calls.
  *
arch/x86/kernel/cpu/amd.c +1 -0
index 0b5f33cb32b5..13b0da82cb5f 100644
@@ -1329,3 +1329,4 @@ void noinstr amd_clear_divider(void)
 	asm volatile(ALTERNATIVE("", "div %2\n\t", X86_BUG_DIV0)
 		     :: "a" (0), "d" (0), "r" (1));
 }
+EXPORT_SYMBOL_GPL(amd_clear_divider);
arch/x86/kernel/cpu/bugs.c +24 -5
index f3d627901d89..d5319779da58 100644
@@ -63,6 +63,8 @@ EXPORT_SYMBOL_GPL(x86_pred_cmd);
 
 static DEFINE_MUTEX(spec_ctrl_mutex);
 
+void (*x86_return_thunk)(void) __ro_after_init = &__x86_return_thunk;
+
 /* Update SPEC_CTRL MSR and its cached copy unconditionally */
 static void update_spec_ctrl(u64 val)
 {
@@ -165,8 +167,13 @@ void __init cpu_select_mitigations(void)
 	md_clear_select_mitigation();
 	srbds_select_mitigation();
 	l1d_flush_select_mitigation();
-	gds_select_mitigation();
+
+	/*
+	 * srso_select_mitigation() depends and must run after
+	 * retbleed_select_mitigation().
+	 */
 	srso_select_mitigation();
+	gds_select_mitigation();
 }
 
 /*
@@ -1035,6 +1042,9 @@ static void __init retbleed_select_mitigation(void)
 		setup_force_cpu_cap(X86_FEATURE_RETHUNK);
 		setup_force_cpu_cap(X86_FEATURE_UNRET);
 
+		if (IS_ENABLED(CONFIG_RETHUNK))
+			x86_return_thunk = retbleed_return_thunk;
+
 		if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD &&
 		    boot_cpu_data.x86_vendor != X86_VENDOR_HYGON)
 			pr_err(RETBLEED_UNTRAIN_MSG);
@@ -1044,6 +1054,7 @@ static void __init retbleed_select_mitigation(void)
 
 	case RETBLEED_MITIGATION_IBPB:
 		setup_force_cpu_cap(X86_FEATURE_ENTRY_IBPB);
+		setup_force_cpu_cap(X86_FEATURE_IBPB_ON_VMEXIT);
 		mitigate_smt = true;
 		break;
 
@@ -2417,9 +2428,10 @@ static void __init srso_select_mitigation(void)
 		 * Zen1/2 with SMT off aren't vulnerable after the right
 		 * IBPB microcode has been applied.
 		 */
-		if ((boot_cpu_data.x86 < 0x19) &&
-		    (!cpu_smt_possible() || (cpu_smt_control == CPU_SMT_DISABLED)))
+		if (boot_cpu_data.x86 < 0x19 && !cpu_smt_possible()) {
 			setup_force_cpu_cap(X86_FEATURE_SRSO_NO);
+			return;
+		}
 	}
 
 	if (retbleed_mitigation == RETBLEED_MITIGATION_IBPB) {
@@ -2448,11 +2460,15 @@ static void __init srso_select_mitigation(void)
 			 * like ftrace, static_call, etc.
 			 */
 			setup_force_cpu_cap(X86_FEATURE_RETHUNK);
+			setup_force_cpu_cap(X86_FEATURE_UNRET);
 
-			if (boot_cpu_data.x86 == 0x19)
+			if (boot_cpu_data.x86 == 0x19) {
 				setup_force_cpu_cap(X86_FEATURE_SRSO_ALIAS);
-			else
+				x86_return_thunk = srso_alias_return_thunk;
+			} else {
 				setup_force_cpu_cap(X86_FEATURE_SRSO);
+				x86_return_thunk = srso_return_thunk;
+			}
 			srso_mitigation = SRSO_MITIGATION_SAFE_RET;
 		} else {
 			pr_err("WARNING: kernel not compiled with CPU_SRSO.\n");
@@ -2701,6 +2717,9 @@ static ssize_t gds_show_state(char *buf)
 
 static ssize_t srso_show_state(char *buf)
 {
+	if (boot_cpu_has(X86_FEATURE_SRSO_NO))
+		return sysfs_emit(buf, "Mitigation: SMT disabled\n");
+
 	return sysfs_emit(buf, "%s%s\n",
 			  srso_strings[srso_mitigation],
 			  (cpu_has_ibpb_brtype_microcode() ? "" : ", no microcode"));
arch/x86/kernel/kprobes/opt.c +16 -24
index 57b0037d0a99..517821b48391 100644
@@ -226,7 +226,7 @@ static int copy_optimized_instructions(u8 *dest, u8 *src, u8 *real)
 }
 
 /* Check whether insn is indirect jump */
-static int __insn_is_indirect_jump(struct insn *insn)
+static int insn_is_indirect_jump(struct insn *insn)
 {
 	return ((insn->opcode.bytes[0] == 0xff &&
 		(X86_MODRM_REG(insn->modrm.value) & 6) == 4) || /* Jump */
@@ -260,26 +260,6 @@ static int insn_jump_into_range(struct insn *insn, unsigned long start, int len)
 	return (start <= target && target <= start + len);
 }
 
-static int insn_is_indirect_jump(struct insn *insn)
-{
-	int ret = __insn_is_indirect_jump(insn);
-
-#ifdef CONFIG_RETPOLINE
-	/*
-	 * Jump to x86_indirect_thunk_* is treated as an indirect jump.
-	 * Note that even with CONFIG_RETPOLINE=y, the kernel compiled with
-	 * older gcc may use indirect jump. So we add this check instead of
-	 * replace indirect-jump check.
-	 */
-	if (!ret)
-		ret = insn_jump_into_range(insn,
-				(unsigned long)__indirect_thunk_start,
-				(unsigned long)__indirect_thunk_end -
-				(unsigned long)__indirect_thunk_start);
-#endif
-	return ret;
-}
-
 /* Decode whole function to ensure any instructions don't jump into target */
 static int can_optimize(unsigned long paddr)
 {
@@ -334,9 +314,21 @@ static int can_optimize(unsigned long paddr)
 		/* Recover address */
 		insn.kaddr = (void *)addr;
 		insn.next_byte = (void *)(addr + insn.length);
-		/* Check any instructions don't jump into target */
-		if (insn_is_indirect_jump(&insn) ||
-		    insn_jump_into_range(&insn, paddr + INT3_INSN_SIZE,
+		/*
+		 * Check any instructions don't jump into target, indirectly or
+		 * directly.
+		 *
+		 * The indirect case is present to handle a code with jump
+		 * tables. When the kernel uses retpolines, the check should in
+		 * theory additionally look for jumps to indirect thunks.
+		 * However, the kernel built with retpolines or IBT has jump
+		 * tables disabled so the check can be skipped altogether.
+		 */
+		if (!IS_ENABLED(CONFIG_RETPOLINE) &&
+		    !IS_ENABLED(CONFIG_X86_KERNEL_IBT) &&
+		    insn_is_indirect_jump(&insn))
+			return 0;
+		if (insn_jump_into_range(&insn, paddr + INT3_INSN_SIZE,
 					 DISP32_SIZE))
 			return 0;
 		addr += insn.length;
arch/x86/kernel/static_call.c +13 -0
index b70670a98597..77a9316da435 100644
@@ -186,6 +186,19 @@ EXPORT_SYMBOL_GPL(arch_static_call_transform);
  */
 bool __static_call_fixup(void *tramp, u8 op, void *dest)
 {
+	unsigned long addr = (unsigned long)tramp;
+	/*
+	 * Not all .return_sites are a static_call trampoline (most are not).
+	 * Check if the 3 bytes after the return are still kernel text, if not,
+	 * then this definitely is not a trampoline and we need not worry
+	 * further.
+	 *
+	 * This avoids the memcmp() below tripping over pagefaults etc..
+	 */
+	if (((addr >> PAGE_SHIFT) != ((addr + 7) >> PAGE_SHIFT)) &&
+	    !kernel_text_address(addr + 7))
+		return false;
+
 	if (memcmp(tramp+5, tramp_ud, 3)) {
 		/* Not a trampoline site, not our problem. */
 		return false;
arch/x86/kernel/traps.c +0 -2
index 1885326a8f65..4a817d20ce3b 100644
@@ -206,8 +206,6 @@ DEFINE_IDTENTRY(exc_divide_error)
 {
 	do_error_trap(regs, 0, "divide error", X86_TRAP_DE, SIGFPE,
 		      FPE_INTDIV, error_get_trap_addr(regs));
-
-	amd_clear_divider();
 }
 
 DEFINE_IDTENTRY(exc_overflow)
arch/x86/kernel/vmlinux.lds.S +10 -12
index bac2e2949f01..83d41c2601d7 100644
@@ -133,27 +133,25 @@ SECTIONS
 		KPROBES_TEXT
 		SOFTIRQENTRY_TEXT
 #ifdef CONFIG_RETPOLINE
-		__indirect_thunk_start = .;
-		*(.text.__x86.indirect_thunk)
-		*(.text.__x86.return_thunk)
-		__indirect_thunk_end = .;
+		*(.text..__x86.indirect_thunk)
+		*(.text..__x86.return_thunk)
 #endif
 		STATIC_CALL_TEXT
 
 		ALIGN_ENTRY_TEXT_BEGIN
 #ifdef CONFIG_CPU_SRSO
-		*(.text.__x86.rethunk_untrain)
+		*(.text..__x86.rethunk_untrain)
 #endif
 
 		ENTRY_TEXT
 
 #ifdef CONFIG_CPU_SRSO
 		/*
-		 * See the comment above srso_untrain_ret_alias()'s
+		 * See the comment above srso_alias_untrain_ret()'s
 		 * definition.
 		 */
-		. = srso_untrain_ret_alias | (1 << 2) | (1 << 8) | (1 << 14) | (1 << 20);
-		*(.text.__x86.rethunk_safe)
+		. = srso_alias_untrain_ret | (1 << 2) | (1 << 8) | (1 << 14) | (1 << 20);
+		*(.text..__x86.rethunk_safe)
 #endif
 		ALIGN_ENTRY_TEXT_END
 		*(.gnu.warning)
@@ -522,8 +520,8 @@ INIT_PER_CPU(irq_stack_backing_store);
            "fixed_percpu_data is not at start of per-cpu area");
 #endif
 
- #ifdef CONFIG_RETHUNK
-. = ASSERT((__ret & 0x3f) == 0, "__ret not cacheline-aligned");
+#ifdef CONFIG_RETHUNK
+. = ASSERT((retbleed_return_thunk & 0x3f) == 0, "retbleed_return_thunk not cacheline-aligned");
 . = ASSERT((srso_safe_ret & 0x3f) == 0, "srso_safe_ret not cacheline-aligned");
 #endif
 
@@ -538,8 +536,8 @@ INIT_PER_CPU(irq_stack_backing_store);
  * Instead do: (A | B) - (A & B) in order to compute the XOR
  * of the two function addresses:
  */
-. = ASSERT(((ABSOLUTE(srso_untrain_ret_alias) | srso_safe_ret_alias) -
-		(ABSOLUTE(srso_untrain_ret_alias) & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
+. = ASSERT(((ABSOLUTE(srso_alias_untrain_ret) | srso_alias_safe_ret) -
+		(ABSOLUTE(srso_alias_untrain_ret) & srso_alias_safe_ret)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
 		"SRSO function pair won't alias");
 #endif
 
arch/x86/kvm/svm/svm.c +2 -0
index af7b968f5570..c3b557aca249 100644
@@ -4034,6 +4034,8 @@ static noinstr void svm_vcpu_enter_exit(struct kvm_vcpu *vcpu, bool spec_ctrl_in
 
 	guest_state_enter_irqoff();
 
+	amd_clear_divider();
+
 	if (sev_es_guest(vcpu->kvm))
 		__svm_sev_es_vcpu_run(svm, spec_ctrl_intercepted);
 	else
arch/x86/kvm/svm/vmenter.S +2 -5
index 265452fc9ebe..ef2ebabb059c 100644
@@ -222,10 +222,7 @@ SYM_FUNC_START(__svm_vcpu_run)
 	 * because interrupt handlers won't sanitize 'ret' if the return is
 	 * from the kernel.
 	 */
-	UNTRAIN_RET
-
-	/* SRSO */
-	ALTERNATIVE "", "call entry_ibpb", X86_FEATURE_IBPB_ON_VMEXIT
+	UNTRAIN_RET_VM
 
 	/*
 	 * Clear all general purpose registers except RSP and RAX to prevent
@@ -362,7 +359,7 @@ SYM_FUNC_START(__svm_sev_es_vcpu_run)
 	 * because interrupt handlers won't sanitize RET if the return is
 	 * from the kernel.
 	 */
-	UNTRAIN_RET
+	UNTRAIN_RET_VM
 
 	/* "Pop" @spec_ctrl_intercepted.  */
 	pop %_ASM_BX
arch/x86/lib/retpoline.S +95 -42

228 lines not on this page · raw message

block/blk-cgroup.c +2 -0
index fc49be622e05..9faafcd10e17 100644
@@ -136,7 +136,9 @@ static void blkg_free_workfn(struct work_struct *work)
 			blkcg_policy[i]->pd_free_fn(blkg->pd[i]);
 	if (blkg->parent)
 		blkg_put(blkg->parent);
+	spin_lock_irq(&q->queue_lock);
 	list_del_init(&blkg->q_node);
+	spin_unlock_irq(&q->queue_lock);
 	mutex_unlock(&q->blkcg_mutex);
 
 	blk_put_queue(q);
block/blk-crypto-fallback.c +23 -13
index ad9844c5b40c..e6468eab2681 100644
@@ -78,7 +78,7 @@ static struct blk_crypto_fallback_keyslot {
 	struct crypto_skcipher *tfms[BLK_ENCRYPTION_MODE_MAX];
 } *blk_crypto_keyslots;
 
-static struct blk_crypto_profile blk_crypto_fallback_profile;
+static struct blk_crypto_profile *blk_crypto_fallback_profile;
 static struct workqueue_struct *blk_crypto_wq;
 static mempool_t *blk_crypto_bounce_page_pool;
 static struct bio_set crypto_bio_split;
@@ -292,7 +292,7 @@ static bool blk_crypto_fallback_encrypt_bio(struct bio **bio_ptr)
 	 * Get a blk-crypto-fallback keyslot that contains a crypto_skcipher for
 	 * this bio's algorithm and key.
 	 */
-	blk_st = blk_crypto_get_keyslot(&blk_crypto_fallback_profile,
+	blk_st = blk_crypto_get_keyslot(blk_crypto_fallback_profile,
 					bc->bc_key, &slot);
 	if (blk_st != BLK_STS_OK) {
 		src_bio->bi_status = blk_st;
@@ -395,7 +395,7 @@ static void blk_crypto_fallback_decrypt_bio(struct work_struct *work)
 	 * Get a blk-crypto-fallback keyslot that contains a crypto_skcipher for
 	 * this bio's algorithm and key.
 	 */
-	blk_st = blk_crypto_get_keyslot(&blk_crypto_fallback_profile,
+	blk_st = blk_crypto_get_keyslot(blk_crypto_fallback_profile,
 					bc->bc_key, &slot);
 	if (blk_st != BLK_STS_OK) {
 		bio->bi_status = blk_st;
@@ -499,7 +499,7 @@ bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr)
 		return false;
 	}
 
-	if (!__blk_crypto_cfg_supported(&blk_crypto_fallback_profile,
+	if (!__blk_crypto_cfg_supported(blk_crypto_fallback_profile,
 					&bc->bc_key->crypto_cfg)) {
 		bio->bi_status = BLK_STS_NOTSUPP;
 		return false;
@@ -526,7 +526,7 @@ bool blk_crypto_fallback_bio_prep(struct bio **bio_ptr)
 
 int blk_crypto_fallback_evict_key(const struct blk_crypto_key *key)
 {
-	return __blk_crypto_evict_key(&blk_crypto_fallback_profile, key);
+	return __blk_crypto_evict_key(blk_crypto_fallback_profile, key);
 }
 
 static bool blk_crypto_fallback_inited;
@@ -534,7 +534,6 @@ static int blk_crypto_fallback_init(void)
 {
 	int i;
 	int err;
-	struct blk_crypto_profile *profile = &blk_crypto_fallback_profile;
 
 	if (blk_crypto_fallback_inited)
 		return 0;
@@ -545,18 +544,27 @@ static int blk_crypto_fallback_init(void)
 	if (err)
 		goto out;
 
-	err = blk_crypto_profile_init(profile, blk_crypto_num_keyslots);
-	if (err)
+	/* Dynamic allocation is needed because of lockdep_register_key(). */
+	blk_crypto_fallback_profile =
+		kzalloc(sizeof(*blk_crypto_fallback_profile), GFP_KERNEL);
+	if (!blk_crypto_fallback_profile) {
+		err = -ENOMEM;
 		goto fail_free_bioset;
+	}
+
+	err = blk_crypto_profile_init(blk_crypto_fallback_profile,
+				      blk_crypto_num_keyslots);
+	if (err)
+		goto fail_free_profile;
 	err = -ENOMEM;
 
-	profile->ll_ops = blk_crypto_fallback_ll_ops;
-	profile->max_dun_bytes_supported = BLK_CRYPTO_MAX_IV_SIZE;
+	blk_crypto_fallback_profile->ll_ops = blk_crypto_fallback_ll_ops;
+	blk_crypto_fallback_profile->max_dun_bytes_supported = BLK_CRYPTO_MAX_IV_SIZE;
 
 	/* All blk-crypto modes have a crypto API fallback. */
 	for (i = 0; i < BLK_ENCRYPTION_MODE_MAX; i++)
-		profile->modes_supported[i] = 0xFFFFFFFF;
-	profile->modes_supported[BLK_ENCRYPTION_MODE_INVALID] = 0;
+		blk_crypto_fallback_profile->modes_supported[i] = 0xFFFFFFFF;
+	blk_crypto_fallback_profile->modes_supported[BLK_ENCRYPTION_MODE_INVALID] = 0;
 
 	blk_crypto_wq = alloc_workqueue("blk_crypto_wq",
 					WQ_UNBOUND | WQ_HIGHPRI |
@@ -597,7 +605,9 @@ static int blk_crypto_fallback_init(void)
 fail_free_wq:
 	destroy_workqueue(blk_crypto_wq);
 fail_destroy_profile:
-	blk_crypto_profile_destroy(profile);
+	blk_crypto_profile_destroy(blk_crypto_fallback_profile);
+fail_free_profile:
+	kfree(blk_crypto_fallback_profile);
 fail_free_bioset:
 	bioset_exit(&crypto_bio_split);
 out:
drivers/accel/habanalabs/common/device.c +14 -1
index fabfc501ef54..a39dd346a167 100644
@@ -981,6 +981,18 @@ static void device_early_fini(struct hl_device *hdev)
 		hdev->asic_funcs->early_fini(hdev);
 }
 
+static bool is_pci_link_healthy(struct hl_device *hdev)
+{
+	u16 vendor_id;
+
+	if (!hdev->pdev)
+		return false;
+
+	pci_read_config_word(hdev->pdev, PCI_VENDOR_ID, &vendor_id);
+
+	return (vendor_id == PCI_VENDOR_ID_HABANALABS);
+}
+
 static void hl_device_heartbeat(struct work_struct *work)
 {
 	struct hl_device *hdev = container_of(work, struct hl_device,
@@ -995,7 +1007,8 @@ static void hl_device_heartbeat(struct work_struct *work)
 		goto reschedule;
 
 	if (hl_device_operational(hdev, NULL))
-		dev_err(hdev->dev, "Device heartbeat failed!\n");
+		dev_err(hdev->dev, "Device heartbeat failed! PCI link is %s\n",
+			is_pci_link_healthy(hdev) ? "healthy" : "broken");
 
 	info.err_type = HL_INFO_FW_HEARTBEAT_ERR;
 	info.event_mask = &event_mask;
drivers/accel/habanalabs/common/habanalabs.h +2 -0
index eaae69a9f817..7f5d1b6e3fb0 100644
@@ -36,6 +36,8 @@
 struct hl_device;
 struct hl_fpriv;
 
+#define PCI_VENDOR_ID_HABANALABS	0x1da3
+
 /* Use upper bits of mmap offset to store habana driver specific information.
  * bits[63:59] - Encode mmap type
  * bits[45:0]  - mmap offset value
drivers/accel/habanalabs/common/habanalabs_drv.c +2 -2
index d9df64e75f33..70fb2df9a93b 100644
@@ -13,6 +13,7 @@
 
 #include <linux/pci.h>
 #include <linux/module.h>
+#include <linux/vmalloc.h>
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/habanalabs.h>
@@ -54,8 +55,6 @@ module_param(boot_error_status_mask, ulong, 0444);
 MODULE_PARM_DESC(boot_error_status_mask,
 	"Mask of the error status during device CPU boot (If bitX is cleared then error X is masked. Default all 1's)");
 
-#define PCI_VENDOR_ID_HABANALABS	0x1da3
-
 #define PCI_IDS_GOYA			0x0001
 #define PCI_IDS_GAUDI			0x1000
 #define PCI_IDS_GAUDI_SEC		0x1010
@@ -220,6 +219,7 @@ int hl_device_open(struct inode *inode, struct file *filp)
 
 	hl_debugfs_add_file(hpriv);
 
+	vfree(hdev->captured_err_info.page_fault_info.user_mappings);
 	memset(&hdev->captured_err_info, 0, sizeof(hdev->captured_err_info));
 	atomic_set(&hdev->captured_err_info.cs_timeout.write_enable, 1);
 	hdev->captured_err_info.undef_opcode.write_enable = true;
drivers/accel/qaic/qaic_control.c +18 -8
index cfbc92da426f..388abd40024b 100644
@@ -392,18 +392,31 @@ static int find_and_map_user_pages(struct qaic_device *qdev,
 				   struct qaic_manage_trans_dma_xfer *in_trans,
 				   struct ioctl_resources *resources, struct dma_xfer *xfer)
 {
+	u64 xfer_start_addr, remaining, end, total;
 	unsigned long need_pages;
 	struct page **page_list;
 	unsigned long nr_pages;
 	struct sg_table *sgt;
-	u64 xfer_start_addr;
 	int ret;
 	int i;
 
-	xfer_start_addr = in_trans->addr + resources->xferred_dma_size;
+	if (check_add_overflow(in_trans->addr, resources->xferred_dma_size, &xfer_start_addr))
+		return -EINVAL;
 
-	need_pages = DIV_ROUND_UP(in_trans->size + offset_in_page(xfer_start_addr) -
-				  resources->xferred_dma_size, PAGE_SIZE);
+	if (in_trans->size < resources->xferred_dma_size)
+		return -EINVAL;
+	remaining = in_trans->size - resources->xferred_dma_size;
+	if (remaining == 0)
+		return 0;
+
+	if (check_add_overflow(xfer_start_addr, remaining, &end))
+		return -EINVAL;
+
+	total = remaining + offset_in_page(xfer_start_addr);
+	if (total >= SIZE_MAX)
+		return -EINVAL;
+
+	need_pages = DIV_ROUND_UP(total, PAGE_SIZE);
 
 	nr_pages = need_pages;
 
@@ -435,7 +448,7 @@ static int find_and_map_user_pages(struct qaic_device *qdev,
 
 	ret = sg_alloc_table_from_pages(sgt, page_list, nr_pages,
 					offset_in_page(xfer_start_addr),
-					in_trans->size - resources->xferred_dma_size, GFP_KERNEL);
+					remaining, GFP_KERNEL);
 	if (ret) {
 		ret = -ENOMEM;
 		goto free_sgt;
@@ -566,9 +579,6 @@ static int encode_dma(struct qaic_device *qdev, void *trans, struct wrapper_list
 	    QAIC_MANAGE_EXT_MSG_LENGTH)
 		return -ENOMEM;
 
-	if (in_trans->addr + in_trans->size < in_trans->addr || !in_trans->size)
-		return -EINVAL;
-
 	xfer = kmalloc(sizeof(*xfer), GFP_KERNEL);
 	if (!xfer)
 		return -ENOMEM;
drivers/accel/qaic/qaic_data.c +1 -0
index e9a1cb779b30..6b6d981a71be 100644
@@ -1021,6 +1021,7 @@ int qaic_attach_slice_bo_ioctl(struct drm_device *dev, void *data, struct drm_fi
 	bo->dbc = dbc;
 	srcu_read_unlock(&dbc->ch_lock, rcu_id);
 	drm_gem_object_put(obj);
+	kfree(slice_ent);
 	srcu_read_unlock(&qdev->dev_lock, qdev_rcu_id);
 	srcu_read_unlock(&usr->qddev_lock, usr_rcu_id);
 
drivers/bluetooth/btusb.c +3 -0
index 50e23762ec5e..025e803ba55c 100644
@@ -613,6 +613,9 @@ static const struct usb_device_id blacklist_table[] = {
 	{ USB_DEVICE(0x0489, 0xe0d9), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH |
 						     BTUSB_VALID_LE_STATES },
+	{ USB_DEVICE(0x0489, 0xe0f5), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
 	{ USB_DEVICE(0x13d3, 0x3568), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH |
 						     BTUSB_VALID_LE_STATES },
drivers/bus/ti-sysc.c +2 -0
index 21fe9854703f..4cb23b9e06ea 100644
@@ -2142,6 +2142,8 @@ static int sysc_reset(struct sysc *ddata)
 		sysc_val = sysc_read_sysconfig(ddata);
 		sysc_val |= sysc_mask;
 		sysc_write(ddata, sysc_offset, sysc_val);
+		/* Flush posted write */
+		sysc_val = sysc_read_sysconfig(ddata);
 	}
 
 	if (ddata->cfg.srst_udelay)
drivers/firewire/net.c +4 -2
index 538bd677c254..7a4d1a478e33 100644
@@ -479,7 +479,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
 					struct sk_buff *skb, u16 source_node_id,
 					bool is_broadcast, u16 ether_type)
 {
-	int status;
+	int status, len;
 
 	switch (ether_type) {
 	case ETH_P_ARP:
@@ -533,13 +533,15 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
 		}
 		skb->protocol = protocol;
 	}
+
+	len = skb->len;
 	status = netif_rx(skb);
 	if (status == NET_RX_DROP) {
 		net->stats.rx_errors++;
 		net->stats.rx_dropped++;
 	} else {
 		net->stats.rx_packets++;
-		net->stats.rx_bytes += skb->len;
+		net->stats.rx_bytes += len;
 	}
 
 	return 0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +4 -4
index a989ae72a58a..0c023269aada 100644
@@ -189,7 +189,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
 	uint64_t *chunk_array_user;
 	uint64_t *chunk_array;
 	uint32_t uf_offset = 0;
-	unsigned int size;
+	size_t size;
 	int ret;
 	int i;
 
@@ -1625,15 +1625,15 @@ static int amdgpu_cs_wait_all_fences(struct amdgpu_device *adev,
 			continue;
 
 		r = dma_fence_wait_timeout(fence, true, timeout);
+		if (r > 0 && fence->error)
+			r = fence->error;
+
 		dma_fence_put(fence);
 		if (r < 0)
 			return r;
 
 		if (r == 0)
 			break;
-
-		if (fence->error)
-			return fence->error;
 	}
 
 	memset(wait, 0, sizeof(*wait));
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c +38 -0
index c6d4d41c4393..23d054526e7c 100644
@@ -106,3 +106,41 @@ int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
 	ttm_eu_backoff_reservation(&ticket, &list);
 	return 0;
 }
+
+int amdgpu_unmap_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
+			    struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va,
+			    uint64_t csa_addr)
+{
+	struct ww_acquire_ctx ticket;
+	struct list_head list;
+	struct amdgpu_bo_list_entry pd;
+	struct ttm_validate_buffer csa_tv;
+	int r;
+
+	INIT_LIST_HEAD(&list);
+	INIT_LIST_HEAD(&csa_tv.head);
+	csa_tv.bo = &bo->tbo;
+	csa_tv.num_shared = 1;
+
+	list_add(&csa_tv.head, &list);
+	amdgpu_vm_get_pd_bo(vm, &list, &pd);
+
+	r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL);
+	if (r) {
+		DRM_ERROR("failed to reserve CSA,PD BOs: err=%d\n", r);
+		return r;
+	}
+
+	r = amdgpu_vm_bo_unmap(adev, bo_va, csa_addr);
+	if (r) {
+		DRM_ERROR("failed to do bo_unmap on static CSA, err=%d\n", r);
+		ttm_eu_backoff_reservation(&ticket, &list);
+		return r;
+	}
+
+	amdgpu_vm_bo_del(adev, bo_va);
+
+	ttm_eu_backoff_reservation(&ticket, &list);
+
+	return 0;
+}
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.h +3 -0
index 524b4437a021..7dfc1f2012eb 100644
@@ -34,6 +34,9 @@ int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo
 int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
 			  struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va,
 			  uint64_t csa_addr, uint32_t size);
+int amdgpu_unmap_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm,
+			    struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va,
+			    uint64_t csa_addr);
 void amdgpu_free_static_csa(struct amdgpu_bo **bo);
 
 #endif
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index 44a902d9b5c7..3108f5219cf3 100644
@@ -4250,6 +4250,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
 		drm_fb_helper_set_suspend_unlocked(adev_to_drm(adev)->fb_helper, true);
 
 	cancel_delayed_work_sync(&adev->delayed_init_work);
+	flush_delayed_work(&adev->gfx.gfx_off_delay_work);
 
 	amdgpu_ras_suspend(adev);
 
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +39 -2

59 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +1 -8
index f3f541ba0aca..bff5b6eac39b 100644
@@ -589,15 +589,8 @@ void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable)
 
 		if (adev->gfx.gfx_off_req_count == 0 &&
 		    !adev->gfx.gfx_off_state) {
-			/* If going to s2idle, no need to wait */
-			if (adev->in_s0ix) {
-				if (!amdgpu_dpm_set_powergating_by_smu(adev,
-						AMD_IP_BLOCK_TYPE_GFX, true))
-					adev->gfx.gfx_off_state = true;
-			} else {
-				schedule_delayed_work(&adev->gfx.gfx_off_delay_work,
+			schedule_delayed_work(&adev->gfx.gfx_off_delay_work,
 					      delay);
-			}
 		}
 	} else {
 		if (adev->gfx.gfx_off_req_count == 0) {
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +0 -1
index fafebec5b7b6..9581c020d815 100644
@@ -124,7 +124,6 @@ void amdgpu_irq_disable_all(struct amdgpu_device *adev)
 				continue;
 
 			for (k = 0; k < src->num_types; ++k) {
-				atomic_set(&src->enabled_types[k], 0);
 				r = src->funcs->set(adev, src, k,
 						    AMDGPU_IRQ_STATE_DISABLE);
 				if (r)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +5 -5
index 0efb38539d70..724e80c19297 100644
@@ -1284,12 +1284,12 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev,
 	if (amdgpu_device_ip_get_ip_block(adev, AMD_IP_BLOCK_TYPE_VCE) != NULL)
 		amdgpu_vce_free_handles(adev, file_priv);
 
-	if (amdgpu_mcbp) {
-		/* TODO: how to handle reserve failure */
-		BUG_ON(amdgpu_bo_reserve(adev->virt.csa_obj, true));
-		amdgpu_vm_bo_del(adev, fpriv->csa_va);
+	if (fpriv->csa_va) {
+		uint64_t csa_addr = amdgpu_csa_vaddr(adev) & AMDGPU_GMC_HOLE_MASK;
+
+		WARN_ON(amdgpu_unmap_static_csa(adev, &fpriv->vm, adev->virt.csa_obj,
+						fpriv->csa_va, csa_addr));
 		fpriv->csa_va = NULL;
-		amdgpu_bo_unreserve(adev->virt.csa_obj);
 	}
 
 	pasid = fpriv->vm.pasid;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +2 -2
index db820331f2c6..39e54685653c 100644
@@ -520,6 +520,8 @@ static int psp_sw_fini(void *handle)
 	kfree(cmd);
 	cmd = NULL;
 
+	psp_free_shared_bufs(psp);
+
 	if (psp->km_ring.ring_mem)
 		amdgpu_bo_free_kernel(&adev->firmware.rbuf,
 				      &psp->km_ring.ring_mem_mc_addr,
@@ -2657,8 +2659,6 @@ static int psp_hw_fini(void *handle)
 
 	psp_ring_destroy(psp, PSP_RING_TYPE__KM);
 
-	psp_free_shared_bufs(psp);
-
 	return 0;
 }
 
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +2 -0
index 49de3a3eebc7..de04606c2061 100644
@@ -361,6 +361,8 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)
 		amdgpu_bo_free_kernel(&ring->ring_obj,
 				      &ring->gpu_addr,
 				      (void **)&ring->ring);
+	} else {
+		kfree(ring->fence_drv.fences);
 	}
 
 	dma_fence_put(ring->vmid_wait);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +4 -2
index 23f52150ebef..fd029d91a340 100644
@@ -1367,6 +1367,7 @@ struct amdgpu_bo_va *amdgpu_vm_bo_add(struct amdgpu_device *adev,
 	amdgpu_vm_bo_base_init(&bo_va->base, vm, bo);
 
 	bo_va->ref_count = 1;
+	bo_va->last_pt_update = dma_fence_get_stub();
 	INIT_LIST_HEAD(&bo_va->valids);
 	INIT_LIST_HEAD(&bo_va->invalids);
 
@@ -2088,7 +2089,8 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm)
 		vm->update_funcs = &amdgpu_vm_cpu_funcs;
 	else
 		vm->update_funcs = &amdgpu_vm_sdma_funcs;
-	vm->last_update = NULL;
+
+	vm->last_update = dma_fence_get_stub();
 	vm->last_unlocked = dma_fence_get_stub();
 	vm->last_tlb_flush = dma_fence_get_stub();
 
@@ -2213,7 +2215,7 @@ int amdgpu_vm_make_compute(struct amdgpu_device *adev, struct amdgpu_vm *vm)
 		goto unreserve_bo;
 
 	dma_fence_put(vm->last_update);
-	vm->last_update = NULL;
+	vm->last_update = dma_fence_get_stub();
 	vm->is_compute_context = true;
 
 	/* Free the shadow bo for compute VM */
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -5
index bdce36754436..4dd9a85f5c72 100644
@@ -1653,11 +1653,6 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 	if (amdgpu_dc_feature_mask & DC_DISABLE_LTTPR_DP2_0)
 		init_data.flags.allow_lttpr_non_transparent_mode.bits.DP2_0 = true;
 
-	/* Disable SubVP + DRR config by default */
-	init_data.flags.disable_subvp_drr = true;
-	if (amdgpu_dc_feature_mask & DC_ENABLE_SUBVP_DRR)
-		init_data.flags.disable_subvp_drr = false;
-
 	init_data.flags.seamless_boot_edp_requested = false;
 
 	if (check_seamless_boot_capability(adev)) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c +27 -0
index 8d9444db092a..eea103908b09 100644
@@ -233,6 +233,32 @@ void dcn32_init_clocks(struct clk_mgr *clk_mgr_base)
 	DC_FP_END();
 }
 
+static void dcn32_update_clocks_update_dtb_dto(struct clk_mgr_internal *clk_mgr,
+			struct dc_state *context,
+			int ref_dtbclk_khz)
+{
+	struct dccg *dccg = clk_mgr->dccg;
+	uint32_t tg_mask = 0;
+	int i;
+
+	for (i = 0; i < clk_mgr->base.ctx->dc->res_pool->pipe_count; i++) {
+		struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
+		struct dtbclk_dto_params dto_params = {0};
+
+		/* use mask to program DTO once per tg */
+		if (pipe_ctx->stream_res.tg &&
+				!(tg_mask & (1 << pipe_ctx->stream_res.tg->inst))) {
+			tg_mask |= (1 << pipe_ctx->stream_res.tg->inst);
+
+			dto_params.otg_inst = pipe_ctx->stream_res.tg->inst;
+			dto_params.ref_dtbclk_khz = ref_dtbclk_khz;
+
+			dccg->funcs->set_dtbclk_dto(clk_mgr->dccg, &dto_params);
+			//dccg->funcs->set_audio_dtbclk_dto(clk_mgr->dccg, &dto_params);
+		}
+	}
+}
+
 /* Since DPPCLK request to PMFW needs to be exact (due to DPP DTO programming),
  * update DPPCLK to be the exact frequency that will be set after the DPPCLK
  * divider is updated. This will prevent rounding issues that could cause DPP
@@ -570,6 +596,7 @@ static void dcn32_update_clocks(struct clk_mgr *clk_mgr_base,
 		/* DCCG requires KHz precision for DTBCLK */
 		clk_mgr_base->clks.ref_dtbclk_khz =
 				dcn32_smu_set_hard_min_by_freq(clk_mgr, PPCLK_DTBCLK, khz_to_mhz_ceil(new_clocks->ref_dtbclk_khz));
+		dcn32_update_clocks_update_dtb_dto(clk_mgr, context, clk_mgr_base->clks.ref_dtbclk_khz);
 	}
 
 	if (dc->config.forced_clocks == false || (force_reset && safe_to_lower)) {
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +1 -1
index 1d8c5805ef20..77ef474ced07 100644
@@ -712,7 +712,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 		.timing_trace = false,
 		.clock_trace = true,
 		.disable_pplib_clock_request = true,
-		.pipe_split_policy = MPC_SPLIT_DYNAMIC,
+		.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
 		.force_single_disp_pipe_split = false,
 		.disable_dcc = DCC_ENABLE,
 		.vsr_support = true,
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c +8 -0
index 4c2fdfea162f..65c1d754e2d6 100644
@@ -47,6 +47,14 @@ void dccg31_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk)
 {
 	struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
 
+	if (dccg->dpp_clock_gated[dpp_inst]) {
+		/*
+		 * Do not update the DPPCLK DTO if the clock is stopped.
+		 * It is treated the same as if the pipe itself were in PG.
+		 */
+		return;
+	}
+
 	if (dccg->ref_dppclk && req_dppclk) {
 		int ref_dppclk = dccg->ref_dppclk;
 		int modulo, phase;
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c +5 -0
index de7bfba2c179..afeb9f4d5344 100644
@@ -322,6 +322,9 @@ static void dccg314_dpp_root_clock_control(
 {
 	struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);
 
+	if (dccg->dpp_clock_gated[dpp_inst] != clock_on)
+		return;
+
 	if (clock_on) {
 		/* turn off the DTO and leave phase/modulo at max */
 		REG_UPDATE(DPPCLK_DTO_CTRL, DPPCLK_DTO_ENABLE[dpp_inst], 0);
@@ -335,6 +338,8 @@ static void dccg314_dpp_root_clock_control(
 			  DPPCLK0_DTO_PHASE, 0,
 			  DPPCLK0_DTO_MODULO, 1);
 	}
+
+	dccg->dpp_clock_gated[dpp_inst] = !clock_on;
 }
 
 static const struct dccg_funcs dccg314_funcs = {
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c +20 -0
index abeeede38fb3..653b5f15d4ca 100644
@@ -921,6 +921,22 @@ static const struct dc_debug_options debug_defaults_drv = {
 			.afmt = true,
 		}
 	},
+
+	.root_clock_optimization = {
+			.bits = {
+					.dpp = true,
+					.dsc = false,
+					.hdmistream = false,
+					.hdmichar = false,
+					.dpstream = false,
+					.symclk32_se = false,
+					.symclk32_le = false,
+					.symclk_fe = false,
+					.physymclk = false,
+					.dpiasymclk = false,
+			}
+	},
+
 	.seamless_boot_odm_combine = true
 };
 
@@ -1920,6 +1936,10 @@ static bool dcn314_resource_construct(
 		dc->debug = debug_defaults_drv;
 	else
 		dc->debug = debug_defaults_diags;
+
+	/* Disable root clock optimization */
+	dc->debug.root_clock_optimization.u32All = 0;
+
 	// Init the vm_helper
 	if (dc->vm_helper)
 		vm_helper_init(dc->vm_helper, 16);
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c +20 -4
index 7661f8946aa3..9ec767ebf5d1 100644
@@ -1097,10 +1097,6 @@ void dcn20_calculate_dlg_params(struct dc *dc,
 		context->res_ctx.pipe_ctx[i].plane_res.bw.dppclk_khz =
 						pipes[pipe_idx].clks_cfg.dppclk_mhz * 1000;
 		context->res_ctx.pipe_ctx[i].pipe_dlg_param = pipes[pipe_idx].pipe.dest;
-		if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
-			dcn20_adjust_freesync_v_startup(
-				&context->res_ctx.pipe_ctx[i].stream->timing,
-				&context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
 
 		pipe_idx++;
 	}
@@ -1914,6 +1910,7 @@ static bool dcn20_validate_bandwidth_internal(struct dc *dc, struct dc_state *co
 	int vlevel = 0;
 	int pipe_split_from[MAX_PIPES];
 	int pipe_cnt = 0;
+	int i = 0;
 	display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC);
 	DC_LOGGER_INIT(dc->ctx->logger);
 
@@ -1937,6 +1934,15 @@ static bool dcn20_validate_bandwidth_internal(struct dc *dc, struct dc_state *co
 	dcn20_calculate_wm(dc, context, pipes, &pipe_cnt, pipe_split_from, vlevel, fast_validate);
 	dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel);
 
+	for (i = 0; i < dc->res_pool->pipe_count; i++) {
+		if (!context->res_ctx.pipe_ctx[i].stream)
+			continue;
+		if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
+			dcn20_adjust_freesync_v_startup(
+				&context->res_ctx.pipe_ctx[i].stream->timing,
+				&context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
+	}
+
 	BW_VAL_TRACE_END_WATERMARKS();
 
 	goto validate_out;
@@ -2209,6 +2215,7 @@ bool dcn21_validate_bandwidth_fp(struct dc *dc,
 	int vlevel = 0;
 	int pipe_split_from[MAX_PIPES];
 	int pipe_cnt = 0;
+	int i = 0;
 	display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_ATOMIC);
 	DC_LOGGER_INIT(dc->ctx->logger);
 
@@ -2237,6 +2244,15 @@ bool dcn21_validate_bandwidth_fp(struct dc *dc,
 	dcn21_calculate_wm(dc, context, pipes, &pipe_cnt, pipe_split_from, vlevel, fast_validate);
 	dcn20_calculate_dlg_params(dc, context, pipes, pipe_cnt, vlevel);
 
+	for (i = 0; i < dc->res_pool->pipe_count; i++) {
+		if (!context->res_ctx.pipe_ctx[i].stream)
+			continue;
+		if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
+			dcn20_adjust_freesync_v_startup(
+				&context->res_ctx.pipe_ctx[i].stream->timing,
+				&context->res_ctx.pipe_ctx[i].pipe_dlg_param.vstartup_start);
+	}
+
 	BW_VAL_TRACE_END_WATERMARKS();
 
 	goto validate_out;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +0 -4
index d8b4119820bf..1bfda6e2b307 100644
@@ -880,10 +880,6 @@ static bool subvp_drr_schedulable(struct dc *dc, struct dc_state *context, struc
 	int16_t stretched_drr_us = 0;
 	int16_t drr_stretched_vblank_us = 0;
 	int16_t max_vblank_mallregion = 0;
-	const struct dc_config *config = &dc->config;
-
-	if (config->disable_subvp_drr)
-		return false;
 
 	// Find SubVP pipe
 	for (i = 0; i < dc->res_pool->pipe_count; i++) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +2 -2
index d75248b6cae9..9a5150e96017 100644
@@ -811,7 +811,7 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman
 					v->SwathHeightC[k],
 					TWait,
 					(v->DRAMSpeedPerState[mode_lib->vba.VoltageLevel] <= MEM_STROBE_FREQ_MHZ ||
-						v->DCFCLKPerState[mode_lib->vba.VoltageLevel] <= MIN_DCFCLK_FREQ_MHZ) ?
+						v->DCFCLKPerState[mode_lib->vba.VoltageLevel] <= DCFCLK_FREQ_EXTRA_PREFETCH_REQ_MHZ) ?
 							mode_lib->vba.ip.min_prefetch_in_strobe_us : 0,
 					/* Output */
 					&v->DSTXAfterScaler[k],
@@ -3311,7 +3311,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
 							v->swath_width_chroma_ub_this_state[k],
 							v->SwathHeightYThisState[k],
 							v->SwathHeightCThisState[k], v->TWait,
-							(v->DRAMSpeedPerState[i] <= MEM_STROBE_FREQ_MHZ || v->DCFCLKState[i][j] <= MIN_DCFCLK_FREQ_MHZ) ?
+							(v->DRAMSpeedPerState[i] <= MEM_STROBE_FREQ_MHZ || v->DCFCLKState[i][j] <= DCFCLK_FREQ_EXTRA_PREFETCH_REQ_MHZ) ?
 									mode_lib->vba.ip.min_prefetch_in_strobe_us : 0,
 
 							/* Output */
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.h +1 -1
index d98e36a9a09c..c4745d63039b 100644
@@ -53,7 +53,7 @@
 #define BPP_BLENDED_PIPE 0xffffffff
 
 #define MEM_STROBE_FREQ_MHZ 1600
-#define MIN_DCFCLK_FREQ_MHZ 200
+#define DCFCLK_FREQ_EXTRA_PREFETCH_REQ_MHZ 300
 #define MEM_STROBE_MAX_DELIVERY_TIME_US 60.0
 
 struct display_mode_lib;
drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h +1 -0
index ad6acd1b34e1..9651cccb084a 100644
@@ -68,6 +68,7 @@ struct dccg {
 	const struct dccg_funcs *funcs;
 	int pipe_dppclk_khz[MAX_PIPES];
 	int ref_dppclk;
+	bool dpp_clock_gated[MAX_PIPES];
 	//int dtbclk_khz[MAX_PIPES];/* TODO needs to be removed */
 	//int audio_dtbclk_khz;/* TODO needs to be removed */
 	//int ref_dtbclk_khz;/* TODO needs to be removed */
drivers/gpu/drm/amd/include/amd_shared.h +0 -1
index e4a22c68517d..f175e65b853a 100644
@@ -240,7 +240,6 @@ enum DC_FEATURE_MASK {
 	DC_DISABLE_LTTPR_DP2_0 = (1 << 6), //0x40, disabled by default
 	DC_PSR_ALLOW_SMU_OPT = (1 << 7), //0x80, disabled by default
 	DC_PSR_ALLOW_MULTI_DISP_OPT = (1 << 8), //0x100, disabled by default
-	DC_ENABLE_SUBVP_DRR = (1 << 9), // 0x200, disabled by default
 };
 
 enum DC_DEBUG_MASK {
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +2 -2
index ea03e8d9a3f6..818379276a58 100644
@@ -1573,9 +1573,9 @@ static int smu_disable_dpms(struct smu_context *smu)
 
 	/*
 	 * For SMU 13.0.4/11, PMFW will handle the features disablement properly
-	 * for gpu reset case. Driver involvement is unnecessary.
+	 * for gpu reset and S0i3 cases. Driver involvement is unnecessary.
 	 */
-	if (amdgpu_in_reset(adev)) {
+	if (amdgpu_in_reset(adev) || adev->in_s0ix) {
 		switch (adev->ip_versions[MP1_HWIP][0]) {
 		case IP_VERSION(13, 0, 4):
 		case IP_VERSION(13, 0, 11):
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +7 -7
index 0cda3b276f61..f0800c0c5168 100644
@@ -588,7 +588,9 @@ static int sienna_cichlid_tables_init(struct smu_context *smu)
 	return -ENOMEM;
 }
 
-static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *smu)
+static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *smu,
+							   bool use_metrics_v3,
+							   bool use_metrics_v2)
 {
 	struct smu_table_context *smu_table= &smu->smu_table;
 	SmuMetricsExternal_t *metrics_ext =
@@ -596,13 +598,11 @@ static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *s
 	uint32_t throttler_status = 0;
 	int i;
 
-	if ((smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 7)) &&
-	     (smu->smc_fw_version >= 0x3A4900)) {
+	if (use_metrics_v3) {
 		for (i = 0; i < THROTTLER_COUNT; i++)
 			throttler_status |=
 				(metrics_ext->SmuMetrics_V3.ThrottlingPercentage[i] ? 1U << i : 0);
-	} else if ((smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 7)) &&
-	     (smu->smc_fw_version >= 0x3A4300)) {
+	} else if (use_metrics_v2) {
 		for (i = 0; i < THROTTLER_COUNT; i++)
 			throttler_status |=
 				(metrics_ext->SmuMetrics_V2.ThrottlingPercentage[i] ? 1U << i : 0);
@@ -864,7 +864,7 @@ static int sienna_cichlid_get_smu_metrics_data(struct smu_context *smu,
 			metrics->TemperatureVrSoc) * SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
 		break;
 	case METRICS_THROTTLER_STATUS:
-		*value = sienna_cichlid_get_throttler_status_locked(smu);
+		*value = sienna_cichlid_get_throttler_status_locked(smu, use_metrics_v3, use_metrics_v2);
 		break;
 	case METRICS_CURR_FANSPEED:
 		*value = use_metrics_v3 ? metrics_v3->CurrFanSpeed :
@@ -4017,7 +4017,7 @@ static ssize_t sienna_cichlid_get_gpu_metrics(struct smu_context *smu,
 	gpu_metrics->current_dclk1 = use_metrics_v3 ? metrics_v3->CurrClock[PPCLK_DCLK_1] :
 		use_metrics_v2 ? metrics_v2->CurrClock[PPCLK_DCLK_1] : metrics->CurrClock[PPCLK_DCLK_1];
 
-	gpu_metrics->throttle_status = sienna_cichlid_get_throttler_status_locked(smu);
+	gpu_metrics->throttle_status = sienna_cichlid_get_throttler_status_locked(smu, use_metrics_v3, use_metrics_v2);
 	gpu_metrics->indep_throttle_status =
 			smu_cmn_get_indep_throttler_status(gpu_metrics->throttle_status,
 							   sienna_cichlid_throttler_map);
drivers/gpu/drm/drm_edid.c +8 -21
index 0454da505687..e1a04461ba88 100644
@@ -3424,6 +3424,10 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_connector *connecto
 			    connector->base.id, connector->name);
 		return NULL;
 	}
+	if (!(pt->misc & DRM_EDID_PT_SEPARATE_SYNC)) {
+		drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Composite sync not supported\n",
+			    connector->base.id, connector->name);
+	}
 
 	/* it is incorrect if hsync/vsync width is zero */
 	if (!hsync_pulse_width || !vsync_pulse_width) {
@@ -3470,27 +3474,10 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_connector *connecto
 	if (info->quirks & EDID_QUIRK_DETAILED_SYNC_PP) {
 		mode->flags |= DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC;
 	} else {
-		switch (pt->misc & DRM_EDID_PT_SYNC_MASK) {
-		case DRM_EDID_PT_ANALOG_CSYNC:
-		case DRM_EDID_PT_BIPOLAR_ANALOG_CSYNC:
-			drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Analog composite sync!\n",
-				    connector->base.id, connector->name);
-			mode->flags |= DRM_MODE_FLAG_CSYNC | DRM_MODE_FLAG_NCSYNC;
-			break;
-		case DRM_EDID_PT_DIGITAL_CSYNC:
-			drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Digital composite sync!\n",
-				    connector->base.id, connector->name);
-			mode->flags |= DRM_MODE_FLAG_CSYNC;
-			mode->flags |= (pt->misc & DRM_EDID_PT_HSYNC_POSITIVE) ?
-				DRM_MODE_FLAG_PCSYNC : DRM_MODE_FLAG_NCSYNC;
-			break;
-		case DRM_EDID_PT_DIGITAL_SEPARATE_SYNC:
-			mode->flags |= (pt->misc & DRM_EDID_PT_HSYNC_POSITIVE) ?
-				DRM_MODE_FLAG_PHSYNC : DRM_MODE_FLAG_NHSYNC;
-			mode->flags |= (pt->misc & DRM_EDID_PT_VSYNC_POSITIVE) ?
-				DRM_MODE_FLAG_PVSYNC : DRM_MODE_FLAG_NVSYNC;
-			break;
-		}
+		mode->flags |= (pt->misc & DRM_EDID_PT_HSYNC_POSITIVE) ?
+			DRM_MODE_FLAG_PHSYNC : DRM_MODE_FLAG_NHSYNC;
+		mode->flags |= (pt->misc & DRM_EDID_PT_VSYNC_POSITIVE) ?
+			DRM_MODE_FLAG_PVSYNC : DRM_MODE_FLAG_NVSYNC;
 	}
 
 set_size:
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -1
index e12ba458636c..5ee0479ae6de 100644
@@ -2752,7 +2752,7 @@ static struct intel_sdvo_connector *intel_sdvo_connector_alloc(void)
 	__drm_atomic_helper_connector_reset(&sdvo_connector->base.base,
 					    &conn_state->base.base);
 
-	INIT_LIST_HEAD(&sdvo_connector->base.panel.fixed_modes);
+	intel_panel_init_alloc(&sdvo_connector->base);
 
 	return sdvo_connector;
 }
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c +14 -8
index cc18e8f66486..78822331f1b7 100644
@@ -470,12 +470,19 @@ int intel_guc_slpc_set_ignore_eff_freq(struct intel_guc_slpc *slpc, bool val)
 	ret = slpc_set_param(slpc,
 			     SLPC_PARAM_IGNORE_EFFICIENT_FREQUENCY,
 			     val);
-	if (ret)
+	if (ret) {
 		guc_probe_error(slpc_to_guc(slpc), "Failed to set efficient freq(%d): %pe\n",
 				val, ERR_PTR(ret));
-	else
+	} else {
 		slpc->ignore_eff_freq = val;
 
+		/* Set min to RPn when we disable efficient freq */
+		if (val)
+			ret = slpc_set_param(slpc,
+					     SLPC_PARAM_GLOBAL_MIN_GT_UNSLICE_FREQ_MHZ,
+					     slpc->min_freq);
+	}
+
 	intel_runtime_pm_put(&i915->runtime_pm, wakeref);
 	mutex_unlock(&slpc->lock);
 	return ret;
@@ -602,9 +609,8 @@ static int slpc_set_softlimits(struct intel_guc_slpc *slpc)
 		return ret;
 
 	if (!slpc->min_freq_softlimit) {
-		ret = intel_guc_slpc_get_min_freq(slpc, &slpc->min_freq_softlimit);
-		if (unlikely(ret))
-			return ret;
+		/* Min softlimit is initialized to RPn */
+		slpc->min_freq_softlimit = slpc->min_freq;
 		slpc_to_gt(slpc)->defaults.min_freq = slpc->min_freq_softlimit;
 	} else {
 		return intel_guc_slpc_set_min_freq(slpc,
@@ -755,6 +761,9 @@ int intel_guc_slpc_enable(struct intel_guc_slpc *slpc)
 		return ret;
 	}
 
+	/* Set cached value of ignore efficient freq */
+	intel_guc_slpc_set_ignore_eff_freq(slpc, slpc->ignore_eff_freq);
+
 	/* Revert SLPC min/max to softlimits if necessary */
 	ret = slpc_set_softlimits(slpc);
 	if (unlikely(ret)) {
@@ -765,9 +774,6 @@ int intel_guc_slpc_enable(struct intel_guc_slpc *slpc)
 	/* Set cached media freq ratio mode */
 	intel_guc_slpc_set_media_ratio_mode(slpc, slpc->media_ratio_mode);
 
-	/* Set cached value of ignore efficient freq */
-	intel_guc_slpc_set_ignore_eff_freq(slpc, slpc->ignore_eff_freq);
-
 	return 0;
 }
 
drivers/gpu/drm/nouveau/nouveau_connector.c +7 -4
index a2e0033e8a26..622f6eb9a8bf 100644
@@ -1408,8 +1408,7 @@ nouveau_connector_create(struct drm_device *dev,
 		ret = nvif_conn_ctor(&disp->disp, nv_connector->base.name, nv_connector->index,
 				     &nv_connector->conn);
 		if (ret) {
-			kfree(nv_connector);
-			return ERR_PTR(ret);
+			goto drm_conn_err;
 		}
 
 		ret = nvif_conn_event_ctor(&nv_connector->conn, "kmsHotplug",
@@ -1426,8 +1425,7 @@ nouveau_connector_create(struct drm_device *dev,
 			if (ret) {
 				nvif_event_dtor(&nv_connector->hpd);
 				nvif_conn_dtor(&nv_connector->conn);
-				kfree(nv_connector);
-				return ERR_PTR(ret);
+				goto drm_conn_err;
 			}
 		}
 	}
@@ -1475,4 +1473,9 @@ nouveau_connector_create(struct drm_device *dev,
 
 	drm_connector_register(connector);
 	return connector;
+
+drm_conn_err:
+	drm_connector_cleanup(connector);
+	kfree(nv_connector);
+	return ERR_PTR(ret);
 }
drivers/gpu/drm/panel/panel-simple.c +12 -12
index e02249b212c2..cf6b146acc32 100644
@@ -969,21 +969,21 @@ static const struct panel_desc auo_g104sn02 = {
 	.connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
-static const struct drm_display_mode auo_g121ean01_mode = {
-	.clock = 66700,
-	.hdisplay = 1280,
-	.hsync_start = 1280 + 58,
-	.hsync_end = 1280 + 58 + 8,
-	.htotal = 1280 + 58 + 8 + 70,
-	.vdisplay = 800,
-	.vsync_start = 800 + 6,
-	.vsync_end = 800 + 6 + 4,
-	.vtotal = 800 + 6 + 4 + 10,
+static const struct display_timing auo_g121ean01_timing = {
+	.pixelclock = { 60000000, 74400000, 90000000 },
+	.hactive = { 1280, 1280, 1280 },
+	.hfront_porch = { 20, 50, 100 },
+	.hback_porch = { 20, 50, 100 },
+	.hsync_len = { 30, 100, 200 },
+	.vactive = { 800, 800, 800 },
+	.vfront_porch = { 2, 10, 25 },
+	.vback_porch = { 2, 10, 25 },
+	.vsync_len = { 4, 18, 50 },
 };
 
 static const struct panel_desc auo_g121ean01 = {
-	.modes = &auo_g121ean01_mode,
-	.num_modes = 1,
+	.timings = &auo_g121ean01_timing,
+	.num_timings = 1,
 	.bpc = 8,
 	.size = {
 		.width = 261,
drivers/gpu/drm/qxl/qxl_drv.h +1 -1
index ea993d7162e8..307a890fde13 100644
@@ -310,7 +310,7 @@ int qxl_gem_object_create_with_handle(struct qxl_device *qdev,
 				      u32 domain,
 				      size_t size,
 				      struct qxl_surface *surf,
-				      struct qxl_bo **qobj,
+				      struct drm_gem_object **gobj,
 				      uint32_t *handle);
 void qxl_gem_object_free(struct drm_gem_object *gobj);
 int qxl_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv);
drivers/gpu/drm/qxl/qxl_dumb.c +4 -1
index d636ba685451..17df5c7ccf69 100644
@@ -34,6 +34,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv,
 {
 	struct qxl_device *qdev = to_qxl(dev);
 	struct qxl_bo *qobj;
+	struct drm_gem_object *gobj;
 	uint32_t handle;
 	int r;
 	struct qxl_surface surf;
@@ -62,11 +63,13 @@ int qxl_mode_dumb_create(struct drm_file *file_priv,
 
 	r = qxl_gem_object_create_with_handle(qdev, file_priv,
 					      QXL_GEM_DOMAIN_CPU,
-					      args->size, &surf, &qobj,
+					      args->size, &surf, &gobj,
 					      &handle);
 	if (r)
 		return r;
+	qobj = gem_to_qxl_bo(gobj);
 	qobj->is_dumb = true;
+	drm_gem_object_put(gobj);
 	args->pitch = pitch;
 	args->handle = handle;
 	return 0;
drivers/gpu/drm/qxl/qxl_gem.c +17 -8
index a08da0bd9098..fc5e3763c359 100644
@@ -72,32 +72,41 @@ int qxl_gem_object_create(struct qxl_device *qdev, int size,
 	return 0;
 }
 
+/*
+ * If the caller passed a valid gobj pointer, it is responsible to call
+ * drm_gem_object_put() when it no longer needs to acess the object.
+ *
+ * If gobj is NULL, it is handled internally.
+ */
 int qxl_gem_object_create_with_handle(struct qxl_device *qdev,
 				      struct drm_file *file_priv,
 				      u32 domain,
 				      size_t size,
 				      struct qxl_surface *surf,
-				      struct qxl_bo **qobj,
+				      struct drm_gem_object **gobj,
 				      uint32_t *handle)
 {
-	struct drm_gem_object *gobj;
 	int r;
+	struct drm_gem_object *local_gobj;
 
-	BUG_ON(!qobj);
 	BUG_ON(!handle);
 
 	r = qxl_gem_object_create(qdev, size, 0,
 				  domain,
 				  false, false, surf,
-				  &gobj);
+				  &local_gobj);
 	if (r)
 		return -ENOMEM;
-	r = drm_gem_handle_create(file_priv, gobj, handle);
+	r = drm_gem_handle_create(file_priv, local_gobj, handle);
 	if (r)
 		return r;
-	/* drop reference from allocate - handle holds it now */
-	*qobj = gem_to_qxl_bo(gobj);
-	drm_gem_object_put(gobj);
+
+	if (gobj)
+		*gobj = local_gobj;
+	else
+		/* drop reference from allocate - handle holds it now */
+		drm_gem_object_put(local_gobj);
+
 	return 0;
 }
 
drivers/gpu/drm/qxl/qxl_ioctl.c +2 -4
index 30f58b21372a..dd0f834d881c 100644
@@ -38,7 +38,6 @@ int qxl_alloc_ioctl(struct drm_device *dev, void *data, struct drm_file *file_pr
 	struct qxl_device *qdev = to_qxl(dev);
 	struct drm_qxl_alloc *qxl_alloc = data;
 	int ret;
-	struct qxl_bo *qobj;
 	uint32_t handle;
 	u32 domain = QXL_GEM_DOMAIN_VRAM;
 
@@ -50,7 +49,7 @@ int qxl_alloc_ioctl(struct drm_device *dev, void *data, struct drm_file *file_pr
 						domain,
 						qxl_alloc->size,
 						NULL,
-						&qobj, &handle);
+						NULL, &handle);
 	if (ret) {
 		DRM_ERROR("%s: failed to create gem ret=%d\n",
 			  __func__, ret);
@@ -386,7 +385,6 @@ int qxl_alloc_surf_ioctl(struct drm_device *dev, void *data, struct drm_file *fi
 {
 	struct qxl_device *qdev = to_qxl(dev);
 	struct drm_qxl_alloc_surf *param = data;
-	struct qxl_bo *qobj;
 	int handle;
 	int ret;
 	int size, actual_stride;
@@ -406,7 +404,7 @@ int qxl_alloc_surf_ioctl(struct drm_device *dev, void *data, struct drm_file *fi
 						QXL_GEM_DOMAIN_SURFACE,
 						size,
 						&surf,
-						&qobj, &handle);
+						NULL, &handle);
 	if (ret) {
 		DRM_ERROR("%s: failed to create gem ret=%d\n",
 			  __func__, ret);
drivers/gpu/drm/rcar-du/rcar_du_crtc.c +3 -34
index d6d29be6b4f4..7e175dbfd892 100644
@@ -223,20 +223,6 @@ static void rcar_du_crtc_set_display_timing(struct rcar_du_crtc *rcrtc)
 		 * DU channels that have a display PLL can't use the internal
 		 * system clock, and have no internal clock divider.
 		 */
-
-		/*
-		 * The H3 ES1.x exhibits dot clock duty cycle stability issues.
-		 * We can work around them by configuring the DPLL to twice the
-		 * desired frequency, coupled with a /2 post-divider. Restrict
-		 * the workaround to H3 ES1.x as ES2.0 and all other SoCs have
-		 * no post-divider when a display PLL is present (as shown by
-		 * the workaround breaking HDMI output on M3-W during testing).
-		 */
-		if (rcdu->info->quirks & RCAR_DU_QUIRK_H3_ES1_PCLK_STABILITY) {
-			target *= 2;
-			div = 1;
-		}
-
 		extclk = clk_get_rate(rcrtc->extclock);
 		rcar_du_dpll_divider(rcrtc, &dpll, extclk, target);
 
@@ -245,30 +231,13 @@ static void rcar_du_crtc_set_display_timing(struct rcar_du_crtc *rcrtc)
 		       | DPLLCR_N(dpll.n) | DPLLCR_M(dpll.m)
 		       | DPLLCR_STBY;
 
-		if (rcrtc->index == 1) {
+		if (rcrtc->index == 1)
 			dpllcr |= DPLLCR_PLCS1
 			       |  DPLLCR_INCS_DOTCLKIN1;
-		} else {
-			dpllcr |= DPLLCR_PLCS0_PLL
+		else
+			dpllcr |= DPLLCR_PLCS0
 			       |  DPLLCR_INCS_DOTCLKIN0;
 
-			/*
-			 * On ES2.x we have a single mux controlled via bit 21,
-			 * which selects between DCLKIN source (bit 21 = 0) and
-			 * a PLL source (bit 21 = 1), where the PLL is always
-			 * PLL1.
-			 *
-			 * On ES1.x we have an additional mux, controlled
-			 * via bit 20, for choosing between PLL0 (bit 20 = 0)
-			 * and PLL1 (bit 20 = 1). We always want to use PLL1,
-			 * so on ES1.x, in addition to setting bit 21, we need
-			 * to set the bit 20.
-			 */
-
-			if (rcdu->info->quirks & RCAR_DU_QUIRK_H3_ES1_PLL)
-				dpllcr |= DPLLCR_PLCS0_H3ES1X_PLL1;
-		}
-
 		rcar_du_group_write(rcrtc->group, DPLLCR, dpllcr);
 
 		escr = ESCR_DCLKSEL_DCLKIN | div;
drivers/gpu/drm/rcar-du/rcar_du_drv.c +0 -48

78 lines not on this page · raw message

drivers/gpu/drm/rcar-du/rcar_du_drv.h +0 -2
index acc3673fefe1..5cfa2bb7ad93 100644
@@ -34,8 +34,6 @@ struct rcar_du_device;
 #define RCAR_DU_FEATURE_NO_BLENDING	BIT(5)	/* PnMR.SPIM does not have ALP nor EOR bits */
 
 #define RCAR_DU_QUIRK_ALIGN_128B	BIT(0)	/* Align pitches to 128 bytes */
-#define RCAR_DU_QUIRK_H3_ES1_PCLK_STABILITY BIT(1)	/* H3 ES1 has pclk stability issue */
-#define RCAR_DU_QUIRK_H3_ES1_PLL	BIT(2)	/* H3 ES1 PLL setup differs from non-ES1 */
 
 enum rcar_du_output {
 	RCAR_DU_OUTPUT_DPAD0,
drivers/gpu/drm/rcar-du/rcar_du_regs.h +1 -2
index 6c750fab6ebb..391de6661d8b 100644
@@ -283,8 +283,7 @@
 #define DPLLCR			0x20044
 #define DPLLCR_CODE		(0x95 << 24)
 #define DPLLCR_PLCS1		(1 << 23)
-#define DPLLCR_PLCS0_PLL	(1 << 21)
-#define DPLLCR_PLCS0_H3ES1X_PLL1	(1 << 20)
+#define DPLLCR_PLCS0		(1 << 21)
 #define DPLLCR_CLKE		(1 << 18)
 #define DPLLCR_FDPLL(n)		((n) << 12)
 #define DPLLCR_N(n)		((n) << 5)
drivers/gpu/drm/scheduler/sched_entity.c +6 -0
index e0a8890a62e2..3e2a31d8190e 100644
@@ -448,6 +448,12 @@ struct drm_sched_job *drm_sched_entity_pop_job(struct drm_sched_entity *entity)
 			drm_sched_rq_update_fifo(entity, next->submit_ts);
 	}
 
+	/* Jobs and entities might have different lifecycles. Since we're
+	 * removing the job from the entities queue, set the jobs entity pointer
+	 * to NULL to prevent any future access of the entity through this job.
+	 */
+	sched_job->entity = NULL;
+
 	return sched_job;
 }
 
drivers/gpu/drm/scheduler/sched_main.c +4 -0
index aea5a90ff98b..cdd67676c3d1 100644
@@ -42,6 +42,10 @@
  *    the hardware.
  *
  * The jobs in a entity are always scheduled in the order that they were pushed.
+ *
+ * Note that once a job was taken from the entities queue and pushed to the
+ * hardware, i.e. the pending queue, the entity must not be referenced anymore
+ * through the jobs entity pointer.
  */
 
 #include <linux/kthread.h>
drivers/gpu/drm/stm/ltdc.c +3 -1
index 03c6becda795..b8be4c1db423 100644
@@ -1145,7 +1145,7 @@ static void ltdc_crtc_disable_vblank(struct drm_crtc *crtc)
 
 static int ltdc_crtc_set_crc_source(struct drm_crtc *crtc, const char *source)
 {
-	struct ltdc_device *ldev = crtc_to_ltdc(crtc);
+	struct ltdc_device *ldev;
 	int ret;
 
 	DRM_DEBUG_DRIVER("\n");
@@ -1153,6 +1153,8 @@ static int ltdc_crtc_set_crc_source(struct drm_crtc *crtc, const char *source)
 	if (!crtc)
 		return -ENODEV;
 
+	ldev = crtc_to_ltdc(crtc);
+
 	if (source && strcmp(source, "auto") == 0) {
 		ldev->crc_active = true;
 		ret = regmap_set_bits(ldev->regmap, LTDC_GCR, GCR_CRCEN);
drivers/hid/hid-logitech-hidpp.c +4 -0
index f7e06d433a91..dfe8e09a18de 100644
@@ -4608,6 +4608,8 @@ static const struct hid_device_id hidpp_devices[] = {
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC086) },
 	{ /* Logitech G903 Hero Gaming Mouse over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC091) },
+	{ /* Logitech G915 TKL Keyboard over USB */
+	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC343) },
 	{ /* Logitech G920 Wheel over USB */
 	  HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL),
 		.driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS},
@@ -4630,6 +4632,8 @@ static const struct hid_device_id hidpp_devices[] = {
 	{ /* MX5500 keyboard over Bluetooth */
 	  HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb30b),
 	  .driver_data = HIDPP_QUIRK_HIDPP_CONSUMER_VENDOR_KEYS },
+	{ /* Logitech G915 TKL keyboard over Bluetooth */
+	  HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb35f) },
 	{ /* M-RCQ142 V470 Cordless Laser Mouse over Bluetooth */
 	  HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, 0xb008) },
 	{ /* MX Master mouse over Bluetooth */
drivers/hid/i2c-hid/i2c-hid-of-goodix.c +15 -1
index 0060e3dcd775..db4639db9840 100644
@@ -28,6 +28,7 @@ struct i2c_hid_of_goodix {
 	struct regulator *vdd;
 	struct regulator *vddio;
 	struct gpio_desc *reset_gpio;
+	bool no_reset_during_suspend;
 	const struct goodix_i2c_hid_timing_data *timings;
 };
 
@@ -37,6 +38,14 @@ static int goodix_i2c_hid_power_up(struct i2chid_ops *ops)
 		container_of(ops, struct i2c_hid_of_goodix, ops);
 	int ret;
 
+	/*
+	 * We assert reset GPIO here (instead of during power-down) to ensure
+	 * the device will have a clean state after powering up, just like the
+	 * normal scenarios will have.
+	 */
+	if (ihid_goodix->no_reset_during_suspend)
+		gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1);
+
 	ret = regulator_enable(ihid_goodix->vdd);
 	if (ret)
 		return ret;
@@ -60,7 +69,9 @@ static void goodix_i2c_hid_power_down(struct i2chid_ops *ops)
 	struct i2c_hid_of_goodix *ihid_goodix =
 		container_of(ops, struct i2c_hid_of_goodix, ops);
 
-	gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1);
+	if (!ihid_goodix->no_reset_during_suspend)
+		gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1);
+
 	regulator_disable(ihid_goodix->vddio);
 	regulator_disable(ihid_goodix->vdd);
 }
@@ -91,6 +102,9 @@ static int i2c_hid_of_goodix_probe(struct i2c_client *client)
 	if (IS_ERR(ihid_goodix->vddio))
 		return PTR_ERR(ihid_goodix->vddio);
 
+	ihid_goodix->no_reset_during_suspend =
+		of_property_read_bool(client->dev.of_node, "goodix,no-reset-during-suspend");
+
 	ihid_goodix->timings = device_get_match_data(&client->dev);
 
 	return i2c_hid_core_probe(client, &ihid_goodix->ops, 0x0001, 0);
drivers/hid/intel-ish-hid/ipc/hw-ish.h +1 -0
index fc108f19a64c..e99f3a3c65e1 100644
@@ -33,6 +33,7 @@
 #define ADL_N_DEVICE_ID		0x54FC
 #define RPL_S_DEVICE_ID		0x7A78
 #define MTL_P_DEVICE_ID		0x7E45
+#define ARL_H_DEVICE_ID		0x7745
 
 #define	REVISION_ID_CHT_A0	0x6
 #define	REVISION_ID_CHT_Ax_SI	0x0
drivers/hid/intel-ish-hid/ipc/pci-ish.c +1 -0
index 7120b30ac51d..55cb25038e63 100644
@@ -44,6 +44,7 @@ static const struct pci_device_id ish_pci_tbl[] = {
 	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, ADL_N_DEVICE_ID)},
 	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, RPL_S_DEVICE_ID)},
 	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, MTL_P_DEVICE_ID)},
+	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, ARL_H_DEVICE_ID)},
 	{0, }
 };
 MODULE_DEVICE_TABLE(pci, ish_pci_tbl);
drivers/i2c/busses/i2c-bcm-iproc.c +7 -4
index 85d8a6b04885..30a2a3200bed 100644
@@ -233,13 +233,14 @@ static inline u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 				   u32 offset)
 {
 	u32 val;
+	unsigned long flags;
 
 	if (iproc_i2c->idm_base) {
-		spin_lock(&iproc_i2c->idm_lock);
+		spin_lock_irqsave(&iproc_i2c->idm_lock, flags);
 		writel(iproc_i2c->ape_addr_mask,
 		       iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET);
 		val = readl(iproc_i2c->base + offset);
-		spin_unlock(&iproc_i2c->idm_lock);
+		spin_unlock_irqrestore(&iproc_i2c->idm_lock, flags);
 	} else {
 		val = readl(iproc_i2c->base + offset);
 	}
@@ -250,12 +251,14 @@ static inline u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 static inline void iproc_i2c_wr_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
 				    u32 offset, u32 val)
 {
+	unsigned long flags;
+
 	if (iproc_i2c->idm_base) {
-		spin_lock(&iproc_i2c->idm_lock);
+		spin_lock_irqsave(&iproc_i2c->idm_lock, flags);
 		writel(iproc_i2c->ape_addr_mask,
 		       iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET);
 		writel(val, iproc_i2c->base + offset);
-		spin_unlock(&iproc_i2c->idm_lock);
+		spin_unlock_irqrestore(&iproc_i2c->idm_lock, flags);
 	} else {
 		writel(val, iproc_i2c->base + offset);
 	}
drivers/i2c/busses/i2c-designware-master.c +14 -2
index 55ea91a63382..c51fc1f4b97e 100644
@@ -526,9 +526,21 @@ i2c_dw_read(struct dw_i2c_dev *dev)
 			u32 flags = msgs[dev->msg_read_idx].flags;
 
 			regmap_read(dev->map, DW_IC_DATA_CMD, &tmp);
+			tmp &= DW_IC_DATA_CMD_DAT;
 			/* Ensure length byte is a valid value */
-			if (flags & I2C_M_RECV_LEN &&
-			    (tmp & DW_IC_DATA_CMD_DAT) <= I2C_SMBUS_BLOCK_MAX && tmp > 0) {
+			if (flags & I2C_M_RECV_LEN) {
+				/*
+				 * if IC_EMPTYFIFO_HOLD_MASTER_EN is set, which cannot be
+				 * detected from the registers, the controller can be
+				 * disabled if the STOP bit is set. But it is only set
+				 * after receiving block data response length in
+				 * I2C_FUNC_SMBUS_BLOCK_DATA case. That needs to read
+				 * another byte with STOP bit set when the block data
+				 * response length is invalid to complete the transaction.
+				 */
+				if (!tmp || tmp > I2C_SMBUS_BLOCK_MAX)
+					tmp = 1;
+
 				len = i2c_dw_recv_len(dev, tmp);
 			}
 			*buf++ = tmp;
drivers/i2c/busses/i2c-hisi.c +8 -0
index e067671b3ce2..0980c773cb5b 100644
@@ -330,6 +330,14 @@ static irqreturn_t hisi_i2c_irq(int irq, void *context)
 	struct hisi_i2c_controller *ctlr = context;
 	u32 int_stat;
 
+	/*
+	 * Don't handle the interrupt if cltr->completion is NULL. We may
+	 * reach here because the interrupt is spurious or the transfer is
+	 * started by another port (e.g. firmware) rather than us.
+	 */
+	if (!ctlr->completion)
+		return IRQ_NONE;
+
 	int_stat = readl(ctlr->iobase + HISI_I2C_INT_MSTAT);
 	hisi_i2c_clear_int(ctlr, int_stat);
 	if (!(int_stat & HISI_I2C_INT_ALL))
drivers/i2c/busses/i2c-tegra.c +1 -1
index 157066f06a32..d561cf066d70 100644
@@ -449,7 +449,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev)
 	if (i2c_dev->is_vi)
 		return 0;
 
-	if (!i2c_dev->hw->has_apb_dma) {
+	if (i2c_dev->hw->has_apb_dma) {
 		if (!IS_ENABLED(CONFIG_TEGRA20_APB_DMA)) {
 			dev_dbg(i2c_dev->dev, "APB DMA support not enabled\n");
 			return 0;
drivers/infiniband/hw/bnxt_re/bnxt_re.h +2 -0
index 2c95e6f3d47a..eef3ef3fabb4 100644
@@ -179,6 +179,8 @@ struct bnxt_re_dev {
 #define BNXT_RE_ROCEV2_IPV4_PACKET	2
 #define BNXT_RE_ROCEV2_IPV6_PACKET	3
 
+#define BNXT_RE_CHECK_RC(x) ((x) && ((x) != -ETIMEDOUT))
+
 static inline struct device *rdev_to_dev(struct bnxt_re_dev *rdev)
 {
 	if (rdev)
drivers/infiniband/hw/bnxt_re/ib_verbs.c +12 -4
index ebe6852c40e8..e7f153ee2754 100644
@@ -614,12 +614,20 @@ int bnxt_re_destroy_ah(struct ib_ah *ib_ah, u32 flags)
 {
 	struct bnxt_re_ah *ah = container_of(ib_ah, struct bnxt_re_ah, ib_ah);
 	struct bnxt_re_dev *rdev = ah->rdev;
+	bool block = true;
+	int rc = 0;
 
-	bnxt_qplib_destroy_ah(&rdev->qplib_res, &ah->qplib_ah,
-			      !(flags & RDMA_DESTROY_AH_SLEEPABLE));
+	block = !(flags & RDMA_DESTROY_AH_SLEEPABLE);
+	rc = bnxt_qplib_destroy_ah(&rdev->qplib_res, &ah->qplib_ah, block);
+	if (BNXT_RE_CHECK_RC(rc)) {
+		if (rc == -ETIMEDOUT)
+			rc = 0;
+		else
+			goto fail;
+	}
 	atomic_dec(&rdev->ah_count);
-
-	return 0;
+fail:
+	return rc;
 }
 
 static u8 bnxt_re_stack_to_dev_nw_type(enum rdma_network_type ntype)
drivers/infiniband/hw/bnxt_re/qplib_sp.c +5 -3
index b967a17a44be..10919532bca2 100644
@@ -468,13 +468,14 @@ int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
 	return 0;
 }
 
-void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
-			   bool block)
+int bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
+			  bool block)
 {
 	struct bnxt_qplib_rcfw *rcfw = res->rcfw;
 	struct creq_destroy_ah_resp resp = {};
 	struct bnxt_qplib_cmdqmsg msg = {};
 	struct cmdq_destroy_ah req = {};
+	int rc;
 
 	/* Clean up the AH table in the device */
 	bnxt_qplib_rcfw_cmd_prep((struct cmdq_base *)&req,
@@ -485,7 +486,8 @@ void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
 
 	bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req),
 				sizeof(resp), block);
-	bnxt_qplib_rcfw_send_message(rcfw, &msg);
+	rc = bnxt_qplib_rcfw_send_message(rcfw, &msg);
+	return rc;
 }
 
 /* MRW */
drivers/infiniband/hw/bnxt_re/qplib_sp.h +2 -2
index 5de874659cdf..4061616048e8 100644
@@ -327,8 +327,8 @@ int bnxt_qplib_set_func_resources(struct bnxt_qplib_res *res,
 				  struct bnxt_qplib_ctx *ctx);
 int bnxt_qplib_create_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
 			 bool block);
-void bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
-			   bool block);
+int bnxt_qplib_destroy_ah(struct bnxt_qplib_res *res, struct bnxt_qplib_ah *ah,
+			  bool block);
 int bnxt_qplib_alloc_mrw(struct bnxt_qplib_res *res,
 			 struct bnxt_qplib_mrw *mrw);
 int bnxt_qplib_dereg_mrw(struct bnxt_qplib_res *res, struct bnxt_qplib_mrw *mrw,
drivers/infiniband/hw/mana/qp.c +4 -1
index 54b61930a7fd..4b3b5b274e84 100644
@@ -13,7 +13,7 @@ static int mana_ib_cfg_vport_steering(struct mana_ib_dev *dev,
 				      u8 *rx_hash_key)
 {
 	struct mana_port_context *mpc = netdev_priv(ndev);
-	struct mana_cfg_rx_steer_req *req = NULL;
+	struct mana_cfg_rx_steer_req_v2 *req;
 	struct mana_cfg_rx_steer_resp resp = {};
 	mana_handle_t *req_indir_tab;
 	struct gdma_context *gc;
@@ -33,6 +33,8 @@ static int mana_ib_cfg_vport_steering(struct mana_ib_dev *dev,
 	mana_gd_init_req_hdr(&req->hdr, MANA_CONFIG_VPORT_RX, req_buf_size,
 			     sizeof(resp));
 
+	req->hdr.req.msg_version = GDMA_MESSAGE_V2;
+
 	req->vport = mpc->port_handle;
 	req->rx_enable = 1;
 	req->update_default_rxobj = 1;
@@ -46,6 +48,7 @@ static int mana_ib_cfg_vport_steering(struct mana_ib_dev *dev,
 	req->num_indir_entries = MANA_INDIRECT_TABLE_SIZE;
 	req->indir_tab_offset = sizeof(*req);
 	req->update_indir_tab = true;
+	req->cqe_coalescing_enable = 1;
 
 	req_indir_tab = (mana_handle_t *)(req + 1);
 	/* The ind table passed to the hardware must have
drivers/infiniband/hw/mlx5/qpc.c +4 -6
index bae0334d6e7f..aec011557b4a 100644
@@ -298,8 +298,7 @@ int mlx5_core_destroy_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp)
 	MLX5_SET(destroy_qp_in, in, opcode, MLX5_CMD_OP_DESTROY_QP);
 	MLX5_SET(destroy_qp_in, in, qpn, qp->qpn);
 	MLX5_SET(destroy_qp_in, in, uid, qp->uid);
-	mlx5_cmd_exec_in(dev->mdev, destroy_qp, in);
-	return 0;
+	return mlx5_cmd_exec_in(dev->mdev, destroy_qp, in);
 }
 
 int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev,
@@ -551,14 +550,14 @@ int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn)
 	return mlx5_cmd_exec_in(dev->mdev, dealloc_xrcd, in);
 }
 
-static void destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid)
+static int destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid)
 {
 	u32 in[MLX5_ST_SZ_DW(destroy_rq_in)] = {};
 
 	MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ);
 	MLX5_SET(destroy_rq_in, in, rqn, rqn);
 	MLX5_SET(destroy_rq_in, in, uid, uid);
-	mlx5_cmd_exec_in(dev->mdev, destroy_rq, in);
+	return mlx5_cmd_exec_in(dev->mdev, destroy_rq, in);
 }
 
 int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
@@ -589,8 +588,7 @@ int mlx5_core_destroy_rq_tracked(struct mlx5_ib_dev *dev,
 				 struct mlx5_core_qp *rq)
 {
 	destroy_resource_common(dev, rq);
-	destroy_rq_tracked(dev, rq->qpn, rq->uid);
-	return 0;
+	return destroy_rq_tracked(dev, rq->qpn, rq->uid);
 }
 
 static void destroy_sq_tracked(struct mlx5_ib_dev *dev, u32 sqn, u16 uid)
drivers/iommu/amd/amd_iommu_types.h +4 -0
index 2ddbda3a4374..5a224e244be8 100644
@@ -174,6 +174,7 @@
 #define CONTROL_GAINT_EN	29
 #define CONTROL_XT_EN		50
 #define CONTROL_INTCAPXT_EN	51
+#define CONTROL_IRTCACHEDIS	59
 #define CONTROL_SNPAVIC_EN	61
 
 #define CTRL_INV_TO_MASK	(7 << CONTROL_INV_TIMEOUT)
@@ -716,6 +717,9 @@ struct amd_iommu {
 	/* if one, we need to send a completion wait command */
 	bool need_sync;
 
+	/* true if disable irte caching */
+	bool irtcachedis_enabled;
+
 	/* Handle for IOMMU core code */
 	struct iommu_device iommu;
 
drivers/iommu/amd/init.c +36 -0
index c2d80a4e5fb0..02846299af0e 100644
@@ -162,6 +162,7 @@ static int amd_iommu_xt_mode = IRQ_REMAP_XAPIC_MODE;
 static bool amd_iommu_detected;
 static bool amd_iommu_disabled __initdata;
 static bool amd_iommu_force_enable __initdata;
+static bool amd_iommu_irtcachedis;
 static int amd_iommu_target_ivhd_type;
 
 /* Global EFR and EFR2 registers */
@@ -484,6 +485,9 @@ static void iommu_disable(struct amd_iommu *iommu)
 
 	/* Disable IOMMU hardware itself */
 	iommu_feature_disable(iommu, CONTROL_IOMMU_EN);
+
+	/* Clear IRTE cache disabling bit */
+	iommu_feature_disable(iommu, CONTROL_IRTCACHEDIS);
 }
 
 /*
@@ -2710,6 +2714,33 @@ static void iommu_enable_ga(struct amd_iommu *iommu)
 #endif
 }
 
+static void iommu_disable_irtcachedis(struct amd_iommu *iommu)
+{
+	iommu_feature_disable(iommu, CONTROL_IRTCACHEDIS);
+}
+
+static void iommu_enable_irtcachedis(struct amd_iommu *iommu)
+{
+	u64 ctrl;
+
+	if (!amd_iommu_irtcachedis)
+		return;
+
+	/*
+	 * Note:
+	 * The support for IRTCacheDis feature is dertermined by
+	 * checking if the bit is writable.
+	 */
+	iommu_feature_enable(iommu, CONTROL_IRTCACHEDIS);
+	ctrl = readq(iommu->mmio_base +  MMIO_CONTROL_OFFSET);
+	ctrl &= (1ULL << CONTROL_IRTCACHEDIS);
+	if (ctrl)
+		iommu->irtcachedis_enabled = true;
+	pr_info("iommu%d (%#06x) : IRT cache is %s\n",
+		iommu->index, iommu->devid,
+		iommu->irtcachedis_enabled ? "disabled" : "enabled");
+}
+
 static void early_enable_iommu(struct amd_iommu *iommu)
 {
 	iommu_disable(iommu);
@@ -2720,6 +2751,7 @@ static void early_enable_iommu(struct amd_iommu *iommu)
 	iommu_set_exclusion_range(iommu);
 	iommu_enable_ga(iommu);
 	iommu_enable_xt(iommu);
+	iommu_enable_irtcachedis(iommu);
 	iommu_enable(iommu);
 	iommu_flush_all_caches(iommu);
 }
@@ -2770,10 +2802,12 @@ static void early_enable_iommus(void)
 		for_each_iommu(iommu) {
 			iommu_disable_command_buffer(iommu);
 			iommu_disable_event_buffer(iommu);
+			iommu_disable_irtcachedis(iommu);
 			iommu_enable_command_buffer(iommu);
 			iommu_enable_event_buffer(iommu);
 			iommu_enable_ga(iommu);
 			iommu_enable_xt(iommu);
+			iommu_enable_irtcachedis(iommu);
 			iommu_set_device_table(iommu);
 			iommu_flush_all_caches(iommu);
 		}
@@ -3426,6 +3460,8 @@ static int __init parse_amd_iommu_options(char *str)
 			amd_iommu_pgtable = AMD_IOMMU_V1;
 		} else if (strncmp(str, "pgtbl_v2", 8) == 0) {
 			amd_iommu_pgtable = AMD_IOMMU_V2;
+		} else if (strncmp(str, "irtcachedis", 11) == 0) {
+			amd_iommu_irtcachedis = true;
 		} else {
 			pr_notice("Unknown option - '%s'\n", str);
 		}
drivers/leds/rgb/leds-qcom-lpg.c +6 -2
index 1c849814a491..212df2e3d350 100644
@@ -1173,8 +1173,10 @@ static int lpg_add_led(struct lpg *lpg, struct device_node *np)
 		i = 0;
 		for_each_available_child_of_node(np, child) {
 			ret = lpg_parse_channel(lpg, child, &led->channels[i]);
-			if (ret < 0)
+			if (ret < 0) {
+				of_node_put(child);
 				return ret;
+			}
 
 			info[i].color_index = led->channels[i]->color;
 			info[i].intensity = 0;
@@ -1352,8 +1354,10 @@ static int lpg_probe(struct platform_device *pdev)
 
 	for_each_available_child_of_node(pdev->dev.of_node, np) {
 		ret = lpg_add_led(lpg, np);
-		if (ret)
+		if (ret) {
+			of_node_put(np);
 			return ret;
+		}
 	}
 
 	for (i = 0; i < lpg->num_channels; i++)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +2 -2
index 40cb3cb87ba1..60425c99a2b8 100644
@@ -1310,6 +1310,8 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
 	jpeg->dev = &pdev->dev;
 	jpeg->variant = of_device_get_match_data(jpeg->dev);
 
+	platform_set_drvdata(pdev, jpeg);
+
 	ret = devm_of_platform_populate(&pdev->dev);
 	if (ret) {
 		v4l2_err(&jpeg->v4l2_dev, "Master of platform populate failed.");
@@ -1381,8 +1383,6 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
 		  jpeg->variant->dev_name, jpeg->vdev->num,
 		  VIDEO_MAJOR, jpeg->vdev->minor);
 
-	platform_set_drvdata(pdev, jpeg);
-
 	pm_runtime_enable(&pdev->dev);
 
 	return 0;
drivers/media/platform/mediatek/vpu/mtk_vpu.c +4 -2
index 5e2bc286f168..1a95958a1f90 100644
@@ -562,15 +562,17 @@ static int load_requested_vpu(struct mtk_vpu *vpu,
 int vpu_load_firmware(struct platform_device *pdev)
 {
 	struct mtk_vpu *vpu;
-	struct device *dev = &pdev->dev;
+	struct device *dev;
 	struct vpu_run *run;
 	int ret;
 
 	if (!pdev) {
-		dev_err(dev, "VPU platform device is invalid\n");
+		pr_err("VPU platform device is invalid\n");
 		return -EINVAL;
 	}
 
+	dev = &pdev->dev;
+
 	vpu = platform_get_drvdata(pdev);
 	run = &vpu->run;
 
drivers/media/platform/qcom/camss/camss-vfe.c +5 -1
index e0832f3f4f25..06c95568e5af 100644
@@ -1541,7 +1541,11 @@ int msm_vfe_register_entities(struct vfe_device *vfe,
 		}
 
 		video_out->ops = &vfe->video_ops;
-		video_out->bpl_alignment = 8;
+		if (vfe->camss->version == CAMSS_845 ||
+		    vfe->camss->version == CAMSS_8250)
+			video_out->bpl_alignment = 16;
+		else
+			video_out->bpl_alignment = 8;
 		video_out->line_based = 0;
 		if (i == VFE_LINE_PIX) {
 			video_out->bpl_alignment = 16;
drivers/media/usb/uvc/uvc_v4l2.c +1 -1
index 35453f81c1d9..c06f8ca9e09e 100644
@@ -45,7 +45,7 @@ static int uvc_control_add_xu_mapping(struct uvc_video_chain *chain,
 	map->menu_names = NULL;
 	map->menu_mapping = NULL;
 
-	map->menu_mask = BIT_MASK(xmap->menu_count);
+	map->menu_mask = GENMASK(xmap->menu_count - 1, 0);
 
 	size = xmap->menu_count * sizeof(*map->menu_mapping);
 	map->menu_mapping = kzalloc(size, GFP_KERNEL);
drivers/mmc/core/block.c +4 -3
index e46330815484..5d6c16adb50d 100644
@@ -2097,14 +2097,14 @@ static void mmc_blk_mq_poll_completion(struct mmc_queue *mq,
 	mmc_blk_urgent_bkops(mq, mqrq);
 }
 
-static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, struct request *req)
+static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, enum mmc_issue_type issue_type)
 {
 	unsigned long flags;
 	bool put_card;
 
 	spin_lock_irqsave(&mq->lock, flags);
 
-	mq->in_flight[mmc_issue_type(mq, req)] -= 1;
+	mq->in_flight[issue_type] -= 1;
 
 	put_card = (mmc_tot_in_flight(mq) == 0);
 
@@ -2117,6 +2117,7 @@ static void mmc_blk_mq_dec_in_flight(struct mmc_queue *mq, struct request *req)
 static void mmc_blk_mq_post_req(struct mmc_queue *mq, struct request *req,
 				bool can_sleep)
 {
+	enum mmc_issue_type issue_type = mmc_issue_type(mq, req);
 	struct mmc_queue_req *mqrq = req_to_mmc_queue_req(req);
 	struct mmc_request *mrq = &mqrq->brq.mrq;
 	struct mmc_host *host = mq->card->host;
@@ -2136,7 +2137,7 @@ static void mmc_blk_mq_post_req(struct mmc_queue *mq, struct request *req,
 			blk_mq_complete_request(req);
 	}
 
-	mmc_blk_mq_dec_in_flight(mq, req);
+	mmc_blk_mq_dec_in_flight(mq, issue_type);
 }
 
 void mmc_blk_mq_recovery(struct mmc_queue *mq)
drivers/mmc/host/sdhci_f_sdh30.c +7 -4
index b01ffb4d0973..3215063bcf86 100644
@@ -210,13 +210,16 @@ static int sdhci_f_sdh30_remove(struct platform_device *pdev)
 {
 	struct sdhci_host *host = platform_get_drvdata(pdev);
 	struct f_sdhost_priv *priv = sdhci_f_sdhost_priv(host);
-
-	reset_control_assert(priv->rst);
-	clk_disable_unprepare(priv->clk);
-	clk_disable_unprepare(priv->clk_iface);
+	struct clk *clk_iface = priv->clk_iface;
+	struct reset_control *rst = priv->rst;
+	struct clk *clk = priv->clk;
 
 	sdhci_pltfm_unregister(pdev);
 
+	reset_control_assert(rst);
+	clk_disable_unprepare(clk);
+	clk_disable_unprepare(clk_iface);
+
 	return 0;
 }
 
drivers/mmc/host/sunplus-mmc.c +13 -13
index db5e0dcdfa7f..2bdebeb1f8e4 100644
@@ -863,11 +863,9 @@ static int spmmc_drv_probe(struct platform_device *pdev)
 	struct spmmc_host *host;
 	int ret = 0;
 
-	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);
-	if (!mmc) {
-		ret = -ENOMEM;
-		goto probe_free_host;
-	}
+	mmc = devm_mmc_alloc_host(&pdev->dev, sizeof(struct spmmc_host));
+	if (!mmc)
+		return -ENOMEM;
 
 	host = mmc_priv(mmc);
 	host->mmc = mmc;
@@ -902,7 +900,7 @@ static int spmmc_drv_probe(struct platform_device *pdev)
 
 	ret = mmc_of_parse(mmc);
 	if (ret)
-		goto probe_free_host;
+		goto clk_disable;
 
 	mmc->ops = &spmmc_ops;
 	mmc->f_min = SPMMC_MIN_CLK;
@@ -911,7 +909,7 @@ static int spmmc_drv_probe(struct platform_device *pdev)
 
 	ret = mmc_regulator_get_supply(mmc);
 	if (ret)
-		goto probe_free_host;
+		goto clk_disable;
 
 	if (!mmc->ocr_avail)
 		mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
@@ -927,14 +925,17 @@ static int spmmc_drv_probe(struct platform_device *pdev)
 	host->tuning_info.enable_tuning = 1;
 	pm_runtime_set_active(&pdev->dev);
 	pm_runtime_enable(&pdev->dev);
-	mmc_add_host(mmc);
+	ret = mmc_add_host(mmc);
+	if (ret)
+		goto pm_disable;
 
-	return ret;
+	return 0;
 
-probe_free_host:
-	if (mmc)
-		mmc_free_host(mmc);
+pm_disable:
+	pm_runtime_disable(&pdev->dev);
 
+clk_disable:
+	clk_disable_unprepare(host->clk);
 	return ret;
 }
 
@@ -948,7 +949,6 @@ static int spmmc_drv_remove(struct platform_device *dev)
 	pm_runtime_put_noidle(&dev->dev);
 	pm_runtime_disable(&dev->dev);
 	platform_set_drvdata(dev, NULL);
-	mmc_free_host(host->mmc);
 
 	return 0;
 }
drivers/mmc/host/wbsd.c +0 -2
index 521af9251f33..bf2a92fba0ed 100644
@@ -1705,8 +1705,6 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma,
 
 		wbsd_release_resources(host);
 		wbsd_free_mmc(dev);
-
-		mmc_free_host(mmc);
 		return ret;
 	}
 
drivers/net/dsa/mv88e6xxx/chip.c +8 -0
index 642e93e8623e..8c9d05a1fe66 100644
@@ -3006,6 +3006,14 @@ static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip)
 
 	/* If there is a GPIO connected to the reset pin, toggle it */
[… more lines in the raw message]

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

drivers/net/ethernet/cadence/macb_main.c +6 -3
index 29a1199dad14..3fbe15b3ac62 100644

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

drivers/net/ethernet/intel/i40e/i40e_nvm.c +8 -8
index 9da0c87f0328..f99c1f7fec40 100644

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

drivers/net/ethernet/intel/iavf/iavf_ethtool.c +10 -0
index 460ca561819a..a34303ad057d 100644

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

drivers/net/ethernet/intel/iavf/iavf_fdir.c +73 -4

77 lines not on this page · raw message

drivers/net/ethernet/intel/iavf/iavf_fdir.h +2 -0
index 33c55c366315..9eb9f73f6adf 100644

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

drivers/net/ethernet/intel/ice/ice_eswitch.c +6 -0
index f6dd3f8fd936..03e513984946 100644

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

drivers/net/ethernet/intel/ice/ice_main.c +5 -0
index 34e8e7cb1bc5..cfb76612bd2f 100644

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

drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c +1 -1
index 1cc6af2feb38..565320ec24f8 100644

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

drivers/net/ethernet/marvell/octeon_ep/octep_main.c +5 -4
index 43eb6e871351..4424de2ffd70 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h +2 -0
index 9e8e6184f9e4..ecfe93a479da 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en_main.c +5 -3
index 7e6d0489854e..975c82df345c 100644

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

drivers/net/ethernet/microsoft/mana/mana_en.c +4 -1
index 96c78f7db254..7441577294ba 100644

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

drivers/net/ethernet/qlogic/qede/qede_main.c +10 -0
index 4b004a728190..99df00c30b8c 100644

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

drivers/net/ethernet/sfc/ef100_nic.c +1 -1
index 7adde9639c8a..35d8e9811998 100644

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

drivers/net/ethernet/sfc/tc.c +69 -1

70 lines not on this page · raw message

drivers/net/ethernet/sfc/tc.h +9 -0
index 04cced6a2d39..2b6782e9c722 100644

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

drivers/net/pcs/pcs-rzn1-miic.c +8 -2
index 323bec5e57f8..356099169003 100644

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

drivers/net/phy/at803x.c +32 -57

89 lines not on this page · raw message

drivers/net/phy/broadcom.c +13 -0
index ad71c88c87e7..f9ad8902100f 100644

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

drivers/net/phy/phy_device.c +2 -11
index 2c4e6de8f4d9..7958ea0e8714 100644

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

drivers/net/team/team.c +3 -1
index d3dc22509ea5..382756c3fb83 100644

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

drivers/net/veth.c +2 -1
index dce9f9d63e04..76019949e3fe 100644

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

drivers/net/virtio_net.c +3 -3
index 2336a0e4befa..9b310795617c 100644

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

drivers/pci/controller/dwc/pcie-tegra194.c +11 -2
index 09825b4a075e..e6eec85480ca 100644

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

drivers/pcmcia/rsrc_nonstatic.c +2 -0
index 471e0c5815f3..bf9d070a4496 100644

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

drivers/pinctrl/qcom/pinctrl-msm.c +6 -3
index c5f52d4f7781..1fb0a24356bf 100644

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

drivers/pinctrl/qcom/pinctrl-msm.h +2 -0
index 985eceda2517..7f30416be127 100644

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

drivers/pinctrl/qcom/pinctrl-sa8775p.c +1 -0
index 2ae7cdca65d3..62f7a36d290c 100644

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

drivers/regulator/da9063-regulator.c +6 -6
index dfd5ec9f75c9..a0621665a6d2 100644

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

drivers/regulator/qcom-rpmh-regulator.c +1 -1
index f3b280af0773..cd077b7c4aff 100644

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

drivers/soc/aspeed/aspeed-socinfo.c +1 -0
index 1ca140356a08..3f759121dc00 100644

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

drivers/soc/aspeed/aspeed-uart-routing.c +1 -1
index ef8b24fd1851..59123e1f27ac 100644

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

drivers/thunderbolt/nhi.c +2 -0
index e58beac44295..1257d1c41f8e 100644

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

drivers/thunderbolt/nhi.h +4 -0
index b0718020c6f5..0f029ce75882 100644

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

drivers/thunderbolt/quirks.c +8 -0
index 1157b8869bcc..8c2ee431fcde 100644

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

drivers/thunderbolt/retimer.c +21 -8
index 9cc28197dbc4..edbd92435b41 100644

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

drivers/tty/n_gsm.c +2 -1
index 1cdefac4dd1b..739f522cb893 100644

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

drivers/tty/serial/8250/8250_port.c +1 -0
index 053d44412e42..0a67dff575f7 100644

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

drivers/tty/serial/fsl_lpuart.c +2 -2
index f38606b75096..3e4992b28113 100644

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

drivers/tty/serial/stm32-usart.c +1 -4
index 1e38fc9b10c1..e9e11a259621 100644

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

drivers/usb/chipidea/ci_hdrc_imx.c +5 -0
index 2855ac303001..f7577f2bd2c5 100644

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

drivers/usb/chipidea/usbmisc_imx.c +36 -1
index c57c1a71a513..681c2ddc83fa 100644

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

drivers/usb/gadget/function/u_serial.c +3 -0
index e5d522d54f6a..97f07757d19e 100644

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

drivers/usb/gadget/function/uvc_video.c +24 -8
index dd1c6b2ca7c6..e81865978299 100644

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

drivers/usb/host/xhci-histb.c +1 -11
index 91ce97821de5..7c2047755083 100644

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

drivers/usb/host/xhci-mtk.c +0 -6
index b60521e1a9a6..9a40da3b0064 100644

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

drivers/usb/host/xhci-pci.c +0 -7
index db9826c38b20..9540f0e48c21 100644

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

drivers/usb/host/xhci-plat.c +1 -6
index f36633fa8362..80da67a6c3bf 100644

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

drivers/usb/host/xhci-tegra.c +0 -1
index d28fa892c286..07a319db5803 100644

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

drivers/usb/host/xhci.h +1 -1
index 4474d540f6b4..0b1928851a2a 100644

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

drivers/vdpa/mlx5/core/mlx5_vdpa.h +2 -0
index 25fc4120b618..b53420e874ac 100644

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

drivers/vdpa/mlx5/core/mr.c +70 -27

97 lines not on this page · raw message

drivers/vdpa/mlx5/net/mlx5_vnet.c +2 -2
index 279ac6a558d2..f18a9301ab94 100644

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

drivers/vdpa/vdpa.c +3 -6
index 965e32529eb8..a7612e0783b3 100644

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

drivers/vdpa/vdpa_user/vduse_dev.c +4 -4
index 0d84e6a9c3cc..76d4ab451f59 100644

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

drivers/video/fbdev/mmp/hw/mmp_ctrl.c +3 -1
index 51fbf02a0343..76b50b6c98ad 100644

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

drivers/virtio/virtio_mmio.c +2 -3
index a46a4a29e929..97760f611295 100644

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

drivers/virtio/virtio_vdpa.c +2 -0
index 989e2d7184ce..961161da5900 100644

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

drivers/watchdog/sp5100_tco.c +3 -1
index 14f8d8d90920..2bd3dc25cb03 100644

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

fs/btrfs/block-group.c +12 -0
index 2a60033d907b..a250afa655d5 100644

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

fs/btrfs/block-group.h +5 -0
index 471f591db7c0..0852f6c101f8 100644

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

fs/btrfs/ctree.h +1 -0
index 4c1986cd5bed..cff98526679e 100644

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

fs/btrfs/delayed-inode.c +3 -2
index 6b457b010cbc..6d51db066503 100644

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

fs/btrfs/delayed-inode.h +1 -0
index 4f21daa3dbc7..dc1085b2a397 100644

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

fs/btrfs/extent_io.c +24 -1
index 54eed5a8a412..00f260c8bd60 100644

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

fs/btrfs/extent_map.c +2 -4
index 138afa955370..367ed73cb6c7 100644

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

fs/btrfs/inode.c +79 -52

131 lines not on this page · raw message

fs/btrfs/scrub.c +2 -1
index 16c228344cbb..2feb7f229423 100644

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

fs/btrfs/volumes.c +1 -2
index 436e15e3759d..30977f10e36b 100644

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

fs/ceph/mds_client.c +4 -0
index 83c4abff496d..5fb367b1d4b0 100644

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

fs/gfs2/super.c +15 -11
index a84bf6444bba..204ba7f8417e 100644

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

fs/netfs/iterator.c +1 -1
index 8a4c86687429..facb84f262dc 100644

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

fs/ntfs3/frecord.c +11 -5
index 2bfcf1a989c9..50214b77c6a3 100644

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

fs/ntfs3/fsntfs.c +1 -1
index 28cc421102e5..21567e58265c 100644

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

fs/ntfs3/index.c +6 -0
index 0a48d2d67219..b40da258e684 100644

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

fs/ntfs3/ntfs_fs.h +2 -0
index eb01f7e76479..2e4be773728d 100644

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

fs/ntfs3/record.c +8 -2
index 2a281cead2bc..7974ca35a15c 100644

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

fs/ntfs3/super.c +71 -27

98 lines not on this page · raw message

fs/ntfs3/xattr.c +1 -0
index fd02fcf4d409..26787c2bbf75 100644

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

fs/smb/client/cifs_debug.c +10 -0
index ed0f71137584..d14e88e14fb2 100644

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

fs/smb/client/cifsfs.c +10 -18
index 43a4d8603db3..30b03938f6d1 100644

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

fs/smb/client/file.c +17 -8
index d554bca7e07e..855454ff6ced 100644

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

fs/smb/client/fs_context.c +4 -0
index 4946a0c59600..67e16c2ac90e 100644

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

fs/smb/client/smb2pdu.c +6 -0
index 17fe212ab895..e04766fe6f80 100644

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

include/drm/drm_edid.h +3 -9
index 571885d32907..70ae6c290bdc 100644

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

include/linux/iopoll.h +2 -0
index 2c8860e406bd..0417360a6db9 100644

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

include/linux/virtio_net.h +4 -0
index bdf8de2cdd93..7b4dd69555e4 100644

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

include/media/v4l2-mem2mem.h +16 -2
index bb9de6a899e0..d6c8eb2b5201 100644

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

include/net/mana/mana.h +3 -1
index 9eef19972845..024ad8ddb27e 100644

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

include/net/sock.h +6 -0
index ad468fe71413..415f3840a26a 100644

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

include/net/xfrm.h +1 -0
index 151ca95dd08d..363c7d510554 100644

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

kernel/dma/remap.c +2 -2
index b4526668072e..27596f3b4aef 100644

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

kernel/trace/ring_buffer.c +13 -1
index 99634b29a8b8..46b4a3c7c3bf 100644

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

kernel/trace/trace.c +2 -1
index c80ff6f5b2cc..fd051f85efd4 100644

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

net/bluetooth/l2cap_core.c +5 -0
index c5e8798e297c..17ca13e8c044 100644

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

net/bluetooth/mgmt.c +1 -1
index 1e07d0f28972..d4498037fadc 100644

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

net/core/sock.c +1 -1
index 1f31a97100d4..8451a95266bf 100644

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

net/ipv4/ip_vti.c +2 -2
index 53bfd8af6920..d1e7d0ceb7ed 100644

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

net/ipv4/tcp_timer.c +3 -1
index 39eb947fe392..366c3c25ebe2 100644

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

net/ipv6/ip6_vti.c +2 -2
index 10b222865d46..73c85d4e0e9c 100644

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

net/key/af_key.c +2 -2
index 31ab12fd720a..203131ad0dfe 100644

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

net/netfilter/ipvs/ip_vs_ctl.c +4 -0
index 62606fb44d02..4bb0d90eca1c 100644

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

net/netfilter/nf_conntrack_proto_sctp.c +3 -3
index 91eacc9b0b98..b6bcc8f2f46b 100644

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

net/netfilter/nf_tables_api.c +39 -5

44 lines not on this page · raw message

net/netfilter/nft_dynset.c +3 -0
index bd19c7aec92e..c98a273c3006 100644

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

net/netfilter/nft_set_pipapo.c +16 -20
index 92b108e3000e..352180b123fc 100644

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

net/openvswitch/datapath.c +4 -4
index a6d2a0b1aa21..3d7a91e64c88 100644

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

net/unix/af_unix.c +4 -5
index 10615878e396..714bd87f12d9 100644

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

net/xfrm/xfrm_compat.c +1 -1
index 8cbf45a8bcdc..655fe4ff8621 100644

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

net/xfrm/xfrm_input.c +9 -13
index 815b38080401..d5ee96789d4b 100644

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

net/xfrm/xfrm_interface_core.c +2 -2
index a3319965470a..b86474084690 100644

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

net/xfrm/xfrm_state.c +2 -6
index 49e63eea841d..bda5327bf34d 100644

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

net/xfrm/xfrm_user.c +13 -2
index c34a2a06ca94..ad01997c3aa9 100644

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

rust/macros/vtable.rs +1 -0
index 34d5e7fb5768..ee06044fcd4f 100644

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

sound/hda/hdac_regmap.c +3 -4
index fe3587547cfe..39610a15bcc9 100644

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

sound/pci/hda/patch_realtek.c +54 -4

58 lines not on this page · raw message

sound/soc/amd/Kconfig +1 -0
index 08e42082f5e9..e724cb3c70b7 100644

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

sound/soc/amd/vangogh/acp5x.h +2 -0
index bd9f1c5684d1..ac1936a8c43f 100644

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

sound/soc/amd/vangogh/pci-acp5x.c +6 -1
index e0df17c88e8e..c4634a8a17cd 100644

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

sound/soc/codecs/cs35l56.c +6 -6
index e0d2b9bb2326..f3fee448d759 100644

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

sound/soc/codecs/max98363.c +5 -4
index e6b84e222b50..169913ba76dd 100644

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

sound/soc/codecs/rt5665.c +2 -0
index 17afaef85c77..382bdbcf7b59 100644

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

sound/soc/intel/boards/sof_sdw.c +35 -0
index 5fa204897a52..a6d13aae8f72 100644

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

sound/soc/intel/boards/sof_sdw_rt711_sdca.c +3 -0
index 7f16304d025b..cf8b9793fe0e 100644

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

sound/soc/meson/axg-tdm-formatter.c +26 -16

42 lines not on this page · raw message

sound/soc/sof/amd/acp.h +3 -0
index 1c535cc6c3a9..dc624f727aa3 100644

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

sound/soc/sof/amd/pci-rmb.c +3 -0
index eaf70ea6e556..58b3092425f1 100644

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

sound/soc/sof/amd/pci-rn.c +3 -0
index 4809cb644152..7409e21ce5aa 100644

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

sound/soc/sof/core.c +3 -1
index 9a9d82220fd0..30db685cc5f4 100644

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

sound/soc/sof/intel/hda-dai-ops.c +12 -1
index 4b39cecacd68..5938046f46b2 100644

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

sound/soc/sof/intel/hda-dai.c +4 -4
index 44a5d94c5050..8a76320c3b99 100644

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

sound/soc/sof/intel/hda.c +11 -1
index 3153e21f100a..3853582e32e1 100644

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

sound/soc/sof/intel/hda.h +2 -0
index c4befacde23e..94c738eae751 100644

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

sound/usb/quirks-table.h +29 -0
index efb4a3311cc5..5d72dc8441cb 100644

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

tools/objtool/arch/x86/decode.c +7 -4
index a25fdc08c39e..228b2bb086ac 100644

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

tools/objtool/check.c +35 -10

45 lines not on this page · raw message

tools/objtool/include/objtool/arch.h +1 -0
index 2b6d2ce4f9a5..0b303eba660e 100644

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

tools/objtool/include/objtool/elf.h +1 -0
index e1ca588eb69d..bfb4a69d0e91 100644

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

tools/perf/util/machine.c +0 -5
index 9e02e19c1b7a..4d564e0698df 100644

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

tools/perf/util/thread-stack.c +1 -3
index 4b85c1728012..e72bd059538c 100644

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

tools/testing/selftests/net/forwarding/mirror_gre_changes.sh +2 -1
index aff88f78e339..5ea9d63915f7 100755

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.

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.4.12 kernel.

All users of the 6.4 kernel series must upgrade.

The updated 6.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.4.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/srso.rst                       |    4 
 Documentation/admin-guide/kernel-parameters.txt                  |    1 
 Documentation/devicetree/bindings/input/goodix,gt7375p.yaml      |    9 
 Documentation/devicetree/bindings/pinctrl/qcom,sa8775p-tlmm.yaml |    2 
 Documentation/networking/nf_conntrack-sysctl.rst                 |    4 
 Makefile                                                         |    2 
 arch/arm/boot/dts/imx23.dtsi                                     |    2 
 arch/arm/boot/dts/imx28.dtsi                                     |    2 
 arch/arm/boot/dts/imx6dl-prtrvt.dts                              |    4 
 arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi                       |    2 
 arch/arm/boot/dts/imx6qdl-prti6q.dtsi                            |   11 
 arch/arm/boot/dts/imx6qdl.dtsi                                   |    2 
 arch/arm/boot/dts/imx6sx.dtsi                                    |    8 
 arch/arm/boot/dts/imx6ul.dtsi                                    |    2 
 arch/arm/boot/dts/imx7s.dtsi                                     |    8 
 arch/arm64/boot/dts/freescale/imx8mm.dtsi                        |    7 
 arch/arm64/boot/dts/freescale/imx93.dtsi                         |    2 
 arch/arm64/boot/dts/qcom/ipq5332.dtsi                            |    7 
 arch/arm64/boot/dts/qcom/qrb5165-rb5.dts                         |    2 
 arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts             |    3 
 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi               |    6 
 arch/arm64/include/asm/fpsimd.h                                  |    4 
 arch/arm64/kernel/fpsimd.c                                       |    6 
 arch/arm64/kernel/ptrace.c                                       |   20 +
 arch/arm64/kernel/signal.c                                       |    2 
 arch/parisc/kernel/entry.S                                       |   47 +--
 arch/powerpc/kernel/rtas_flash.c                                 |    6 
 arch/powerpc/mm/kasan/Makefile                                   |    1 
 arch/riscv/include/asm/insn.h                                    |   15 -
 arch/riscv/kernel/traps.c                                        |    6 
 arch/riscv/lib/uaccess.S                                         |   11 
 arch/um/os-Linux/user_syms.c                                     |    7 
 arch/x86/include/asm/entry-common.h                              |    1 
 arch/x86/include/asm/nospec-branch.h                             |   49 +--
 arch/x86/kernel/alternative.c                                    |    4 
 arch/x86/kernel/cpu/amd.c                                        |    1 
 arch/x86/kernel/cpu/bugs.c                                       |   29 +-
 arch/x86/kernel/kprobes/opt.c                                    |   40 +-
 arch/x86/kernel/static_call.c                                    |   13 
 arch/x86/kernel/traps.c                                          |    2 
 arch/x86/kernel/vmlinux.lds.S                                    |   22 -
 arch/x86/kvm/svm/svm.c                                           |    2 
 arch/x86/kvm/svm/vmenter.S                                       |    7 
 arch/x86/lib/retpoline.S                                         |  137 ++++++----
 block/blk-cgroup.c                                               |    2 
 block/blk-crypto-fallback.c                                      |   36 +-
 drivers/accel/habanalabs/common/device.c                         |   15 +
 drivers/accel/habanalabs/common/habanalabs.h                     |    2 
 drivers/accel/habanalabs/common/habanalabs_drv.c                 |    4 
 drivers/accel/qaic/qaic_control.c                                |   26 +
 drivers/accel/qaic/qaic_data.c                                   |    1 
 drivers/bluetooth/btusb.c                                        |    3 
 drivers/bus/ti-sysc.c                                            |    2 
 drivers/firewire/net.c                                           |    6 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                           |    8 
 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c                          |   38 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.h                          |    3 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                       |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c                        |   41 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c                          |    9 
 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c                          |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c                          |   10 
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c                          |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c                         |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c                           |    6 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                |    5 
 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c     |   27 +
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c            |    2 
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c                |    8 
 drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c              |    5 
 drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c          |   20 +
 drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c             |   24 +
 drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c             |    4 
 drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c   |    4 
 drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.h   |    2 
 drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h                     |    1 
 drivers/gpu/drm/amd/include/amd_shared.h                         |    1 
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c                        |    4 
 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c          |   14 -
 drivers/gpu/drm/drm_edid.c                                       |   29 --
 drivers/gpu/drm/i915/display/intel_sdvo.c                        |    2 
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c                      |   22 +
 drivers/gpu/drm/nouveau/nouveau_connector.c                      |   11 
 drivers/gpu/drm/panel/panel-simple.c                             |   24 -
 drivers/gpu/drm/qxl/qxl_drv.h                                    |    2 
 drivers/gpu/drm/qxl/qxl_dumb.c                                   |    5 
 drivers/gpu/drm/qxl/qxl_gem.c                                    |   25 +
 drivers/gpu/drm/qxl/qxl_ioctl.c                                  |    6 
 drivers/gpu/drm/rcar-du/rcar_du_crtc.c                           |   37 --
 drivers/gpu/drm/rcar-du/rcar_du_drv.c                            |   48 ---
 drivers/gpu/drm/rcar-du/rcar_du_drv.h                            |    2 
 drivers/gpu/drm/rcar-du/rcar_du_regs.h                           |    3 
 drivers/gpu/drm/scheduler/sched_entity.c                         |    6 
 drivers/gpu/drm/scheduler/sched_main.c                           |    4 
 drivers/gpu/drm/stm/ltdc.c                                       |    4 
 drivers/hid/hid-logitech-hidpp.c                                 |    4 
 drivers/hid/i2c-hid/i2c-hid-of-goodix.c                          |   16 +
 drivers/hid/intel-ish-hid/ipc/hw-ish.h                           |    1 
 drivers/hid/intel-ish-hid/ipc/pci-ish.c                          |    1 
 drivers/i2c/busses/i2c-bcm-iproc.c                               |   11 
 drivers/i2c/busses/i2c-designware-master.c                       |   16 +
 drivers/i2c/busses/i2c-hisi.c                                    |    8 
 drivers/i2c/busses/i2c-tegra.c                                   |    2 
 drivers/infiniband/hw/bnxt_re/bnxt_re.h                          |    2 
 drivers/infiniband/hw/bnxt_re/ib_verbs.c                         |   16 -
 drivers/infiniband/hw/bnxt_re/qplib_sp.c                         |    8 
 drivers/infiniband/hw/bnxt_re/qplib_sp.h                         |    4 
 drivers/infiniband/hw/mana/qp.c                                  |    5 
 drivers/infiniband/hw/mlx5/qpc.c                                 |   10 
 drivers/iommu/amd/amd_iommu_types.h                              |    4 
 drivers/iommu/amd/init.c                                         |   36 ++
 drivers/leds/rgb/leds-qcom-lpg.c                                 |    8 
 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c             |    4 
 drivers/media/platform/mediatek/vpu/mtk_vpu.c                    |    6 
 drivers/media/platform/qcom/camss/camss-vfe.c                    |    6 
 drivers/media/usb/uvc/uvc_v4l2.c                                 |    2 
 drivers/mmc/core/block.c                                         |    7 
 drivers/mmc/host/sdhci_f_sdh30.c                                 |   11 
 drivers/mmc/host/sunplus-mmc.c                                   |   26 -
 drivers/mmc/host/wbsd.c                                          |    2 
 drivers/net/dsa/mv88e6xxx/chip.c                                 |    8 
 drivers/net/ethernet/cadence/macb_main.c                         |    9 
 drivers/net/ethernet/intel/i40e/i40e_nvm.c                       |   16 -
 drivers/net/ethernet/intel/iavf/iavf_ethtool.c                   |   10 
 drivers/net/ethernet/intel/iavf/iavf_fdir.c                      |   77 +++++
 drivers/net/ethernet/intel/iavf/iavf_fdir.h                      |    2 
 drivers/net/ethernet/intel/ice/ice_eswitch.c                     |    6 
 drivers/net/ethernet/intel/ice/ice_main.c                        |    5 
 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c          |    2 
 drivers/net/ethernet/marvell/octeon_ep/octep_main.c              |    9 
 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h                 |    2 
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c                |    8 
 drivers/net/ethernet/microsoft/mana/mana_en.c                    |    5 
 drivers/net/ethernet/qlogic/qede/qede_main.c                     |   10 
 drivers/net/ethernet/sfc/ef100_nic.c                             |    2 
 drivers/net/ethernet/sfc/tc.c                                    |   70 +++++
 drivers/net/ethernet/sfc/tc.h                                    |    9 
 drivers/net/pcs/pcs-rzn1-miic.c                                  |   10 
 drivers/net/phy/at803x.c                                         |   89 ++----
 drivers/net/phy/broadcom.c                                       |   13 
 drivers/net/phy/phy_device.c                                     |   13 
 drivers/net/team/team.c                                          |    4 
 drivers/net/veth.c                                               |    3 
 drivers/net/virtio_net.c                                         |    6 
 drivers/pci/controller/dwc/pcie-tegra194.c                       |   13 
 drivers/pcmcia/rsrc_nonstatic.c                                  |    2 
 drivers/pinctrl/qcom/pinctrl-msm.c                               |    9 
 drivers/pinctrl/qcom/pinctrl-msm.h                               |    2 
 drivers/pinctrl/qcom/pinctrl-sa8775p.c                           |    1 
 drivers/regulator/da9063-regulator.c                             |   12 
 drivers/regulator/qcom-rpmh-regulator.c                          |    2 
 drivers/soc/aspeed/aspeed-socinfo.c                              |    1 
 drivers/soc/aspeed/aspeed-uart-routing.c                         |    2 
 drivers/thunderbolt/nhi.c                                        |    2 
 drivers/thunderbolt/nhi.h                                        |    4 
 drivers/thunderbolt/quirks.c                                     |    8 
 drivers/thunderbolt/retimer.c                                    |   29 +-
 drivers/tty/n_gsm.c                                              |    3 
 drivers/tty/serial/8250/8250_port.c                              |    1 
 drivers/tty/serial/fsl_lpuart.c                                  |    4 
 drivers/tty/serial/stm32-usart.c                                 |    5 
 drivers/usb/chipidea/ci_hdrc_imx.c                               |    5 
 drivers/usb/chipidea/usbmisc_imx.c                               |   37 ++
 drivers/usb/gadget/function/u_serial.c                           |    3 
 drivers/usb/gadget/function/uvc_video.c                          |   32 +-
 drivers/usb/host/xhci-histb.c                                    |   12 
 drivers/usb/host/xhci-mtk.c                                      |    6 
 drivers/usb/host/xhci-pci.c                                      |    7 
 drivers/usb/host/xhci-plat.c                                     |    7 
 drivers/usb/host/xhci-tegra.c                                    |    1 
 drivers/usb/host/xhci.h                                          |    2 
 drivers/vdpa/mlx5/core/mlx5_vdpa.h                               |    2 
 drivers/vdpa/mlx5/core/mr.c                                      |   97 +++++--
 drivers/vdpa/mlx5/net/mlx5_vnet.c                                |    4 
 drivers/vdpa/vdpa.c                                              |    9 
 drivers/vdpa/vdpa_user/vduse_dev.c                               |    8 
 drivers/video/fbdev/mmp/hw/mmp_ctrl.c                            |    4 
 drivers/virtio/virtio_mmio.c                                     |    5 
 drivers/virtio/virtio_vdpa.c                                     |    2 
 drivers/watchdog/sp5100_tco.c                                    |    4 
 fs/btrfs/block-group.c                                           |   12 
 fs/btrfs/block-group.h                                           |    5 
 fs/btrfs/ctree.h                                                 |    1 
 fs/btrfs/delayed-inode.c                                         |    5 
 fs/btrfs/delayed-inode.h                                         |    1 
 fs/btrfs/extent_io.c                                             |   25 +
 fs/btrfs/extent_map.c                                            |    6 
 fs/btrfs/inode.c                                                 |  131 +++++----
 fs/btrfs/scrub.c                                                 |    3 
 fs/btrfs/volumes.c                                               |    3 
 fs/ceph/mds_client.c                                             |    4 
 fs/gfs2/super.c                                                  |   26 +
 fs/netfs/iterator.c                                              |    2 
 fs/ntfs3/frecord.c                                               |   16 -
 fs/ntfs3/fsntfs.c                                                |    2 
 fs/ntfs3/index.c                                                 |    6 
 fs/ntfs3/ntfs_fs.h                                               |    2 
 fs/ntfs3/record.c                                                |   10 
 fs/ntfs3/super.c                                                 |   98 +++++--
 fs/ntfs3/xattr.c                                                 |    1 
 fs/smb/client/cifs_debug.c                                       |   10 
 fs/smb/client/cifsfs.c                                           |   28 --
 fs/smb/client/file.c                                             |   25 +
 fs/smb/client/fs_context.c                                       |    4 
 fs/smb/client/smb2pdu.c                                          |    6 
 include/drm/drm_edid.h                                           |   12 
 include/linux/iopoll.h                                           |    2 
 include/linux/virtio_net.h                                       |    4 
 include/media/v4l2-mem2mem.h                                     |   18 +
 include/net/mana/mana.h                                          |    4 
 include/net/sock.h                                               |    6 
 include/net/xfrm.h                                               |    1 
 kernel/dma/remap.c                                               |    4 
 kernel/trace/ring_buffer.c                                       |   14 -
 kernel/trace/trace.c                                             |    3 
 net/bluetooth/l2cap_core.c                                       |    5 
 net/bluetooth/mgmt.c                                             |    2 
 net/core/sock.c                                                  |    2 
 net/ipv4/ip_vti.c                                                |    4 
 net/ipv4/tcp_timer.c                                             |    4 
 net/ipv6/ip6_vti.c                                               |    4 
 net/key/af_key.c                                                 |    4 
 net/netfilter/ipvs/ip_vs_ctl.c                                   |    4 
 net/netfilter/nf_conntrack_proto_sctp.c                          |    6 
 net/netfilter/nf_tables_api.c                                    |   44 ++-
 net/netfilter/nft_dynset.c                                       |    3 
 net/netfilter/nft_set_pipapo.c                                   |   36 +-
 net/openvswitch/datapath.c                                       |    8 
 net/unix/af_unix.c                                               |    9 
 net/xfrm/xfrm_compat.c                                           |    2 
 net/xfrm/xfrm_input.c                                            |   22 -
 net/xfrm/xfrm_interface_core.c                                   |    4 
 net/xfrm/xfrm_state.c                                            |    8 
 net/xfrm/xfrm_user.c                                             |   15 -
 rust/macros/vtable.rs                                            |    1 
 sound/hda/hdac_regmap.c                                          |    7 
 sound/pci/hda/patch_realtek.c                                    |   58 +++-
 sound/soc/amd/Kconfig                                            |    1 
 sound/soc/amd/vangogh/acp5x.h                                    |    2 
 sound/soc/amd/vangogh/pci-acp5x.c                                |    7 
 sound/soc/codecs/cs35l56.c                                       |   12 
 sound/soc/codecs/max98363.c                                      |    9 
 sound/soc/codecs/rt5665.c                                        |    2 
 sound/soc/intel/boards/sof_sdw.c                                 |   35 ++
 sound/soc/intel/boards/sof_sdw_rt711_sdca.c                      |    3 
 sound/soc/meson/axg-tdm-formatter.c                              |   42 +--
 sound/soc/sof/amd/acp.h                                          |    3 
 sound/soc/sof/amd/pci-rmb.c                                      |    3 
 sound/soc/sof/amd/pci-rn.c                                       |    3 
 sound/soc/sof/core.c                                             |    4 
 sound/soc/sof/intel/hda-dai-ops.c                                |   13 
 sound/soc/sof/intel/hda-dai.c                                    |    8 
 sound/soc/sof/intel/hda.c                                        |   12 
 sound/soc/sof/intel/hda.h                                        |    2 
 sound/usb/quirks-table.h                                         |   29 ++
 tools/objtool/arch/x86/decode.c                                  |   11 
 tools/objtool/check.c                                            |   45 ++-
 tools/objtool/include/objtool/arch.h                             |    1 
 tools/objtool/include/objtool/elf.h                              |    1 
 tools/perf/util/machine.c                                        |    5 
 tools/perf/util/thread-stack.c                                   |    4 
 tools/testing/selftests/net/forwarding/mirror_gre_changes.sh     |    3 
 262 files changed, 2085 insertions(+), 971 deletions(-)

Abel Vesa (1):
regulator: qcom-rpmh: Fix LDO 12 regulator for PM8550

Abel Wu (1):
sock: Fix misuse of sk_under_memory_pressure()

Alex Deucher (1):
Revert "Revert "drm/amdgpu/display: change pipe policy for DCN 2.0""

Alexander Stein (1):
arm64: dts: imx93: Fix anatop node size

Alexandre Ghiti (1):
riscv: uaccess: Return the number of bytes effectively not copied

Alfred Lee (1):
net: dsa: mv88e6xxx: Wait for EEPROM done before HW reset

Alvin Lee (2):
drm/amd/display: Update DTBCLK for DCN32 drm/amd/display: Apply 60us prefetch for DCFCLK <= 300Mhz

Anand Jain (1):
btrfs: fix replace/scrub failure with metadata_uuid

Andrej Picej (1):
ARM: dts: imx6: phytec: fix RTC interrupt level

Andrey Konovalov (1):
media: camss: set VFE bpl_alignment to 16 for sdm845 and sm8250

Andrii Staikov (1):
i40e: fix misleading debug logs

Andy Shevchenko (1):
Bluetooth: MGMT: Use correct address for memcpy()

Armin Wolf (1):
pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db()

Arnaldo Carvalho de Melo (1):
Revert "perf report: Append inlines to non-DWARF callchains"

Arnd Bergmann (1):
ASoC: amd: vangogh: select CONFIG_SND_AMD_ACP_CONFIG

Aurabindo Pillai (1):
Revert "drm/amd/display: disable SubVP + DRR to prevent underflow"

Avichal Rakesh (1):
usb: gadget: uvc: queue empty isoc requests if no video buffer is available

Bard Liao (3):
ASoC: Intel: sof_sdw: add quirk for MTL RVP
ASoC: Intel: sof_sdw_rt_sdca_jack_common: test SOF_JACK_JDSRC in _exit
ASoC: max98363: don't return on success reading revision ID

Benjamin Gray (1):
powerpc/kasan: Disable KCOV in KASAN code

Borislav Petkov (AMD) (4):
x86/srso: Explain the untraining sequences a bit more x86/CPU/AMD: Fix the DIV(0) initial fix attempt x86/srso: Disable the mitigation on unaffected configurations x86/srso: Correct the mitigation status when SMT is disabled

Celeste Liu (1):

      riscv: entry: set a0 = -ENOSYS only when syscall != -1

Chen Lin (1):
ring-buffer: Do not swap cpu_buffer during resize process

Chen-Yu Tsai (1):
media: mtk-jpeg: Set platform driver data earlier

Chengfeng Ye (1):
i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue

Chris Mason (1):
btrfs: only subtract from len_to_oe_boundary when it is tracking an extent

Christophe JAILLET (1):
net: phy: at803x: Use devm_regulator_get_enable_optional()

Christopher Obbard (2):
arm64: dts: rockchip: Disable HS400 for eMMC on ROCK Pi 4
arm64: dts: rockchip: Disable HS400 for eMMC on ROCK 4C+

Dan Carpenter (1):
accel/qaic: Clean up integer overflow checking in map_user_pages()

Daniel Miess (3):
drm/amd/display: Remove v_startup workaround for dcn3+ drm/amd/display: Enable dcn314 DPP RCO drm/amd/display: disable RCO for DCN314

Danilo Krummrich (1):
drm/scheduler: set entity to NULL in drm_sched_entity_pop_job()

David Howells (1):
crypto, cifs: fix error handling in extract_iter_to_sg()

Dmitry Baryshkov (1):
arm64: dts: qcom: qrb5165-rb5: fix thermal zone conflict

Dragos Tatulea (3):
vdpa/mlx5: Fix mr->initialized semantics
vdpa: Enable strict validation for netlinks ops net/mlx5e: XDP, Fix fifo overrun on XDP_REDIRECT

Edward Cree (3):
sfc: add fallback action-set-lists for TC offload
sfc: don't unregister flow_indr if it was never registered
sfc: don't fail probe if MAE/TC setup fails

Edward Lo (2):
fs/ntfs3: Enhance sanity check while generating attr_list fs/ntfs3: Return error for inconsistent extended attributes

Eric Dumazet (1):
net: do not allow gso_size to be set to GSO_BY_FRAGS

Eugenio Pérez (1):
vdpa/mlx5: Delete control vq iotlb in destroy_mr only when necessary

Even Xu (1):
HID: intel-ish-hid: ipc: Add Arrow Lake PCI device ID

Fabio Estevam (1):
arm64: dts: imx8mm: Drop CSI1 PHY reference clock configuration

Fei Shao (2):
dt-bindings: input: goodix: Add "goodix,no-reset-during-suspend" property
HID: i2c-hid: goodix: Add support for "goodix,no-reset-during-suspend" property

Filipe Manana (2):
btrfs: fix use-after-free of new block group that became unused
btrfs: fix infinite directory reads

Florian Westphal (3):
netfilter: nf_tables: fix false-positive lockdep splat
netfilter: nf_tables: deactivate catchall elements in next generation
netfilter: nf_tables: don't fail inserts if duplicate has expired

Gal Pressman (1):
virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()

Geert Uytterhoeven (1):
iopoll: Call cpu_relax() in busy loops

Greg Kroah-Hartman (1):

      Linux 6.4.12

Guchun Chen (1):
drm/amdgpu: keep irq count in amdgpu_irq_disable_all

Hans Verkuil (1):
media: platform: mediatek: vpu: fix NULL ptr dereference

Harshit Mogalapalli (1):
mmc: sunplus: Fix error handling in spmmc_drv_probe()

Hawkins Jiawei (1):
virtio-net: Zero max_tx_vq field for VIRTIO_NET_CTRL_MQ_HASH_CONFIG case

Helge Deller (1):
parisc: Fix CONFIG_TLB_PTLOCK to work with lightweight spinlock checks

Herbert Xu (1):
xfrm: Silence warnings triggerable by bad packets

Jack Xiao (1):
drm/amdgpu: fix memory leak in mes self test

Jakub Kicinski (1):
net: openvswitch: reject negative ifindex

Jani Nikula (2):
Revert "drm/edid: Fix csync detailed mode parsing" drm/i915/sdvo: fix panel_type initialization

Jason Wang (1):
virtio-net: set queues after driver_ok

Jason Xing (1):
net: fix the RTO timer retransmitting skb every 1ms if linear option is enabled

Jerome Brunet (1):
ASoC: meson: axg-tdm-formatter: fix channel slot allocation

Jia-Ju Bai (1):
fs: ntfs3: Fix possible null-pointer dereferences in mi_read()

Jiasheng Jiang (1):
soc: aspeed: socinfo: Add kfree for kstrdup

Josef Bacik (1):
btrfs: fix incorrect splitting in btrfs_drop_extent_map_range

Justin Chen (1):
net: phy: broadcom: stub c45 read/write for 54810

Kailang Yang (1):
ALSA: hda/realtek - Remodified 3k pull low procedure

Karol Herbst (1):
drm/nouveau/disp: fix use-after-free in error handling of nouveau_connector_create

Kashyap Desai (1):
RDMA/bnxt_re: consider timeout of destroy ah as success.

Kathiravan T (1):
arm64: dts: qcom: ipq5332: add QFPROM node

Konstantin Komarov (2):
fs/ntfs3: Mark ntfs dirty when on-disk struct is corrupted fs/ntfs3: Alternative boot if primary boot is corrupted

Kuniyuki Iwashima (1):
af_unix: Fix null-ptr-deref in unix_stream_sendpage().

Lang Yu (2):
drm/amdgpu: install stub fence into potential unused fence pointers drm/amdgpu: unmap and remove csa_va properly

Laurent Pinchart (1):
media: uvcvideo: Fix menu count handling for userspace XU mappings

Leon Romanovsky (2):
xfrm: delete offloaded policy
xfrm: don't skip free of empty state in acquire policy

Li Yang (1):
net: phy: at803x: fix the wol setting functions

Liang Chen (1):
net: veth: Page pool creation error handling for existing pools only

Lin Ma (8):
vdpa: Add features attr to vdpa_nl_policy for nlattr length check
vdpa: Add queue index attr to vdpa_nl_policy for nlattr length check
vdpa: Add max vqp attr to vdpa_nl_policy for nlattr length check
net: xfrm: Fix xfrm_address_filter OOB read
net: af_key: fix sadb_x_filter validation
net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
xfrm: add NULL check in xfrm_update_ae_params
xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH

Long Li (1):
RDMA/mana_ib: Use v2 version of cfg_rx_steer_req to enable RX coalescing

Longlong Yao (1):
drm/amdgpu: fix calltrace warning in amddrm_buddy_fini

Lu Hongfei (1):
led: qcom-lpg: Fix resource leaks in for_each_available_child_of_node() loops

Luca Ceresoli (1):
drm/panel: simple: Fix AUO G121EAN01 panel timings according to the docs

Luke D. Jones (5):
ALSA: hda/realtek: Add quirk for ASUS ROG GX650P
ALSA: hda/realtek: Add quirk for ASUS ROG GA402X
ALSA: hda/realtek: Amend G634 quirk to enable rear speakers
ALSA: hda/realtek: Add quirk for ASUS ROG G614Jx
ALSA: hda/realtek: Add quirk for ASUS ROG GZ301V

Manish Chopra (1):
qede: fix firmware halt over suspend and resume

Marcin Szycik (1):
ice: Block switchdev mode when ADQ is active and vice versa

Mario Limonciello (1):
drm/amd: flush any delayed gfxoff on suspend entry

Mark Brown (2):
arm64/ptrace: Ensure that SME is set up for target when writing SSVE state arm64/ptrace: Ensure that the task sees ZT writes on first use

Martin Fuzzey (1):
regulator: da9063: better fix null deref with partial DT

Masahiro Yamada (1):
Revert "[PATCH] uml: export symbols added by GCC hardened"

Mathias Nyman (1):
xhci: get rid of XHCI_PLAT quirk that used to prevent MSI setup

Matthew Anderson (1):
Bluetooth: btusb: Add MT7922 bluetooth ID for the Asus Ally

Maxime Coquelin (1):
vduse: Use proper spinlock for IRQ injection

Michal Schmidt (4):
octeon_ep: fix timeout value for waiting on mbox response
octeon_ep: cancel tx_timeout_task later in remove sequence
octeon_ep: cancel ctrl_mbox_task after intr_poll_task
octeon_ep: cancel queued works in probe error path

Mika Westerberg (3):
thunderbolt: Read retimer NVM authentication status prior tb_retimer_set_inbound_sbtx()
thunderbolt: Add Intel Barlow Ridge PCI ID
thunderbolt: Limit Intel Barlow Ridge USB3 bandwidth

Ming Lei (1):

      blk-cgroup: hold queue_lock when removing blkg->q_node

Moti Haimovski (1):
accel/habanalabs: fix mem leak in capture user mappings

Nam Cao (1):
riscv: correct riscv_insn_is_c_jr() and riscv_insn_is_c_jalr()

Naohiro Aota (1):
btrfs: move out now unused BG from the reclaim list

Nathan Lynch (1):
powerpc/rtas_flash: allow user copy to flash block cache objects

Nicholas Kazlauskas (1):
drm/amd/display: Skip DPP DTO update if root clock is gated

Ninad Naik (1):
pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets

Ofir Bitton (1):
accel/habanalabs: add pci health check during heartbeat

Oleksij Rempel (1):
ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings

Pablo Neira Ayuso (3):
netfilter: nf_tables: fix GC transaction races with netns and netlink event exit path
netfilter: nf_tables: GC transaction race with netns dismantle
netfilter: nft_dynset: disallow object maps

Parker Newman (1):
i2c: tegra: Fix i2c-tegra DMA config option processing

Patrisious Haddad (1):
RDMA/mlx5: Return the firmware result upon destroying QP/RQ

Paulo Alcantara (1):
smb: client: fix warning in cifs_smb3_do_mount()

Peter Ujfalusi (2):
ASoC: Intel: sof_sdw: add quirk for LNL RVP
ASoC: SOF: core: Free the firmware trace before calling snd_sof_shutdown()

Peter Zijlstra (11):
x86/cpu: Fix __x86_return_thunk symbol type x86/cpu: Fix up srso_safe_ret() and __x86_return_thunk() objtool/x86: Fix SRSO mess
x86/alternative: Make custom return thunk unconditional x86/cpu: Clean up SRSO return thunk mess x86/cpu: Rename original retbleed methods x86/cpu: Rename srso_(.*)_alias to srso_alias_\1 x86/cpu: Cleanup the untrain mess
x86/cpu/kvm: Provide UNTRAIN_RET_VM objtool/x86: Fixup frame-pointer vs rethunk x86/static_call: Fix __static_call_fixup()

Petr Machata (1):
selftests: mirror_gre_changes: Tighten up the TTL test match

Petr Pavlu (2):
x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG x86/retpoline,kprobes: Skip optprobe check for indirect jumps with retpolines and IBT

Pierre-Louis Bossart (2):
ASoC: Intel: sof_sdw: add quick for Dell SKU 0BDA
ASoC: SOF: Intel: fix SoundWire/HDaudio mutual exclusion

Piotr Gardocki (1):
iavf: fix FDIR rule fields masks validation

Pranjal Ramajor Asha Kanojiya (1):
accel/qaic: Fix slicing memory leak

Prashanth K (1):
usb: gadget: u_serial: Avoid spinlock recursion in __gs_console_push

Qingsong Chen (1):
rust: macros: vtable: fix HAS_* redefinition (gen_const_name)

Quan Nguyen (1):
i2c: designware: Correct length byte validation logic

Radhey Shyam Pandey (1):
net: macb: In ZynqMP resume always configure PS GTR for non-wakeup source

Ranjani Sridharan (1):
ASoC: SOF: intel: hda: Clean up link DMA for IPC3 during stop

Raphael Gallais-Pou (1):
drm/stm: ltdc: fix late dereference check

Russell Harmon via samba-technical (1):
cifs: Release folio lock on fscache read hit.

Russell King (Oracle) (1):
net: phy: fix IRQ-based wake-on-lan over hibernate / power off

Scott Mayhew (1):
smb: client: fix null auth

Sean Christopherson (1):
x86/retpoline: Don't clobber RFLAGS during srso_safe_ret()

Shazad Hussain (1):
dt-bindings: pinctrl: qcom,sa8775p-tlmm: add gpio function constant

Sherry Sun (1):
tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms

Simon Trimmer (1):
ASoC: cs35l56: Move DSP part string generation so that it is done only once

Sishuai Gong (1):
ipvs: fix racy memcpy in proc_do_sync_threshold

Stefan Binding (1):
ALSA: hda/realtek: Add quirks for HP G11 Laptops

Stefan Wahren (1):
ARM: dts: imx: Adjust dma-apbh node name

Steve French (2):
cifs: fix potential oops in cifs_oplock_break
smb3: display network namespace in debug information

Sumit Gupta (1):
PCI: tegra194: Fix possible array out of bounds access

Suravee Suthikulpanit (1):
iommu/amd: Introduce Disable IRTE Caching Support

Sweet Tea Dorminy (1):
blk-crypto: dynamically allocate fallback profile

Tam Nguyen (1):
i2c: designware: Handle invalid SMBus block data response length value

Tim Huang (2):
drm/amdgpu: skip fence GFX interrupts disable/enable for S0ix drm/amd/pm: skip the RLC stop when S0i3 suspend for SMU v13.0.4/11

Tony Lindgren (2):
bus: ti-sysc: Flush posted write on enable before reset
serial: 8250: Fix oops for port->pm on uart_change_pm()

Tuo Li (2):
gfs2: Fix possible data races in gfs2_show_options()
ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync()

Uday M Bhat (1):
ASoC: Intel: sof_sdw: Add support for Rex soundwire

Umio Yasuno (1):
drm/amdgpu/pm: fix throttle_status for other than MP1 11.0.7

Uwe Kleine-König (1):
serial: stm32: Ignore return value of uart_remove_one_port() in .remove()

Venkata Prasad Potturu (2):
ASoC: SOF: amd: Add pci revision id check
ASoC: amd: vangogh: Add check for acp config flags in vangogh platform

Vinay Belgaumkar (1):
drm/i915/guc/slpc: Restore efficient freq earlier

Wander Lairson Costa (1):
drm/qxl: fix UAF on handle creation

Wei Chen (1):
mmc: sunplus: fix return value check of mmc_add_host()

Winston Wen (1):
cifs: fix session state check in reconnect to avoid use-after-free issue

Wolfram Sang (2):
drm: rcar-du: remove R-Car H3 ES1.* workarounds
virtio-mmio: don't break lifecycle of vm_dev

Xiang Yang (1):
net: pcs: Add missing put_device call in miic_create

Xiaolei Wang (2):
ARM: dts: imx: Set default tuning step for imx7d usdhc
ARM: dts: imx: Set default tuning step for imx6sx usdhc

Xin Long (1):
netfilter: set default timeout to 3 secs for sctp shutdown send and recv state

Xiubo Li (1):
ceph: try to dump the msgs when decoding fails

Xu Yang (3):
usb: chipidea: imx: don't request QoS for imx8ulp
usb: chipidea: imx: turn off vbus comparator when suspend
usb: chipidea: imx: add missing USB PHY DPDM wakeup setting

Yang Yingliang (1):
mmc: wbsd: fix double mmc_free_host() in wbsd_init()

Yangtao Li (1):
mmc: f-sdh30: fix order of function calls in sdhci_f_sdh30_remove

Yi Yang (1):
tty: n_gsm: fix the UAF caused by race condition in gsm_cleanup_mux

Yibin Ding (1):
mmc: block: Fix in_flight[issue_type] value error

Yicong Yang (1):
i2c: hisi: Only handle the interrupt of the driver's transfer

Yogesh Hegde (1):
arm64: dts: rockchip: Fix Wifi/Bluetooth on ROCK Pi 4 boards

Yuanjun Gong (1):
fbdev: mmp: fix value check in mmphw_probe()

Yuechao Zhao (1):
watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)

Yunfei Dong (1):
media: v4l2-mem2mem: add lock to protect parameter num_rdy

Zev Weiss (1):
soc: aspeed: uart-routing: Use __sysfs_match_string

Zhang Shurong (2):
firewire: net: fix use after free in fwnet_finish_incoming_packet()
ASoC: rt5665: add missed regulator_bulk_disable

Zhengchao Shao (3):
xfrm: fix slab-use-after-free in decode_session6
ip6_vti: fix slab-use-after-free in decode_session6
ip_vti: fix potential slab-use-after-free in decode_session6

Zhengping Jiang (1):
Bluetooth: L2CAP: Fix use-after-free

Ziyang Xuan (1):
team: Fix incorrect deletion of ETH_P_8021AD protocol vid from slaves

dengxiang (2):
ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
ALSA: usb-audio: Add support for Mythware XA001AU capture and playback interfaces.

gaoxu (1):
dma-remap: use kvmalloc_array/kvfree for larger dma memory remap

hackyzh002 (1):
drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1

shanzhulig (1):
drm/amdgpu: Fix potential fence use-after-free v2

stuarthayhurst (1):
HID: logitech-hidpp: Add USB and Bluetooth IDs for the Logitech G915 TKL Keyboard

xiaoshoukui (1):
btrfs: fix BUG_ON condition in btrfs_cancel_balance