Re: [PATCH v3 03/19] mm: memcg: convert vmstat slab counters to bytes

2020-05-21 Thread Roman Gushchin
On Thu, May 21, 2020 at 11:57:12AM +0200, Vlastimil Babka wrote: > On 5/20/20 9:26 PM, Roman Gushchin wrote: > > On Wed, May 20, 2020 at 02:25:22PM +0200, Vlastimil Babka wrote: > >> > >> However __mod_node_page_state() and mode_node_state() will now branch > >> always. I > >> wonder if the "API

Re: [PATCH v2 5/7] mm: parallelize deferred_init_memmap()

2020-05-21 Thread Daniel Jordan
On Thu, May 21, 2020 at 09:46:35AM -0700, Alexander Duyck wrote: > It is more about not bothering with the extra tracking. We don't > really need it and having it doesn't really add much in the way of > value. Yeah, it can probably go. > > > > @@ -1863,11 +1892,32 @@ static int __init

Re: [PATCH v2 8/9] kallsyms: Hide layout

2020-05-21 Thread Kees Cook
On Thu, May 21, 2020 at 09:56:39AM -0700, Kristen Carlson Accardi wrote: > This patch makes /proc/kallsyms display alphabetically by symbol > name rather than sorted by address in order to hide the newly > randomized address layout. > > Signed-off-by: Kristen Carlson Accardi > Reviewed-by: Tony

Re: [RFC] Make dynamic debug infrastructure more flexible

2020-05-21 Thread Jason Baron
On 5/21/20 4:06 PM, Joe Perches wrote: > On Thu, 2020-05-21 at 09:08 -0700, Joe Perches wrote: >> On Thu, 2020-05-21 at 16:28 +0300, Stanimir Varbanov wrote: >>> Here we introduce few debug macros with levels (low, medium and >>> high) and debug macro for firmware. Enabling the particular level

Re: [PATCH] drm/vblank: Fix -Wformat compile warnings on some arches

2020-05-21 Thread Sam Ravnborg
On Thu, May 21, 2020 at 04:46:47PM -0400, Lyude Paul wrote: > On some architectures like ppc64le and aarch64, compiling with > -Wformat=1 will throw the following warnings: > > In file included from drivers/gpu/drm/drm_vblank.c:33: > drivers/gpu/drm/drm_vblank.c: In function

Re: [PATCH] can: mcp251x: convert to half-duplex SPI

2020-05-21 Thread Mark Brown
On Thu, May 21, 2020 at 01:19:16PM -0700, Tim Harvey wrote: > Should I be submitting this patch with logic that only does > half-duplex if the spi controller doesn't support it (if > (spi->controller->flags & SPI_CONTROLLER_HALF_DUPLEX)) or is it > acceptable to simply make the driver half-duplex

[tip: x86/timers] x86/tsc: Add tsc_early_khz command line parameter

2020-05-21 Thread tip-bot2 for Krzysztof Piecuch
The following commit has been merged into the x86/timers branch of tip: Commit-ID: bd35c77e32e4359580207891c0f7a438ad4b42df Gitweb: https://git.kernel.org/tip/bd35c77e32e4359580207891c0f7a438ad4b42df Author:Krzysztof Piecuch AuthorDate:Thu, 23 Jan 2020 16:09:26

Re: [PATCH v2 7/9] x86: Add support for function granular KASLR

2020-05-21 Thread Kees Cook
On Thu, May 21, 2020 at 09:56:38AM -0700, Kristen Carlson Accardi wrote: > At boot time, find all the function sections that have separate .text > sections, shuffle them, and then copy them to new locations. Adjust > any relocations accordingly. Commit log length vs "11 files changed, 1159

Re: [PATCH v3 04/19] mm: slub: implement SLUB version of obj_to_index()

2020-05-21 Thread Roman Gushchin
On Thu, May 21, 2020 at 01:01:38PM +0200, Vlastimil Babka wrote: > On 5/20/20 11:00 PM, Roman Gushchin wrote: > > > > From beeaecdac85c3a395dcfb99944dc8c858b541cbf Mon Sep 17 00:00:00 2001 > > From: Roman Gushchin > > Date: Mon, 29 Jul 2019 18:18:42 -0700 > > Subject: [PATCH v3.2 04/19] mm:

Re: [patch V9 04/39] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-21 Thread Paul E. McKenney
On Thu, May 21, 2020 at 10:05:17PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner > > After a lengthy discussion [1] it turned out that RCU does not need a full > rcu_irq_enter/exit() when RCU is already watching. All it needs if > NOHZ_FULL is active is to check whether the tick needs to

Re: [PATCH v2 03/22] KVM: SVM: immediately inject INTR vmexit

2020-05-21 Thread Paolo Bonzini
On 21/05/20 16:08, Paolo Bonzini wrote: > On 21/05/20 14:50, Vitaly Kuznetsov wrote: >> Sorry for reporting this late but I just found out that this commit >> breaks Hyper-V 2016 on KVM on SVM completely (always hangs on boot). I >> haven't investigated it yet (well, this is Windows, you know...)

Re: [patch V9 02/39] rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()

2020-05-21 Thread Paul E. McKenney
On Thu, May 21, 2020 at 10:05:15PM +0200, Thomas Gleixner wrote: > From: Paul E. McKenney > > There will likely be exception handlers that can sleep, which rules > out the usual approach of invoking rcu_nmi_enter() on entry and also > rcu_nmi_exit() on all exit paths. However, the alternative

Re: [PATCH] scsi: st: convert convert get_user_pages() --> pin_user_pages()

2020-05-21 Thread Bart Van Assche
On 2020-05-21 12:57, John Hubbard wrote: > Also, I doubt if it's worth it, but do you want a patch to change > SetPageDirty() > to set_page_dirty_lock(), meanwhile? It seems like if that's never come > up, then > it's mostly a theoretical bug. Hi John, Since I do not use the st driver myself I

[ANNOUNCE] 4.19.124-rt53

2020-05-21 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 4.19.124-rt53 stable release. This release is just an update to the new stable 4.19.124 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [GIT PULL]: dmaengine fixes for v5.7-rc7

2020-05-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 May 2020 20:05:21 +0530: > git://git.infradead.org/users/vkoul/slave-dma.git tags/dmaengine-fix-5.7-rc7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cedd54f713368d32c902befc3714b91afdec1084 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] vhost/vdpa: minor fixes

2020-05-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 May 2020 14:08:35 -0400: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d2f8825ab78e4c18686f3e1a756a30255bb00bf3 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH 04/11] mm/hugetlb: unify hugetlb migration callback function

2020-05-21 Thread Mike Kravetz
On 5/17/20 6:20 PM, js1...@gmail.com wrote: > From: Joonsoo Kim > > There is no difference between two migration callback functions, > alloc_huge_page_node() and alloc_huge_page_nodemask(), except > __GFP_THISNODE handling. This patch adds one more field on to > the alloc_control and handles

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-21 Thread Naresh Kamboju
My apology ! As per the test results history this problem started happening from Bad : next-20200430 (still reproducible on next-20200519) Good : next-20200429 The git tree / tag used for testing is from linux next-20200430 tag and reverted following three patches and oom-killer problem fixed.

DETAILS FOR PURCHASE!!!

2020-05-21 Thread umk1
Hello, Good day to you, i'm very much interested in your product & service's. Please give me wholesale price & complete deatails I would like to hear from you as soon as possible. Thanks, Julliet Carson E-mail: cap...@webmail.co.za Ph: 606-422-7111 Fx; 606-422-8022 International Sales &

[PATCH -next] pstore/ram: Undefine the correct macro after a recent renaming

2020-05-21 Thread Tyler Hicks
Undefine parse_u32, instead of parse_size, as the name of the macro recently changed but the #undef directive wasn't updated at that time. Fixes: 6b31e99b85b0 ("pstore/ram: Refactor DT size parsing") Signed-off-by: Tyler Hicks --- Hi Kees - Here's a minor fixup that I noticed was needed while

DETAILS FOR PURCHASE!!!

2020-05-21 Thread umk1
Hello, Good day to you, i'm very much interested in your product & service's. Please give me wholesale price & complete deatails I would like to hear from you as soon as possible. Thanks, Julliet Carson E-mail: cap...@webmail.co.za Ph: 606-422-7111 Fx; 606-422-8022 International Sales &

Re: [RFC PATCH linus] RISC-V: gp_in_global can be static

2020-05-21 Thread Palmer Dabbelt
On Sun, 17 May 2020 22:02:27 PDT (-0700), l...@intel.com wrote: Fixes: 52e7c52d2ded ("RISC-V: Stop relying on GCC's register allocator's hueristics") Signed-off-by: kbuild test robot --- process.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v5 6/8] clocksource: dw_apb_timer_of: Fix missing clockevent timers

2020-05-21 Thread Serge Semin
Commit 100214889973 ("clocksource: dw_apb_timer_of: use clocksource_of_init") replaced a publicly available driver initialization method with one called by the timer_probe() method available after CLKSRC_OF. In current implementation it traverses all the timers available in the system and calls

[PATCH v5 2/8] dt-bindings: timer: Move snps,dw-apb-timer DT schema from rtc

2020-05-21 Thread Serge Semin
This binding file doesn't belong to the rtc seeing it's a pure timer with no rtc facilities like days/months/years counting and alarms. So move the YAML-file to the Documentation/devicetree/bindings/timer/ directory. Signed-off-by: Serge Semin Acked-by: Alexandre Belloni Acked-by: Rob Herring

[PATCH v5 5/8] clocksource: dw_apb_timer: Affiliate of-based timer with any CPU

2020-05-21 Thread Serge Semin
Currently any DW APB Timer device detected in OF is bound to CPU #0. Doing so is redundant since DW APB Timer isn't CPU-local timer, but as having APB interface is normally accessible from any CPU in the system. By artificially affiliating the DW timer to the very first CPU we may and in our case

[PATCH v5 7/8] clocksource: mips-gic-timer: Register as sched_clock

2020-05-21 Thread Serge Semin
From: Paul Burton The MIPS GIC timer is well suited for use as sched_clock, so register it as such. Whilst the existing gic_read_count() function matches the prototype needed by sched_clock_register() already, we split it into 2 functions in order to remove the need to evaluate the mips_cm_is64

[PATCH v5 1/8] dt-bindings: rtc: Convert snps,dw-apb-timer to DT schema

2020-05-21 Thread Serge Semin
Modern device tree bindings are supposed to be created as YAML-files in accordance with DT schema. This commit replaces Synopsys DW Timer legacy bare text binding with YAML file. As before the binding file states that the corresponding dts node is supposed to be compatible with generic DW APB

[PATCH v5 4/8] clocksource: dw_apb_timer: Make CPU-affiliation being optional

2020-05-21 Thread Serge Semin
Currently the DW APB Timer driver binds each clockevent timers to a particular CPU. This isn't good for multiple reasons. First of all seeing the device is placed on APB bus (which makes it accessible from any CPU core), accessible over MMIO and having the DYNIRQ flag set we can be sure that

[PATCH v5 0/8] clocksource: Fix MIPS GIC and DW APB Timer for Baikal-T1 SoC support

2020-05-21 Thread Serge Semin
As for all Baikal-T1 SoC related patchsets, which need this, we replaced the DW APB Timer legacy plain text-based dt-binding file with DT schema. Similarly the MIPS GIC bindings file is also converted to DT schema seeing it also defines the MIPS GIC Timer binding. Aside from MIPS-specific r4k

[PATCH v5 3/8] dt-bindings: interrupt-controller: Convert mti,gic to DT schema

2020-05-21 Thread Serge Semin
Modern device tree bindings are supposed to be created as YAML-files in accordance with DT schema. This commit replaces MIPS GIC legacy bare text binding with YAML file. As before the binding file states that the corresponding dts node is supposed to be compatible with MIPS Global Interrupt

[PATCH v5 8/8] clocksource: mips-gic-timer: Mark GIC timer as unstable if ref clock changes

2020-05-21 Thread Serge Semin
Currently clocksource framework doesn't support the clocks with variable frequency. Since MIPS GIC timer ticks rate might be unstable on some platforms, we must make sure that it justifies the clocksource requirements. MIPS GIC timer is incremented with the CPU cluster reference clocks rate. So in

[PATCH] drm/vblank: Fix -Wformat compile warnings on some arches

2020-05-21 Thread Lyude Paul
On some architectures like ppc64le and aarch64, compiling with -Wformat=1 will throw the following warnings: In file included from drivers/gpu/drm/drm_vblank.c:33: drivers/gpu/drm/drm_vblank.c: In function 'drm_update_vblank_count': drivers/gpu/drm/drm_vblank.c:273:16: warning: format

Re: [PATCH v12 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-21 Thread Tali Perry
On Thu, May 21, 2020 at 11:37 PM Wolfram Sang wrote: > > > > > > I wondered also about DEBUG_FS entries. I can see their value when > > > > developing the driver. But since this is done now, do they really help a > > > > user to debug a difficult case? I am not sure, and then I wonder if we > > >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Joel Fernandes
Hi Linus, On Thu, May 21, 2020 at 11:31:38AM -0700, Linus Torvalds wrote: > On Wed, May 20, 2020 at 3:26 PM Joel Fernandes (Google) > wrote: > > > > ChromeOS will use core-scheduling to securely enable hyperthreading. > > This cuts down the keypress latency in Google docs from 150ms to 50ms > >

Solved: [PATCH 0/4] mm/gup, drm/i915: refactor gup_fast, convert to pin_user_pages()

2020-05-21 Thread John Hubbard
On 2020-05-21 12:11, John Hubbard wrote: On 2020-05-21 11:57, Chris Wilson wrote: Quoting John Hubbard (2020-05-19 01:21:20) This needs to go through Andrew's -mm tree, due to adding a new gup.c routine. However, I would really love to have some testing from the drm/i915 folks, because I

Re: linux-next: manual merge of the rcu tree with the powerpc tree

2020-05-21 Thread Thomas Gleixner
"Paul E. McKenney" writes: > On Thu, May 21, 2020 at 02:51:24PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> On Tue, 19 May 2020 17:23:16 +1000 Stephen Rothwell >> wrote: >> > >> > Today's linux-next merge of the rcu tree got a conflict in: >> > >> > arch/powerpc/kernel/traps.c >> > >>

Re: [PATCH] usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set

2020-05-21 Thread Paul Cercueil
Hi Bin, The patch it fixes was introduced in 5.7-rc1, is it possible to queue it for the next -rc? Otherwise I'll need to Cc it to linux-stable. -Paul Le jeu. 21 mai 2020 à 15:34, Bin Liu a écrit : On Wed, May 20, 2020 at 05:01:11PM +0200, Paul Cercueil wrote: The function

Re: [PATCH v12 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-21 Thread Wolfram Sang
> > > I wondered also about DEBUG_FS entries. I can see their value when > > > developing the driver. But since this is done now, do they really help a > > > user to debug a difficult case? I am not sure, and then I wonder if we > > > should have that code in upstream. I am open for discussion,

Re: [PATCH] usb: musb: Fix runtime PM imbalance on error

2020-05-21 Thread Bin Liu
Hi, On Thu, May 21, 2020 at 03:35:47PM +0800, Dinghao Liu wrote: > When copy_from_user() returns an error code, a pairing > runtime PM usage counter decrement is needed to keep > the counter balanced. > > Signed-off-by: Dinghao Liu > --- > drivers/usb/musb/musb_debugfs.c | 5 - > 1 file

[PATCH v2 1/3] selftests: vdso: Rename vdso_test to vdso_test_gettimeofday

2020-05-21 Thread Mark Brown
Currently the vDSO kselftests have a test called vdso_test which tests the vDSO implementation of gettimeofday(). In preparation for adding tests for other vDSO functionality rename this test to reflect what's going on. Signed-off-by: Mark Brown --- tools/testing/selftests/vDSO/.gitignore

[PATCH v2 2/3] selftests: vdso: Use a header file to prototype parse_vdso API

2020-05-21 Thread Mark Brown
Both vdso_test_gettimeofday and vdso_standalone_test_x86 use the library in parse_vdso.c but each separately declares the API it offers which is not ideal. Create a header file with prototypes of the functions and use it in both the library and the tests to ensure that the same prototypes are used

[PATCH v2 3/3] selftests: vdso: Add a selftest for vDSO getcpu()

2020-05-21 Thread Mark Brown
Provide a very basic selftest for getcpu() which similarly to our existing test for gettimeofday() looks up the function in the vDSO and prints the results it gets if the function exists and succeeds. Signed-off-by: Mark Brown --- tools/testing/selftests/vDSO/.gitignore | 1 +

[PATCH v2 0/3] selftests: vdso: Add a selftest for vDSO getcpu()

2020-05-21 Thread Mark Brown
This series does a bit of a cleanup of the existing tests for the vDSO in kselftest and then adds a new test for getcpu(). v2: Silence checkpatch Mark Brown (3): selftests: vdso: Rename vdso_test to vdso_test_gettimeofday selftests: vdso: Use a header file to prototype parse_vdso API

Re: [PATCH] usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set

2020-05-21 Thread Bin Liu
On Wed, May 20, 2020 at 05:01:11PM +0200, Paul Cercueil wrote: > The function dma_controller_irq() locks up the exact same spinlock we > locked before calling it, which obviously resulted in a deadlock when > CONFIG_SMP was enabled. This flew under the radar as none of the boards > supported by

[patch V9 12/39] x86/entry: Split out idtentry_exit_cond_resched()

2020-05-21 Thread Thomas Gleixner
The XEN PV hypercall requires the ability of conditional rescheduling when preemption is disabled because some hypercalls take ages. Split out the rescheduling code from idtentry_exit_cond_rcu() so it can be reused for that. Signed-off-by: Thomas Gleixner --- V9: New patch ---

[patch V9 02/39] rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()

2020-05-21 Thread Thomas Gleixner
From: Paul E. McKenney There will likely be exception handlers that can sleep, which rules out the usual approach of invoking rcu_nmi_enter() on entry and also rcu_nmi_exit() on all exit paths. However, the alternative approach of just not calling anything can prevent RCU from coaxing quiescent

[patch V9 24/39] x86/entry: Use idtentry for interrupts

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Replace the extra interrupt handling code and reuse the existing idtentry machinery. This moves the irq stack switching on 64 bit from ASM to C code; 32bit already does the stack switching in C. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski ---

[patch V9 17/39] x86/entry: Change exit path of xen_failsafe_callback

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner xen_failsafe_callback is invoked from XEN for two cases: 1. Fault while reloading DS, ES, FS or GS 2. Fault while executing IRET #1 retries the IRET after XEN has fixed up the segments. #2 injects a #GP which kills the task For #1 there is no reason to go through the

[patch V9 01/39] nmi, tracing: Make hardware latency tracing noinstr safe

2020-05-21 Thread Thomas Gleixner
The hardware latency tracer calls into instrumentable functions. Move the calls into the RCU watching sections and annotate them. Signed-off-by: Thomas Gleixner --- V9: Simplified version --- include/linux/hardirq.h |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---

[patch V9 04/39] x86/entry: Provide idtentry_entry/exit_cond_rcu()

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner After a lengthy discussion [1] it turned out that RCU does not need a full rcu_irq_enter/exit() when RCU is already watching. All it needs if NOHZ_FULL is active is to check whether the tick needs to be restarted. This allows to avoid a separate variant for the pagefault

[patch V9 05/39] x86/entry: Provide idtentry_enter/exit_user()

2020-05-21 Thread Thomas Gleixner
As there are exceptions which already handle entry from user mode and from kernel mode separately having an explicit user handling makes sense and makes the code easier to understand. Signed-off-by: Thomas Gleixner --- V9: New patch --- arch/x86/entry/common.c | 31

[patch V9 15/39] x86/entry: Switch page fault exception to IDTENTRY_RAW

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert page fault exceptions to IDTENTRY_RAW: - Implement the C entry point with DEFINE_IDTENTRY_RAW - Add the CR2 read into the exception handler - Add the idtentry_enter/exit_cond_rcu() invocations in in the regular page fault handler and in the async PF

[patch V9 22/39] x86/irq: Rework handle_irq() for 64bit

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner To consolidate the interrupt entry/exit code vs. the other exceptions make handle_irq() and inline and handle both 64bit and 32bit Preparatory change to move irq stack switching for 64bit to C which allows to consolidate the entry exit handling by reusing the idtentry

[patch V9 29/39] x86/entry: Convert KVM vectors to IDTENTRY_SYSVEC*

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert KVM specific system vectors to IDTENTRY_SYSVEC*: The two empty stub handlers which only increment the stats counter do no need to run on the interrupt stack. Use IDTENTRY_SYSVEC_SIMPLE for them. The wakeup handler does more work and runs on the interrupt stack.

[patch V9 11/39] x86/entry/64: Move do_softirq_own_stack() to C

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner The first step to get rid of the ENTER/LEAVE_IRQ_STACK ASM macro maze. Use the new C code helpers to move do_softirq_own_stack() out of ASM code. Signed-off-by: Thomas Gleixner --- V9: Simplified version --- arch/x86/entry/entry_64.S | 13 -

[patch V9 13/39] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert the XEN/PV hypercall to IDTENTRY: - Emit the ASM stub with DECLARE_IDTENTRY - Remove the ASM idtentry in 64bit - Remove the open coded ASM entry code in 32bit - Remove the old prototypes The handler stubs need to stay in ASM code as it needs corner case

[patch V9 07/39] x86/entry: Cleanup idtentry_enter/exit() leftovers

2020-05-21 Thread Thomas Gleixner
Now that everything is converted to conditional RCU handling remove idtentry_enter/exit() and tidy up the conditional functions. This does not remove rcu_irq_exit_preempt() to avoid conflicts with the RCU tree. Will be removed once all of this hit Linus tree. Signed-off-by: Thomas Gleixner ---

[patch V9 32/39] x86/entry: Convert reschedule interrupt to IDTENTRY_SYSVEC_SIMPLE

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner The scheduler IPI does not need the full interrupt entry handling logic when the entry is from kernel mode. Use IDTENTRY_SYSVEC_SIMPLE and spare all the overhead. Signed-off-by: Thomas Gleixner --- arch/x86/entry/entry_64.S|4

[patch V9 10/39] x86/entry: Provide helpers for execute on irqstack

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Device interrupt handlers and system vector handlers are executed on the interrupt stack. The stack switch happens in the low level assembly entry code. This conflicts with the efforts to consolidate the exit code in C to ensure correctness vs. RCU and tracing. As there is

[patch V9 27/39] x86/entry: Convert SMP system vectors to IDTENTRY_SYSVEC

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert SMP system vectors to IDTENTRY_SYSVEC - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64bit - Remove the BUILD_INTERRUPT entries in 32bit - Remove the old prototypes

[patch V9 36/39] x86/entry/32: Remove redundant irq disable code

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner All exceptions/interrupts return with interrupts disabled now. No point in doing this in ASM again. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_32.S | 76 -- 1 file changed, 76

[patch V9 37/39] x86/entry/64: Remove TRACE_IRQS_*_DEBUG

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Since INT3/#BP no longer runs on an IST, this workaround is no longer required. Tested by running lockdep+ftrace as described in the initial commit: 5963e317b1e9 ("ftrace/x86: Do not change stacks in DEBUG when calling lockdep") Signed-off-by: Peter Zijlstra (Intel)

[patch V9 20/39] x86/irq: Use generic irq_regs implementation

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner The only difference is the name of the per-CPU variable: irq_regs vs. __irq_regs, but the accessor functions are identical. Remove the pointless copy and use the generic variant. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/irq_regs.h | 32

[patch V9 19/39] x86/entry/32: Remove common_exception

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner No more users. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_32.S | 21 - 1 file changed, 21 deletions(-) --- a/arch/x86/entry/entry_32.S +++ b/arch/x86/entry/entry_32.S @@ -1394,27 +1394,6 @@

[patch V9 26/39] x86/entry: Convert APIC interrupts to IDTENTRY_SYSVEC

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert APIC interrupts to IDTENTRY_SYSVEC - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64bit - Remove the BUILD_INTERRUPT entries in 32bit - Remove the old prototypes No

[patch V9 18/39] x86/entry/64: Remove error_exit

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner No more users. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_64.S |9 - 1 file changed, 9 deletions(-) --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -1356,15 +1356,6 @@

[patch V9 21/39] x86/irq: Convey vector as argument and not in ptregs

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Device interrupts which go through do_IRQ() or the spurious interrupt handler have their separate entry code on 64 bit for no good reason. Both 32 and 64 bit transport the vector number through ORIG_[RE]AX in pt_regs. Further the vector number is forced to fit into an u8

[patch V9 31/39] x86/entry: Convert XEN hypercall vector to IDTENTRY_SYSVEC

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert the last oldstyle defined vector to IDTENTRY_SYSVEC - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64bit - Remove the BUILD_INTERRUPT entries in 32bit - Remove the

[patch V9 33/39] x86/entry: Remove the apic/BUILD interrupt leftovers

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Remove all the code which was there to emit the system vector stubs. All users are gone. Move the now unused GET_CR2_INTO macro muck to head_64.S where the last user is. Fixup the eye hurting comment there while at it. Signed-off-by: Thomas Gleixner Acked-by: Andy

[patch V9 35/39] x86/entry: Make enter_from_user_mode() static

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner The ASM users are gone. All callers are local. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -54,7 +54,7 @@

[patch V9 23/39] x86/entry: Add IRQENTRY_IRQ macro

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Provide a seperate IDTENTRY macro for device interrupts. Similar to IDTENTRY_ERRORCODE with the addition of invoking irq_enter/exit_rcu() and providing the errorcode as a 'u8' argument to the C function, which truncates the sign extended vector number. Signed-off-by:

[patch V9 38/39] x86/entry: Move paranoid irq tracing out of ASM code

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner The last step to remove the irq tracing cruft from ASM. Ignore #DF as the maschine is going to die anyway. Signed-off-by: Thomas Gleixner --- V9: Fixup #DB, #MCE, #INT3 as well --- arch/x86/entry/entry_64.S | 13 - arch/x86/kernel/cpu/mce/core.c |3

[patch V9 08/39] genirq: Provide irq_enter/exit_rcu()

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner irq_enter()/exit() include the RCU handling. To properly separate the RCU handling provide variants which contain only the non-RCU related functionality. Signed-off-by: Thomas Gleixner Reviewed-by: Andy Lutomirski --- include/linux/hardirq.h | 13 +++--

[patch V9 34/39] x86/entry/64: Remove IRQ stack switching ASM

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner No more users. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_64.S | 96 -- 1 file changed, 96 deletions(-) --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -370,102

[patch V9 39/39] x86/entry: Remove the TRACE_IRQS cruft

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner No more users. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_64.S | 13 - arch/x86/entry/thunk_64.S |9 + arch/x86/include/asm/irqflags.h | 10 -- 3 files changed, 1 insertion(+), 31

[patch V9 30/39] x86/entry: Convert various hypervisor vectors to IDTENTRY_SYSVEC

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert various hypervisor vectors to IDTENTRY_SYSVEC - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64bit - Remove the BUILD_INTERRUPT entries in 32bit - Remove the old

[patch V9 28/39] x86/entry: Convert various system vectors

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Convert various system vectors to IDTENTRY_SYSVEC - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64bit - Remove the BUILD_INTERRUPT entries in 32bit - Remove the old

[patch V9 25/39] x86/entry: Provide IDTENTRY_SYSVEC

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Provide IDTENTRY variants for system vectors to consolidate the different mechanisms to emit the ASM stubs for 32 an 64 bit. On 64bit this also moves the stack switching from ASM to C code. 32bit will excute the system vectors w/o stack switching as before. The simple

[patch V9 06/39] x86/idtentry: Switch to conditional RCU handling

2020-05-21 Thread Thomas Gleixner
Switch all idtentry_enter/exit() users over to the new conditional RCU handling scheme and make the user mode entries in #DB, #INT3 and #MCE use the user mode idtentry functions. Signed-off-by: Thomas Gleixner --- V9: New patch --- arch/x86/include/asm/idtentry.h | 10 ++

[patch V9 16/39] x86/entry: Remove the transition leftovers

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Now that all exceptions are converted over the sane flag is not longer needed. Also the vector argument of idtentry_body on 64 bit is pointless now. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_32.S |3 +--

[patch V9 09/39] genirq: Provide __irq_enter/exit_raw()

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner Like __irq_enter/exit() but without time accounting. To be used for "empty" system vectors like the scheduler IPI to avoid the overhead. Signed-off-by: Thomas Gleixner Reviewed-by: Andy Lutomirski --- include/linux/hardirq.h | 20 1 file changed,

[patch V9 00/39] x86/entry: Rework leftovers (was part V)

2020-05-21 Thread Thomas Gleixner
Folks! This is V9 of the rework series. V7 and V8 were never posted but I used the version numbers for tags while fixing up 0day complaints. The last posted version was V6 which can be found here: https://lore.kernel.org/r/20200515234547.710474...@linutronix.de The V9 leftover series is based

[patch V9 03/39] rcu: Provide rcu_irq_exit_check_preempt()

2020-05-21 Thread Thomas Gleixner
Provide a debug check which can be invoked from exception return to kernel mode before an attempt is made to schedule. Warn if RCU is not ready for this. Signed-off-by: Thomas Gleixner --- V9: New patch --- include/linux/rcutiny.h |1 + include/linux/rcutree.h |6 ++

[patch V9 14/39] x86/entry/64: Simplify idtentry_body

2020-05-21 Thread Thomas Gleixner
From: Thomas Gleixner All C functions which do not have an error code have been converted to the new IDTENTRY interface which does not expect an error code in the arguments. Spare the XORL. Signed-off-by: Thomas Gleixner Acked-by: Andy Lutomirski --- arch/x86/entry/entry_64.S |2 -- 1

[PATCH v2] ACPI / DPTF: Add additional attributes to power participant driver

2020-05-21 Thread Srinivas Pandruvada
Add two additional attributes to the existing power participant driver: rest_of_platform_power_mw: (RO) Shows the rest of worst case platform power in mW outside of S0C. This will help in power distribution to SoC and rest of the system. For example on a test system, this value is 2.5W with a 15W

[PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-21 Thread Sami Tolvanen
Instead of linking all compilation units again each time vmlinux_link is called, reuse vmlinux.o from modpost_link. With x86_64 allyesconfig, vmlinux_link is called three times and reusing vmlinux.o reduces the build time ~38 seconds on my system (59% reduction in the time spent in vmlinux_link).

Re: [PATCH 3.16 35/99] pxa168fb: Fix the function used to release some memory in an error handling path

2020-05-21 Thread Ben Hutchings
On Thu, 2020-05-21 at 16:31 +0200, Marion & Christophe JAILLET wrote: > Hi, > > sorry for the noise, I have messed up my > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ usage. > I thought I was looking at the 3.16.83 branch, but I was not. > > The patch looks good to me.

Re: [RESEND PATCH v14 04/11] pwm: clps711x: Cast period to u32 before use as divisor

2020-05-21 Thread Guru Das Srinagesh
On Thu, May 21, 2020 at 11:19:34AM +0100, Daniel Thompson wrote: > On Wed, May 20, 2020 at 03:55:57PM -0700, Guru Das Srinagesh wrote: > > Since the PWM framework is switching struct pwm_args.period's datatype > > to u64, prepare for this transition by typecasting it to u32. > > > > Also, since

Re: [PATCH 3.16 00/99] 3.16.84-rc1 review

2020-05-21 Thread Ben Hutchings
On Thu, 2020-05-21 at 00:40 -0700, Guenter Roeck wrote: > On 5/20/20 7:47 PM, Chen-Yu Tsai wrote: > > On Thu, May 21, 2020 at 5:23 AM Guenter Roeck wrote: > > > On 5/20/20 7:13 AM, Ben Hutchings wrote: > > > > This is the start of the stable review cycle for the 3.16.84 release. > > > > There are

Re: [PATCH 3.16 00/99] 3.16.84-rc1 review

2020-05-21 Thread Ben Hutchings
On Wed, 2020-05-20 at 14:23 -0700, Guenter Roeck wrote: > On 5/20/20 7:13 AM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.84 release. > > There are 99 patches in this series, which will be posted as responses > > to this one. If anyone has any issues with

Re: [PATCH -tip v3 09/11] data_race: Avoid nested statement expression

2020-05-21 Thread Nick Desaulniers
On Thu, May 21, 2020 at 7:22 AM 'Marco Elver' via Clang Built Linux wrote: > > It appears that compilers have trouble with nested statement > expressions. Therefore remove one level of statement expression nesting > from the data_race() macro. This will help us avoid potential problems > in

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Vineeth Remanan Pillai
On Thu, May 21, 2020 at 9:47 AM Joel Fernandes wrote: > > > It doens't allow tasks for form their own groups (by for example setting > > the key to that of another task). > > So for this, I was thinking of making the prctl pass in an integer. And 0 > would mean untagged. Does that sound good to

Re: [PATCH] can: mcp251x: convert to half-duplex SPI

2020-05-21 Thread Tim Harvey
On Wed, Feb 26, 2020 at 2:19 AM Marc Kleine-Budde wrote: > > On 2/26/20 8:37 AM, Marc Kleine-Budde wrote: > >> Your right... there is the mcp251x_hw_rx_frame() call that also uses > >> spi_rx_buf after a synchronous transfer (I didn't see any others). > >> I'll look at this again. > > > > Have

Re: [PATCH 09/10] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-05-21 Thread Julien Grall
On Thu, 21 May 2020 at 21:08, Stefano Stabellini wrote: > > On Thu, 21 May 2020, Julien Grall wrote: > > > @@ -97,8 +98,7 @@ bool xen_arch_need_swiotlb(struct device *dev, > > >phys_addr_t phys, > > >dma_addr_t dev_addr) > > > { > > > - unsigned

Re: [PATCH v6 04/19] spi: spi-mem: allow specifying a command's extension

2020-05-21 Thread Boris Brezillon
On Fri, 22 May 2020 01:33:15 +0530 Pratyush Yadav wrote: > On 22/05/20 01:11AM, Pratyush Yadav wrote: > > On 21/05/20 08:22PM, Boris Brezillon wrote: > > > On Wed, 20 May 2020 22:00:38 +0530 > > > Pratyush Yadav wrote: > > > > > > > In xSPI mode, flashes expect 2-byte opcodes. The second

Re: [PATCH] iommu/dma: limit iova free size to unmmaped iova

2020-05-21 Thread Robin Murphy
On 2020-05-21 12:30, Prakash Gupta wrote: Limit the iova size while freeing based on unmapped size. In absence of this even with unmap failure, invalid iova is pushed to iova rcache and subsequently can cause panic while rcache magazine is freed. Can you elaborate on that panic?

Re: [PATCH] smp: generic ipi_raise tracepoint

2020-05-21 Thread Wojciech Kudla
On 21/05/2020 20:00, Nadav Amit wrote: >> -if (llist_add(>llist, _cpu(call_single_queue, cpu))) >> +if (llist_add(>llist, _cpu(call_single_queue, cpu))) { >> +if (trace_ipi_raise_enabled()) > > Why do you need this check? trace_ipi_raise() will do the same check before >

[PATCH v2] arm: dts: am335x-boneblack: add gpio-line-names

2020-05-21 Thread Drew Fustini
The BeagleBone Black has P8 and P9 headers [0] which expose many of the AM3358 ZCZ SoC balls to stacking expansion boards called "capes", or to other external connections like jumper wires connected to a breadboard. BeagleBone users will often refer to the "Cape Exanpsion Headers" pin diagram [1]

Re: [PATCH 09/10] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-05-21 Thread Stefano Stabellini
On Thu, 21 May 2020, Julien Grall wrote: > > @@ -97,8 +98,7 @@ bool xen_arch_need_swiotlb(struct device *dev, > >phys_addr_t phys, > >dma_addr_t dev_addr) > > { > > - unsigned int xen_pfn = XEN_PFN_DOWN(phys); > > - unsigned int bfn =

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-21 Thread Hugh Dickins
On Thu, 21 May 2020, Johannes Weiner wrote: > > Very much appreciate you guys tracking it down so quickly. Sorry about > the breakage. > > I think mem_cgroup_disabled() checks are pretty good markers of public > entry points to the memcg API, so I'd prefer that even if a bit more > verbose. What

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