[PATCH 3/4] usb: typec: Add firmware documentation for the Intel PMC mux control

2020-05-07 Thread Heikki Krogerus
Adding documentation that describes how the PMC mux-agent function is described in the ACPI tables. Signed-off-by: Heikki Krogerus --- .../firmware-guide/acpi/intel-pmc-mux.rst | 153 ++ 1 file changed, 153 insertions(+) create mode 100644

[PATCH 2/4] usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation

2020-05-07 Thread Heikki Krogerus
The SBU and HSL orientation may be fixed/static from the mux PoW. Apparently the retimer may take care of the orientation of these lines. Handling the static SBU (AUX) and HSL orientation with device properties. If the SBU orientation is static, a device property "sbu-orintation" can be used.

[PATCH 4/4] MAINTAINERS: Add entry for Intel PMC mux driver

2020-05-07 Thread Heikki Krogerus
I will be maintaining the Intel PMC mux control driver. Signed-off-by: Heikki Krogerus --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2926327e4976..5a7b0205397b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17590,6 +17590,13 @@ F:

[PATCH 0/4] usb: typec: Intel PMC driver changes

2020-05-07 Thread Heikki Krogerus
Hi, There is actually only one change to the driver in patch 2/4 where I'm adding handling for the properties that are used with static/fixed SBU and HSL line orientation. On top of that, I add firmware documentation for the driver, and I'm also adding an entry for it to the MAINTAINERS file in

[PATCH 1/4] usb: typec: Add typec_find_orientation()

2020-05-07 Thread Heikki Krogerus
Function that converts orientation string into orientation value. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/class.c | 36 include/linux/usb/typec.h | 1 + 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/drivers/usb/typec/class.c

Re: [PATCH 05/15] arm64: kvm: Build hyp-entry.S separately for VHE/nVHE

2020-05-07 Thread Marc Zyngier
On Thu, 30 Apr 2020 15:48:21 +0100, David Brazdil wrote: > > This patch is part of a series which builds KVM's non-VHE hyp code separately > from VHE and the rest of the kernel. This sentence should be part of your cover letter, and not in the 5th patch. > > hyp-entry.S contains

[PATCH] wil6210: Replace zero-length array with flexible-array

2020-05-07 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By

Re: linux-next: build failure after merge of the vfs tree

2020-05-07 Thread Jens Axboe
On 5/6/20 8:35 PM, Al Viro wrote: > On Thu, May 07, 2020 at 10:39:21AM +1000, Stephen Rothwell wrote: >> Hi all, >> >> After merging the vfs tree, today's linux-next build (arm >> multi_v7_defconfig) failed like this: >> >> fs/eventfd.c: In function 'eventfd_read': >> fs/eventfd.c:226:6: error:

Re: [PATCH] sched/fair: Fix enqueue_task_fair warning some more

2020-05-07 Thread Vincent Guittot
Hi Phil, On Wed, 6 May 2020 at 20:05, Phil Auld wrote: > > Hi Vincent, > > Thanks for taking a look. More below... > > On Wed, May 06, 2020 at 06:36:45PM +0200 Vincent Guittot wrote: > > Hi Phil, > > > > - reply to all this time > > > > On Wed, 6 May 2020 at 16:18, Phil Auld wrote: > > > > > >

Re: [PATCH v7 03/15] s390/zcrypt: driver callback to indicate resource in use

2020-05-07 Thread Tony Krowiak
The review of this series seems to have come to a standstill, so I'm pinging the list to see if we can't get things going again. On 4/14/20 8:08 AM, Cornelia Huck wrote: The current design for AP pass-through does not support making dynamic changes to the AP matrix of a running guest resulting

Re: [patch V4 part 2 05/18] x86/entry: Move irq tracing on syscall entry to C-code

2020-05-07 Thread Thomas Gleixner
Thomas Gleixner writes: > Alexandre Chartre writes: >> On 5/5/20 3:41 PM, Thomas Gleixner wrote: >>> - /* >>> -* User mode is traced as though IRQs are on, and the interrupt >>> -* gate turned them off. >>> -*/ >>> - TRACE_IRQS_OFF >>> - >>> movq%rsp, %rdi >>> call

[PATCH V6 2/3] dt-bindings: geni-se: Add interconnect binding for GENI QUP

2020-05-07 Thread Akash Asthana
Add documentation for the interconnect and interconnect-names properties for the GENI QUP. Signed-off-by: Akash Asthana --- Changes in V5: - Add interconnect property for QUP wrapper (parent node). - Add minItems = 2 for interconnect property in child nodes Changes in V6: - As per Rob's

[PATCH V6 3/3] dt-bindings: serial: Add binding for UART pin swap

2020-05-07 Thread Akash Asthana
Add documentation to support RX-TX & CTS-RTS GPIO pin swap in HW. Signed-off-by: Akash Asthana --- Documentation/devicetree/bindings/serial/serial.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/serial.yaml

[PATCH V6 1/3] dt-bindings: geni-se: Convert QUP geni-se bindings to YAML

2020-05-07 Thread Akash Asthana
Convert QUP geni-se bindings to DT schema format using json-schema. Signed-off-by: Akash Asthana Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- Changes in V2: - As per Stephen's comment corrected defintion of interrupts for UART node. Any valid UART node must contain atleast 1

[PATCH -next] riscv: perf: RISCV_BASE_PMU should be closeable

2020-05-07 Thread Kefeng Wang
As 178e9fc47aae("perf: riscv: preliminary RISC-V support") said, For RISCV_BASE_PMU, 'this option can also be disable to reduce kernel size', but it could not work well, we need diable both RISCV_BASE_PMU and PERF_EVENTS manually, or build error will occur when only disable RISCV_BASE_PMU. Cc:

Re: [PATCH V5 2/3] dt-bindings: geni-se: Add interconnect binding for GENI QUP

2020-05-07 Thread Akash Asthana
Hi Rob, + interconnects: + minItems: 2 + maxItems: 3 + + interconnect-names: + items: + - const: qup-core + - const: qup-config + - const: qup-memory Don't you need 'minItems: 2' here? Yeah I need minItems: 2 here, thanks for

[PATCH V3 04/15] arch/kunmap: Remove duplicate kunmap implementations

2020-05-07 Thread ira . weiny
From: Ira Weiny All architectures do exactly the same thing for kunmap(); remove all the duplicate definitions and lift the call to the core. This also has the benefit of changing kmap_unmap() on a number of architectures to be an inline call rather than an actual function. Reviewed-by:

Re: [PATCH v2] usb: raw-gadget: fix gadget endpoint selection

2020-05-07 Thread Andrey Konovalov
On Tue, May 5, 2020 at 5:26 PM Andrey Konovalov wrote: > > On Tue, May 5, 2020 at 2:08 PM Andrey Konovalov wrote: > > > > On Tue, May 5, 2020 at 9:34 AM Felipe Balbi wrote: > > > > > > > > > Hi, > > > > > > Andrey Konovalov writes: > > > > > > > Currently automatic gadget endpoint selection

[PATCH V6 0/3] Convert QUP bindings to YAML and add ICC, pin swap doc

2020-05-07 Thread Akash Asthana
Changes in V6: - As per Rob's suggestion moved pin swap documentation from QUP to serial.yaml file[PATCH V6 3/3]. Changes in V4: - Add interconnect binding patch. - Add UART pin swap binding patch. Akash Asthana (3): dt-bindings: geni-se: Convert QUP geni-se bindings to YAML

[PATCH -next] riscv: perf_event: Make some funciton static

2020-05-07 Thread Kefeng Wang
Fixes the following warning detected when running make with W=1, ../arch/riscv/kernel/perf_event.c:150:5: warning: no previous prototype for ‘riscv_map_cache_decode’ [-Wmissing-prototypes] int riscv_map_cache_decode(u64 config, unsigned int *type, ^~

[PATCH V3 08/15] arch/kmap: Ensure kmap_prot visibility

2020-05-07 Thread ira . weiny
From: Ira Weiny We want to support kmap_atomic_prot() on all architectures and it makes sense to define kmap_atomic() to use the default kmap_prot. So we ensure all arch's have a globally available kmap_prot either as a define or exported symbol. Reviewed-by: Christoph Hellwig Signed-off-by:

[PATCH V3 10/15] arch/kmap: Define kmap_atomic_prot() for all arch's

2020-05-07 Thread ira . weiny
From: Ira Weiny To support kmap_atomic_prot(), all architectures need to support protections passed to their kmap_atomic_high() function. Pass protections into kmap_atomic_high() and change the name to kmap_atomic_high_prot() to match. Then define kmap_atomic_prot() as a core function which

[PATCH V3 05/15] {x86,powerpc,microblaze}/kmap: Move preempt disable

2020-05-07 Thread ira . weiny
From: Ira Weiny During this kmap() conversion series we must maintain bisect-ability. To do this, kmap_atomic_prot() in x86, powerpc, and microblaze need to remain functional. Create a temporary inline version of kmap_atomic_prot within these architectures so we can rework their kmap_atomic()

[PATCH V3 07/15] arch/kunmap_atomic: Consolidate duplicate code

2020-05-07 Thread ira . weiny
From: Ira Weiny Every single architecture (including !CONFIG_HIGHMEM) calls... pagefault_enable(); preempt_enable(); ... before returning from __kunmap_atomic(). Lift this code into the kunmap_atomic() macro. While we are at it rename __kunmap_atomic() to kunmap_atomic_high()

[PATCH V3 13/15] parisc/kmap: Remove duplicate kmap code

2020-05-07 Thread ira . weiny
From: Ira Weiny parisc reimplements the kmap calls except to flush it's dcache. This is arguably an abuse of kmap but regardless it is messy and confusing. Remove the duplicate code and have parisc define ARCH_HAS_FLUSH_ON_KUNMAP for a kunmap_flush_on_unmap() architecture specific call to

[PATCH V3 11/15] drm: Remove drm specific kmap_atomic code

2020-05-07 Thread ira . weiny
From: Ira Weiny kmap_atomic_prot() is now exported by all architectures. Use this function rather than open coding a driver specific kmap_atomic. Acked-by: Daniel Vetter Reviewed-by: Christian König Reviewed-by: Christoph Hellwig Signed-off-by: Ira Weiny ---

[PATCH V3 01/15] arch/kmap: Remove BUG_ON()

2020-05-07 Thread ira . weiny
From: Ira Weiny Replace the use of BUG_ON(in_interrupt()) in the kmap() and kunmap() in favor of might_sleep(). Besides the benefits of might_sleep(), this normalizes the implementations such that they can be made generic in subsequent patches. Reviewed-by: Dan Williams Reviewed-by: Christoph

[PATCH V3 02/15] arch/xtensa: Move kmap build bug out of the way

2020-05-07 Thread ira . weiny
From: Ira Weiny Move the kmap() build bug to kmap_init() to facilitate patches to lift kmap() to the core. Reviewed-by: Christoph Hellwig Signed-off-by: Ira Weiny --- Changes from V1: combine code onto 1 line. --- arch/xtensa/include/asm/highmem.h | 5 - arch/xtensa/mm/highmem.c

[PATCH V3 09/15] arch/kmap: Don't hard code kmap_prot values

2020-05-07 Thread ira . weiny
From: Ira Weiny To support kmap_atomic_prot() on all architectures each arch must support protections passed in to them. Change csky, mips, nds32 and xtensa to use their global constant kmap_prot rather than a hard coded value which was equal. Reviewed-by: Christoph Hellwig Signed-off-by: Ira

[PATCH V3 03/15] arch/kmap: Remove redundant arch specific kmaps

2020-05-07 Thread ira . weiny
From: Ira Weiny The kmap code for all the architectures is almost 100% identical. Lift the common code to the core. Use ARCH_HAS_KMAP_FLUSH_TLB to indicate if an arch defines kmap_flush_tlb() and call if if needed. This also has the benefit of changing kmap() on a number of architectures to

[PATCH V3 00/15] Remove duplicated kmap code

2020-05-07 Thread ira . weiny
From: Ira Weiny The kmap infrastructure has been copied almost verbatim to every architecture. This series consolidates obvious duplicated code by defining core functions which call into the architectures only when needed. Some of the k[un]map_atomic() implementations have some similarities but

[PATCH V3 12/15] kmap: Remove kmap_atomic_to_page()

2020-05-07 Thread ira . weiny
From: Ira Weiny kmap_atomic_to_page() has no callers and is only defined on 1 arch and declared on another. Remove it. Suggested-by: Al Viro Signed-off-by: Ira Weiny --- Changes from V2: New Patch for this series --- arch/csky/include/asm/highmem.h | 1 - arch/csky/mm/highmem.c

[PATCH V3 15/15] kmap: Consolidate kmap_prot definitions

2020-05-07 Thread ira . weiny
From: Ira Weiny Most architectures define kmap_prot to be PAGE_KERNEL. Let sparc and xtensa define there own and define PAGE_KERNEL as the default if not overridden. Suggested-by: Christoph Hellwig Signed-off-by: Ira Weiny --- Changes from V2: New Patch for this series ---

[PATCH V3 14/15] sparc: Remove unnecessary includes

2020-05-07 Thread ira . weiny
From: Ira Weiny linux/highmem.h has not been needed for the pte_offset_map => kmap_atomic use in sparc for some time (~2002) Remove this include. Suggested-by: Al Viro Signed-off-by: Ira Weiny --- Changes from V2: New Patch for this series --- arch/sparc/mm/io-unit.c | 1 -

[PATCH V3 06/15] arch/kmap_atomic: Consolidate duplicate code

2020-05-07 Thread ira . weiny
From: Ira Weiny Every arch has the same code to ensure atomic operations and a check for !HIGHMEM page. Remove the duplicate code by defining a core kmap_atomic() which only calls the arch specific kmap_atomic_high() when the page is high memory. Reviewed-by: Christoph Hellwig Signed-off-by:

Re: [PATCH -next] ipack: tpci200: fix error return code in tpci200_register()

2020-05-07 Thread Samuel Iglesias Gonsálvez
Hello Wei, Thanks for the patch! Patch is, Acked-by: Samuel Iglesias Gonsalvez Greg, Would you mind picking this patch series through your char-misc tree? Thanks! Sam On Thu, 2020-05-07 at 09:42 +, Wei Yongjun wrote: > Fix to return negative error code -ENOMEM from the ioremap() error

Re: [PATCH v2] virtio_net: fix lockdep warning on 32 bit

2020-05-07 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 7 May 2020 03:25:56 -0400 > When we fill up a receive VQ, try_fill_recv currently tries to count > kicks using a 64 bit stats counter. Turns out, on a 32 bit kernel that > uses a seqcount. sequence counts are "lock" constructs where you need to > make sure

Re: PING for Re: bdi: fix use-after-free for dev_name(bdi->dev) v3 (resend)

2020-05-07 Thread Jens Axboe
On 5/7/20 12:27 AM, Christoph Hellwig wrote: > On Mon, May 04, 2020 at 02:47:52PM +0200, Christoph Hellwig wrote: >> Hi Jens, >> >> can you pick up this series? > > ping? Especially as 1-4 fix a kernel crash and should probably be > 5.7 material. I've added 1-4 for 5.7, and the rest for 5.8.

Re: [PATCH] iomm/arm-smmu: Add stall implementation hook

2020-05-07 Thread Robin Murphy
On 2020-05-07 1:06 pm, Sai Prakash Ranjan wrote: [...] We could have our own context fault handler in QCOM implementation, but that would just be duplicating things from arm-smmu context fault handler. So I did not think it makes much sense to have our own fault handler in qcom impl just for

Re: [PATCH 1/5] perf tools: Do not display extra info when there is nothing to build

2020-05-07 Thread Arnaldo Carvalho de Melo
Em Thu, May 07, 2020 at 11:50:20AM +0200, Jiri Olsa escreveu: > Even with fully built tree, we still display extra output > when make is invoked, like: > > $ make > BUILD: Doing 'make -j8' parallel build > DESCEND plugins > make[3]: Nothing to be done for

[PATCH v7 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2020-05-07 Thread Talel Shenhar
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. Signed-off-by: Talel Shenhar Reviewed-by: Rob Herring --- .../bindings/edac/amazon,al-mc-edac.yaml | 52 +++ 1 file changed, 52 insertions(+) create mode 100644

[PATCH v7 0/2] Amazon's Annapurna Labs Memory Controller EDAC

2020-05-07 Thread Talel Shenhar
This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver. Changes since v6: = - removed unused defines - user-visible strings changed to capital - removed static function names prefix from internal functions (external used function, such as

[PATCH v7 2/2] EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller EDAC

2020-05-07 Thread Talel Shenhar
The Amazon's Annapurna Labs Memory Controller EDAC supports ECC capability for error detection and correction (Single bit error correction, Double detection). This driver introduces EDAC driver for that capability. Signed-off-by: Talel Shenhar Reviewed-by: James Morse --- MAINTAINERS

[PATCH] firmware: arm_scmi: fix psci dependency

2020-05-07 Thread Sudeep Holla
When CONFIG_ARM_PSCI_FW is disabled but CONFIG_HAVE_ARM_SMCCC is enabled, arm-scmi runs into a link failure: arm-linux-gnueabi-ld: drivers/firmware/arm_scmi/smc.o: in function `smc_send_message': smc.c:(.text+0x200): undefined reference to `arm_smccc_1_1_get_conduit' Change from HAVE_ARM_SMCCC

Re: [patch V4 part 2 18/18] x86/kvm/svm: Move guest enter/exit into .noinstr.text

2020-05-07 Thread Alexandre Chartre
On 5/5/20 3:41 PM, Thomas Gleixner wrote: Move the functions which are inside the RCU off region into the non-instrumentable text section. Signed-off-by: Thomas Gleixner Cc: Paolo Bonzini Cc: Sean Christopherson --- arch/x86/kvm/svm/svm.c | 102

Re: [PATCH v6 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2020-05-07 Thread Shenhar, Talel
On 5/5/2020 1:44 PM, Shenhar, Talel wrote: On 4/28/2020 2:06 PM, Borislav Petkov wrote: On Mon, Feb 24, 2020 at 03:41:31PM +0200, Talel Shenhar wrote: Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. Signed-off-by: Talel Shenhar Reviewed-by: Rob Herring ---  

[patch V5 part 2 15/18] x86/kvm/svm: Handle hardirqs proper on guest enter/exit

2020-05-07 Thread Thomas Gleixner
Entering guest mode is more or less the same as returning to user space. From an instrumentation point of view both leave kernel mode and the transition to guest or user mode reenables interrupts on the host. In user mode an interrupt is served directly and in guest mode it causes a VM exit which

[PATCH 03/12] iio: imu: inv_icm42600: add SPI driver for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add SPI driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_spi.c | 117 ++ 1 file changed, 117 insertions(+) create mode 100644

[PATCH 05/12] iio: imu: inv_icm42600: add accelerometer IIO device

2020-05-07 Thread Jean-Baptiste Maneyrol
Add IIO device for accelerometer sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Accelerometer in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 +

Re: [PATCH 1/2] arch/x86: Rename config X86_INTEL_MEMORY_PROTECTION_KEYS to generic x86

2020-05-07 Thread Dave Hansen
On 5/7/20 12:29 AM, Sebastian Andrzej Siewior wrote: >>> -config X86_INTEL_MEMORY_PROTECTION_KEYS >>> - prompt "Intel Memory Protection Keys" >>> +config X86_MEMORY_PROTECTION_KEYS >>> + prompt "Memory Protection Keys" >>> def_bool y >>> # Note: only available in 64-bit mode >>> -

[PATCH 09/12] iio: imu: inv_icm42600: add buffer support in iio devices

2020-05-07 Thread Jean-Baptiste Maneyrol
Use triggered buffer by parsing FIFO data read in device trigger. Support hwfifo watermark by multiplexing gyro and accel settings. Support hwfifo flush. Simply use interrupt timestamp first. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Kconfig | 3 +-

[PATCH 08/12] iio: imu: inv_icm42600: add device interrupt trigger

2020-05-07 Thread Jean-Baptiste Maneyrol
Add INT1 interrupt support and use it as an iio trigger. Support interrupt edge and level, active high or low. Push-pull configuration only. Trigger enables FIFO and will be useful with buffer support. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/Kconfig |

[PATCH 02/12] iio: imu: inv_icm42600: add I2C driver for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add I2C driver for InvenSense ICM-426xxx devices. Configure bus signal slew rates as indicated in the datasheet. Signed-off-by: Jean-Baptiste Maneyrol --- .../iio/imu/inv_icm42600/inv_icm42600_i2c.c | 117 ++ 1 file changed, 117 insertions(+) create mode 100644

[PATCH 00/12] iio: imu: new inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
This series add a new driver for managing InvenSense ICM-426xx 6-axis IMUs. This next generation of chips includes new generations of 3-axis gyroscope and 3-axis accelerometer, support of I3C in addition to I2C and SPI, and intelligent MotionTracking features like pedometer, tilt detection, and

[PATCH 06/12] iio: imu: inv_icm42600: add temperature sensor support

2020-05-07 Thread Jean-Baptiste Maneyrol
Add temperature channel in gyroscope and accelerometer devices. Temperature is available in full 16 bits resolution as a processed channel. Scale and offset attributes are also provided for the low 8 bits resolution raw temperature found in the FIFO. Signed-off-by: Jean-Baptiste Maneyrol ---

[PATCH 11/12] dt-bindings: iio: imu: Add inv_icm42600 documentation

2020-05-07 Thread Jean-Baptiste Maneyrol
Document the ICM-426xxx devices devicetree bindings. Signed-off-by: Jean-Baptiste Maneyrol --- .../bindings/iio/imu/invensense,icm42600.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml diff

[PATCH 10/12] iio: imu: inv_icm42600: add accurate timestamping

2020-05-07 Thread Jean-Baptiste Maneyrol
Add a timestamp channel with processed value that returns full precision 20 bits timestamp. Add a timestamping mechanism for buffer that provides accurate event timestamps when using watermark. This mechanism estimates device internal clock by comparing FIFO interrupts delta time and

[PATCH 01/12] iio: imu: inv_icm42600: add core of new inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Core component of a new driver for InvenSense ICM-426xx devices. It includes registers definition, main probe/setup, and device utility functions. ICM-426xx devices are latest generation of 6-axis IMU, gyroscope+accelerometer and temperature sensor. This device includes a 2K FIFO, supports

[PATCH 12/12] MAINTAINERS: add entry for inv_icm42600 6-axis imu sensor

2020-05-07 Thread Jean-Baptiste Maneyrol
Add MAINTAINERS entry for InvenSense ICM-426xx IMU device. Signed-off-by: Jean-Baptiste Maneyrol --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10eb348c801c..1714390e2721 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8864,6 +8864,14

[PATCH 07/12] iio: imu: add Kconfig and Makefile for inv_icm42600 driver

2020-05-07 Thread Jean-Baptiste Maneyrol
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/Kconfig | 1 + drivers/iio/imu/Makefile | 1 + drivers/iio/imu/inv_icm42600/Kconfig | 28 +++

[PATCH 04/12] iio: imu: inv_icm42600: add gyroscope IIO device

2020-05-07 Thread Jean-Baptiste Maneyrol
Add IIO device for gyroscope sensor with data polling interface. Attributes: raw, scale, sampling_frequency, calibbias. Gyroscope in low noise mode. Signed-off-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_icm42600/inv_icm42600.h | 4 + .../iio/imu/inv_icm42600/inv_icm42600_core.c |

Re: [PATCH v4 1/6] drm/bridge: ti-sn65dsi86: Export bridge GPIOs to Linux

2020-05-07 Thread Doug Anderson
Hi, On Thu, Apr 30, 2020 at 12:46 PM Douglas Anderson wrote: > > The ti-sn65dsi86 MIPI DSI to eDP bridge chip has 4 pins on it that can > be used as GPIOs in a system. Each pin can be configured as input, > output, or a special function for the bridge chip. These are: > - GPIO1: SUSPEND Input

[PATCH AUTOSEL 5.6 04/50] dmaengine: ti: k3-psil: fix deadlock on error path

2020-05-07 Thread Sasha Levin
From: Grygorii Strashko [ Upstream commit 172d59ecd61b89f535ad99a7e531c0f111453b9a ] The mutex_unlock() is missed on error path of psil_get_ep_config() which causes deadlock, so add missed mutex_unlock(). Fixes: 8c6bb62f6b4a ("dmaengine: ti: k3 PSI-L remote endpoint configuration")

[PATCH AUTOSEL 5.6 03/50] dmaengine: hisilicon: Fix build error without PCI_MSI

2020-05-07 Thread Sasha Levin
From: YueHaibing [ Upstream commit ae148b43516d90756ff8255925fb7df142b0c76e ] If PCI_MSI is not set, building fais: drivers/dma/hisi_dma.c: In function ‘hisi_dma_free_irq_vectors’: drivers/dma/hisi_dma.c:138:2: error: implicit declaration of function ‘pci_free_irq_vectors’; did you mean

[PATCH AUTOSEL 5.6 02/50] RDMA/siw: Fix potential siw_mem refcnt leak in siw_fastreg_mr()

2020-05-07 Thread Sasha Levin
From: Jason Gunthorpe [ Upstream commit 6e051971b0e2eeb0ce7ec65d3cc8180450512d36 ] siw_fastreg_mr() invokes siw_mem_id2obj(), which returns a local reference of the siw_mem object to "mem" with increased refcnt. When siw_fastreg_mr() returns, "mem" becomes invalid, so the refcount should be

[PATCH AUTOSEL 5.6 13/50] RDMA/uverbs: Fix a race with disassociate and exit_mmap()

2020-05-07 Thread Sasha Levin
From: Jason Gunthorpe [ Upstream commit 39c011a538272589b9eb02ff1228af528522a22c ] If uverbs_user_mmap_disassociate() is called while the mmap is concurrently doing exit_mmap then the ordering of the rdma_user_mmap_entry_put() is not reliable. The put must be done before

Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-07 Thread Pierre-Louis Bossart
On 5/7/20 2:27 AM, YueHaibing wrote: When CONFIG_SND_SOC_SOF_BAYTRAIL is not set, gcc warns: sound/soc/sof/intel/byt.c:85:41: warning: ‘cht_debugfs’ defined but not used [-Wunused-const-variable=] static const struct snd_sof_debugfs_map cht_debugfs[] = {

[PATCH AUTOSEL 5.6 12/50] RDMA/mlx5: Set GRH fields in query QP on RoCE

2020-05-07 Thread Sasha Levin
From: Aharon Landau [ Upstream commit 2d7e3ff7b6f2c614eb21d0dc348957a47eaffb57 ] GRH fields such as sgid_index, hop limit, et. are set in the QP context when QP is created/modified. Currently, when query QP is performed, we fill the GRH fields only if the GRH bit is set in the QP context, but

[PATCH AUTOSEL 5.6 08/50] riscv: fix vdso build with lld

2020-05-07 Thread Sasha Levin
From: Ilie Halip [ Upstream commit 3c1918c8f54166598195d938564072664a8275b1 ] When building with the LLVM linker this error occurrs: LD arch/riscv/kernel/vdso/vdso-syms.o ld.lld: error: no input files This happens because the lld treats -R as an alias to -rpath, as opposed to ld

[PATCH AUTOSEL 5.6 09/50] scsi: qla2xxx: set UNLOADING before waiting for session deletion

2020-05-07 Thread Sasha Levin
From: Martin Wilck [ Upstream commit 856e152a3c08bf7987cbd41900741d83d9cddc8e ] The purpose of the UNLOADING flag is to avoid port login procedures to continue when a controller is in the process of shutting down. It makes sense to set this flag before starting session teardown. Furthermore,

[PATCH AUTOSEL 5.6 16/50] dmaengine: pch_dma.c: Avoid data race between probe and irq handler

2020-05-07 Thread Sasha Levin
From: Madhuparna Bhowmik [ Upstream commit 2e45676a4d33af47259fa186ea039122ce263ba9 ] pd->dma.dev is read in irq handler pd_irq(). However, it is set to pdev->dev after request_irq(). Therefore, set pd->dma.dev to pdev->dev before request_irq() to avoid data race between pch_dma_probe() and

[PATCH AUTOSEL 5.6 10/50] scsi: qla2xxx: check UNLOADING before posting async work

2020-05-07 Thread Sasha Levin
From: Martin Wilck [ Upstream commit 5a263892d7d0b4fe351363f8d1a14c6a75955475 ] qlt_free_session_done() tries to post async PRLO / LOGO, and waits for the completion of these async commands. If UNLOADING is set, this is doomed to timeout, because the async logout command will never complete.

[PATCH AUTOSEL 5.6 17/50] dmaengine: mmp_tdma: Do not ignore slave config validation errors

2020-05-07 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit 363c32701c7fdc8265a84b21a6a4f45d1202b9ca ] With an invalid dma_slave_config set previously, mmp_tdma_prep_dma_cyclic() would detect an error whilst configuring the channel, but proceed happily on: [ 120.756530] mmp-tdma d42a0800.adma: mmp_tdma: unknown

[PATCH AUTOSEL 5.6 11/50] scsi: target/iblock: fix WRITE SAME zeroing

2020-05-07 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 1d2ff149b263c9325875726a7804a0c75ef7112e ] SBC4 specifies that WRITE SAME requests with the UNMAP bit set to zero "shall perform the specified write operation to each LBA specified by the command". Commit 2237498f0b5c ("target/iblock: Convert WRITE_SAME

[PATCH AUTOSEL 5.6 14/50] RDMA/core: Prevent mixed use of FDs between shared ufiles

2020-05-07 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 0fb00941dc63990a10951146df216fc7b0e20bc2 ] FDs can only be used on the ufile that created them, they cannot be mixed to other ufiles. We are lacking a check to prevent it. BUG: KASAN: null-ptr-deref in atomic64_sub_and_test

[PATCH AUTOSEL 5.6 18/50] dmaengine: mmp_tdma: Reset channel error on release

2020-05-07 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit 0c89446379218698189a47871336cb30286a7197 ] When a channel configuration fails, the status of the channel is set to DEV_ERROR so that an attempt to submit it fails. However, this status sticks until the heat end of the universe, making it impossible to

[PATCH AUTOSEL 5.6 24/50] cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once

2020-05-07 Thread Sasha Levin
From: Chris Wilson [ Upstream commit 8c539776ac83c0857395e1ccc9c6b516521a2d32 ] Make a note of the first time we discover the turbo mode has been disabled by the BIOS, as otherwise we complain every time we try to update the mode. Signed-off-by: Chris Wilson Signed-off-by: Rafael J. Wysocki

[PATCH AUTOSEL 5.6 22/50] selftests/ftrace: Check the first record for kprobe_args_type.tc

2020-05-07 Thread Sasha Levin
From: Xiao Yang [ Upstream commit f0c0d0cf590f71b2213b29a7ded2cde3d0a1a0ba ] It is possible to get multiple records from trace during test and then more than 4 arguments are assigned to ARGS. This situation results in the failure of kprobe_args_type.tc. For example:

[PATCH 2/4] habanalabs: define ASIC-dependent interface for signal/wait

2020-05-07 Thread Oded Gabbay
From: Omer Shpigelman This feature requires handling h/w resources which are a bit different from one ASIC to the other. Therefore, we need to define a set of interfaces the ASIC code provides to the common code to signal, wait, reset sync object and to reset and init a queue. As this feature

[PATCH AUTOSEL 5.6 26/50] nvme: prevent double free in nvme_alloc_ns() error handling

2020-05-07 Thread Sasha Levin
From: Niklas Cassel [ Upstream commit 132be62387c7a72a38872676c18b0dfae264adb8 ] When jumping to the out_put_disk label, we will call put_disk(), which will trigger a call to disk_release(), which calls blk_put_queue(). Later in the cleanup code, we do blk_cleanup_queue(), which will also call

[PATCH AUTOSEL 5.6 27/50] dmaengine: fix channel index enumeration

2020-05-07 Thread Sasha Levin
From: Dave Jiang [ Upstream commit 0821009445a8261ac4d32a6df4b83938e007c765 ] When the channel register code was changed to allow hotplug operations, dynamic indexing wasn't taken into account. When channels are randomly plugged and unplugged out of order, the serial indexing breaks. Convert

[PATCH AUTOSEL 5.6 32/50] drm/amd/powerplay: avoid using pm_en before it is initialized revised

2020-05-07 Thread Sasha Levin
From: Tiecheng Zhou [ Upstream commit 690ae30be163d5262feae01335b2a6f30569e5aa ] hwmgr->pm_en is initialized at hwmgr_hw_init. during amdgpu_device_init, there is amdgpu_asic_reset that calls to soc15_asic_reset (for V320 usecase, Vega10 asic), in which: 1) soc15_asic_reset_method calls to

[PATCH AUTOSEL 5.6 20/50] ALSA: hda: Match both PCI ID and SSID for driver blacklist

2020-05-07 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 977dfef40c8996b69afe23a9094d184049efb7bb ] The commit 3c6fd1f07ed0 ("ALSA: hda: Add driver blacklist") added a new blacklist for the devices that are known to have empty codecs, and one of the entries was ASUS ROG Zenith II (PCI SSID 1043:874f). However, it

[PATCH AUTOSEL 5.6 30/50] ALSA: hda/hdmi: fix race in monitor detection during probe

2020-05-07 Thread Sasha Levin
From: Kai Vehmanen [ Upstream commit ca76282b6faffc83601c25bd2a95f635c03503ef ] A race exists between build_pcms() and build_controls() phases of codec setup. Build_pcms() sets up notifier for jack events. If a monitor event is received before build_controls() is run, the initial jack state is

[PATCH 4/4] habanalabs: add signal/wait to CS IOCTL operations

2020-05-07 Thread Oded Gabbay
From: Omer Shpigelman Add the following two operations to the CS IOCTL: Signal: The signal operation is basically a command submission, that is created by the driver upon user request. It will be implemented using a dedicated PQE that will increment a specific SOB. There will be a new flag:

[PATCH 1/4] uapi: habanalabs: add signal/wait operations

2020-05-07 Thread Oded Gabbay
From: Omer Shpigelman This is a pre-requisite to upstreaming GAUDI support. Signal/wait operations are done by the user to perform sync between two Primary Queues (PQs). The sync is done using the sync manager and it is usually resolved inside the device, but sometimes it can be resolved in the

[PATCH AUTOSEL 5.6 19/50] vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()

2020-05-07 Thread Sasha Levin
From: Sean Christopherson [ Upstream commit 5cbf3264bc715e9eb384e2b68601f8c02bb9a61d ] Use follow_pfn() to get the PFN of a PFNMAP VMA instead of assuming that vma->vm_pgoff holds the base PFN of the VMA. This fixes a bug where attempting to do VFIO_IOMMU_MAP_DMA on an arbitrary PFNMAP'd

[PATCH AUTOSEL 5.6 25/50] dma-buf: Fix SET_NAME ioctl uapi

2020-05-07 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit a5bff92eaac45bdf6221badf9505c26792fdf99e ] The uapi is the same on 32 and 64 bit, but the number isn't. Everyone who botched this please re-read: https://www.kernel.org/doc/html/v5.4-preprc-cpu/ioctl/botching-up-ioctls.html Also, the type argument for the

[PATCH 3/4] habanalabs: handle the h/w sync object

2020-05-07 Thread Oded Gabbay
From: Omer Shpigelman Define a structure representing the h/w sync object (SOB). a SOB can contain up to 2^15 values. Each signal CS will increment the SOB by 1, so after some time we will reach the maximum number the SOB can represent. When that happens, the driver needs to move to a different

[PATCH AUTOSEL 5.6 36/50] drm/amd/display: Defer cursor update around VUPDATE for all ASIC

2020-05-07 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit fdfd2a858590d318cfee483bd1c73e00f77533af ] [Why] Fixes the following scenario: - Flip has been prepared sometime during the frame, update pending - Cursor update happens right when VUPDATE would happen - OPTC lock acquired, VUPDATE is blocked until

[PATCH AUTOSEL 5.6 42/50] fibmap: Warn and return an error in case of block > INT_MAX

2020-05-07 Thread Sasha Levin
From: Ritesh Harjani [ Upstream commit b75dfde1212991b24b220c3995101c60a7b8ae74 ] We better warn the fibmap user and not return a truncated and therefore an incorrect block map address if the bmap() returned block address is greater than INT_MAX (since user supplied integer pointer). It's

[PATCH][next] net: phy: fix less than zero comparison with unsigned variable val

2020-05-07 Thread Colin King
From: Colin Ian King The unsigned variable val is being checked for an error by checking if it is less than zero. This can never occur because val is unsigned. Fix this by making val a plain int. Addresses-Coverity: ("Unsigned compared against zero") Fixes: bdbdac7649fa ("ethtool: provide UAPI

[PATCH AUTOSEL 5.6 39/50] drm/qxl: lost qxl_bo_kunmap_atomic_page in qxl_image_init_helper()

2020-05-07 Thread Sasha Levin
From: Vasily Averin [ Upstream commit 5b5703dbafae74adfbe298a56a81694172caf5e6 ] v2: removed TODO reminder Signed-off-by: Vasily Averin Link: http://patchwork.freedesktop.org/patch/msgid/a4e0ae09-a73c-1c62-04ef-3f990d41b...@virtuozzo.com Signed-off-by: Gerd Hoffmann Signed-off-by: Sasha

Re: [PATCH 01/15] arm64: kvm: Unify users of HVC instruction

2020-05-07 Thread Quentin Perret
On Thursday 07 May 2020 at 15:01:07 (+0100), Marc Zyngier wrote: > > /* > > - * u64 __kvm_call_hyp(void *hypfn, ...); > > + * u64 __kvm_call_hyp(unsigned long arg, ...); > > * > > * This is not really a variadic function in the classic C-way and care > > must > > * be taken when calling

Re: [PATCH 03/15] arm64: kvm: Fix symbol dependency in __hyp_call_panic_nvhe

2020-05-07 Thread David Brazdil
Hi Marc, > > What breaks without this constraint? Is it a fix that should go in > early? Otherwise looks good. This only becomes an issue when __hyp_call_panic_nvhe() and __hyp_call_panic_vhe() are moved to separate files, so I don't think it's necessary to go in early. Currently the string

[PATCH AUTOSEL 5.6 31/50] dmaengine: dmatest: Fix process hang when reading 'wait' parameter

2020-05-07 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit aa72f1d20ee973d68f26d46fce5e1cf6f9b7e1ca ] If we do % echo 1 > /sys/module/dmatest/parameters/run [ 115.851124] dmatest: Could not start test, no channels configured % echo dma8chan7 > /sys/module/dmatest/parameters/channel [ 127.563872]

[PATCH AUTOSEL 5.6 34/50] SUNRPC: defer slow parts of rpc_free_client() to a workqueue.

2020-05-07 Thread Sasha Levin
From: NeilBrown [ Upstream commit 7c4310ff56422ea43418305d22bbc5fe19150ec4 ] The rpciod workqueue is on the write-out path for freeing dirty memory, so it is important that it never block waiting for memory to be allocated - this can lead to a deadlock. rpc_execute() - which is often called by

[PATCH AUTOSEL 5.6 28/50] dmaengine: dmatest: Fix iteration non-stop logic

2020-05-07 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit b9f960201249f20deea586b4ec814669b4c6b1c0 ] Under some circumstances, i.e. when test is still running and about to time out and user runs, for example, grep -H . /sys/module/dmatest/parameters/* the iterations parameter is not respected and test

[PATCH AUTOSEL 5.6 33/50] drm/amdgpu: bump version for invalidate L2 before SDMA IBs

2020-05-07 Thread Sasha Levin
From: Marek Olšák [ Upstream commit 9017a4897a20658f010bebea825262963c10afa6 ] This fixes GPU hangs due to cache coherency issues. Bump the driver version. Split out from the original patch. Signed-off-by: Marek Olšák Reviewed-by: Christian König Tested-by: Pierre-Eric Pelloux-Prayer

[PATCH AUTOSEL 5.6 37/50] drm/amd/display: Update downspread percent to match spreadsheet for DCN2.1

2020-05-07 Thread Sasha Levin
From: Sung Lee [ Upstream commit 668a6741f809f2d15d125cfe2b39661e8f1655ea ] [WHY] The downspread percentage was copied over from a previous version of the display_mode_lib spreadsheet. This value has been updated, and the previous value is too high to allow for such modes as 4K120hz. The new

<    6   7   8   9   10   11   12   13   14   15   >