Re: [PATCH] wlcore/wl18xx: Add invert-irq OF property for physically inverted IRQ

2019-06-12 Thread Eugeniu Rosca
Hi, cc: Linus Walleij On Tue, Jun 11, 2019 at 10:00:41AM +0100, Marc Zyngier wrote: > On 11/06/2019 09:45, Geert Uytterhoeven wrote: > > CC irqchip > > > > Original thread at > > https://lore.kernel.org/lkml/20190607172958.20745-1-ero...@de.adit-jv.com/ > > > > On Mon, Jun 10, 2019 at 10:30 AM

Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-12 Thread Aneesh Kumar K.V
Dan Williams writes: > At namespace creation time there is the potential for the "expected to > be zero" fields of a 'pfn' info-block to be filled with indeterminate > data. While the kernel buffer is zeroed on allocation it is immediately > overwritten by nd_pfn_validate() filling it with the cu

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-12 Thread Sricharan R
Hi Christian, On 6/10/2019 5:45 PM, Christian Lamparter wrote: > On Monday, June 10, 2019 12:09:56 PM CEST Sricharan R wrote: >> Hi Christian, >> >> On 6/6/2019 2:11 AM, Christian Lamparter wrote: >>> On Wed, Jun 5, 2019 at 7:16 PM Sricharan R wrote: Add initial device tree support for

[PATCH net] mpls: fix af_mpls dependencies for real

2019-06-12 Thread Matteo Croce
Randy reported that selecting MPLS_ROUTING without PROC_FS breaks the build, because since commit c1a9d65954c6 ("mpls: fix af_mpls dependencies"), MPLS_ROUTING selects PROC_SYSCTL, but Kconfig's select doesn't recursively handle dependencies. Change the select into a dependency. Fixes: c1a9d65954c

Re: [Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-12 Thread Andy Shevchenko
On Thu, Jun 06, 2019 at 06:54:19AM +0530, Rajneesh Bhardwaj wrote: > Add the CPUID model number of Ice Lake Neural Network Processor for Deep > Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses > model number 0x9D and this will be documented in a future version of Intel > S

Re: [PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-12 Thread Jan Kara
On Tue 11-06-19 14:38:13, Ira Weiny wrote: > On Sun, Jun 09, 2019 at 09:00:24AM -0400, Jeff Layton wrote: > > On Wed, 2019-06-05 at 18:45 -0700, ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > > > GUP longterm pins of non-pagecache file system pages (eg FS DAX) are > > > currently disall

[PATCH V10 00/15] Add Tegra194 PCIe support

2019-06-12 Thread Vidya Sagar
Tegra194 has six PCIe controllers based on Synopsys DesignWare core. There are two Universal PHY (UPHY) blocks with each supporting 12(HSIO: Hisg Speed IO) and 8(NVHS: NVIDIA High Speed) lanes respectively. Controllers:0~4 use UPHY lanes from HSIO brick whereas Controller:5 uses UPHY lanes from NVH

[PATCH V10 02/15] PCI: Disable MSI for Tegra194 root port

2019-06-12 Thread Vidya Sagar
Tegra194 rootports don't generate MSI interrupts for PME and AER events. Since PCIe spec (Ref: r4.0 sec 7.7.1.2 and 7.7.2.2) doesn't support using a mix of INTx and MSI/MSI-X, MSI needs to be disabled to avoid root ports service drivers registering their respective ISRs with MSI interrupt and to le

[PATCH V10 01/15] PCI: Add #defines for some of PCIe spec r4.0 features

2019-06-12 Thread Vidya Sagar
Add #defines only for the Data Link Feature and Physical Layer 16.0 GT/s features. Signed-off-by: Vidya Sagar Reviewed-by: Thierry Reding --- Changes since [v9]: * None Changes since [v8]: * None Changes since [v7]: * None Changes since [v6]: * None Changes since [v5]: * None Changes since

Re: [PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2019-06-12 Thread Pavel Machek
On Tue 2019-06-11 15:30:19, Matthias Kaehlcke wrote: > On Tue, Jun 11, 2019 at 09:55:30AM -0700, Brian Norris wrote: > > On Tue, Jun 11, 2019 at 3:49 AM Daniel Thompson > > wrote: > > > This is a long standing flaw in the backlight interfaces. AFAIK generic > > > userspaces end up with a (flawed)

[PATCH V10 03/15] PCI: dwc: Perform dbi regs write lock towards the end

2019-06-12 Thread Vidya Sagar
Remove multiple write enable and disable sequences of dbi registers as Tegra194 implements writes to BAR-0 register (offset: 0x10) controlled by DBI write-lock enable bit thereby not allowing any further writes to BAR-0 register in config space to take place. Hence enabling write permission at the

[PATCH V10 04/15] PCI: dwc: Move config space capability search API

2019-06-12 Thread Vidya Sagar
Move PCIe config space capability search API to common DesignWare file as this can be used by both host and ep mode codes. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Reviewed-by: Thierry Reding --- Changes since [v9]: * None Changes since [v8]: * None Changes since [v7]: * Changed

[PATCH V10 05/15] PCI: dwc: Add ext config space capability search API

2019-06-12 Thread Vidya Sagar
Add extended configuration space capability search API using struct dw_pcie * pointer Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Acked-by: Thierry Reding --- Changes since [v9]: * None Changes since [v8]: * Added Acked-by from Thierry Changes since [v7]: * Changed data types of ret

[PATCH V10 07/15] PCI: dwc: Add support to enable CDM register check

2019-06-12 Thread Vidya Sagar
Add support to enable CDM (Configuration Dependent Module) register check for any data corruption based on the device-tree flag 'snps,enable-cdm-check'. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel Reviewed-by: Thierry Reding --- Changes since [v9]: * None Changes since [v8]: * None

[PATCH V10 06/15] dt-bindings: PCI: designware: Add binding for CDM register check

2019-06-12 Thread Vidya Sagar
Add support to enable CDM (Configuration Dependent Module) registers check for any data corruption. CDM registers include standard PCIe configuration space registers, Port Logic registers and iATU and DMA registers. Refer Section S.4 of Synopsys DesignWare Cores PCI Express Controller Databook Vers

[PATCH V10 08/15] dt-bindings: Add PCIe supports-clkreq property

2019-06-12 Thread Vidya Sagar
Some host controllers need to know the existence of clkreq signal routing to downstream devices to be able to advertise low power features like ASPM L1 substates. Without clkreq signal routing being present, enabling ASPM L1 sub states might lead to downstream devices falling off the bus. Hence a n

[PATCH V10 12/15] arm64: tegra: Enable PCIe slots in P2972-0000 board

2019-06-12 Thread Vidya Sagar
Enable PCIe controller nodes to enable respective PCIe slots on P2972- board. Following is the ownership of slots by different PCIe controllers. Controller-0 : M.2 Key-M slot Controller-1 : On-board Marvell eSATA controller Controller-3 : M.2 Key-E slot Signed-off-by: Vidya Sagar --- Changes

[PATCH V10 09/15] dt-bindings: PCI: tegra: Add device tree support for Tegra194

2019-06-12 Thread Vidya Sagar
Add support for Tegra194 PCIe controllers. These controllers are based on Synopsys DesignWare core IP. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding --- Changes since [v9]: * None Changes since [v8]: * Added Acked-by from Thierry Changes since [v7]: * Addressed

Re: [PATCH v2] device property: Add helpers to count items in an array

2019-06-12 Thread Andy Shevchenko
On Mon, May 20, 2019 at 04:50:04PM +0300, Andy Shevchenko wrote: > The usual pattern to allocate the necessary space for an array of properties > is > to count them first by calling: > > count = device_property_read_uXX_array(dev, propname, NULL, 0); > if (count < 0) > return count; >

[PATCH V10 10/15] dt-bindings: PHY: P2U: Add Tegra194 P2U block

2019-06-12 Thread Vidya Sagar
Add support for Tegra194 P2U (PIPE to UPHY) module block which is a glue module instantiated one for each PCIe lane between Synopsys DesignWare core based PCIe IP and Universal PHY block. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding --- Changes since [v9]: * None

[PATCH V10 11/15] arm64: tegra: Add P2U and PCIe controller nodes to Tegra194 DT

2019-06-12 Thread Vidya Sagar
Add P2U (PIPE to UPHY) and PCIe controller nodes to device tree. The Tegra194 SoC contains six PCIe controllers and twenty P2U instances grouped into two different PHY bricks namely High-Speed IO (HSIO-12 P2Us) and NVIDIA High Speed (NVHS-8 P2Us) respectively. Signed-off-by: Vidya Sagar --- Chang

[PATCH V10 13/15] phy: tegra: Add PCIe PIPE2UPHY support

2019-06-12 Thread Vidya Sagar
Synopsys DesignWare core based PCIe controllers in Tegra 194 SoC interface with Universal PHY (UPHY) module through a PIPE2UPHY (P2U) module. For each PCIe lane of a controller, there is a P2U unit instantiated at hardware level. This driver provides support for the programming required for each P2

[PATCH V10 14/15] PCI: tegra: Add Tegra194 PCIe support

2019-06-12 Thread Vidya Sagar
Add support for Synopsys DesignWare core IP based PCIe host controller present in Tegra194 SoC. Signed-off-by: Vidya Sagar Acked-by: Thierry Reding --- Changes since [v9]: * Used _relaxed() versions of readl() & writel() Changes since [v8]: * Made it dependent on ARCH_TEGRA_194_SOC directly Ch

[PATCH V10 15/15] arm64: Add Tegra194 PCIe driver to defconfig

2019-06-12 Thread Vidya Sagar
Add PCIe host controller driver for DesignWare core based PCIe controller IP present in Tegra194. Signed-off-by: Vidya Sagar --- Changes since [v9]: * None Changes since [v8]: * None Changes since [v7]: * None Changes since [v6]: * None Changes since [v5]: * None Changes since [v4]: * None

[PATCH V6 3/6] jump_label: Sort entries of the same key by the code

2019-06-12 Thread Daniel Bristot de Oliveira
In the batching mode, all the entries of a given key are updated at once. During the update of a key, a hit in the int3 handler will check if the hitting code address belongs to one of these keys. To optimize the search of a given code in the vector of entries being updated, a binary search is use

[PATCH V6 2/6] x86/jump_label: Add a __jump_label_set_jump_code() helper

2019-06-12 Thread Daniel Bristot de Oliveira
Move the definition of the code to be written from __jump_label_transform() to a specialized function. No functional change. Signed-off-by: Daniel Bristot de Oliveira Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Greg Kroah-Hartman Cc: Masami Hiramatsu Cc:

[PATCH V6 0/6] x86/jump_label: Bound IPIs sent when updating a static key

2019-06-12 Thread Daniel Bristot de Oliveira
While tuning a system with CPUs isolated as much as possible, we've noticed that isolated CPUs were receiving bursts of 12 IPIs, periodically. Tracing the functions that emit IPIs, we saw chronyd - an unprivileged process - generating the IPIs when changing a static key, enabling network timestapi

[PATCH V6 4/6] x86/alternative: Batch of patch operations

2019-06-12 Thread Daniel Bristot de Oliveira
Currently, the patch of an address is done in three steps: -- Pseudo-code #1 - Current implementation --- 1) add an int3 trap to the address that will be patched sync cores (send IPI to all other CPUs) 2) update all but the first byte of the patched range sy

Re: [PATCH v2 1/3] iio: common: cros_ec_sensors: support protocol v3 message

2019-06-12 Thread Fabien Lahoudere
Le mercredi 12 juin 2019 à 09:42 +0100, Lee Jones a écrit : > On Thu, 23 May 2019, Fabien Lahoudere wrote: > > > Version 3 of the EC protocol provides min and max frequencies and > > fifo > > size for EC sensors. > > > > Signed-off-by: Fabien Lahoudere > > Signed-off-by: Nick Vaccaro > > --- >

[PATCH V6 1/6] jump_label: Add a jump_label_can_update() helper

2019-06-12 Thread Daniel Bristot de Oliveira
Move the check if a jump_entry is valid to a function. No functional change. Signed-off-by: Daniel Bristot de Oliveira Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Greg Kroah-Hartman Cc: Masami Hiramatsu Cc: "Steven Rostedt (VMware)" Cc: Jiri Kosina Cc:

[PATCH V6 6/6] x86/jump_label: Batch jump label updates

2019-06-12 Thread Daniel Bristot de Oliveira
Currently, the jump label of a static key is transformed via the arch specific function: void arch_jump_label_transform(struct jump_entry *entry, enum jump_label_type type) The new approach (batch mode) uses two arch functions, the first has the same argumen

[PATCH] fault-inject: clean up debugfs file creation logic

2019-06-12 Thread Greg Kroah-Hartman
There is no need to check the return value of a debugfs_create_file call, a caller should never change what they do depending on if debugfs is working properly or not, so remove the checks, simplifying the logic in the file a lot. Also fix up the error check for debugfs_create_dir() which was not

[PATCH V6 5/6] jump_label: Batch updates if arch supports it

2019-06-12 Thread Daniel Bristot de Oliveira
If the architecture supports the batching of jump label updates, use it! An easy way to see the benefits of this patch is switching the schedstats on and off. For instance: -- %< #!/bin/sh while [ true ]; do sysctl -w kernel.sched_sch

Re: [PATCH] Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections"

2019-06-12 Thread Johan Hedberg
Hi, On 12 Jun 2019, at 12.38, Bastien Nocera wrote: > > On Wed, 2019-06-12 at 09:07 +0200, Greg Kroah-Hartman wrote: >> On Tue, Jun 11, 2019 at 11:36:26PM +0200, Marcel Holtmann wrote: >>> Hi Vasily, >>> Can we get this revert merged into stable branches? Bluetooth HID has been b

[PATCH -next] media: meson: vdec: Add missing kthread.h

2019-06-12 Thread YueHaibing
Fix building error: drivers/staging/media/meson/vdec/vdec.c: In function vdec_recycle_thread: drivers/staging/media/meson/vdec/vdec.c:59:10: error: implicit declaration of function kthread_should_stop; did you mean thread_saved_sp? [-Werror=implicit-function-declaration] Reported-by: Hulk Robot

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-06-12 Thread Tetsuo Handa
On 2019/06/12 0:10, Petr Mladek wrote: > On Sat 2019-06-08 11:45:45, Tetsuo Handa wrote: >> On 2019/06/08 2:09, Pavel Machek wrote: >>> On Tue 2019-05-28 19:15:43, Tetsuo Handa wrote: On 2019/05/28 17:51, Sergey Senozhatsky wrote: >> You are trying to omit passing KERN_UNSUPPRESSED by util

Re: [PATCH 2/2] staging: kpc2000: remove unnecessary comments in kp2000_pcie_probe

2019-06-12 Thread Simon Sandström
On 12/06, Greg KH wrote: > On Wed, Jun 12, 2019 at 10:39:36AM +0300, Dan Carpenter wrote: > > On Mon, Jun 10, 2019 at 10:05:35PM +0200, Simon Sandström wrote: > > > @@ -349,9 +340,7 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, > > > goto err_remove_ida; > > > } > > > > > > -

Re: [PATCH 2/4] mm: thp: make deferred split shrinker memcg aware

2019-06-12 Thread Kirill A. Shutemov
On Tue, Jun 11, 2019 at 10:06:36PM -0700, Yang Shi wrote: > > > On 6/11/19 7:47 PM, Kirill A. Shutemov wrote: > > On Fri, Jun 07, 2019 at 02:07:37PM +0800, Yang Shi wrote: > > > + /* > > > + * The THP may be not on LRU at this point, e.g. the old page of > > > + * NUMA migration. And PageTrans

Re: [PATCH v3 4/7] cpufreq: add driver for Raspbery Pi

2019-06-12 Thread Nicolas Saenz Julienne
On Tue, 2019-06-11 at 19:58 +0200, Nicolas Saenz Julienne wrote: > Raspberry Pi's firmware offers and interface though which update it's > performance requirements. It allows us to request for specific runtime > frequencies, which the firmware might or might not respect, depending on > the firmware

Re: [PATCH 4/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-12 Thread Kirill A. Shutemov
On Tue, Jun 11, 2019 at 10:07:54PM -0700, Yang Shi wrote: > > > On 6/11/19 7:52 PM, Kirill A. Shutemov wrote: > > On Fri, Jun 07, 2019 at 02:07:39PM +0800, Yang Shi wrote: > > > Currently shrinker is just allocated and can work when memcg kmem is > > > enabled. But, THP deferred split shrinker i

Re: [PATCH v3 3/5] brcmfmac: sdio: Disable auto-tuning around commands expected to fail

2019-06-12 Thread Ulf Hansson
On Mon, 10 Jun 2019 at 18:50, Doug Anderson wrote: > > Hi, > > On Mon, Jun 10, 2019 at 1:56 AM Hunter, Adrian > wrote: > > > > > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > > > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > > > @@ -16,6 +16,7 @@ > > > #inclu

[PATCH] x86/xen: disable nosmt in Xen guests

2019-06-12 Thread Juergen Gross
When running as a Xen guest selecting "nosmt" either via command line or implicitly via default settings makes no sense, as the guest has no clue about the real system topology it is running on. With Xen it is the hypervisor's job to ensure the proper bug mitigations are active regarding smt settin

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-12 Thread Vitaly Kuznetsov
Dmitry Safonov writes: > KVM support may be compiled as dynamic module, which triggers the > following splat on modprobe: > > KVM: vmx: using Hyper-V Enlightened VMCS > BUG: using smp_processor_id() in preemptible [] code: modprobe/466 > caller is debug_smp_processor_id+0x17/0x19 > CP

[PATCH v4] PCI: xilinx-nwl: Fix Multi MSI data programming

2019-06-12 Thread Bharat Kumar Gogada
The current Multi MSI data programming fails if multiple end points requesting MSI and multi MSI are connected with switch, i.e the current multi MSI data being given is not considering the number of vectors being requested in case of multi MSI. Ex: Two EP's connected via switch, EP1 requesting sin

Re: [Xen-devel] [PATCH] x86/xen: disable nosmt in Xen guests

2019-06-12 Thread Jan Beulich
>>> On 12.06.19 at 12:12, wrote: > When running as a Xen guest selecting "nosmt" either via command line > or implicitly via default settings makes no sense, as the guest has no > clue about the real system topology it is running on. With Xen it is > the hypervisor's job to ensure the proper bug m

[PATCH v3] mfd: Add support for Merrifield Basin Cove PMIC

2019-06-12 Thread Andy Shevchenko
Add an MFD driver for Intel Merrifield Basin Cove PMIC. Signed-off-by: Andy Shevchenko --- - updated copyright year to be 2019 - rebased on top of latest vanilla rc drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_mr

[PATCH v2 1/2] drm/komeda: Add new component komeda_splitter

2019-06-12 Thread james qian wang (Arm Technology China)
Similar to Layer Split, but Splitter is used for writeback, which splits the compiz result to two half parts and then feed them to two scalers. v2: Rebase Signed-off-by: James Qian Wang (Arm Technology China) --- .../arm/display/komeda/d71/d71_component.c| 63 +++ .../drm/ar

Re: [PATCH V5 5/7] i2c: tegra: fix msleep warning

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:12AM -0700, Bitan Biswas wrote: > Fix checkpatch.pl WARNING for delay of approximately 1msec > in flush i2c FIFO polling loop by using usleep_range(1000, 2000): > WARNING: msleep < 20ms can sleep for up to 20ms; see ... > Documentation/timers/timers-howto.txt > +

Re: [PATCH V5 1/7] i2c: tegra: clean up macros

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:08AM -0700, Bitan Biswas wrote: > Clean up macros by: > 1) removing unused macros > 2) replace constants by macro BIT() > > Signed-off-by: Bitan Biswas > Reviewed-by: Dmitry Osipenko Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v2] drivers: mfd: 88pm800: fix warning same module names

2019-06-12 Thread Lee Jones
On Wed, 12 Jun 2019, Anders Roxell wrote: > When building with CONFIG_MFD_88PM800 and CONFIG_REGULATOR_88PM800 > enabled as loadable modules, we see the following warning: > > warning: same module names found: > drivers/regulator/88pm800.ko > drivers/mfd/88pm800.ko > > Rework so the names ma

Re: [PATCH -next] media: meson: vdec: Add missing kthread.h

2019-06-12 Thread Maxime Jourdan
On Wed, Jun 12, 2019 at 12:05 PM YueHaibing wrote: > > Fix building error: > > drivers/staging/media/meson/vdec/vdec.c: In function vdec_recycle_thread: > drivers/staging/media/meson/vdec/vdec.c:59:10: error: implicit declaration > of function kthread_should_stop; > did you mean thread_saved_sp?

Re: [PATCH V5 3/7] i2c: tegra: fix alignment and spacing violations

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:10AM -0700, Bitan Biswas wrote: > Fix checkpatch.pl alignment and blank line check(s) in i2c-tegra.c > > Signed-off-by: Bitan Biswas > Reviewed-by: Dmitry Osipenko Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH V5 2/7] i2c: tegra: remove unnecessary variable init

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:09AM -0700, Bitan Biswas wrote: > Remove variable initializations in functions that > are followed by assignments before use > > Signed-off-by: Bitan Biswas > Reviewed-by: Dmitry Osipenko Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH V5 4/7] i2c: tegra: add spinlock definition comment

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:11AM -0700, Bitan Biswas wrote: > Fix checkpatch.pl CHECK as follows: > CHECK: spinlock_t definition without comment > + spinlock_t xfer_lock; > > Signed-off-by: Bitan Biswas > Reviewed-by: Dmitry Osipenko Applied to for-next, thanks! signature.asc Descrip

Re: [GIT PULL] PHY: for 5.2-rc

2019-06-12 Thread Kishon Vijay Abraham I
Hi, On 11/06/19 10:34 PM, Greg Kroah-Hartman wrote: > On Tue, Jun 11, 2019 at 07:31:22PM +0530, Kishon Vijay Abraham I wrote: >> Hi Greg, >> >> Please find the pull request for 5.2 -rc cycle. >> >> The major fix being moving supplies powering PLLs used by USB, SATA, >> PCIe to tegra-xusb driver fi

[PATCH v2 1/4] s390/pkey: Use -ENODEV instead of -EOPNOTSUPP

2019-06-12 Thread David Hildenbrand
systemd-modules-load.service automatically tries to load the pkey module on systems that have MSA. Pkey also requires the MSA3 facility and a bunch of subfunctions. Failing with -EOPNOTSUPP makes "systemd-modules-load.service" fail on any system that does not have all needed subfunctions. For exam

[PATCH v2 0/4] s390/crypto: Use -ENODEV instead of -EOPNOTSUPP

2019-06-12 Thread David Hildenbrand
s390x crypto is one of the rare modules that returns -EOPNOTSUPP instead of -ENODEV in case HW support is not available. Convert to -ENODEV, so e.g., systemd's systemd-modules-load.service ignores this error properly. v1 -> v2: - Include -- "s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP"

Re: [PATCH V5 6/7] i2c: tegra: fix PIO rx/tx residual transfer check

2019-06-12 Thread Wolfram Sang
On Tue, Jun 11, 2019 at 03:51:13AM -0700, Bitan Biswas wrote: > Fix expression for residual bytes(less than word) transfer > in I2C PIO mode RX/TX. > > Signed-off-by: Bitan Biswas I applied patches 1-5 to my for-next tree now. No need to resend them anymore, you can focus on the remaining patche

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-12 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Tue, Jun 11, 2019 at 10:20:03PM +0100, Dmitry Safonov wrote: >> KVM support may be compiled as dynamic module, which triggers the >> following splat on modprobe: >> >> KVM: vmx: using Hyper-V Enlightened VMCS >> BUG: using smp_processor_id() in preemptible [

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-12 Thread Jan Kara
On Fri 07-06-19 07:52:13, Ira Weiny wrote: > On Fri, Jun 07, 2019 at 09:17:29AM -0300, Jason Gunthorpe wrote: > > On Fri, Jun 07, 2019 at 12:36:36PM +0200, Jan Kara wrote: > > > > > Because the pins would be invisible to sysadmin from that point on. > > > > It is not invisible, it just shows up

[PATCH 5/6] phy: tegra: xusb: Add Tegra124 PLL power supplies

2019-06-12 Thread Kishon Vijay Abraham I
From: Thierry Reding The Tegra124 SoC has four inputs that consume power in order to supply the PLLs that drive the various USB, PCI and SATA pads. Signed-off-by: Thierry Reding Acked-by: Jon Hunter Tested-by: Jon Hunter Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/tegra/xusb-tegra

[GIT PULL v2] PHY: for 5.2-rc

2019-06-12 Thread Kishon Vijay Abraham I
Hi Greg, Please find the updated pull request for 5.2 -rc cycle. Here I dropped the patch that added "static" for a function to fix sparse warning. I'm also sending the patches along with this pull request in case you'd like to look them. Consider merging it in this -rc cycle and let me know if

[PATCH 6/6] phy: tegra: xusb: Add Tegra210 PLL power supplies

2019-06-12 Thread Kishon Vijay Abraham I
From: Thierry Reding The Tegra210 SoC has four inputs that consume power in order to supply the PLLs that drive the various USB, PCI and SATA pads. Signed-off-by: Thierry Reding Acked-by: Jon Hunter Tested-by: Jon Hunter Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/tegra/xusb-tegra

[PATCH 1/6] phy: qcom-qusb2: fix missing assignment of ret when calling clk_prepare_enable

2019-06-12 Thread Kishon Vijay Abraham I
From: Colin Ian King The error return from the call to clk_prepare_enable is not being assigned to variable ret even though ret is being used to check if the call failed. Fix this by adding in the missing assignment. Addresses-Coverity: ("Logically dead code") Fixes: 891a96f65ac3 ("phy: qcom-qus

[PATCH 3/6] phy: usb: phy-brcm-usb: Remove sysfs attributes upon driver removal

2019-06-12 Thread Kishon Vijay Abraham I
From: Florian Fainelli We are not destroying the sysfs attribute groupe we registered during the probe function which will make subsequent probe calls to that driver fail. Correct that with adding a remove function which only removes those attributes since the reference counting on clocks did its

[PATCH 2/6] phy: renesas: rcar-gen2: Fix memory leak at error paths

2019-06-12 Thread Kishon Vijay Abraham I
From: Yoshihiro Shimoda This patch fixes memory leak at error paths of the probe function. In for_each_child_of_node, if the loop returns, the driver should call of_put_node() before returns. Reported-by: Julia Lawall Fixes: 1233f59f745b237 ("phy: Renesas R-Car Gen2 PHY driver") Signed-off-by:

[PATCH 4/6] dt-bindings: phy: tegra-xusb: List PLL power supplies

2019-06-12 Thread Kishon Vijay Abraham I
From: Thierry Reding These power supplies provide power for various PLLs that are set up and driven by the XUSB pad controller. These power supplies were previously improperly added to the PCIe and XUSB controllers, but depending on the driver probe order, power to the PLLs will not be supplied s

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-12 Thread Wolfram Sang
On Mon, Jun 10, 2019 at 09:42:06AM +0100, Lee Jones wrote: > Add a match table to allow automatic probing of ACPI device > QCOM0220. Ignore clock attainment errors. Set default clock > frequency value. > > Signed-off-by: Lee Jones Sadly, there is no cover-letter describing if there is a depend

Re: [PATCH v2 1/5] x86: hv: hyperv-tlfs.h: Create and use Hyper-V page definitions

2019-06-12 Thread Vitaly Kuznetsov
Maya Nakamura writes: > Define HV_HYP_PAGE_SHIFT, HV_HYP_PAGE_SIZE, and HV_HYP_PAGE_MASK because > the Linux guest page size and hypervisor page size concepts are > different, even though they happen to be the same value on x86. > > Also, replace PAGE_SIZE with HV_HYP_PAGE_SIZE. > > Signed-off-by

[PATCH][next] xfrm: fix missing break on AF_INET6 case

2019-06-12 Thread Colin King
From: Colin Ian King It appears that there is a missing break statement for the AF_INET6 case that falls through to the default WARN_ONCE case. I don't think that is intentional. Fix this by adding in the missing break. Addresses-Coverity: ("Missing break in switch") Fixes: 4c203b0454b5 ("xfrm:

Re: [PATCH v2 2/5] x86: hv: hv_init.c: Add functions to allocate/deallocate page for Hyper-V

2019-06-12 Thread Vitaly Kuznetsov
Maya Nakamura writes: > Introduce two new functions, hv_alloc_hyperv_page() and > hv_free_hyperv_page(), to allocate/deallocate memory with the size and > alignment that Hyper-V expects as a page. Although currently they are > not used, they are ready to be used to allocate/deallocate memory on x

Re: [Xen-devel] [PATCH] x86/xen: disable nosmt in Xen guests

2019-06-12 Thread Juergen Gross
On 12.06.19 12:19, Jan Beulich wrote: On 12.06.19 at 12:12, wrote: When running as a Xen guest selecting "nosmt" either via command line or implicitly via default settings makes no sense, as the guest has no clue about the real system topology it is running on. With Xen it is the hypervisor's j

Re: [PATCH v2 4/4] s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP

2019-06-12 Thread Cornelia Huck
On Wed, 12 Jun 2019 12:22:48 +0200 David Hildenbrand wrote: > Let's use the error value that is typically used if HW support is not > available when trying to load a module - this is also what systemd's > systemd-modules-load.service expects. > > Signed-off-by: David Hildenbrand > --- > arch/s

Re: [PATCH v2 3/5] hv: vmbus: Replace page definition with Hyper-V specific one

2019-06-12 Thread Vitaly Kuznetsov
Maya Nakamura writes: > Replace PAGE_SIZE with HV_HYP_PAGE_SIZE because the guest page size may > not be 4096 on all architectures and Hyper-V always runs with a page > size of 4096. > > Signed-off-by: Maya Nakamura > --- > drivers/hv/hyperv_vmbus.h | 8 > 1 file changed, 4 insertions(

Re: [PATCH] thunderbolt: Make sure device runtime resume completes before taking domain lock

2019-06-12 Thread Mika Westerberg
On Wed, Jun 05, 2019 at 05:04:38PM +0300, Mika Westerberg wrote: > When a device is authorized from userspace by writing to authorized > attribute we first take the domain lock and then runtime resume the > device in question. There are two issues with this. > > First is that the device connected

Re: [PATCH] Revert "usb: core: remove local_irq_save() around ->complete() handler"

2019-06-12 Thread Soeren Moch
On 01.06.19 13:02, Sebastian Andrzej Siewior wrote: > On 2019-06-01 12:50:08 [+0200], To Soeren Moch wrote: >> I will look into this. > > nothing obvious. If there is really blocken lock, could you please > enable lockdep > |CONFIG_LOCK_DEBUGGING_SUPPORT=y > |CONFIG_PROVE_LOCKING=y > |# CONFIG_L

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-12 Thread Lee Jones
On Wed, 12 Jun 2019, Wolfram Sang wrote: > On Mon, Jun 10, 2019 at 09:42:06AM +0100, Lee Jones wrote: > > Add a match table to allow automatic probing of ACPI device > > QCOM0220. Ignore clock attainment errors. Set default clock > > frequency value. > > > > Signed-off-by: Lee Jones > > Sadly

Re: [PATCH][next] xfrm: fix missing break on AF_INET6 case

2019-06-12 Thread Steffen Klassert
On Wed, Jun 12, 2019 at 11:36:24AM +0100, Colin King wrote: > From: Colin Ian King > > It appears that there is a missing break statement for the AF_INET6 case > that falls through to the default WARN_ONCE case. I don't think that is > intentional. Fix this by adding in the missing break. > > Ad

Re: [PATCH][next] xfrm: fix missing break on AF_INET6 case

2019-06-12 Thread Florian Westphal
Colin King wrote: > From: Colin Ian King > > It appears that there is a missing break statement for the AF_INET6 case > that falls through to the default WARN_ONCE case. I don't think that is > intentional. Fix this by adding in the missing break. Yes, I sent same patch a few minutes ago: http

Re: [PATCH v2 4/5] HID: hv: Remove dependencies on PAGE_SIZE for ring buffer

2019-06-12 Thread Vitaly Kuznetsov
Maya Nakamura writes: > Define the ring buffer size as a constant expression because it should > not depend on the guest page size. > > Signed-off-by: Maya Nakamura > --- > drivers/hid/hid-hyperv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hid/hid-hype

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-12 Thread Mauro Carvalho Chehab
Em Wed, 12 Jun 2019 18:29:26 +1000 Benjamin Herrenschmidt escreveu: > On Wed, 2019-06-12 at 05:48 +0200, Borislav Petkov wrote: > > On Wed, Jun 12, 2019 at 08:25:52AM +1000, Benjamin Herrenschmidt wrote: > > > Yes, we would be in a world of pain already if tracepoints couldn't > > > handle conc

Re: [PATCH 1/1] Address regression in inet6_validate_link_af

2019-06-12 Thread Maxim Mikityanskiy
On 2019-06-11 13:03, Jonas Bonn wrote: > Patch 7dc2bccab0ee37ac28096b8fcdc390a679a15841 introduces a regression > with systemd 241. In that revision, systemd-networkd fails to pass the > required flags early enough. This appears to be addressed in later > versions of systemd, but for users of ver

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-12 Thread Borislav Petkov
On Wed, Jun 12, 2019 at 06:29:26PM +1000, Benjamin Herrenschmidt wrote: > I tend to disagree here. We've been down that rabbit hole in the past > and we (Linux in general) are trying to move away from that sort of > "platform" overarching driver as much as possible. Why is a "platform" driver like

Re: [PATCH v3 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-12 Thread Wolfram Sang
> There are no cross-subsystem build dependencies on any of these > patches. The only reason they are bundled together in the same > patch-set is for cross-subsystem visibility and understanding. > > There is wide interest in these devices. I see. That would have been a great cover-letter, Lee

Re: [PATCH v2 3/3] regulator: lp87565: Add 4-phase lp87561 regulator support

2019-06-12 Thread Keerthy
On 10/06/19 11:18 AM, Lee Jones wrote: On Sat, 08 Jun 2019, Mark Brown wrote: On Sat, Jun 08, 2019 at 09:26:31AM +0530, keerthy wrote: mfd patches are on linux-next already. Hope you can pull this one now that dependencies are met. Someone will need to send me a copy of the patch, if I a

Re: [PATCH 1/1] ARM: dts: imx6ull-colibri: enable UHS-I for USDHC1

2019-06-12 Thread Shawn Guo
On Thu, Jun 06, 2019 at 12:06:12PM +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Allows to use the SD interface at a higher speed mode if the card > supports it. For this the signaling voltage is switched from 3.3V to > 1.8V under the usdhc1's drivers control. > > Signed-off-by: Igor Opani

[PATCH v5 2/3] mtd: spi-nor: add support to unlock flash device

2019-06-12 Thread Sagar Shrikant Kadam
Nor device (is25wp256 mounted on HiFive unleashed Rev A00 board) from ISSI have memory blocks guarded by block protection bits BP[0,1,2,3]. Clearing block protection bits,unlocks the flash memory regions The unlock scheme is registered during nor scans. Based on code developed by Wesley Terpstra

[PATCH v5 3/3] mtd: spi-nor: add locking support for is25xxxxx device

2019-06-12 Thread Sagar Shrikant Kadam
Implement a locking scheme for ISSI devices based on stm_lock mechanism. The is25x devices have 4 bits for selecting the range of blocks to be locked/protected from erase/write operations and function register gives feasibility to select TOP / Bottom area for protection. Added opcodes to read

[PATCH v5 0/3] mtd: spi-nor: add support for is25wp256 spi-nor flash

2019-06-12 Thread Sagar Shrikant Kadam
The patch set is tested on HiFive Unleashed A00 board and is based on mainline kernel v5.2-rc1. Its intended to add support for 32 MB spi-nor flash mounted on the board. Memory Device supports 4/32/ and 64 KB sectors size. The device id table is updated accordingly. Flash parameter table for ISSI

[PATCH v5 1/3] mtd: spi-nor: add support for is25wp256

2019-06-12 Thread Sagar Shrikant Kadam
Update spi_nor_id table for is25wp256 (32MB)device from ISSI, present on HiFive Unleashed dev board (Rev: A00). Set method to enable quad mode for ISSI device in flash parameters table. Based on code originally written by Wesley Terpstra and/or Palmer Dabbelt https://github.com/riscv/riscv-linu

Re: linux-next: Fixes tag needs some work in the imx-mxs tree

2019-06-12 Thread Shawn Guo
On Tue, Jun 11, 2019 at 08:36:52AM +, Peng Fan wrote: > Hi Shawn, Stephen > > Subject: Re: linux-next: Fixes tag needs some work in the imx-mxs tree > > > > On Fri, Jun 07, 2019 at 07:46:52AM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > In commit > > > > > > f6a8ff82ce68 ("clk: i

Re: [PATCHv5 04/20] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI

2019-06-12 Thread Lorenzo Pieralisi
On Tue, Jun 11, 2019 at 06:29:49PM +0100, Marc Zyngier wrote: > On 11/06/2019 17:59, Lorenzo Pieralisi wrote: > > On Fri, Apr 12, 2019 at 08:35:36AM +, Z.q. Hou wrote: > >> From: Hou Zhiqiang > >> > >> The current code does not support multiple MSIs, so remove > >> the corresponding flag from

[PATCH V3] perf: event preserve and create across cpu hotplug

2019-06-12 Thread Mukesh Ojha
Perf framework doesn't allow preserving CPU events across CPU hotplugs. The events are scheduled out as and when the CPU walks offline. Moreover, the framework also doesn't allow the clients to create events on an offline CPU. As a result, the clients have to keep on monitoring the CPU state until

Re: [PATCH v2 1/3] drivers: media: i2c: fix warning same module names

2019-06-12 Thread Hans Verkuil
On 6/12/19 10:12 AM, Anders Roxell wrote: > When building with CONFIG_VIDEO_ADV7511 and CONFIG_DRM_I2C_ADV7511 > enabled as loadable modules, we see the following warning: > > warning: same module names found: > drivers/gpu/drm/bridge/adv7511/adv7511.ko > drivers/media/i2c/adv7511.ko > > Rewo

Re: [PATCH v2 0/5] Introduce MADV_COLD and MADV_PAGEOUT

2019-06-12 Thread Pavel Machek
Hi! > - Problem > > Naturally, cached apps were dominant consumers of memory on the system. > However, they were not significant consumers of swap even though they are > good candidate for swap. Under investigation, swapping out only begins > once the low zone watermark is hit and kswapd wakes up

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-12 Thread Borislav Petkov
On Wed, Jun 12, 2019 at 07:42:42AM -0300, Mauro Carvalho Chehab wrote: > That's said, from the admin PoV, it makes sense to have a single > daemon that collect errors from all error sources and take the > needed actions. Doing recovery actions in userspace is too flaky. Daemon can get killed at an

[PATCH 0/4] Add labibb regulator support for LCD display mode

2019-06-12 Thread Nisha Kumari
This patch series adds the labibb regulator for supporting LCD display mode on SDM845. Nisha Kumari (4): dt-bindings: regulator: Add labibb regulator arm64: dts: qcom: pmi8998: Add nodes for LAB and IBB regulators regulator: Add labibb driver regulator: adding interrupt handling in labibb

[PATCH v5 2/3] media: atmel: atmel-sama5d2-isc: fixed checkpatch warnings

2019-06-12 Thread Eugen.Hristev
From: Eugen Hristev Checkpatch complaining that locks do not have comments, unaligned code and macro reuse of same argument in to_isc_clk. Fixed them by renaming, realigning and adding struct comments Signed-off-by: Eugen Hristev Acked-by: Sakari Ailus --- Changes in v5: - none Changes in v4:

Re: [PATCH] futex: Fix futex lock the wrong page

2019-06-12 Thread Greg KH
On Wed, Jun 12, 2019 at 09:29:48AM +0200, Thomas Gleixner wrote: > On Wed, 12 Jun 2019, Greg KH wrote: > > On Wed, Jun 12, 2019 at 09:50:25AM +0800, zhangxiaoxu (A) wrote: > > > This patch is for stable branch linux-4.4-y. > > > > > > On 2019/6/12 9:54, ZhangXiaoxu wrote: > > > > The upstram commi

[PATCH v5 3/3] media: atmel: atmel-isc: fix and cleanup potential bugs

2019-06-12 Thread Eugen.Hristev
From: Eugen Hristev Fixed issues that can lead to potential bugs. Cleanup order in the driver Taking into consideration std control creation can fail mutex_destroy call changing controller_formats with const specifier some cosmetic cleanups Signed-off-by: Eugen Hristev --- Changes in v5: - new

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