Skip to content

Commit b54a4bb

Browse files
committed
Merge tag 'v6.12.8' into 6.12-main
This is the 6.12.8 stable release # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEZH8oZUiU471FcZm+ONu9yGCSaT4FAmd2XacACgkQONu9yGCS # aT5Q4g//Ruk20+FX9w+sV5wkw8O05Ss0ybL59F0SoGsbWMK8hdVVJFf10z57WNVX # 0XWC6/WORt/yA0oy1Wjuf3bkZnB+WJk2uY9TkS00GCmYctlL8zJCev9IyyWm2HxB # 6tjrVtZPdTMRM7xaiLl9LdSydGlTNOM9PpBIpYaO3+81lUIy1evDbzkU6+cs99ab # Iv32yeCfD5x2Wknqc72LKk3fwm4VzxO5RX+IL1IU82a0lSAeVDnpzu6uU5ZNLRYk # /eqCuuYPlVtgCwbLmP5nK73H+mee5ErY7b1ZgMNtIf5mNj7C2lTmCiInuC1ZtWv4 # 1pHBu9ctzWYzF3jDibRoDOd2zVDfNdkyyYWbB3/cOb44nKoCn1QXSwG95IsCks2R # bEZsywYJvrKf+DKzilC76E5eS3z1rTXjUpic7B0aIpq2Fbszi/7DgPBOvuEMn9qG # AyuKtlSWmVtpP9uE7ZfwK0pDTxkbnujUWdjpvtTv6bEG/YhEEVneWa8zu/MknQ+w # RC9L2j6Dbi5bhsa+6NK2nT/y0xWOrRMvw5ZNjbpVtzRXXtqMCMKCQqhJzmFdsfo3 # 4auXVRfeYJiwcSk/4SVTEHB4HcfZAmd5j5nvtq3et6m9yZczKXksQ+IjA6UvnyMW # XFv+qv167USV621JvWGZYopMvpIT+p90ZeobCBUhfJFNLAU8wsg= # =azxS # -----END PGP SIGNATURE----- # gpg: Signature made Thu Jan 2 10:34:31 2025 CET # gpg: using RSA key 647F28654894E3BD457199BE38DBBDC86092693E # gpg: Can't check signature: No public key
2 parents 078d974 + 77f85cc commit b54a4bb

File tree

116 files changed

+1166
-545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1166
-545
lines changed

Documentation/arch/arm64/silicon-errata.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,9 @@ stable kernels.
255255
+----------------+-----------------+-----------------+-----------------------------+
256256
| Hisilicon | Hip08 SMMU PMCG | #162001800 | N/A |
257257
+----------------+-----------------+-----------------+-----------------------------+
258-
| Hisilicon | Hip{08,09,10,10C| #162001900 | N/A |
259-
| | ,11} SMMU PMCG | | |
258+
| Hisilicon | Hip{08,09,09A,10| #162001900 | N/A |
259+
| | ,10C,11} | | |
260+
| | SMMU PMCG | | |
260261
+----------------+-----------------+-----------------+-----------------------------+
261262
| Hisilicon | Hip09 | #162100801 | HISILICON_ERRATUM_162100801 |
262263
+----------------+-----------------+-----------------+-----------------------------+

Documentation/devicetree/bindings/sound/realtek,rt5645.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ properties:
5151
description: Power supply for AVDD, providing 1.8V.
5252

5353
cpvdd-supply:
54-
description: Power supply for CPVDD, providing 3.5V.
54+
description: Power supply for CPVDD, providing 1.8V.
5555

5656
hp-detect-gpios:
5757
description:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 12
4-
SUBLEVEL = 7
4+
SUBLEVEL = 8
55
EXTRAVERSION =
66
NAME = Baby Opossum Posse
77

arch/arm64/boot/dts/broadcom/bcm2712.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
l2_cache_l0: l2-cache-l0 {
6868
compatible = "cache";
6969
cache-size = <0x80000>;
70-
cache-line-size = <128>;
70+
cache-line-size = <64>;
7171
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
7272
cache-level = <2>;
7373
cache-unified;
@@ -91,7 +91,7 @@
9191
l2_cache_l1: l2-cache-l1 {
9292
compatible = "cache";
9393
cache-size = <0x80000>;
94-
cache-line-size = <128>;
94+
cache-line-size = <64>;
9595
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
9696
cache-level = <2>;
9797
cache-unified;
@@ -115,7 +115,7 @@
115115
l2_cache_l2: l2-cache-l2 {
116116
compatible = "cache";
117117
cache-size = <0x80000>;
118-
cache-line-size = <128>;
118+
cache-line-size = <64>;
119119
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
120120
cache-level = <2>;
121121
cache-unified;
@@ -139,7 +139,7 @@
139139
l2_cache_l3: l2-cache-l3 {
140140
compatible = "cache";
141141
cache-size = <0x80000>;
142-
cache-line-size = <128>;
142+
cache-line-size = <64>;
143143
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
144144
cache-level = <2>;
145145
cache-unified;

arch/loongarch/include/asm/inst.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,17 @@ DEF_EMIT_REG2I16_FORMAT(blt, blt_op)
683683
DEF_EMIT_REG2I16_FORMAT(bge, bge_op)
684684
DEF_EMIT_REG2I16_FORMAT(bltu, bltu_op)
685685
DEF_EMIT_REG2I16_FORMAT(bgeu, bgeu_op)
686-
DEF_EMIT_REG2I16_FORMAT(jirl, jirl_op)
686+
687+
static inline void emit_jirl(union loongarch_instruction *insn,
688+
enum loongarch_gpr rd,
689+
enum loongarch_gpr rj,
690+
int offset)
691+
{
692+
insn->reg2i16_format.opcode = jirl_op;
693+
insn->reg2i16_format.immediate = offset;
694+
insn->reg2i16_format.rd = rd;
695+
insn->reg2i16_format.rj = rj;
696+
}
687697

688698
#define DEF_EMIT_REG2BSTRD_FORMAT(NAME, OP) \
689699
static inline void emit_##NAME(union loongarch_instruction *insn, \

arch/loongarch/kernel/efi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void __init init_screen_info(void)
9595
memset(si, 0, sizeof(*si));
9696
early_memunmap(si, sizeof(*si));
9797

98-
memblock_reserve(screen_info.lfb_base, screen_info.lfb_size);
98+
memblock_reserve(__screen_info_lfb_base(&screen_info), screen_info.lfb_size);
9999
}
100100

101101
void __init efi_init(void)

arch/loongarch/kernel/inst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ u32 larch_insn_gen_jirl(enum loongarch_gpr rd, enum loongarch_gpr rj, int imm)
332332
return INSN_BREAK;
333333
}
334334

335-
emit_jirl(&insn, rj, rd, imm >> 2);
335+
emit_jirl(&insn, rd, rj, imm >> 2);
336336

337337
return insn.word;
338338
}

arch/loongarch/net/bpf_jit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ static void __build_epilogue(struct jit_ctx *ctx, bool is_tail_call)
181181
/* Set return value */
182182
emit_insn(ctx, addiw, LOONGARCH_GPR_A0, regmap[BPF_REG_0], 0);
183183
/* Return to the caller */
184-
emit_insn(ctx, jirl, LOONGARCH_GPR_RA, LOONGARCH_GPR_ZERO, 0);
184+
emit_insn(ctx, jirl, LOONGARCH_GPR_ZERO, LOONGARCH_GPR_RA, 0);
185185
} else {
186186
/*
187187
* Call the next bpf prog and skip the first instruction
188188
* of TCC initialization.
189189
*/
190-
emit_insn(ctx, jirl, LOONGARCH_GPR_T3, LOONGARCH_GPR_ZERO, 1);
190+
emit_insn(ctx, jirl, LOONGARCH_GPR_ZERO, LOONGARCH_GPR_T3, 1);
191191
}
192192
}
193193

@@ -904,7 +904,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool ext
904904
return ret;
905905

906906
move_addr(ctx, t1, func_addr);
907-
emit_insn(ctx, jirl, t1, LOONGARCH_GPR_RA, 0);
907+
emit_insn(ctx, jirl, LOONGARCH_GPR_RA, t1, 0);
908908
move_reg(ctx, regmap[BPF_REG_0], LOONGARCH_GPR_A0);
909909
break;
910910

arch/powerpc/platforms/book3s/vas-api.c

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,43 @@ static vm_fault_t vas_mmap_fault(struct vm_fault *vmf)
464464
return VM_FAULT_SIGBUS;
465465
}
466466

467+
/*
468+
* During mmap() paste address, mapping VMA is saved in VAS window
469+
* struct which is used to unmap during migration if the window is
470+
* still open. But the user space can remove this mapping with
471+
* munmap() before closing the window and the VMA address will
472+
* be invalid. Set VAS window VMA to NULL in this function which
473+
* is called before VMA free.
474+
*/
475+
static void vas_mmap_close(struct vm_area_struct *vma)
476+
{
477+
struct file *fp = vma->vm_file;
478+
struct coproc_instance *cp_inst = fp->private_data;
479+
struct vas_window *txwin;
480+
481+
/* Should not happen */
482+
if (!cp_inst || !cp_inst->txwin) {
483+
pr_err("No attached VAS window for the paste address mmap\n");
484+
return;
485+
}
486+
487+
txwin = cp_inst->txwin;
488+
/*
489+
* task_ref.vma is set in coproc_mmap() during mmap paste
490+
* address. So it has to be the same VMA that is getting freed.
491+
*/
492+
if (WARN_ON(txwin->task_ref.vma != vma)) {
493+
pr_err("Invalid paste address mmaping\n");
494+
return;
495+
}
496+
497+
mutex_lock(&txwin->task_ref.mmap_mutex);
498+
txwin->task_ref.vma = NULL;
499+
mutex_unlock(&txwin->task_ref.mmap_mutex);
500+
}
501+
467502
static const struct vm_operations_struct vas_vm_ops = {
503+
.close = vas_mmap_close,
468504
.fault = vas_mmap_fault,
469505
};
470506

arch/x86/events/intel/core.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,16 @@ static struct event_constraint intel_lnc_event_constraints[] = {
429429
EVENT_CONSTRAINT_END
430430
};
431431

432+
static struct extra_reg intel_lnc_extra_regs[] __read_mostly = {
433+
INTEL_UEVENT_EXTRA_REG(0x012a, MSR_OFFCORE_RSP_0, 0xfffffffffffull, RSP_0),
434+
INTEL_UEVENT_EXTRA_REG(0x012b, MSR_OFFCORE_RSP_1, 0xfffffffffffull, RSP_1),
435+
INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd),
436+
INTEL_UEVENT_EXTRA_REG(0x02c6, MSR_PEBS_FRONTEND, 0x9, FE),
437+
INTEL_UEVENT_EXTRA_REG(0x03c6, MSR_PEBS_FRONTEND, 0x7fff1f, FE),
438+
INTEL_UEVENT_EXTRA_REG(0x40ad, MSR_PEBS_FRONTEND, 0xf, FE),
439+
INTEL_UEVENT_EXTRA_REG(0x04c2, MSR_PEBS_FRONTEND, 0x8, FE),
440+
EVENT_EXTRA_END
441+
};
432442

433443
EVENT_ATTR_STR(mem-loads, mem_ld_nhm, "event=0x0b,umask=0x10,ldlat=3");
434444
EVENT_ATTR_STR(mem-loads, mem_ld_snb, "event=0xcd,umask=0x1,ldlat=3");
@@ -6344,7 +6354,7 @@ static __always_inline void intel_pmu_init_lnc(struct pmu *pmu)
63446354
intel_pmu_init_glc(pmu);
63456355
hybrid(pmu, event_constraints) = intel_lnc_event_constraints;
63466356
hybrid(pmu, pebs_constraints) = intel_lnc_pebs_event_constraints;
6347-
hybrid(pmu, extra_regs) = intel_rwc_extra_regs;
6357+
hybrid(pmu, extra_regs) = intel_lnc_extra_regs;
63486358
}
63496359

63506360
static __always_inline void intel_pmu_init_skt(struct pmu *pmu)

0 commit comments

Comments
 (0)