Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'riscv-for-linus-5.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux into master

Pull RISC-V fixes from Palmer Dabbelt:
"Two fixes:

- 16KiB kernel stacks on rv64, which fixes a lot of crashes.

- Rolling an mmiowb() into the scheduler, which when combined with
Will's fix to the mmiowb()-on-spinlock should fix the PREEMPT
issues we've been seeing"

* tag 'riscv-for-linus-5.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw
riscv: use 16KB kernel stack on 64-bit

+13 -1
+9 -1
arch/riscv/include/asm/barrier.h
··· 58 58 * The AQ/RL pair provides a RCpc critical section, but there's not really any 59 59 * way we can take advantage of that here because the ordering is only enforced 60 60 * on that one lock. Thus, we're just doing a full fence. 61 + * 62 + * Since we allow writeX to be called from preemptive regions we need at least 63 + * an "o" in the predecessor set to ensure device writes are visible before the 64 + * task is marked as available for scheduling on a new hart. While I don't see 65 + * any concrete reason we need a full IO fence, it seems safer to just upgrade 66 + * this in order to avoid any IO crossing a scheduling boundary. In both 67 + * instances the scheduler pairs this with an mb(), so nothing is necessary on 68 + * the new hart. 61 69 */ 62 - #define smp_mb__after_spinlock() RISCV_FENCE(rw,rw) 70 + #define smp_mb__after_spinlock() RISCV_FENCE(iorw,iorw) 63 71 64 72 #include <asm-generic/barrier.h> 65 73
+4
arch/riscv/include/asm/thread_info.h
··· 12 12 #include <linux/const.h> 13 13 14 14 /* thread information allocation */ 15 + #ifdef CONFIG_64BIT 16 + #define THREAD_SIZE_ORDER (2) 17 + #else 15 18 #define THREAD_SIZE_ORDER (1) 19 + #endif 16 20 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) 17 21 18 22 #ifndef __ASSEMBLY__