Re: [PATCH 03/11] asm-generic: add generic dwarf definition

2019-08-26 Thread Peter Zijlstra
On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > Add generic DWARF constant definitions. We will use it later. > > Signed-off-by: Changbin Du > --- > include/asm-generic/dwarf.h | 199 > 1 file changed, 199 insertions(+) > create mode 100644 in

Re: [PATCH 05/11] ftrace: create memcache for hash entries

2019-08-26 Thread Peter Zijlstra
On Sun, Aug 25, 2019 at 09:23:24PM +0800, Changbin Du wrote: > When CONFIG_FTRACE_FUNC_PROTOTYPE is enabled, thousands of > ftrace_func_entry instances are created. So create a dedicated > memcache to enhance performance. > > Signed-off-by: Changbin Du > --- > kernel/trace/ftrace.c | 17

Re: [PATCH v2 1/1] counter: cros_ec: Add synchronization sensor

2019-08-26 Thread Jonathan Cameron
On Fri, 23 Aug 2019 14:41:27 +0200 Fabien Lahoudere wrote: > From: Gwendal Grignou > > EC returns a counter when there is an event on camera vsync. > This patch comes from chromeos kernel 4.4 > > Signed-off-by: Gwendal Grignou > Signed-off-by: Fabien Lahoudere > > CROS EC sync sensor was or

FAILED: patch "[PATCH] x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h" failed to apply to 4.4-stable tree

2019-08-26 Thread gregkh
The patch below does not apply to the 4.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h -- original commit in Linus's tree -- >

FAILED: patch "[PATCH] x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h" failed to apply to 4.9-stable tree

2019-08-26 Thread gregkh
The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h -- original commit in Linus's tree -- >

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Jani Nikula
On Sat, 24 Aug 2019, Andrew Morton wrote: >> --- a/lib/vsprintf.c >> +++ b/lib/vsprintf.c >> @@ -533,6 +533,192 @@ char *number(char *buf, char *end, unsigned long long >> num, >> return buf; >> } >> >> +#define ERRORCODE(x) { .str = #x, .err = x } >> + >> +static const struct { >> +c

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Hari Bathini
On 10/08/19 11:29 PM, Sourabh Jain wrote: > Add a sys interface to allow querying the memory reserved by > fadump for saving the crash dump. > > Add an ABI doc entry for new sysfs interface. >- /sys/kernel/fadump_mem_reserved > > Signed-off-by: Sourabh Jain > --- > Changelog: > v1 -> v2:

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Jani Nikula
On Mon, 26 Aug 2019, Jani Nikula wrote: > On Sat, 24 Aug 2019, Andrew Morton wrote: >>> --- a/lib/vsprintf.c >>> +++ b/lib/vsprintf.c >>> @@ -533,6 +533,192 @@ char *number(char *buf, char *end, unsigned long long >>> num, >>> return buf; >>> } >>> >>> +#define ERRORCODE(x) { .str = #x, .

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Rasmus Villemoes
On 25/08/2019 01.37, Uwe Kleine-König wrote: > pr_info("probing failed (%dE)\n", ret); > > expands to > > probing failed (EIO) > > if ret holds -EIO (or EIO). This introduces an array of error codes. If > the error code is missing, %dE falls back to %d and so prints the plain > numbe

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Sourabh Jain
On 8/26/19 3:29 PM, Hari Bathini wrote: > > > On 10/08/19 11:29 PM, Sourabh Jain wrote: >> Add a sys interface to allow querying the memory reserved by >> fadump for saving the crash dump. >> >> Add an ABI doc entry for new sysfs interface. >>- /sys/kernel/fadump_mem_reserved >> >> Signed-

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Sourabh Jain
On 8/26/19 3:46 PM, Sourabh Jain wrote: > > > On 8/26/19 3:29 PM, Hari Bathini wrote: >> >> >> On 10/08/19 11:29 PM, Sourabh Jain wrote: >>> Add a sys interface to allow querying the memory reserved by >>> fadump for saving the crash dump. >>> >>> Add an ABI doc entry for new sysfs interface.

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Hari Bathini
On 26/08/19 4:14 PM, Sourabh Jain wrote: > > > On 8/26/19 3:46 PM, Sourabh Jain wrote: >> >> >> On 8/26/19 3:29 PM, Hari Bathini wrote: >>> >>> >>> On 10/08/19 11:29 PM, Sourabh Jain wrote: Add a sys interface to allow querying the memory reserved by fadump for saving the crash dump.

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Petr Mladek
On Sun 2019-08-25 11:14:42, Uwe Kleine-König wrote: > Hello Andrew, > > On Sat, Aug 24, 2019 at 04:58:29PM -0700, Andrew Morton wrote: > > (cc printk maintainers). > > Ah, I wasn't aware there is something like them. Thanks > > > On Sun, 25 Aug 2019 01:37:23 +0200 Uwe Kleine-König > > wrote:

[PATCH] nvmem: core: add nvmem_device_find

2019-08-26 Thread Thomas Bogendoerfer
nvmem_device_find provides a way to search for nvmem devices with the help of a match function simlair to bus_find_device. Signed-off-by: Thomas Bogendoerfer --- Documentation/driver-api/nvmem.rst | 2 ++ drivers/nvmem/core.c | 61 +- include/li

Re: [RFC PATCH v3 01/19] skc: Add supplemental kernel cmdline support

2019-08-26 Thread Rob Herring
On Sun, Aug 25, 2019 at 10:15 PM Masami Hiramatsu wrote: > > Supplemental kernel command line (SKC) allows admin to pass a > tree-structured supplemental kernel commandline file (SKC file) > when boot up kernel. This expands the kernel command line in > efficient way. > > SKC file will contain som

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Enrico Weigelt, metux IT consult
On 25.08.19 01:37, Uwe Kleine-König wrote: Hi, +static noinline_for_stack > +char *errstr(char *buf, char *end, unsigned long long num,> + struct printf_spec spec)> +{ #1: why not putting that into some separate strerror() lib function ? This is something I've been looking for quite some

Re: [PATCH 0/6] hwspinlock: allow sharing of hwspinlocks

2019-08-26 Thread Fabien DESSENNE
Hi Bjorn, On 08/08/2019 5:37 PM, Bjorn Andersson wrote: > On Thu 08 Aug 05:52 PDT 2019, Fabien DESSENNE wrote: > >> On 07/08/2019 6:19 PM, Suman Anna wrote: >>> Hi Fabien, >>> >>> On 8/7/19 3:39 AM, Fabien DESSENNE wrote: Hi On 06/08/2019 11:30 PM, Suman Anna wrote: > On 8/6/19

Re: [PATCH 03/11] asm-generic: add generic dwarf definition

2019-08-26 Thread Changbin Du
Hi, Peter, On Mon, Aug 26, 2019 at 09:42:15AM +0200, Peter Zijlstra wrote: > On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > > Add generic DWARF constant definitions. We will use it later. > > > > Signed-off-by: Changbin Du > > --- > > include/asm-generic/dwarf.h | 199 ++

Re: [PATCH 05/11] ftrace: create memcache for hash entries

2019-08-26 Thread Changbin Du
On Mon, Aug 26, 2019 at 09:44:37AM +0200, Peter Zijlstra wrote: > On Sun, Aug 25, 2019 at 09:23:24PM +0800, Changbin Du wrote: > > When CONFIG_FTRACE_FUNC_PROTOTYPE is enabled, thousands of > > ftrace_func_entry instances are created. So create a dedicated > > memcache to enhance performance. > >

Re: [PATCH 01/11] ftrace: move recordmcount tools to scripts/ftrace

2019-08-26 Thread Steven Rostedt
On Sun, 25 Aug 2019 21:23:20 +0800 Changbin Du wrote: > Move ftrace tools to its own directory. We will add another tool later. > > Cc: John F. Reiser > Signed-off-by: Changbin Du > --- > scripts/.gitignore | 1 - > scripts/Makefile | 2 +- > scripts/Ma

[PATCH] doc: kselftest: update for clarity on running kselftests in CI rings

2019-08-26 Thread Shuah Khan
Update to add clarity and recommendations on running newer kselftests on older kernels vs. matching the kernel and kselftest revisions. The recommendation is "Match kernel revision and kselftest." Signed-off-by: Shuah Khan --- Documentation/dev-tools/kselftest.rst | 25 +

Re: [PATCH] doc: kselftest: update for clarity on running kselftests in CI rings

2019-08-26 Thread Shuah Khan
On 8/26/19 6:07 PM, Shuah Khan wrote: Update to add clarity and recommendations on running newer kselftests on older kernels vs. matching the kernel and kselftest revisions. The recommendation is "Match kernel revision and kselftest." Signed-off-by: Shuah Khan --- Documentation/dev-tools/kse

[PATCH v2] doc: kselftest: update for clarity on running kselftests in CI rings

2019-08-26 Thread Shuah Khan
Update to add clarity and recommendations on running newer kselftests on older kernels vs. matching the kernel and kselftest revisions. The recommendation is "Match kernel revision and kselftest." Signed-off-by: Shuah Khan --- Changes since v1: Fixed "WARNING: Title underline too short." Docum

[RFC v1 0/2] RCU dyntick nesting counter cleanups

2019-08-26 Thread Joel Fernandes (Google)
These patches clean up the usage of dynticks nesting counters simplifying the code, while preserving the usecases. It is a much needed simplification, makes the code less confusing, and prevents future bugs such as those that arise from forgetting that the dynticks_nmi_nesting counter is not a sim

[RFC v1 2/2] rcu/tree: Remove dynticks_nmi_nesting counter

2019-08-26 Thread Joel Fernandes (Google)
The dynticks_nmi_nesting counter serves 4 purposes: (a) rcu_is_cpu_rrupt_from_idle() needs to be able to detect first interrupt nesting level. (b) We need to detect half-interrupts till we are sure they're not an issue. However, change the comparison to DYNTICK_IRQ

[RFC v1 1/2] rcu/tree: Clean up dynticks counter usage

2019-08-26 Thread Joel Fernandes (Google)
The dynticks counter are confusing due to crowbar writes of DYNTICK_IRQ_NONIDLE whose purpose is to detect half-interrupts (i.e. we see rcu_irq_enter() but not rcu_irq_exit() due to a usermode upcall) and if so then do a reset of the dyntick_nmi_nesting counters. This patch tries to get rid of DYNT

Re: [RFC v1 2/2] rcu/tree: Remove dynticks_nmi_nesting counter

2019-08-26 Thread Joel Fernandes
On Mon, Aug 26, 2019 at 9:34 PM Joel Fernandes (Google) wrote: > > The dynticks_nmi_nesting counter serves 4 purposes: > And actually, I meant 3 purposes ;-) :-P thanks, - Joel > (a) rcu_is_cpu_rrupt_from_idle() needs to be able to detect first > interrupt nesting level. > >

Re: [RFC PATCH v3 01/19] skc: Add supplemental kernel cmdline support

2019-08-26 Thread Masami Hiramatsu
Hi Rob, Thank you for your comment! On Mon, 26 Aug 2019 08:27:48 -0500 Rob Herring wrote: > On Sun, Aug 25, 2019 at 10:15 PM Masami Hiramatsu wrote: > > > > Supplemental kernel command line (SKC) allows admin to pass a > > tree-structured supplemental kernel commandline file (SKC file) > > whe

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Michael Ellerman
Hari Bathini writes: > On 26/08/19 4:14 PM, Sourabh Jain wrote: >> On 8/26/19 3:46 PM, Sourabh Jain wrote: >>> On 8/26/19 3:29 PM, Hari Bathini wrote: On 10/08/19 11:29 PM, Sourabh Jain wrote: > Add a sys interface to allow querying the memory reserved by > fadump for saving the crash

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-26 Thread Hari Bathini
On 27/08/19 8:49 AM, Michael Ellerman wrote: > Hari Bathini writes: >> On 26/08/19 4:14 PM, Sourabh Jain wrote: >>> On 8/26/19 3:46 PM, Sourabh Jain wrote: On 8/26/19 3:29 PM, Hari Bathini wrote: > On 10/08/19 11:29 PM, Sourabh Jain wrote: >> Add a sys interface to allow querying t

Re: [PATCH V3 0/3] KVM/Hyper-V: Add Hyper-V direct tlb flush support

2019-08-26 Thread Vitaly Kuznetsov
lantianyu1...@gmail.com writes: > From: Tianyu Lan > > This patchset is to add Hyper-V direct tlb support in KVM. Hyper-V > in L0 can delegate L1 hypervisor to handle tlb flush request from > L2 guest when direct tlb flush is enabled in L1. > > Patch 2 introduces new cap KVM_CAP_HYPERV_DIRECT_TLB