Skip to contentSkip to conversation

Linux 6.1.115

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

lore
Share & tools
lore
author maintainer
#1 lore raw
In reply to Greg Kroah-Hartman
Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml +9 -9
index f46c66bc6b2d..fe02773a490a 100644
@@ -102,21 +102,21 @@ properties:
     default: 2
 
   interrupts:
-    anyOf:
-      - minItems: 1
-        items:
-          - description: TX interrupt
-          - description: RX interrupt
-      - items:
-          - description: common/combined interrupt
+    minItems: 1
+    maxItems: 2
 
   interrupt-names:
     oneOf:
-      - minItems: 1
+      - description: TX interrupt
+        const: tx
+      - description: RX interrupt
+        const: rx
+      - description: TX and RX interrupts
         items:
           - const: tx
           - const: rx
-      - const: common
+      - description: Common/combined interrupt
+        const: common
 
   fck_parent:
     $ref: /schemas/types.yaml#/definitions/string
Documentation/networking/driver.rst +62 -35

133 lines not on this page · raw message

Makefile +1 -1
index 23782d82c76f..1982ced2f43a 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 1
-SUBLEVEL = 114
+SUBLEVEL = 115
 EXTRAVERSION =
 NAME = Curry Ramen
 
arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts +1 -1
index cf84e69fced8..4b2f63e0ae7c 100644
@@ -76,7 +76,7 @@ &gpio {
 };
 
 &hdmi {
-	hpd-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
+	hpd-gpios = <&expgpio 0 GPIO_ACTIVE_LOW>;
 	power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
 	status = "okay";
 };
arch/arm64/Makefile +1 -1
index c9496539c335..85a30ebae19f 100644
@@ -10,7 +10,7 @@
 #
 # Copyright (C) 1995-2001 by Russell King
 
-LDFLAGS_vmlinux	:=--no-undefined -X
+LDFLAGS_vmlinux	:=--no-undefined -X --pic-veneer
 
 ifeq ($(CONFIG_RELOCATABLE), y)
 # Pass --no-apply-dynamic-relocs to restore pre-binutils-2.27 behaviour
arch/arm64/include/asm/uprobes.h +5 -7
index 315eef654e39..014b02897f8e 100644
@@ -10,21 +10,19 @@
 #include <asm/insn.h>
 #include <asm/probes.h>
 
-#define MAX_UINSN_BYTES		AARCH64_INSN_SIZE
-
-#define UPROBE_SWBP_INSN	BRK64_OPCODE_UPROBES
+#define UPROBE_SWBP_INSN	cpu_to_le32(BRK64_OPCODE_UPROBES)
 #define UPROBE_SWBP_INSN_SIZE	AARCH64_INSN_SIZE
-#define UPROBE_XOL_SLOT_BYTES	MAX_UINSN_BYTES
+#define UPROBE_XOL_SLOT_BYTES	AARCH64_INSN_SIZE
 
-typedef u32 uprobe_opcode_t;
+typedef __le32 uprobe_opcode_t;
 
 struct arch_uprobe_task {
 };
 
 struct arch_uprobe {
 	union {
-		u8 insn[MAX_UINSN_BYTES];
-		u8 ixol[MAX_UINSN_BYTES];
+		__le32 insn;
+		__le32 ixol;
 	};
 	struct arch_probe_insn api;
 	bool simulate;
arch/arm64/kernel/probes/uprobes.c +2 -2
index d49aef2657cd..a2f137a595fc 100644
@@ -42,7 +42,7 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm,
 	else if (!IS_ALIGNED(addr, AARCH64_INSN_SIZE))
 		return -EINVAL;
 
-	insn = *(probe_opcode_t *)(&auprobe->insn[0]);
+	insn = le32_to_cpu(auprobe->insn);
 
 	switch (arm_probe_decode_insn(insn, &auprobe->api)) {
 	case INSN_REJECTED:
@@ -108,7 +108,7 @@ bool arch_uprobe_skip_sstep(struct arch_uprobe *auprobe, struct pt_regs *regs)
 	if (!auprobe->simulate)
 		return false;
 
-	insn = *(probe_opcode_t *)(&auprobe->insn[0]);
+	insn = le32_to_cpu(auprobe->insn);
 	addr = instruction_pointer(regs);
 
 	if (auprobe->api.handler)
arch/arm64/kvm/arm.c +3 -0
index de94515fb17c..cf7e10587fb0 100644
@@ -750,6 +750,9 @@ static int kvm_vcpu_suspend(struct kvm_vcpu *vcpu)
 static int check_vcpu_requests(struct kvm_vcpu *vcpu)
 {
 	if (kvm_request_pending(vcpu)) {
+		if (kvm_check_request(KVM_REQ_VM_DEAD, vcpu))
+			return -EIO;
+
 		if (kvm_check_request(KVM_REQ_SLEEP, vcpu))
 			kvm_vcpu_sleep(vcpu);
 
arch/arm64/kvm/vgic/vgic-init.c +3 -3
index 39c24e5ea8cd..059d00c17d26 100644
@@ -494,10 +494,10 @@ int kvm_vgic_map_resources(struct kvm *kvm)
 out:
 	mutex_unlock(&kvm->arch.config_lock);
 out_slots:
-	mutex_unlock(&kvm->slots_lock);
-
 	if (ret)
-		kvm_vgic_destroy(kvm);
+		kvm_vm_dead(kvm);
+
+	mutex_unlock(&kvm->slots_lock);
 
 	return ret;
 }
arch/loongarch/Kconfig +1 -0
index fa3171f56327..f4ba3638b76a 100644
@@ -78,6 +78,7 @@ config LOONGARCH
 	select GENERIC_SCHED_CLOCK
 	select GENERIC_SMP_IDLE_THREAD
 	select GENERIC_TIME_VSYSCALL
+	select GENERIC_VDSO_TIME_NS
 	select GPIOLIB
 	select HAVE_ARCH_AUDITSYSCALL
 	select HAVE_ARCH_MMAP_RND_BITS if MMU
arch/loongarch/include/asm/bootinfo.h +4 -0
index ed0910e8b856..e703615ca706 100644
@@ -25,6 +25,10 @@ struct loongson_board_info {
 	const char *board_vendor;
 };
 
+/*
+ * The "core" of cores_per_node and cores_per_package stands for a
+ * logical core, which means in a SMT system it stands for a thread.
+ */
 struct loongson_system_configuration {
 	int nr_cpus;
 	int nr_nodes;
arch/loongarch/include/asm/page.h +1 -0
index 53f284a96182..bbac81dd7378 100644
@@ -81,6 +81,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
 #define __va(x)		((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
 
 #define pfn_to_kaddr(pfn)	__va((pfn) << PAGE_SHIFT)
+#define sym_to_pfn(x)		__phys_to_pfn(__pa_symbol(x))
 
 #ifdef CONFIG_FLATMEM
 
arch/loongarch/include/asm/vdso/gettimeofday.h +8 -1
index 7b2cd37641e2..89e6b222c2f2 100644
@@ -91,9 +91,16 @@ static inline bool loongarch_vdso_hres_capable(void)
 
 static __always_inline const struct vdso_data *__arch_get_vdso_data(void)
 {
-	return get_vdso_data();
+	return (const struct vdso_data *)get_vdso_data();
 }
 
+#ifdef CONFIG_TIME_NS
+static __always_inline
+const struct vdso_data *__arch_get_timens_vdso_data(const struct vdso_data *vd)
+{
+	return (const struct vdso_data *)(get_vdso_data() + VVAR_TIMENS_PAGE_OFFSET * PAGE_SIZE);
+}
+#endif
 #endif /* !__ASSEMBLY__ */
 
 #endif /* __ASM_VDSO_GETTIMEOFDAY_H */
arch/loongarch/include/asm/vdso/vdso.h +27 -5
index 3b55d32a0619..5a12309d9fb5 100644
@@ -16,10 +16,33 @@ struct vdso_pcpu_data {
 
 struct loongarch_vdso_data {
 	struct vdso_pcpu_data pdata[NR_CPUS];
-	struct vdso_data data[CS_BASES]; /* Arch-independent data */
 };
 
-#define VDSO_DATA_SIZE PAGE_ALIGN(sizeof(struct loongarch_vdso_data))
+/*
+ * The layout of vvar:
+ *
+ *                      high
+ * +---------------------+--------------------------+
+ * | loongarch vdso data | LOONGARCH_VDSO_DATA_SIZE |
+ * +---------------------+--------------------------+
+ * |  time-ns vdso data  |        PAGE_SIZE         |
+ * +---------------------+--------------------------+
+ * |  generic vdso data  |        PAGE_SIZE         |
+ * +---------------------+--------------------------+
+ *                      low
+ */
+#define LOONGARCH_VDSO_DATA_SIZE PAGE_ALIGN(sizeof(struct loongarch_vdso_data))
+#define LOONGARCH_VDSO_DATA_PAGES (LOONGARCH_VDSO_DATA_SIZE >> PAGE_SHIFT)
+
+enum vvar_pages {
+	VVAR_GENERIC_PAGE_OFFSET,
+	VVAR_TIMENS_PAGE_OFFSET,
+	VVAR_LOONGARCH_PAGES_START,
+	VVAR_LOONGARCH_PAGES_END = VVAR_LOONGARCH_PAGES_START + LOONGARCH_VDSO_DATA_PAGES - 1,
+	VVAR_NR_PAGES,
+};
+
+#define VVAR_SIZE (VVAR_NR_PAGES << PAGE_SHIFT)
 
 static inline unsigned long get_vdso_base(void)
 {
@@ -34,10 +57,9 @@ static inline unsigned long get_vdso_base(void)
 	return addr;
 }
 
-static inline const struct vdso_data *get_vdso_data(void)
+static inline unsigned long get_vdso_data(void)
 {
-	return (const struct vdso_data *)(get_vdso_base()
-			- VDSO_DATA_SIZE + SMP_CACHE_BYTES * NR_CPUS);
+	return get_vdso_base() - VVAR_SIZE;
 }
 
 #endif /* __ASSEMBLY__ */
arch/loongarch/kernel/process.c +9 -7
index 1259bc312979..4561bc81c063 100644
@@ -271,13 +271,15 @@ unsigned long stack_top(void)
 {
 	unsigned long top = TASK_SIZE & PAGE_MASK;
 
-	/* Space for the VDSO & data page */
-	top -= PAGE_ALIGN(current->thread.vdso->size);
-	top -= PAGE_SIZE;
-
-	/* Space to randomize the VDSO base */
-	if (current->flags & PF_RANDOMIZE)
-		top -= VDSO_RANDOMIZE_SIZE;
+	if (current->thread.vdso) {
+		/* Space for the VDSO & data page */
+		top -= PAGE_ALIGN(current->thread.vdso->size);
+		top -= VVAR_SIZE;
+
+		/* Space to randomize the VDSO base */
+		if (current->flags & PF_RANDOMIZE)
+			top -= VDSO_RANDOMIZE_SIZE;
+	}
 
 	return top;
 }
arch/loongarch/kernel/setup.c +2 -1
index ae436def7ee9..b00e885d9845 100644
@@ -49,6 +49,7 @@
 #define SMBIOS_FREQHIGH_OFFSET		0x17
 #define SMBIOS_FREQLOW_MASK		0xFF
 #define SMBIOS_CORE_PACKAGE_OFFSET	0x23
+#define SMBIOS_THREAD_PACKAGE_OFFSET	0x25
 #define LOONGSON_EFI_ENABLE		(1 << 3)
 
 struct screen_info screen_info __section(".data");
@@ -115,7 +116,7 @@ static void __init parse_cpu_table(const struct dmi_header *dm)
 	cpu_clock_freq = freq_temp * 1000000;
 
 	loongson_sysconf.cpuname = (void *)dmi_string_parse(dm, dmi_data[16]);
-	loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_CORE_PACKAGE_OFFSET);
+	loongson_sysconf.cores_per_package = *(dmi_data + SMBIOS_THREAD_PACKAGE_OFFSET);
 
 	pr_info("CpuClock = %llu\n", cpu_clock_freq);
 }
arch/loongarch/kernel/vdso.c +82 -16

157 lines not on this page · raw message

arch/loongarch/vdso/vgetcpu.c +1 -1
index e02e775f5360..9e445be39763 100644
@@ -21,7 +21,7 @@ static __always_inline int read_cpu_id(void)
 
 static __always_inline const struct vdso_pcpu_data *get_pcpu_data(void)
 {
-	return (struct vdso_pcpu_data *)(get_vdso_base() - VDSO_DATA_SIZE);
+	return (struct vdso_pcpu_data *)(get_vdso_data() + VVAR_LOONGARCH_PAGES_START * PAGE_SIZE);
 }
 
 extern
arch/riscv/net/bpf_jit_comp64.c +2 -2
index 4c4ac563326b..66ee5f00ec54 100644
@@ -542,8 +542,8 @@ static void emit_atomic(u8 rd, u8 rs, s16 off, s32 imm, bool is64,
 		     rv_lr_w(r0, 0, rd, 0, 0), ctx);
 		jmp_offset = ninsns_rvoff(8);
 		emit(rv_bne(RV_REG_T2, r0, jmp_offset >> 1), ctx);
-		emit(is64 ? rv_sc_d(RV_REG_T3, rs, rd, 0, 0) :
-		     rv_sc_w(RV_REG_T3, rs, rd, 0, 0), ctx);
+		emit(is64 ? rv_sc_d(RV_REG_T3, rs, rd, 0, 1) :
+		     rv_sc_w(RV_REG_T3, rs, rd, 0, 1), ctx);
 		jmp_offset = ninsns_rvoff(-6);
 		emit(rv_bne(RV_REG_T3, 0, jmp_offset >> 1), ctx);
 		emit(rv_fence(0x3, 0x3), ctx);
arch/s390/include/asm/perf_event.h +1 -0
index b9da71632827..ea340b901839 100644
@@ -75,6 +75,7 @@ struct perf_sf_sde_regs {
 #define SAMPLE_FREQ_MODE(hwc)	(SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FREQ_MODE)
 
 #define perf_arch_fetch_caller_regs(regs, __ip) do {			\
+	(regs)->psw.mask = 0;						\
 	(regs)->psw.addr = (__ip);					\
 	(regs)->gprs[15] = (unsigned long)__builtin_frame_address(0) -	\
 		offsetof(struct stack_frame, back_chain);		\
arch/s390/pci/pci_event.c +9 -8
index b9324ca2eb94..b3961f1016ea 100644
@@ -272,18 +272,19 @@ static void __zpci_event_error(struct zpci_ccdf_err *ccdf)
 		goto no_pdev;
 
 	switch (ccdf->pec) {
-	case 0x003a: /* Service Action or Error Recovery Successful */
+	case 0x002a: /* Error event concerns FMB */
+	case 0x002b:
+	case 0x002c:
+		break;
+	case 0x0040: /* Service Action or Error Recovery Failed */
+	case 0x003b:
+		zpci_event_io_failure(pdev, pci_channel_io_perm_failure);
+		break;
+	default: /* PCI function left in the error state attempt to recover */
 		ers_res = zpci_event_attempt_error_recovery(pdev);
 		if (ers_res != PCI_ERS_RESULT_RECOVERED)
 			zpci_event_io_failure(pdev, pci_channel_io_perm_failure);
 		break;
-	default:
-		/*
-		 * Mark as frozen not permanently failed because the device
-		 * could be subsequently recovered by the platform.
-		 */
-		zpci_event_io_failure(pdev, pci_channel_io_frozen);
-		break;
 	}
 	pci_dev_put(pdev);
 no_pdev:
arch/x86/kernel/cpu/resctrl/ctrlmondata.c +14 -9
index 84f23327caed..d2cb96738ff6 100644
@@ -27,10 +27,10 @@
  * hardware. The allocated bandwidth percentage is rounded to the next
  * control step available on the hardware.
  */
-static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)
+static bool bw_validate(char *buf, u32 *data, struct rdt_resource *r)
 {
-	unsigned long bw;
 	int ret;
+	u32 bw;
 
 	/*
 	 * Only linear delay values is supported for current Intel SKUs.
@@ -40,16 +40,21 @@ static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)
 		return false;
 	}
 
-	ret = kstrtoul(buf, 10, &bw);
+	ret = kstrtou32(buf, 10, &bw);
 	if (ret) {
-		rdt_last_cmd_printf("Non-decimal digit in MB value %s\n", buf);
+		rdt_last_cmd_printf("Invalid MB value %s\n", buf);
 		return false;
 	}
 
-	if ((bw < r->membw.min_bw || bw > r->default_ctrl) &&
-	    !is_mba_sc(r)) {
-		rdt_last_cmd_printf("MB value %ld out of range [%d,%d]\n", bw,
-				    r->membw.min_bw, r->default_ctrl);
+	/* Nothing else to do if software controller is enabled. */
+	if (is_mba_sc(r)) {
+		*data = bw;
+		return true;
+	}
+
+	if (bw < r->membw.min_bw || bw > r->default_ctrl) {
+		rdt_last_cmd_printf("MB value %u out of range [%d,%d]\n",
+				    bw, r->membw.min_bw, r->default_ctrl);
 		return false;
 	}
 
@@ -63,7 +68,7 @@ int parse_bw(struct rdt_parse_data *data, struct resctrl_schema *s,
 	struct resctrl_staged_config *cfg;
 	u32 closid = data->rdtgrp->closid;
 	struct rdt_resource *r = s->res;
-	unsigned long bw_val;
+	u32 bw_val;
 
 	cfg = &d->staged_config[s->conf_type];
 	if (cfg->have_new_ctrl) {
arch/x86/kvm/svm/nested.c +5 -1
index 5d4d78c9a787..974f30d38c79 100644
@@ -62,8 +62,12 @@ static u64 nested_svm_get_tdp_pdptr(struct kvm_vcpu *vcpu, int index)
 	u64 pdpte;
 	int ret;
 
+	/*
+	 * Note, nCR3 is "assumed" to be 32-byte aligned, i.e. the CPU ignores
+	 * nCR3[4:0] when loading PDPTEs from memory.
+	 */
 	ret = kvm_vcpu_read_guest_page(vcpu, gpa_to_gfn(cr3), &pdpte,
-				       offset_in_page(cr3) + index * 8, 8);
+				       (cr3 & GENMASK(11, 5)) + index * 8, 8);
 	if (ret)
 		return 0;
 	return pdpte;
block/bfq-iosched.c +17 -20
index bfce6343a577..8e797782cfe3 100644
@@ -3117,10 +3117,12 @@ void bfq_release_process_ref(struct bfq_data *bfqd, struct bfq_queue *bfqq)
 	bfq_put_queue(bfqq);
 }
 
-static void
-bfq_merge_bfqqs(struct bfq_data *bfqd, struct bfq_io_cq *bic,
-		struct bfq_queue *bfqq, struct bfq_queue *new_bfqq)
+static struct bfq_queue *bfq_merge_bfqqs(struct bfq_data *bfqd,
+					 struct bfq_io_cq *bic,
+					 struct bfq_queue *bfqq)
 {
+	struct bfq_queue *new_bfqq = bfqq->new_bfqq;
+
 	bfq_log_bfqq(bfqd, bfqq, "merging with queue %lu",
 		(unsigned long)new_bfqq->pid);
 	/* Save weight raising and idle window of the merged queues */
@@ -3214,6 +3216,8 @@ bfq_merge_bfqqs(struct bfq_data *bfqd, struct bfq_io_cq *bic,
 	bfq_reassign_last_bfqq(bfqq, new_bfqq);
 
 	bfq_release_process_ref(bfqd, bfqq);
+
+	return new_bfqq;
 }
 
 static bool bfq_allow_bio_merge(struct request_queue *q, struct request *rq,
@@ -3249,14 +3253,8 @@ static bool bfq_allow_bio_merge(struct request_queue *q, struct request *rq,
 		 * fulfilled, i.e., bic can be redirected to new_bfqq
 		 * and bfqq can be put.
 		 */
-		bfq_merge_bfqqs(bfqd, bfqd->bio_bic, bfqq,
-				new_bfqq);
-		/*
-		 * If we get here, bio will be queued into new_queue,
-		 * so use new_bfqq to decide whether bio and rq can be
-		 * merged.
-		 */
-		bfqq = new_bfqq;
+		while (bfqq != new_bfqq)
+			bfqq = bfq_merge_bfqqs(bfqd, bfqd->bio_bic, bfqq);
 
 		/*
 		 * Change also bqfd->bio_bfqq, as
@@ -5616,9 +5614,7 @@ bfq_do_early_stable_merge(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 	 * state before killing it.
 	 */
 	bfqq->bic = bic;
-	bfq_merge_bfqqs(bfqd, bic, bfqq, new_bfqq);
-
-	return new_bfqq;
+	return bfq_merge_bfqqs(bfqd, bic, bfqq);
 }
 
 /*
@@ -6066,6 +6062,7 @@ static bool __bfq_insert_request(struct bfq_data *bfqd, struct request *rq)
 	bool waiting, idle_timer_disabled = false;
 
 	if (new_bfqq) {
+		struct bfq_queue *old_bfqq = bfqq;
 		/*
 		 * Release the request's reference to the old bfqq
 		 * and make sure one is taken to the shared queue.
@@ -6081,18 +6078,18 @@ static bool __bfq_insert_request(struct bfq_data *bfqd, struct request *rq)
 		 * then complete the merge and redirect it to
 		 * new_bfqq.
 		 */
-		if (bic_to_bfqq(RQ_BIC(rq), 1) == bfqq)
-			bfq_merge_bfqqs(bfqd, RQ_BIC(rq),
-					bfqq, new_bfqq);
+		if (bic_to_bfqq(RQ_BIC(rq), 1) == bfqq) {
+			while (bfqq != new_bfqq)
+				bfqq = bfq_merge_bfqqs(bfqd, RQ_BIC(rq), bfqq);
+		}
 
-		bfq_clear_bfqq_just_created(bfqq);
+		bfq_clear_bfqq_just_created(old_bfqq);
 		/*
 		 * rq is about to be enqueued into new_bfqq,
 		 * release rq reference on bfqq
 		 */
-		bfq_put_queue(bfqq);
+		bfq_put_queue(old_bfqq);
 		rq->elv.priv[1] = new_bfqq;
-		bfqq = new_bfqq;
 	}
 
 	bfq_update_io_thinktime(bfqd, bfqq);
drivers/acpi/button.c +11 -0
index 1f9b9a4c38c7..000a7a7e5d49 100644
@@ -121,6 +121,17 @@ static const struct dmi_system_id dmi_lid_quirks[] = {
 		},
 		.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
 	},
+	{
+		/*
+		 * Samsung galaxybook2 ,initial _LID device notification returns
+		 * lid closed.
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "750XED"),
+		},
+		.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
+	},
 	{}
 };
 
drivers/acpi/cppc_acpi.c +116 -0

125 lines not on this page · raw message

drivers/acpi/prmt.c +23 -6
index 3d4c4620f9f9..dd0261fd12d6 100644
@@ -52,7 +52,7 @@ struct prm_context_buffer {
 static LIST_HEAD(prm_module_list);
 
 struct prm_handler_info {
-	guid_t guid;
+	efi_guid_t guid;
 	void *handler_addr;
 	u64 static_data_buffer_addr;
 	u64 acpi_param_buffer_addr;
@@ -72,17 +72,21 @@ struct prm_module_info {
 	struct prm_handler_info handlers[];
 };
 
-static u64 efi_pa_va_lookup(u64 pa)
+static u64 efi_pa_va_lookup(efi_guid_t *guid, u64 pa)
 {
 	efi_memory_desc_t *md;
 	u64 pa_offset = pa & ~PAGE_MASK;
 	u64 page = pa & PAGE_MASK;
 
 	for_each_efi_memory_desc(md) {
-		if (md->phys_addr < pa && pa < md->phys_addr + PAGE_SIZE * md->num_pages)
+		if ((md->attribute & EFI_MEMORY_RUNTIME) &&
+		    (md->phys_addr < pa && pa < md->phys_addr + PAGE_SIZE * md->num_pages)) {
 			return pa_offset + md->virt_addr + page - md->phys_addr;
+		}
 	}
 
+	pr_warn("Failed to find VA for GUID: %pUL, PA: 0x%llx", guid, pa);
+
 	return 0;
 }
 
@@ -148,9 +152,15 @@ acpi_parse_prmt(union acpi_subtable_headers *header, const unsigned long end)
 		th = &tm->handlers[cur_handler];
 
 		guid_copy(&th->guid, (guid_t *)handler_info->handler_guid);
-		th->handler_addr = (void *)efi_pa_va_lookup(handler_info->handler_address);
-		th->static_data_buffer_addr = efi_pa_va_lookup(handler_info->static_data_buffer_address);
-		th->acpi_param_buffer_addr = efi_pa_va_lookup(handler_info->acpi_param_buffer_address);
+		th->handler_addr =
+			(void *)efi_pa_va_lookup(&th->guid, handler_info->handler_address);
+
+		th->static_data_buffer_addr =
+			efi_pa_va_lookup(&th->guid, handler_info->static_data_buffer_address);
+
+		th->acpi_param_buffer_addr =
+			efi_pa_va_lookup(&th->guid, handler_info->acpi_param_buffer_address);
+
 	} while (++cur_handler < tm->handler_count && (handler_info = get_next_handler(handler_info)));
 
 	return 0;
@@ -253,6 +263,13 @@ static acpi_status acpi_platformrt_space_handler(u32 function,
 		if (!handler || !module)
 			goto invalid_guid;
 
+		if (!handler->handler_addr ||
+		    !handler->static_data_buffer_addr ||
+		    !handler->acpi_param_buffer_addr) {
+			buffer->prm_status = PRM_HANDLER_ERROR;
+			return AE_OK;
+		}
+
 		ACPI_COPY_NAMESEG(context.signature, "PRMC");
 		context.revision = 0x0;
 		context.reserved = 0x0;
drivers/acpi/resource.c +7 -0
index 059354382a39..d57bc814dec4 100644
@@ -502,6 +502,13 @@ static const struct dmi_system_id tongfang_gm_rg[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "GMxRGxx"),
 		},
 	},
+	{
+		/* LG Electronics 16T90SP */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LG Electronics"),
+			DMI_MATCH(DMI_BOARD_NAME, "16T90SP"),
+		},
+	},
 	{ }
 };
 
drivers/cpufreq/cppc_cpufreq.c +17 -122

239 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +12 -3
index e32bd990800d..d967fba2e85e 100644
@@ -107,6 +107,7 @@ static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif,
 					   struct acpi_buffer *params)
 {
 	acpi_status status;
+	union acpi_object *obj;
 	union acpi_object atif_arg_elements[2];
 	struct acpi_object_list atif_arg;
 	struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
@@ -129,16 +130,24 @@ static union acpi_object *amdgpu_atif_call(struct amdgpu_atif *atif,
 
 	status = acpi_evaluate_object(atif->handle, NULL, &atif_arg,
 				      &buffer);
+	obj = (union acpi_object *)buffer.pointer;
 
-	/* Fail only if calling the method fails and ATIF is supported */
+	/* Fail if calling the method fails and ATIF is supported */
 	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
 		DRM_DEBUG_DRIVER("failed to evaluate ATIF got %s\n",
 				 acpi_format_exception(status));
-		kfree(buffer.pointer);
+		kfree(obj);
 		return NULL;
 	}
 
-	return buffer.pointer;
+	if (obj->type != ACPI_TYPE_BUFFER) {
+		DRM_DEBUG_DRIVER("bad object returned from ATIF: %d\n",
+				 obj->type);
+		kfree(obj);
+		return NULL;
+	}
+
+	return obj;
 }
 
 /**
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +3 -2
index 9a4cbfbd5d9e..3feb792c210d 100644
@@ -1038,8 +1038,10 @@ int amdgpu_mes_add_ring(struct amdgpu_device *adev, int gang_id,
 
 	r = amdgpu_ring_init(adev, ring, 1024, NULL, 0,
 			     AMDGPU_RING_PRIO_DEFAULT, NULL);
-	if (r)
+	if (r) {
+		amdgpu_mes_unlock(&adev->mes);
 		goto clean_up_memory;
+	}
 
 	amdgpu_mes_ring_to_queue_props(adev, ring, &qprops);
 
@@ -1072,7 +1074,6 @@ int amdgpu_mes_add_ring(struct amdgpu_device *adev, int gang_id,
 	amdgpu_ring_fini(ring);
 clean_up_memory:
 	kfree(ring);
-	amdgpu_mes_unlock(&adev->mes);
 	return r;
 }
 
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +2 -0
index 67287ad07226..e83ad362e06f 100644
@@ -818,6 +818,8 @@ bool is_psr_su_specific_panel(struct dc_link *link)
 				isPSRSUSupported = false;
 			else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x03)
 				isPSRSUSupported = false;
+			else if (dpcd_caps->sink_dev_id_str[1] == 0x08 && dpcd_caps->sink_dev_id_str[0] == 0x01)
+				isPSRSUSupported = false;
 			else if (dpcd_caps->psr_info.force_psrsu_cap == 0x1)
 				isPSRSUSupported = true;
 		}
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +4 -5
index 1bf41a82cd0f..ba8f2ba04629 100644
@@ -1106,21 +1106,20 @@ static void dpu_encoder_virt_atomic_mode_set(struct drm_encoder *drm_enc,
 	for (i = 0; i < dpu_enc->num_phys_encs; i++) {
 		struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i];
 
-		if (!dpu_enc->hw_pp[i]) {
+		phys->hw_pp = dpu_enc->hw_pp[i];
+		if (!phys->hw_pp) {
 			DPU_ERROR_ENC(dpu_enc,
 				"no pp block assigned at idx: %d\n", i);
 			return;
 		}
 
-		if (!hw_ctl[i]) {
+		phys->hw_ctl = i < num_ctl ? to_dpu_hw_ctl(hw_ctl[i]) : NULL;
+		if (!phys->hw_ctl) {
 			DPU_ERROR_ENC(dpu_enc,
 				"no ctl block assigned at idx: %d\n", i);
 			return;
 		}
 
-		phys->hw_pp = dpu_enc->hw_pp[i];
-		phys->hw_ctl = to_dpu_hw_ctl(hw_ctl[i]);
-
 		phys->cached_mode = crtc_state->adjusted_mode;
 		if (phys->ops.atomic_mode_set)
 			phys->ops.atomic_mode_set(phys, crtc_state, conn_state);
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +1 -0
index ce58d97818bc..e05c3ccf07f8 100644
@@ -61,6 +61,7 @@ static void _dpu_encoder_phys_cmd_update_intf_cfg(
 	intf_cfg.intf_mode_sel = DPU_CTL_MODE_SEL_CMD;
 	intf_cfg.stream_sel = cmd_enc->stream_sel;
 	intf_cfg.mode_3d = dpu_encoder_helper_get_3d_blend_mode(phys_enc);
+	intf_cfg.dsc = dpu_encoder_helper_get_dsc(phys_enc);
 	ctl->ops.setup_intf_cfg(ctl, &intf_cfg);
 
 	/* setup which pp blk will connect to this intf */
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +2 -1
index 2baade1cd487..aba2488c32fa 100644
@@ -276,7 +276,8 @@ static void dpu_encoder_phys_vid_setup_timing_engine(
 	intf_cfg.intf_mode_sel = DPU_CTL_MODE_SEL_VID;
 	intf_cfg.stream_sel = 0; /* Don't care value for video mode */
 	intf_cfg.mode_3d = dpu_encoder_helper_get_3d_blend_mode(phys_enc);
-	if (phys_enc->hw_pp->merge_3d)
+	intf_cfg.dsc = dpu_encoder_helper_get_dsc(phys_enc);
+	if (intf_cfg.mode_3d && phys_enc->hw_pp->merge_3d)
 		intf_cfg.merge_3d = phys_enc->hw_pp->merge_3d->idx;
 
 	spin_lock_irqsave(phys_enc->enc_spinlock, lock_flags);
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +10 -9
index add72bbc28b1..4d55e3cf570f 100644
@@ -26,7 +26,7 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b
 	end_addr = base_addr + aligned_len;
 
 	if (!(*reg))
-		*reg = kzalloc(len_padded, GFP_KERNEL);
+		*reg = kvzalloc(len_padded, GFP_KERNEL);
 
 	if (*reg)
 		dump_addr = *reg;
@@ -48,20 +48,21 @@ static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *b
 	}
 }
 
-static void msm_disp_state_print_regs(u32 **reg, u32 len, void __iomem *base_addr,
-		struct drm_printer *p)
+static void msm_disp_state_print_regs(const u32 *dump_addr, u32 len,
+		void __iomem *base_addr, struct drm_printer *p)
 {
 	int i;
-	u32 *dump_addr = NULL;
 	void __iomem *addr;
 	u32 num_rows;
 
+	if (!dump_addr) {
+		drm_printf(p, "Registers not stored\n");
+		return;
+	}
+
 	addr = base_addr;
 	num_rows = len / REG_DUMP_ALIGN;
 
-	if (*reg)
-		dump_addr = *reg;
-
 	for (i = 0; i < num_rows; i++) {
 		drm_printf(p, "0x%lx : %08x %08x %08x %08x\n",
 				(unsigned long)(addr - base_addr),
@@ -89,7 +90,7 @@ void msm_disp_state_print(struct msm_disp_state *state, struct drm_printer *p)
 
 	list_for_each_entry_safe(block, tmp, &state->blocks, node) {
 		drm_printf(p, "====================%s================\n", block->name);
-		msm_disp_state_print_regs(&block->state, block->size, block->base_addr, p);
+		msm_disp_state_print_regs(block->state, block->size, block->base_addr, p);
 	}
 
 	drm_printf(p, "===================dpu drm state================\n");
@@ -161,7 +162,7 @@ void msm_disp_state_free(void *data)
 
 	list_for_each_entry_safe(block, tmp, &disp_state->blocks, node) {
 		list_del(&block->node);
-		kfree(block->state);
+		kvfree(block->state);
 		kfree(block);
 	}
 
drivers/gpu/drm/msm/dsi/dsi_host.c +1 -1
index 034ad810fd65..88843505d89c 100644
@@ -576,7 +576,7 @@ static unsigned long dsi_get_pclk_rate(struct msm_dsi_host *msm_host, bool is_bo
 	struct drm_display_mode *mode = msm_host->mode;
 	unsigned long pclk_rate;
 
-	pclk_rate = mode->clock * 1000;
+	pclk_rate = mode->clock * 1000u;
 
 	/*
 	 * For bonded DSI mode, the current DRM mode has the complete width of the
drivers/gpu/drm/vboxvideo/hgsmi_base.c +9 -1
index 8c041d7ce4f1..87dccaecc3e5 100644
@@ -139,7 +139,15 @@ int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags,
 		flags |= VBOX_MOUSE_POINTER_VISIBLE;
 	}
 
-	p = hgsmi_buffer_alloc(ctx, sizeof(*p) + pixel_len, HGSMI_CH_VBVA,
+	/*
+	 * The 4 extra bytes come from switching struct vbva_mouse_pointer_shape
+	 * from having a 4 bytes fixed array at the end to using a proper VLA
+	 * at the end. These 4 extra bytes were not subtracted from sizeof(*p)
+	 * before the switch to the VLA, so this way the behavior is unchanged.
+	 * Chances are these 4 extra bytes are not necessary but they are kept
+	 * to avoid regressions.
+	 */
+	p = hgsmi_buffer_alloc(ctx, sizeof(*p) + pixel_len + 4, HGSMI_CH_VBVA,
 			       VBVA_MOUSE_POINTER_SHAPE);
 	if (!p)
 		return -ENOMEM;
drivers/gpu/drm/vboxvideo/vboxvideo.h +1 -3
index f60d82504da0..79ec8481de0e 100644
@@ -351,10 +351,8 @@ struct vbva_mouse_pointer_shape {
 	 * Bytes in the gap between the AND and the XOR mask are undefined.
 	 * XOR mask scanlines have no gap between them and size of XOR mask is:
 	 * xor_len = width * 4 * height.
-	 *
-	 * Preallocate 4 bytes for accessing actual data as p->data.
 	 */
-	u8 data[4];
+	u8 data[];
 } __packed;
 
 /* pointer is visible */
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +4 -0
index e98fde90f4e0..2f775679a507 100644
@@ -1028,6 +1028,10 @@ static int vmw_stdu_connector_atomic_check(struct drm_connector *conn,
 	struct drm_crtc_state *new_crtc_state;
 
 	conn_state = drm_atomic_get_connector_state(state, conn);
+
+	if (IS_ERR(conn_state))
+		return PTR_ERR(conn_state);
+
 	du = vmw_connector_to_stdu(conn);
 
 	if (!conn_state->crtc)
drivers/iio/accel/bma400_core.c +2 -1
index 6e4d10a7cd32..4d91747b2027 100644
@@ -1245,7 +1245,8 @@ static int bma400_activity_event_en(struct bma400_data *data,
 static int bma400_tap_event_en(struct bma400_data *data,
 			       enum iio_event_direction dir, int state)
 {
-	unsigned int mask, field_value;
+	unsigned int mask;
+	unsigned int field_value = 0;
 	int ret;
 
 	/*
drivers/iio/frequency/Kconfig +17 -16
index f3702f36436c..023997786ce0 100644
@@ -71,25 +71,26 @@ config ADMV1014
 	  module will be called admv1014.
 
 config ADMV4420
-       tristate "Analog Devices ADMV4420 K Band Downconverter"
-       depends on SPI
-       help
-         Say yes here to build support for Analog Devices K Band
-         Downconverter with integrated Fractional-N PLL and VCO.
+	tristate "Analog Devices ADMV4420 K Band Downconverter"
+	depends on SPI
+	select REGMAP_SPI
+	help
+	  Say yes here to build support for Analog Devices K Band
+	  Downconverter with integrated Fractional-N PLL and VCO.
 
-         To compile this driver as a module, choose M here: the
-         module will be called admv4420.
+	  To compile this driver as a module, choose M here: the
+	  module will be called admv4420.
 
 config ADRF6780
-        tristate "Analog Devices ADRF6780 Microwave Upconverter"
-        depends on SPI
-        depends on COMMON_CLK
-        help
-          Say yes here to build support for Analog Devices ADRF6780
-          5.9 GHz to 23.6 GHz, Wideband, Microwave Upconverter.
-
-          To compile this driver as a module, choose M here: the
-          module will be called adrf6780.
+	tristate "Analog Devices ADRF6780 Microwave Upconverter"
+	depends on SPI
+	depends on COMMON_CLK
+	help
+	  Say yes here to build support for Analog Devices ADRF6780
+	  5.9 GHz to 23.6 GHz, Wideband, Microwave Upconverter.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called adrf6780.
 
 endmenu
 endmenu
drivers/infiniband/hw/bnxt_re/qplib_fp.h +1 -1
index 4f1a845f9be6..57a3dae87f65 100644
@@ -169,7 +169,7 @@ struct bnxt_qplib_swqe {
 			};
 			u32		q_key;
 			u32		dst_qp;
-			u16		avid;
+			u32		avid;
 		} send;
 
 		/* Send Raw Ethernet and QP1 */
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c +1 -1
index 75e0c42f6f42..14c9af41faa6 100644
@@ -249,7 +249,7 @@ int bnxt_qplib_rcfw_send_message(struct bnxt_qplib_rcfw *rcfw,
 		/* failed with status */
 		dev_err(&rcfw->pdev->dev, "cmdq[%#x]=%#x status %#x\n",
 			cookie, opcode, evnt->status);
-		rc = -EFAULT;
+		rc = -EIO;
 	}
 
 	return rc;
drivers/infiniband/hw/bnxt_re/qplib_res.c +5 -16
index 81b0c5e879f9..203350c6e00f 100644
@@ -244,6 +244,8 @@ int bnxt_qplib_alloc_init_hwq(struct bnxt_qplib_hwq *hwq,
 			sginfo.pgsize = npde * pg_size;
 			sginfo.npages = 1;
 			rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_0], &sginfo);
+			if (rc)
+				goto fail;
 
 			/* Alloc PBL pages */
 			sginfo.npages = npbl;
@@ -255,22 +257,9 @@ int bnxt_qplib_alloc_init_hwq(struct bnxt_qplib_hwq *hwq,
 			dst_virt_ptr =
 				(dma_addr_t **)hwq->pbl[PBL_LVL_0].pg_arr;
 			src_phys_ptr = hwq->pbl[PBL_LVL_1].pg_map_arr;
-			if (hwq_attr->type == HWQ_TYPE_MR) {
-			/* For MR it is expected that we supply only 1 contigous
-			 * page i.e only 1 entry in the PDL that will contain
-			 * all the PBLs for the user supplied memory region
-			 */
-				for (i = 0; i < hwq->pbl[PBL_LVL_1].pg_count;
-				     i++)
-					dst_virt_ptr[0][i] = src_phys_ptr[i] |
-						flag;
-			} else {
-				for (i = 0; i < hwq->pbl[PBL_LVL_1].pg_count;
-				     i++)
-					dst_virt_ptr[PTR_PG(i)][PTR_IDX(i)] =
-						src_phys_ptr[i] |
-						PTU_PDE_VALID;
-			}
+			for (i = 0; i < hwq->pbl[PBL_LVL_1].pg_count; i++)
+				dst_virt_ptr[0][i] = src_phys_ptr[i] | flag;
+
 			/* Alloc or init PTEs */
 			rc = __alloc_pbl(res, &hwq->pbl[PBL_LVL_2],
 					 hwq_attr->sginfo);
drivers/infiniband/hw/cxgb4/cm.c +4 -5
index b3757c6a0457..8d753e6e0c71 100644
@@ -2086,7 +2086,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
 	err = -ENOMEM;
 	if (n->dev->flags & IFF_LOOPBACK) {
 		if (iptype == 4)
-			pdev = ip_dev_find(&init_net, *(__be32 *)peer_ip);
+			pdev = __ip_dev_find(&init_net, *(__be32 *)peer_ip, false);
 		else if (IS_ENABLED(CONFIG_IPV6))
 			for_each_netdev(&init_net, pdev) {
 				if (ipv6_chk_addr(&init_net,
@@ -2101,12 +2101,12 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
 			err = -ENODEV;
 			goto out;
 		}
+		if (is_vlan_dev(pdev))
+			pdev = vlan_dev_real_dev(pdev);
 		ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
 					n, pdev, rt_tos2priority(tos));
-		if (!ep->l2t) {
-			dev_put(pdev);
+		if (!ep->l2t)
 			goto out;
-		}
 		ep->mtu = pdev->mtu;
 		ep->tx_chan = cxgb4_port_chan(pdev);
 		ep->smac_idx = ((struct port_info *)netdev_priv(pdev))->smt_idx;
@@ -2119,7 +2119,6 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
 		ep->rss_qid = cdev->rdev.lldi.rxq_ids[
 			cxgb4_port_idx(pdev) * step];
 		set_tcp_window(ep, (struct port_info *)netdev_priv(pdev));
-		dev_put(pdev);
 	} else {
 		pdev = get_real_dev(n->dev);
 		ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
drivers/infiniband/hw/irdma/cm.c +1 -1
index 8817864154af..691b9ed7f759 100644
@@ -3584,7 +3584,7 @@ void irdma_free_lsmm_rsrc(struct irdma_qp *iwqp)
 /**
  * irdma_accept - registered call for connection to be accepted
  * @cm_id: cm information for passive connection
- * @conn_param: accpet parameters
+ * @conn_param: accept parameters
  */
 int irdma_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
 {
drivers/infiniband/ulp/srpt/ib_srpt.c +68 -12

145 lines not on this page · raw message

drivers/irqchip/irq-renesas-rzg2l.c +79 -15

154 lines not on this page · raw message

drivers/net/dsa/mv88e6xxx/port.c +1 -0
index f79cf716c541..553f577c25a6 100644
@@ -1728,6 +1728,7 @@ int mv88e6393x_port_set_policy(struct mv88e6xxx_chip *chip, int port,
 	ptr = shift / 8;
 	shift %= 8;
 	mask >>= ptr * 8;
+	ptr <<= 8;
 
 	err = mv88e6393x_port_policy_read(chip, port, ptr, &reg);
 	if (err)
drivers/net/ethernet/aeroflex/greth.c +2 -1
index aa0d2f3aaeaa..f7a44d8541a0 100644
@@ -484,7 +484,7 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)
 
 	if (unlikely(skb->len > MAX_FRAME_SIZE)) {
 		dev->stats.tx_errors++;
-		goto out;
+		goto len_error;
 	}
 
 	/* Save skb pointer. */
@@ -575,6 +575,7 @@ greth_start_xmit_gbit(struct sk_buff *skb, struct net_device *dev)
 map_error:
 	if (net_ratelimit())
 		dev_warn(greth->dev, "Could not create TX DMA mapping\n");
+len_error:
 	dev_kfree_skb(skb);
 out:
 	return err;
drivers/net/ethernet/broadcom/bcmsysport.c +1 -0
index 425d6ccd5413..1693f6c60efc 100644
@@ -1348,6 +1348,7 @@ static netdev_tx_t bcm_sysport_xmit(struct sk_buff *skb,
 		netif_err(priv, tx_err, dev, "DMA map failed at %p (len=%d)\n",
 			  skb->data, skb_len);
 		ret = NETDEV_TX_OK;
+		dev_kfree_skb_any(skb);
 		goto out;
 	}
 
drivers/net/ethernet/emulex/benet/be_main.c +5 -5
index a9e4e6464a04..b0a85c9b952b 100644
@@ -1382,10 +1382,8 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)
 	be_get_wrb_params_from_skb(adapter, skb, &wrb_params);
 
 	wrb_cnt = be_xmit_enqueue(adapter, txo, skb, &wrb_params);
-	if (unlikely(!wrb_cnt)) {
-		dev_kfree_skb_any(skb);
-		goto drop;
-	}
+	if (unlikely(!wrb_cnt))
+		goto drop_skb;
 
 	/* if os2bmc is enabled and if the pkt is destined to bmc,
 	 * enqueue the pkt a 2nd time with mgmt bit set.
@@ -1394,7 +1392,7 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)
 		BE_WRB_F_SET(wrb_params.features, OS2BMC, 1);
 		wrb_cnt = be_xmit_enqueue(adapter, txo, skb, &wrb_params);
 		if (unlikely(!wrb_cnt))
-			goto drop;
+			goto drop_skb;
 		else
 			skb_get(skb);
 	}
@@ -1408,6 +1406,8 @@ static netdev_tx_t be_xmit(struct sk_buff *skb, struct net_device *netdev)
 		be_xmit_flush(adapter, txo);
 
 	return NETDEV_TX_OK;
+drop_skb:
+	dev_kfree_skb_any(skb);
 drop:
 	tx_stats(txo)->tx_drv_drops++;
 	/* Flush the already enqueued tx requests */
drivers/net/ethernet/i825xx/sun3_82586.c +1 -0
index 72d3b5328ebb..54c83e66bf78 100644
@@ -1011,6 +1011,7 @@ sun3_82586_send_packet(struct sk_buff *skb, struct net_device *dev)
 	if(skb->len > XMIT_BUFF_SIZE)
 	{
 		printk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %d bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len);
+		dev_kfree_skb(skb);
 		return NETDEV_TX_OK;
 	}
 
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c +59 -23

122 lines not on this page · raw message

drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +2 -2
index 7ed0eb9bd4ed..95a8ccd18a4f 100644
@@ -2279,7 +2279,7 @@ static int nix_smq_flush(struct rvu *rvu, int blkaddr,
 				 NIX_AF_TL3_TL2X_LINKX_CFG(tl2_tl3_link_schq, link));
 		if (!(cfg & BIT_ULL(12)))
 			continue;
-		bmap |= (1 << i);
+		bmap |= BIT_ULL(i);
 		cfg &= ~BIT_ULL(12);
 		rvu_write64(rvu, blkaddr,
 			    NIX_AF_TL3_TL2X_LINKX_CFG(tl2_tl3_link_schq, link), cfg);
@@ -2300,7 +2300,7 @@ static int nix_smq_flush(struct rvu *rvu, int blkaddr,
 
 	/* Set NIX_AF_TL3_TL2_LINKX_CFG[ENA] for the TL3/TL2 queue */
 	for (i = 0; i < (rvu->hw->cgx_links + rvu->hw->lbk_links); i++) {
-		if (!(bmap & (1 << i)))
+		if (!(bmap & BIT_ULL(i)))
 			continue;
 		cfg = rvu_read64(rvu, blkaddr,
 				 NIX_AF_TL3_TL2X_LINKX_CFG(tl2_tl3_link_schq, link));
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +74 -64

212 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +3 -2
index 48939c72b592..9ba825df9be0 100644
@@ -1279,7 +1279,7 @@ int mlx5_eswitch_enable_locked(struct mlx5_eswitch *esw, int num_vfs)
 	}
 
 	if (err)
-		goto abort;
+		goto err_esw_enable;
 
 	esw->fdb_table.flags |= MLX5_ESW_FDB_CREATED;
 
@@ -1293,7 +1293,8 @@ int mlx5_eswitch_enable_locked(struct mlx5_eswitch *esw, int num_vfs)
 
 	return 0;
 
-abort:
+err_esw_enable:
+	mlx5_eq_notifier_unregister(esw->dev, &esw->nb);
 	mlx5_esw_acls_ns_cleanup(esw);
 	return err;
 }
drivers/net/ethernet/mellanox/mlx5/core/main.c +12 -3
index 825ad7663fa4..de7baa1a1e16 100644
@@ -1114,7 +1114,7 @@ static int mlx5_function_enable(struct mlx5_core_dev *dev, bool boot, u64 timeou
 		return err;
 	}
 
-	err = mlx5_cmd_init(dev);
+	err = mlx5_cmd_enable(dev);
 	if (err) {
 		mlx5_core_err(dev, "Failed initializing command interface, aborting\n");
 		return err;
@@ -1168,7 +1168,7 @@ static int mlx5_function_enable(struct mlx5_core_dev *dev, bool boot, u64 timeou
 	mlx5_stop_health_poll(dev, boot);
 err_cmd_cleanup:
 	mlx5_cmd_set_state(dev, MLX5_CMDIF_STATE_DOWN);
-	mlx5_cmd_cleanup(dev);
+	mlx5_cmd_disable(dev);
 
 	return err;
 }
@@ -1179,7 +1179,7 @@ static void mlx5_function_disable(struct mlx5_core_dev *dev, bool boot)
 	mlx5_core_disable_hca(dev, 0);
 	mlx5_stop_health_poll(dev, boot);
 	mlx5_cmd_set_state(dev, MLX5_CMDIF_STATE_DOWN);
-	mlx5_cmd_cleanup(dev);
+	mlx5_cmd_disable(dev);
 }
 
 static int mlx5_function_open(struct mlx5_core_dev *dev)
@@ -1644,6 +1644,12 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx)
 						mlx5_debugfs_root);
 	INIT_LIST_HEAD(&priv->traps);
 
+	err = mlx5_cmd_init(dev);
+	if (err) {
+		mlx5_core_err(dev, "Failed initializing cmdif SW structs, aborting\n");
+		goto err_cmd_init;
+	}
+
 	err = mlx5_tout_init(dev);
 	if (err) {
 		mlx5_core_err(dev, "Failed initializing timeouts, aborting\n");
@@ -1689,6 +1695,8 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx)
 err_health_init:
 	mlx5_tout_cleanup(dev);
 err_timeout_init:
+	mlx5_cmd_cleanup(dev);
+err_cmd_init:
 	debugfs_remove(dev->priv.dbg.dbg_root);
 	mutex_destroy(&priv->pgdir_mutex);
 	mutex_destroy(&priv->alloc_mutex);
@@ -1711,6 +1719,7 @@ void mlx5_mdev_uninit(struct mlx5_core_dev *dev)
 	mlx5_pagealloc_cleanup(dev);
 	mlx5_health_cleanup(dev);
 	mlx5_tout_cleanup(dev);
+	mlx5_cmd_cleanup(dev);
 	debugfs_remove_recursive(dev->priv.dbg.dbg_root);
 	mutex_destroy(&priv->pgdir_mutex);
 	mutex_destroy(&priv->alloc_mutex);
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h +2 -0
index 0b560e97a356..7d90f311b856 100644
@@ -177,6 +177,8 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev);
 int mlx5_query_board_id(struct mlx5_core_dev *dev);
 int mlx5_cmd_init(struct mlx5_core_dev *dev);
 void mlx5_cmd_cleanup(struct mlx5_core_dev *dev);
+int mlx5_cmd_enable(struct mlx5_core_dev *dev);
+void mlx5_cmd_disable(struct mlx5_core_dev *dev);
 void mlx5_cmd_set_state(struct mlx5_core_dev *dev,
 			enum mlx5_cmdif_state cmdif_state);
 int mlx5_cmd_init_hca(struct mlx5_core_dev *dev, uint32_t *sw_owner_id);
drivers/net/ethernet/realtek/r8169_main.c +3 -1
index 8b35e14fba3a..a74e33bf0302 100644
@@ -4617,7 +4617,9 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
 	if ((status & 0xffff) == 0xffff || !(status & tp->irq_mask))
 		return IRQ_NONE;
 
-	if (unlikely(status & SYSErr)) {
+	/* At least RTL8168fp may unexpectedly set the SYSErr bit */
+	if (unlikely(status & SYSErr &&
+	    tp->mac_version <= RTL_GIGA_MAC_VER_06)) {
 		rtl8169_pcierr_interrupt(tp->dev);
 		goto out;
 	}
drivers/net/ethernet/renesas/ravb_main.c +12 -13
index 756ac4a07f60..705010ea1d56 100644
@@ -1689,20 +1689,19 @@ static int ravb_get_ts_info(struct net_device *ndev,
 	struct ravb_private *priv = netdev_priv(ndev);
 	const struct ravb_hw_info *hw_info = priv->info;
 
-	info->so_timestamping =
-		SOF_TIMESTAMPING_TX_SOFTWARE |
-		SOF_TIMESTAMPING_RX_SOFTWARE |
-		SOF_TIMESTAMPING_SOFTWARE |
-		SOF_TIMESTAMPING_TX_HARDWARE |
-		SOF_TIMESTAMPING_RX_HARDWARE |
-		SOF_TIMESTAMPING_RAW_HARDWARE;
-	info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
-	info->rx_filters =
-		(1 << HWTSTAMP_FILTER_NONE) |
-		(1 << HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
-		(1 << HWTSTAMP_FILTER_ALL);
-	if (hw_info->gptp || hw_info->ccc_gac)
+	if (hw_info->gptp || hw_info->ccc_gac) {
+		info->so_timestamping =
+			SOF_TIMESTAMPING_TX_SOFTWARE |
+			SOF_TIMESTAMPING_TX_HARDWARE |
+			SOF_TIMESTAMPING_RX_HARDWARE |
+			SOF_TIMESTAMPING_RAW_HARDWARE;
+		info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON);
+		info->rx_filters =
+			(1 << HWTSTAMP_FILTER_NONE) |
+			(1 << HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
+			(1 << HWTSTAMP_FILTER_ALL);
 		info->phc_index = ptp_clock_index(priv->ptp.clock);
+	}
 
 	return 0;
 }
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -0
index 0b6f0908f3e1..ce0dd78826af 100644
@@ -844,6 +844,7 @@ axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
 		if (net_ratelimit())
 			netdev_err(ndev, "TX DMA mapping error\n");
 		ndev->stats.tx_dropped++;
+		dev_kfree_skb_any(skb);
 		return NETDEV_TX_OK;
 	}
 	desc_set_phys_addr(lp, phys, cur_p);
@@ -864,6 +865,7 @@ axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
 			ndev->stats.tx_dropped++;
 			axienet_free_tx_chain(lp, orig_tail_ptr, ii + 1,
 					      true, NULL, 0);
+			dev_kfree_skb_any(skb);
 			return NETDEV_TX_OK;
 		}
 		desc_set_phys_addr(lp, phys, cur_p);
drivers/net/hyperv/netvsc_drv.c +30 -0
index 1b7405539984..2fba5dfd9cd0 100644
@@ -2791,6 +2791,31 @@ static struct  hv_driver netvsc_drv = {
 	},
 };
 
+/* Set VF's namespace same as the synthetic NIC */
+static void netvsc_event_set_vf_ns(struct net_device *ndev)
+{
+	struct net_device_context *ndev_ctx = netdev_priv(ndev);
+	struct net_device *vf_netdev;
+	int ret;
+
+	vf_netdev = rtnl_dereference(ndev_ctx->vf_netdev);
+	if (!vf_netdev)
+		return;
+
+	if (!net_eq(dev_net(ndev), dev_net(vf_netdev))) {
+		ret = dev_change_net_namespace(vf_netdev, dev_net(ndev),
+					       "eth%d");
+		if (ret)
+			netdev_err(vf_netdev,
+				   "Cannot move to same namespace as %s: %d\n",
+				   ndev->name, ret);
+		else
+			netdev_info(vf_netdev,
+				    "Moved VF to namespace with: %s\n",
+				    ndev->name);
+	}
+}
+
 /*
  * On Hyper-V, every VF interface is matched with a corresponding
  * synthetic interface. The synthetic interface is presented first
@@ -2803,6 +2828,11 @@ static int netvsc_netdev_event(struct notifier_block *this,
 	struct net_device *event_dev = netdev_notifier_info_to_dev(ptr);
 	int ret = 0;
 
+	if (event_dev->netdev_ops == &device_ops && event == NETDEV_REGISTER) {
+		netvsc_event_set_vf_ns(event_dev);
+		return NOTIFY_DONE;
+	}
+
 	ret = check_dev_is_matching_vf(event_dev);
 	if (ret != 0)
 		return NOTIFY_DONE;
drivers/net/macsec.c +0 -18
index 8a8fd74110e2..3a19d6f0e0dd 100644
@@ -151,19 +151,6 @@ static struct macsec_rx_sa *macsec_rxsa_get(struct macsec_rx_sa __rcu *ptr)
 	return sa;
 }
 
-static struct macsec_rx_sa *macsec_active_rxsa_get(struct macsec_rx_sc *rx_sc)
-{
-	struct macsec_rx_sa *sa = NULL;
-	int an;
-
-	for (an = 0; an < MACSEC_NUM_AN; an++)	{
-		sa = macsec_rxsa_get(rx_sc->sa[an]);
-		if (sa)
-			break;
-	}
-	return sa;
-}
-
 static void free_rx_sc_rcu(struct rcu_head *head)
 {
 	struct macsec_rx_sc *rx_sc = container_of(head, struct macsec_rx_sc, rcu_head);
@@ -1210,15 +1197,12 @@ static rx_handler_result_t macsec_handle_frame(struct sk_buff **pskb)
 		/* If validateFrames is Strict or the C bit in the
 		 * SecTAG is set, discard
 		 */
-		struct macsec_rx_sa *active_rx_sa = macsec_active_rxsa_get(rx_sc);
 		if (hdr->tci_an & MACSEC_TCI_C ||
 		    secy->validate_frames == MACSEC_VALIDATE_STRICT) {
 			u64_stats_update_begin(&rxsc_stats->syncp);
 			rxsc_stats->stats.InPktsNotUsingSA++;
 			u64_stats_update_end(&rxsc_stats->syncp);
 			DEV_STATS_INC(secy->netdev, rx_errors);
-			if (active_rx_sa)
-				this_cpu_inc(active_rx_sa->stats->InPktsNotUsingSA);
 			goto drop_nosa;
 		}
 
@@ -1228,8 +1212,6 @@ static rx_handler_result_t macsec_handle_frame(struct sk_buff **pskb)
 		u64_stats_update_begin(&rxsc_stats->syncp);
 		rxsc_stats->stats.InPktsUnusedSA++;
 		u64_stats_update_end(&rxsc_stats->syncp);
-		if (active_rx_sa)
-			this_cpu_inc(active_rx_sa->stats->InPktsUnusedSA);
 		goto deliver;
 	}
 
drivers/net/netdevsim/dev.c +9 -6
index f3fa4bd12116..cdf7a70d6659 100644
@@ -836,7 +836,8 @@ static void nsim_dev_trap_report_work(struct work_struct *work)
 	nsim_dev = nsim_trap_data->nsim_dev;
 
 	if (!devl_trylock(priv_to_devlink(nsim_dev))) {
-		schedule_delayed_work(&nsim_dev->trap_data->trap_report_dw, 1);
+		queue_delayed_work(system_unbound_wq,
+				   &nsim_dev->trap_data->trap_report_dw, 1);
 		return;
 	}
 
@@ -848,11 +849,12 @@ static void nsim_dev_trap_report_work(struct work_struct *work)
 			continue;
 
 		nsim_dev_trap_report(nsim_dev_port);
+		cond_resched();
 	}
 	devl_unlock(priv_to_devlink(nsim_dev));
-
-	schedule_delayed_work(&nsim_dev->trap_data->trap_report_dw,
-			      msecs_to_jiffies(NSIM_TRAP_REPORT_INTERVAL_MS));
+	queue_delayed_work(system_unbound_wq,
+			   &nsim_dev->trap_data->trap_report_dw,
+			   msecs_to_jiffies(NSIM_TRAP_REPORT_INTERVAL_MS));
 }
 
 static int nsim_dev_traps_init(struct devlink *devlink)
@@ -907,8 +909,9 @@ static int nsim_dev_traps_init(struct devlink *devlink)
 
 	INIT_DELAYED_WORK(&nsim_dev->trap_data->trap_report_dw,
 			  nsim_dev_trap_report_work);
-	schedule_delayed_work(&nsim_dev->trap_data->trap_report_dw,
-			      msecs_to_jiffies(NSIM_TRAP_REPORT_INTERVAL_MS));
+	queue_delayed_work(system_unbound_wq,
+			   &nsim_dev->trap_data->trap_report_dw,
+			   msecs_to_jiffies(NSIM_TRAP_REPORT_INTERVAL_MS));
 
 	return 0;
 
drivers/net/phy/dp83822.c +2 -2
index 57411ee1d837..317357c43c9a 100644
@@ -40,8 +40,8 @@
 /* Control Register 2 bits */
 #define DP83822_FX_ENABLE	BIT(14)
 
-#define DP83822_HW_RESET	BIT(15)
-#define DP83822_SW_RESET	BIT(14)
+#define DP83822_SW_RESET	BIT(15)
+#define DP83822_DIG_RESTART	BIT(14)
 
 /* PHY STS bits */
 #define DP83822_PHYSTS_DUPLEX			BIT(2)
drivers/net/plip/plip.c +1 -1
index 40ce8abe6999..6019811920a4 100644
@@ -815,7 +815,7 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
 				return HS_TIMEOUT;
 			}
 		}
-		break;
+		fallthrough;
 
 	case PLIP_PK_LENGTH_LSB:
 		if (plip_send(nibble_timeout, dev,
drivers/net/usb/usbnet.c +3 -1
index bd0b807db751..ae1282487b02 100644
@@ -1766,7 +1766,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
 		// can rename the link if it knows better.
 		if ((dev->driver_info->flags & FLAG_ETHER) != 0 &&
 		    ((dev->driver_info->flags & FLAG_POINTTOPOINT) == 0 ||
-		     (net->dev_addr [0] & 0x02) == 0))
+		     /* somebody touched it*/
+		     !is_zero_ether_addr(net->dev_addr)))
 			strscpy(net->name, "eth%d", sizeof(net->name));
 		/* WLAN devices should always be named "wlan%d" */
 		if ((dev->driver_info->flags & FLAG_WLAN) != 0)
@@ -1869,6 +1870,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
 	 * may trigger an error resubmitting itself and, worse,
 	 * schedule a timer. So we kill it all just in case.
 	 */
+	usbnet_mark_going_away(dev);
 	cancel_work_sync(&dev->kevent);
 	del_timer_sync(&dev->delay);
 	free_percpu(net->tstats);
drivers/net/wwan/wwan_core.c +1 -1
index 62e9f7d6c9fe..7089cb103885 100644
@@ -994,7 +994,7 @@ static const struct nla_policy wwan_rtnl_policy[IFLA_WWAN_MAX + 1] = {
 
 static struct rtnl_link_ops wwan_rtnl_link_ops __read_mostly = {
 	.kind = "wwan",
-	.maxtype = __IFLA_WWAN_MAX,
+	.maxtype = IFLA_WWAN_MAX,
 	.alloc = wwan_rtnl_alloc,
 	.validate = wwan_rtnl_validate,
 	.newlink = wwan_rtnl_newlink,
drivers/platform/x86/dell/dell-wmi-base.c +9 -0
index 502783a7adb1..24fd7ffadda9 100644
@@ -264,6 +264,15 @@ static const struct key_entry dell_wmi_keymap_type_0010[] = {
 	/*Speaker Mute*/
 	{ KE_KEY, 0x109, { KEY_MUTE} },
 
+	/* S2Idle screen off */
+	{ KE_IGNORE, 0x120, { KEY_RESERVED }},
+
+	/* Leaving S4 or S2Idle suspend */
+	{ KE_IGNORE, 0x130, { KEY_RESERVED }},
+
+	/* Entering S2Idle suspend */
+	{ KE_IGNORE, 0x140, { KEY_RESERVED }},
+
 	/* Mic mute */
 	{ KE_KEY, 0x150, { KEY_MICMUTE } },
 
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c +1 -0
index b2406a595be9..3ef90211c51a 100644
@@ -524,6 +524,7 @@ static int __init sysman_init(void)
 	int ret = 0;
 
 	if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL) &&
+	    !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Alienware", NULL) &&
 	    !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "www.dell.com", NULL)) {
 		pr_err("Unable to run on non-Dell system\n");
 		return -ENODEV;
drivers/powercap/dtpm_devfreq.c +1 -1
index 612c3b59dd5b..0ca53db7a90e 100644
@@ -166,7 +166,7 @@ static int __dtpm_devfreq_setup(struct devfreq *devfreq, struct dtpm *parent)
 	ret = dev_pm_qos_add_request(dev, &dtpm_devfreq->qos_req,
 				     DEV_PM_QOS_MAX_FREQUENCY,
 				     PM_QOS_MAX_FREQUENCY_DEFAULT_VALUE);
-	if (ret) {
+	if (ret < 0) {
 		pr_err("Failed to add QoS request: %d\n", ret);
 		goto out_dtpm_unregister;
 	}
drivers/pps/clients/pps-ldisc.c +3 -3
index d73c4c2ed4e1..443d6bae19d1 100644
@@ -13,7 +13,7 @@
 #include <linux/pps_kernel.h>
 #include <linux/bug.h>
 
-static void pps_tty_dcd_change(struct tty_struct *tty, unsigned int status)
+static void pps_tty_dcd_change(struct tty_struct *tty, bool active)
 {
 	struct pps_device *pps;
 	struct pps_event_time ts;
@@ -29,11 +29,11 @@ static void pps_tty_dcd_change(struct tty_struct *tty, unsigned int status)
 		return;
 
 	/* Now do the PPS event report */
-	pps_event(pps, &ts, status ? PPS_CAPTUREASSERT :
+	pps_event(pps, &ts, active ? PPS_CAPTUREASSERT :
 			PPS_CAPTURECLEAR, NULL);
 
 	dev_dbg(pps->dev, "PPS %s at %lu\n",
-			status ? "assert" : "clear", jiffies);
+			active ? "assert" : "clear", jiffies);
 }
 
 static int (*alias_n_tty_open)(struct tty_struct *tty);
drivers/target/target_core_device.c +1 -1
index 13558cbd9b82..7be48bfbd42e 100644
@@ -733,7 +733,7 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
 
 	dev->queues = kcalloc(nr_cpu_ids, sizeof(*dev->queues), GFP_KERNEL);
 	if (!dev->queues) {
-		dev->transport->free_device(dev);
+		hba->backend->ops->free_device(dev);
 		return NULL;
 	}
 
drivers/target/target_core_user.c +1 -1
index 2940559c3086..adf68323d0d6 100644
@@ -2130,7 +2130,7 @@ static int tcmu_netlink_event_send(struct tcmu_dev *udev,
 	}
 
 	ret = genlmsg_multicast_allns(&tcmu_genl_family, skb, 0,
-				      TCMU_MCGRP_CONFIG, GFP_KERNEL);
+				      TCMU_MCGRP_CONFIG);
 
 	/* Wait during an add as the listener may not be up yet */
 	if (ret == 0 ||
drivers/tty/serial/imx.c +16 -1
index 5acbab0512b8..94e0781e00e8 100644
@@ -801,7 +801,22 @@ static irqreturn_t __imx_uart_rtsint(int irq, void *dev_id)
 
 	imx_uart_writel(sport, USR1_RTSD, USR1);
 	usr1 = imx_uart_readl(sport, USR1) & USR1_RTSS;
-	uart_handle_cts_change(&sport->port, !!usr1);
+	/*
+	 * Update sport->old_status here, so any follow-up calls to
+	 * imx_uart_mctrl_check() will be able to recognize that RTS
+	 * state changed since last imx_uart_mctrl_check() call.
+	 *
+	 * In case RTS has been detected as asserted here and later on
+	 * deasserted by the time imx_uart_mctrl_check() was called,
+	 * imx_uart_mctrl_check() can detect the RTS state change and
+	 * trigger uart_handle_cts_change() to unblock the port for
+	 * further TX transfers.
+	 */
+	if (usr1 & USR1_RTSS)
+		sport->old_status |= TIOCM_CTS;
+	else
+		sport->old_status &= ~TIOCM_CTS;
+	uart_handle_cts_change(&sport->port, usr1);
 	wake_up_interruptible(&sport->port.state->port.delta_msr_wait);
 
 	return IRQ_HANDLED;
drivers/tty/serial/max3100.c +1 -1
index 5d8660fed081..67803242a70c 100644
@@ -250,7 +250,7 @@ static int max3100_handlerx_unlocked(struct max3100_port *s, u16 rx)
 	cts = (rx & MAX3100_CTS) > 0;
 	if (s->cts != cts) {
 		s->cts = cts;
-		uart_handle_cts_change(&s->port, cts ? TIOCM_CTS : 0);
+		uart_handle_cts_change(&s->port, cts);
 	}
 
 	return ret;
drivers/tty/serial/max310x.c +1 -2
index d409ef388721..4eb8d372f619 100644
@@ -843,8 +843,7 @@ static irqreturn_t max310x_port_irq(struct max310x_port *s, int portno)
 
 		if (ists & MAX310X_IRQ_CTS_BIT) {
 			lsr = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG);
-			uart_handle_cts_change(port,
-					       !!(lsr & MAX310X_LSR_CTS_BIT));
+			uart_handle_cts_change(port, lsr & MAX310X_LSR_CTS_BIT);
 		}
 		if (rxlen)
 			max310x_handle_rx(port, rxlen);
drivers/tty/serial/serial_core.c +17 -15
index 58e857fb8dee..19a53801ff9e 100644
@@ -339,14 +339,16 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)
 		/*
 		 * Turn off DTR and RTS early.
 		 */
-		if (uport && uart_console(uport) && tty) {
-			uport->cons->cflag = tty->termios.c_cflag;
-			uport->cons->ispeed = tty->termios.c_ispeed;
-			uport->cons->ospeed = tty->termios.c_ospeed;
-		}
+		if (uport) {
+			if (uart_console(uport) && tty) {
+				uport->cons->cflag = tty->termios.c_cflag;
+				uport->cons->ispeed = tty->termios.c_ispeed;
+				uport->cons->ospeed = tty->termios.c_ospeed;
+			}
 
-		if (!tty || C_HUPCL(tty))
-			uart_port_dtr_rts(uport, 0);
+			if (!tty || C_HUPCL(tty))
+				uart_port_dtr_rts(uport, 0);
+		}
 
 		uart_port_shutdown(port);
 	}
@@ -3290,11 +3292,11 @@ EXPORT_SYMBOL(uart_match_port);
 /**
  * uart_handle_dcd_change - handle a change of carrier detect state
  * @uport: uart_port structure for the open port
- * @status: new carrier detect status, nonzero if active
+ * @active: new carrier detect status
  *
  * Caller must hold uport->lock.
  */
-void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
+void uart_handle_dcd_change(struct uart_port *uport, bool active)
 {
 	struct tty_port *port = &uport->state->port;
 	struct tty_struct *tty = port->tty;
@@ -3306,7 +3308,7 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
 		ld = tty_ldisc_ref(tty);
 		if (ld) {
 			if (ld->ops->dcd_change)
-				ld->ops->dcd_change(tty, status);
+				ld->ops->dcd_change(tty, active);
 			tty_ldisc_deref(ld);
 		}
 	}
@@ -3314,7 +3316,7 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
 	uport->icount.dcd++;
 
 	if (uart_dcd_enabled(uport)) {
-		if (status)
+		if (active)
 			wake_up_interruptible(&port->open_wait);
 		else if (tty)
 			tty_hangup(tty);
@@ -3325,11 +3327,11 @@ EXPORT_SYMBOL_GPL(uart_handle_dcd_change);
 /**
  * uart_handle_cts_change - handle a change of clear-to-send state
  * @uport: uart_port structure for the open port
- * @status: new clear to send status, nonzero if active
+ * @active: new clear-to-send status
  *
  * Caller must hold uport->lock.
  */
-void uart_handle_cts_change(struct uart_port *uport, unsigned int status)
+void uart_handle_cts_change(struct uart_port *uport, bool active)
 {
 	lockdep_assert_held_once(&uport->lock);
 
@@ -3337,13 +3339,13 @@ void uart_handle_cts_change(struct uart_port *uport, unsigned int status)
 
 	if (uart_softcts_mode(uport)) {
 		if (uport->hw_stopped) {
-			if (status) {
+			if (active) {
 				uport->hw_stopped = 0;
 				uport->ops->start_tx(uport);
 				uart_write_wakeup(uport);
 			}
 		} else {
-			if (!status) {
+			if (!active) {
 				uport->hw_stopped = 1;
 				uport->ops->stop_tx(uport);
 			}
drivers/tty/serial/sunhv.c +4 -4
index 1938ba5e98c0..f0408a4d91ec 100644
@@ -89,10 +89,10 @@ static int receive_chars_getchar(struct uart_port *port)
 
 		if (c == CON_HUP) {
 			hung_up = 1;
-			uart_handle_dcd_change(port, 0);
+			uart_handle_dcd_change(port, false);
 		} else if (hung_up) {
 			hung_up = 0;
-			uart_handle_dcd_change(port, 1);
+			uart_handle_dcd_change(port, true);
 		}
 
 		if (port->state == NULL) {
@@ -135,7 +135,7 @@ static int receive_chars_read(struct uart_port *port)
 				bytes_read = 1;
 			} else if (stat == CON_HUP) {
 				hung_up = 1;
-				uart_handle_dcd_change(port, 0);
+				uart_handle_dcd_change(port, false);
 				continue;
 			} else {
 				/* HV_EWOULDBLOCK, etc.  */
@@ -145,7 +145,7 @@ static int receive_chars_read(struct uart_port *port)
 
 		if (hung_up) {
 			hung_up = 0;
-			uart_handle_dcd_change(port, 1);
+			uart_handle_dcd_change(port, true);
 		}
 
 		if (port->sysrq != 0 &&  *con_read_page) {
drivers/usb/dwc3/core.c +19 -0
index c191716896fc..22edd8d451da 100644
@@ -2131,6 +2131,11 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg)
 {
 	u32 reg;
 
+	dwc->susphy_state = (dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)) &
+			    DWC3_GUSB2PHYCFG_SUSPHY) ||
+			    (dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(0)) &
+			    DWC3_GUSB3PIPECTL_SUSPHY);
+
 	switch (dwc->current_dr_role) {
 	case DWC3_GCTL_PRTCAP_DEVICE:
 		if (pm_runtime_suspended(dwc->dev))
@@ -2178,6 +2183,15 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg)
 		break;
 	}
 
+	if (!PMSG_IS_AUTO(msg)) {
+		/*
+		 * TI AM62 platform requires SUSPHY to be
+		 * enabled for system suspend to work.
+		 */
+		if (!dwc->susphy_state)
+			dwc3_enable_susphy(dwc, true);
+	}
+
 	return 0;
 }
 
@@ -2240,6 +2254,11 @@ static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg)
 		break;
 	}
 
+	if (!PMSG_IS_AUTO(msg)) {
+		/* restore SUSPHY state to that before system suspend. */
+		dwc3_enable_susphy(dwc, dwc->susphy_state);
+	}
+
 	return 0;
 }
 
drivers/usb/dwc3/core.h +3 -0
index e733835c4122..1b496c8e7b80 100644
@@ -1118,6 +1118,8 @@ struct dwc3_scratchpad_array {
  * @dis_metastability_quirk: set to disable metastability quirk.
  * @dis_split_quirk: set to disable split boundary.
  * @suspended: set to track suspend event due to U3/L2.
+ * @susphy_state: state of DWC3_GUSB2PHYCFG_SUSPHY + DWC3_GUSB3PIPECTL_SUSPHY
+ *		  before PM suspend.
  * @imod_interval: set the interrupt moderation interval in 250ns
  *			increments or 0 to disable.
  * @max_cfg_eps: current max number of IN eps used across all USB configs.
@@ -1341,6 +1343,7 @@ struct dwc3 {
 	unsigned		dis_split_quirk:1;
 	unsigned		async_callbacks:1;
 	unsigned		suspended:1;
+	unsigned		susphy_state:1;
 
 	u16			imod_interval;
 
drivers/usb/gadget/composite.c +40 -0
index f10e43a948fd..db66242b2918 100644
@@ -490,6 +490,46 @@ int usb_interface_id(struct usb_configuration *config,
 }
 EXPORT_SYMBOL_GPL(usb_interface_id);
 
+/**
+ * usb_func_wakeup - sends function wake notification to the host.
+ * @func: function that sends the remote wakeup notification.
+ *
+ * Applicable to devices operating at enhanced superspeed when usb
+ * functions are put in function suspend state and armed for function
+ * remote wakeup. On completion, function wake notification is sent. If
+ * the device is in low power state it tries to bring the device to active
+ * state before sending the wake notification. Since it is a synchronous
+ * call, caller must take care of not calling it in interrupt context.
+ * For devices operating at lower speeds  returns negative errno.
+ *
+ * Returns zero on success, else negative errno.
+ */
+int usb_func_wakeup(struct usb_function *func)
+{
+	struct usb_gadget	*gadget = func->config->cdev->gadget;
+	int			id;
+
+	if (!gadget->ops->func_wakeup)
+		return -EOPNOTSUPP;
+
+	if (!func->func_wakeup_armed) {
+		ERROR(func->config->cdev, "not armed for func remote wakeup\n");
+		return -EINVAL;
+	}
+
+	for (id = 0; id < MAX_CONFIG_INTERFACES; id++)
+		if (func->config->interface[id] == func)
+			break;
+
+	if (id == MAX_CONFIG_INTERFACES) {
+		ERROR(func->config->cdev, "Invalid function\n");
+		return -EINVAL;
+	}
+
+	return gadget->ops->func_wakeup(gadget, id);
+}
+EXPORT_SYMBOL_GPL(usb_func_wakeup);
+
 static u8 encode_bMaxPower(enum usb_device_speed speed,
 		struct usb_configuration *c)
 {
drivers/usb/gadget/function/f_uac2.c +8 -5
index 0219cd79493a..b3dc5f5164f4 100644
@@ -2042,7 +2042,7 @@ static ssize_t f_uac2_opts_##name##_show(struct config_item *item,	\
 	int result;							\
 									\
 	mutex_lock(&opts->lock);					\
-	result = snprintf(page, sizeof(opts->name), "%s", opts->name);	\
+	result = scnprintf(page, sizeof(opts->name), "%s", opts->name);	\
 	mutex_unlock(&opts->lock);					\
 									\
 	return result;							\
@@ -2052,7 +2052,7 @@ static ssize_t f_uac2_opts_##name##_store(struct config_item *item,	\
 					  const char *page, size_t len)	\
 {									\
 	struct f_uac2_opts *opts = to_f_uac2_opts(item);		\
-	int ret = 0;							\
+	int ret = len;							\
 									\
 	mutex_lock(&opts->lock);					\
 	if (opts->refcnt) {						\
@@ -2060,8 +2060,11 @@ static ssize_t f_uac2_opts_##name##_store(struct config_item *item,	\
 		goto end;						\
 	}								\
 									\
-	ret = snprintf(opts->name, min(sizeof(opts->name), len),	\
-			"%s", page);					\
+	if (len && page[len - 1] == '\n')				\
+		len--;							\
+									\
+	scnprintf(opts->name, min(sizeof(opts->name), len + 1),		\
+		  "%s", page);						\
 									\
 end:									\
 	mutex_unlock(&opts->lock);					\
@@ -2178,7 +2181,7 @@ static struct usb_function_instance *afunc_alloc_inst(void)
 	opts->req_number = UAC2_DEF_REQ_NUM;
 	opts->fb_max = FBACK_FAST_MAX;
 
-	snprintf(opts->function_name, sizeof(opts->function_name), "Source/Sink");
+	scnprintf(opts->function_name, sizeof(opts->function_name), "Source/Sink");
 
 	return &opts->func_inst;
 }
drivers/usb/host/xhci-caps.h new file +85 -0

85 lines not on this page · raw message

drivers/usb/host/xhci-dbgcap.h +1 -1
index ca04192fdab1..caeadfb8760b 100644
@@ -108,7 +108,7 @@ struct dbc_port {
 	struct tasklet_struct		push;
 
 	struct list_head		write_pool;
-	struct kfifo			write_fifo;
+	unsigned int			tx_boundary;
 
 	bool				registered;
 };
drivers/usb/host/xhci-dbgtty.c +53 -20

35 lines not on this page · raw message

drivers/usb/host/xhci-port.h new file +176 -0

176 lines not on this page · raw message

drivers/usb/host/xhci.h +3 -259

262 lines not on this page · raw message

drivers/usb/typec/class.c +3 -0
index ce83f558fe44..3d44e181dbb5 100644

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

fs/btrfs/block-group.c +2 -0
index e9a0b27e1c4f..0dcf7fecaf55 100644

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

fs/btrfs/dir-item.c +2 -2
index fdab48c1abb8..4572cf55b401 100644

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

fs/btrfs/inode.c +2 -5
index 894887640c43..a79da940f5b2 100644

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

fs/exec.c +9 -12
index 65d3ebc24fd3..a42c9b8b070d 100644

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

fs/jfs/jfs_dmap.c +1 -1
index 384aa6dfdb95..a6b1d748df16 100644

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

fs/nilfs2/page.c +4 -2
index 7d31833e68d1..19bc8eea2b35 100644

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

fs/ntfs3/record.c +54 -13

67 lines not on this page · raw message

fs/open.c +2 -0
index 0d63c94e1c5e..2f8845488798 100644

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

fs/smb/client/smb2pdu.c +9 -0
index 992ac7d20e5e..9975711236b2 100644

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

fs/udf/inode.c +32 -17

49 lines not on this page · raw message

fs/udf/truncate.c +8 -2
index 036ebd892b85..f0de6e106ce6 100644

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

fs/udf/udfdecl.h +3 -2
index d35aa42bb577..1d19434d4a47 100644

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

include/acpi/cppc_acpi.h +2 -0
index b097bd57b2e4..2d1ec0e6ee01 100644

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

include/linux/netdevice.h +13 -0
index 0373e0935990..fbbd0df1106b 100644

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

include/linux/serial_core.h +2 -4
index 1c9b3f27f2d3..5a83db0ac763 100644

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

include/linux/tty_ldisc.h +2 -2
index dcb61ec11424..49dc172dedc7 100644

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

include/linux/usb/composite.h +6 -0
index 9783b9107d76..d759208e0a6c 100644

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

include/linux/usb/gadget.h +1 -0
index 5bec668b41dc..705b76f8dddb 100644

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

include/net/bluetooth/bluetooth.h +1 -0
index c7f1dd34ea47..41fc7f12971a 100644

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

include/net/genetlink.h +1 -2
index b9e5a22ae3ff..b39d06bbb839 100644

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

include/net/netdev_queues.h new file +144 -0

144 lines not on this page · raw message

include/net/xfrm.h +15 -13
index 5b9c2c535702..bf670929622d 100644

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

include/uapi/linux/bpf.h +5 -8
index 58c7fc75da75..667f49a64a50 100644

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

kernel/bpf/btf.c +1 -0
index 8c684a0e1c4b..9f9996cdb6e2 100644

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

kernel/bpf/devmap.c +7 -4
index e051cbb07dac..9699c30c3dc4 100644

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

kernel/bpf/ringbuf.c +6 -6
index a1911391a864..af75c54eb84f 100644

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

kernel/bpf/task_iter.c +1 -1
index c4ab9d6cdbe9..f7ef58090c7d 100644

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

kernel/bpf/verifier.c +7 -1
index eb4073781a3c..bb54f1f4fafb 100644

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

kernel/time/posix-clock.c +3 -3
index 8127673bfc45..05e73d209aa8 100644

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

kernel/trace/bpf_trace.c +0 -2
index 3fdde232eaa9..583961a9e539 100644

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

kernel/trace/trace_probe.c +1 -1
index eef9806bb9b1..ba48b5e270e1 100644

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

net/bluetooth/af_bluetooth.c +22 -0
index 0c70172555b4..4c3bd0516038 100644

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

net/bluetooth/bnep/core.c +1 -2
index a660c428e220..38f542665f19 100644

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

net/bluetooth/iso.c +12 -6
index b61abddc7bd4..27efca5dc7bb 100644

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

net/bluetooth/sco.c +12 -6
index 92ea01f9def3..ad5afde17213 100644

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

net/core/filter.c +5 -3
index 6f65c6eb0d90..3f3286cf438e 100644

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

net/ipv4/devinet.c +25 -10
index f07778c34098..430ca93ba939 100644

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

net/ipv4/inet_connection_sock.c +16 -5
index c267c5e066e9..569186f741fb 100644

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

net/ipv4/xfrm4_policy.c +18 -22
index 3d0dfa6cf9f9..76f3f38b110f 100644

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

net/ipv6/xfrm6_policy.c +16 -15
index b7b5dbf5d037..8c1092ff3fe2 100644

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

net/l2tp/l2tp_netlink.c +2 -2
index a901fd14fe3b..e27e00cb16c6 100644

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

net/netfilter/xt_NFLOG.c +1 -1
index d80abd6ccaf8..6dcf4bc7e30b 100644

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

net/netfilter/xt_TRACE.c +1 -0
index f3fa4f11348c..a642ff09fc8e 100644

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

net/netfilter/xt_mark.c +1 -1
index f76fe04fc9a4..65b965ca40ea 100644

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

net/netlink/genetlink.c +14 -14
index 505d3b910cc2..fd3c1f1ca6ea 100644

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

net/sched/act_api.c +22 -1
index 5a361deb804a..05bd1e9bca36 100644

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

net/sched/sch_generic.c +13 -4
index 6ab9359c1706..b51af871a621 100644

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

net/sched/sch_taprio.c +2 -1
index 07f6f5343dd7..212fef2b72f5 100644

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

net/smc/smc_pnet.c +1 -1
index 21b8bf23e4ee..399314cfab90 100644

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

net/wireless/nl80211.c +2 -6
index 4df7a285a7de..3e1c4e23484d 100644

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

net/xfrm/xfrm_device.c +8 -3
index 21269e8f2db4..2535ee034a5c 100644

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

net/xfrm/xfrm_policy.c +38 -12

50 lines not on this page · raw message

net/xfrm/xfrm_user.c +8 -2
index 0cc4ed29e901..2f6e0513dee5 100644

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

security/selinux/selinuxfs.c +14 -13
index a00d19139436..ab804d4ea911 100644

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

sound/firewire/amdtp-stream.c +3 -0
index 842fe127c537..b5b3b4d177aa 100644

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

sound/pci/hda/patch_cs8409.c +3 -2
index e41316e2e983..892223d9e64a 100644

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

sound/pci/hda/patch_realtek.c +27 -21

48 lines not on this page · raw message

sound/soc/codecs/lpass-rx-macro.c +1 -1
index 1639f3b66fac..aa45c472994e 100644

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

sound/soc/fsl/fsl_sai.c +4 -1
index cf1cd0460ad9..4b155e49cbfc 100644

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

sound/soc/fsl/fsl_sai.h +1 -0
index b4d616a44023..e2799f39a81e 100644

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

sound/soc/qcom/lpass-cpu.c +2 -0
index 4387cca893c5..b6314e924c8f 100644

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

sound/soc/qcom/sm8250.c +1 -0
index 9626a9ef78c2..41be09a07ca7 100644

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

tools/testing/selftests/bpf/Makefile +1 -1
index 3b57fbf8fff4..b09205d92511 100644

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

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

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

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.1.115 kernel.

All users of the 6.1 kernel series must upgrade.

The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.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/devicetree/bindings/sound/davinci-mcasp-audio.yaml |   18 
 Documentation/networking/driver.rst                              |   97 ++-
 Makefile                                                         |    2 
 arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts                        |    2 
 arch/arm64/Makefile                                              |    2 
 arch/arm64/include/asm/uprobes.h                                 |   12 
 arch/arm64/kernel/probes/uprobes.c                               |    4 
 arch/arm64/kvm/arm.c                                             |    3 
 arch/arm64/kvm/vgic/vgic-init.c                                  |    6 
 arch/loongarch/Kconfig                                           |    1 
 arch/loongarch/include/asm/bootinfo.h                            |    4 
 arch/loongarch/include/asm/page.h                                |    1 
 arch/loongarch/include/asm/vdso/gettimeofday.h                   |    9 
 arch/loongarch/include/asm/vdso/vdso.h                           |   32 +
 arch/loongarch/kernel/process.c                                  |   16 
 arch/loongarch/kernel/setup.c                                    |    3 
 arch/loongarch/kernel/vdso.c                                     |   98 +++
 arch/loongarch/vdso/vgetcpu.c                                    |    2 
 arch/riscv/net/bpf_jit_comp64.c                                  |    4 
 arch/s390/include/asm/perf_event.h                               |    1 
 arch/s390/pci/pci_event.c                                        |   17 
 arch/x86/kernel/cpu/resctrl/ctrlmondata.c                        |   23 
 arch/x86/kvm/svm/nested.c                                        |    6 
 block/bfq-iosched.c                                              |   37 -
 drivers/acpi/button.c                                            |   11 
 drivers/acpi/cppc_acpi.c                                         |  116 ++++
 drivers/acpi/prmt.c                                              |   29 -
 drivers/acpi/resource.c                                          |    7 
 drivers/cpufreq/cppc_cpufreq.c                                   |  139 -----
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c                         |   15 
 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c                          |    5 
 drivers/gpu/drm/amd/display/modules/power/power_helpers.c        |    2 
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c                      |    9 
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c             |    1 
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c             |    3 
 drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c                |   19 
 drivers/gpu/drm/msm/dsi/dsi_host.c                               |    2 
 drivers/gpu/drm/vboxvideo/hgsmi_base.c                           |   10 
 drivers/gpu/drm/vboxvideo/vboxvideo.h                            |    4 
 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c                             |    4 
 drivers/iio/accel/bma400_core.c                                  |    3 
 drivers/iio/frequency/Kconfig                                    |   33 -
 drivers/infiniband/hw/bnxt_re/qplib_fp.h                         |    2 
 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c                       |    2 
 drivers/infiniband/hw/bnxt_re/qplib_res.c                        |   21 
 drivers/infiniband/hw/cxgb4/cm.c                                 |    9 
 drivers/infiniband/hw/irdma/cm.c                                 |    2 
 drivers/infiniband/ulp/srpt/ib_srpt.c                            |   80 ++-
 drivers/irqchip/irq-renesas-rzg2l.c                              |   94 +++
 drivers/net/dsa/mv88e6xxx/port.c                                 |    1 
 drivers/net/ethernet/aeroflex/greth.c                            |    3 
 drivers/net/ethernet/broadcom/bcmsysport.c                       |    1 
 drivers/net/ethernet/emulex/benet/be_main.c                      |   10 
 drivers/net/ethernet/i825xx/sun3_82586.c                         |    1 
 drivers/net/ethernet/marvell/octeon_ep/octep_rx.c                |   82 ++-
 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c              |    4 
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c                    |  138 ++---
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c                |    5 
 drivers/net/ethernet/mellanox/mlx5/core/main.c                   |   15 
 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h              |    2 
 drivers/net/ethernet/realtek/r8169_main.c                        |    4 
 drivers/net/ethernet/renesas/ravb_main.c                         |   25 
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c                |    2 
 drivers/net/hyperv/netvsc_drv.c                                  |   30 +
 drivers/net/macsec.c                                             |   18 
 drivers/net/netdevsim/dev.c                                      |   15 
 drivers/net/phy/dp83822.c                                        |    4 
 drivers/net/plip/plip.c                                          |    2 
 drivers/net/usb/usbnet.c                                         |    4 
 drivers/net/wwan/wwan_core.c                                     |    2 
 drivers/platform/x86/dell/dell-wmi-base.c                        |    9 
 drivers/platform/x86/dell/dell-wmi-sysman/sysman.c               |    1 
 drivers/powercap/dtpm_devfreq.c                                  |    2 
 drivers/pps/clients/pps-ldisc.c                                  |    6 
 drivers/target/target_core_device.c                              |    2 
 drivers/target/target_core_user.c                                |    2 
 drivers/tty/serial/imx.c                                         |   17 
 drivers/tty/serial/max3100.c                                     |    2 
 drivers/tty/serial/max310x.c                                     |    3 
 drivers/tty/serial/serial_core.c                                 |   32 -
 drivers/tty/serial/sunhv.c                                       |    8 
 drivers/usb/dwc3/core.c                                          |   19 
 drivers/usb/dwc3/core.h                                          |    3 
 drivers/usb/gadget/composite.c                                   |   40 +
 drivers/usb/gadget/function/f_uac2.c                             |   13 
 drivers/usb/host/xhci-caps.h                                     |   85 +++
 drivers/usb/host/xhci-dbgcap.h                                   |    2 
 drivers/usb/host/xhci-dbgtty.c                                   |   73 ++
 drivers/usb/host/xhci-port.h                                     |  176 ++++++
 drivers/usb/host/xhci.h                                          |  262 ----------
 drivers/usb/typec/class.c                                        |    3 
 fs/btrfs/block-group.c                                           |    2 
 fs/btrfs/dir-item.c                                              |    4 
 fs/btrfs/inode.c                                                 |    7 
 fs/exec.c                                                        |   21 
 fs/jfs/jfs_dmap.c                                                |    2 
 fs/nilfs2/page.c                                                 |    6 
 fs/ntfs3/record.c                                                |   67 ++
 fs/open.c                                                        |    2 
 fs/smb/client/smb2pdu.c                                          |    9 
 fs/udf/inode.c                                                   |   49 +
 fs/udf/truncate.c                                                |   10 
 fs/udf/udfdecl.h                                                 |    5 
 include/acpi/cppc_acpi.h                                         |    2 
 include/linux/netdevice.h                                        |   13 
 include/linux/serial_core.h                                      |    6 
 include/linux/tty_ldisc.h                                        |    4 
 include/linux/usb/composite.h                                    |    6 
 include/linux/usb/gadget.h                                       |    1 
 include/net/bluetooth/bluetooth.h                                |    1 
 include/net/genetlink.h                                          |    3 
 include/net/netdev_queues.h                                      |  144 +++++
 include/net/xfrm.h                                               |   28 -
 include/uapi/linux/bpf.h                                         |   13 
 kernel/bpf/btf.c                                                 |    1 
 kernel/bpf/devmap.c                                              |   11 
 kernel/bpf/ringbuf.c                                             |   12 
 kernel/bpf/task_iter.c                                           |    2 
 kernel/bpf/verifier.c                                            |    8 
 kernel/time/posix-clock.c                                        |    6 
 kernel/trace/bpf_trace.c                                         |    2 
 kernel/trace/trace_probe.c                                       |    2 
 net/bluetooth/af_bluetooth.c                                     |   22 
 net/bluetooth/bnep/core.c                                        |    3 
 net/bluetooth/iso.c                                              |   18 
 net/bluetooth/sco.c                                              |   18 
 net/core/filter.c                                                |    8 
 net/ipv4/devinet.c                                               |   35 -
 net/ipv4/inet_connection_sock.c                                  |   21 
 net/ipv4/xfrm4_policy.c                                          |   40 -
 net/ipv6/xfrm6_policy.c                                          |   31 -
 net/l2tp/l2tp_netlink.c                                          |    4 
 net/netfilter/xt_NFLOG.c                                         |    2 
 net/netfilter/xt_TRACE.c                                         |    1 
 net/netfilter/xt_mark.c                                          |    2 
 net/netlink/genetlink.c                                          |   28 -
 net/sched/act_api.c                                              |   23 
 net/sched/sch_generic.c                                          |   17 
 net/sched/sch_taprio.c                                           |    3 
 net/smc/smc_pnet.c                                               |    2 
 net/wireless/nl80211.c                                           |    8 
 net/xfrm/xfrm_device.c                                           |   11 
 net/xfrm/xfrm_policy.c                                           |   50 +
 net/xfrm/xfrm_user.c                                             |   10 
 security/selinux/selinuxfs.c                                     |   27 -
 sound/firewire/amdtp-stream.c                                    |    3 
 sound/pci/hda/patch_cs8409.c                                     |    5 
 sound/pci/hda/patch_realtek.c                                    |   48 +
 sound/soc/codecs/lpass-rx-macro.c                                |    2 
 sound/soc/fsl/fsl_sai.c                                          |    5 
 sound/soc/fsl/fsl_sai.h                                          |    1 
 sound/soc/qcom/lpass-cpu.c                                       |    2 
 sound/soc/qcom/sm8250.c                                          |    1 
 tools/testing/selftests/bpf/Makefile                             |    2 
 154 files changed, 1985 insertions(+), 1067 deletions(-)

Aleksa Sarai (1):
openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)

Aleksandr Mishin (2):
octeon_ep: Implement helper for iterating packets in Rx queue
octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx()

Alexander Zubkov (1):
RDMA/irdma: Fix misspelling of "accept*"

Alexey Klimov (2):
ASoC: codecs: lpass-rx-macro: add missing CDC_RX_BCL_VBAT_RF_PROC2 to default regs values
ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string

Andrea Parri (1):
riscv, bpf: Make BPF_CMPXCHG fully ordered

Andrey Shumilin (1):
ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()

Anumula Murali Mohan Reddy (1):
RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP

Armin Wolf (1):
platform/x86: dell-wmi: Ignore suspend notifications

Bart Van Assche (1):
RDMA/srpt: Make slab cache names unique

Bhargava Chenna Marreddy (1):
RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages

Christian Heusel (1):

      ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]

Claudiu Beznea (3):
irqchip/renesas-rzg2l: Align struct member names to tabs irqchip/renesas-rzg2l: Document structure members irqchip/renesas-rzg2l: Add support for suspend to RAM

Colin Ian King (1):
octeontx2-af: Fix potential integer overflows on integer shifts

Cosmin Ratiu (1):
net/mlx5: Unregister notifier on eswitch init failure

Crag Wang (1):
platform/x86: dell-sysman: add support for alienware products

Dan Carpenter (1):
ACPI: PRM: Clean up guid type in struct prm_handler_info

Dave Kleikamp (1):
jfs: Fix sanity check in dbMount

Dmitry Antipov (1):
net: sched: fix use-after-free in taprio_change()

Dmitry Baryshkov (1):
drm/msm/dpu: make sure phys resources are properly initialized

Douglas Anderson (2):
drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() drm/msm: Allocate memory for disp snapshot with kvzalloc()

Elson Roy Serrao (1):
usb: gadget: Add function wakeup support

Eric Dumazet (3):
netdevsim: use cond_resched() in nsim_dev_trap_report_work()
genetlink: hold RCU in genlmsg_mcast()
net: fix races in netdev_tx_sent_queue()/dev_watchdog()

Eyal Birger (2):
xfrm: extract dst lookup parameters into a struct
xfrm: respect ip protocols rules criteria when performing dst lookups

Fabrizio Castro (1):
irqchip/renesas-rzg2l: Fix missing put_device

Florian Kauer (1):
bpf: devmap: provide rxq after redirect

Florian Klink (1):
ARM: dts: bcm2837-rpi-cm3-io3: Fix HDMI hpd-gpio pin

Frank Li (1):
XHCI: Separate PORT and CAPs macros into dedicated file

Gal Pressman (1):
ravb: Remove setting of RX software timestamp

Gianfranco Trad (1):
udf: fix uninit-value use in udf_get_fileshortad

Greg Kroah-Hartman (1):

      Linux 6.1.115

Haiyang Zhang (1):
hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event

Hans de Goede (1):
drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA

Heiko Carstens (1):
s390: Initialize psw mask in perf_arch_fetch_caller_regs()

Heiner Kallweit (1):
r8169: avoid unsolicited interrupts

Huacai Chen (1):
LoongArch: Get correct cores_per_package for SMT systems

Ian Forbes (1):
drm/vmwgfx: Handle possible ENOMEM in vmw_stdu_connector_atomic_check

Ilpo Järvinen (2):
tty/serial: Make ->dcd_change()+uart_handle_dcd_change() status bool active
serial: Make uart_handle_cts_change() status param bool active

Jakub Boehm (1):
net: plip: fix break; causing plip to never transmit

Jakub Kicinski (2):
docs: net: reformat driver.rst from a list to sections
net: provide macros for commonly copied lockless queue stop/wake code

Javier Carrasco (2):
iio: frequency: {admv4420,adrf6780}: format Kconfig entries
iio: frequency: admv4420: fix missing select REMAP_SPI in Kconfig

Jessica Zhang (1):
drm/msm/dpu: don't always program merge_3d block

Jinjie Ruan (1):
posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()

Jiri Olsa (2):
bpf: Fix memory leak in bpf_core_apply bpf,perf: Fix perf_event_detach_bpf_prog error handling

Jiri Slaby (SUSE) (3):
xhci: dbgtty: remove kfifo_out() wrapper
xhci: dbgtty: use kfifo from tty_port struct
serial: protect uart_port_dtr_rts() in uart_shutdown() too

John Keeping (1):
usb: gadget: f_uac2: fix non-newline-terminated function name

Jonathan Marek (1):
drm/msm/dsi: fix 32-bit signed integer extension in pclk_rate calculation

Jordan Rome (1):
bpf: Fix iter/task tid filtering

José Relvas (1):
ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593

Kailang Yang (1):
ALSA: hda/realtek: Update default depop procedure

Kalesh AP (2):
RDMA/bnxt_re: Add a check for memory allocation RDMA/bnxt_re: Return more meaningful error

Kevin Groeneveld (1):
usb: gadget: f_uac2: fix return value for UAC2_ATTRIBUTE_STRING store

Koba Ko (1):
ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context

Konstantin Komarov (1):
fs/ntfs3: Add more attributes checks in mi_enum_attr()

Kuniyuki Iwashima (1):
tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().

Lee Jones (1):
usb: gadget: f_uac2: Replace snprintf() with the safer scnprintf() variant

Leo Yan (1):
tracing: Consider the NULL character when validating the event length

Li RongQing (1):
net/smc: Fix searching in list of known pnetids in smc_pnet_add_pnetid

Lin Ma (1):
net: wwan: fix global oob in wwan_rtnl_policy

Luiz Augusto von Dentz (2):
Bluetooth: SCO: Fix UAF on sco_sock_timeout
Bluetooth: ISO: Fix UAF on iso_sock_timeout

Marc Zyngier (1):
KVM: arm64: Don't eagerly teardown the vgic on init error

Marek Vasut (1):
serial: imx: Update mctrl old_status on RTSD interrupt

Marijn Suijten (1):
drm/msm/dpu: Wire up DSC mask for active CTL configuration

Mario Limonciello (2):
drm/amd: Guard against bad data for ATIF ACPI method drm/amd/display: Disable PSR-SU on Parade 08-01 TCON too

Mark Rutland (2):
arm64: probes: Fix uprobes for big-endian kernels
arm64: Force position-independent veneers

Martin Kletzander (1):
x86/resctrl: Avoid overflow in MB settings in bw_validate()

Mateusz Guzik (1):
exec: don't WARN for racy path_noexec check

Mathias Nyman (1):
xhci: dbc: honor usb transfer size boundaries.

Michel Alex (1):
net: phy: dp83822: Fix reset pin definitions

Mikhail Lobanov (1):
iio: accel: bma400: Fix uninitialized variable field_value in tap event handling.

Miquel Raynal (2):
ASoC: dt-bindings: davinci-mcasp: Fix interrupts property
ASoC: dt-bindings: davinci-mcasp: Fix interrupt properties

Murad Masimov (1):
ALSA: hda/cs8409: Fix possible NULL dereference

Naohiro Aota (1):
btrfs: zoned: fix zone unusable accounting for freed reserved extent

Niklas Schnelle (1):

      s390/pci: Handle PCI error codes other than 0x3a

Niklas Söderlund (1):
net: ravb: Only advertise Rx/Tx timestamps if hardware supports it

Oliver Neukum (2):
net: usb: usbnet: fix race in probe failure
net: usb: usbnet: fix name regression

Pablo Neira Ayuso (1):
netfilter: xtables: fix typo causing some targets not to load on IPv6

Paul Moore (1):
selinux: improve error checking in sel_write_load()

Paulo Alcantara (1):
smb: client: fix OOBs when building SMB2_IOCTL request

Peter Rashleigh (1):
net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x

Petr Vaganov (1):
xfrm: fix one more kernel-infoleak in algo dumping

Praveen Kumar Kannoju (1):
net/sched: adjust device watchdog timer to detect stopped queue at right time

Roger Quadros (1):
usb: dwc3: core: Fix system suspend on TI AM62 platforms

Ryusuke Konishi (1):
nilfs2: fix kernel bug due to missing clearing of buffer delay flag

Sabrina Dubroca (2):
macsec: don't increment counters for an unrelated SA
xfrm: validate new SA's prefixlen using SA family when sel.family is unset

Saravanan Vajravel (1):
RDMA/bnxt_re: Fix incorrect AVID type in WQE structure

Sean Christopherson (1):
KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory

Shay Drory (3):
net/mlx5: Remove redundant cmdif revision check net/mlx5: split mlx5_cmd_init() to probe and reload routines net/mlx5: Fix command bitmask initialization

Shengjiu Wang (1):
ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit

Shubham Panwar (1):
ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue

Srinivasan Shanmugam (1):
drm/amd/amdgpu: Fix double unlock in amdgpu_mes_add_ring

Thadeu Lima de Souza Cascardo (1):
usb: typec: altmode should keep reference to parent

Thomas Weißschuh (1):
LoongArch: Don't crash in stack_top() for tasks without vDSO

Tiezhu Yang (1):
LoongArch: Add support to clone a time namespace

Toke Høiland-Jørgensen (2):
bpf: Make sure internal and UAPI bpf_redirect flags don't overlap
bpf: fix kfunc btf caching for modules

Tony Ambardar (1):
selftests/bpf: Fix cross-compiling urandom_read

Vincent Guittot (1):
cpufreq/cppc: Move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf}()

Vladimir Oltean (1):
net/sched: act_api: deny mismatched skip_sw/skip_hw flags for actions created by classifiers

Wander Lairson Costa (1):
bpf: Use raw_spinlock_t in ringbuf

Wang Hai (6):
net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
net: systemport: fix potential memory leak in bcm_sysport_xmit()
scsi: target: core: Fix null-ptr-deref in target_alloc_device() net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
be2net: fix potential memory leak in be_xmit()

Xin Long (1):
ipv4: give an IPv4 dev to blackhole_netdev

Ye Bin (1):
Bluetooth: bnep: fix wild-memory-access in proto_unregister

Yu Kuai (1):
block, bfq: fix procress reference leakage for bfqq in merge chain

Yuan Can (1):
powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request()

Yue Haibing (1):
btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()

Zhao Mengmeng (1):
udf: refactor udf_current_aext() to handle error

Zichen Xie (1):
ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()

junhua huang (2):
arm64:uprobe fix the uprobe SWBP_INSN in big-endian arm64/uprobes: change the uprobe_opcode_t typedef to fix the sparse warning

liwei (1):
cpufreq: CPPC: fix perf_to_khz/khz_to_perf conversion exception