Skip to contentSkip to conversation

Linux 6.6.30

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

lore
Share & tools
lore
author maintainer
#1 lore raw
In reply to Greg Kroah-Hartman
Documentation/admin-guide/kdump/vmcoreinfo.rst +3 -3
index 599e8d3bcbc3..9235cf4fbabf 100644
@@ -172,7 +172,7 @@ variables.
 Offset of the free_list's member. This value is used to compute the number
 of free pages.
 
-Each zone has a free_area structure array called free_area[MAX_ORDER + 1].
+Each zone has a free_area structure array called free_area[NR_PAGE_ORDERS].
 The free_list represents a linked list of free page blocks.
 
 (list_head, next|prev)
@@ -189,8 +189,8 @@ Offsets of the vmap_area's members. They carry vmalloc-specific
 information. Makedumpfile gets the start address of the vmalloc region
 from this.
 
-(zone.free_area, MAX_ORDER + 1)
--------------------------------
+(zone.free_area, NR_PAGE_ORDERS)
+--------------------------------
 
 Free areas descriptor. User-space tools use this value to iterate the
 free_area ranges. MAX_ORDER is used by the zone buddy allocator.
Documentation/admin-guide/sysctl/net.rst +5 -0
index 4877563241f3..5f1748f33d9a 100644
@@ -205,6 +205,11 @@ Will increase power usage.
 
 Default: 0 (off)
 
+mem_pcpu_rsv
+------------
+
+Per-cpu reserved forward alloc cache size in page units. Default 1MB per CPU.
+
 rmem_default
 ------------
 
Makefile +1 -1
index bb103505791e..1c144301b02f 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 6
-SUBLEVEL = 29
+SUBLEVEL = 30
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/Kconfig +8 -0
index 20c2c93d2c88..09603e0bc2cc 100644
@@ -9,6 +9,14 @@
 #
 source "arch/$(SRCARCH)/Kconfig"
 
+config ARCH_CONFIGURES_CPU_MITIGATIONS
+	bool
+
+if !ARCH_CONFIGURES_CPU_MITIGATIONS
+config CPU_MITIGATIONS
+	def_bool y
+endif
+
 menu "General architecture-dependent options"
 
 config ARCH_HAS_SUBPAGE_FAULTS
arch/arc/boot/dts/hsdk.dts +0 -1
index 6691f4255077..41b980df862b 100644
@@ -205,7 +205,6 @@ dmac_cfg_clk: dmac-gpu-cfg-clk {
 		};
 
 		gmac: ethernet@8000 {
-			#interrupt-cells = <1>;
 			compatible = "snps,dwmac";
 			reg = <0x8000 0x2000>;
 			interrupts = <10>;
arch/arm/boot/dts/microchip/at91-sama7g5ek.dts +4 -4
index 217e9b96c61e..20b2497657ae 100644
@@ -293,7 +293,7 @@ vddcore: VDD_CORE {
 
 					regulator-state-standby {
 						regulator-on-in-suspend;
-						regulator-suspend-voltage = <1150000>;
+						regulator-suspend-microvolt = <1150000>;
 						regulator-mode = <4>;
 					};
 
@@ -314,7 +314,7 @@ vddcpu: VDD_OTHER {
 
 					regulator-state-standby {
 						regulator-on-in-suspend;
-						regulator-suspend-voltage = <1050000>;
+						regulator-suspend-microvolt = <1050000>;
 						regulator-mode = <4>;
 					};
 
@@ -331,7 +331,7 @@ vldo1: LDO1 {
 					regulator-always-on;
 
 					regulator-state-standby {
-						regulator-suspend-voltage = <1800000>;
+						regulator-suspend-microvolt = <1800000>;
 						regulator-on-in-suspend;
 					};
 
@@ -346,7 +346,7 @@ vldo2: LDO2 {
 					regulator-max-microvolt = <3700000>;
 
 					regulator-state-standby {
-						regulator-suspend-voltage = <1800000>;
+						regulator-suspend-microvolt = <1800000>;
 						regulator-on-in-suspend;
 					};
 
arch/arm/boot/dts/nxp/imx/imx6ull-tarragon-common.dtsi +1 -0
index 3fdece5bd31f..5248a058230c 100644
@@ -805,6 +805,7 @@ &usbotg1 {
 		     &pinctrl_usb_pwr>;
 	dr_mode = "host";
 	power-active-high;
+	over-current-active-low;
 	disable-over-current;
 	status = "okay";
 };
arch/arm64/boot/dts/mediatek/mt2712-evb.dts +4 -4
index fffdb7bbf889..2d0ef6f23b3a 100644
@@ -129,7 +129,7 @@ ethernet_phy0: ethernet-phy@5 {
 };
 
 &pio {
-	eth_default: eth_default {
+	eth_default: eth-default-pins {
 		tx_pins {
 			pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GBE_TXD3>,
 				 <MT2712_PIN_72_GBE_TXD2__FUNC_GBE_TXD2>,
@@ -156,7 +156,7 @@ mdio_pins {
 		};
 	};
 
-	eth_sleep: eth_sleep {
+	eth_sleep: eth-sleep-pins {
 		tx_pins {
 			pinmux = <MT2712_PIN_71_GBE_TXD3__FUNC_GPIO71>,
 				 <MT2712_PIN_72_GBE_TXD2__FUNC_GPIO72>,
@@ -182,14 +182,14 @@ mdio_pins {
 		};
 	};
 
-	usb0_id_pins_float: usb0_iddig {
+	usb0_id_pins_float: usb0-iddig-pins {
 		pins_iddig {
 			pinmux = <MT2712_PIN_12_IDDIG_P0__FUNC_IDDIG_A>;
 			bias-pull-up;
 		};
 	};
 
-	usb1_id_pins_float: usb1_iddig {
+	usb1_id_pins_float: usb1-iddig-pins {
 		pins_iddig {
 			pinmux = <MT2712_PIN_14_IDDIG_P1__FUNC_IDDIG_B>;
 			bias-pull-up;
arch/arm64/boot/dts/mediatek/mt2712e.dtsi +2 -1
index ed1a9d319415..f767f921bdee 100644
@@ -249,10 +249,11 @@ topckgen: syscon@10000000 {
 		#clock-cells = <1>;
 	};
 
-	infracfg: syscon@10001000 {
+	infracfg: clock-controller@10001000 {
 		compatible = "mediatek,mt2712-infracfg", "syscon";
 		reg = <0 0x10001000 0 0x1000>;
 		#clock-cells = <1>;
+		#reset-cells = <1>;
 	};
 
 	pericfg: syscon@10003000 {
arch/arm64/boot/dts/mediatek/mt7622.dtsi +14 -20
index 3ee9266fa8e9..917fa39a74f8 100644
@@ -252,7 +252,7 @@ scpsys: power-controller@10006000 {
 		clock-names = "hif_sel";
 	};
 
-	cir: cir@10009000 {
+	cir: ir-receiver@10009000 {
 		compatible = "mediatek,mt7622-cir";
 		reg = <0 0x10009000 0 0x1000>;
 		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
@@ -283,16 +283,14 @@ thermal_calibration: calib@198 {
 		};
 	};
 
-	apmixedsys: apmixedsys@10209000 {
-		compatible = "mediatek,mt7622-apmixedsys",
-			     "syscon";
+	apmixedsys: clock-controller@10209000 {
+		compatible = "mediatek,mt7622-apmixedsys";
 		reg = <0 0x10209000 0 0x1000>;
 		#clock-cells = <1>;
 	};
 
-	topckgen: topckgen@10210000 {
-		compatible = "mediatek,mt7622-topckgen",
-			     "syscon";
+	topckgen: clock-controller@10210000 {
+		compatible = "mediatek,mt7622-topckgen";
 		reg = <0 0x10210000 0 0x1000>;
 		#clock-cells = <1>;
 	};
@@ -515,7 +513,6 @@ thermal: thermal@1100b000 {
 			 <&pericfg CLK_PERI_AUXADC_PD>;
 		clock-names = "therm", "auxadc";
 		resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
-		reset-names = "therm";
 		mediatek,auxadc = <&auxadc>;
 		mediatek,apmixedsys = <&apmixedsys>;
 		nvmem-cells = <&thermal_calibration>;
@@ -734,9 +731,8 @@ wmac: wmac@18000000 {
 		power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
 	};
 
-	ssusbsys: ssusbsys@1a000000 {
-		compatible = "mediatek,mt7622-ssusbsys",
-			     "syscon";
+	ssusbsys: clock-controller@1a000000 {
+		compatible = "mediatek,mt7622-ssusbsys";
 		reg = <0 0x1a000000 0 0x1000>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
@@ -793,9 +789,8 @@ u2port1: usb-phy@1a0c5000 {
 		};
 	};
 
-	pciesys: pciesys@1a100800 {
-		compatible = "mediatek,mt7622-pciesys",
-			     "syscon";
+	pciesys: clock-controller@1a100800 {
+		compatible = "mediatek,mt7622-pciesys";
 		reg = <0 0x1a100800 0 0x1000>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
@@ -921,12 +916,13 @@ sata_port: sata-phy@1a243000 {
 		};
 	};
 
-	hifsys: syscon@1af00000 {
-		compatible = "mediatek,mt7622-hifsys", "syscon";
+	hifsys: clock-controller@1af00000 {
+		compatible = "mediatek,mt7622-hifsys";
 		reg = <0 0x1af00000 0 0x70>;
+		#clock-cells = <1>;
 	};
 
-	ethsys: syscon@1b000000 {
+	ethsys: clock-controller@1b000000 {
 		compatible = "mediatek,mt7622-ethsys",
 			     "syscon";
 		reg = <0 0x1b000000 0 0x1000>;
@@ -966,9 +962,7 @@ wed1: wed@1020b000 {
 	};
 
 	eth: ethernet@1b100000 {
-		compatible = "mediatek,mt7622-eth",
-			     "mediatek,mt2701-eth",
-			     "syscon";
+		compatible = "mediatek,mt7622-eth";
 		reg = <0 0x1b100000 0 0x20000>;
 		interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
 			     <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts +3 -3
index e1ec2cccf444..aba6686eb34a 100644
@@ -146,19 +146,19 @@ sfp2: sfp-2 {
 
 &cpu_thermal {
 	cooling-maps {
-		cpu-active-high {
+		map-cpu-active-high {
 			/* active: set fan to cooling level 2 */
 			cooling-device = <&fan 2 2>;
 			trip = <&cpu_trip_active_high>;
 		};
 
-		cpu-active-med {
+		map-cpu-active-med {
 			/* active: set fan to cooling level 1 */
 			cooling-device = <&fan 1 1>;
 			trip = <&cpu_trip_active_med>;
 		};
 
-		cpu-active-low {
+		map-cpu-active-low {
 			/* active: set fan to cooling level 0 */
 			cooling-device = <&fan 0 0>;
 			trip = <&cpu_trip_active_low>;
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +85 -88

336 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -1
index 70becf10cacb..d846342c1d3b 100644
@@ -405,7 +405,6 @@ &mt6358codec {
 };
 
 &mt6358_vgpu_reg {
-	regulator-min-microvolt = <625000>;
 	regulator-max-microvolt = <900000>;
 
 	regulator-coupled-with = <&mt6358_vsram_gpu_reg>;
arch/arm64/boot/dts/mediatek/mt8183.dtsi +1 -0
index df6e9990cd5f..8721a5ffca30 100644
@@ -1628,6 +1628,7 @@ mfgcfg: syscon@13000000 {
 			compatible = "mediatek,mt8183-mfgcfg", "syscon";
 			reg = <0 0x13000000 0 0x1000>;
 			#clock-cells = <1>;
+			power-domains = <&spm MT8183_POWER_DOMAIN_MFG_ASYNC>;
 		};
 
 		gpu: gpu@13040000 {
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +3 -3
index 4bd1494b354c..dc39ebd1bbfc 100644
@@ -1392,7 +1392,7 @@ regulators {
 			mt6315_6_vbuck1: vbuck1 {
 				regulator-compatible = "vbuck1";
 				regulator-name = "Vbcpu";
-				regulator-min-microvolt = <300000>;
+				regulator-min-microvolt = <400000>;
 				regulator-max-microvolt = <1193750>;
 				regulator-enable-ramp-delay = <256>;
 				regulator-allowed-modes = <0 1 2>;
@@ -1402,7 +1402,7 @@ mt6315_6_vbuck1: vbuck1 {
 			mt6315_6_vbuck3: vbuck3 {
 				regulator-compatible = "vbuck3";
 				regulator-name = "Vlcpu";
-				regulator-min-microvolt = <300000>;
+				regulator-min-microvolt = <400000>;
 				regulator-max-microvolt = <1193750>;
 				regulator-enable-ramp-delay = <256>;
 				regulator-allowed-modes = <0 1 2>;
@@ -1419,7 +1419,7 @@ regulators {
 			mt6315_7_vbuck1: vbuck1 {
 				regulator-compatible = "vbuck1";
 				regulator-name = "Vgpu";
-				regulator-min-microvolt = <606250>;
+				regulator-min-microvolt = <400000>;
 				regulator-max-microvolt = <800000>;
 				regulator-enable-ramp-delay = <256>;
 				regulator-allowed-modes = <0 1 2>;
arch/arm64/boot/dts/mediatek/mt8192.dtsi +1 -0
index f1fc14e53f8c..b1443adc55aa 100644
@@ -1412,6 +1412,7 @@ mutex: mutex@14001000 {
 			reg = <0 0x14001000 0 0x1000>;
 			interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH 0>;
 			clocks = <&mmsys CLK_MM_DISP_MUTEX0>;
+			mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x1000 0x1000>;
 			mediatek,gce-events = <CMDQ_EVENT_DISP_STREAM_DONE_ENG_EVENT_0>,
 					      <CMDQ_EVENT_DISP_STREAM_DONE_ENG_EVENT_1>;
 			power-domains = <&spm MT8192_POWER_DOMAIN_DISP>;
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +139 -2

171 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8195.dtsi +5 -0
index 6708c4d21abf..2bb9d9aa65fe 100644
@@ -1963,6 +1963,7 @@ vppsys0: syscon@14000000 {
 			compatible = "mediatek,mt8195-vppsys0", "syscon";
 			reg = <0 0x14000000 0 0x1000>;
 			#clock-cells = <1>;
+			mediatek,gce-client-reg = <&gce1 SUBSYS_1400XXXX 0 0x1000>;
 		};
 
 		mutex@1400f000 {
@@ -2077,6 +2078,7 @@ vppsys1: syscon@14f00000 {
 			compatible = "mediatek,mt8195-vppsys1", "syscon";
 			reg = <0 0x14f00000 0 0x1000>;
 			#clock-cells = <1>;
+			mediatek,gce-client-reg = <&gce1 SUBSYS_14f0XXXX 0 0x1000>;
 		};
 
 		mutex@14f01000 {
@@ -2623,6 +2625,7 @@ vdosys0: syscon@1c01a000 {
 			reg = <0 0x1c01a000 0 0x1000>;
 			mboxes = <&gce0 0 CMDQ_THR_PRIO_4>;
 			#clock-cells = <1>;
+			mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0xa000 0x1000>;
 		};
 
 
@@ -2776,6 +2779,7 @@ mutex: mutex@1c016000 {
 			interrupts = <GIC_SPI 658 IRQ_TYPE_LEVEL_HIGH 0>;
 			power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
 			clocks = <&vdosys0 CLK_VDO0_DISP_MUTEX0>;
+			mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0x6000 0x1000>;
 			mediatek,gce-events = <CMDQ_EVENT_VDO0_DISP_STREAM_DONE_0>;
 		};
 
@@ -2846,6 +2850,7 @@ mutex1: mutex@1c101000 {
 			power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS1>;
 			clocks = <&vdosys1 CLK_VDO1_DISP_MUTEX>;
 			clock-names = "vdo1_mutex";
+			mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0x1000 0x1000>;
 			mediatek,gce-events = <CMDQ_EVENT_VDO1_STREAM_DONE_ENG_0>;
 		};
 
arch/arm64/boot/dts/qcom/sc8180x.dtsi +1 -1
index 6eb4c5eb6bb8..fbb9bf09078a 100644
@@ -2644,7 +2644,7 @@ usb_sec: usb@a8f8800 {
 			resets = <&gcc GCC_USB30_SEC_BCR>;
 			power-domains = <&gcc USB30_SEC_GDSC>;
 			interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
-					      <&pdc 7 IRQ_TYPE_LEVEL_HIGH>,
+					      <&pdc 40 IRQ_TYPE_LEVEL_HIGH>,
 					      <&pdc 10 IRQ_TYPE_EDGE_BOTH>,
 					      <&pdc 11 IRQ_TYPE_EDGE_BOTH>;
 			interrupt-names = "hs_phy_irq", "ss_phy_irq",
arch/arm64/boot/dts/qcom/sc8280xp.dtsi +5 -0
index b8081513176a..329dcfea51de 100644
@@ -1773,6 +1773,7 @@ pcie4: pcie@1c00000 {
 			reset-names = "pci";
 
 			power-domains = <&gcc PCIE_4_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			phys = <&pcie4_phy>;
 			phy-names = "pciephy";
@@ -1871,6 +1872,7 @@ pcie3b: pcie@1c08000 {
 			reset-names = "pci";
 
 			power-domains = <&gcc PCIE_3B_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			phys = <&pcie3b_phy>;
 			phy-names = "pciephy";
@@ -1969,6 +1971,7 @@ pcie3a: pcie@1c10000 {
 			reset-names = "pci";
 
 			power-domains = <&gcc PCIE_3A_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			phys = <&pcie3a_phy>;
 			phy-names = "pciephy";
@@ -2070,6 +2073,7 @@ pcie2b: pcie@1c18000 {
 			reset-names = "pci";
 
 			power-domains = <&gcc PCIE_2B_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			phys = <&pcie2b_phy>;
 			phy-names = "pciephy";
@@ -2168,6 +2172,7 @@ pcie2a: pcie@1c20000 {
 			reset-names = "pci";
 
 			power-domains = <&gcc PCIE_2A_GDSC>;
+			required-opps = <&rpmhpd_opp_nom>;
 
 			phys = <&pcie2a_phy>;
 			phy-names = "pciephy";
arch/arm64/boot/dts/qcom/sm8450.dtsi +4 -12
index 0fc25c6a481f..0229bd706a2e 100644
@@ -1774,12 +1774,8 @@ pcie0: pci@1c00000 {
 			ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>,
 				 <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>;
 
-			/*
-			 * MSIs for BDF (1:0.0) only works with Device ID 0x5980.
-			 * Hence, the IDs are swapped.
-			 */
-			msi-map = <0x0 &gic_its 0x5981 0x1>,
-				  <0x100 &gic_its 0x5980 0x1>;
+			msi-map = <0x0 &gic_its 0x5980 0x1>,
+				  <0x100 &gic_its 0x5981 0x1>;
 			msi-map-mask = <0xff00>;
 			interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "msi";
@@ -1888,12 +1884,8 @@ pcie1: pci@1c08000 {
 			ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>,
 				 <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>;
 
-			/*
-			 * MSIs for BDF (1:0.0) only works with Device ID 0x5a00.
-			 * Hence, the IDs are swapped.
-			 */
-			msi-map = <0x0 &gic_its 0x5a01 0x1>,
-				  <0x100 &gic_its 0x5a00 0x1>;
+			msi-map = <0x0 &gic_its 0x5a00 0x1>,
+				  <0x100 &gic_its 0x5a01 0x1>;
 			msi-map-mask = <0xff00>;
 			interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "msi";
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +0 -1
index 054c6a4d1a45..294eb2de263d 100644
@@ -779,7 +779,6 @@ &pcie_phy {
 };
 
 &pcie0 {
-	bus-scan-delay-ms = <1000>;
 	ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
 	num-lanes = <4>;
 	pinctrl-names = "default";
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +23 -8
index 20e3f41efe97..f2ca5d30d223 100644
@@ -401,16 +401,22 @@ &io_domains {
 	gpio1830-supply = <&vcc_1v8>;
 };
 
-&pmu_io_domains {
-	status = "okay";
-	pmu1830-supply = <&vcc_1v8>;
-};
-
-&pwm2 {
-	status = "okay";
+&pcie_clkreqn_cpm {
+	rockchip,pins =
+		<2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
 };
 
 &pinctrl {
+	pinctrl-names = "default";
+	pinctrl-0 = <&q7_thermal_pin>;
+
+	gpios {
+		q7_thermal_pin: q7-thermal-pin {
+			rockchip,pins =
+				<0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
+		};
+	};
+
 	i2c8 {
 		i2c8_xfer_a: i2c8-xfer {
 			rockchip,pins =
@@ -443,11 +449,20 @@ vcc5v0_host_en: vcc5v0-host-en {
 	usb3 {
 		usb3_id: usb3-id {
 			rockchip,pins =
-			  <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
+			  <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
 		};
 	};
 };
 
+&pmu_io_domains {
+	status = "okay";
+	pmu1830-supply = <&vcc_1v8>;
+};
+
+&pwm2 {
+	status = "okay";
+};
+
 &sdhci {
 	/*
 	 * Signal integrity isn't great at 200MHz but 100MHz has proven stable
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +4 -2
index f9127ddfbb7d..dc5892d25c10 100644
@@ -416,6 +416,8 @@ regulator-state-mem {
 
 			vccio_sd: LDO_REG5 {
 				regulator-name = "vccio_sd";
+				regulator-always-on;
+				regulator-boot-on;
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <3300000>;
 
@@ -525,9 +527,9 @@ &mdio0 {
 	#address-cells = <1>;
 	#size-cells = <0>;
 
-	switch@0 {
+	switch@1f {
 		compatible = "mediatek,mt7531";
-		reg = <0>;
+		reg = <0x1f>;
 
 		ports {
 			#address-cells = <1>;
arch/arm64/kvm/hyp/include/nvhe/gfp.h +1 -1
index fe5472a184a3..97c527ef53c2 100644
@@ -16,7 +16,7 @@ struct hyp_pool {
 	 * API at EL2.
 	 */
 	hyp_spinlock_t lock;
-	struct list_head free_area[MAX_ORDER + 1];
+	struct list_head free_area[NR_PAGE_ORDERS];
 	phys_addr_t range_start;
 	phys_addr_t range_end;
 	unsigned short max_order;
arch/loongarch/include/asm/perf_event.h +8 -0
index 2a35a0bc2aaa..52b638059e40 100644
@@ -7,6 +7,14 @@
 #ifndef __LOONGARCH_PERF_EVENT_H__
 #define __LOONGARCH_PERF_EVENT_H__
 
+#include <asm/ptrace.h>
+
 #define perf_arch_bpf_user_pt_regs(regs) (struct user_pt_regs *)regs
 
+#define perf_arch_fetch_caller_regs(regs, __ip) { \
+	(regs)->csr_era = (__ip); \
+	(regs)->regs[3] = current_stack_pointer; \
+	(regs)->regs[22] = (unsigned long) __builtin_frame_address(0); \
+}
+
 #endif /* __LOONGARCH_PERF_EVENT_H__ */
arch/loongarch/mm/fault.c +2 -2
index 1fc2f6813ea0..97b40defde06 100644
@@ -202,10 +202,10 @@ static void __kprobes __do_page_fault(struct pt_regs *regs,
 		if (!(vma->vm_flags & VM_WRITE))
 			goto bad_area;
 	} else {
-		if (!(vma->vm_flags & VM_READ) && address != exception_era(regs))
-			goto bad_area;
 		if (!(vma->vm_flags & VM_EXEC) && address == exception_era(regs))
 			goto bad_area;
+		if (!(vma->vm_flags & (VM_READ | VM_WRITE)) && address != exception_era(regs))
+			goto bad_area;
 	}
 
 	/*
arch/riscv/include/asm/page.h +1 -1
index 57e887bfa34c..94b3d6930fc3 100644
@@ -89,7 +89,7 @@ typedef struct page *pgtable_t;
 #define PTE_FMT "%08lx"
 #endif
 
-#ifdef CONFIG_64BIT
+#if defined(CONFIG_64BIT) && defined(CONFIG_MMU)
 /*
  * We override this value as its generic definition uses __pa too early in
  * the boot process (before kernel_map.va_pa_offset is set).
arch/riscv/include/asm/pgtable.h +2 -2
index 2793304bf1b7..719c3041ae1c 100644
@@ -903,8 +903,8 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)
 #define PAGE_SHARED		__pgprot(0)
 #define PAGE_KERNEL		__pgprot(0)
 #define swapper_pg_dir		NULL
-#define TASK_SIZE		0xffffffffUL
-#define VMALLOC_START		0
+#define TASK_SIZE		_AC(-1, UL)
+#define VMALLOC_START		_AC(0, UL)
 #define VMALLOC_END		TASK_SIZE
 
 #endif /* !CONFIG_MMU */
arch/riscv/kernel/setup.c +13 -0
index aac853ae4eb7..e600aab116a4 100644
@@ -173,6 +173,19 @@ static void __init init_resources(void)
 	if (ret < 0)
 		goto error;
 
+#ifdef CONFIG_KEXEC_CORE
+	if (crashk_res.start != crashk_res.end) {
+		ret = add_resource(&iomem_resource, &crashk_res);
+		if (ret < 0)
+			goto error;
+	}
+	if (crashk_low_res.start != crashk_low_res.end) {
+		ret = add_resource(&iomem_resource, &crashk_low_res);
+		if (ret < 0)
+			goto error;
+	}
+#endif
+
 #ifdef CONFIG_CRASH_DUMP
 	if (elfcorehdr_size > 0) {
 		elfcorehdr_res.start = elfcorehdr_addr;
arch/riscv/mm/init.c +1 -1
index b50faa232b5e..ec02ea86aa39 100644
@@ -230,7 +230,7 @@ static void __init setup_bootmem(void)
 	 * In 64-bit, any use of __va/__pa before this point is wrong as we
 	 * did not know the start of DRAM before.
 	 */
-	if (IS_ENABLED(CONFIG_64BIT))
+	if (IS_ENABLED(CONFIG_64BIT) && IS_ENABLED(CONFIG_MMU))
 		kernel_map.va_pa_offset = PAGE_OFFSET - phys_ram_base;
 
 	/*
arch/sparc/kernel/traps_64.c +1 -1
index 08ffd17d5ec3..523a6e5ee925 100644
@@ -897,7 +897,7 @@ void __init cheetah_ecache_flush_init(void)
 
 	/* Now allocate error trap reporting scoreboard. */
 	sz = NR_CPUS * (2 * sizeof(struct cheetah_err_info));
-	for (order = 0; order <= MAX_ORDER; order++) {
+	for (order = 0; order < NR_PAGE_ORDERS; order++) {
 		if ((PAGE_SIZE << order) >= sz)
 			break;
 	}
arch/x86/Kconfig +6 -5
index 0ca3130c6c8f..be9248e5cb71 100644
@@ -62,6 +62,7 @@ config X86
 	select ACPI_SYSTEM_POWER_STATES_SUPPORT	if ACPI
 	select ARCH_32BIT_OFF_T			if X86_32
 	select ARCH_CLOCKSOURCE_INIT
+	select ARCH_CONFIGURES_CPU_MITIGATIONS
 	select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
 	select ARCH_ENABLE_HUGEPAGE_MIGRATION if X86_64 && HUGETLB_PAGE && MIGRATION
 	select ARCH_ENABLE_MEMORY_HOTPLUG if X86_64
@@ -2421,17 +2422,17 @@ config PREFIX_SYMBOLS
 	def_bool y
 	depends on CALL_PADDING && !CFI_CLANG
 
-menuconfig SPECULATION_MITIGATIONS
-	bool "Mitigations for speculative execution vulnerabilities"
+menuconfig CPU_MITIGATIONS
+	bool "Mitigations for CPU vulnerabilities"
 	default y
 	help
-	  Say Y here to enable options which enable mitigations for
-	  speculative execution hardware vulnerabilities.
+	  Say Y here to enable options which enable mitigations for hardware
+	  vulnerabilities (usually related to speculative execution).
 
 	  If you say N, all mitigations will be disabled. You really
 	  should know what you are doing to say so.
 
-if SPECULATION_MITIGATIONS
+if CPU_MITIGATIONS
 
 config PAGE_TABLE_ISOLATION
 	bool "Remove the kernel mapping in user mode"
arch/x86/include/asm/coco.h +4 -1
index de03537a0182..c72b3553081c 100644
@@ -12,9 +12,10 @@ enum cc_vendor {
 };
 
 extern enum cc_vendor cc_vendor;
-extern u64 cc_mask;
 
 #ifdef CONFIG_ARCH_HAS_CC_PLATFORM
+extern u64 cc_mask;
+
 static inline void cc_set_mask(u64 mask)
 {
 	RIP_REL_REF(cc_mask) = mask;
@@ -24,6 +25,8 @@ u64 cc_mkenc(u64 val);
 u64 cc_mkdec(u64 val);
 void cc_random_init(void);
 #else
+static const u64 cc_mask = 0;
+
 static inline u64 cc_mkenc(u64 val)
 {
 	return val;
arch/x86/include/asm/pgtable_types.h +2 -1
index 0b748ee16b3d..9abb8cc4cd47 100644
@@ -148,7 +148,7 @@
 #define _COMMON_PAGE_CHG_MASK	(PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT |	\
 				 _PAGE_SPECIAL | _PAGE_ACCESSED |	\
 				 _PAGE_DIRTY_BITS | _PAGE_SOFT_DIRTY |	\
-				 _PAGE_DEVMAP | _PAGE_ENC | _PAGE_UFFD_WP)
+				 _PAGE_DEVMAP | _PAGE_CC | _PAGE_UFFD_WP)
 #define _PAGE_CHG_MASK	(_COMMON_PAGE_CHG_MASK | _PAGE_PAT)
 #define _HPAGE_CHG_MASK (_COMMON_PAGE_CHG_MASK | _PAGE_PSE | _PAGE_PAT_LARGE)
 
@@ -173,6 +173,7 @@ enum page_cache_mode {
 };
 #endif
 
+#define _PAGE_CC		(_AT(pteval_t, cc_mask))
 #define _PAGE_ENC		(_AT(pteval_t, sme_me_mask))
 
 #define _PAGE_CACHE_MASK	(_PAGE_PWT | _PAGE_PCD | _PAGE_PAT)
arch/x86/kernel/process_64.c +1 -1
index 33b268747bb7..4989095ab769 100644
@@ -138,7 +138,7 @@ void __show_regs(struct pt_regs *regs, enum show_regs_mode mode,
 		       log_lvl, d3, d6, d7);
 	}
 
-	if (cpu_feature_enabled(X86_FEATURE_OSPKE))
+	if (cr4 & X86_CR4_PKE)
 		printk("%sPKRU: %08x\n", log_lvl, read_pkru());
 }
 
arch/x86/kvm/pmu.c +29 -1
index dc8e8e907cfb..da2d82e3a873 100644
@@ -691,6 +691,8 @@ void kvm_pmu_reset(struct kvm_vcpu *vcpu)
  */
 void kvm_pmu_refresh(struct kvm_vcpu *vcpu)
 {
+	struct kvm_pmu *pmu = vcpu_to_pmu(vcpu);
+
 	if (KVM_BUG_ON(kvm_vcpu_has_run(vcpu), vcpu->kvm))
 		return;
 
@@ -700,8 +702,34 @@ void kvm_pmu_refresh(struct kvm_vcpu *vcpu)
 	 */
 	kvm_pmu_reset(vcpu);
 
-	bitmap_zero(vcpu_to_pmu(vcpu)->all_valid_pmc_idx, X86_PMC_IDX_MAX);
+	pmu->version = 0;
+	pmu->nr_arch_gp_counters = 0;
+	pmu->nr_arch_fixed_counters = 0;
+	pmu->counter_bitmask[KVM_PMC_GP] = 0;
+	pmu->counter_bitmask[KVM_PMC_FIXED] = 0;
+	pmu->reserved_bits = 0xffffffff00200000ull;
+	pmu->raw_event_mask = X86_RAW_EVENT_MASK;
+	pmu->global_ctrl_mask = ~0ull;
+	pmu->global_status_mask = ~0ull;
+	pmu->fixed_ctr_ctrl_mask = ~0ull;
+	pmu->pebs_enable_mask = ~0ull;
+	pmu->pebs_data_cfg_mask = ~0ull;
+	bitmap_zero(pmu->all_valid_pmc_idx, X86_PMC_IDX_MAX);
+
+	if (!vcpu->kvm->arch.enable_pmu)
+		return;
+
 	static_call(kvm_x86_pmu_refresh)(vcpu);
+
+	/*
+	 * At RESET, both Intel and AMD CPUs set all enable bits for general
+	 * purpose counters in IA32_PERF_GLOBAL_CTRL (so that software that
+	 * was written for v1 PMUs don't unknowingly leave GP counters disabled
+	 * in the global controls).  Emulate that behavior when refreshing the
+	 * PMU so that userspace doesn't need to manually set PERF_GLOBAL_CTRL.
+	 */
+	if (kvm_pmu_has_perf_global_ctrl(pmu) && pmu->nr_arch_gp_counters)
+		pmu->global_ctrl = GENMASK_ULL(pmu->nr_arch_gp_counters - 1, 0);
 }
 
 void kvm_pmu_init(struct kvm_vcpu *vcpu)
arch/x86/kvm/vmx/pmu_intel.c +2 -14
index 1549461fa42b..48a2f77f62ef 100644
@@ -493,19 +493,6 @@ static void intel_pmu_refresh(struct kvm_vcpu *vcpu)
 	u64 counter_mask;
 	int i;
 
-	pmu->nr_arch_gp_counters = 0;
-	pmu->nr_arch_fixed_counters = 0;
-	pmu->counter_bitmask[KVM_PMC_GP] = 0;
-	pmu->counter_bitmask[KVM_PMC_FIXED] = 0;
-	pmu->version = 0;
-	pmu->reserved_bits = 0xffffffff00200000ull;
-	pmu->raw_event_mask = X86_RAW_EVENT_MASK;
-	pmu->global_ctrl_mask = ~0ull;
-	pmu->global_status_mask = ~0ull;
-	pmu->fixed_ctr_ctrl_mask = ~0ull;
-	pmu->pebs_enable_mask = ~0ull;
-	pmu->pebs_data_cfg_mask = ~0ull;
-
 	memset(&lbr_desc->records, 0, sizeof(lbr_desc->records));
 
 	/*
@@ -517,8 +504,9 @@ static void intel_pmu_refresh(struct kvm_vcpu *vcpu)
 		return;
 
 	entry = kvm_find_cpuid_entry(vcpu, 0xa);
-	if (!entry || !vcpu->kvm->arch.enable_pmu)
+	if (!entry)
 		return;
+
 	eax.full = entry->eax;
 	edx.full = entry->edx;
 
drivers/acpi/cppc_acpi.c +57 -15

165 lines not on this page · raw message

drivers/bluetooth/btmtk.c +3 -4
index ac8ebccd3507..812fd2a8f853 100644
@@ -380,8 +380,10 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
 	switch (data->cd_info.state) {
 	case HCI_DEVCOREDUMP_IDLE:
 		err = hci_devcd_init(hdev, MTK_COREDUMP_SIZE);
-		if (err < 0)
+		if (err < 0) {
+			kfree_skb(skb);
 			break;
+		}
 		data->cd_info.cnt = 0;
 
 		/* It is supposed coredump can be done within 5 seconds */
@@ -407,9 +409,6 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
 		break;
 	}
 
-	if (err < 0)
-		kfree_skb(skb);
-
 	return err;
 }
 EXPORT_SYMBOL_GPL(btmtk_process_coredump);
drivers/bluetooth/btusb.c +6 -5
index 1976593bc804..d178e1464bfd 100644
@@ -541,6 +541,8 @@ static const struct usb_device_id quirks_table[] = {
 	/* Realtek 8852BE Bluetooth devices */
 	{ USB_DEVICE(0x0cb8, 0xc559), .driver_info = BTUSB_REALTEK |
 						     BTUSB_WIDEBAND_SPEECH },
+	{ USB_DEVICE(0x0bda, 0x4853), .driver_info = BTUSB_REALTEK |
+						     BTUSB_WIDEBAND_SPEECH },
 	{ USB_DEVICE(0x0bda, 0x887b), .driver_info = BTUSB_REALTEK |
 						     BTUSB_WIDEBAND_SPEECH },
 	{ USB_DEVICE(0x0bda, 0xb85b), .driver_info = BTUSB_REALTEK |
@@ -3457,13 +3459,12 @@ static void btusb_dump_hdr_qca(struct hci_dev *hdev, struct sk_buff *skb)
 
 static void btusb_coredump_qca(struct hci_dev *hdev)
 {
+	int err;
 	static const u8 param[] = { 0x26 };
-	struct sk_buff *skb;
 
-	skb = __hci_cmd_sync(hdev, 0xfc0c, 1, param, HCI_CMD_TIMEOUT);
-	if (IS_ERR(skb))
-		bt_dev_err(hdev, "%s: triggle crash failed (%ld)", __func__, PTR_ERR(skb));
-	kfree_skb(skb);
+	err = __hci_cmd_send(hdev, 0xfc0c, 1, param);
+	if (err < 0)
+		bt_dev_err(hdev, "%s: triggle crash failed (%d)", __func__, err);
 }
 
 /*
drivers/bluetooth/hci_qca.c +20 -7
index 8861b8017fbd..410f146e3f67 100644
@@ -1672,6 +1672,9 @@ static bool qca_wakeup(struct hci_dev *hdev)
 	struct hci_uart *hu = hci_get_drvdata(hdev);
 	bool wakeup;
 
+	if (!hu->serdev)
+		return true;
+
 	/* BT SoC attached through the serial bus is handled by the serdev driver.
 	 * So we need to use the device handle of the serdev driver to get the
 	 * status of device may wakeup.
@@ -1935,8 +1938,10 @@ static int qca_setup(struct hci_uart *hu)
 		qca_debugfs_init(hdev);
 		hu->hdev->hw_error = qca_hw_error;
 		hu->hdev->cmd_timeout = qca_cmd_timeout;
-		if (device_can_wakeup(hu->serdev->ctrl->dev.parent))
-			hu->hdev->wakeup = qca_wakeup;
+		if (hu->serdev) {
+			if (device_can_wakeup(hu->serdev->ctrl->dev.parent))
+				hu->hdev->wakeup = qca_wakeup;
+		}
 	} else if (ret == -ENOENT) {
 		/* No patch/nvm-config found, run with original fw/config */
 		set_bit(QCA_ROM_FW, &qca->flags);
@@ -2298,16 +2303,21 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 		    (data->soc_type == QCA_WCN6750 ||
 		     data->soc_type == QCA_WCN6855)) {
 			dev_err(&serdev->dev, "failed to acquire BT_EN gpio\n");
-			power_ctrl_enabled = false;
+			return PTR_ERR(qcadev->bt_en);
 		}
 
+		if (!qcadev->bt_en)
+			power_ctrl_enabled = false;
+
 		qcadev->sw_ctrl = devm_gpiod_get_optional(&serdev->dev, "swctrl",
 					       GPIOD_IN);
 		if (IS_ERR(qcadev->sw_ctrl) &&
 		    (data->soc_type == QCA_WCN6750 ||
 		     data->soc_type == QCA_WCN6855 ||
-		     data->soc_type == QCA_WCN7850))
-			dev_warn(&serdev->dev, "failed to acquire SW_CTRL gpio\n");
+		     data->soc_type == QCA_WCN7850)) {
+			dev_err(&serdev->dev, "failed to acquire SW_CTRL gpio\n");
+			return PTR_ERR(qcadev->sw_ctrl);
+		}
 
 		qcadev->susclk = devm_clk_get_optional(&serdev->dev, NULL);
 		if (IS_ERR(qcadev->susclk)) {
@@ -2326,10 +2336,13 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 		qcadev->bt_en = devm_gpiod_get_optional(&serdev->dev, "enable",
 					       GPIOD_OUT_LOW);
 		if (IS_ERR(qcadev->bt_en)) {
-			dev_warn(&serdev->dev, "failed to acquire enable gpio\n");
-			power_ctrl_enabled = false;
+			dev_err(&serdev->dev, "failed to acquire enable gpio\n");
+			return PTR_ERR(qcadev->bt_en);
 		}
 
+		if (!qcadev->bt_en)
+			power_ctrl_enabled = false;
+
 		qcadev->susclk = devm_clk_get_optional(&serdev->dev, NULL);
 		if (IS_ERR(qcadev->susclk)) {
 			dev_warn(&serdev->dev, "failed to acquire clk\n");
drivers/cxl/core/mbox.c +17 -21
index 4b4c15e94338..fecaa18f4dd2 100644
@@ -959,25 +959,22 @@ static void cxl_mem_get_records_log(struct cxl_memdev_state *mds,
 	struct cxl_memdev *cxlmd = mds->cxlds.cxlmd;
 	struct device *dev = mds->cxlds.dev;
 	struct cxl_get_event_payload *payload;
-	struct cxl_mbox_cmd mbox_cmd;
 	u8 log_type = type;
 	u16 nr_rec;
 
 	mutex_lock(&mds->event.log_lock);
 	payload = mds->event.buf;
 
-	mbox_cmd = (struct cxl_mbox_cmd) {
-		.opcode = CXL_MBOX_OP_GET_EVENT_RECORD,
-		.payload_in = &log_type,
-		.size_in = sizeof(log_type),
-		.payload_out = payload,
-		.min_out = struct_size(payload, records, 0),
-	};
-
 	do {
 		int rc, i;
-
-		mbox_cmd.size_out = mds->payload_size;
+		struct cxl_mbox_cmd mbox_cmd = (struct cxl_mbox_cmd) {
+			.opcode = CXL_MBOX_OP_GET_EVENT_RECORD,
+			.payload_in = &log_type,
+			.size_in = sizeof(log_type),
+			.payload_out = payload,
+			.size_out = mds->payload_size,
+			.min_out = struct_size(payload, records, 0),
+		};
 
 		rc = cxl_internal_send_cmd(mds, &mbox_cmd);
 		if (rc) {
@@ -1311,7 +1308,6 @@ int cxl_mem_get_poison(struct cxl_memdev *cxlmd, u64 offset, u64 len,
 	struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds);
 	struct cxl_mbox_poison_out *po;
 	struct cxl_mbox_poison_in pi;
-	struct cxl_mbox_cmd mbox_cmd;
 	int nr_records = 0;
 	int rc;
 
@@ -1323,16 +1319,16 @@ int cxl_mem_get_poison(struct cxl_memdev *cxlmd, u64 offset, u64 len,
 	pi.offset = cpu_to_le64(offset);
 	pi.length = cpu_to_le64(len / CXL_POISON_LEN_MULT);
 
-	mbox_cmd = (struct cxl_mbox_cmd) {
-		.opcode = CXL_MBOX_OP_GET_POISON,
-		.size_in = sizeof(pi),
-		.payload_in = &pi,
-		.size_out = mds->payload_size,
-		.payload_out = po,
-		.min_out = struct_size(po, record, 0),
-	};
-
 	do {
+		struct cxl_mbox_cmd mbox_cmd = (struct cxl_mbox_cmd){
+			.opcode = CXL_MBOX_OP_GET_POISON,
+			.size_in = sizeof(pi),
+			.payload_in = &pi,
+			.size_out = mds->payload_size,
+			.payload_out = po,
+			.min_out = struct_size(po, record, 0),
+		};
+
 		rc = cxl_internal_send_cmd(mds, &mbox_cmd);
 		if (rc)
 			break;
drivers/dma/idma64.c +4 -0
index 0ac634a51c5e..f86939fa33b9 100644
@@ -171,6 +171,10 @@ static irqreturn_t idma64_irq(int irq, void *dev)
 	u32 status_err;
 	unsigned short i;
 
+	/* Since IRQ may be shared, check if DMA controller is powered on */
+	if (status == GENMASK(31, 0))
+		return IRQ_NONE;
+
 	dev_vdbg(idma64->dma.dev, "%s: status=%#x\n", __func__, status);
 
 	/* Check if we have any interrupt from the DMA controller */
drivers/dma/idxd/cdev.c +2 -3
index 4eeec95a6675..ad7b55dd9596 100644
@@ -342,7 +342,7 @@ static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid)
 	if (!evl)
 		return;
 
-	spin_lock(&evl->lock);
+	mutex_lock(&evl->lock);
 	status.bits = ioread64(idxd->reg_base + IDXD_EVLSTATUS_OFFSET);
 	t = status.tail;
 	h = status.head;
@@ -354,9 +354,8 @@ static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid)
 			set_bit(h, evl->bmap);
 		h = (h + 1) % size;
 	}
-	spin_unlock(&evl->lock);
-
 	drain_workqueue(wq->wq);
+	mutex_unlock(&evl->lock);
 }
 
 static int idxd_cdev_release(struct inode *node, struct file *filep)
drivers/dma/idxd/debugfs.c +2 -2
index f3f25ee676f3..ad4245cb301d 100644
@@ -66,7 +66,7 @@ static int debugfs_evl_show(struct seq_file *s, void *d)
 	if (!evl || !evl->log)
 		return 0;
 
-	spin_lock(&evl->lock);
+	mutex_lock(&evl->lock);
 
 	evl_status.bits = ioread64(idxd->reg_base + IDXD_EVLSTATUS_OFFSET);
 	t = evl_status.tail;
@@ -87,7 +87,7 @@ static int debugfs_evl_show(struct seq_file *s, void *d)
 		dump_event_entry(idxd, s, i, &count, processed);
 	}
 
-	spin_unlock(&evl->lock);
+	mutex_unlock(&evl->lock);
 	return 0;
 }
 
drivers/dma/idxd/device.c +4 -4
index fa0f880beae6..542d340552dd 100644
@@ -770,7 +770,7 @@ static int idxd_device_evl_setup(struct idxd_device *idxd)
 		goto err_alloc;
 	}
 
-	spin_lock(&evl->lock);
+	mutex_lock(&evl->lock);
 	evl->log = addr;
 	evl->dma = dma_addr;
 	evl->log_size = size;
@@ -791,7 +791,7 @@ static int idxd_device_evl_setup(struct idxd_device *idxd)
 	gencfg.evl_en = 1;
 	iowrite32(gencfg.bits, idxd->reg_base + IDXD_GENCFG_OFFSET);
 
-	spin_unlock(&evl->lock);
+	mutex_unlock(&evl->lock);
 	return 0;
 
 err_alloc:
@@ -814,7 +814,7 @@ static void idxd_device_evl_free(struct idxd_device *idxd)
 	if (!gencfg.evl_en)
 		return;
 
-	spin_lock(&evl->lock);
+	mutex_lock(&evl->lock);
 	gencfg.evl_en = 0;
 	iowrite32(gencfg.bits, idxd->reg_base + IDXD_GENCFG_OFFSET);
 
@@ -831,7 +831,7 @@ static void idxd_device_evl_free(struct idxd_device *idxd)
 	evl_dma = evl->dma;
 	evl->log = NULL;
 	evl->size = IDXD_EVL_SIZE_MIN;
-	spin_unlock(&evl->lock);
+	mutex_unlock(&evl->lock);
 
 	dma_free_coherent(dev, evl_log_size, evl_log, evl_dma);
 }
drivers/dma/idxd/idxd.h +1 -1
index 6fc79deb99bf..df62dd129118 100644
@@ -279,7 +279,7 @@ struct idxd_driver_data {
 
 struct idxd_evl {
 	/* Lock to protect event log access. */
-	spinlock_t lock;
+	struct mutex lock;
 	void *log;
 	dma_addr_t dma;
 	/* Total size of event log = number of entries * entry size. */
drivers/dma/idxd/init.c +1 -1
index d09a8553ea71..2e323c9b2068 100644
@@ -353,7 +353,7 @@ static int idxd_init_evl(struct idxd_device *idxd)
 	if (!evl)
 		return -ENOMEM;
 
-	spin_lock_init(&evl->lock);
+	mutex_init(&evl->lock);
 	evl->size = IDXD_EVL_SIZE_MIN;
 
 	idxd_name = dev_name(idxd_confdev(idxd));
drivers/dma/idxd/irq.c +2 -2
index 0bbc6bdc6145..b2ca9c1f194c 100644
@@ -363,7 +363,7 @@ static void process_evl_entries(struct idxd_device *idxd)
 	evl_status.bits = 0;
 	evl_status.int_pending = 1;
 
-	spin_lock(&evl->lock);
+	mutex_lock(&evl->lock);
 	/* Clear interrupt pending bit */
 	iowrite32(evl_status.bits_upper32,
 		  idxd->reg_base + IDXD_EVLSTATUS_OFFSET + sizeof(u32));
@@ -380,7 +380,7 @@ static void process_evl_entries(struct idxd_device *idxd)
 
 	evl_status.head = h;
 	iowrite32(evl_status.bits_lower32, idxd->reg_base + IDXD_EVLSTATUS_OFFSET);
-	spin_unlock(&evl->lock);
+	mutex_unlock(&evl->lock);
 }
 
 irqreturn_t idxd_misc_thread(int vec, void *data)
drivers/dma/idxd/perfmon.c +3 -6
index fdda6d604262..5e94247e1ea7 100644
@@ -528,14 +528,11 @@ static int perf_event_cpu_offline(unsigned int cpu, struct hlist_node *node)
 		return 0;
 
 	target = cpumask_any_but(cpu_online_mask, cpu);
-
 	/* migrate events if there is a valid target */
-	if (target < nr_cpu_ids)
+	if (target < nr_cpu_ids) {
 		cpumask_set_cpu(target, &perfmon_dsa_cpu_mask);
-	else
-		target = -1;
-
-	perf_pmu_migrate_context(&idxd_pmu->pmu, cpu, target);
+		perf_pmu_migrate_context(&idxd_pmu->pmu, cpu, target);
+	}
 
 	return 0;
 }
drivers/dma/owl-dma.c +2 -2
index 384476757c5e..3bcf73ef69dc 100644
@@ -250,7 +250,7 @@ static void pchan_update(struct owl_dma_pchan *pchan, u32 reg,
 	else
 		regval &= ~val;
 
-	writel(val, pchan->base + reg);
+	writel(regval, pchan->base + reg);
 }
 
 static void pchan_writel(struct owl_dma_pchan *pchan, u32 reg, u32 data)
@@ -274,7 +274,7 @@ static void dma_update(struct owl_dma *od, u32 reg, u32 val, bool state)
 	else
 		regval &= ~val;
 
-	writel(val, od->base + reg);
+	writel(regval, od->base + reg);
 }
 
 static void dma_writel(struct owl_dma *od, u32 reg, u32 data)
drivers/dma/tegra186-gpc-dma.c +3 -0
index 33b101001100..674cf6305283 100644
@@ -746,6 +746,9 @@ static int tegra_dma_get_residual(struct tegra_dma_channel *tdc)
 	bytes_xfer = dma_desc->bytes_xfer +
 		     sg_req[dma_desc->sg_idx].len - (wcount * 4);
 
+	if (dma_desc->bytes_req == bytes_xfer)
+		return 0;
+
 	residual = dma_desc->bytes_req - (bytes_xfer % dma_desc->bytes_req);
 
 	return residual;
drivers/dma/xilinx/xilinx_dpdma.c +10 -3
index 84dc5240a807..93938ed80fc8 100644
@@ -214,7 +214,8 @@ struct xilinx_dpdma_tx_desc {
  * @running: true if the channel is running
  * @first_frame: flag for the first frame of stream
  * @video_group: flag if multi-channel operation is needed for video channels
- * @lock: lock to access struct xilinx_dpdma_chan
+ * @lock: lock to access struct xilinx_dpdma_chan. Must be taken before
+ *        @vchan.lock, if both are to be held.
  * @desc_pool: descriptor allocation pool
  * @err_task: error IRQ bottom half handler
  * @desc: References to descriptors being processed
@@ -1097,12 +1098,14 @@ static void xilinx_dpdma_chan_vsync_irq(struct  xilinx_dpdma_chan *chan)
 	 * Complete the active descriptor, if any, promote the pending
 	 * descriptor to active, and queue the next transfer, if any.
 	 */
+	spin_lock(&chan->vchan.lock);
 	if (chan->desc.active)
 		vchan_cookie_complete(&chan->desc.active->vdesc);
 	chan->desc.active = pending;
 	chan->desc.pending = NULL;
 
 	xilinx_dpdma_chan_queue_transfer(chan);
+	spin_unlock(&chan->vchan.lock);
 
 out:
 	spin_unlock_irqrestore(&chan->lock, flags);
@@ -1264,10 +1267,12 @@ static void xilinx_dpdma_issue_pending(struct dma_chan *dchan)
 	struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan);
 	unsigned long flags;
 
-	spin_lock_irqsave(&chan->vchan.lock, flags);
+	spin_lock_irqsave(&chan->lock, flags);
+	spin_lock(&chan->vchan.lock);
 	if (vchan_issue_pending(&chan->vchan))
 		xilinx_dpdma_chan_queue_transfer(chan);
-	spin_unlock_irqrestore(&chan->vchan.lock, flags);
+	spin_unlock(&chan->vchan.lock);
+	spin_unlock_irqrestore(&chan->lock, flags);
 }
 
 static int xilinx_dpdma_config(struct dma_chan *dchan,
@@ -1495,7 +1500,9 @@ static void xilinx_dpdma_chan_err_task(struct tasklet_struct *t)
 		    XILINX_DPDMA_EINTR_CHAN_ERR_MASK << chan->id);
 
 	spin_lock_irqsave(&chan->lock, flags);
+	spin_lock(&chan->vchan.lock);
 	xilinx_dpdma_chan_queue_transfer(chan);
+	spin_unlock(&chan->vchan.lock);
 	spin_unlock_irqrestore(&chan->lock, flags);
 }
 
drivers/gpio/gpio-tangier.c +6 -3
index 7ce3eddaed25..1ce40b7673b1 100644
@@ -205,7 +205,8 @@ static int tng_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
 
 static void tng_irq_ack(struct irq_data *d)
 {
-	struct tng_gpio *priv = irq_data_get_irq_chip_data(d);
+	struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
+	struct tng_gpio *priv = gpiochip_get_data(gc);
 	irq_hw_number_t gpio = irqd_to_hwirq(d);
 	unsigned long flags;
 	void __iomem *gisr;
@@ -241,7 +242,8 @@ static void tng_irq_unmask_mask(struct tng_gpio *priv, u32 gpio, bool unmask)
 
 static void tng_irq_mask(struct irq_data *d)
 {
-	struct tng_gpio *priv = irq_data_get_irq_chip_data(d);
+	struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
+	struct tng_gpio *priv = gpiochip_get_data(gc);
 	irq_hw_number_t gpio = irqd_to_hwirq(d);
 
 	tng_irq_unmask_mask(priv, gpio, false);
@@ -250,7 +252,8 @@ static void tng_irq_mask(struct irq_data *d)
 
 static void tng_irq_unmask(struct irq_data *d)
 {
-	struct tng_gpio *priv = irq_data_get_irq_chip_data(d);
+	struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
+	struct tng_gpio *priv = gpiochip_get_data(gc);
 	irq_hw_number_t gpio = irqd_to_hwirq(d);
 
 	gpiochip_enable_irq(&priv->chip, gpio);
drivers/gpio/gpio-tegra186.c +11 -9
index d87dd06db40d..9130c691a2dd 100644
@@ -36,12 +36,6 @@
 #define  TEGRA186_GPIO_SCR_SEC_REN		BIT(27)
 #define  TEGRA186_GPIO_SCR_SEC_G1W		BIT(9)
 #define  TEGRA186_GPIO_SCR_SEC_G1R		BIT(1)
-#define  TEGRA186_GPIO_FULL_ACCESS		(TEGRA186_GPIO_SCR_SEC_WEN | \
-						 TEGRA186_GPIO_SCR_SEC_REN | \
-						 TEGRA186_GPIO_SCR_SEC_G1R | \
-						 TEGRA186_GPIO_SCR_SEC_G1W)
-#define  TEGRA186_GPIO_SCR_SEC_ENABLE		(TEGRA186_GPIO_SCR_SEC_WEN | \
-						 TEGRA186_GPIO_SCR_SEC_REN)
 
 /* control registers */
 #define TEGRA186_GPIO_ENABLE_CONFIG 0x00
@@ -177,10 +171,18 @@ static inline bool tegra186_gpio_is_accessible(struct tegra_gpio *gpio, unsigned
 
 	value = __raw_readl(secure + TEGRA186_GPIO_SCR);
 
-	if ((value & TEGRA186_GPIO_SCR_SEC_ENABLE) == 0)
-		return true;
+	/*
+	 * When SCR_SEC_[R|W]EN is unset, then we have full read/write access to all the
+	 * registers for given GPIO pin.
+	 * When SCR_SEC[R|W]EN is set, then there is need to further check the accompanying
+	 * SCR_SEC_G1[R|W] bit to determine read/write access to all the registers for given
+	 * GPIO pin.
+	 */
 
-	if ((value & TEGRA186_GPIO_FULL_ACCESS) == TEGRA186_GPIO_FULL_ACCESS)
+	if (((value & TEGRA186_GPIO_SCR_SEC_REN) == 0 ||
+	     ((value & TEGRA186_GPIO_SCR_SEC_REN) && (value & TEGRA186_GPIO_SCR_SEC_G1R))) &&
+	     ((value & TEGRA186_GPIO_SCR_SEC_WEN) == 0 ||
+	     ((value & TEGRA186_GPIO_SCR_SEC_WEN) && (value & TEGRA186_GPIO_SCR_SEC_G1W))))
 		return true;
 
 	return false;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 -0
index e036011137aa..15c5a2533ba6 100644
@@ -1785,6 +1785,7 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
 err_bo_create:
 	amdgpu_amdkfd_unreserve_mem_limit(adev, aligned_size, flags, xcp_id);
 err_reserve_limit:
+	amdgpu_sync_free(&(*mem)->sync);
 	mutex_destroy(&(*mem)->lock);
 	if (gobj)
 		drm_gem_object_put(gobj);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
index c0a3afe81bb1..4294f5e7bff9 100644
@@ -819,7 +819,7 @@ static int amdgpu_cs_bo_validate(void *param, struct amdgpu_bo *bo)
 
 	p->bytes_moved += ctx.bytes_moved;
 	if (!amdgpu_gmc_vram_full_visible(&adev->gmc) &&
-	    amdgpu_bo_in_cpu_visible_vram(bo))
+	    amdgpu_res_cpu_visible(adev, bo->tbo.resource))
 		p->bytes_moved_vis += ctx.bytes_moved;
 
 	if (unlikely(r == -ENOMEM) && domain != bo->allowed_domains) {
drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c +4 -0
index 6038b5021b27..792c059ff7b3 100644
@@ -105,6 +105,10 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file)
 		   stats.requested_visible_vram/1024UL);
 	drm_printf(p, "amd-requested-gtt:\t%llu KiB\n",
 		   stats.requested_gtt/1024UL);
+	drm_printf(p, "drm-shared-vram:\t%llu KiB\n", stats.vram_shared/1024UL);
+	drm_printf(p, "drm-shared-gtt:\t%llu KiB\n", stats.gtt_shared/1024UL);
+	drm_printf(p, "drm-shared-cpu:\t%llu KiB\n", stats.cpu_shared/1024UL);
+
 	for (hw_ip = 0; hw_ip < AMDGPU_HW_IP_NUM; ++hw_ip) {
 		if (!usage[hw_ip])
 			continue;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +22 -11
index 173b43a5aa13..361f2cc94e8e 100644
@@ -625,8 +625,7 @@ int amdgpu_bo_create(struct amdgpu_device *adev,
 		return r;
 
 	if (!amdgpu_gmc_vram_full_visible(&adev->gmc) &&
-	    bo->tbo.resource->mem_type == TTM_PL_VRAM &&
-	    amdgpu_bo_in_cpu_visible_vram(bo))
+	    amdgpu_res_cpu_visible(adev, bo->tbo.resource))
 		amdgpu_cs_report_moved_bytes(adev, ctx.bytes_moved,
 					     ctx.bytes_moved);
 	else
@@ -1280,26 +1279,39 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict)
 void amdgpu_bo_get_memory(struct amdgpu_bo *bo,
 			  struct amdgpu_mem_stats *stats)
 {
+	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
+	struct ttm_resource *res = bo->tbo.resource;
 	uint64_t size = amdgpu_bo_size(bo);
+	struct drm_gem_object *obj;
 	unsigned int domain;
+	bool shared;
 
 	/* Abort if the BO doesn't currently have a backing store */
-	if (!bo->tbo.resource)
+	if (!res)
 		return;
 
-	domain = amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type);
+	obj = &bo->tbo.base;
+	shared = drm_gem_object_is_shared_for_memory_stats(obj);
+
+	domain = amdgpu_mem_type_to_domain(res->mem_type);
 	switch (domain) {
 	case AMDGPU_GEM_DOMAIN_VRAM:
 		stats->vram += size;
-		if (amdgpu_bo_in_cpu_visible_vram(bo))
+		if (amdgpu_res_cpu_visible(adev, bo->tbo.resource))
 			stats->visible_vram += size;
+		if (shared)
+			stats->vram_shared += size;
 		break;
 	case AMDGPU_GEM_DOMAIN_GTT:
 		stats->gtt += size;
+		if (shared)
+			stats->gtt_shared += size;
 		break;
 	case AMDGPU_GEM_DOMAIN_CPU:
 	default:
 		stats->cpu += size;
+		if (shared)
+			stats->cpu_shared += size;
 		break;
 	}
 
@@ -1384,10 +1396,7 @@ vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo)
 	/* Remember that this BO was accessed by the CPU */
 	abo->flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
 
-	if (bo->resource->mem_type != TTM_PL_VRAM)
-		return 0;
-
-	if (amdgpu_bo_in_cpu_visible_vram(abo))
+	if (amdgpu_res_cpu_visible(adev, bo->resource))
 		return 0;
 
 	/* Can't move a pinned BO to visible VRAM */
@@ -1411,7 +1420,7 @@ vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo)
 
 	/* this should never happen */
 	if (bo->resource->mem_type == TTM_PL_VRAM &&
-	    !amdgpu_bo_in_cpu_visible_vram(abo))
+	    !amdgpu_res_cpu_visible(adev, bo->resource))
 		return VM_FAULT_SIGBUS;
 
 	ttm_bo_move_to_lru_tail_unlocked(bo);
@@ -1571,6 +1580,7 @@ uint32_t amdgpu_bo_get_preferred_domain(struct amdgpu_device *adev,
  */
 u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m)
 {
+	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
 	struct dma_buf_attachment *attachment;
 	struct dma_buf *dma_buf;
 	const char *placement;
@@ -1579,10 +1589,11 @@ u64 amdgpu_bo_print_info(int id, struct amdgpu_bo *bo, struct seq_file *m)
 
 	if (dma_resv_trylock(bo->tbo.base.resv)) {
 		unsigned int domain;
+
 		domain = amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type);
 		switch (domain) {
 		case AMDGPU_GEM_DOMAIN_VRAM:
-			if (amdgpu_bo_in_cpu_visible_vram(bo))
+			if (amdgpu_res_cpu_visible(adev, bo->tbo.resource))
 				placement = "VRAM VISIBLE";
 			else
 				placement = "VRAM";
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +6 -22
index a3ea8a82db23..fa03d9e4874c 100644
@@ -138,12 +138,18 @@ struct amdgpu_bo_vm {
 struct amdgpu_mem_stats {
 	/* current VRAM usage, includes visible VRAM */
 	uint64_t vram;
+	/* current shared VRAM usage, includes visible VRAM */
+	uint64_t vram_shared;
 	/* current visible VRAM usage */
 	uint64_t visible_vram;
 	/* current GTT usage */
 	uint64_t gtt;
+	/* current shared GTT usage */
+	uint64_t gtt_shared;
 	/* current system memory usage */
 	uint64_t cpu;
+	/* current shared system memory usage */
+	uint64_t cpu_shared;
 	/* sum of evicted buffers, includes visible VRAM */
 	uint64_t evicted_vram;
 	/* sum of evicted buffers due to CPU access */
@@ -244,28 +250,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
 	return drm_vma_node_offset_addr(&bo->tbo.base.vma_node);
 }
 
-/**
- * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
- */
-static inline bool amdgpu_bo_in_cpu_visible_vram(struct amdgpu_bo *bo)
-{
-	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
-	struct amdgpu_res_cursor cursor;
-
-	if (!bo->tbo.resource || bo->tbo.resource->mem_type != TTM_PL_VRAM)
-		return false;
-
-	amdgpu_res_first(bo->tbo.resource, 0, amdgpu_bo_size(bo), &cursor);
-	while (cursor.remaining) {
-		if (cursor.start < adev->gmc.visible_vram_size)
-			return true;
-
-		amdgpu_res_next(&cursor, cursor.size);
-	}
-
-	return false;
-}
-
 /**
  * amdgpu_bo_explicit_sync - return whether the bo is explicitly synced
  */
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +38 -23

93 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +3 -0
index 65ec82141a8e..32cf6b6f6efd 100644
@@ -139,6 +139,9 @@ int amdgpu_vram_mgr_reserve_range(struct amdgpu_vram_mgr *mgr,
 int amdgpu_vram_mgr_query_page_status(struct amdgpu_vram_mgr *mgr,
 				      uint64_t start);
 
+bool amdgpu_res_cpu_visible(struct amdgpu_device *adev,
+			    struct ttm_resource *res);
+
 int amdgpu_ttm_init(struct amdgpu_device *adev);
 void amdgpu_ttm_fini(struct amdgpu_device *adev);
 void amdgpu_ttm_set_buffer_funcs_status(struct amdgpu_device *adev,
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +2 -1
index f413898dda37..e76e7e7cb554 100644
@@ -365,7 +365,8 @@ static void sdma_v4_4_2_ring_emit_hdp_flush(struct amdgpu_ring *ring)
 	u32 ref_and_mask = 0;
 	const struct nbio_hdp_flush_reg *nbio_hf_reg = adev->nbio.hdp_flush_reg;
 
-	ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0 << ring->me;
+	ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0
+		       << (ring->me % adev->sdma.num_inst_per_aid);
 
 	sdma_v4_4_2_wait_reg_mem(ring, 0, 1,
 			       adev->nbio.funcs->get_hdp_flush_done_offset(adev),
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +15 -11
index 0f930fd8a383..72b18156debb 100644
@@ -292,17 +292,21 @@ static void sdma_v5_2_ring_emit_hdp_flush(struct amdgpu_ring *ring)
 	u32 ref_and_mask = 0;
 	const struct nbio_hdp_flush_reg *nbio_hf_reg = adev->nbio.hdp_flush_reg;
 
-	ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0 << ring->me;
-
-	amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_POLL_REGMEM) |
-			  SDMA_PKT_POLL_REGMEM_HEADER_HDP_FLUSH(1) |
-			  SDMA_PKT_POLL_REGMEM_HEADER_FUNC(3)); /* == */
-	amdgpu_ring_write(ring, (adev->nbio.funcs->get_hdp_flush_done_offset(adev)) << 2);
-	amdgpu_ring_write(ring, (adev->nbio.funcs->get_hdp_flush_req_offset(adev)) << 2);
-	amdgpu_ring_write(ring, ref_and_mask); /* reference */
-	amdgpu_ring_write(ring, ref_and_mask); /* mask */
-	amdgpu_ring_write(ring, SDMA_PKT_POLL_REGMEM_DW5_RETRY_COUNT(0xfff) |
-			  SDMA_PKT_POLL_REGMEM_DW5_INTERVAL(10)); /* retry count, poll interval */
+	if (ring->me > 1) {
+		amdgpu_asic_flush_hdp(adev, ring);
+	} else {
+		ref_and_mask = nbio_hf_reg->ref_and_mask_sdma0 << ring->me;
+
+		amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_POLL_REGMEM) |
+				  SDMA_PKT_POLL_REGMEM_HEADER_HDP_FLUSH(1) |
+				  SDMA_PKT_POLL_REGMEM_HEADER_FUNC(3)); /* == */
+		amdgpu_ring_write(ring, (adev->nbio.funcs->get_hdp_flush_done_offset(adev)) << 2);
+		amdgpu_ring_write(ring, (adev->nbio.funcs->get_hdp_flush_req_offset(adev)) << 2);
+		amdgpu_ring_write(ring, ref_and_mask); /* reference */
+		amdgpu_ring_write(ring, ref_and_mask); /* mask */
+		amdgpu_ring_write(ring, SDMA_PKT_POLL_REGMEM_DW5_RETRY_COUNT(0xfff) |
+				  SDMA_PKT_POLL_REGMEM_DW5_INTERVAL(10)); /* retry count, poll interval */
+	}
 }
 
 /**
drivers/gpu/drm/gma500/Makefile +0 -1
index 4f302cd5e1a6..58fed80c7392 100644
@@ -34,7 +34,6 @@ gma500_gfx-y += \
 	  psb_intel_lvds.o \
 	  psb_intel_modes.o \
 	  psb_intel_sdvo.o \
-	  psb_lid.o \
 	  psb_irq.o
 
 gma500_gfx-$(CONFIG_ACPI) +=  opregion.o
drivers/gpu/drm/gma500/psb_device.c +1 -4
index dcfcd7b89d4a..6dece8f0e380 100644
@@ -73,8 +73,7 @@ static int psb_backlight_setup(struct drm_device *dev)
 	}
 
 	psb_intel_lvds_set_brightness(dev, PSB_MAX_BRIGHTNESS);
-	/* This must occur after the backlight is properly initialised */
-	psb_lid_timer_init(dev_priv);
+
 	return 0;
 }
 
@@ -259,8 +258,6 @@ static int psb_chip_setup(struct drm_device *dev)
 
 static void psb_chip_teardown(struct drm_device *dev)
 {
-	struct drm_psb_private *dev_priv = to_drm_psb_private(dev);
-	psb_lid_timer_takedown(dev_priv);
 	gma_intel_teardown_gmbus(dev);
 }
 
drivers/gpu/drm/gma500/psb_drv.h +0 -9
index 70d9adafa233..bb1cd45c085c 100644
@@ -170,7 +170,6 @@
 
 #define PSB_NUM_VBLANKS 2
 #define PSB_WATCHDOG_DELAY (HZ * 2)
-#define PSB_LID_DELAY (HZ / 10)
 
 #define PSB_MAX_BRIGHTNESS		100
 
@@ -499,11 +498,7 @@ struct drm_psb_private {
 	/* Hotplug handling */
 	struct work_struct hotplug_work;
 
-	/* LID-Switch */
-	spinlock_t lid_lock;
-	struct timer_list lid_timer;
 	struct psb_intel_opregion opregion;
-	u32 lid_last_state;
 
 	/* Watchdog */
 	uint32_t apm_reg;
@@ -599,10 +594,6 @@ struct psb_ops {
 	int i2c_bus;		/* I2C bus identifier for Moorestown */
 };
 
-/* psb_lid.c */
-extern void psb_lid_timer_init(struct drm_psb_private *dev_priv);
-extern void psb_lid_timer_takedown(struct drm_psb_private *dev_priv);
-
 /* modesetting */
 extern void psb_modeset_init(struct drm_device *dev);
 extern void psb_modeset_cleanup(struct drm_device *dev);
drivers/gpu/drm/gma500/psb_lid.c deleted +0 -80

80 lines not on this page · raw message

drivers/gpu/drm/ttm/tests/ttm_device_test.c +1 -1
index b1b423b68cdf..19eaff22e6ae 100644
@@ -175,7 +175,7 @@ static void ttm_device_init_pools(struct kunit *test)
 
 	if (params->pools_init_expected) {
 		for (int i = 0; i < TTM_NUM_CACHING_TYPES; ++i) {
-			for (int j = 0; j <= MAX_ORDER; ++j) {
+			for (int j = 0; j < NR_PAGE_ORDERS; ++j) {
 				pt = pool->caching[i].orders[j];
 				KUNIT_EXPECT_PTR_EQ(test, pt.pool, pool);
 				KUNIT_EXPECT_EQ(test, pt.caching, i);
drivers/gpu/drm/ttm/ttm_pool.c +36 -18

113 lines not on this page · raw message

drivers/hid/hid-logitech-dj.c +1 -3
index e6a8b6d8eab7..3c3c497b6b91 100644
@@ -965,9 +965,7 @@ static void logi_hidpp_dev_conn_notif_equad(struct hid_device *hdev,
 		}
 		break;
 	case REPORT_TYPE_MOUSE:
-		workitem->reports_supported |= STD_MOUSE | HIDPP;
-		if (djrcv_dev->type == recvr_type_mouse_only)
-			workitem->reports_supported |= MULTIMEDIA;
+		workitem->reports_supported |= STD_MOUSE | HIDPP | MULTIMEDIA;
 		break;
 	}
 }
drivers/hid/i2c-hid/i2c-hid-core.c +0 -9
index 2735cd585af0..799ad0ef9c4a 100644
@@ -64,7 +64,6 @@
 /* flags */
 #define I2C_HID_STARTED		0
 #define I2C_HID_RESET_PENDING	1
-#define I2C_HID_READ_PENDING	2
 
 #define I2C_HID_PWR_ON		0x00
 #define I2C_HID_PWR_SLEEP	0x01
@@ -190,15 +189,10 @@ static int i2c_hid_xfer(struct i2c_hid *ihid,
 		msgs[n].len = recv_len;
 		msgs[n].buf = recv_buf;
 		n++;
-
-		set_bit(I2C_HID_READ_PENDING, &ihid->flags);
 	}
 
 	ret = i2c_transfer(client->adapter, msgs, n);
 
-	if (recv_len)
-		clear_bit(I2C_HID_READ_PENDING, &ihid->flags);
-
 	if (ret != n)
 		return ret < 0 ? ret : -EIO;
 
@@ -566,9 +560,6 @@ static irqreturn_t i2c_hid_irq(int irq, void *dev_id)
 {
 	struct i2c_hid *ihid = dev_id;
 
-	if (test_bit(I2C_HID_READ_PENDING, &ihid->flags))
-		return IRQ_HANDLED;
-
 	i2c_hid_get_input(ihid);
 
 	return IRQ_HANDLED;
drivers/hid/intel-ish-hid/ipc/ipc.c +1 -1
index a49c6affd7c4..dd5fc60874ba 100644
@@ -948,6 +948,7 @@ struct ishtp_device *ish_dev_init(struct pci_dev *pdev)
 	if (!dev)
 		return NULL;
 
+	dev->devc = &pdev->dev;
 	ishtp_device_init(dev);
 
 	init_waitqueue_head(&dev->wait_hw_ready);
@@ -983,7 +984,6 @@ struct ishtp_device *ish_dev_init(struct pci_dev *pdev)
 	}
 
 	dev->ops = &ish_hw_ops;
-	dev->devc = &pdev->dev;
 	dev->mtu = IPC_PAYLOAD_SIZE - sizeof(struct ishtp_msg_hdr);
 	return dev;
 }
drivers/i2c/i2c-core-base.c +6 -6
index 7f30bcceebae..3642d4246320 100644
@@ -2187,13 +2187,18 @@ static int i2c_check_for_quirks(struct i2c_adapter *adap, struct i2c_msg *msgs,
  * Returns negative errno, else the number of messages executed.
  *
  * Adapter lock must be held when calling this function. No debug logging
- * takes place. adap->algo->master_xfer existence isn't checked.
+ * takes place.
  */
 int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
 {
 	unsigned long orig_jiffies;
 	int ret, try;
 
+	if (!adap->algo->master_xfer) {
+		dev_dbg(&adap->dev, "I2C level transfers not supported\n");
+		return -EOPNOTSUPP;
+	}
+
 	if (WARN_ON(!msgs || num < 1))
 		return -EINVAL;
 
@@ -2260,11 +2265,6 @@ int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
 {
 	int ret;
 
-	if (!adap->algo->master_xfer) {
-		dev_dbg(&adap->dev, "I2C level transfers not supported\n");
-		return -EOPNOTSUPP;
-	}
-
 	/* REVISIT the fault reporting model here is weak:
 	 *
 	 *  - When we get an error after receiving N bytes from a slave,
drivers/irqchip/irq-gic-v3-its.c +2 -7
index 676c9250d3f2..fc0528c513ad 100644
@@ -4561,13 +4561,8 @@ static int its_vpe_irq_domain_alloc(struct irq_domain *domain, unsigned int virq
 		irqd_set_resend_when_in_progress(irq_get_irq_data(virq + i));
 	}
 
-	if (err) {
-		if (i > 0)
-			its_vpe_irq_domain_free(domain, virq, i);
-
-		its_lpi_free(bitmap, base, nr_ids);
-		its_free_prop_table(vprop_page);
-	}
+	if (err)
+		its_vpe_irq_domain_free(domain, virq, i);
 
 	return err;
 }
drivers/mmc/host/sdhci-msm.c +15 -1
index 668e0aceeeba..e113b99a3eab 100644
@@ -2694,6 +2694,11 @@ static __maybe_unused int sdhci_msm_runtime_suspend(struct device *dev)
 	struct sdhci_host *host = dev_get_drvdata(dev);
 	struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
 	struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host);
+	unsigned long flags;
+
+	spin_lock_irqsave(&host->lock, flags);
+	host->runtime_suspended = true;
+	spin_unlock_irqrestore(&host->lock, flags);
 
 	/* Drop the performance vote */
 	dev_pm_opp_set_rate(dev, 0);
@@ -2708,6 +2713,7 @@ static __maybe_unused int sdhci_msm_runtime_resume(struct device *dev)
 	struct sdhci_host *host = dev_get_drvdata(dev);
 	struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
 	struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host);
+	unsigned long flags;
 	int ret;
 
 	ret = clk_bulk_prepare_enable(ARRAY_SIZE(msm_host->bulk_clks),
@@ -2726,7 +2732,15 @@ static __maybe_unused int sdhci_msm_runtime_resume(struct device *dev)
 
 	dev_pm_opp_set_rate(dev, msm_host->clk_rate);
 
-	return sdhci_msm_ice_resume(msm_host);
+	ret = sdhci_msm_ice_resume(msm_host);
+	if (ret)
+		return ret;
+
+	spin_lock_irqsave(&host->lock, flags);
+	host->runtime_suspended = false;
+	spin_unlock_irqrestore(&host->lock, flags);
+
+	return ret;
 }
 
 static const struct dev_pm_ops sdhci_msm_pm_ops = {
drivers/mtd/nand/raw/diskonchip.c +2 -2
index 5d2ddb037a9a..2068025d5639 100644
@@ -53,7 +53,7 @@ static unsigned long doc_locations[] __initdata = {
 	0xe8000, 0xea000, 0xec000, 0xee000,
 #endif
 #endif
-	0xffffffff };
+};
 
 static struct mtd_info *doclist = NULL;
 
@@ -1552,7 +1552,7 @@ static int __init init_nanddoc(void)
 		if (ret < 0)
 			return ret;
 	} else {
-		for (i = 0; (doc_locations[i] != 0xffffffff); i++) {
+		for (i = 0; i < ARRAY_SIZE(doc_locations); i++) {
 			doc_probe(doc_locations[i]);
 		}
 	}
drivers/mtd/nand/raw/qcom_nandc.c +3 -4
index b079605c84d3..b8cff9240b28 100644
@@ -2815,7 +2815,7 @@ static int qcom_misc_cmd_type_exec(struct nand_chip *chip, const struct nand_sub
 			      host->cfg0_raw & ~(7 << CW_PER_PAGE));
 		nandc_set_reg(chip, NAND_DEV0_CFG1, host->cfg1_raw);
 		instrs = 3;
-	} else {
+	} else if (q_op.cmd_reg != OP_RESET_DEVICE) {
 		return 0;
 	}
 
@@ -2830,9 +2830,8 @@ static int qcom_misc_cmd_type_exec(struct nand_chip *chip, const struct nand_sub
 	nandc_set_reg(chip, NAND_EXEC_CMD, 1);
 
 	write_reg_dma(nandc, NAND_FLASH_CMD, instrs, NAND_BAM_NEXT_SGL);
-	(q_op.cmd_reg == OP_BLOCK_ERASE) ? write_reg_dma(nandc, NAND_DEV0_CFG0,
-	2, NAND_BAM_NEXT_SGL) : read_reg_dma(nandc,
-	NAND_FLASH_STATUS, 1, NAND_BAM_NEXT_SGL);
+	if (q_op.cmd_reg == OP_BLOCK_ERASE)
+		write_reg_dma(nandc, NAND_DEV0_CFG0, 2, NAND_BAM_NEXT_SGL);
 
 	write_reg_dma(nandc, NAND_EXEC_CMD, 1, NAND_BAM_NEXT_SGL);
 	read_reg_dma(nandc, NAND_FLASH_STATUS, 1, NAND_BAM_NEXT_SGL);
drivers/net/dsa/mv88e6xxx/chip.c +52 -4

65 lines not on this page · raw message

drivers/net/dsa/mv88e6xxx/port.h +19 -4
index 86deeb347cbc..ddadeb9bfdae 100644
@@ -25,10 +25,25 @@
 #define MV88E6250_PORT_STS_PORTMODE_PHY_100_HALF	0x0900
 #define MV88E6250_PORT_STS_PORTMODE_PHY_10_FULL		0x0a00
 #define MV88E6250_PORT_STS_PORTMODE_PHY_100_FULL	0x0b00
-#define MV88E6250_PORT_STS_PORTMODE_MII_10_HALF		0x0c00
-#define MV88E6250_PORT_STS_PORTMODE_MII_100_HALF	0x0d00
-#define MV88E6250_PORT_STS_PORTMODE_MII_10_FULL		0x0e00
-#define MV88E6250_PORT_STS_PORTMODE_MII_100_FULL	0x0f00
+/* - Modes with PHY suffix use output instead of input clock
+ * - Modes without RMII or RGMII use MII
+ * - Modes without speed do not have a fixed speed specified in the manual
+ *   ("DC to x MHz" - variable clock support?)
+ */
+#define MV88E6250_PORT_STS_PORTMODE_MII_DISABLED		0x0000
+#define MV88E6250_PORT_STS_PORTMODE_MII_100_RGMII		0x0100
+#define MV88E6250_PORT_STS_PORTMODE_MII_DUAL_100_RMII_FULL_PHY	0x0200
+#define MV88E6250_PORT_STS_PORTMODE_MII_200_RMII_FULL_PHY	0x0400
+#define MV88E6250_PORT_STS_PORTMODE_MII_DUAL_100_RMII_FULL	0x0600
+#define MV88E6250_PORT_STS_PORTMODE_MII_10_100_RMII_FULL	0x0700
+#define MV88E6250_PORT_STS_PORTMODE_MII_HALF			0x0800
+#define MV88E6250_PORT_STS_PORTMODE_MII_10_100_RMII_HALF_PHY	0x0900
+#define MV88E6250_PORT_STS_PORTMODE_MII_FULL			0x0a00
+#define MV88E6250_PORT_STS_PORTMODE_MII_10_100_RMII_FULL_PHY	0x0b00
+#define MV88E6250_PORT_STS_PORTMODE_MII_10_HALF_PHY		0x0c00
+#define MV88E6250_PORT_STS_PORTMODE_MII_100_HALF_PHY		0x0d00
+#define MV88E6250_PORT_STS_PORTMODE_MII_10_FULL_PHY		0x0e00
+#define MV88E6250_PORT_STS_PORTMODE_MII_100_FULL_PHY		0x0f00
 #define MV88E6XXX_PORT_STS_LINK			0x0800
 #define MV88E6XXX_PORT_STS_DUPLEX		0x0400
 #define MV88E6XXX_PORT_STS_SPEED_MASK		0x0300
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c +14 -7
index b3d04f49f77e..6bf149d64594 100644
@@ -435,10 +435,8 @@ static void umac_init(struct bcmasp_intf *intf)
 	umac_wl(intf, 0x800, UMC_RX_MAX_PKT_SZ);
 }
 
-static int bcmasp_tx_poll(struct napi_struct *napi, int budget)
+static int bcmasp_tx_reclaim(struct bcmasp_intf *intf)
 {
-	struct bcmasp_intf *intf =
-		container_of(napi, struct bcmasp_intf, tx_napi);
 	struct bcmasp_intf_stats64 *stats = &intf->stats64;
 	struct device *kdev = &intf->parent->pdev->dev;
 	unsigned long read, released = 0;
@@ -481,10 +479,16 @@ static int bcmasp_tx_poll(struct napi_struct *napi, int budget)
 							DESC_RING_COUNT);
 	}
 
-	/* Ensure all descriptors have been written to DRAM for the hardware
-	 * to see updated contents.
-	 */
-	wmb();
+	return released;
+}
+
+static int bcmasp_tx_poll(struct napi_struct *napi, int budget)
+{
+	struct bcmasp_intf *intf =
+		container_of(napi, struct bcmasp_intf, tx_napi);
+	int released = 0;
+
+	released = bcmasp_tx_reclaim(intf);
 
 	napi_complete(&intf->tx_napi);
 
@@ -794,6 +798,7 @@ static int bcmasp_init_tx(struct bcmasp_intf *intf)
 
 	intf->tx_spb_index = 0;
 	intf->tx_spb_clean_index = 0;
+	memset(intf->tx_cbs, 0, sizeof(struct bcmasp_tx_cb) * DESC_RING_COUNT);
 
 	netif_napi_add_tx(intf->ndev, &intf->tx_napi, bcmasp_tx_poll);
 
@@ -904,6 +909,8 @@ static void bcmasp_netif_deinit(struct net_device *dev)
 	} while (timeout-- > 0);
 	tx_spb_dma_wl(intf, 0x0, TX_SPB_DMA_FIFO_CTRL);
 
+	bcmasp_tx_reclaim(intf);
+
 	umac_enable_set(intf, UMC_CMD_TX_EN, 0);
 
 	phy_stop(dev->phydev);
drivers/net/ethernet/broadcom/b44.c +8 -6
index 3e4fb3c3e834..1be6d14030bc 100644
@@ -2009,12 +2009,14 @@ static int b44_set_pauseparam(struct net_device *dev,
 		bp->flags |= B44_FLAG_TX_PAUSE;
 	else
 		bp->flags &= ~B44_FLAG_TX_PAUSE;
-	if (bp->flags & B44_FLAG_PAUSE_AUTO) {
-		b44_halt(bp);
-		b44_init_rings(bp);
-		b44_init_hw(bp, B44_FULL_RESET);
-	} else {
-		__b44_set_flow_ctrl(bp, bp->flags);
+	if (netif_running(dev)) {
+		if (bp->flags & B44_FLAG_PAUSE_AUTO) {
+			b44_halt(bp);
+			b44_init_rings(bp);
+			b44_init_hw(bp, B44_FULL_RESET);
+		} else {
+			__b44_set_flow_ctrl(bp, bp->flags);
+		}
 	}
 	spin_unlock_irq(&bp->lock);
 
drivers/net/ethernet/broadcom/bnxt/bnxt.c +45 -35

181 lines not on this page · raw message

drivers/net/ethernet/intel/i40e/i40e_main.c +3 -3
index a21fc92aa272..f8d1a994c2f6 100644
@@ -16237,8 +16237,8 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	val = (rd32(&pf->hw, I40E_PRTGL_SAH) &
 	       I40E_PRTGL_SAH_MFS_MASK) >> I40E_PRTGL_SAH_MFS_SHIFT;
 	if (val < MAX_FRAME_SIZE_DEFAULT)
-		dev_warn(&pdev->dev, "MFS for port %x has been set below the default: %x\n",
-			 pf->hw.port, val);
+		dev_warn(&pdev->dev, "MFS for port %x (%d) has been set below the default (%d)\n",
+			 pf->hw.port, val, MAX_FRAME_SIZE_DEFAULT);
 
 	/* Add a filter to drop all Flow control frames from any VSI from being
 	 * transmitted. By doing so we stop a malicious VF from sending out
@@ -16778,7 +16778,7 @@ static int __init i40e_init_module(void)
 	 * since we need to be able to guarantee forward progress even under
 	 * memory pressure.
 	 */
-	i40e_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0, i40e_driver_name);
+	i40e_wq = alloc_workqueue("%s", 0, 0, i40e_driver_name);
 	if (!i40e_wq) {
 		pr_err("%s: Failed to create workqueue\n", i40e_driver_name);
 		return -ENOMEM;
drivers/net/ethernet/intel/iavf/iavf_main.c +29 -1
index 257865647c86..ce0b91999526 100644
@@ -3574,6 +3574,34 @@ static void iavf_del_all_cloud_filters(struct iavf_adapter *adapter)
 	spin_unlock_bh(&adapter->cloud_filter_list_lock);
 }
 
+/**
+ * iavf_is_tc_config_same - Compare the mqprio TC config with the
+ * TC config already configured on this adapter.
+ * @adapter: board private structure
+ * @mqprio_qopt: TC config received from kernel.
+ *
+ * This function compares the TC config received from the kernel
+ * with the config already configured on the adapter.
+ *
+ * Return: True if configuration is same, false otherwise.
+ **/
+static bool iavf_is_tc_config_same(struct iavf_adapter *adapter,
+				   struct tc_mqprio_qopt *mqprio_qopt)
+{
+	struct virtchnl_channel_info *ch = &adapter->ch_config.ch_info[0];
+	int i;
+
+	if (adapter->num_tc != mqprio_qopt->num_tc)
+		return false;
+
+	for (i = 0; i < adapter->num_tc; i++) {
+		if (ch[i].count != mqprio_qopt->count[i] ||
+		    ch[i].offset != mqprio_qopt->offset[i])
+			return false;
+	}
+	return true;
+}
+
 /**
  * __iavf_setup_tc - configure multiple traffic classes
  * @netdev: network interface device structure
@@ -3631,7 +3659,7 @@ static int __iavf_setup_tc(struct net_device *netdev, void *type_data)
 		if (ret)
 			return ret;
 		/* Return if same TC config is requested */
-		if (adapter->num_tc == num_tc)
+		if (iavf_is_tc_config_same(adapter, &mqprio_qopt->qopt))
 			return 0;
 		adapter->num_tc = num_tc;
 
drivers/net/ethernet/intel/ice/ice_vf_lib.c +8 -8
index d488c7156d09..03b9d7d74851 100644
@@ -847,6 +847,11 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags)
 		return 0;
 	}
 
+	if (flags & ICE_VF_RESET_LOCK)
+		mutex_lock(&vf->cfg_lock);
+	else
+		lockdep_assert_held(&vf->cfg_lock);
+
 	lag = pf->lag;
 	mutex_lock(&pf->lag_mutex);
 	if (lag && lag->bonded && lag->primary) {
@@ -858,11 +863,6 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags)
 			act_prt = ICE_LAG_INVALID_PORT;
 	}
 
-	if (flags & ICE_VF_RESET_LOCK)
-		mutex_lock(&vf->cfg_lock);
-	else
-		lockdep_assert_held(&vf->cfg_lock);
-
 	if (ice_is_vf_disabled(vf)) {
 		vsi = ice_get_vf_vsi(vf);
 		if (!vsi) {
@@ -947,14 +947,14 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags)
 	ice_mbx_clear_malvf(&vf->mbx_info);
 
 out_unlock:
-	if (flags & ICE_VF_RESET_LOCK)
-		mutex_unlock(&vf->cfg_lock);
-
 	if (lag && lag->bonded && lag->primary &&
 	    act_prt != ICE_LAG_INVALID_PORT)
 		ice_lag_move_vf_nodes_cfg(lag, pri_prt, act_prt);
 	mutex_unlock(&pf->lag_mutex);
 
+	if (flags & ICE_VF_RESET_LOCK)
+		mutex_unlock(&vf->cfg_lock);
+
 	return err;
 }
 
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c +1 -0
index b2cabd6ab86c..cc9bcc420032 100644
@@ -1640,6 +1640,7 @@ static const struct macsec_ops macsec_offload_ops = {
 	.mdo_add_secy = mlx5e_macsec_add_secy,
 	.mdo_upd_secy = mlx5e_macsec_upd_secy,
 	.mdo_del_secy = mlx5e_macsec_del_secy,
+	.rx_uses_md_dst = true,
 };
 
 bool mlx5e_macsec_handle_tx_skb(struct mlx5e_macsec *macsec, struct sk_buff *skb)
drivers/net/ethernet/mellanox/mlxsw/core.c +1 -1
index 1ccf3b73ed72..85507d01fd45 100644
@@ -835,7 +835,7 @@ static void mlxsw_emad_rx_listener_func(struct sk_buff *skb, u16 local_port,
 
 static const struct mlxsw_listener mlxsw_emad_rx_listener =
 	MLXSW_RXL(mlxsw_emad_rx_listener_func, ETHEMAD, TRAP_TO_CPU, false,
-		  EMAD, DISCARD);
+		  EMAD, FORWARD);
 
 static int mlxsw_emad_tlv_enable(struct mlxsw_core *mlxsw_core)
 {
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c +8 -8
index faa63ea9b83e..1915fa41c622 100644
@@ -95,7 +95,7 @@ struct mlxsw_afa_set {
 		      */
 	   has_trap:1,
 	   has_police:1;
-	unsigned int ref_count;
+	refcount_t ref_count;
 	struct mlxsw_afa_set *next; /* Pointer to the next set. */
 	struct mlxsw_afa_set *prev; /* Pointer to the previous set,
 				     * note that set may have multiple
@@ -120,7 +120,7 @@ struct mlxsw_afa_fwd_entry {
 	struct rhash_head ht_node;
 	struct mlxsw_afa_fwd_entry_ht_key ht_key;
 	u32 kvdl_index;
-	unsigned int ref_count;
+	refcount_t ref_count;
 };
 
 static const struct rhashtable_params mlxsw_afa_fwd_entry_ht_params = {
@@ -282,7 +282,7 @@ static struct mlxsw_afa_set *mlxsw_afa_set_create(bool is_first)
 	/* Need to initialize the set to pass by default */
 	mlxsw_afa_set_goto_set(set, MLXSW_AFA_SET_GOTO_BINDING_CMD_TERM, 0);
 	set->ht_key.is_first = is_first;
[… more lines in the raw message]

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

drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c +5 -4
index 70f9b5e85a26..bf140e7416e1 100644

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

drivers/net/ethernet/mellanox/mlxsw/core_env.c +6 -14
index d637c0348fa1..b71bc23245fe 100644

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

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +6 -5
index 7c59c8a13584..b01b000bc71c 100644

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

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c +81 -51

132 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h +3 -2
index 462bf448497d..79a1d8606512 100644

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

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +8 -7
index ae2fb9efbc50..d15aa6b25a88 100644

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

drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +4 -4
index 6c749c148148..6397ff0dc951 100644

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

drivers/net/ethernet/ti/am65-cpts.c +5 -0
index c66618d91c28..f89716b1cfb6 100644

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

drivers/net/ethernet/ti/icssg/icssg_prueth.c +5 -3
index c09ecb3da772..925044c16c6a 100644

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

drivers/net/ethernet/wangxun/libwx/wx_lib.c +1 -1
index e078f4071dc2..be434c833c69 100644

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

drivers/net/gtp.c +2 -1
index 2b5357d94ff5..63f932256c9f 100644

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

drivers/net/macsec.c +36 -10

46 lines not on this page · raw message

drivers/net/phy/dp83869.c +2 -1
index fa8c6fdcf301..d7aaefb5226b 100644

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

drivers/net/phy/mediatek-ge-soc.c +26 -17

43 lines not on this page · raw message

drivers/net/usb/ax88179_178a.c +3 -8
index 3078511f7608..21b6c4d94a63 100644

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

drivers/net/vxlan/vxlan_core.c +4 -0
index 99ede1312419..ecdf0276004f 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c +2 -0
index 233ae81884a0..ae0eb585b61e 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/scan.c +2 -1
index 3cbe2c0b8d6b..03ec900a3343 100644

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

drivers/net/wireless/virtual/mac80211_hwsim.c +1 -1
index f5a0880da3fc..07be0adc13ec 100644

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

drivers/nfc/trf7970a.c +23 -19

42 lines not on this page · raw message

drivers/phy/freescale/phy-fsl-imx8m-pcie.c +4 -2
index b700f52b7b67..11fcb1867118 100644

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

drivers/phy/marvell/phy-mvebu-a3700-comphy.c +5 -4
index 24c3371e2bb2..27f221a0f922 100644

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

drivers/phy/qualcomm/phy-qcom-m31.c +1 -1
index 5cb7e79b99b3..89c9d74e3546 100644

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

drivers/phy/qualcomm/phy-qcom-qmp-combo.c +9 -3
index 5e6fc8103e9d..dce002e232ee 100644

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

drivers/phy/qualcomm/phy-qcom-qmp.h +2 -0
index 32d897684755..e2c22edfe653 100644

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

drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +33 -3
index 5de5e2e97ffa..26b157f53f3d 100644

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

drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +13 -18
index 121e5961ce11..9857ee45b89e 100644

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

drivers/phy/ti/phy-tusb1210.c +12 -11
index b4881cb34475..c23eecc7d180 100644

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

drivers/soundwire/amd_manager.c +15 -0
index a3b1f4e6f0f9..79173ab540a6 100644

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

drivers/soundwire/amd_manager.h +2 -1
index 5f040151a259..6dcc7a449346 100644

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

drivers/video/fbdev/core/fb_defio.c +1 -1
index 1ae1d35a5942..b9607d5a370d 100644

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

fs/btrfs/backref.c +3 -9
index a4a809efc92f..df223ebf2551 100644

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

fs/btrfs/extent_map.c +1 -1
index a6d8368ed0ed..8c017c4105f2 100644

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

fs/btrfs/inode.c +6 -7
index e57d18825a56..33d0efa5ed79 100644

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

fs/btrfs/scrub.c +9 -9
index 9cef4243c23d..819973c37a14 100644

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

fs/btrfs/tests/extent-map-tests.c +5 -0
index 29bdd08b241f..bf85c75ee722 100644

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

fs/overlayfs/params.c +5 -6
index ad3593a41fb5..488f920f79d2 100644

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

fs/proc/page.c +2 -5
index 195b077c0fac..9223856c934b 100644

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

fs/smb/client/cifsfs.c +1 -0
index fcb93a66e47c..44e2cc37a8b6 100644

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

fs/smb/client/cifsglob.h +2 -0
index 68fd61a56408..12a48e1d80c3 100644

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

fs/smb/client/cifspdu.h +2 -2
index c0513fbb8a59..c46d418c1c0c 100644

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

fs/smb/client/fs_context.c +12 -0
index 58567ae617b9..103421791bb5 100644

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

fs/smb/client/fs_context.h +2 -0
index 8cfc25b609b6..4e409238fe8f 100644

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

fs/smb/client/fscache.c +13 -0
index a4ee801b2939..ecabc4b40053 100644

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

fs/smb/client/misc.c +3 -0
index 74627d647818..0d13db80e67c 100644

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

fs/smb/client/smb2pdu.h +1 -1
index db08194484e0..b00f707bddfc 100644

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

fs/smb/client/transport.c +6 -1
index 994d70193432..ddf1a3aafee5 100644

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

fs/squashfs/inode.c +7 -4
index c6e626b00546..16bd693d0b3a 100644

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

include/drm/drm_gem.h +13 -0
index bc9f6aa2f3fe..7c2ec139c464 100644

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

include/drm/ttm/ttm_pool.h +1 -1
index 30a347e5aa11..4490d43c63e3 100644

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

include/linux/etherdevice.h +25 -0
index 224645f17c33..297231854ada 100644

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

include/linux/mm.h +5 -3
index bf5d0b1b16f4..3d617d0d6967 100644

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

include/linux/mmzone.h +4 -2
index 0f62786269d0..1acbc6ce1fe4 100644

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

include/linux/page-flags.h +82 -62

144 lines not on this page · raw message

include/net/af_unix.h +3 -0
index d1b07ddbe677..77bf30203d3c 100644

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

include/net/bluetooth/hci_core.h +4 -0
index 103b290d6efb..e6f659ce534e 100644

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

include/net/macsec.h +1 -0
index ebf9bc54036a..75340c3e0c8b 100644

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

include/net/sock.h +21 -18
index 25780942ec8b..53b81e0a8981 100644

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

include/net/tls.h +2 -1
index 5fdd5dd251df..2ad28545b15f 100644

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

include/trace/events/mmflags.h +1 -0
index 1478b9dd05fa..e010618f9326 100644

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

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

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

kernel/bounds.c +1 -1
index c5a9fcd2d622..29b2cd00df2c 100644

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

kernel/cpu.c +2 -2
index 92429104bbf8..2dd2fd300e91 100644

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

kernel/crash_core.c +3 -4
index 2f675ef045d4..cef8e07bc528 100644

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

kernel/fork.c +9 -9
index 177ce7438db6..2eab916b504b 100644

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

kernel/sched/fair.c +20 -14
index 69fe62126a28..397ef27c9bdb 100644

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

lib/stackdepot.c +2 -2
index 2f5aa851834e..15a055865d10 100644

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

lib/test_meminit.c +1 -1
index 0ae35223d773..0dc173849a54 100644

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

mm/compaction.c +1 -1
index 5a3c644c978e..61c741f11e9b 100644

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

mm/gup.c +34 -25

59 lines not on this page · raw message

mm/hugetlb.c +7 -20
index a17950160395..555cf1a80eae 100644

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

mm/internal.h +8 -3
index 30cf724ddbce..abed947f784b 100644

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

mm/kmsan/init.c +1 -1
index ffedf4dbc49d..103e2e88ea03 100644

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

mm/madvise.c +2 -15
index 4dded5d27e7e..98fdb9288a68 100644

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

mm/page_alloc.c +6 -7
index ab7141735012..6b4c30fcae1c 100644

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

mm/page_reporting.c +1 -1
index b021f482a4cb..66369cc5279b 100644

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

mm/show_mem.c +4 -4
index 4b888b18bdde..b896e54e3a26 100644

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

mm/vmstat.c +6 -6
index 00e81e99c6ee..e9616c4ca12d 100644

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

net/ax25/af_ax25.c +1 -1
index 5db805d5f74d..9d11d26e46c0 100644

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

net/bluetooth/hci_event.c +2 -3
index 80e71ce32f09..1b4abf8e90f6 100644

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

net/bluetooth/l2cap_sock.c +4 -3
index aac00f103f91..d647bd15d500 100644

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

net/bluetooth/mgmt.c +17 -7
index 92fd3786bbdf..ac693e64f1f9 100644

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

net/bluetooth/sco.c +4 -3
index 8e4f39b8601c..3cc9fab8e838 100644

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

net/bridge/br_netlink.c +1 -1
index 10f0d33d8ccf..65e9ed385142 100644

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

net/core/sock.c +1 -0
index 383e30fe79f4..1471c0a862b3 100644

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

net/core/sysctl_net_core.c +9 -0
index 03f1edb948d7..373b5b2231c4 100644

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

net/ethernet/eth.c +1 -11
index 2edc8b796a4e..049c3adeb850 100644

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

net/ipv4/icmp.c +10 -2
index b8607763d113..3b221643206d 100644

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

net/ipv4/route.c +3 -0
index e1e30c09a175..7c05cbcd39d3 100644

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

net/ipv4/udp.c +3 -2
index 70a9a4a48216..5e9219623c0a 100644

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

net/ipv6/udp.c +3 -2
index d31beb65db08..a05c83cfdde9 100644

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

net/mac80211/mesh.c +7 -1
index e31c312c124a..7b3ecc288f09 100644

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

net/mac80211/mesh.h +33 -3
index ad8469293d71..58c619874ca6 100644

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

net/mac80211/mesh_pathtbl.c +23 -14
index 3e52aaa57b1f..59f7264194ce 100644

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

net/mac80211/mlme.c +6 -3
index c6044ab4e7fc..6e574e2adc22 100644

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

net/mac80211/rx.c +10 -3
index 26ca2f5dc52b..604863cebc19 100644

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

net/netfilter/ipvs/ip_vs_proto_sctp.c +4 -2
index a0921adc31a9..1e689c714127 100644

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

net/netfilter/nft_chain_filter.c +3 -1
index 274b6f7e6bb5..d170758a1eb5 100644

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

net/openvswitch/conntrack.c +2 -2
index 74b63cdb5992..2928c142a2dd 100644

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

net/tls/tls.h +1 -1
index 28a8c0e80e3c..02038d0381b7 100644

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

net/tls/tls_strp.c +3 -3
index ca1e0e198ceb..5df08d848b5c 100644

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

net/unix/garbage.c +1 -1
index 8734c0c1fc19..2a758531e102 100644

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

rust/Makefile +0 -1
index 7dbf9abe0d01..e5619f25b55c 100644

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

rust/kernel/init.rs +9 -2
index 4ebb6f23fc2e..0fe043c0eaac 100644

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

rust/macros/lib.rs +0 -12
index c42105c2ff96..34ae73f5db06 100644

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

scripts/Makefile.build +1 -1
index 82e3fb19fdaf..5c4e437f9d85 100644

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

tools/net/ynl/lib/ynl.py +1 -0
index 13c4b019a881..44ea0965c9d9 100644

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

tools/testing/selftests/seccomp/seccomp_bpf.c +31 -10

41 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.6.30 kernel.

All users of the 6.6 kernel series must upgrade.

The updated 6.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.6.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

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

 Documentation/admin-guide/kdump/vmcoreinfo.rst              |    6 
 Documentation/admin-guide/sysctl/net.rst                    |    5 
 Makefile                                                    |    2 
 arch/Kconfig                                                |    8 
 arch/arc/boot/dts/hsdk.dts                                  |    1 
 arch/arm/boot/dts/microchip/at91-sama7g5ek.dts              |    8 
 arch/arm/boot/dts/nxp/imx/imx6ull-tarragon-common.dtsi      |    1 
 arch/arm64/boot/dts/mediatek/mt2712-evb.dts                 |    8 
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi                   |    3 
 arch/arm64/boot/dts/mediatek/mt7622.dtsi                    |   34 --
 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts    |    6 
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi                   |  173 +++++-------
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi              |    1 
 arch/arm64/boot/dts/mediatek/mt8183.dtsi                    |    1 
 arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi            |    6 
 arch/arm64/boot/dts/mediatek/mt8192.dtsi                    |    1 
 arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi             |  141 +++++++++
 arch/arm64/boot/dts/mediatek/mt8195.dtsi                    |    5 
 arch/arm64/boot/dts/qcom/sc8180x.dtsi                       |    2 
 arch/arm64/boot/dts/qcom/sc8280xp.dtsi                      |    5 
 arch/arm64/boot/dts/qcom/sm8450.dtsi                        |   16 -
 arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts        |    1 
 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi               |   31 +-
 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts          |    6 
 arch/arm64/kvm/hyp/include/nvhe/gfp.h                       |    2 
 arch/loongarch/include/asm/perf_event.h                     |    8 
 arch/loongarch/mm/fault.c                                   |    4 
 arch/riscv/include/asm/page.h                               |    2 
 arch/riscv/include/asm/pgtable.h                            |    4 
 arch/riscv/kernel/setup.c                                   |   13 
 arch/riscv/mm/init.c                                        |    2 
 arch/sparc/kernel/traps_64.c                                |    2 
 arch/x86/Kconfig                                            |   11 
 arch/x86/include/asm/coco.h                                 |    5 
 arch/x86/include/asm/pgtable_types.h                        |    3 
 arch/x86/kernel/process_64.c                                |    2 
 arch/x86/kvm/pmu.c                                          |   30 ++
 arch/x86/kvm/vmx/pmu_intel.c                                |   16 -
 drivers/acpi/cppc_acpi.c                                    |   72 +++-
 drivers/bluetooth/btmtk.c                                   |    7 
 drivers/bluetooth/btusb.c                                   |   11 
 drivers/bluetooth/hci_qca.c                                 |   27 +
 drivers/cxl/core/mbox.c                                     |   38 +-
 drivers/dma/idma64.c                                        |    4 
 drivers/dma/idxd/cdev.c                                     |    5 
 drivers/dma/idxd/debugfs.c                                  |    4 
 drivers/dma/idxd/device.c                                   |    8 
 drivers/dma/idxd/idxd.h                                     |    2 
 drivers/dma/idxd/init.c                                     |    2 
 drivers/dma/idxd/irq.c                                      |    4 
 drivers/dma/idxd/perfmon.c                                  |    9 
 drivers/dma/owl-dma.c                                       |    4 
 drivers/dma/tegra186-gpc-dma.c                              |    3 
 drivers/dma/xilinx/xilinx_dpdma.c                           |   13 
 drivers/gpio/gpio-tangier.c                                 |    9 
 drivers/gpio/gpio-tegra186.c                                |   20 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c            |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c                      |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c                  |    4 
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c                  |   33 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h                  |   28 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c                     |   61 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h                     |    3 
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c                    |    3 
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c                      |   26 +
 drivers/gpu/drm/gma500/Makefile                             |    1 
 drivers/gpu/drm/gma500/psb_device.c                         |    5 
 drivers/gpu/drm/gma500/psb_drv.h                            |    9 
 drivers/gpu/drm/gma500/psb_lid.c                            |   80 -----
 drivers/gpu/drm/ttm/tests/ttm_device_test.c                 |    2 
 drivers/gpu/drm/ttm/ttm_pool.c                              |   54 ++-
 drivers/hid/hid-logitech-dj.c                               |    4 
 drivers/hid/i2c-hid/i2c-hid-core.c                          |    9 
 drivers/hid/intel-ish-hid/ipc/ipc.c                         |    2 
 drivers/i2c/i2c-core-base.c                                 |   12 
 drivers/irqchip/irq-gic-v3-its.c                            |    9 
 drivers/mmc/host/sdhci-msm.c                                |   16 +
 drivers/mtd/nand/raw/diskonchip.c                           |    4 
 drivers/mtd/nand/raw/qcom_nandc.c                           |    7 
 drivers/net/dsa/mv88e6xxx/chip.c                            |   56 +++
 drivers/net/dsa/mv88e6xxx/port.h                            |   23 +
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c            |   21 -
 drivers/net/ethernet/broadcom/b44.c                         |   14 
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                   |   80 +++--
 drivers/net/ethernet/intel/i40e/i40e_main.c                 |    6 
 drivers/net/ethernet/intel/iavf/iavf_main.c                 |   30 ++
 drivers/net/ethernet/intel/ice/ice_vf_lib.c                 |   16 -
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c   |    1 
 drivers/net/ethernet/mellanox/mlxsw/core.c                  |    2 
 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c |   16 -
 drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c    |    9 
 drivers/net/ethernet/mellanox/mlxsw/core_env.c              |   20 -
 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c          |   11 
 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c     |  132 +++++----
 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h     |    5 
 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c       |   15 -
 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c    |    8 
 drivers/net/ethernet/ti/am65-cpts.c                         |    5 
 drivers/net/ethernet/ti/icssg/icssg_prueth.c                |    8 
 drivers/net/ethernet/wangxun/libwx/wx_lib.c                 |    2 
 drivers/net/gtp.c                                           |    3 
 drivers/net/macsec.c                                        |   46 ++-
 drivers/net/phy/dp83869.c                                   |    3 
 drivers/net/phy/mediatek-ge-soc.c                           |   43 +-
 drivers/net/usb/ax88179_178a.c                              |   11 
 drivers/net/vxlan/vxlan_core.c                              |    4 
 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c      |    2 
 drivers/net/wireless/intel/iwlwifi/mvm/scan.c               |    3 
 drivers/net/wireless/virtual/mac80211_hwsim.c               |    2 
 drivers/nfc/trf7970a.c                                      |   42 +-
 drivers/phy/freescale/phy-fsl-imx8m-pcie.c                  |    6 
 drivers/phy/marvell/phy-mvebu-a3700-comphy.c                |    9 
 drivers/phy/qualcomm/phy-qcom-m31.c                         |    2 
 drivers/phy/qualcomm/phy-qcom-qmp-combo.c                   |   12 
 drivers/phy/qualcomm/phy-qcom-qmp.h                         |    2 
 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c          |   36 ++
 drivers/phy/rockchip/phy-rockchip-snps-pcie3.c              |   31 --
 drivers/phy/ti/phy-tusb1210.c                               |   23 -
 drivers/soundwire/amd_manager.c                             |   15 +
 drivers/soundwire/amd_manager.h                             |    3 
 drivers/video/fbdev/core/fb_defio.c                         |    2 
 fs/btrfs/backref.c                                          |   12 
 fs/btrfs/extent_map.c                                       |    2 
 fs/btrfs/inode.c                                            |   13 
 fs/btrfs/scrub.c                                            |   18 -
 fs/btrfs/tests/extent-map-tests.c                           |    5 
 fs/overlayfs/params.c                                       |   11 
 fs/proc/page.c                                              |    7 
 fs/smb/client/cifsfs.c                                      |    1 
 fs/smb/client/cifsglob.h                                    |    2 
 fs/smb/client/cifspdu.h                                     |    4 
 fs/smb/client/fs_context.c                                  |   12 
 fs/smb/client/fs_context.h                                  |    2 
 fs/smb/client/fscache.c                                     |   13 
 fs/smb/client/misc.c                                        |    3 
 fs/smb/client/smb2pdu.h                                     |    2 
 fs/smb/client/transport.c                                   |    7 
 fs/squashfs/inode.c                                         |   11 
 include/drm/drm_gem.h                                       |   13 
 include/drm/ttm/ttm_pool.h                                  |    2 
 include/linux/etherdevice.h                                 |   25 +
 include/linux/mm.h                                          |    8 
 include/linux/mmzone.h                                      |    6 
 include/linux/page-flags.h                                  |  144 +++++----
 include/net/af_unix.h                                       |    3 
 include/net/bluetooth/hci_core.h                            |    4 
 include/net/macsec.h                                        |    1 
 include/net/sock.h                                          |   39 +-
 include/net/tls.h                                           |    3 
 include/trace/events/mmflags.h                              |    1 
 init/Kconfig                                                |    2 
 kernel/bounds.c                                             |    2 
 kernel/cpu.c                                                |    4 
 kernel/crash_core.c                                         |    7 
 kernel/fork.c                                               |   18 -
 kernel/sched/fair.c                                         |   34 +-
 lib/stackdepot.c                                            |    4 
 lib/test_meminit.c                                          |    2 
 mm/compaction.c                                             |    2 
 mm/gup.c                                                    |   59 ++--
 mm/hugetlb.c                                                |   27 -
 mm/internal.h                                               |   11 
 mm/kmsan/init.c                                             |    2 
 mm/madvise.c                                                |   17 -
 mm/page_alloc.c                                             |   13 
 mm/page_reporting.c                                         |    2 
 mm/show_mem.c                                               |    8 
 mm/vmstat.c                                                 |   12 
 net/ax25/af_ax25.c                                          |    2 
 net/bluetooth/hci_event.c                                   |    5 
 net/bluetooth/l2cap_sock.c                                  |    7 
 net/bluetooth/mgmt.c                                        |   24 +
 net/bluetooth/sco.c                                         |    7 
 net/bridge/br_netlink.c                                     |    2 
 net/core/sock.c                                             |    1 
 net/core/sysctl_net_core.c                                  |    9 
 net/ethernet/eth.c                                          |   12 
 net/ipv4/icmp.c                                             |   12 
 net/ipv4/route.c                                            |    3 
 net/ipv4/udp.c                                              |    5 
 net/ipv6/udp.c                                              |    5 
 net/mac80211/mesh.c                                         |    8 
 net/mac80211/mesh.h                                         |   36 ++
 net/mac80211/mesh_pathtbl.c                                 |   37 +-
 net/mac80211/mlme.c                                         |    9 
 net/mac80211/rx.c                                           |   13 
 net/netfilter/ipvs/ip_vs_proto_sctp.c                       |    6 
 net/netfilter/nft_chain_filter.c                            |    4 
 net/openvswitch/conntrack.c                                 |    4 
 net/tls/tls.h                                               |    2 
 net/tls/tls_strp.c                                          |    6 
 net/unix/garbage.c                                          |    2 
 rust/Makefile                                               |    1 
 rust/kernel/init.rs                                         |   11 
 rust/macros/lib.rs                                          |   12 
 scripts/Makefile.build                                      |    2 
 tools/net/ynl/lib/ynl.py                                    |    1 
 tools/testing/selftests/seccomp/seccomp_bpf.c               |   41 ++
 198 files changed, 1758 insertions(+), 1103 deletions(-)

Adam Li (1):
net: make SK_MEMORY_PCPU_RESERV tunable

Akhil R (1):
dmaengine: tegra186: Fix residual calculation

Alex Deucher (3):
drm: add drm_gem_object_is_shared_for_memory_stats() helper drm/amdgpu: add shared fdinfo stats drm/amdgpu/sdma5.2: use legacy HDP flush for SDMA2/3

Alexey Brodkin (1):
ARC: [plat-hsdk]: Remove misplaced interrupt-cells property

Alice Ryhl (1):
rust: don't select CONSTRUCTORS

Amir Goldstein (1):
ovl: fix memory leak in ovl_parse_param()

Amit Cohen (1):
mlxsw: Use refcount_t for reference counting

Andrei Simion (1):
ARM: dts: microchip: at91-sama7g5ek: Replace regulator-suspend-voltage with the valid property

Andrey Ryabinin (1):
stackdepot: respect __GFP_NOLOCKDEP allocation flag

Andy Shevchenko (2):
gpio: tangier: Use correct type for the IRQ chip data
idma64: Don't try to serve interrupts when device is powered off

AngeloGioacchino Del Regno (1):
arm64: dts: mediatek: cherry: Add platform thermal configuration

Arnd Bergmann (2):
mtd: diskonchip: work around ubsan link failure
dmaengine: owl: fix register access functions

Arınç ÜNAL (1):

      arm64: dts: rockchip: set PHY address of MT7531 switch to 0x1f

Aswin Unnikrishnan (1):
rust: remove params from module macro example

Avraham Stern (1):
wifi: iwlwifi: mvm: remove old PASN station when adding a new one

Baoquan He (1):
riscv: fix VMALLOC_START definition

Bartosz Golaszewski (1):
Bluetooth: qca: set power_ctrl_enabled on NULL returned by gpiod_get_optional()

Christian König (2):
drm/amdgpu: fix visible VRAM handling during faults drm/ttm: stop pooling cached NUMA pages v2

Christian Marangi (1):
mtd: rawnand: qcom: Fix broken OP_RESET_DEVICE command in qcom_misc_cmd_type_exec()

Chun-Yi Lee (1):
Bluetooth: hci_sync: Using hci_cmd_sync_submit when removing Adv Monitor

Colin Ian King (1):
wifi: mac80211: clean up assignments to pointer cache.

Conor Dooley (1):
rust: make mutually exclusive with CFI_CLANG

Dan Carpenter (1):
net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns()

Dan Williams (1):
cxl/core: Fix potential payload size confusion in cxl_mem_get_poison()

Daniel Golle (1):
net: phy: mediatek-ge-soc: follow netdev LED trigger semantics

David Bauer (1):
vxlan: drop packets from invalid src-address

David Hildenbrand (1):
mm/madvise: make MADV_POPULATE_(READ|WRITE) handle VM_FAULT_RETRY properly

David Howells (1):
cifs: Fix reacquisition of volume cookie on still-live connection

David Kaplan (1):
x86/cpu: Fix check for RDPKRU in __show_regs()

Dragan Simic (1):
arm64: dts: rockchip: Remove unsupported node from the Pinebook Pro dts

Duanqiang Wen (1):
net: libwx: fix alloc msix vectors failed

Duoming Zhou (1):
ax25: Fix netdev refcount issue

Eric Dumazet (4):
icmp: prevent possible NULL dereferences from icmp_build_probe()
net: fix sk_memory_allocated_{add|sub} vs softirqs
ipv4: check for NULL idev in ip_route_use_hint()
net: usb: ax88179_178a: stop lying about skb->truesize

Erwan Velu (1):
i40e: Report MFS in decimal base instead of hex

Felix Fietkau (1):
wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded

Fenghua Yu (1):
dmaengine: idxd: Fix oops during rmmod on single-CPU platforms

Gabor Juhos (1):
phy: qcom: m31: match requested regulator name with dt schema

Greg Kroah-Hartman (1):

      Linux 6.6.30

Guanrui Huang (1):
irqchip/gic-v3-its: Prevent double free on error

Gustavo A. R. Silva (1):
smb: client: Fix struct_group() usage in __packed structs

Hangbin Liu (1):
bridge/br_netlink.c: no need to return void function

Hans de Goede (1):
phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered

Huacai Chen (1):
LoongArch: Fix callchain parse error with kernel tracepoint events

Hyunwoo Kim (2):
net: gtp: Fix Use-After-Free in gtp_dellink
net: openvswitch: Fix Use-After-Free in ovs_ct_exit

Ido Schimmel (11):
mlxsw: core: Unregister EMAD trap using FORWARD action
mlxsw: core_env: Fix driver initialization with old firmware
mlxsw: spectrum_acl_tcam: Fix race in region ID allocation
mlxsw: spectrum_acl_tcam: Fix race during rehash delayed work
mlxsw: spectrum_acl_tcam: Fix possible use-after-free during activity update
mlxsw: spectrum_acl_tcam: Fix possible use-after-free during rehash
mlxsw: spectrum_acl_tcam: Rate limit error message
mlxsw: spectrum_acl_tcam: Fix memory leak during rehash
mlxsw: spectrum_acl_tcam: Fix warning during rehash
mlxsw: spectrum_acl_tcam: Fix incorrect list API usage
mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work

Ikjoon Jang (1):
arm64: dts: mediatek: mt8183: Add power-domains properity to mfgcfg

Iskander Amara (2):
arm64: dts: rockchip: fix alphabetical ordering RK3399 puma
arm64: dts: rockchip: enable internal pull-up for Q7_THRM# on RK3399 Puma

Ismael Luceno (1):
ipvs: Fix checksumming on GSO of SCTP packets

Jacob Keller (1):
ice: fix LAG and VF lock dependency in ice_reset_vf()

Jakub Kicinski (2):
tools: ynl: don't ignore errors in NLMSG_DONE messages
eth: bnxt: fix counting packets discarded due to OOM and netpoll

Jarred White (2):
ACPI: CPPC: Use access_width over bit_width for system memory accesses
ACPI: CPPC: Fix bit_offset shift in MASK_VAL() macro

Jason Reeder (1):
net: ethernet: ti: am65-cpts: Fix PTPv1 message type on TX packets

Jeff Layton (1):
squashfs: convert to new timestamp accessors

Jiantao Shan (1):
LoongArch: Fix access error when read fault on a write-only VMA

Johan Hovold (4):
Bluetooth: qca: fix NULL-deref on non-serdev suspend
Bluetooth: qca: fix NULL-deref on non-serdev setup
arm64: dts: qcom: sc8280xp: add missing PCIe minimum OPP
phy: qcom: qmp-combo: fix VCO div offset on v5_5nm and v6

Johannes Berg (3):
wifi: mac80211_hwsim: init peer measurement result
wifi: mac80211: remove link before AP
wifi: mac80211: fix unaligned le16 access

Johannes Thumshirn (1):
btrfs: fix information leak in btrfs_ioctl_logical_to_ino()

Jose Ignacio Tornos Martinez (1):
arm64: dts: rockchip: regulator for sd needs to be always on for BPI-R2Pro

Justin Chen (1):
net: bcmasp: fix memory leak when bringing down interface

Kirill A. Shutemov (2):
mm, treewide: introduce NR_PAGE_ORDERS
x86/tdx: Preserve shared bit on mprotect()

Kuniyuki Iwashima (1):
af_unix: Suppress false-positive lockdep splat for spin_lock() in __unix_gc().

Laine Taffin Altman (1):
rust: init: remove impl Zeroable for Infallible

Lijo Lazar (1):
drm/amdgpu: Assign correct bits for SDMA HDP flush

Lorenzo Stoakes (1):
mm/gup: explicitly define and check internal GUP flags, disallow FOLL_TOUCH

Luiz Augusto von Dentz (2):
Bluetooth: hci_event: Fix sending HCI_OP_READ_ENC_KEY_SIZE
Bluetooth: MGMT: Fix failing to MGMT_OP_ADD_UUID/MGMT_OP_REMOVE_UUID

MD Danish Anwar (1):
net: phy: dp83869: Fix MII mode failure

Manivannan Sadhasivam (1):
arm64: dts: qcom: sm8450: Fix the msi-map entries

Mantas Pucka (1):
mmc: sdhci-msm: pervent access to suspended controller

Marcel Ziswiler (1):
phy: freescale: imx8m-pcie: fix pcie link-up instability

Matthew Wilcox (Oracle) (4):
mm: create FOLIO_FLAG_FALSE and FOLIO_TYPE_OPS macros
mm: support page_mapcount() on page_has_type() pages
mm: turn folio_test_hugetlb into a PageType
bounds: Use the right number of bits for power-of-two CONFIG_NR_CPUS

Matthias Schiffer (1):
net: dsa: mv88e6xx: fix supported_interfaces setup in mv88e6250_phylink_get_caps()

Maximilian Luz (1):

      arm64: dts: qcom: sc8180x: Fix ss_phy_irq for secondary USB controller

Miaohe Lin (1):
fork: defer linking file vma until vma is fully initialized

Michael Heimpold (1):
ARM: dts: imx6ull-tarragon: fix USB over-current polarity

Michal Tomek (1):
phy: rockchip-snps-pcie3: fix bifurcation on rk3588

Miguel Ojeda (2):
kbuild: rust: remove unneeded @rustc_cfg to avoid ICE
kbuild: rust: force alloc extern to allow "empty" Rust files

Mikhail Kobuk (2):
phy: marvell: a3700-comphy: Fix out of bounds read
phy: marvell: a3700-comphy: Fix hardcoded array size

Mingzheng Xing (1):
Revert "riscv: kdump: fix crashkernel reserving problem on RISC-V"

Miri Korenblit (1):
wifi: iwlwifi: mvm: return uid from iwl_mvm_build_scan_cmd

Mukul Joshi (1):
drm/amdgpu: Fix leak when GPU memory allocation fails

Nam Cao (2):
HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up
fbdev: fix incorrect address computation in deferred IO

Naohiro Aota (1):
btrfs: scrub: run relocation repair when/only needed

Nathan Chancellor (1):
Bluetooth: Fix type of len in {l2cap,sco}_sock_getsockopt_old()

Nícolas F. R. A. Prado (5):
arm64: dts: mediatek: mt8192: Add missing gce-client-reg to mutex
arm64: dts: mediatek: mt8195: Add missing gce-client-reg to vpp/vdosys
arm64: dts: mediatek: mt8195: Add missing gce-client-reg to mutex
arm64: dts: mediatek: mt8195: Add missing gce-client-reg to mutex1
arm64: dts: mediatek: cherry: Describe CPU supplies

Pablo Neira Ayuso (1):
netfilter: nf_tables: honor table dormant flag from netdev release event path

Patrik Jakobsson (1):
drm/gma500: Remove lid code

Paul Geurts (1):
NFC: trf7970a: disable all regulators on removal

Paulo Alcantara (1):
smb: client: fix rename(2) regression against samba

Peter Münster (1):
net: b44: set pause params only when interface is up

Peter Xu (1):
mm/hugetlb: fix missing hugetlb_lock for resv uncharge

Phillip Lougher (1):
Squashfs: check the inode number is not the invalid value of zero

Pin-yen Lin (3):
arm64: dts: mediatek: mt8192-asurada: Update min voltage constraint for MT6315
arm64: dts: mediatek: mt8195-cherry: Update min voltage constraint for MT6315
arm64: dts: mediatek: mt8183-kukui: Use default min voltage for MT6358

Prathamesh Shete (1):
gpio: tegra186: Fix tegra186_gpio_is_accessible() check

Qu Wenruo (1):
btrfs: fix wrong block_start calculation for btrfs_drop_extent_map_range()

Quentin Schulz (2):
arm64: dts: rockchip: enable internal pull-up on Q7_USB_ID for RK3399 Puma
arm64: dts: rockchip: enable internal pull-up on PCIE_WAKE# for RK3399 Puma

Rafał Miłecki (11):
arm64: dts: mediatek: mt7622: fix clock controllers
arm64: dts: mediatek: mt7622: fix IR nodename
arm64: dts: mediatek: mt7622: fix ethernet controller "compatible"
arm64: dts: mediatek: mt7622: drop "reset-names" from thermal block
arm64: dts: mediatek: mt7986: reorder properties
arm64: dts: mediatek: mt7986: drop invalid properties from ethsys
arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller
arm64: dts: mediatek: mt7986: reorder nodes
arm64: dts: mediatek: mt7986: drop invalid thermal block clock
arm64: dts: mediatek: mt7986: prefix BPI-R3 cooling maps with "map-"
arm64: dts: mediatek: mt2712: fix validation errors

Rahul Rameshbabu (4):
ethernet: Add helper for assigning packet type when dest address does not match device address
macsec: Enable devices to advertise whether they update sk_buff md_dst during offloads
macsec: Detect if Rx skb is macsec-related for offloading devices that update md_dst net/mlx5e: Advertise mlx5 ethernet driver updates sk_buff md_dst for MACsec

Rex Zhang (1):
dmaengine: idxd: Convert spinlock to mutex to lock evl workqueue

Sabrina Dubroca (1):

      tls: fix lockless read of strp->msg_ready in ->poll

Samuel Holland (2):
riscv: Fix TASK_SIZE on 64-bit NOMMU
riscv: Fix loading 64-bit NOMMU kernels past the start of RAM

Sean Anderson (1):
dma: xilinx_dpdma: Fix locking

Sean Christopherson (3):
KVM: x86/pmu: Zero out PMU metadata on AMD if PMU is disabled
KVM: x86/pmu: Set enable bits for GP counters in PERF_GLOBAL_CTRL at "RESET"
cpu: Re-enable CPU mitigations by default for !X86 architectures

Sean Wang (1):
Bluetooth: btusb: mediatek: Fix double free of skb in coredump

Sebastian Reichel (2):
phy: rockchip-snps-pcie3: fix clearing PHP_GRF_PCIESEL_CON bits
phy: rockchip: naneng-combphy: Fix mux on rk3588

Sindhu Devale (1):
i40e: Do not use WQ_MEM_RECLAIM flag for workqueue

Stephen Boyd (2):
phy: qcom: qmp-combo: Fix register base for QSERDES_DP_PHY_MODE
phy: qcom: qmp-combo: Fix VCO div offset on v3

Steve French (2):
smb3: missing lock when picking channel
smb3: fix lock ordering potential deadlock in cifs_sync_mid_result

Sudheer Mogilappagari (1):
iavf: Fix TC config comparison with existing adapter TC config

Sweet Tea Dorminy (1):
btrfs: fallback if compressed IO fails for ENOSPC

Takayuki Nagata (1):
cifs: reinstate original behavior again for forceuid/forcegid

Terry Tritton (3):
selftests/seccomp: user_notification_addfd check nextfd is available selftests/seccomp: Change the syscall used in KILL_THREAD test selftests/seccomp: Handle EINVAL on unshare(CLONE_NEWPID)

Tianchen Ding (2):
sched/eevdf: Always update V if se->on_rq when reweighting sched/eevdf: Fix miscalculation in reweight_entity() when se is not curr

Vanshidhar Konda (1):
ACPI: CPPC: Fix access width used for PCC registers

Vijendar Mukunda (1):
soundwire: amd: fix for wake interrupt handling for clockstop mode

Vikas Gupta (2):
bnxt_en: refactor reset close code
bnxt_en: Fix the PCI-AER routines

WangYuli (1):

      Bluetooth: btusb: Add Realtek RTL8852BE support ID 0x0bda:0x4853

Wolfram Sang (1):
i2c: smbus: fix NULL function pointer dereference

Xuewen Yan (1):
sched/eevdf: Prevent vlag from going out of bounds in reweight_eevdf()

Yaraslau Furman (1):
HID: logitech-dj: allow mice to use all types of reports

Yick Xie (1):
udp: preserve the connected status if only UDP cmsg

Zhang Lixu (1):

      HID: intel-ish-hid: ipc: Fix dev_err usage with uninitialized dev->devc

Zijun Hu (1):
Bluetooth: btusb: Fix triggering coredump implementation for QCA