Re: [PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-04-02 Thread Sricharan R
Hi Viresh, On 4/2/2018 3:00 PM, Viresh Kumar wrote: > +Sricharan, > > On 30-03-18, 00:26, Ilia Lin wrote: >> In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 >> that have KRYO processors, the CPU ferequencies subset and voltage value >> of each OPP varies based on the silicon

Re: [PATCH v5 2/5] arm: arm64: page_alloc: reduce unnecessary binary search in memblock_next_valid_pfn()

2018-04-02 Thread kbuild test robot
: https://github.com/0day-ci/linux/commits/Jia-He/optimize-memblock_next_valid_pfn-and-early_pfn_valid-on-arm-and-arm64/20180402-131223 config: arm64-allmodconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https

[PATCH v4 7/8] efi: Decode IA32/X64 MS Check structure

2018-04-02 Thread Yazen Ghannam
From: Yazen Ghannam The IA32/X64 MS Check structure varies from the other Check structures in the the bit positions of its fields, and it includes an additional "Error Type" field. Decode the MS Check structure in a separate function. Based on UEFI 2.7 Table 257. IA32/X64 MS Check Field Descrip

[PATCH v4 5/8] efi: Decode IA32/X64 Cache, TLB, and Bus Check structures

2018-04-02 Thread Yazen Ghannam
From: Yazen Ghannam Print the common fields of the Cache, TLB, and Bus check structures.The fields of these three check types are the same except for a few more fields in the Bus check structure. The remaining Bus check structure fields will be decoded in a following patch. Based on UEFI 2.7, Ta

[PATCH v4 1/8] efi: Fix IA32/X64 Processor Error Record definition

2018-04-02 Thread Yazen Ghannam
From: Yazen Ghannam Based on UEFI 2.7 Table 255. Processor Error Record, the "Local APIC_ID" field is 8 bytes but Linux defines this field as 1 byte. Fix this in the struct cper_sec_proc_ia definition. Signed-off-by: Yazen Ghannam --- Link: https://lkml.kernel.org/r/20180324184940.19762-2-yaze

Re: [PATCH 3/4] tracing: Add action comparisons when testing matching hist triggers

2018-04-02 Thread Masami Hiramatsu
On Wed, 28 Mar 2018 15:10:55 -0500 Tom Zanussi wrote: > Actions also need to be considered when checking for matching triggers > - triggers differing only by action should be allowed, but currently > aren't because the matching check ignores the action and erroneously > returns -EEXIST. Hi Tom,

[PATCH v9 0/2] fpga: Lattice MachXO2 Slave SPI FPGA Manager support

2018-04-02 Thread Paolo Pisati
Hi all, this series adds support for the Lattice MachXO2 FPGA chip, programmed over slave SPI. Tested on a raspberry pi3, beaglebone black (little endian mode) and imx6 hummingboard (big endian mode) + bugblat's pif2 fpga hat (machxo2 7000HC) or tinyfpga A1/A2 (machxo2 256HC / 1200HC), in SPI slav

[PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Paolo Pisati
This patch adds support to the FPGA manager for programming MachXO2 device’s internal flash memory, via slave SPI. Signed-off-by: Paolo Pisati --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/machxo2-spi.c | 405

[PATCH v9 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description

2018-04-02 Thread Paolo Pisati
Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++ 1 file chang

Re: [PATCH v3 0/2] net: mvneta: improve suspend/resume

2018-04-02 Thread David Miller
From: Jisheng Zhang Date: Mon, 2 Apr 2018 11:22:29 +0800 > This series tries to optimize the mvneta's suspend/resume > implementation by only taking necessary actions. > > Since v2: > - keep rtnl lock when calling mvneta_start_dev() and mvneta_stop_dev() >Thank Russell for pointing this out

Re: [PATCH v2 1/2] trace: Default to using trace_global_clock if sched_clock is unstable

2018-04-02 Thread Steven Rostedt
On Fri, 30 Mar 2018 16:01:31 +0100 Chris Wilson wrote: > Across suspend, we may see a very large drift in timestamps if the sched > clock is unstable, prompting the global trace's ringbuffer code to warn > and suggest switching to the global clock. Preempt this request by > detecting when the sch

[PATCH] Fixed some style warnings and errors

2018-04-02 Thread Khan M Rashedun-Naby
Signed-off-by: Khan M Rashedun-Naby --- arch/x86/kernel/cpu/amd.c | 46 ++ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index f0e6456..1a6e45e 100644 --- a/arch/x86/kernel/cpu/amd.

Re: [PATCH] connector: add parent pid and tgid to coredump and exit events

2018-04-02 Thread Stefan Strogin
Hi David, I don't see how it breaks UAPI. The point is that structures coredump_proc_event and exit_proc_event are members of *union* event_data, thus position of the existing data in the structure is unchanged. Furthermore, this change won't increase size of struct proc_event, because comm_proc_e

Re: [PATCH] MAINTAINERS: vfio/platform: Update sub-maintainer

2018-04-02 Thread Alex Williamson
On Mon, 26 Mar 2018 13:42:02 -0600 Alex Williamson wrote: > Baptiste has changed positions and has not been active with > vfio-platform, replace with the current, de-facto sub-maintainer > Eric Auger. Also add Alvise Rigo as a designated reviewer. > > Cc: Eric Auger > Cc: Alvise Rigo > Signed

Re: [alsa-devel][PATCH 1/3 v3] ASoC: TSCS42xx: Shorten lines and other cleanup

2018-04-02 Thread Mark Brown
On Wed, Mar 28, 2018 at 10:08:22AM -0500, Steven Eckhoff wrote: > Shorten lines greater than 80 chars > Add const to struct snd_soc_component_driver I only seem to have patches 1 and 2 here (and they aren't threaded with each other which is a bit odd too). I seem to recall this has been happening

[RFC] vhost: introduce mdev based hardware vhost backend

2018-04-02 Thread Tiwei Bie
This patch introduces a mdev (mediated device) based hardware vhost backend. This backend is an abstraction of the various hardware vhost accelerators (potentially any device that uses virtio ring can be used as a vhost accelerator). Some generic mdev parent ops are provided for accelerator drivers

Re: [PATCH 0/4] tracing: A few inter-event bugfixes

2018-04-02 Thread Steven Rostedt
On Wed, 28 Mar 2018 15:10:52 -0500 Tom Zanussi wrote: > Hi Steven, > > Here are a few bugfixes that should be applied on top of the > 'Inter-event (e.g. latency) support v9' patchset. Thanks, I pulled them in and will send them out to git after testing has succeeded. -- Steve > > The first t

Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12)

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 10:03:58AM -0500, Christopher Lameter wrote: > On Sun, 1 Apr 2018, Alan Cox wrote: > > > >Restartable sequences are atomic with respect to preemption > > >(making it atomic with respect to other threads running on the > > >same CPU), as well as

Re: [PATCH] tracing: avoid string overflow

2018-04-02 Thread Steven Rostedt
On Wed, 28 Mar 2018 16:09:10 +0200 Arnd Bergmann wrote: > 'err' is used as a NUL-terminated string, but using strncpy() with the length > equal to the buffer size may result in lack of the termination: > > kernel/trace/trace_events_hist.c: In function 'hist_err_event': > kernel/trace/trace_event

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 09:40:40AM -0400, Steven Rostedt wrote: > On Mon, 02 Apr 2018 02:20:02 -0700 > syzbot wrote: > > > Hello, > > > > syzbot hit the following crash on upstream commit > > 0adb32858b0bddf4ada5f364a84ed60b196dbcda (Sun Apr 1 21:20:27 2018 +) > > Linux 4.16 > > syzbot dashb

Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12)

2018-04-02 Thread Mathieu Desnoyers
- On Apr 1, 2018, at 12:13 PM, One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: > On Tue, 27 Mar 2018 12:05:23 -0400 > Mathieu Desnoyers wrote: > >> Expose a new system call allowing each thread to register one userspace >> memory area to be used as an ABI between kernel and user-space

Re: [PATCH] locking/hung_task: Show all hung tasks before panic

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 11:12:04PM +0900, Tetsuo Handa wrote: > When we get a hung task it can often be valuable to see _all_ the hung > tasks on the system before calling panic(). > > Quoting from > https://syzkaller.appspot.com/text?tag=CrashReport&id=5412451675799552 >

Re: [PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-02 Thread Alan Tull
On Mon, Apr 2, 2018 at 10:13 AM, Paolo Pisati wrote: Hi Paolo, Thanks for making the changes I asked for. Except... is there a reason to not get state in machxo2_spi_state? It turns out the API will change again. I can do the fixup when that happens. Alan > This patch adds support to the FP

Re: Question regarding container affecting the host system mounts

2018-04-02 Thread Ronak Desai
I am able to workaround this issue by marking the mount as unbinadable and clearing the flag (CL_COPY_UNBINDABLE) in "copy_tree" function in fs/namespace.c. This skips the unbindable mounts to get cloned inside the new namespace. For my use-case this is acceptable. On Thu, Mar 29, 2018 at 3:50 PM,

Re: [PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-04-02 Thread Paul E. McKenney
.com/0day-ci/linux/commits/rao-shoaib-oracle-com/Move-kfree_rcu-out-of-rcu-code-and-use-kfree_bulk/20180402-135939 > base: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > rcu/next > reproduce: > # apt-get install sparse > make A

Re: [PATCH] cpufreq: ti-cpufreq: Fix couple of minor issues in probe()

2018-04-02 Thread Suman Anna
Hi Viresh, On 04/02/2018 01:32 AM, Viresh Kumar wrote: > On 26-03-18, 16:52, Suman Anna wrote: >> Commit 05829d9431df ("cpufreq: ti-cpufreq: kfree opp_data when >> failure") has fixed a memory leak in the failure path, however >> kmemleak still keeps reporting a leak even on successful probes. >>

[PATCH] PCI/AER: add pcie TLP header information in the tracepoint

2018-04-02 Thread Thomas Tai
When a PCIe AER occurs, the TLP header information is printed in the kernel message but it is missing from the tracepoint. A userspace program can use this information in the tracepoint to better analyze problems. Example tracepoint output: aer_event: :01:00.0 PCIe Bus Error: severity=Uncorrec

Re: call/normal switch was Re: omap4-droid4: voice call support was

2018-04-02 Thread Dan Williams
On Sun, 2018-04-01 at 10:30 -0700, Tony Lindgren wrote: > * Tony Lindgren [180401 15:38]: > > * Pavel Machek [180401 13:20]: > > > On Sat 2018-03-31 16:43:14, Tony Lindgren wrote: > > > > * Pavel Machek [180331 19:56]: > > > > > On Sat 2018-03-31 21:46:16, Pavel Machek wrote: > > > > > > On Sat

Re: [PATCH] tracing: Uninitialized variable in create_tracing_map_fields()

2018-04-02 Thread Steven Rostedt
On Wed, 28 Mar 2018 09:04:40 -0500 Tom Zanussi wrote: > Yes, this should definitely be initialized to 0, thanks for the patch! > > Acked-by: Tom Zanussi Thanks, I applied it and will push to git after it has succeeded in testing. -- Steve

RE: [PATCH v5 12/14] fm10k: Report PCIe link properties with pcie_print_link_status()

2018-04-02 Thread Keller, Jacob E
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Friday, March 30, 2018 2:06 PM > To: Tal Gilboa > Cc: Tariq Toukan ; Keller, Jacob E > ; Ariel Elior ; Ganesh > Goudar ; Kirsher, Jeffrey T > ; everest-linux...@cavium.com; intel-wired- > l...@lists.osuosl.org;

Re: Question regarding container affecting the host system mounts

2018-04-02 Thread Richard Weinberger
Ronak Desai, On Mon, Apr 2, 2018 at 5:40 PM, Ronak Desai wrote: > I am able to workaround this issue by marking the mount as unbinadable > and clearing the flag (CL_COPY_UNBINDABLE) in "copy_tree" function in > fs/namespace.c. This skips the unbindable mounts to get cloned inside > the new namesp

Re: call/normal switch was Re: omap4-droid4: voice call support was

2018-04-02 Thread Tony Lindgren
* Dan Williams [180402 15:51]: > On Sun, 2018-04-01 at 10:30 -0700, Tony Lindgren wrote: > > * Tony Lindgren [180401 15:38]: > > Found it! Here's what I need to do over n_gsm: > > > > ngsm 1 "AT+CFUN=1" > > ngsm 1 "AT+CFUN?" > > ngsm 2 "AT+EACC=3,0"# enable mic > > ngsm 2 "AT+CLVL=4" #

RE: [PATCH v5 03/14] PCI: Add pcie_bandwidth_capable() to compute max supported link bandwidth

2018-04-02 Thread Keller, Jacob E
> -Original Message- > From: Tal Gilboa [mailto:ta...@mellanox.com] > Sent: Monday, April 02, 2018 7:34 AM > To: Bjorn Helgaas > Cc: Tariq Toukan ; Keller, Jacob E > ; Ariel Elior ; Ganesh > Goudar ; Kirsher, Jeffrey T > ; everest-linux...@cavium.com; intel-wired- > l...@lists.osuosl.org;

Re: [GIT PULL] Andes(nds32) Port for Linux 4.17

2018-04-02 Thread Linus Torvalds
On Sun, Apr 1, 2018 at 11:01 PM, Greentime Hu wrote: > > This tag contains the core nds32 Linux port(including interrupt controller > driver and timer driver), which has been through 7 rounds of review on mailing > list. Can I get an overview of the nds32 architecture (uses, quirks, reasons for e

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Dmitry Vyukov
On Mon, Apr 2, 2018 at 5:33 PM, Paul E. McKenney wrote: > On Mon, Apr 02, 2018 at 09:40:40AM -0400, Steven Rostedt wrote: >> On Mon, 02 Apr 2018 02:20:02 -0700 >> syzbot wrote: >> >> > Hello, >> > >> > syzbot hit the following crash on upstream commit >> > 0adb32858b0bddf4ada5f364a84ed60b196dbcda

Re: [v3,4/4] watchdog: add Gateworks System Controller support

2018-04-02 Thread Tim Harvey
On Fri, Mar 30, 2018 at 11:19 AM, Guenter Roeck wrote: > On Fri, Mar 30, 2018 at 10:49:38AM -0700, Tim Harvey wrote: >> On Thu, Mar 29, 2018 at 6:07 PM, Guenter Roeck wrote: >> > On Wed, Mar 28, 2018 at 08:14:03AM -0700, Tim Harvey wrote: >> >> Signed-off-by: Tim Harvey >> >> --- >> >> drivers/

Re: [GIT PULL] misc core kernel changes

2018-04-02 Thread Linus Torvalds
On Sun, Apr 1, 2018 at 11:14 PM, Ingo Molnar wrote: > > - add membarriers to Documentation/features/ You had actually done this earlier already, so now there are two commits adding it. Oh well. Linus

[PATCH 3/5] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} implementation

2018-04-02 Thread Vitaly Kuznetsov
Implement HvFlushVirtualAddress{List,Space} hypercalls in a simplistic way: do full TLB flush with KVM_REQ_TLB_FLUSH and rely on kvm_vcpu_kick() kicking only vCPUs which are currently IN_GUEST_MODE. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 54 ++

[PATCH 5/5] KVM: x86: hyperv: declare KVM_CAP_HYPERV_TLBFLUSH capability

2018-04-02 Thread Vitaly Kuznetsov
We need a new capability to indicate support for the newly added HvFlushVirtualAddress{List,Space}{,Ex} hypercalls. Upon seeing this capability, userspace is supposed to announce PV TLB flush features by setting the appropriate CPUID bits (if needed). Signed-off-by: Vitaly Kuznetsov --- Document

[PATCH 2/5] KVM: x86: hyperv: use defines when parsing hypercall parameters

2018-04-02 Thread Vitaly Kuznetsov
Avoid open-coding offsets for hypercall input parameters, we already have defines for them. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index 98618e397342..3cb3bb

[PATCH 4/5] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE}_EX implementation

2018-04-02 Thread Vitaly Kuznetsov
Implement HvFlushVirtualAddress{List,Space}Ex hypercalls in a simplistic way: do full TLB flush with KVM_REQ_TLB_FLUSH and rely on kvm_vcpu_kick() kicking only vCPUs which are currently IN_GUEST_MODE. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 94

[PATCH 0/5] KVM: x86: hyperv: PV TLB flush for Windows guests

2018-04-02 Thread Vitaly Kuznetsov
This is both a new feature and a bugfix. Bugfix description: It was found that Windows 2016 guests on KVM crash when they have > 64 vCPUs, non-flat topology (>1 core/thread per socket; in case it has >64 sockets Windows just ignores vCPUs above 64) and Hyper-V enlightenments (any) are enabled. T

[PATCH 1/5] x86/hyper-v: move struct hv_flush_pcpu{,ex} definitions to common header

2018-04-02 Thread Vitaly Kuznetsov
Hyper-V TLB flush hypercalls definitions will be required for KVM so move them hyperv-tlfs.h. Structures also need to be renamed as '_pcpu' suffix is invalid for a general-purpose definition. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/mmu.c | 40 ++--

Re: [PATCH 002/109] kernel: use kernel_wait4() instead of sys_wait4()

2018-04-02 Thread Luis R. Rodriguez
On Thu, Mar 29, 2018 at 01:22:39PM +0200, Dominik Brodowski wrote: > All call sites of sys_wait4() set *rusage to NULL. Therefore, there is > no need for the copy_to_user() handling of *rusage, and we can use > kernel_wait4() directly. > > This patch is part of a series which removes in-kernel cal

[net-next 1/2] net: netcp: add api to support set rx mode in netcp modules

2018-04-02 Thread Murali Karicheri
From: WingMan Kwok This patch adds an API to support setting rx mode in netcp modules. If a netcp module needs to be notified when upper layer transitions from one rx mode to another and react accordingly, such a module will implement the new API set_rx_mode added in this patch. Currently rx mo

Re: [PATCH v8 42/42] ARM: dts: da850: Add clocks

2018-04-02 Thread David Lechner
On 04/02/2018 06:12 AM, Sekhar Nori wrote: On Friday 16 March 2018 10:50 PM, David Lechner wrote: On 03/15/2018 09:52 PM, David Lechner wrote: This adds clock provider nodes for da850 and wires them up to all of the devices. Signed-off-by: David Lechner --- ... This is the mcasp0: mcasp@10

[net-next 0/2] Add promiscous mode support in k2g network driver

2018-04-02 Thread Murali Karicheri
This patch adds support for promiscuous mode in network driver for K2G SoC. This depends on v3 of my series at https://www.spinics.net/lists/kernel/msg2765942.html I plan to fold this to the above series and submit again when the net-next merge windows opens. At this time, please review and let me

[net-next 2/2] net: netcp: ethss: k2g: add promiscuous mode support

2018-04-02 Thread Murali Karicheri
From: WingMan Kwok This patch adds support for promiscuous mode in k2g's network driver. When upper layer instructs to transition from non-promiscuous mode to promiscuous mode or vice versa K2G network driver needs to configure ALE accordingly so that in case of non-promiscuous mode, ALE will not

Re: [PATCH] Fixed some style warnings and errors

2018-04-02 Thread Borislav Petkov
On Mon, Apr 02, 2018 at 09:17:43PM +0600, Khan M Rashedun-Naby wrote: > @@ -820,14 +821,22 @@ static void init_amd(struct cpuinfo_x86 *c) > clear_cpu_cap(c, X86_FEATURE_MCE); > > switch (c->x86) { > - case 4:init_amd_k5(c); break; > - case 5:init_amd_k6(c); bre

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 06:04:35PM +0200, Dmitry Vyukov wrote: > On Mon, Apr 2, 2018 at 5:33 PM, Paul E. McKenney > wrote: > > On Mon, Apr 02, 2018 at 09:40:40AM -0400, Steven Rostedt wrote: > >> On Mon, 02 Apr 2018 02:20:02 -0700 > >> syzbot wrote: > >> > >> > Hello, > >> > > >> > syzbot hit the

Re: [PATCH v2] hugetlbfs: fix bug in pgoff overflow checking

2018-04-02 Thread Anders Roxell
On 30 March 2018 at 16:54, Mike Kravetz wrote: > This is a fix for a regression in 32 bit kernels caused by an > invalid check for pgoff overflow in hugetlbfs mmap setup. The > check incorrectly specified that the size of a loff_t was the > same as the size of a long. The regression prevents map

[PATCH] tpm: moves the delay_msec increment after sleep in tpm_transmit()

2018-04-02 Thread Nayna Jain
Commit e2fb992d82c6 ("tpm: add retry logic") introduced a new loop to handle the TPM2_RC_RETRY error. The loop retries the command after sleeping for the specified time, which is incremented exponentially in every iteration. This patch fixes the initial sleep to be the default sleep time. Fixes: c

Re: 4.16-rc2+git: pata_serverworks: hanging ata detection thread on HP DL380G3

2018-04-02 Thread Tejun Heo
Hello, On Fri, Mar 30, 2018 at 11:47:24AM +0300, Meelis Roos wrote: > Added CC-s, start of the thread is at > https://lkml.org/lkml/2018/2/26/165 > > > > > 4.16 git bootup on HP Proliant DL380 G3 pauses for a a minute or two > > > > and > > > > then continues with "blocked for more than 120 se

RE: [PATCH v5 05/14] PCI: Add pcie_print_link_status() to log link speed and whether it's limited

2018-04-02 Thread Keller, Jacob E
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Friday, March 30, 2018 2:05 PM > To: Tal Gilboa > Cc: Tariq Toukan ; Keller, Jacob E > ; Ariel Elior ; Ganesh > Goudar ; Kirsher, Jeffrey T > ; everest-linux...@cavium.com; intel-wired- > l...@lists.osuosl.org;

Re: Question regarding container affecting the host system mounts

2018-04-02 Thread Ronak Desai
On Mon, Apr 2, 2018 at 10:56 AM, Richard Weinberger wrote: > Ronak Desai, > > On Mon, Apr 2, 2018 at 5:40 PM, Ronak Desai > wrote: >> I am able to workaround this issue by marking the mount as unbinadable >> and clearing the flag (CL_COPY_UNBINDABLE) in "copy_tree" function in >> fs/namespace.c.

Re: [PATCH 12/15] dmaengine: pxa: make the filter function internal

2018-04-02 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Robert-Jarzmik/ARM-pxa-switch-to-DMA-slave-maps/20180402-233029 config: i386-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones

[GIT PULL] regmap updates for v4.17

2018-04-02 Thread Mark Brown
The following changes since commit 0c8efd610b58cb23cefdfa12015799079aef94ae: Linux 4.16-rc5 (2018-03-11 17:25:09 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v4.17 for you to fetch changes up to 2889312616aecf

[GIT PULL] pstore updates for v4.17-rc1

2018-04-02 Thread Kees Cook
Hi Linus, Please pull these pstore changes for v4.17-rc1. This cycle was almost entirely improvements to the pstore compression options, noted below. Thanks! -Kees The following changes since commit 91ab883eb21325ad80f3473633f794c78ac87f51: Linux 4.16-rc2 (2018-02-18 17:29:42 -0800) are ava

Re: [net-next 0/2] Add promiscous mode support in k2g network driver

2018-04-02 Thread David Miller
From: Murali Karicheri Date: Mon, 2 Apr 2018 12:17:17 -0400 > This patch adds support for promiscuous mode in network driver for K2G > SoC. This depends on v3 of my series at > https://www.spinics.net/lists/kernel/msg2765942.html The net-next tree is closed, please resubmit this series after the

[GIT] Networking

2018-04-02 Thread David Miller
1) Fix RCU locking in xfrm_local_error(), from Taehee Yoo. 2) Fix return value assignments and thus error checking in iwl_mvm_start_ap_ibss(), from Johannes Berg. 3) Don't count header length twice in vti4, from Stefano Brivio. 4) Fix deadlock in rt6_age_examine_exception, from Eric Dumazet.

Re: [PATCH v2] nvmet: fix nvmet_execute_write_zeroes function

2018-04-02 Thread Rodrigo Rosatti Galvao
I'm terribly sorry, but the +1 actually needs to be outside the le16_to_cpu. The above will work on little-endian machines, but not big. No problem at all. Thank you for helping on this. I'm going to send a V3 with this change. -- Rodrigo R. Galvão Intern - Linux Technology Center - IBM

[PATCH v3] nvmet: fix nvmet_execute_write_zeroes function

2018-04-02 Thread Rodrigo R. Galvao
When trying to issue write_zeroes command against TARGET with a 4K block size, it ends up hitting the following condition at __blkdev_issue_zeroout: if ((sector | nr_sects) & bs_mask) return -EINVAL; Causing the command to always fail. Considering we need to add 1 to get the

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Dmitry Vyukov
On Mon, Apr 2, 2018 at 6:21 PM, Paul E. McKenney wrote: > On Mon, Apr 02, 2018 at 06:04:35PM +0200, Dmitry Vyukov wrote: >> On Mon, Apr 2, 2018 at 5:33 PM, Paul E. McKenney >> wrote: >> > On Mon, Apr 02, 2018 at 09:40:40AM -0400, Steven Rostedt wrote: >> >> On Mon, 02 Apr 2018 02:20:02 -0700 >> >

Re: [v3,4/4] watchdog: add Gateworks System Controller support

2018-04-02 Thread Andrew Lunn
> The 'use case' we have been using this in for a couple years is that > users who want to use this watchdog will enable it externally (we have > a command in the bootloader) and if enabled the kernel driver (that > I'm proposing here which we've been using out-of-tree) will register > the watchdog

[GIT PULL] regulator updates for v4.17

2018-04-02 Thread Mark Brown
The following changes since commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274: Linux 4.16-rc7 (2018-03-25 12:44:30 -1000) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v4.17 for you to fetch changes up to 36fd679f

Re: [PATCH 12/15] dmaengine: pxa: make the filter function internal

2018-04-02 Thread kbuild test robot
: https://github.com/0day-ci/linux/commits/Robert-Jarzmik/ARM-pxa-switch-to-DMA-slave-maps/20180402-233029 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) drivers/mt

RE: general protection fault in native_write_cr4

2018-04-02 Thread Christopherson, Sean J
On Sat, 2018-03-31, Dmitry Vyukov wrote: > On Wed, Dec 27, 2017 at 7:31 PM, Dmitry Vyukov wrote: > > On Tue, Dec 26, 2017 at 9:52 AM, Dmitry Vyukov wrote: > >> On Wed, Dec 20, 2017 at 8:54 AM, Wanpeng Li wrote: > >>> 2017-12-20 15:49 GMT+08:00 syzbot > >>> : > Hello, > > syzkaller

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 06:32:03PM +0200, Dmitry Vyukov wrote: > On Mon, Apr 2, 2018 at 6:21 PM, Paul E. McKenney > wrote: > > On Mon, Apr 02, 2018 at 06:04:35PM +0200, Dmitry Vyukov wrote: > >> On Mon, Apr 2, 2018 at 5:33 PM, Paul E. McKenney > >> wrote: > >> > On Mon, Apr 02, 2018 at 09:40:40AM

Re: [PATCH v4 0/6] Coresight: Support panic kdump

2018-04-02 Thread Mathieu Poirier
Hi Leo, Please see below (and in upcoming patches) my comments related to your latest work. Thanks, Mathieu On Fri, Mar 30, 2018 at 11:15:18AM +0800, Leo Yan wrote: > This patch set is to explore Coresight tracing data for postmortem > debugging. When kernel panic happens, the Coresight panic k

Re: [PATCH] Fixed some style warnings and errors

2018-04-02 Thread Borislav Petkov
On Mon, Apr 02, 2018 at 10:24:36PM +0600, Khan M Rashedun-Naby wrote: > Thanks Borislav, but what about the data type fix ? :) First of all, please do not top-post when replying to lkml email and also, when replying, hit reply-to-all so that all the people on CC can get the answer. I've fixed that

Re: [net-next 2/2] net: netcp: ethss: k2g: add promiscuous mode support

2018-04-02 Thread Andrew Lunn
On Mon, Apr 02, 2018 at 12:17:19PM -0400, Murali Karicheri wrote: > +static int gbe_set_rx_mode(void *intf_priv, bool promisc) > +{ > + struct gbe_intf *gbe_intf = intf_priv; > + struct gbe_priv *gbe_dev = gbe_intf->gbe_dev; > + struct cpsw_ale *ale = gbe_dev->ale; > + unsigned long

Re: [PATCH v4 4/6] perf version: Print the compiled-in status of libraries

2018-04-02 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 30, 2018 at 05:27:14PM +0800, Jin Yao escreveu: > This patch checks the values passed by CFLAGS (-DHAVE_XXX) and then > print the status of libraries. > > For example, if HAVE_DWARF_SUPPORT is defined, that means the > library "dwarf" is compiled-in. The patch will print the status > "

[PATCH v2 0/2] ti-cpufreq: minor fixes/cleanups

2018-04-02 Thread Suman Anna
Hi Viresh, Please find the updated series replacing the previous patch [1] fixing couple of issues in the TI CPUFreq driver. I have split up the patches as per your comments on v1. Final code diff remains the same as before. regards Suman [1] https://patchwork.kernel.org/patch/10308925/ Suman A

[PATCH v2 2/2] cpufreq: ti-cpufreq: Use devres managed API in probe()

2018-04-02 Thread Suman Anna
The ti_cpufreq_probe() function uses regular kzalloc to allocate the ti_cpufreq_data structure and kfree for freeing this memory on failures. Simplify this code by using the devres managed API. Cc: Zumeng Chen Signed-off-by: Suman Anna --- drivers/cpufreq/ti-cpufreq.c | 7 ++- 1 file change

[PATCH v2 1/2] cpufreq: ti-cpufreq: Fix an incorrect error return value

2018-04-02 Thread Suman Anna
Commit 05829d9431df ("cpufreq: ti-cpufreq: kfree opp_data when failure") has fixed a memory leak in the failure path, however the patch returned a positive value on get_cpu_device() failure instead of the previous negative value. Fix this incorrect error return value properly. Fixes: 05829d9431df

[GIT PULL] SPI updates for v4.17

2018-04-02 Thread Mark Brown
The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda: Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-v4.17 for you to fetch changes up to 0930437e8f9d1f513ca7f130a

Re: [PATCH] x86/mm: Fix documentation of module mapping with 4-level paging

2018-04-02 Thread Andrey Ryabinin
On 04/02/2018 03:10 PM, Kirill A. Shutemov wrote: > f5a40711fa58 ("x86/mm: Set MODULES_END to 0xff00") changed > MODULES_END back to fixed value, but didn't update documentation of > memory layout for 4-level paging. > > Signed-off-by: Kirill A. Shutemov > Fixes: f5a40711fa58 ("x86/

[PATCH 1/2] iio: sca3000: Fix an error handling path in 'sca3000_probe()'

2018-04-02 Thread Christophe JAILLET
In case of error, we must undo the previous 'sca3000_configure_ring()' call in order to free some memory. Signed-off-by: Christophe JAILLET --- drivers/iio/accel/sca3000.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/accel/sca3000.c b/drivers/iio/accel/sca3

[PATCH 2/2] iio: sca3000: Handle errors returned by 'sca3000_configure_ring()' in 'sca3000_probe()'

2018-04-02 Thread Christophe JAILLET
'sca3000_configure_ring()' can fail, so test its return value and propagate it if needed. Signed-off-by: Christophe JAILLET --- Un-tested and not 100% sure that we should bail-out if it fails. --- drivers/iio/accel/sca3000.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/

KASAN: slab-out-of-bounds Read in ntfs_attr_find

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda (Sun Apr 1 21:20:27 2018 +) Linux 4.16 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=aed06913f36eff9b544e C reproducer: https://syzkaller.appspot.com/x/repro.c?id=59671926045

WARNING in ext4_superblock_csum_set

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda (Sun Apr 1 21:20:27 2018 +) Linux 4.16 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=f3b1a2c79758f3eec76c C reproducer: https://syzkaller.appspot.com/x/repro.c?id=61819813688

KASAN: use-after-free Write in __ext4_expand_extra_isize

2018-04-02 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda (Sun Apr 1 21:20:27 2018 +) Linux 4.16 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=f584efa0ac7213c226b7 C reproducer: https://syzkaller.appspot.com/x/repro.c?id=65133852061

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-04-02 Thread Logan Gunthorpe
On 30/03/18 01:45 PM, Jerome Glisse wrote: > Looking at upstream code it seems that the x86 bits never made it upstream > and thus what is now upstream is only for ARM. See [1] for x86 code. Dunno > what happen, i was convince it got merge. So yes current code is broken on > x86. ccing Joerg mayb

[PATCH] sched/rt: Fix rq->clock_update_flags < RQCF_ACT_SKIP warning

2018-04-02 Thread Davidlohr Bueso
While running rt-tests' pi_stress program I got the following splat: 444.884597] [ cut here ] [ 444.894784] rq->clock_update_flags < RQCF_ACT_SKIP [ 444.894798] WARNING: CPU: 27 PID: 0 at kernel/sched/sched.h:960 assert_clock_updated.isra.38.part.39+0x13/0x20 [ 444.92

[PATCH][RESEND] ASoC: Intel: atom: fix ACPI/PCI Kconfig

2018-04-02 Thread Pierre-Louis Bossart
The split between ACPI and PCI platforms generated issues with randconfig: with SND_SST_ATOM_HIFI2_PLATFORM_PCI=y and SND_SST_ATOM_HIFI2_PLATFORM=m, we get this module link failure: ERROR: "sst_context_init" [sound/soc/intel/atom/sst/snd-intel-sst-acpi.ko] undefined! ERROR: "sst_context_cleanup"

Re: [PATCH 3/4] tracing: Add action comparisons when testing matching hist triggers

2018-04-02 Thread Tom Zanussi
Hi Masami, On Tue, 2018-04-03 at 00:10 +0900, Masami Hiramatsu wrote: > On Wed, 28 Mar 2018 15:10:55 -0500 > Tom Zanussi wrote: > > > Actions also need to be considered when checking for matching triggers > > - triggers differing only by action should be allowed, but currently > > aren't because

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Dmitry Vyukov
On Mon, Apr 2, 2018 at 6:39 PM, Paul E. McKenney wrote: > On Mon, Apr 02, 2018 at 06:32:03PM +0200, Dmitry Vyukov wrote: >> On Mon, Apr 2, 2018 at 6:21 PM, Paul E. McKenney >> wrote: >> > On Mon, Apr 02, 2018 at 06:04:35PM +0200, Dmitry Vyukov wrote: >> >> On Mon, Apr 2, 2018 at 5:33 PM, Paul E.

[ANNOUNCE] iproute 4.16

2018-04-02 Thread Stephen Hemminger
Release of iproute2 for Linux 4.16 Lastest version iproute2 utility to support new features in Linux 4.16. This release covers a wide range of small changes. Lots of changes to: bpf, vrf, devlink, flower, and rdma support. Also more changes to ss and JSON support enhancements. The tarball can be

Re: [PATCH net 0/2] net: bgmac: Couple of sparse warnings

2018-04-02 Thread Florian Fainelli
On 04/01/2018 07:21 PM, David Miller wrote: > From: Florian Fainelli > Date: Sun, 1 Apr 2018 10:26:28 -0700 > >> This patch series fixes a couple of warnings reported by sparse, should not >> cause any functional problems since bgmac is typically used on LE platforms >> anyway. > > Series appli

Re: [PATCH net 0/2] net: bgmac: Couple of sparse warnings

2018-04-02 Thread David Miller
From: Florian Fainelli Date: Mon, 2 Apr 2018 10:17:36 -0700 > On 04/01/2018 07:21 PM, David Miller wrote: >> From: Florian Fainelli >> Date: Sun, 1 Apr 2018 10:26:28 -0700 >> >>> This patch series fixes a couple of warnings reported by sparse, should not >>> cause any functional problems since

Re: [PATCH 2/2] kfree_rcu() should use kfree_bulk() interface

2018-04-02 Thread Christopher Lameter
On Sun, 1 Apr 2018, rao.sho...@oracle.com wrote: > kfree_rcu() should use the new kfree_bulk() interface for freeing > rcu structures as it is more efficient. It would be even better if this approach could also use kmem_cache_free_bulk() or kfree_bulk()

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-04-02 Thread Jerome Glisse
On Mon, Apr 02, 2018 at 11:02:10AM -0600, Logan Gunthorpe wrote: > > > On 30/03/18 01:45 PM, Jerome Glisse wrote: > > Looking at upstream code it seems that the x86 bits never made it upstream > > and thus what is now upstream is only for ARM. See [1] for x86 code. Dunno > > what happen, i was co

Re: INFO: task hung in perf_trace_event_unreg

2018-04-02 Thread Paul E. McKenney
On Mon, Apr 02, 2018 at 07:11:50PM +0200, Dmitry Vyukov wrote: > On Mon, Apr 2, 2018 at 6:39 PM, Paul E. McKenney > wrote: > > On Mon, Apr 02, 2018 at 06:32:03PM +0200, Dmitry Vyukov wrote: > >> On Mon, Apr 2, 2018 at 6:21 PM, Paul E. McKenney > >> wrote: > >> > On Mon, Apr 02, 2018 at 06:04:35PM

Re: [PATCH v4 2/6] doc: Add documentation for Coresight panic kdump

2018-04-02 Thread Mathieu Poirier
On Fri, Mar 30, 2018 at 11:15:20AM +0800, Leo Yan wrote: > Add detailed documentation for Coresight panic kdump, which contains > the idea for why need Coresight panic kdump and introduce the > implementation of Coresight panic kdump framework; the last section is > to explain what's usage. > > Cr

Re: [PATCH][RESEND] ASoC: Intel: atom: fix ACPI/PCI Kconfig

2018-04-02 Thread Andy Shevchenko
On Mon, 2018-04-02 at 12:06 -0500, Pierre-Louis Bossart wrote: > The split between ACPI and PCI platforms generated issues with > randconfig: > > with SND_SST_ATOM_HIFI2_PLATFORM_PCI=y and > SND_SST_ATOM_HIFI2_PLATFORM=m, we get this module link failure: > > ERROR: "sst_context_init" > [sound/soc

[PATCH 05/11] x86/mm: do not auto-massage page protections

2018-04-02 Thread Dave Hansen
From: Dave Hansen A PTE is constructed from a physical address and a pgprotval_t. __PAGE_KERNEL, for instance, is a pgprot_t and must be converted into a pgprotval_t before it can be used to create a PTE. This is done implicitly within functions like pfn_pte() by massage_pgprot(). However, thi

[PATCH 00/11] [v3] Use global pages with PTI

2018-04-02 Thread Dave Hansen
Changes from v2: * Add performance numbers to changelogs * Fix compile error resulting from use of x86-specific __default_kernel_pte_mask in arch-generic mm/early_ioremap.c * Delay kernel text cloning until after we are done messing with it (patch 11). * Blacklist K8 explicitly from mapp

[PATCH 09/11] x86/pti: enable global pages for shared areas

2018-04-02 Thread Dave Hansen
From: Dave Hansen The entry/exit text and cpu_entry_area are mapped into userspace and the kernel. But, they are not _PAGE_GLOBAL. This creates unnecessary TLB misses. Add the _PAGE_GLOBAL flag for these areas. Signed-off-by: Dave Hansen Cc: Andrea Arcangeli Cc: Andy Lutomirski Cc: Linus

[PATCH 10/11] x86/pti: never implicitly clear _PAGE_GLOBAL for kernel image

2018-04-02 Thread Dave Hansen
From: Dave Hansen Summary: In current kernels, with PTI enabled, no pages are marked Global. This potentially increases TLB misses. But, the mechanism by which the Global bit is set and cleared is rather haphazard. This patch makes the process more explicit. In the end, it leaves us with Glo

[PATCH 11/11] x86/pti: leave kernel text global for !PCID

2018-04-02 Thread Dave Hansen
Note: This has changed since the last version. It now clones the kernel text PMDs at a much later point and also disables this functionality on AMD K8 processors. Details in the patch. -- I'm sticking this at the end of the series because it's a bit weird. It can be dropped and the rest of the

<    1   2   3   4   5   6   >