Skip to content

Commit df6c128

Browse files
committedJan 1, 2025·
Automatic merge of 'next' into merge (2025-01-01 14:09)
2 parents 0506f53 + 26bef35 commit df6c128

File tree

21 files changed

+115
-133
lines changed

21 files changed

+115
-133
lines changed
 

‎Documentation/ABI/testing/sysfs-class-cxl ‎Documentation/ABI/obsolete/sysfs-class-cxl

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
The cxl driver is no longer maintained, and will be removed from the kernel in
2+
the near future.
3+
14
Please note that attributes that are shared between devices are stored in
25
the directory pointed to by the symlink device/.
36
For example, the real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is

‎MAINTAINERS

+2-2
Original file line numberDiff line numberDiff line change
@@ -6228,8 +6228,8 @@ CXL (IBM Coherent Accelerator Processor Interface CAPI) DRIVER
62286228
M: Frederic Barrat <fbarrat@linux.ibm.com>
62296229
M: Andrew Donnellan <ajd@linux.ibm.com>
62306230
L: linuxppc-dev@lists.ozlabs.org
6231-
S: Supported
6232-
F: Documentation/ABI/testing/sysfs-class-cxl
6231+
S: Obsolete
6232+
F: Documentation/ABI/obsolete/sysfs-class-cxl
62336233
F: Documentation/arch/powerpc/cxl.rst
62346234
F: arch/powerpc/platforms/powernv/pci-cxl.c
62356235
F: drivers/misc/cxl/

‎arch/powerpc/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ config PPC
145145
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
146146
select ARCH_HAS_PHYS_TO_DMA
147147
select ARCH_HAS_PMEM_API
148+
select ARCH_HAS_PREEMPT_LAZY
148149
select ARCH_HAS_PTE_DEVMAP if PPC_BOOK3S_64
149150
select ARCH_HAS_PTE_SPECIAL
150151
select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64

‎arch/powerpc/include/asm/hugetlb.h

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515

1616
extern bool hugetlb_disabled;
1717

18+
static inline bool hugepages_supported(void)
19+
{
20+
if (hugetlb_disabled)
21+
return false;
22+
23+
return HPAGE_SHIFT != 0;
24+
}
25+
#define hugepages_supported hugepages_supported
26+
1827
void __init hugetlbpage_init_defaultsize(void);
1928

2029
int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,

‎arch/powerpc/include/asm/thread_info.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void arch_setup_new_exec(void);
103103
#define TIF_PATCH_PENDING 6 /* pending live patching update */
104104
#define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */
105105
#define TIF_SINGLESTEP 8 /* singlestepping active */
106+
#define TIF_NEED_RESCHED_LAZY 9 /* Scheduler driven lazy preemption */
106107
#define TIF_SECCOMP 10 /* secure computing */
107108
#define TIF_RESTOREALL 11 /* Restore all regs (implies NOERROR) */
108109
#define TIF_NOERROR 12 /* Force successful syscall return */
@@ -122,6 +123,7 @@ void arch_setup_new_exec(void);
122123
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
123124
#define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
124125
#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
126+
#define _TIF_NEED_RESCHED_LAZY (1<<TIF_NEED_RESCHED_LAZY)
125127
#define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL)
126128
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
127129
#define _TIF_32BIT (1<<TIF_32BIT)
@@ -142,9 +144,10 @@ void arch_setup_new_exec(void);
142144
_TIF_SYSCALL_EMU)
143145

144146
#define _TIF_USER_WORK_MASK (_TIF_SIGPENDING | _TIF_NEED_RESCHED | \
145-
_TIF_NOTIFY_RESUME | _TIF_UPROBE | \
146-
_TIF_RESTORE_TM | _TIF_PATCH_PENDING | \
147-
_TIF_NOTIFY_SIGNAL)
147+
_TIF_NEED_RESCHED_LAZY | _TIF_NOTIFY_RESUME | \
148+
_TIF_UPROBE | _TIF_RESTORE_TM | \
149+
_TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL)
150+
148151
#define _TIF_PERSYSCALL_MASK (_TIF_RESTOREALL|_TIF_NOERROR)
149152

150153
/* Bits in local_flags */

‎arch/powerpc/kernel/interrupt.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ interrupt_exit_user_prepare_main(unsigned long ret, struct pt_regs *regs)
185185
ti_flags = read_thread_flags();
186186
while (unlikely(ti_flags & (_TIF_USER_WORK_MASK & ~_TIF_RESTORE_TM))) {
187187
local_irq_enable();
188-
if (ti_flags & _TIF_NEED_RESCHED) {
188+
if (ti_flags & (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)) {
189189
schedule();
190190
} else {
191191
/*
@@ -396,7 +396,7 @@ notrace unsigned long interrupt_exit_kernel_prepare(struct pt_regs *regs)
396396
/* Returning to a kernel context with local irqs enabled. */
397397
WARN_ON_ONCE(!(regs->msr & MSR_EE));
398398
again:
399-
if (IS_ENABLED(CONFIG_PREEMPT)) {
399+
if (IS_ENABLED(CONFIG_PREEMPTION)) {
400400
/* Return to preemptible kernel context */
401401
if (unlikely(read_thread_flags() & _TIF_NEED_RESCHED)) {
402402
if (preempt_count() == 0)

‎arch/powerpc/kernel/process.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1960,8 +1960,8 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
19601960
* address of _start and the second entry is the TOC
19611961
* value we need to use.
19621962
*/
1963-
__get_user(entry, (unsigned long __user *)start);
1964-
__get_user(toc, (unsigned long __user *)start+1);
1963+
get_user(entry, (unsigned long __user *)start);
1964+
get_user(toc, (unsigned long __user *)start+1);
19651965

19661966
/* Check whether the e_entry function descriptor entries
19671967
* need to be relocated before we can use them.

‎arch/powerpc/kernel/setup-common.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ static int __init check_cache_coherency(void)
834834
if (devtree_coherency != KERNEL_COHERENCY) {
835835
printk(KERN_ERR
836836
"kernel coherency:%s != device tree_coherency:%s\n",
837-
KERNEL_COHERENCY ? "on" : "off",
838-
devtree_coherency ? "on" : "off");
837+
str_on_off(KERNEL_COHERENCY),
838+
str_on_off(devtree_coherency));
839839
BUG();
840840
}
841841

‎arch/powerpc/kernel/vdso32_wrapper.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <linux/linkage.h>
33
#include <asm/page.h>
44

5-
__PAGE_ALIGNED_DATA
5+
.section ".data..ro_after_init", "aw"
66

77
.globl vdso32_start, vdso32_end
88
.balign PAGE_SIZE

‎arch/powerpc/kernel/vdso64_wrapper.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <linux/linkage.h>
33
#include <asm/page.h>
44

5-
__PAGE_ALIGNED_DATA
5+
.section ".data..ro_after_init", "aw"
66

77
.globl vdso64_start, vdso64_end
88
.balign PAGE_SIZE

‎arch/powerpc/lib/vmx-helper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int exit_vmx_usercopy(void)
4545
* set and we are preemptible. The hack here is to schedule a
4646
* decrementer to fire here and reschedule for us if necessary.
4747
*/
48-
if (IS_ENABLED(CONFIG_PREEMPT) && need_resched())
48+
if (IS_ENABLED(CONFIG_PREEMPTION) && need_resched())
4949
set_dec(1);
5050
return 0;
5151
}

0 commit comments

Comments
 (0)
Please sign in to comment.