[PATCH 71/73] perf tools: Add a 'percore' event qualifier

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Jin Yao Add a 'percore' event qualifier, like cpu/event=0,umask=0x3,percore=1/, that sums up the event counts for both hardware threads in a core. We can already do this with --per-core, but it's often useful to do this together with other metrics that are collected per hardware thread.

[PATCH 68/73] perf intel-pt: Fix improved sample timestamp

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The decoder uses its current timestamp in samples. Usually that is a timestamp that has already passed, but in some cases it is a timestamp for a branch that the decoder is walking towards, and consequently hasn't reached. The intel_pt_sample_time() function decides which is

[PATCH 67/73] perf intel-pt: Fix instructions sampling rate

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The timestamp used to determine if an instruction sample is made, is an estimate based on the number of instructions since the last known timestamp. A consequence is that it might go backwards, which results in extra samples. Change it so that a sample is only made when the

[PATCH 72/73] perf stat: Factor out aggregate counts printing

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Jin Yao Move the aggregate counts printing to a new function print_counter_aggrdata, which will be used in following patches. Signed-off-by: Jin Yao Tested-by: Ravi Bangoria Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Kan Liang Cc: Peter Zijlstra

[PATCH 73/73] perf stat: Support 'percore' event qualifier

2019-05-17 Thread Arnaldo Carvalho de Melo
From: Jin Yao With this patch, we can use the 'percore' event qualifier in perf-stat. root@skl:/tmp# perf stat -e cpu/event=0,umask=0x3,percore=1/,cpu/event=0,umask=0x3/ -a -A -I1000 1.000773050 S0-C0 98,352,832 cpu/event=0,umask=0x3,percore=1/ (50.01%) 1.000773050 S0-C1

[v3 1/1] kconfig: Terminate menu blocks with a comment in the generated config

2019-05-17 Thread Alexander Popov
Currently menu blocks start with a pretty header but end with nothing in the generated config. So next config options stick together with the options from the menu block. Let's terminate menu blocks in the generated config with a comment and a newline if needed. Example: ...

Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-05-17 Thread Luck, Tony
On Fri, May 17, 2019 at 09:34:31PM +0200, Borislav Petkov wrote: > On Fri, May 17, 2019 at 11:06:07AM -0700, Luck, Tony wrote: > > and thus end up with that extra level on indent for the rest > > of the function. > > Ok: > > @@ -1569,7 +1575,13 @@ static void __mcheck_cpu_init_clear_banks(void)

Re: [PATCH v3 4/5] KVM: LAPIC: Delay trace advance expire delta

2019-05-17 Thread Sean Christopherson
On Thu, May 16, 2019 at 11:06:19AM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > wait_lapic_expire() call was moved above guest_enter_irqoff() because of > its tracepoint, which violated the RCU extended quiescent state invoked > by guest_enter_irqoff()[1][2]. This patch simply moves the

RE: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-05-17 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Borislav Petkov > Sent: Friday, May 17, 2019 2:35 PM > To: Luck, Tony > Cc: Ghannam, Yazen ; linux-e...@vger.kernel.org; > linux-kernel@vger.kernel.org; x...@kernel.org > Subject: Re: [PATCH v3 5/6] x86/MCE:

Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-05-17 Thread Borislav Petkov
On Fri, May 17, 2019 at 12:44:05PM -0700, Luck, Tony wrote: > Much neater :-) Finally! :-) > Acked-by: Tony Luck Thx. Yazen, any objections left? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH v3 5/5] KVM: LAPIC: Optimize timer latency further

2019-05-17 Thread Sean Christopherson
On Thu, May 16, 2019 at 11:06:20AM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Advance lapic timer tries to hidden the hypervisor overhead between the > host emulated timer fires and the guest awares the timer is fired. However, > it just hidden the time between

[PATCH] arch64: export __flush_dcache_area

2019-05-17 Thread Mark Salyzyn
Some (out of tree modular) drivers feel a need to ensure data is flushed to the DDR before continuing flow. Signed-off-by: Mark Salyzyn Cc: linux-kernel@vger.kernel.org Cc: kernel-t...@android.com --- arch/arm64/mm/cache.S | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-05-17 Thread Borislav Petkov
On Fri, May 17, 2019 at 07:49:10PM +, Ghannam, Yazen wrote: > > @@ -1569,7 +1575,13 @@ static void __mcheck_cpu_init_clear_banks(void) > > > > if (!b->init) > > continue; > > + > > + /* Check if any bits are implemented in h/w */ > >

Re: [PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun

2019-05-17 Thread Nicolin Chen
On Fri, May 17, 2019 at 03:09:22AM +, S.j. Wang wrote: > There is chip errata ERR008000, the reference doc is > (https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf), > > The issue is "While using ESAI transmit or receive and > an underrun/overrun happens, channel swap may occur. > The only

Re: [PATCH v3 3/5] KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace

2019-05-17 Thread Sean Christopherson
On Thu, May 16, 2019 at 11:06:18AM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Expose per-vCPU timer_advance_ns to userspace, so it is able to > query the auto-adjusted value. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Sean Christopherson > Cc: Liran Alon > Signed-off-by: Wanpeng

Re: [PATCH 1/1] arm64: dts: marvell: mcbin: enlarge PCI memory window

2019-05-17 Thread Gregory CLEMENT
Hi Heinrich Schuchardt, > Running a graphics adapter on the MACCHIATObin fails due to an > insufficently sized memory window. I think "insufficient" is enough or I miss something. > > Enlarge the memory window for the PCIe slot to 512 MiB. > > With the patch I am able to use a GT710 graphics

Re: [PATCH v5 1/6] drm: panfrost: add optional bus_clock

2019-05-17 Thread Rob Herring
On Fri, May 17, 2019 at 1:47 PM Clément Péron wrote: > > Allwinner H6 has an ARM Mali-T720 MP2 which required a bus_clock. > > Add an optional bus_clock at the init of the panfrost driver. > > Signed-off-by: Clément Péron > --- > drivers/gpu/drm/panfrost/panfrost_device.c | 25

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Stephen Smalley
On 5/17/19 3:28 PM, Sean Christopherson wrote: On Fri, May 17, 2019 at 02:05:39PM -0400, Stephen Smalley wrote: On 5/17/19 1:12 PM, Andy Lutomirski wrote: How can that work? Unless the API changes fairly radically, users fundamentally need to both write and execute the enclave. Some of it

Re: [PATCH 4/4] KVM: nVMX: Fix using __this_cpu_read() in preemptible context

2019-05-17 Thread Sean Christopherson
On Fri, May 17, 2019 at 04:49:50PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > BUG: using __this_cpu_read() in preemptible [] code: > qemu-system-x86/4590 > caller is nested_vmx_enter_non_root_mode+0xebd/0x1790 [kvm_intel] > CPU: 4 PID: 4590 Comm: qemu-system-x86 Tainted: G

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Andy Lutomirski
> On May 17, 2019, at 1:09 PM, Stephen Smalley wrote: > >> On 5/17/19 3:28 PM, Sean Christopherson wrote: >>> On Fri, May 17, 2019 at 02:05:39PM -0400, Stephen Smalley wrote: On 5/17/19 1:12 PM, Andy Lutomirski wrote: How can that work? Unless the API changes fairly radically,

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread hpa
On May 17, 2019 9:55:19 AM PDT, Roberto Sassu wrote: >This patch adds support for an alternative method to add xattrs to >files in >the rootfs filesystem. Instead of extracting them directly from the ram >disk image, they are extracted from a regular file called .xattr-list, >that >can be added

mainline/master boot bisection: v5.1-12172-g2c45e7fbc962 on meson-g12a-x96-max

2019-05-17 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

[PATCH v4 0/4] Some new features for the latency tracers

2019-05-17 Thread Viktor Rosendahl
Hello all, Changes in v4: - [PATCH 1/4]: * Improved support for multiple active trace instances by storing entries that cannot be notified immediately in a linked list instead of a single pointer. With multiple instances this could happen. * Register trace_maxlat_fsnotify_init()

[PATCH v4 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-05-17 Thread Viktor Rosendahl
This patch implements the feature that the tracing_max_latency file, e.g. /sys/kernel/debug/tracing/tracing_max_latency will receive notifications through the fsnotify framework when a new latency is available. One particularly interesting use of this facility is when enabling threshold tracing,

[PATCH v4 2/4] preemptirq_delay_test: Add the burst feature and a sysfs trigger

2019-05-17 Thread Viktor Rosendahl
This burst feature enables the user to generate a burst of preempt/irqsoff latencies. This makes it possible to test whether we are able to detect latencies that systematically occur very close to each other. The maximum burst size is 10. We also create 10 identical test functions, so that we get

[PATCH v4 4/4] ftrace: Add an option for tracing console latencies

2019-05-17 Thread Viktor Rosendahl
This new trace option "console-latency" will enable the latency tracers to trace the console latencies. Previously this has always been implicitely disabled. I guess this is because they are considered to be well known and unavoidable. However, for some organizations it may nevertheless be

[PATCH v4 3/4] Add the latency-collector to tools

2019-05-17 Thread Viktor Rosendahl
This is a tool that is intended to work around the fact that the preemptoff, irqsoff, and preemptirqsoff tracers only work in overwrite mode. The idea is to act randomly in such a way that we do not systematically lose any latencies, so that if enough testing is done, all latencies will be

RE: [PATCH v5 2/2] platform/mellanox/mlxbf-bootctl: Add the ABI definitions

2019-05-17 Thread Liming Sun
Thanks Greg for the comments! Please see my response inline. Regards, - Liming > -Original Message- > From: Greg Kroah-Hartman > Sent: Friday, May 17, 2019 1:59 PM > To: Liming Sun > Cc: Andy Shevchenko ; Darren Hart ; > Vadim Pasternak ; David > Woods ;

Re: [PATCH] ext4: Variable to signed to check return code

2019-05-17 Thread Theodore Ts'o
On Fri, May 17, 2019 at 11:25:06AM +0100, Lee Jones wrote: > On Fri, 17 May 2019, Philippe Mazenauer wrote: > > > Variables 'n' and 'err' are both used for less-than-zero error checking, > > however both are declared as unsigned. Ensure ext4_map_blocks() and > > add_system_zone() are able to have

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Stephen Smalley
On 5/17/19 4:14 PM, Andy Lutomirski wrote: On May 17, 2019, at 1:09 PM, Stephen Smalley wrote: On 5/17/19 3:28 PM, Sean Christopherson wrote: On Fri, May 17, 2019 at 02:05:39PM -0400, Stephen Smalley wrote: On 5/17/19 1:12 PM, Andy Lutomirski wrote: How can that work? Unless the API

Re: [PATCH] tracing: silence GCC 9 array bounds warning

2019-05-17 Thread Miguel Ojeda
On Fri, May 17, 2019 at 11:25 AM Miguel Ojeda wrote: > > ./include/linux/string.h:344:9: warning: '__builtin_memset' offset > [8505, 8560] from the object at 'iter' is out of the bounds of By the way, I noticed these offsets of the new warning seem to be off by 1, reported here:

[PATCH] aoe: list new maintainer for aoe driver

2019-05-17 Thread Ed Cashin
Justin Sanders, who has extensive experience with ATA over Ethernet in general and AoE SCSI and block-device drivers in particular, is ready to take on the role of aoe maintainer. The driver needs a more active maintainer. --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 1/1] arm64: dts: marvell: mcbin: enlarge PCI memory window

2019-05-17 Thread Heinrich Schuchardt
On 5/17/19 10:08 PM, Gregory CLEMENT wrote: > Hi Heinrich Schuchardt, > >> Running a graphics adapter on the MACCHIATObin fails due to an >> insufficently sized memory window. > I think "insufficient" is enough or I miss something. Thanks for reviewing. Do I have to resend with corrected wording?

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread Arvind Sankar
On Fri, May 17, 2019 at 01:18:11PM -0700, h...@zytor.com wrote: > > Ok... I just realized this does not work for a modular initramfs, composed at > load time from multiple files, which is a very real problem. Should be easy > enough to deal with: instead of one large file, use one companion

[PATCH 2/6] watchdog/hpwdt: Advertize max_hw_heartbeat_ms

2019-05-17 Thread Jerry Hoemann
Set max_hw_heartbeat_ms instead of max_timeout so that user client can set timeout range in excess of what the underlying hardware supports. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 4/6] watchdog/hpwdt: Add module parameter kdumptimeout.

2019-05-17 Thread Jerry Hoemann
Instead of unconditionally stopping the watchdog timer after receipt of a pretimeout NMI, reprogram the timeout based upon module parameter kdumptimeout. The provides a more flexible override than the depricated allow_kdump. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 27

[PATCH 0/6] watchdog/hpwdt: cleanups and kdump accommodations

2019-05-17 Thread Jerry Hoemann
First two changes makes hpwdt more generic. Next two changes make hpwdt work better with kdump. Jerry Hoemann (6): watchdog/hpwdt: Stop hpwdt on unregister. watchdog/hpwdt: Advertize max_hw_heartbeat_ms watchdog/hpwdt: Have core ping watchdog. watchdog/hpwdt: Add module parameter

[PATCH 3/6] watchdog/hpwdt: Have core ping watchdog.

2019-05-17 Thread Jerry Hoemann
Instead of stopping the hw timer during probe, have the core update the timer if the timer is already running. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/hpwdt.c

[PATCH 1/6] watchdog/hpwdt: Stop hpwdt on unregister.

2019-05-17 Thread Jerry Hoemann
Have the WD core stop the watchdog on unregister instead of explicitly calling hpwdt_stop() in hpwdt_exit(). Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index

[PATCH 6/6] watchdog/hpwdt: Reflect changes

2019-05-17 Thread Jerry Hoemann
Bump driver number to reflect recent changes. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index dc65006..9e02f88 100644 --- a/drivers/watchdog/hpwdt.c +++

[PATCH 5/6] watchdog/hpwdt: Update documentation

2019-05-17 Thread Jerry Hoemann
Update documentation to explain new module parameter kdumptimeout. Signed-off-by: Jerry Hoemann --- Documentation/watchdog/hpwdt.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/watchdog/hpwdt.txt b/Documentation/watchdog/hpwdt.txt index 55df692..35da141 100644 ---

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-17 Thread Alexei Starovoitov
On 5/17/19 11:40 AM, Song Liu wrote: > +Alexei, Daniel, and bpf > >> On May 17, 2019, at 2:10 AM, Peter Zijlstra wrote: >> >> On Fri, May 17, 2019 at 04:15:39PM +0800, Kairui Song wrote: >>> Hi, I think the actual problem is that bpf_get_stackid_tp (and maybe >>> some other bfp functions) is now

[PATCH 0/3] qcom_scm: Fix some dma mapping things

2019-05-17 Thread Stephen Boyd
This patch series fixes some DMA mapping problems reported in the qcom SCM driver. I haven't tested these patches at all so it could be totally broken. If someone can test them for me I'd appreciate it. Otherwise, I'll spend some time dusting off modem loading code to see if it works. Stephen

[PATCH 3/3] firmware: qcom_scm: Fix some typos in docs and printks

2019-05-17 Thread Stephen Boyd
Some words are misspelled and we put a full stop after a return value integer. Fix these things up so it doesn't look so odd. Cc: Ian Jackson Cc: Julien Grall Cc: Bjorn Andersson Cc: Avaneesh Kumar Dwivedi Signed-off-by: Stephen Boyd --- drivers/firmware/qcom_scm.c | 6 +++--- 1 file

[PATCH 2/3] firmware: qcom_scm: Cleanup code in qcom_scm_assign_mem()

2019-05-17 Thread Stephen Boyd
There are some questionable coding styles in this function. It looks quite odd to deref a pointer with array indexing that only uses the first element. Also, destroying an input/output variable halfway through the function and then overwriting it on success is not clear. It's better to use a local

[PATCH 1/3] firmware: qcom_scm: Use proper types for dma mappings

2019-05-17 Thread Stephen Boyd
We need to use the proper types and convert between physical addresses and dma addresses here to avoid mismatch warnings. This is especially important on systems with a different size for dma addresses and physical addresses. Otherwise, we get the following warning: drivers/firmware/qcom_scm.c:

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread Arvind Sankar
On Fri, May 17, 2019 at 05:02:20PM -0400, Arvind Sankar wrote: > On Fri, May 17, 2019 at 01:18:11PM -0700, h...@zytor.com wrote: > > > > Ok... I just realized this does not work for a modular initramfs, composed > > at load time from multiple files, which is a very real problem. Should be > >

Re: [PATCH v3 2/4] clk: at91: sckc: add support to specify registers bit offsets

2019-05-17 Thread Alexandre Belloni
On 16/05/2019 08:10:34+, claudiu.bez...@microchip.com wrote: > >> @@ -69,10 +80,11 @@ static int clk_slow_osc_prepare(struct clk_hw *hw) > >>void __iomem *sckcr = osc->sckcr; > >>u32 tmp = readl(sckcr); > >> > >> - if (tmp & (AT91_SCKC_OSC32BYP | AT91_SCKC_OSC32EN)) > >> + if (tmp

Re: [PATCH] aoe: list new maintainer for aoe driver

2019-05-17 Thread Jens Axboe
On 5/17/19 2:29 PM, Ed Cashin wrote: > Justin Sanders, who has extensive experience with ATA over Ethernet > in general and AoE SCSI and block-device drivers in particular, is > ready to take on the role of aoe maintainer. The driver needs a more > active maintainer. Applied, thanks - and good

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread Rob Landley
On 5/17/19 3:18 PM, h...@zytor.com wrote: > Ok... I just realized this does not work for a modular initramfs, composed at > load time from multiple files, which is a very real problem. Should be easy > enough to deal with: instead of one large file, use one companion file per > source file,

[PATCH 1/2] Input: atmel_mxt_ts - add wakeup support

2019-05-17 Thread Stefano Manni
Add wakeup support to the maxtouch driver. The device can wake up the system from suspend, mark the IRQ as wakeup capable, so that device irq is not disabled during system suspend. Signed-off-by: Stefano Manni --- drivers/input/touchscreen/atmel_mxt_ts.c | 13 + 1 file changed, 13

[PATCH 2/2] dt-bindings: input: Add wakeup-source for atmel,maxtouch

2019-05-17 Thread Stefano Manni
Add wakeup support to the maxtouch driver. Signed-off-by: Stefano Manni --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt

Re: [GIT PULL] final round of SCSI updates for the 5.1+ merge window

2019-05-17 Thread Linus Torvalds
On Fri, May 17, 2019 at 7:44 AM James Bottomley wrote: > > This is the final round of mostly small fixes in our initial > submit. The fix for the read only regressions is the most extensive > change and also intrudes outside of SCSI because the partition and read > only handling is mostly in

[PATCH] locking/lockdep: Don't complain about wrong name for no validate class

2019-05-17 Thread Sebastian Andrzej Siewior
It is possible to ignore the validation for a certain log be using lockdep_set_novalidate_class() on it. Each invocation will assign a new name to the class it created for created __lockdep_no_validate__. That means that once lockdep_set_novalidate_class() has been used on two locks then

Re: [GIT PULL] sound fixes for 5.2-rc1

2019-05-17 Thread pr-tracker-bot
The pull request you sent on Fri, 17 May 2019 14:51:24 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-fix-5.2-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/72cf0b07418a9c8349aa9137194b1ccba6e54a9d Thank you! --

Re: [PATCH 1/1] arm64: dts: marvell: mcbin: enlarge PCI memory window

2019-05-17 Thread Gregory CLEMENT
> On 5/17/19 10:08 PM, Gregory CLEMENT wrote: >> Hi Heinrich Schuchardt, >> >>> Running a graphics adapter on the MACCHIATObin fails due to an >>> insufficently sized memory window. >> I think "insufficient" is enough or I miss something. > > Thanks for reviewing. Do I have to resend with

Re: [PATCH 1/2] Input: atmel_mxt_ts - add wakeup support

2019-05-17 Thread Dmitry Torokhov
Hi Sefano, On Fri, May 17, 2019 at 11:17:40PM +0200, Stefano Manni wrote: > Add wakeup support to the maxtouch driver. > The device can wake up the system from suspend, > mark the IRQ as wakeup capable, so that device > irq is not disabled during system suspend. This should already be handled by

Re: 5.1 and 5.1.1: BUG: unable to handle kernel paging request at ffffea0002030000

2019-05-17 Thread Sakari Ailus
On Sun, May 12, 2019 at 04:34:55AM -0400, Justin Piszcz wrote: > > > > -Original Message- > > From: Justin Piszcz [mailto:jpis...@lucidpixels.com] > > Sent: Sunday, May 12, 2019 4:28 AM > > To: LKML > > Subject: 5.1 and 5.1.1: BUG: unable to handle kernel paging request at > >

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-17 Thread Sean Christopherson
On Fri, May 17, 2019 at 04:09:22PM -0400, Stephen Smalley wrote: > On 5/17/19 3:28 PM, Sean Christopherson wrote: > >On Fri, May 17, 2019 at 02:05:39PM -0400, Stephen Smalley wrote: > >Yep, and that's by design in the overall proposal. The trick is that > >ENCLAVE_ADD takes a source VMA and

Re: [PATCH] kmemleak: fix check for softirq context

2019-05-17 Thread Andrew Morton
On Fri, 17 May 2019 19:15:07 +0200 Dmitry Vyukov wrote: > From: Dmitry Vyukov > > in_softirq() is a wrong predicate to check if we are in a softirq context. > It also returns true if we have BH disabled, so objects are falsely > stamped with "softirq" comm. The correct predicate is

[PATCH] MAINTAINERS: mvebu: Add git entry

2019-05-17 Thread Gregory CLEMENT
While there was a git repository used for the mvebu subsystem since many years, it was not documented. let's add it. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9cc6767e1b12..c50a975dd5ab 100644 ---

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread H. Peter Anvin
On 5/17/19 1:18 PM, h...@zytor.com wrote: > > Ok... I just realized this does not work for a modular initramfs, composed at > load time from multiple files, which is a very real problem. Should be easy > enough to deal with: instead of one large file, use one companion file per > source file,

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread H. Peter Anvin
On 5/17/19 2:02 PM, Arvind Sankar wrote: > On Fri, May 17, 2019 at 01:18:11PM -0700, h...@zytor.com wrote: >> >> Ok... I just realized this does not work for a modular initramfs, composed >> at load time from multiple files, which is a very real problem. Should be >> easy enough to deal with:

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-17 Thread Song Liu
> On May 17, 2019, at 2:06 PM, Alexei Starovoitov wrote: > > On 5/17/19 11:40 AM, Song Liu wrote: >> +Alexei, Daniel, and bpf >> >>> On May 17, 2019, at 2:10 AM, Peter Zijlstra wrote: >>> >>> On Fri, May 17, 2019 at 04:15:39PM +0800, Kairui Song wrote: Hi, I think the actual problem

Re: [PATCH] mm/dev_pfn: Exclude MEMORY_DEVICE_PRIVATE while computing virtual address

2019-05-17 Thread Andrew Morton
On Fri, 17 May 2019 16:08:34 +0530 Anshuman Khandual wrote: > The presence of struct page does not guarantee linear mapping for the pfn > physical range. Device private memory which is non-coherent is excluded > from linear mapping during devm_memremap_pages() though they will still > have

Re: [PATCH] arch64: export __flush_dcache_area

2019-05-17 Thread Catalin Marinas
On Fri, May 17, 2019 at 12:59:56PM -0700, Mark Salyzyn wrote: > Some (out of tree modular) drivers feel a need to ensure > data is flushed to the DDR before continuing flow. > > Signed-off-by: Mark Salyzyn > Cc: linux-kernel@vger.kernel.org > Cc: kernel-t...@android.com > --- >

[v6 3/3] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-17 Thread Pavel Tatashin
It is now allowed to use persistent memory like a regular RAM, but currently there is no way to remove this memory until machine is rebooted. This work expands the functionality to also allows hotremoving previously hotplugged persistent memory, and recover the device for use for other purposes.

[v6 2/3] mm/hotplug: make remove_memory() interface useable

2019-05-17 Thread Pavel Tatashin
As of right now remove_memory() interface is inherently broken. It tries to remove memory but panics if some memory is not offline. The problem is that it is impossible to ensure that all memory blocks are offline as this function also takes lock_device_hotplug that is required to change memory

[v6 0/3] "Hotremove" persistent memory

2019-05-17 Thread Pavel Tatashin
Changelog: v6 - A few minor changes and added reviewed-by's. - Spent time studying lock ordering issue that was reported by Vishal Verma, but that issue already exists in Linux, and can be reproduced with exactly the same steps with ACPI memory hotplugging. v5 - Addressed comments from Dan

[v6 1/3] device-dax: fix memory and resource leak if hotplug fails

2019-05-17 Thread Pavel Tatashin
When add_memory() function fails, the resource and the memory should be freed. Fixes: c221c0b0308f ("device-dax: "Hotplug" persistent memory for use like normal RAM") Signed-off-by: Pavel Tatashin Reviewed-by: Dave Hansen --- drivers/dax/kmem.c | 5 - 1 file changed, 4 insertions(+), 1

Re: [PATCH] arm64: dts: sdm845: Add CPU topology

2019-05-17 Thread Stephen Boyd
Quoting Amit Kucheria (2019-05-16 04:54:45) > (cc'ing Andy's correct email address) > > On Wed, May 15, 2019 at 2:46 AM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-05-13 04:54:12) > > > On Mon, May 13, 2019 at 4:31 PM Amit Kucheria > > > wrote: > > > > > > > > On Tue, Jan 15, 2019

Re: linux-next: Tree for May 17

2019-05-17 Thread Palmer Dabbelt
On Fri, 17 May 2019 02:43:08 PDT (-0700), ktk...@virtuozzo.com wrote: On 17.05.2019 12:41, Kirill Tkhai wrote: On 17.05.2019 07:21, Stephen Rothwell wrote: Hi all, Please do not add any v5.3 material to your linux-next included trees/branches until after v5.2-rc1 has been released. Changes

RE: [EXT] Re: [PATCH] arm64: dts: ls1028a: fix watchdog device node

2019-05-17 Thread Leo Li
> -Original Message- > From: Chuanhua Han > Sent: Friday, May 17, 2019 1:11 AM > To: Shawn Guo > Cc: Leo Li ; mark.rutl...@arm.com; linux-arm- > ker...@lists.infradead.org; devicet...@vger.kernel.org; linux- > ker...@vger.kernel.org; Ying Zhang > Subject: RE: [EXT] Re: [PATCH] arm64:

Re: [PATCH v6 1/3] media: v4l2-subdev: Verify arguments in v4l2_subdev_call()

2019-05-17 Thread Janusz Krzysztofik
On Friday, May 17, 2019 5:58:40 PM CEST Sakari Ailus wrote: > Hi Janusz, > > On Wed, May 15, 2019 at 10:56:36PM +0200, Janusz Krzysztofik wrote: > > Hi Sakari, > > > > On Wednesday, May 15, 2019 9:16:02 AM CEST Sakari Ailus wrote: > > > Hi Janusz, > > > > > > On Wed, May 15, 2019 at 12:48:21AM

[Patch] perf stat: always separate stalled cycles per insn

2019-05-17 Thread Cong Wang
The "stalled cycles per insn" is appended to "instructions" when the CPU has this hardware counter directly. We should always make it a separate line, which also aligns to the output when we hit the "if (total && avg)" branch. Before: $ sudo perf stat --all-cpus --field-separator , --log-fd 1

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread Arvind Sankar
On Fri, May 17, 2019 at 02:47:31PM -0700, H. Peter Anvin wrote: > On 5/17/19 2:02 PM, Arvind Sankar wrote: > > On Fri, May 17, 2019 at 01:18:11PM -0700, h...@zytor.com wrote: > >> > >> Ok... I just realized this does not work for a modular initramfs, composed > >> at load time from multiple

Re: [PATCH v3 00/30] Update cros_ec_commands.h

2019-05-17 Thread Gwendal Grignou
Lee, I verified and merged the changes on the kernels (3.18, 4.4 and 4.14) used on chromebook using a squashed version of these patches. (crrev.com/c/1583322, crrev.com/c/1583385, crrev.com/c/1583321 respectively) Please let me know if you have any questions. Thanks, Gwendal. On Thu, May 9,

[GIT PULL] RISC-V Patches for the 5.2 Merge Window, Part 1 v3

2019-05-17 Thread Palmer Dabbelt
The following changes since commit 085b7755808aa11f78ab9377257e1dad2e6fa4bb: Linux 5.1-rc6 (2019-04-21 10:45:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-5.2-mw2 for you to fetch changes up to

[PATCH 2/3] mmc: core: API for temporarily disabling auto-retuning due to errors

2019-05-17 Thread Douglas Anderson
Normally when the MMC core sees an "-EILSEQ" error returned by a host controller then it will trigger a retuning of the card. This is generally a good idea. However, if a command is expected to sometimes cause transfer errors then these transfer errors shouldn't cause a re-tuning. This

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread kbuild test robot
Hi Roberto, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1 next-20190517] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH 2/3 v5] add a new template field buf to contain the buffer

2019-05-17 Thread prakhar srivastava
On Tue, May 14, 2019 at 6:22 AM Roberto Sassu wrote: > > On 5/14/2019 7:07 AM, prakhar srivastava wrote: > > On Mon, May 13, 2019 at 6:48 AM Roberto Sassu > > wrote: > >> > >> On 5/11/2019 12:37 AM, Prakhar Srivastava wrote: > >>> From: Prakhar Srivastava > >>> > >>> The buffer(cmdline args)

[PATCH v7 1/2] mfd: cros_ec: Register cros_ec_lid_angle driver when presented

2019-05-17 Thread Gwendal Grignou
Register driver when EC indicates has precise lid angle calculation code running. Fix incorrect extra resource allocation in cros_ec_sensors_register(). Signed-off-by: Gwendal Grignou --- Changes in v7: - Split patch in two: This is the MFD section. drivers/mfd/cros_ec_dev.c | 13 ++---

[PATCH v7 2/2] iio: cros_ec: Add lid angle driver

2019-05-17 Thread Gwendal Grignou
Add a IIO driver that reports the angle between the lid and the base for ChromeOS convertible device. Tested on eve with ToT EC firmware. Check driver is loaded and lid angle is correct. Signed-off-by: Gwendal Grignou --- Changes in v7: - Split patch in two: This is the IIO section. Changes in

[PATCH v7 0/2] iio: cros_ec: Add lid angle driver

2019-05-17 Thread Gwendal Grignou
Add a IIO driver that reports the angle between the lid and the base for ChromeOS convertible device. Tested on eve with ToT EC firmware. Check driver is loaded and lid angle is correct. Changes in v7: - Split the patch in two, as there are no build dependency between mfd and iio changes.

[PATCH] mm, memcg: introduce memory.events.local

2019-05-17 Thread Shakeel Butt
The memory controller in cgroup v2 exposes memory.events file for each memcg which shows the number of times events like low, high, max, oom and oom_kill have happened for the whole tree rooted at that memcg. Users can also poll or register notification to monitor the changes in that file. Any

Re: [PATCH] phy: rockchip-dp: Avoid power leak by leaving the PHY power on

2019-05-17 Thread Doug Anderson
Elaine and Caesar, On Tue, May 7, 2019 at 4:50 PM Douglas Anderson wrote: > > While testing a newer kernel on rk3288-based Chromebooks I found that > the power draw in suspend was higher on newer kernels compared to the > downstream Chrome OS 3.14 kernel. Specifically the power of an >

Re: [PATCH] mm, memcg: introduce memory.events.local

2019-05-17 Thread Roman Gushchin
On Fri, May 17, 2019 at 04:49:09PM -0700, Shakeel Butt wrote: > The memory controller in cgroup v2 exposes memory.events file for each > memcg which shows the number of times events like low, high, max, oom > and oom_kill have happened for the whole tree rooted at that memcg. > Users can also poll

Re: [PATCH 20/73] perf machine: Null-terminate version char array upon fgets(/proc/version) error

2019-05-17 Thread Donald Yandt
Thank you Arnaldo for signing my patch. I think we should use version 4 of my patch and return NULL instead of null-terminating for efficiency. Thanks, Donald > On May 17, 2019, at 3:35 PM, Arnaldo Carvalho de Melo wrote: > > From: Donald Yandt > > If fgets() fails due to any other

Re: [RFC KVM 18/27] kvm/isolation: function to copy page table entries for percpu buffer

2019-05-17 Thread Jonathan Adams
On Tue, May 14, 2019 at 3:38 PM Sean Christopherson wrote: > On Tue, May 14, 2019 at 02:55:18PM -0700, Andy Lutomirski wrote: > > > On May 14, 2019, at 2:06 PM, Sean Christopherson > > > wrote: > > >> On Tue, May 14, 2019 at 01:33:21PM -0700, Andy Lutomirski wrote: > > >> I suspect that the

Congratulations! Your e-mail address was selected to receive our donation

2019-05-17 Thread Patrick and Frances Connolly

Re: [PATCH] mm/mmap: fix the adjusted length error

2019-05-17 Thread Michel Lespinasse
I worry that the proposed change turns the search from an O(log N) worst case into a O(N) one. To see why the current search is O(log N), it is easiest to start by imagining a simplified search algorithm that wouldn't include the low and high address limits. In that algorithm, backtracking

[PATCH v2] mm, memcg: introduce memory.events.local

2019-05-17 Thread Shakeel Butt
The memory controller in cgroup v2 exposes memory.events file for each memcg which shows the number of times events like low, high, max, oom and oom_kill have happened for the whole tree rooted at that memcg. Users can also poll or register notification to monitor the changes in that file. Any

[PATCH] Improve diagnostic on "Inconsistent kallsyms data"

2019-05-17 Thread Domenico Andreoli
Hi, linking kallsyms into the kernel occasionally triggers edge conditions of the linker heuristic and results in inconsistent System.map generation. This patch adds a first-aid analysis of such inconsistency in form of unified diff between the two generated symbol maps, where every symbol's

Re: [PATCH 12/18] soc: qcom: ipa: immediate commands

2019-05-17 Thread Alex Elder
On 5/15/19 7:35 AM, Alex Elder wrote: > On 5/15/19 3:16 AM, Arnd Bergmann wrote: >> On Sun, May 12, 2019 at 3:25 AM Alex Elder wrote: >> >>> +/* Initialize header space in IPA local memory */ >>> +int ipa_cmd_hdr_init_local(struct ipa *ipa, u32 offset, u32 size) >>> +{ >>> + struct

Re: [PATCH] block: bio: use struct_size() in kmalloc()

2019-05-17 Thread Chaitanya Kulkarni
- linux-bl...@vger.kernel.org to reduce the noise. I apologies Jens, I didn't apply and tested these patches before submitting the review and assumed that patches are compiled and tested, I'll do so for each patch before submitting the review. Xiaolinkui, Please send compiled and tested patch

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-05-17 Thread Li, Aubrey
On 2019/4/30 12:42, Ingo Molnar wrote: > >>> What's interesting is how in the over-saturated case (the last three >>> rows: 128, 256 and 512 total threads) coresched-SMT leaves 20-30% CPU >>> performance on the floor according to the load figures. >> Sorry for a delay, I got a chance to obtain

Re: [PATCH v2] mm, memcg: introduce memory.events.local

2019-05-17 Thread Roman Gushchin
On Fri, May 17, 2019 at 05:18:18PM -0700, Shakeel Butt wrote: > The memory controller in cgroup v2 exposes memory.events file for each > memcg which shows the number of times events like low, high, max, oom > and oom_kill have happened for the whole tree rooted at that memcg. > Users can also poll

Re: [PATCH v3 2/2] initramfs: introduce do_readxattrs()

2019-05-17 Thread kbuild test robot
Hi Roberto, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1 next-20190517] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [RFC PATCH v2 00/17] Core scheduling v2

2019-05-17 Thread Li, Aubrey
On 2019/5/18 8:58, Li, Aubrey wrote: > On 2019/4/30 12:42, Ingo Molnar wrote: >> What's interesting is how in the over-saturated case (the last three rows: 128, 256 and 512 total threads) coresched-SMT leaves 20-30% CPU performance on the floor according to the load figures. >>> >

Re: [PATCH v2] mm, memcg: introduce memory.events.local

2019-05-17 Thread Shakeel Butt
On Fri, May 17, 2019 at 5:59 PM Roman Gushchin wrote: > > On Fri, May 17, 2019 at 05:18:18PM -0700, Shakeel Butt wrote: > > The memory controller in cgroup v2 exposes memory.events file for each > > memcg which shows the number of times events like low, high, max, oom > > and oom_kill have

<    1   2   3   4   5   6   7   >