[PATCH 1/2] fs/lock: skip lock owner pid translation in case we are in init_pid_ns

2018-06-08 Thread Konstantin Khorenko
If the flock owner process is dead and its pid has been already freed, pid translation won't work, but we still want to show flock owner pid number when expecting /proc/$PID/fdinfo/$FD in init pidns. Reproducer: process A process A1 process A2 fork()-> exit() open()

[PATCH] mfd: cros_ec: remove unused __remove function

2018-06-08 Thread Arnd Bergmann
This function is no longer called, so we get a harmless warning until it is removed as well: drivers/mfd/cros_ec_dev.c:265:13: error: '__remove' defined but not used [-Werror=unused-function] Fixes: 3aa2177e4787 ("mfd: cros_ec: Use devm_kzalloc for private data") Signed-off-by: Arnd Bergmann

RE: [PATCH v9 10/12] KVM: x86: Implement Intel Processor Trace MSRs read/write emulation

2018-06-08 Thread Kang, Luwei
> > + /* > > +* Any MSR write that attempts to change bits marked reserved will > > +* case a #GP fault. > > +*/ > > + if (data & vmx->pt_desc.ctl_bitmask) > > + return 1; > > + > > + /* > > +* Any attempt to modify IA32_RTIT_CTL while TraceEn is set will > > +*

Re: [PATCH v2 5/5] arm64: perf: Add support for chaining event counters

2018-06-08 Thread Mark Rutland
On Fri, Jun 08, 2018 at 03:46:57PM +0100, Suzuki K Poulose wrote: > On 06/06/2018 07:01 PM, Mark Rutland wrote: > > > Thus we need special allocation schemes > > > to make the full use of available counters. So, we allocate the > > > counters from either ends. i.e, chained counters are allocated >

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-08 Thread Dave Hansen
On 06/08/2018 08:17 AM, Baoquan He wrote: > > Then inside alloc_usemap_and_memmap(), For each node, we get how many > present sections on this node, call hook alloc_func(). Then we update > the pointer to point at a new position of usemap_map[] or map_map[]. I think this is the key.

Re: Smatch check for Spectre stuff

2018-06-08 Thread Josh Poimboeuf
On Thu, Apr 19, 2018 at 08:15:10AM +0300, Dan Carpenter wrote: > Several people have asked me to write this and I think one person was > maybe working on writing it themselves... > > The point of this check is to find place which might be vulnerable to > the Spectre vulnerability. In the kernel

Re: [PATCH] perf test: Test 6 dumps core on s390

2018-06-08 Thread Kim Phillips
On Fri, 8 Jun 2018 15:17:28 +0200 Thomas Richter wrote: > Perf test case 6 "Parse event definition strings" > dumps core when executed on s390. I reported it actually fails on any $ARCH system without Intel Processor Trace (PT) h/w: https://www.spinics.net/lists/linux-perf-users/msg06020.html

How to determine why kernel is dropping packets

2018-06-08 Thread Alex
Hi, I'm having a problem trying to figure out why the kernel is dropping packets on any machine connected to my cable modem and I don't know why. I've tried posting to fedora and network lists, but haven't had any luck, and hoped someone could help me here. I have a fedora28 system with

Re: [RFC PATCH v3 09/10] sched/fair: Select an energy-efficient CPU on task wake-up

2018-06-08 Thread Quentin Perret
On Friday 08 Jun 2018 at 13:59:28 (+0200), Juri Lelli wrote: > On 08/06/18 12:19, Quentin Perret wrote: > > On Friday 08 Jun 2018 at 12:24:46 (+0200), Juri Lelli wrote: > > > Hi, > > > > > > On 21/05/18 15:25, Quentin Perret wrote: > > > > > > [...] > > > > > > > +static int

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Dietmar Eggemann
On 06/08/2018 03:11 PM, Quentin Perret wrote: On Friday 08 Jun 2018 at 14:39:33 (+0200), Dietmar Eggemann wrote: [...] Even though we would be forced to get cpufreq's related cpumask from somewhere. That's the easy part. The difficult part is, where do you get power values from ? You have

[GIT PULL] arm64 patches for 4.18

2018-06-08 Thread Catalin Marinas
Hi Linus, Please pull the arm64 updates for 4.18 below. Apart from the core arm64 and perf changes, the Spectre v4 mitigation touches the arm KVM code and the ACPI PPTT support touches drivers/ (acpi and cacheinfo). I should have the maintainers' acks in place. Thanks. The following changes

Re: Simplifying our RCU models

2018-06-08 Thread Paul E. McKenney
On Tue, Apr 10, 2018 at 04:44:25PM -0700, Paul E. McKenney wrote: > On Thu, Mar 08, 2018 at 12:45:24PM -0800, Paul E. McKenney wrote: > > On Wed, Mar 07, 2018 at 10:48:50AM -0800, Linus Torvalds wrote: > > > On Wed, Mar 7, 2018 at 7:54 AM, Paul E. McKenney > > > wrote: > > > > > > > > Ah, and any

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-08 Thread Baoquan He
On 06/07/18 at 03:48pm, Dave Hansen wrote: > On 05/21/2018 03:15 AM, Baoquan He wrote: > > It's used to pass the size of map data unit into alloc_usemap_and_memmap, > > and is preparation for next patch. > > This is the "what", but not the "why". Could you add another sentence > or two to

[PATCH v2 2/4] clk: rockchip: add dt-binding header for px30

2018-06-08 Thread Elaine Zhang
Add the dt-bindings header for the px30, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for px30. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/px30-cru.h | 402 +++ 1 file changed, 402

Re: [PATCH v3 1/5] gpio: syscon: allow fetching syscon from parent node

2018-06-08 Thread Linus Walleij
On Thu, May 31, 2018 at 5:27 AM, wrote: > From: Heiko Stuebner > > Syscon nodes can be a simple-mfd and the syscon-users then be declared > as children of this node. That way the parent-child structure can be > better represented for devices that are fully embedded in the syscon. > > Therefore

Re: [PATCH v6 2/3] phy: Add QMP phy based UFS phy support for sdm845

2018-06-08 Thread Vivek Gautam
Hi Can, On 5/29/2018 10:07 AM, Can Guo wrote: Add UFS PHY support to make SDM845 UFS work with common PHY framework. Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-qmp.c | 200 +--- drivers/phy/qualcomm/phy-qcom-qmp.h | 15 +++ 2 files changed,

[PATCH] mmc: Move the mmc driver init earlier

2018-06-08 Thread Feng Tang
When doing some boot time optimization for an eMMC rootfs NUCs, we found the rootfs may spend around 100 microseconds waiting for eMMC card to be initialized, then the rootfs could be mounted. [1.216561] Waiting for root device /dev/mmcblk1p1... [1.289262] mmc1: new HS400

Re: [PATCH v2 09/16] irqchip/irq-mvebu-sei: add new driver for Marvell SEI

2018-06-08 Thread Miquel Raynal
Hi Marc, > > +static struct irq_chip mvebu_sei_ap_wired_irq_chip = { > > + .name = "AP wired SEI", > > + .irq_mask = mvebu_sei_mask_irq, > > + .irq_unmask = mvebu_sei_unmask_irq, > > + .irq_eoi= irq_chip_eoi_parent, > > +

[PATCH] libahci: Fix possible Spectre-v1 pmp indexing in ahci_led_store()

2018-06-08 Thread John Garry
Currently smatch warns of possible Spectre-V1 issue in ahci_led_store(): drivers/ata/libahci.c:1150 ahci_led_store() warn: potential spectre issue 'pp->em_priv' (local cap) Userspace controls @pmp from following callchain: em_message->store() ->ata_scsi_em_message_store() -->ap->ops->em_store()

Re: [PATCH 0/3] platform/x86: silead_dmi: Sort alphabetically + add 1 more model

2018-06-08 Thread Andy Shevchenko
On Thu, Jun 7, 2018 at 11:36 PM, Hans de Goede wrote: > Hi Darren, Andy, > > This series is mostly about sorting the silead_dmi.c entries > alphabetically to create some order in the chaos. > > It also adds an entry for 1 more model. > > Note this series applies on top of the pending >

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-08 Thread Dave Hansen
On 06/07/2018 11:27 PM, Baoquan He wrote: > In alloc_usemap_and_memmap(), it will call > sparse_early_usemaps_alloc_node() or sparse_early_mem_maps_alloc_node() > to allocate usemap and memmap for each node and install them into > usemap_map[] and map_map[]. Here we need pass in the number of

RE: [PATCH v9 06/12] KVM: x86: Add Intel Processor Trace virtualization mode

2018-06-08 Thread Kang, Luwei
> > From: Chao Peng > > > > Intel PT virtualization can be work in one of 2 possible modes: > > a. system-wide: trace both host and guest and output to host buffer; > > b. host-guest: trace host/guest simultaneous and output to their > >respective buffer. > > I think we discussed this

[PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-06-08 Thread Konstantin Khorenko
The behavior has been changed after 9d5b86ac13c5 ("fs/locks: Remove fl_nspid and use fs-specific l_pid for remote locks") and now /proc/$PID/fdinfo/$FD does not show the info about the lock * if the flock owner process is dead and its pid has been already freed or * if the lock owner is not

[PATCH 2/2] fs/lock: show locks taken by processes from another pidns

2018-06-08 Thread Konstantin Khorenko
Currently if we face a lock taken by a process invisible in the current pidns we skip the lock completely, but this 1) makes the output not that nice (root@vz7)/: cat /proc/${PID_A2}/fdinfo/3 pos:4 flags: 0212 mnt_id: 257 lock: (root@vz7)/: 2) makes it more

Re: [PATCH 2/2] PCI: imx: Initial imx7d pm support

2018-06-08 Thread Lucas Stach
Am Dienstag, den 29.05.2018, 22:39 +0300 schrieb Leonard Crestez: > On imx7d the phy is turned off in suspend and must be reset on resume. > Right now lspci -v fails after a suspend/resume cycle, fix this by > adding minimal suspend/resume code from the nxp vendor tree. > > This is currently only

RE: [PATCH v9 09/12] KVM: x86: Introduce a function to initialize the PT configuration

2018-06-08 Thread Kang, Luwei
> On Tue, May 22, 2018 at 12:52:12PM +0800, Luwei Kang wrote: > > Initialize the Intel PT configuration when cpuid update. > > Is it the CPUID configuration? Is it the MSR configuration? Is it both? > Kind of looks like both. Not sure what is the cpuid update, though. > > > Include cpuid

Re: Mounting corrupted HFS+ causes kernel NULL pointer dereference

2018-06-08 Thread Pavel Machek
On Sun 2018-06-03 15:49:56, Ernesto A. Fernández wrote: 1;2802;0c> Hi, thank you for your report. > > On Sun, Jun 03, 2018 at 06:52:19PM +0300, Anatoly Trosinenko wrote: > > How to reproduce: > > 1. Take kernel source v4.17-rc7 > > 2. Compile it with the config attached > > 3. Unpack and mount

Re: [PATCH] perf script: Show hw-cache events

2018-06-08 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 08, 2018 at 04:32:28PM +0530, Seeteena Thoufeek escreveu: > perf script fails to report hardware cache events (PERF_TYPE_HW_CACHE) > where as perf report shows the samples. Fix it. Ex, > > # perf record -e L1-dcache-loads ./a.out > [ perf record: Woken up 1 times to write data ] >

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Quentin Perret
On Friday 08 Jun 2018 at 18:39:56 (+0200), Dietmar Eggemann wrote: > On 06/08/2018 03:11 PM, Quentin Perret wrote: > > On Friday 08 Jun 2018 at 14:39:33 (+0200), Dietmar Eggemann wrote: > > [...] > > > > > > Even though we would be forced to get cpufreq's related cpumask from > > > > >

[PATCH] fat: fix sector print

2018-06-08 Thread Arnd Bergmann
Printing a sector_t using %ld fails when that is a 64-bit type on 32-bit architectures: fs/fat/inode.c: In function '__fat_get_block': fs/fat/inode.c:163:9: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'sector_t' {aka 'long long unsigned int'}

[linus:master] BUILD REGRESSION 68abbe729567cef128b2c2141f2ed2567f3b8372

2018-06-08 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master branch HEAD: 68abbe729567cef128b2c2141f2ed2567f3b8372 Merge branch 'akpm' (patches from Andrew) Regressions in current branch: arch/sh/include/asm/io.h:246:32: warning: cast to pointer from integer of

Re: [PATCH v4 3/4] mm/sparse: Add a new parameter 'data_unit_size' for alloc_usemap_and_memmap

2018-06-08 Thread Baoquan He
On 06/08/18 at 07:20am, Dave Hansen wrote: > On 06/07/2018 11:27 PM, Baoquan He wrote: > > In alloc_usemap_and_memmap(), it will call > > sparse_early_usemaps_alloc_node() or sparse_early_mem_maps_alloc_node() > > to allocate usemap and memmap for each node and install them into > > usemap_map[]

Re: [PATCH] cpufreq: intel_pstate: remove incorrect __initconst annotation

2018-06-08 Thread Srinivas Pandruvada
On Fri, 2018-06-08 at 17:14 +0200, Arnd Bergmann wrote: > We get a build warning about the newly introduced code in > intel_pstate_init_cpu() that references an __initconst variable after > it has been freed: > I see Rafael already addressed this.

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Quentin Perret
Hi Javi, On Friday 08 Jun 2018 at 14:39:42 (+0100), Javi Merino wrote: > On Wed, Jun 06, 2018 at 05:26:47PM +0100, Quentin Perret wrote: > > On Wednesday 06 Jun 2018 at 16:29:50 (+0100), Quentin Perret wrote: > > > On Wednesday 06 Jun 2018 at 17:20:00 (+0200), Juri Lelli wrote: > > > > > > This

Re: [PATCH 0/7] Uprobes: Support SDT markers having reference count (semaphore)

2018-06-08 Thread Masami Hiramatsu
On Fri, 8 Jun 2018 12:04:25 +0530 Ravi Bangoria wrote: > Hi Masami, > > >> So for kernel modules, > >> > >> is it fine to change current ABI from > >> uprobe_register(inode, offset, consumer) > >> to > >> uprobe_register(inode, offset, ref_ctr_offset, consumer) > >> > >> Or I should

Re: [linus:master] BUILD REGRESSION 68abbe729567cef128b2c2141f2ed2567f3b8372

2018-06-08 Thread Linus Torvalds
On Fri, Jun 8, 2018 at 8:12 AM kbuild test robot wrote: > > arch/sh/include/asm/io.h:246:32: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] > arch/x86/net/bpf_jit_comp32.c:2449 do_jit() warn: potential off by one > 'addrs[]' limit 'bpf_prog->len' >

Re: [PATCH v2 5/5] arm64: perf: Add support for chaining event counters

2018-06-08 Thread Suzuki K Poulose
On 08/06/18 16:24, Mark Rutland wrote: On Fri, Jun 08, 2018 at 03:46:57PM +0100, Suzuki K Poulose wrote: On 06/06/2018 07:01 PM, Mark Rutland wrote: Thus we need special allocation schemes to make the full use of available counters. So, we allocate the counters from either ends. i.e, chained

RE: [PATCH v9 03/12] perf/x86/intel/pt: Add new bit definitions for Intel PT MSRs

2018-06-08 Thread Kang, Luwei
> > These bit definitions are use for emulate MSRs read/write for KVM. For > > example, IA32_RTIT_CTL.FabricEn[bit 6] is available only when > > CPUID.(EAX=14H, ECX=0):ECX[bit 3] = 1. If KVM guest try to set this > > bit with CPUID.(EAX=14H, ECX=0):ECX[bit3] = 0 a #GP would be injected > > to KVM

RE: [PATCH v9 04/12] perf/x86/intel/pt: add new capability for Intel PT

2018-06-08 Thread Kang, Luwei
> > On Tue, May 22, 2018 at 12:52:07PM +0800, Luwei Kang wrote: > > > CPUID(EAX=14H,ECX=0):EBX[bit 3] = 1 indicates support of output to > > > Trace Transport subsystem. > > > MSR IA32_RTIT_CTL.FabricEn[bit 6] is reserved if CPUID.(EAX=14H, > > > ECX=0):ECX[bit 3] = 0. > > > > This should instead

RE: [PATCH v9 11/12] KVM: x86: Set intercept for Intel PT MSRs read/write

2018-06-08 Thread Kang, Luwei
> > From: Chao Peng > > > > Disable intercept Intel PT MSRs only when Intel PT is enabled in > > guest. But MSR_IA32_RTIT_CTL will alway be intercept. > > "I'd like to offer some suggestions as to how to make the commit message > friendlier for reviewing. > > Generally, for every patch, we want

[GIT PULL]: dmaengine updates for v4.18-rc1

2018-06-08 Thread Vinod Koul
Hey Linus, Here is the request to PULL for v4.18-rc1 to receive updates to few dmaengine drivers. The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at:

Re: [PATCH v4 1/7] interconnect: Add generic on-chip interconnect API

2018-06-08 Thread Alexandre Bailon
On 03/09/2018 10:09 PM, Georgi Djakov wrote: > This patch introduce a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the interconnect

Re: [PATCH] video/omap: add module license tags

2018-06-08 Thread Bartlomiej Zolnierkiewicz
On Monday, May 28, 2018 05:46:19 PM Arnd Bergmann wrote: > I got a bunch of warnings in a randconfig build: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/video/fbdev/omap/lcd_ams_delta.o > WARNING: modpost: missing MODULE_LICENSE() in > drivers/video/fbdev/omap/lcd_inn1510.o >

Re: [PATCH v2 11/11] misc: throttler: Add Chrome OS EC throttler

2018-06-08 Thread Matthias Kaehlcke
Hi Enric, On Fri, Jun 08, 2018 at 04:09:18PM +0200, Enric Balletbo i Serra wrote: > On 07/06/18 20:12, Matthias Kaehlcke wrote: > > The driver subscribes to throttling events from the Chrome OS > > embedded controller and enables/disables system throttling based > > on these events. > > > >

Re: [PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-06-08 Thread Cyrill Gorcunov
On Fri, Jun 08, 2018 at 05:27:10PM +0300, Konstantin Khorenko wrote: > The behavior has been changed after 9d5b86ac13c5 ("fs/locks: Remove fl_nspid > and use fs-specific l_pid for remote locks") > and now /proc/$PID/fdinfo/$FD does not show the info about the lock > * if the flock owner process is

Re: [PATCH v3 0/4] seccomp trap to userspace

2018-06-08 Thread Kees Cook
On Thu, May 31, 2018 at 7:49 AM, Tycho Andersen wrote: > Hi all, > > Here's a v3 of the seccomp trap to userspace, with all the nits from v2 > fixed. Open questions from v2 are still: > > 1. is it ok not to use netlink? Yeah, I think there isn't a sensible way to reuse that API, which is too

[PATCH] Fixed coding style problems.

2018-06-08 Thread Chris Opperman
This patch fixes a coding style problem in drivers/staging/comedi/drivers.c and is submitted for task 10 of the eudyptula challenge. Signed-off-by: Chris Opperman --- drivers/staging/comedi/drivers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] mm: fix null pointer dereference in mem_cgroup_protected

2018-06-08 Thread Roman Gushchin
Shakeel reported a crash in mem_cgroup_protected(), which can be triggered by memcg reclaim if the legacy cgroup v1 use_hierarchy=0 mode is used: [ 226.060572] BUG: unable to handle kernel NULL pointer dereference at 0120 [ 226.068310] PGD 801ff55da067 P4D 801ff55da067 PUD

Re: [PATCH 1/2] reset: imx7: Fix always writing bits as 0

2018-06-08 Thread Lucas Stach
Am Dienstag, den 29.05.2018, 22:39 +0300 schrieb Leonard Crestez: > Right now the only user of reset-imx7 is pci-imx6 and the > reset_control_assert and deassert calls on pciephy_reset don't toggle > the PCIEPHY_BTN and PCIEPHY_G_RST bits as expected. Fix this by writing > 1 or 0 respectively. >

RE: [PATCH v9 04/12] perf/x86/intel/pt: add new capability for Intel PT

2018-06-08 Thread Kang, Luwei
> > CPUID(EAX=14H,ECX=0):EBX[bit 3] = 1 indicates support of output to > > Trace Transport subsystem. > > MSR IA32_RTIT_CTL.FabricEn[bit 6] is reserved if CPUID.(EAX=14H, > > ECX=0):ECX[bit 3] = 0. > > This should instead say: > > This adds support for "output to Trace Transport subsystem"

Re: [PATCH v2 5/5] arm64: perf: Add support for chaining event counters

2018-06-08 Thread Suzuki K Poulose
Hi Mark, On 06/06/2018 07:01 PM, Mark Rutland wrote: On Tue, May 29, 2018 at 11:55:56AM +0100, Suzuki K Poulose wrote: Add support for 64bit event by using chained event counters and 64bit cycle counters. Arm v8 PMUv3 allows chaining a pair of adjacent PMU counters (with the lower counter

Re: [PATCH v2 13/16] dt-bindings/interrupt-controller: add documentation for Marvell SEI controller

2018-06-08 Thread Miquel Raynal
Hi Rob, Marc, On Tue, 5 Jun 2018 14:51:21 -0600, Rob Herring wrote: > On Tue, May 22, 2018 at 11:40:39AM +0200, Miquel Raynal wrote: > > Describe the System Error Interrupt (SEI) controller. It aggregates two > > types of interrupts, wired and MSIs from respectively the AP and the > > CPs, into

[PATCH v1] aio: mark __aio_sigset::sigmask const

2018-06-08 Thread Avi Kivity
io_pgetevents() will not change the signal mask. Mark it const to make it clear and to reduce the need for casts in user code. Signed-off-by: Avi Kivity --- include/uapi/linux/aio_abi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/aio_abi.h

[PATCH] cpufreq: intel_pstate: remove incorrect __initconst annotation

2018-06-08 Thread Arnd Bergmann
We get a build warning about the newly introduced code in intel_pstate_init_cpu() that references an __initconst variable after it has been freed: WARNING: vmlinux.o(.text+0xf9eca2): Section mismatch in reference from the function intel_pstate_init_cpu() to the variable

[GIT PULL] mtd: Changes for 4.18

2018-06-08 Thread Boris Brezillon
Hello Linus, Here is the MTD pull-request for 4.18. Regards, Boris The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/mtd/for-4.18 for

[PATCH] x86/intel_rdt: Enable CMT and MBM on new Skylake stepping

2018-06-08 Thread Tony Luck
New stepping of Skylake has fixes for cache occupancy and memory bandwidth monitoring. Update the code to enable these by default on newer steppings. Cc: sta...@vger.kernel.org # v4.14 Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/intel_rdt.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: 4.17-ad1: -march=native support or Kernel Ricers wanted

2018-06-08 Thread Alexey Dobriyan
On Fri, Jun 08, 2018 at 02:34:36PM +0800, kbuild test robot wrote: > url: > https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/4-17-ad1-march-native-support-or-Kernel-Ricers-wanted/20180605-090623 >execvp: scripts/march-native.sh: Permission denied You patch application scripts

Re: [PATCH] mm: fix null pointer dereference in mem_cgroup_protected

2018-06-08 Thread Shakeel Butt
On Fri, Jun 8, 2018 at 10:06 AM Roman Gushchin wrote: > > Shakeel reported a crash in mem_cgroup_protected(), which > can be triggered by memcg reclaim if the legacy cgroup v1 > use_hierarchy=0 mode is used: > > [ 226.060572] BUG: unable to handle kernel NULL pointer dereference > at

Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-06-08 Thread Alban
On Fri, 8 Jun 2018 12:34:12 +0100 Srinivas Kandagatla wrote: > >> Can you try this with your original subnode proposal: > >> just pass the subnode node pointer in np of nvmem_config: > >> > >> ->cut< > >> diff --git

Re: [PATCH v4 4/4] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-08 Thread Baoquan He
On 06/07/18 at 03:46pm, Dave Hansen wrote: > > @@ -297,8 +298,8 @@ void __init sparse_mem_maps_populate_node(struct page > > **map_map, > > if (!present_section_nr(pnum)) > > continue; > > > > - map_map[pnum] = sparse_mem_map_populate(pnum, nodeid,

Re: [PATCH v4 4/4] mm/sparse: Optimize memmap allocation during sparse_init()

2018-06-08 Thread Baoquan He
On 06/08/18 at 03:28pm, Baoquan He wrote: > On 06/07/18 at 03:46pm, Dave Hansen wrote: > > > @@ -297,8 +298,8 @@ void __init sparse_mem_maps_populate_node(struct page > > > **map_map, > > > if (!present_section_nr(pnum)) > > > continue; > > > > > > -

RE: [LINUX PATCH v9 1/4] Devicetree: Add pl353 smc controller devicetree binding information

2018-06-08 Thread Naga Sureshkumar Relli
Hi Boris, Thanks for letting us know the similar stuff. I will look into it and if any update is required, I will update as per that. Thanks, Naga Sureshkumar Relli > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Friday, June 8, 2018 11:22 AM >

Re: [PATCH] kbuild: fix endless syncconfig in case arch Makefile sets CROSS_COMPILE

2018-06-08 Thread Geert Uytterhoeven
Hi Yamada-san, On Fri, Jun 8, 2018 at 2:21 AM, Masahiro Yamada wrote: > Commit 21c54b774744 ("kconfig: show compiler version text in the top > comment") was intended to detect the compiler upgrade, but Geert > reported a breakage on the m68k build. > > The compiler upgrade is detected by the

Re: [PATCH RESEND] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-06-08 Thread Andy Shevchenko
On Fri, Jun 8, 2018 at 12:07 PM, Thierry Escande wrote: > But as I type I realize it's not necessary. I will simply enclose the call > to wait_for_random_bytes() by #if IS_MODULE() #endif so it gets called only > if built as a module, which is how run_kselftest.sh wants it... If > test_printf is

Re: [PATCH] clk: imx6: fix video_27m parent for IMX6SX_CLK_CKO1_SEL

2018-06-08 Thread Philipp Puschmann
I screwed up the title: IMX6SX_CLK_CKO1_SEL instead of IMX6QDL_CLK_CKO1_SEL I have resent the patch with correct title. Sorry for the inconvenience. Am 06.06.2018 um 15:07 schrieb Fabio Estevam: > On Wed, Jun 6, 2018 at 6:29 AM, Philipp Puschmann wrote: >> q/dl datasheets list the 5th selection

Re: [PATCH 2/4] Staging:rtl8192e Fix Comparison to False is error prone

2018-06-08 Thread Dan Carpenter
On Fri, Jun 08, 2018 at 12:33:56AM -0400, Janani Sankara Babu wrote: > This patch removes comparison to False(ie. bool) in the code > > Signed-off-by: Janani Sankara Babu > --- > drivers/staging/rtl8192e/rtl819x_BAProc.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > >

Re: [PATCH RESEND] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests

2018-06-08 Thread Thierry Escande
On 08/06/2018 13:22, Petr Mladek wrote: On Fri 2018-06-08 12:32:33, Thierry Escande wrote: On 08/06/2018 11:46, Andy Shevchenko wrote: On Fri, Jun 8, 2018 at 12:07 PM, Thierry Escande wrote: But as I type I realize it's not necessary. I will simply enclose the call to

Re: [PATCH v4 1/3] compiler-gcc.h: add gnu_inline to all inline declarations

2018-06-08 Thread Andrea Parri
On Fri, Jun 08, 2018 at 12:04:36PM +0200, Sedat Dilek wrote: > On Fri, Jun 8, 2018 at 9:59 AM, Arnd Bergmann wrote: > > On Thu, Jun 7, 2018 at 10:49 PM, Nick Desaulniers > > wrote: > >> Functions marked extern inline do not emit an externally visible > >> function when the gnu89 C standard is

Re: [PATCH 3.16 191/410] Input: mms114 - fix license module information

2018-06-08 Thread Ben Hutchings
On Thu, 2018-06-07 at 14:41 -0700, Dmitry Torokhov wrote: > On Thu, Jun 7, 2018 at 7:05 AM, Ben Hutchings wrote: > > 3.16.57-rc1 review patch. If anyone has any objections, please let me know. > > Not a hard objection, but rather a curiosity: for this to be pulled > into stable what user issue

Re: [PATCH v6 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style

2018-06-08 Thread Dan Carpenter
On Wed, Jun 06, 2018 at 12:40:03PM +0100, John Whitmore wrote: > @@ -1072,10 +1072,10 @@ void HTInitializeHTInfo(struct ieee80211_device *ieee) > pHTInfo->CurrentAMPDUFactor = pHTInfo->AMPDU_Factor; > > // Initialize all of the parameters related to 11n > - memset((void

Re: [LINUX PATCH v9 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-08 Thread Miquel Raynal
Hi Naga, > > > + ecc->read_page = pl353_nand_read_page_hwecc; > > > + ecc->size = PL353_NAND_ECC_SIZE; > > > + ecc->write_page = pl353_nand_write_page_hwecc; > > > + pl353_smc_set_ecc_pg_size(mtd->writesize); > > > + switch (mtd->writesize) { > > > +

[PATCH] kernel/hung_task.c: allow to set period separately from timeout

2018-06-08 Thread Dmitry Vyukov
Currently task hung checking period is equal to timeout, as the result hung is detected anywhere between timeout and 2*timeout. This is fine for most interactive environments, but this hurts automated testing setups (syzbot). In an automated setup we need to strictly order CPU lockup < RCU stall <

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-08 Thread Juri Lelli
On 08/06/18 14:54, Juri Lelli wrote: > On 08/06/18 14:48, Vincent Guittot wrote: > > On 8 June 2018 at 14:39, Juri Lelli wrote: > > > Hi Vincent, > > > > > > On 08/06/18 14:09, Vincent Guittot wrote: > > >> Now that we have both the dl class bandwidth requirement and the dl class > > >>

Re: [PATCH v2 12/16] dt-bindings/interrupt-controller: update Marvell ICU bindings

2018-06-08 Thread Miquel Raynal
Hi Rob, Thanks for reviewing. On Tue, 5 Jun 2018 14:29:02 -0600, Rob Herring wrote: > On Tue, May 22, 2018 at 11:40:38AM +0200, Miquel Raynal wrote: > > Change the documentation to reflect the new bindings used for Marvell > > ICU. This involves describing each interrupt group as a subnode of

WARNING in do_dentry_open

2018-06-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:68abbe729567 Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=130146af80 kernel config: https://syzkaller.appspot.com/x/.config?x=e5a4673d4582131c

general protection fault in pipe_write

2018-06-08 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7170e6045a6a strparser: Add __strp_unpause and use it in k.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15b5c8cf80 kernel config: https://syzkaller.appspot.com/x/.config?x=a601a80fec461d44

[PATCH] ipc: Limit sysctl value to IPCMNI

2018-06-08 Thread Takashi Iwai
Currently shmmni proc entry accepts all entered integer values, but the practical limit is IPCMNI (32768). This confuses user as if a bigger value were accepted but not applied correctly. This patch changes the proc entry to use *_minmax variant to limit the accepted values accordingly.

Re: [PATCH 2/4] watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work

2018-06-08 Thread Oleg Nesterov
On 06/07, Peter Zijlstra wrote: > > On Thu, Jun 07, 2018 at 02:33:12PM +0200, Peter Zijlstra wrote: > > > +static int softlockup_stop_fn(void *data) > > { > > + watchdog_disable(smp_processor_id()); > > + return 0; > > } > > > > +static void softlockup_stop_all(void) > > { > > + int cpu;

Re: [PATCH 3.16 000/410] 3.16.57-rc1 review

2018-06-08 Thread Guenter Roeck
On Thu, Jun 07, 2018 at 03:05:20PM +0100, Ben Hutchings wrote: > This is the start of the stable review cycle for the 3.16.57 release. > There are 410 patches in this series, which will be posted as responses > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH] clk: imx6: fix video_27m parent for IMX6QDL_CLK_CKO1_SEL

2018-06-08 Thread Fabio Estevam
Hi Philipp, On Fri, Jun 8, 2018 at 7:19 AM, Philipp Puschmann wrote: > q/dl datasheets list the 5th selection value for ck01_sel as > video_27M_clk_root. > > By replacing the dummy value we then can set IMX6QDL_CLK_VIDEO_27M > as parent for IMX6QDL_CLK_CKO1_SEL. > > Signed-off-by: Philipp

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Quentin Perret
On Friday 08 Jun 2018 at 14:39:33 (+0200), Dietmar Eggemann wrote: > In your current '(3)* Arm/Arm64 init code' (* see at the end of this email) > you have this dev_pm_opp_of_estimate_power() em_data_callback active_power > function. > > Let's say thermal and the task scheduler would initialize

[PATCH] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-06-08 Thread Tudor Ambarus
Based on Cyrille Pitchen's patch https://lkml.org/lkml/2017/3/22/935. This patch is a transitional patch in introducing the support of SFDP SPI memories with non-uniform erase sizes like Spansion s25fs512s. Non-uniform erase maps will be used later when initialized based on the SFDP data.

RE: [LINUX PATCH v9 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-08 Thread Naga Sureshkumar Relli
Hi Miquel, > -Original Message- > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > Sent: Friday, June 8, 2018 1:30 AM > To: Naga Sureshkumar Relli > Cc: boris.brezil...@bootlin.com; rich...@nod.at; w...@infradead.org; > computersforpe...@gmail.com; marek.va...@gmail.com;

Re: [PATCH 4.4 010/268] xen-swiotlb: fix the check condition for xen_swiotlb_free_coherent

2018-06-08 Thread Ben Hutchings
On Thu, 2018-06-07 at 13:59 -0700, Joe Jin wrote: > On 6/7/18 1:28 PM, Ben Hutchings wrote: > > On Mon, 2018-05-28 at 11:59 +0200, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch.  If anyone has any objections, please let me > > > know. > > > > > > -- > > > > > > From:

Re: [PATCH 06/10] x86/cet: Add arch_prctl functions for shadow stack

2018-06-08 Thread H.J. Lu
On Thu, Jun 7, 2018 at 9:38 PM, Andy Lutomirski wrote: > On Thu, Jun 7, 2018 at 9:10 PM H.J. Lu wrote: >> >> On Thu, Jun 7, 2018 at 4:01 PM, Andy Lutomirski wrote: >> > On Thu, Jun 7, 2018 at 3:02 PM H.J. Lu wrote: >> >> >> >> On Thu, Jun 7, 2018 at 2:01 PM, Andy Lutomirski wrote: >> >> > On

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Dietmar Eggemann
On 06/08/2018 10:25 AM, Quentin Perret wrote: Hi Dietmar, On Thursday 07 Jun 2018 at 17:55:32 (+0200), Dietmar Eggemann wrote: On 06/07/2018 05:19 PM, Quentin Perret wrote: Hi Juri, On Thursday 07 Jun 2018 at 16:44:09 (+0200), Juri Lelli wrote: On 21/05/18 15:24, Quentin Perret wrote:

Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-08 Thread Boris Brezillon
Hi Yogesh, On Fri, 8 Jun 2018 11:54:12 + Yogesh Narayan Gaur wrote: > Hi Frieder, > > I have tried to validate your patch on fsl,ls2080a target having 2 Spansion > NOR flash, S25FS512S, as slave device. > Below are my observations: > > Observation 1: > In Linux boot logs after driver

RE: FINAL 2018 UPDATE

2018-06-08 Thread Vogele, Everett A.
Dear Outlook User, This message is being sent to inform you that your Outlook account will expire on 8/6/2018 due to security updates. If you wish to continue using this Outlook account please upgrade to our secured services. Ignoring this message will result to your deactivation account

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-08 Thread Juri Lelli
On 08/06/18 14:48, Vincent Guittot wrote: > On 8 June 2018 at 14:39, Juri Lelli wrote: > > Hi Vincent, > > > > On 08/06/18 14:09, Vincent Guittot wrote: > >> Now that we have both the dl class bandwidth requirement and the dl class > >> utilization, we can detect when CPU is fully used so we

Re: [PATCH v2 11/16] irqchip/irq-mvebu-icu: add support for System Error Interrupts (SEI)

2018-06-08 Thread Miquel Raynal
Hi Marc, Thank you for the review. On Wed, 23 May 2018 15:23:48 +0100, Marc Zyngier wrote: > On 22/05/18 10:40, Miquel Raynal wrote: > > An SEI driver provides an MSI domain through which it is possible to > > raise SEIs. > > > > Handle the NSR probe function in a more generic way to support

Re: [PATCH 4.4 017/268] do d_instantiate/unlock_new_inode combinations safely

2018-06-08 Thread Ben Hutchings
On Mon, 2018-05-28 at 11:59 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Al Viro > > commit 1e2e547a93a00ebc21582c06ca3c6cfea2a309ee upstream. > > For anything NFS-exported we do _not_ want to

[PATCH] perf test: Test 6 dumps core on s390

2018-06-08 Thread Thomas Richter
Perf test case 6 "Parse event definition strings" dumps core when executed on s390. Root case is a NULL pointer supplied in function test_event() +---> parse_events() The third parameter is set to NULL: (gdb) where #0 parse_events (evlist=0x149dc90, str=0x133242a "intel_pt//u", err=0x0)

Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework

2018-06-08 Thread Javi Merino
On Wed, Jun 06, 2018 at 05:26:47PM +0100, Quentin Perret wrote: > On Wednesday 06 Jun 2018 at 16:29:50 (+0100), Quentin Perret wrote: > > On Wednesday 06 Jun 2018 at 17:20:00 (+0200), Juri Lelli wrote: > > > > > This brings me to another question. Let's say there are multiple > > > > > users of >

Re: BUG: unable to handle kernel NULL pointer dereference in corrupted

2018-06-08 Thread Dmitry Vyukov
On Fri, Jun 8, 2018 at 3:11 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:68abbe729567 Merge branch 'akpm' (patches from Andrew) > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16f7cebf80 > kernel config:

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-08 Thread Vincent Guittot
On 8 June 2018 at 15:36, Juri Lelli wrote: > On 08/06/18 14:54, Juri Lelli wrote: >> On 08/06/18 14:48, Vincent Guittot wrote: >> > On 8 June 2018 at 14:39, Juri Lelli wrote: >> > > Hi Vincent, >> > > >> > > On 08/06/18 14:09, Vincent Guittot wrote: >> > >> Now that we have both the dl class

[PATCH] add support to non-uniform SFDP SPI NOR flash memories

2018-06-08 Thread Tudor Ambarus
The commit message became wall-of-text, my feeling is that I heavily reworked the code so I changed the author. If someone thinks differently, please say and I'll change back to the initial authorship. What I've done: - minimize the amount of erase() calls by using the best sequence of erase

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-08 Thread Juri Lelli
Hi Vincent, On 08/06/18 14:09, Vincent Guittot wrote: > Now that we have both the dl class bandwidth requirement and the dl class > utilization, we can detect when CPU is fully used so we should run at max. > Otherwise, we keep using the dl bandwidth requirement to define the > utilization of the

Re: [PATCH v6 06/11] cpufreq/schedutil: use dl utilization tracking

2018-06-08 Thread Vincent Guittot
On 8 June 2018 at 14:39, Juri Lelli wrote: > Hi Vincent, > > On 08/06/18 14:09, Vincent Guittot wrote: >> Now that we have both the dl class bandwidth requirement and the dl class >> utilization, we can detect when CPU is fully used so we should run at max. >> Otherwise, we keep using the dl

Re: [PATCH v6 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style

2018-06-08 Thread John Whitmore
On Fri, Jun 08, 2018 at 03:18:51PM +0300, Dan Carpenter wrote: > On Wed, Jun 06, 2018 at 12:40:03PM +0100, John Whitmore wrote: > > @@ -1072,10 +1072,10 @@ void HTInitializeHTInfo(struct ieee80211_device > > *ieee) > > pHTInfo->CurrentAMPDUFactor = pHTInfo->AMPDU_Factor; > > > > //

[PATCH v7 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style

2018-06-08 Thread John Whitmore
Remove unneccessary parentheses, and removed unnecessary (void *) cast Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

  1   2   3   4   5   6   7   8   >