Skip to content

Commit 2726b01

Browse files
committed
Merge branch 'dt/header-fixes-for-next' into for-next
2 parents a5b1c7c + 5287477 commit 2726b01

File tree

259 files changed

+4119
-3402
lines changed

Some content is hidden

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

259 files changed

+4119
-3402
lines changed

Documentation/arch/x86/boot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Protocol 2.14 BURNT BY INCORRECT COMMIT
7777
Protocol 2.15 (Kernel 5.5) Added the kernel_info and kernel_info.setup_type_max.
7878
============= ============================================================
7979

80-
.. note::
80+
.. note::
8181
The protocol version number should be changed only if the setup header
8282
is changed. There is no need to update the version number if boot_params
8383
or kernel_info are changed. Additionally, it is recommended to use

Documentation/devicetree/bindings/net/ethernet-controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ allOf:
275275
properties:
276276
rx-internal-delay-ps:
277277
description:
278-
RGMII Receive Clock Delay defined in pico seconds.This is used for
278+
RGMII Receive Clock Delay defined in pico seconds. This is used for
279279
controllers that have configurable RX internal delays. If this
280280
property is present then the MAC applies the RX delay.
281281
tx-internal-delay-ps:
282282
description:
283-
RGMII Transmit Clock Delay defined in pico seconds.This is used for
283+
RGMII Transmit Clock Delay defined in pico seconds. This is used for
284284
controllers that have configurable TX internal delays. If this
285285
property is present then the MAC applies the TX delay.
286286

Documentation/devicetree/bindings/ufs/qcom,ufs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ properties:
3636
- qcom,sm8350-ufshc
3737
- qcom,sm8450-ufshc
3838
- qcom,sm8550-ufshc
39+
- qcom,sm8650-ufshc
3940
- const: qcom,ufshc
4041
- const: jedec,ufs-2.0
4142

@@ -122,6 +123,7 @@ allOf:
122123
- qcom,sm8350-ufshc
123124
- qcom,sm8450-ufshc
124125
- qcom,sm8550-ufshc
126+
- qcom,sm8650-ufshc
125127
then:
126128
properties:
127129
clocks:

MAINTAINERS

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8950,7 +8950,6 @@ S: Maintained
89508950
F: scripts/get_maintainer.pl
89518951

89528952
GFS2 FILE SYSTEM
8953-
M: Bob Peterson <[email protected]>
89548953
M: Andreas Gruenbacher <[email protected]>
89558954
89568955
S: Supported
@@ -21769,7 +21768,9 @@ F: Documentation/devicetree/bindings/counter/ti-eqep.yaml
2176921768
F: drivers/counter/ti-eqep.c
2177021769

2177121770
TI ETHERNET SWITCH DRIVER (CPSW)
21772-
R: Grygorii Strashko <[email protected]>
21771+
R: Siddharth Vadapalli <[email protected]>
21772+
R: Ravi Gunasekaran <[email protected]>
21773+
R: Roger Quadros <[email protected]>
2177321774
2177421775
2177521776
S: Maintained
@@ -21793,6 +21794,15 @@ F: Documentation/devicetree/bindings/media/i2c/ti,ds90*
2179321794
F: drivers/media/i2c/ds90*
2179421795
F: include/media/i2c/ds90*
2179521796

21797+
TI ICSSG ETHERNET DRIVER (ICSSG)
21798+
R: MD Danish Anwar <[email protected]>
21799+
R: Roger Quadros <[email protected]>
21800+
L: [email protected] (moderated for non-subscribers)
21801+
21802+
S: Maintained
21803+
F: Documentation/devicetree/bindings/net/ti,icss*.yaml
21804+
F: drivers/net/ethernet/ti/icssg/*
21805+
2179621806
TI J721E CSI2RX DRIVER
2179721807
M: Jai Luthra <[email protected]>
2179821808
@@ -23692,6 +23702,20 @@ F: arch/x86/kernel/dumpstack.c
2369223702
F: arch/x86/kernel/stacktrace.c
2369323703
F: arch/x86/kernel/unwind_*.c
2369423704

23705+
X86 TRUST DOMAIN EXTENSIONS (TDX)
23706+
M: Kirill A. Shutemov <[email protected]>
23707+
R: Dave Hansen <[email protected]>
23708+
23709+
23710+
S: Supported
23711+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/tdx
23712+
F: arch/x86/boot/compressed/tdx*
23713+
F: arch/x86/coco/tdx/
23714+
F: arch/x86/include/asm/shared/tdx.h
23715+
F: arch/x86/include/asm/tdx.h
23716+
F: arch/x86/virt/vmx/tdx/
23717+
F: drivers/virt/coco/tdx-guest
23718+
2369523719
X86 VDSO
2369623720
M: Andy Lutomirski <[email protected]>
2369723721
@@ -23872,8 +23896,7 @@ T: git git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git
2387223896
P: Documentation/filesystems/xfs-maintainer-entry-profile.rst
2387323897
F: Documentation/ABI/testing/sysfs-fs-xfs
2387423898
F: Documentation/admin-guide/xfs.rst
23875-
F: Documentation/filesystems/xfs-delayed-logging-design.rst
23876-
F: Documentation/filesystems/xfs-self-describing-metadata.rst
23899+
F: Documentation/filesystems/xfs-*
2387723900
F: fs/xfs/
2387823901
F: include/uapi/linux/dqblk_xfs.h
2387923902
F: include/uapi/linux/fsmap.h

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 6
33
PATCHLEVEL = 7
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc1
5+
EXTRAVERSION = -rc2
66
NAME = Hurr durr I'ma ninja sloth
77

88
# *DOCUMENTATION*

arch/parisc/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ config ARCH_MMAP_RND_COMPAT_BITS_MIN
140140
default 8
141141

142142
config ARCH_MMAP_RND_BITS_MAX
143-
default 24 if 64BIT
144-
default 17
143+
default 18 if 64BIT
144+
default 13
145145

146146
config ARCH_MMAP_RND_COMPAT_BITS_MAX
147-
default 17
147+
default 13
148148

149149
# unless you want to implement ACPI on PA-RISC ... ;-)
150150
config PM

arch/parisc/include/asm/elf.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,7 @@ struct pt_regs; /* forward declaration... */
349349

350350
#define ELF_HWCAP 0
351351

352-
/* Masks for stack and mmap randomization */
353-
#define BRK_RND_MASK (is_32bit_task() ? 0x07ffUL : 0x3ffffUL)
354-
#define MMAP_RND_MASK (is_32bit_task() ? 0x1fffUL : 0x3ffffUL)
355-
#define STACK_RND_MASK MMAP_RND_MASK
356-
357-
struct mm_struct;
358-
extern unsigned long arch_randomize_brk(struct mm_struct *);
359-
#define arch_randomize_brk arch_randomize_brk
360-
352+
#define STACK_RND_MASK 0x7ff /* 8MB of VA */
361353

362354
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
363355
struct linux_binprm;

arch/parisc/include/asm/processor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848
#ifndef __ASSEMBLY__
4949

50+
struct rlimit;
51+
unsigned long mmap_upper_limit(struct rlimit *rlim_stack);
5052
unsigned long calc_max_stack_size(unsigned long stack_max);
5153

5254
/*

arch/parisc/kernel/processor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ show_cpuinfo (struct seq_file *m, void *v)
383383
char cpu_name[60], *p;
384384

385385
/* strip PA path from CPU name to not confuse lscpu */
386-
strlcpy(cpu_name, per_cpu(cpu_data, 0).dev->name, sizeof(cpu_name));
386+
strscpy(cpu_name, per_cpu(cpu_data, 0).dev->name, sizeof(cpu_name));
387387
p = strrchr(cpu_name, '[');
388388
if (p)
389389
*(--p) = 0;

arch/parisc/kernel/sys_parisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ unsigned long calc_max_stack_size(unsigned long stack_max)
7777
* indicating that "current" should be used instead of a passed-in
7878
* value from the exec bprm as done with arch_pick_mmap_layout().
7979
*/
80-
static unsigned long mmap_upper_limit(struct rlimit *rlim_stack)
80+
unsigned long mmap_upper_limit(struct rlimit *rlim_stack)
8181
{
8282
unsigned long stack_base;
8383

arch/sparc/kernel/pci_sabre.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
#include <linux/export.h>
1414
#include <linux/slab.h>
1515
#include <linux/interrupt.h>
16-
#include <linux/of_device.h>
16+
#include <linux/of.h>
17+
#include <linux/of_platform.h>
18+
#include <linux/platform_device.h>
19+
#include <linux/property.h>
1720

1821
#include <asm/apb.h>
1922
#include <asm/iommu.h>
@@ -456,7 +459,6 @@ static void sabre_pbm_init(struct pci_pbm_info *pbm,
456459
static const struct of_device_id sabre_match[];
457460
static int sabre_probe(struct platform_device *op)
458461
{
459-
const struct of_device_id *match;
460462
const struct linux_prom64_registers *pr_regs;
461463
struct device_node *dp = op->dev.of_node;
462464
struct pci_pbm_info *pbm;
@@ -466,8 +468,7 @@ static int sabre_probe(struct platform_device *op)
466468
const u32 *vdma;
467469
u64 clear_irq;
468470

469-
match = of_match_device(sabre_match, &op->dev);
470-
hummingbird_p = match && (match->data != NULL);
471+
hummingbird_p = (uintptr_t)device_get_match_data(&op->dev);
471472
if (!hummingbird_p) {
472473
struct device_node *cpu_dp;
473474

arch/sparc/kernel/pci_schizo.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
#include <linux/slab.h>
1212
#include <linux/export.h>
1313
#include <linux/interrupt.h>
14-
#include <linux/of_device.h>
14+
#include <linux/of.h>
15+
#include <linux/of_platform.h>
16+
#include <linux/platform_device.h>
17+
#include <linux/property.h>
1518
#include <linux/numa.h>
1619

1720
#include <asm/iommu.h>
@@ -1459,15 +1462,13 @@ static int __schizo_init(struct platform_device *op, unsigned long chip_type)
14591462
return err;
14601463
}
14611464

1462-
static const struct of_device_id schizo_match[];
14631465
static int schizo_probe(struct platform_device *op)
14641466
{
1465-
const struct of_device_id *match;
1467+
unsigned long chip_type = (unsigned long)device_get_match_data(&op->dev);
14661468

1467-
match = of_match_device(schizo_match, &op->dev);
1468-
if (!match)
1469+
if (!chip_type)
14691470
return -EINVAL;
1470-
return __schizo_init(op, (unsigned long)match->data);
1471+
return __schizo_init(op, chip_type);
14711472
}
14721473

14731474
/* The ordering of this table is very important. Some Tomatillo

arch/x86/include/asm/acpi.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#include <asm/x86_init.h>
1717
#include <asm/cpufeature.h>
1818
#include <asm/irq_vectors.h>
19+
#include <asm/xen/hypervisor.h>
20+
21+
#include <xen/xen.h>
1922

2023
#ifdef CONFIG_ACPI_APEI
2124
# include <asm/pgtable_types.h>
@@ -127,6 +130,17 @@ static inline void arch_acpi_set_proc_cap_bits(u32 *cap)
127130
if (!cpu_has(c, X86_FEATURE_MWAIT) ||
128131
boot_option_idle_override == IDLE_NOMWAIT)
129132
*cap &= ~(ACPI_PROC_CAP_C_C1_FFH | ACPI_PROC_CAP_C_C2C3_FFH);
133+
134+
if (xen_initial_domain()) {
135+
/*
136+
* When Linux is running as Xen dom0, the hypervisor is the
137+
* entity in charge of the processor power management, and so
138+
* Xen needs to check the OS capabilities reported in the
139+
* processor capabilities buffer matches what the hypervisor
140+
* driver supports.
141+
*/
142+
xen_sanitize_proc_cap_bits(cap);
143+
}
130144
}
131145

132146
static inline bool acpi_has_cpu_in_madt(void)

arch/x86/include/asm/xen/hypervisor.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,13 @@ static inline void leave_lazy(enum xen_lazy_mode mode)
100100

101101
enum xen_lazy_mode xen_get_lazy_mode(void);
102102

103+
#if defined(CONFIG_XEN_DOM0) && defined(CONFIG_ACPI)
104+
void xen_sanitize_proc_cap_bits(uint32_t *buf);
105+
#else
106+
static inline void xen_sanitize_proc_cap_bits(uint32_t *buf)
107+
{
108+
BUG();
109+
}
110+
#endif
111+
103112
#endif /* _ASM_X86_XEN_HYPERVISOR_H */

arch/x86/kernel/acpi/boot.c

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int acpi_fix_pin2_polarity __initdata;
6363

6464
#ifdef CONFIG_X86_LOCAL_APIC
6565
static u64 acpi_lapic_addr __initdata = APIC_DEFAULT_PHYS_BASE;
66+
static bool has_lapic_cpus __initdata;
6667
static bool acpi_support_online_capable;
6768
#endif
6869

@@ -232,6 +233,14 @@ acpi_parse_x2apic(union acpi_subtable_headers *header, const unsigned long end)
232233
if (!acpi_is_processor_usable(processor->lapic_flags))
233234
return 0;
234235

236+
/*
237+
* According to https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#processor-local-x2apic-structure
238+
* when MADT provides both valid LAPIC and x2APIC entries, the APIC ID
239+
* in x2APIC must be equal or greater than 0xff.
240+
*/
241+
if (has_lapic_cpus && apic_id < 0xff)
242+
return 0;
243+
235244
/*
236245
* We need to register disabled CPU as well to permit
237246
* counting disabled CPUs. This allows us to size
@@ -1114,10 +1123,7 @@ static int __init early_acpi_parse_madt_lapic_addr_ovr(void)
11141123

11151124
static int __init acpi_parse_madt_lapic_entries(void)
11161125
{
1117-
int count;
1118-
int x2count = 0;
1119-
int ret;
1120-
struct acpi_subtable_proc madt_proc[2];
1126+
int count, x2count = 0;
11211127

11221128
if (!boot_cpu_has(X86_FEATURE_APIC))
11231129
return -ENODEV;
@@ -1126,21 +1132,11 @@ static int __init acpi_parse_madt_lapic_entries(void)
11261132
acpi_parse_sapic, MAX_LOCAL_APIC);
11271133

11281134
if (!count) {
1129-
memset(madt_proc, 0, sizeof(madt_proc));
1130-
madt_proc[0].id = ACPI_MADT_TYPE_LOCAL_APIC;
1131-
madt_proc[0].handler = acpi_parse_lapic;
1132-
madt_proc[1].id = ACPI_MADT_TYPE_LOCAL_X2APIC;
1133-
madt_proc[1].handler = acpi_parse_x2apic;
1134-
ret = acpi_table_parse_entries_array(ACPI_SIG_MADT,
1135-
sizeof(struct acpi_table_madt),
1136-
madt_proc, ARRAY_SIZE(madt_proc), MAX_LOCAL_APIC);
1137-
if (ret < 0) {
1138-
pr_err("Error parsing LAPIC/X2APIC entries\n");
1139-
return ret;
1140-
}
1141-
1142-
count = madt_proc[0].count;
1143-
x2count = madt_proc[1].count;
1135+
count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC,
1136+
acpi_parse_lapic, MAX_LOCAL_APIC);
1137+
has_lapic_cpus = count > 0;
1138+
x2count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_X2APIC,
1139+
acpi_parse_x2apic, MAX_LOCAL_APIC);
11441140
}
11451141
if (!count && !x2count) {
11461142
pr_err("No LAPIC entries present\n");

arch/x86/kernel/signal_64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ int x64_setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs)
175175
frame = get_sigframe(ksig, regs, sizeof(struct rt_sigframe), &fp);
176176
uc_flags = frame_uc_flags(regs);
177177

178-
if (setup_signal_shadow_stack(ksig))
179-
return -EFAULT;
180-
181178
if (!user_access_begin(frame, sizeof(*frame)))
182179
return -EFAULT;
183180

@@ -198,6 +195,9 @@ int x64_setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs)
198195
return -EFAULT;
199196
}
200197

198+
if (setup_signal_shadow_stack(ksig))
199+
return -EFAULT;
200+
201201
/* Set up registers for signal handler */
202202
regs->di = ksig->sig;
203203
/* In case the signal handler was declared without prototypes */

0 commit comments

Comments
 (0)