Re: [PATCH v4 7/9] kentry: Add debugging checks for proper kentry API usage

2021-03-19 Thread Thomas Gleixner
On Fri, Mar 19 2021 at 17:17, Thomas Gleixner wrote: > On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: >> + >> +#define DEBUG_ENTRY_WARN_ONCE(condition, format...) do {} while (0) > > So we have a stub for !DEBUG > >> +static __always_inline void kentr

Re: [PATCH v4 5/9] kentry: Remove enter_from/exit_to_user_mode()

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > -/** > - * exit_to_user_mode - Fixup state when exiting to user mode > - * > - * Syscall/interrupt exit enables interrupts, but the kernel state is > - * interrupts disabled when this is invoked. Also tell RCU about it. > - * > - * 1) Trace

Re: [PATCH v4 4/9] kentry: Simplify the common syscall API

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > @@ -119,31 +119,12 @@ static inline __must_check int > arch_syscall_enter_tracehook(struct pt_regs *regs > void enter_from_user_mode(struct pt_regs *regs); > > /** > + * kentry_syscall_begin - Prepare to invoke a syscall handler > *

Re: [PATCH v4 7/9] kentry: Add debugging checks for proper kentry API usage

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > + > +#define DEBUG_ENTRY_WARN_ONCE(condition, format...) do {} while (0) So we have a stub for !DEBUG > +static __always_inline void kentry_cpu_depth_add(unsigned int n) {} > +static void kentry_cpu_depth_check(unsigned int n) {} > +static

Re: [PATCH v4 4/9] kentry: Simplify the common syscall API

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > The new common syscall API had a large and confusing API surface. Simplify > it. Now there is exactly one way to use it. It's a bit more verbose than > the old way for the simple x86_64 native case, but it's much easier to use > right, and

Re: [PATCH v4 3/9] x86/entry: Convert ret_from_fork to C

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > ret_from_fork is written in asm, slightly differently, for x86_32 and > x86_64. Convert it to C. > +__visible void noinstr ret_from_fork(struct task_struct *prev, > + int (*kernel_thread_fn)(void *), > +

[tip: x86/urgent] x86/ioapic: Ignore IRQ2 again

2021-03-19 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a501b048a95b79e1e34f03cac3c87ff1e9f229ad Gitweb: https://git.kernel.org/tip/a501b048a95b79e1e34f03cac3c87ff1e9f229ad Author:Thomas Gleixner AuthorDate:Thu, 18 Mar 2021 20:26:47 +01:00

Re: [PATCH] mm/highmem: Fix CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP

2021-03-18 Thread Thomas Gleixner
g used. > > Change the configuration check to be correct. > > [1] https://lore.kernel.org/lkml/20210304083825.GB17830@xsang-OptiPlex-9020/ > > Cc: Thomas Gleixner > Cc: Oliver Sang > Cc: Chaitanya Kulkarni > Cc: David Sterba > Cc: Andrew Mor

[patch 1/2] x86/ioapic: Ignore IRQ2 again

2021-03-18 Thread Thomas Gleixner
and treat it as non existent despite a routing entry claiming otherwise. Fixes: d32932d02e18 ("x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces") Reported-by: Vitaly Kuznetsov Signed-off-by: Thomas Gleixner Tested-by: Vitaly Kuznetsov Cc: sta...@vger.kernel.org Link: htt

Re: [PATCH RFC 2/2] genirq/matrix: WARN_ON_ONCE() when cm->allocated/m->total_allocated go negative

2021-03-18 Thread Thomas Gleixner
On Thu, Mar 18 2021 at 08:58, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: >> There is a way more useful way to handle this. In such a case the bit is >> NOT set in the alloc map. So: >> >> if (!WARN_ON_ONCE(test_and_clear_bit(bit, cm->alloc_map))) >&

[patch 2/2] x86/vector: Add a sanity check to prevent IRQ2 allocations

2021-03-18 Thread Thomas Gleixner
To prevent another incidental removal of the IRQ2 ignore logic in the IO/APIC code going unnoticed add a sanity check. Add some commentry at the other place which ignores IRQ2 while at it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/vector.c | 13 + 1 file changed, 13

[patch 0/2] x86/ioapic: Restore the ignore IRQ2 routing entry logic

2021-03-18 Thread Thomas Gleixner
Cure for the IRQ2 ignore logic which got lost during the irqdomain conversion and a related sanity check. Thanks, tglx

Re: [PATCH 08/10] MIPS: disable CONFIG_IDE in malta*_defconfig

2021-03-18 Thread Thomas Bogendoerfer
On Thu, Mar 18, 2021 at 05:57:04AM +0100, Christoph Hellwig wrote: > arch/mips/configs/malta_kvm_guest_defconfig | 3 --- that file is gone in mips-next. I could take all MIPS patches into mips-next, if you want... Thomas. -- Crap can work. Given enough thrust pigs will fly, but i

Re: [PATCH] fs: Improve eventpoll logging to stop indicting timerfd

2021-03-18 Thread Thomas Gleixner
Manish, On Mon, Mar 01 2021 at 19:49, Manish Varma wrote: > All together, that will give us names like the following: > > 1) timerfd file descriptor: [timerfd14:system_server] > 2) eventpoll top-level per-process wakesource: epoll:system_server > 3) eventpoll-on-timerfd per-descriptor

Re: [PATCH RFC 1/2] x86/apic: Do not make an exception for PIC_CASCADE_IR when marking legacy irqs in irq_matrix

2021-03-18 Thread Thomas Gleixner
On Thu, Mar 18 2021 at 09:29, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: >> Out of paranoia I'd rather ignore that IO/APIC pin completely if it >> claims to be IRQ2. I assume there is no device connected to it at all, >> right? > > The original issue was obse

Re: [PATCH] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-17 Thread Thomas Bogendoerfer
t; This is similar with the commit d195b1d1d1196 ("powerpc/bpf: Enable > > bpf_probe_read{, str}() on powerpc again"). > > > > Fixes: 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs > > where they work") > > Signed-off-by: Tiez

Re: [PATCH RFC 1/2] x86/apic: Do not make an exception for PIC_CASCADE_IR when marking legacy irqs in irq_matrix

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 22:40, Thomas Gleixner wrote: > af174783b925 ("x86: I/O APIC: Never configure IRQ2") > > has a very nice explanation why. > > Back then the logic was quite different. All legacy PIC interrupts > (0-15) were bound to the legacy vectors

Re: [PATCH RFC 1/2] x86/apic: Do not make an exception for PIC_CASCADE_IR when marking legacy irqs in irq_matrix

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 22:18, Thomas Gleixner wrote: > On Wed, Mar 17 2021 at 21:14, Thomas Gleixner wrote: >> On Fri, Feb 19 2021 at 12:31, Vitaly Kuznetsov wrote: >> Even without looking at the machine I can tell you what's going on. MP >> config or ACPI has a pin assigne

Re: [PATCH RFC 1/2] x86/apic: Do not make an exception for PIC_CASCADE_IR when marking legacy irqs in irq_matrix

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 21:14, Thomas Gleixner wrote: > On Fri, Feb 19 2021 at 12:31, Vitaly Kuznetsov wrote: > Even without looking at the machine I can tell you what's going on. MP > config or ACPI has a pin assigned to IRQ 2 which I've not seen before. > The code there is ignoring I

Re: [PATCH RFC 2/2] genirq/matrix: WARN_ON_ONCE() when cm->allocated/m->total_allocated go negative

2021-03-17 Thread Thomas Gleixner
On Fri, Feb 19 2021 at 12:31, Vitaly Kuznetsov wrote: > When irq_matrix_assign()/irq_matrix_free() calls get unsynced, weird > effects are possible, e.g. when cm->allocated goes negative CPU hotplug > may get blocked. Add WARN_ON_ONCE() to simplify detecting such situations. > > Signed-off-by:

Re: [PATCH RFC 1/2] x86/apic: Do not make an exception for PIC_CASCADE_IR when marking legacy irqs in irq_matrix

2021-03-17 Thread Thomas Gleixner
On Fri, Feb 19 2021 at 12:31, Vitaly Kuznetsov wrote: > Trying to offline/online CPU0 seems to work only once: > > # echo 0 > /sys/devices/system/cpu/cpu0/online > # echo 1 > /sys/devices/system/cpu/cpu0/online > # echo 0 > /sys/devices/system/cpu/cpu0/online > -bash: echo: write error: No

Re: [PATCH] sched: swait: use wake_up_process() instead of wake_up_state()

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:41, Mike Galbraith wrote: > On Wed, 2021-03-17 at 10:46 +0100, Ingo Molnar wrote: >> * Mike Galbraith wrote: >> >> > On Tue, 2021-03-16 at 19:20 +0800, Wang Qing wrote: >> > > Why not just use wake_up_process(). >> > >> > IMO this is not an improvement. There are other

Re: [tip: sched/core] sched/wait_bit, mm/filemap: Increase page and bit waitqueue hash size

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 12:38, tip-bot wrote: > The following commit has been merged into the sched/core branch of tip: > > Commit-ID: 873d7c4c6a920d43ff82e44121e54053d4edba93 > Gitweb: > https://git.kernel.org/tip/873d7c4c6a920d43ff82e44121e54053d4edba93 > Author:Nicholas

Re: [patch 1/1] genirq: Disable interrupts for force threaded handlers

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 15:48, Sebastian Andrzej Siewior wrote: > On 2021-03-17 15:38:52 [+0100], Thomas Gleixner wrote: >> thread(irq_A) >> irq_handler(A) >> spin_lock(>lock); >> >> interrupt(irq_B) >> irq_handler(B) >> spin_l

[tip: irq/core] tasklets: Replace barrier() with cpu_relax() in tasklet_unlock_wait()

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: d2da74d1278a1b51ef18beafa9da770f0db1c617 Gitweb: https://git.kernel.org/tip/d2da74d1278a1b51ef18beafa9da770f0db1c617 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:04 +01:00

[tip: irq/core] tasklets: Use spin wait in tasklet_disable() temporarily

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: b0cd02c2a9494dbf0a1cc7dc7a3b8b400c158d37 Gitweb: https://git.kernel.org/tip/b0cd02c2a9494dbf0a1cc7dc7a3b8b400c158d37 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:07 +01:00

[tip: irq/core] tasklets: Provide tasklet_disable_in_atomic()

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: ca5f625118955fc544c3cb3dee7055d33ecadafb Gitweb: https://git.kernel.org/tip/ca5f625118955fc544c3cb3dee7055d33ecadafb Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:06 +01:00

[tip: irq/core] tasklets: Use static inlines for stub implementations

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 6951547a1399c8f56468ed93bea8f769b891aec3 Gitweb: https://git.kernel.org/tip/6951547a1399c8f56468ed93bea8f769b891aec3 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:05 +01:00

[tip: irq/core] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: eb2dafbba8b824ee77f166629babd470dd0b1c0a Gitweb: https://git.kernel.org/tip/eb2dafbba8b824ee77f166629babd470dd0b1c0a Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:10 +01:00

[tip: irq/core] irqtime: Make accounting correct on RT

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 6516b386d8a07102aac353daf9c0fe0045faeb74 Gitweb: https://git.kernel.org/tip/6516b386d8a07102aac353daf9c0fe0045faeb74 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:54 +01:00

[tip: irq/core] softirq: Add RT specific softirq accounting

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 728b478d2d358480b333b42d0e10e0fecb20114c Gitweb: https://git.kernel.org/tip/728b478d2d358480b333b42d0e10e0fecb20114c Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:53 +01:00

[tip: irq/core] tasklets: Switch tasklet_disable() to the sleep wait variant

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 6fd4e861250b5c89ad460a9f265caeb1bbbfc323 Gitweb: https://git.kernel.org/tip/6fd4e861250b5c89ad460a9f265caeb1bbbfc323 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:42:17 +01:00

[tip: irq/core] softirq: Make softirq control and processing RT aware

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 8b1c04acad082dec76f3f8f7e1fa13493d6cbb79 Gitweb: https://git.kernel.org/tip/8b1c04acad082dec76f3f8f7e1fa13493d6cbb79 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:56 +01:00

[tip: irq/core] softirq: Move various protections into inline helpers

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: f02fc963e91160e7343933823e8b73a0b2ab0a16 Gitweb: https://git.kernel.org/tip/f02fc963e91160e7343933823e8b73a0b2ab0a16 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:55 +01:00

[tip: irq/core] tick/sched: Prevent false positive softirq pending warnings on RT

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: 47c218dcae6587fb5bce30f1656b13e22391c8e3 Gitweb: https://git.kernel.org/tip/47c218dcae6587fb5bce30f1656b13e22391c8e3 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:57 +01:00

[tip: irq/core] rcu: Prevent false positive softirq warning on RT

2021-03-17 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/core branch of tip: Commit-ID: ba9e6cab49c1465c2c322dcb03d771d5cbecb692 Gitweb: https://git.kernel.org/tip/ba9e6cab49c1465c2c322dcb03d771d5cbecb692 Author:Thomas Gleixner AuthorDate:Tue, 09 Mar 2021 09:55:58 +01:00

[patch 1/1] genirq: Disable interrupts for force threaded handlers

2021-03-17 Thread Thomas Gleixner
ernels there is no issue. Fixes: 8d32a307e4fa ("genirq: Provide forced interrupt threading") Reported-by: Johan Hovold Signed-off-by: Thomas Gleixner Cc: Eric Dumazet Cc: Sebastian Andrzej Siewior Cc: netdev Cc: "David S. Miller" Cc: Krzysztof Kozlowski Cc: Greg Kroah-Hartma

Re: threadirqs deadlocks

2021-03-17 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 15:00, Johan Hovold wrote: > On Wed, Mar 17, 2021 at 02:24:04PM +0100, Thomas Gleixner wrote: >> Something like the below. > > Looks good to me. Do you want to spin that into a patch or shall I do > it after some testing? I'll send one in a few

Re: kmap_local semantics

2021-03-17 Thread Thomas Gleixner
e yes. "Advisable" I think so. Thomas knows better than I what > performance would be. The performance impact is only relevant for 32bit machines with HIGHMEM enabled. On 64bit kmap_local is a NOOP except when you enable CONFIG_DEBUG_KMAP_LOCAL there which then actually doe

Re: [mm/highmem] 61b205f579: WARNING:at_mm/highmem.c:#__kmap_local_sched_out

2021-03-17 Thread Thomas Gleixner
un the test to see if I am correct? Why? The whole point of CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP is to allow testing of this kmap_local/atomic stuff w/o HIGHMEM, e.g. on 64 bit. > Thomas wouldn't the following enable checks make more sense? Or perhaps be > more consistent with the processing of kmap_ctrl? Neither no

Re: threadirqs deadlocks

2021-03-17 Thread Thomas Gleixner
Johan, On Tue, Mar 16 2021 at 11:56, Johan Hovold wrote: > We've gotten reports of lockdep splats correctly identifying a potential > deadlock in serial drivers when running with forced interrupt threading. > > Typically, a serial driver takes the port spin lock in its interrupt > handler, but

[GIT PULL] MIPS fixes for v5.12

2021-03-17 Thread Thomas Bogendoerfer
The following changes since commit bd67b711bfaa02cf19e88aa2d9edae5c1c1d2739: MIPS: kernel: Reserve exception base early to prevent corruption (2021-03-09 11:22:59 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/

Re: [PATCH] MIPS: vmlinux.lds.S: Fix appended dtb not properly aligned

2021-03-16 Thread Thomas Bogendoerfer
ytes") > Cc: Bjørn Mork > Signed-off-by: Paul Cercueil > --- > arch/mips/kernel/vmlinux.lds.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing

2021-03-16 Thread Thomas Bogendoerfer
in function > `tegra_usb_phy_init': > phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent' hmm, why not make it use common clock framework ? And shouldn't include/linux/clk.h provide what you need, if CONFIG_HAVE_CLK is not set ? Thomas. -- Crap can work. Given

Re: [PATCH 2/2] futex: Leave the pi lock stealer in a consistent state upon successful fault

2021-03-16 Thread Thomas Gleixner
On Tue, Mar 16 2021 at 11:03, Davidlohr Bueso wrote: > On Tue, 16 Mar 2021, Peter Zijlstra wrote: >>IIRC we made the explicit choice to never loop here. That saves having >>to worry about getting stuck in in-kernel loops. >> >>Userspace triggering the case where the futex goes corrupt is UB, after

Re: [PATCH RESEND v4 0/4] x86: fix get_nr_restart_syscall()

2021-03-16 Thread Thomas Gleixner
On Tue, Mar 16 2021 at 19:10, Oleg Nesterov wrote: > On 02/04, Oleg Nesterov wrote: >> >> It seems that nobody objects, >> >> Andrew, Andy, Thomas, how do you think this series should be routed? > > ping... > > What can I do to finally get this merged? >

Re: [PATCH] softirq: Be more verbose on t->state BUG()

2021-03-16 Thread Thomas Gleixner
On Tue, Mar 16 2021 at 16:10, Eugeniu Rosca wrote: > If no other comments in the next days, I will resubmit your proposal as > v2, marked with 'Suggested-by: Thomas Gleixner '. > > Alternatively, feel free to author the patch and submit it with us in Cc. Just send a v2 please

Re: [PATCH] softirq: Be more verbose on t->state BUG()

2021-03-16 Thread Thomas Gleixner
On Mon, Mar 15 2021 at 16:44, Eugeniu Rosca wrote: > From: Dirk Behme > > In case this BUG() is hit, it helps debugging a lot to get an idea > what tasklet is the root cause. So, be slightly more verbose here. > > Signed-off-by: Dirk Behme > Signed-off-by: Eugeniu Rosca > --- >

Re: [patch V2 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-16 Thread Thomas Gleixner
On Sat, Mar 13 2021 at 17:49, Oleg Nesterov wrote: > On 03/12, Thomas Gleixner wrote: >> >> On Fri, Mar 12 2021 at 20:26, Thomas Gleixner wrote: >> > On Fri, Mar 12 2021 at 17:11, Oleg Nesterov wrote: >> >> On 03/11, Thomas Gleixner wrote: >> &

[PATCH v3 2/2] crypto: ccp - fix command queuing to TEE ring buffer

2021-03-15 Thread Rijo Thomas
TEE request from a client, then further command submission to queue will be disabled. Fixes: 33960acccfbd (crypto: ccp - add TEE support for Raven Ridge) Reviewed-by: Devaraj Rangasamy Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/tee-dev.c | 49 +--- drivers

[PATCH v3 0/2] PSP TEE driver update and bug fixes

2021-03-15 Thread Rijo Thomas
helps to resolve that. v3: * Fixed checkpatch.pl warning v2: * Updated copyright year as a part of code change Rijo Thomas (2): crypto: ccp - reduce tee command status polling interval from 5ms to 1ms crypto: ccp - fix command queuing to TEE ring buffer drivers/crypto/ccp/tee-dev.c | 57

[PATCH v3 1/2] crypto: ccp - reduce tee command status polling interval from 5ms to 1ms

2021-03-15 Thread Rijo Thomas
The PSP TEE device driver polls the command status variable every 5ms to check for command completion. Reduce this time to 1ms so that there is an improvement in driver response time to clients which submit TEE commands. Reviewed-by: Devaraj Rangasamy Signed-off-by: Rijo Thomas --- drivers

Re: [PATCH v2 4/5] drm: Add and export function drm_gem_cma_sync_data

2021-03-15 Thread Thomas Zimmermann
ndled by v4l2 instead. Software rendering (i.e., anything wrt dumb buffers) likely reads back framebuffer content during blit operations. For devices where this is a slow operation (e.g., PCI read) we set struct drm_mode_config.prefer_shadow to hint renderers to use shadow buffering. Best re

[GIT pull] sched/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest sched/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2021-03-14 up to: ce29ddc47b91: sched/membarrier: fix missing local execution of ipi_sync_rq_state() A set of scheduler updates: - Prevent a NULL pointer

[GIT pull] timers/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest timers/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-2021-03-14 up to: 46eb1701c046: hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event() A single fix in for hrtimers to prevent an

[GIT pull] irq/urgent for v5.12-rc2

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest irq/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2021-03-14 up to: b470ebc9e0e5: Merge tag 'irqchip-fixes-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent A set of irqchip

[GIT pull] objtool/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest objtool/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2021-03-14 up to: ba08abca66d4: objtool,x86: Fix uaccess PUSHF/POPF validation A single objtool fix to handle the PUSHF/POPF validation correctly for the

[GIT pull] locking/urgent for v5.12-rc3

2021-03-14 Thread Thomas Gleixner
Linus, please pull the latest locking/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-2021-03-14 up to: 4817a52b3061: seqlock,lockdep: Fix seqcount_latch_init() A couple of locking fixes: - A fix for the static_call mechanism so it handles

Re: [PATCH] mips: kernel: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2021-03-14 Thread Thomas Bogendoerfer
f-by: Wang Qing > --- > arch/mips/kernel/spinlock_test.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

[patch V3 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-13 Thread Thomas Gleixner
From: Thomas Gleixner Subject: signal: Allow tasks to cache one sigqueue struct Date: Wed, 03 Mar 2021 15:20:25 +0100 From: Thomas Gleixner The idea for this originates from the real time tree to make signal delivery for realtime applications more efficient. In quite some of these application

Re: [patch V2 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-12 Thread Thomas Gleixner
On Fri, Mar 12 2021 at 20:26, Thomas Gleixner wrote: > On Fri, Mar 12 2021 at 17:11, Oleg Nesterov wrote: >> On 03/11, Thomas Gleixner wrote: >>> >>> @@ -456,7 +460,12 @@ static void __sigqueue_free(struct sigqu >>> return; >>>

Re: [patch V2 0/3] signals: Allow caching one sigqueue object per task

2021-03-12 Thread Thomas Gleixner
On Thu, Mar 11 2021 at 15:13, Eric W. Biederman wrote: > Thomas Gleixner writes: > >> This is a follow up to the initial submission which can be found here: >> >> https://lore.kernel.org/r/20210303142025.wbbt2nnr6dtgw...@linutronix.de >> >> Signal send

Re: [patch V2 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-12 Thread Thomas Gleixner
On Fri, Mar 12 2021 at 17:11, Oleg Nesterov wrote: > On 03/11, Thomas Gleixner wrote: >> >> @@ -456,7 +460,12 @@ static void __sigqueue_free(struct sigqu >> return; >> if (atomic_dec_and_test(>user->sigpending)) >> fre

Re: [patch V2 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-12 Thread Thomas Gleixner
On Fri, Mar 12 2021 at 17:18, Oleg Nesterov wrote: > On 03/12, Sebastian Andrzej Siewior wrote: >> >> On 2021-03-11 14:20:39 [+0100], Thomas Gleixner wrote: >> > --- a/kernel/signal.c >> > +++ b/kernel/signal.c >> > @@ -433,7 +433,11 @@ static

Re: [PATCH] MIPS: fix memory reservation for non-usermem setups

2021-03-12 Thread Thomas Bogendoerfer
not. As the prerequisite of custom memory map has been removed, this results > in the full memory range of 0x0 - 0x800 to be marked as reserved for this > platform. and where is the problem here ? Thomas. -- Crap can work. Given enough thrust

Re: [PATCH mips/linux.git 0/5] firmware: bcm47xx_nvram: refactor finding & reading NVRAM

2021-03-12 Thread Thomas Bogendoerfer
2 --- > 1 file changed, 47 insertions(+), 45 deletions(-) series applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH 1/2] dt-bindings: panel/kingdisplay,kd035g6-54nt: Remove spi-cs-high

2021-03-12 Thread Thomas Bogendoerfer
isplay,kd035g6-54nt.yaml | 1 - > 1 file changed, 1 deletion(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH 2/2] MIPS: ingenic: gcw0: SPI panel does not require active-high CS

2021-03-12 Thread Thomas Bogendoerfer
1 file changed, 1 deletion(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH] MIPS: ralink: select WEAK_REORDERING_BEYOND_LLSC on MT7621

2021-03-12 Thread Thomas Bogendoerfer
ou please point me to where this is really documented ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH 2/2] MIPS: Loongson64: Move loongson_system_configuration to loongson.h

2021-03-12 Thread Thomas Bogendoerfer
.../include/asm/mach-loongson64/boot_param.h | 18 -- > .../include/asm/mach-loongson64/loongson.h | 18 ++ > drivers/irqchip/irq-loongson-liointc.c | 2 +- > 3 files changed, 19 insertions(+), 19 deletions(-) applied to mips-next. Thomas. -- Crap

Re: [PATCH 1/2] MIPS: Loongson64: Remove unused sysconf members

2021-03-12 Thread Thomas Bogendoerfer
hanged, 1 insertion(+), 72 deletions(-) > delete mode 100644 arch/mips/loongson64/platform.c applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH] MIPS: pci-mt7620: fix PLL lock check

2021-03-12 Thread Thomas Bogendoerfer
620.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

Re: [PATCH 0/7] mips: bmips: include dt-bindings headers

2021-03-12 Thread Thomas Bogendoerfer
svmb.dts | 4 ++-- > arch/mips/boot/dts/brcm/bcm97420c.dts | 2 +- > arch/mips/boot/dts/brcm/bcm97425svmb.dts | 4 ++-- > arch/mips/boot/dts/brcm/bcm97435svmb.dts | 4 ++-- > arch/mips/boot/dts/brcm/bcm9ejtagprb.dts

Re: [PATCH] kernel/futex: Change pi_state_update_owner() to an inline function

2021-03-11 Thread Thomas Gleixner
On Tue, Mar 09 2021 at 10:40, Xiangyang Yu wrote: > In our performance tests, we find that the performance of > sysbench is descend. Function call consumes too many instructions, > change pi_state_update_owner() to an inline function. Serioulsy? sysbench does not use PI futexes which means that

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-11 Thread Thomas Gleixner
On Thu, Mar 11 2021 at 13:45, Thomas Gleixner wrote: > On Thu, Mar 11 2021 at 00:56, Thomas Gleixner wrote: >> Rant aside, there is no massive benefit of doing that caching in >> general, but there is not much of a downside either and for particular >> use cases it'

[patch V2 2/3] signal: Hand SIGQUEUE_PREALLOC flag to __sigqueue_alloc()

2021-03-11 Thread Thomas Gleixner
There is no point in having the conditional at the callsite. Just hand in the allocation mode flag to __sigqueue_alloc() and use it to initialize sigqueue::flags. No functional change. Signed-off-by: Thomas Gleixner --- kernel/signal.c | 17 +++-- 1 file changed, 7 insertions

[patch V2 3/3] signal: Allow tasks to cache one sigqueue struct

2021-03-11 Thread Thomas Gleixner
From: Thomas Gleixner The idea for this originates from the real time tree to make signal delivery for realtime applications more efficient. In quite some of these application scenarios a control tasks signals workers to start their computations. There is usually only one signal per worker

[patch V2 1/3] signal: Provide and use exit_task_sighand()

2021-03-11 Thread Thomas Gleixner
To prepare for caching a sigqueue per task, implement a dedicated function to flush the sigqueue of the exiting task. No functional change. Signed-off-by: Thomas Gleixner --- include/linux/signal.h |1 + kernel/exit.c |3 +-- kernel/signal.c|9 + 3 files

[patch V2 0/3] signals: Allow caching one sigqueue object per task

2021-03-11 Thread Thomas Gleixner
This is a follow up to the initial submission which can be found here: https://lore.kernel.org/r/20210303142025.wbbt2nnr6dtgw...@linutronix.de Signal sending requires a kmem cache allocation at the sender side and the receiver hands it back to the kmem cache when consuming the signal. This

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-11 Thread Thomas Gleixner
On Thu, Mar 11 2021 at 00:56, Thomas Gleixner wrote: > Rant aside, there is no massive benefit of doing that caching in > general, but there is not much of a downside either and for particular > use cases it's useful even outside of PREEMPT_RT. > > IMO, having it there unconditio

[PATCH] z3fold: prevent reclaim/free race for headless pages

2021-03-11 Thread Thomas Hebb
5aedb24f8 ("z3fold: stricter locking and more careful reclaim") Cc: sta...@vger.kernel.org Signed-off-by: Thomas Hebb --- mm/z3fold.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 0152ad9931a8..8ae944eeb8e2 100644

Re: [PATCH v2 0/5] Add option to mmap GEM buffers cached

2021-03-10 Thread Thomas Zimmermann
Hi Am 10.03.21 um 20:02 schrieb Paul Cercueil: Hi Thomas, Le lun. 8 mars 2021 à 9:41, Thomas Zimmermann a écrit : Hi Paul, having individual functions for each mode only makes sense if the decision is at compile time. But in patch 5, you're working around your earlier design

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-10 Thread Thomas Gleixner
On Wed, Mar 10 2021 at 15:57, Eric W. Biederman wrote: > Thomas Gleixner writes: >> IMO, not bothering with an extra counter and rlimit plus the required >> atomic operations is just fine and having this for all tasks >> unconditionally looks like a clear win. >> >

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-10 Thread Thomas Gleixner
On Thu, Mar 04 2021 at 21:58, Thomas Gleixner wrote: > On Thu, Mar 04 2021 at 13:04, Eric W. Biederman wrote: >> Thomas Gleixner writes: >>> >>> We could of course do the caching unconditionally for all tasks. >> >> Is there any advantage to only doing thi

Re: [PATCH 2/2] mips: syscalls: switch to generic syscallhdr.sh

2021-03-10 Thread Thomas Bogendoerfer
10 ++- > arch/mips/kernel/syscalls/syscallhdr.sh | 36 - > 2 files changed, 2 insertions(+), 44 deletions(-) > delete mode 100644 arch/mips/kernel/syscalls/syscallhdr.sh applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but

Re: [PATCH 2/2] MIPS: Remove KVM_TE support

2021-03-10 Thread Thomas Bogendoerfer
On Mon, Mar 01, 2021 at 04:29:57PM +0100, Thomas Bogendoerfer wrote: > After removal of the guest part of KVM TE (trap and emulate), also remove > the host part. > > Signed-off-by: Thomas Bogendoerfer > --- > arch/mips/configs/loongson3_defconfig |1 - > arch/mips/i

Re: [PATCH 1/2] MIPS: Remove KVM_GUEST support

2021-03-10 Thread Thomas Bogendoerfer
On Mon, Mar 01, 2021 at 04:29:56PM +0100, Thomas Bogendoerfer wrote: > KVM_GUEST is broken and unmaintained, so let's remove it. > > Signed-off-by: Thomas Bogendoerfer > --- > arch/mips/Kconfig | 17 - > arch/mips/configs/malta_kvm_gue

Re: [PATCH] MIPS: Enable some missed configs in loongson3_defconfig to support bpftrace

2021-03-10 Thread Thomas Bogendoerfer
config. > > [1] https://github.com/iovisor/bpftrace/blob/master/INSTALL.md > > Signed-off-by: Tiezhu Yang > --- > arch/mips/configs/loongson3_defconfig | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) applied to mip

Re: [PATCH] arch: mips: bcm63xx: Spello fix in the file clk.c

2021-03-10 Thread Thomas Bogendoerfer
On Fri, Mar 05, 2021 at 07:35:35AM +0530, Bhaskar Chowdhury wrote: > > > s/revelant/relevant/ > > Signed-off-by: Bhaskar Chowdhury > --- > arch/mips/bcm63xx/clk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to mips-next with fixed subject. Th

Re: [PATCH 1/2] mips: syscalls: switch to generic syscalltbl.sh

2021-03-10 Thread Thomas Bogendoerfer
--- > arch/mips/kernel/syscalls/syscalltbl.sh | 36 - > 7 files changed, 17 insertions(+), 71 deletions(-) > delete mode 100644 arch/mips/kernel/syscalls/syscalltbl.sh applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea.[ RFC1925, 2.3 ]

[PATCH] arm64: dts: rockchip: add infrared receiver node to rockpro64

2021-03-10 Thread Thomas Schneider
This adds the RockPro64’s infrared receiver to its dtsi. The configuration is almost the same as on rk3328-rock64, except for the GPIO pins, and thus adapted from there. Signed-off-by: Thomas Schneider --- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 13 + 1 file changed

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-10 Thread Thomas Gleixner
On Tue, Mar 09 2021 at 13:01, Thomas Gleixner wrote: > On Fri, Mar 05 2021 at 11:57, Oleg Nesterov wrote: >> On 03/04, Thomas Gleixner wrote: >>> On Wed, Mar 03 2021 at 16:37, Oleg Nesterov wrote: >>> >> +static bool sigqueue_add_cache(struct task_stru

Re: [patch 07/14] tasklets: Prevent tasklet_unlock_spin_wait() deadlock on RT

2021-03-10 Thread Thomas Gleixner
On Tue, Mar 09 2021 at 16:21, Sebastian Andrzej Siewior wrote: > On 2021-03-09 16:00:37 [+0100], To Thomas Gleixner wrote: >> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h >> index 07c7329d21aa7..1c14ccd351091 100644 >> --- a/include/linux/interrupt.h &

[PATCH v2 1/2] crypto: ccp - reduce tee command status polling interval from 5ms to 1ms

2021-03-09 Thread Rijo Thomas
The PSP TEE device driver polls the command status variable every 5ms to check for command completion. Reduce this time to 1ms so that there is an improvement in driver response time to clients which submit TEE commands. Reviewed-by: Devaraj Rangasamy Signed-off-by: Rijo Thomas --- drivers

[PATCH v2 0/2] PSP TEE driver update and bug fixes

2021-03-09 Thread Rijo Thomas
helps to resolve that. v2: * Updated copyright year as a part of code change Rijo Thomas (2): crypto: ccp - reduce tee command status polling interval from 5ms to 1ms crypto: ccp - fix command queuing to TEE ring buffer drivers/crypto/ccp/tee-dev.c | 57

[PATCH v2 2/2] crypto: ccp - fix command queuing to TEE ring buffer

2021-03-09 Thread Rijo Thomas
TEE request from a client, then further command submission to queue will be disabled. Fixes: 33960acccfbd (crypto: ccp - add TEE support for Raven Ridge) Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/tee-dev.c | 49 +--- drivers/crypto/ccp/tee-dev.h | 20

Re: [PATCH 0/3] PSP TEE driver update and bug fixes

2021-03-09 Thread Rijo Thomas
On 09/03/21 10:06 pm, Tom Lendacky wrote: > On 3/9/21 2:11 AM, Rijo Thomas wrote: >> The first patch helps to improve the response time by reducing the >> polling time of the tee command status variable. >> >> Second patch is a bug fix to handle multi-threaded use-ca

Re: [PATCH 3/3] crypto: ccp - update copyright year for tee

2021-03-09 Thread Rijo Thomas
On 09/03/21 10:03 pm, Tom Lendacky wrote: > On 3/9/21 2:11 AM, Rijo Thomas wrote: >> Update the copyright year for PSP TEE driver files. >> >> Signed-off-by: Rijo Thomas > > The copyright updates really should occur as part of the changes in the > other pat

[GIT PULL] MIPS fixes for v5.12

2021-03-09 Thread Thomas Bogendoerfer
Paul Cercueil (1): MIPS: boot/compressed: Copy DTB to aligned address Thomas Bogendoerfer (1): MIPS: kernel: Reserve exception base early to prevent corruption arch/mips/boot/compressed/decompress.c | 8 arch/mips/crypto/Makefile | 4 ++-- arch/mips/include/asm

Re: [PATCH v11 5/6] staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk'

2021-03-09 Thread Thomas Bogendoerfer
nd', > 'mtk,mt7621-mc', and 'mtk,mt7621-cpc'. > > Acked-by: Greg Kroah-Hartman > Signed-off-by: Sergio Paracuellos > --- > arch/mips/ralink/mt7621.c | 6 +++--- Acked-by: Thomas Bogendoerfer Thomas. -- Crap can work. Given enough thrust pigs will fl

<    1   2   3   4   5   6   7   8   9   10   >