Re: [PATCH v2 2/3] mmc: sunxi: Filter out unsupported modes declared in the device tree

2019-02-06 Thread Maxime Ripard
On Tue, Feb 05, 2019 at 11:42:24PM +0800, Chen-Yu Tsai wrote: > The MMC device tree bindings include properties used to signal various > signalling speed modes. Until now the sunxi driver was accepting them > without any further filtering, while the sunxi device trees were not > actually using them

Re: [PATCHv5 08/10] node: Add memory caching attributes

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:22 -0700 Keith Busch wrote: > System memory may have side caches to help improve access speed to > frequently requested address ranges. While the system provided cache is > transparent to the software accessing these memory ranges, applications > can optimize their own a

Re: [PATCHv5 07/10] acpi/hmat: Register performance attributes

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:21 -0700 Keith Busch wrote: > Register the local attached performace access attributes with the memory's performance > node if HMAT provides the locality table. While HMAT does make it possible > to know performance for all possible initiator-target pairings, we export

Re: [PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-02-06 Thread Maxime Ripard
Hi Kishon, On Wed, Feb 06, 2019 at 05:43:12PM +0530, Kishon Vijay Abraham I wrote: > On 05/02/19 2:16 PM, Daniel Vetter wrote: > > On Mon, Feb 04, 2019 at 03:33:31PM +0530, Kishon Vijay Abraham I wrote: > >> > >> > >> On 21/01/19 9:15 PM, Maxime Ripard wrote: > >>> Hi, > >>> > >>> Here is a set of

[PATCH 1/2] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-02-06 Thread Beniamin Bia
From: Beniamin Bia Frequency attribute is added with a standard type from iio framework instead of custom attribute. This is a small step towards removing any unnecessary custom attribute. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 97 +- 1

Re: [PATCHv5 05/10] acpi/hmat: Register processor domain to its memory

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:19 -0700 Keith Busch wrote: > If the HMAT Subsystem Address Range provides a valid processor proximity > domain for a memory domain, or a processor domain matches the performance > access of the valid processor proximity domain, register the memory > target with that ini

[PATCH 2/2] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-02-06 Thread Beniamin Bia
From: Beniamin Bia The custom phase and scale attributes were moved to standard iio types. Signed-off-by: Beniamin Bia --- drivers/staging/iio/frequency/ad9834.c | 54 +++--- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/drivers/staging/iio/frequency/ad983

Re: [PATCHv5 04/10] node: Link memory nodes to their compute nodes

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:18 -0700 Keith Busch wrote: > Systems may be constructed with various specialized nodes. Some nodes > may provide memory, some provide compute devices that access and use > that memory, and others may provide both. Nodes that provide memory are > referred to as memory ta

Re: [PATCHv5 03/10] acpi/hmat: Parse and report heterogeneous memory

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:17 -0700 Keith Busch wrote: > Systems may provide different memory types and export this information > in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these > tables provided by the platform and report the memory access and caching > attributes to the kern

[PATCH v3 1/2] r8169: Load MAC address from device tree if present

2019-02-06 Thread Thierry Reding
From: Thierry Reding If the system was booted using a device tree and if the device tree contains a MAC address, use it instead of reading one from the EEPROM. This is useful in situations where the EEPROM isn't properly programmed or where the firmware wants to override the existing MAC address.

[PATCH v3 2/2] r8169: Avoid pointer aliasing

2019-02-06 Thread Thierry Reding
From: Thierry Reding Read MAC address 32-bit at a time and manually extract the individual bytes. This avoids pointer aliasing and gives the compiler a better chance of optimizing the operation. Suggested-by: Andrew Lunn Signed-off-by: Thierry Reding --- Applies to net-next. I tested this on

Re: [PATCHv5 00/10] Heterogeneuos memory node attributes

2019-02-06 Thread Jonathan Cameron
On Thu, 24 Jan 2019 16:07:14 -0700 Keith Busch wrote: > == Changes since v4 == > > All public interfaces have kernel docs. > > Renamed "class" to "access", docs and changed logs updated > accordingly. (Rafael) > > The sysfs hierarchy is altered to put initiators and targets in their >

[PATCH 1/2] memblock: remove memblock_{set,clear}_region_flags

2019-02-06 Thread Mike Rapoport
The memblock API provides dedicated helpers to set or clear a flag on a memory region, e.g. memblock_{mark,clear}_hotplug(). The memblock_{set,clear}_region_flags() functions are used only by the memblock internal function that adjusts the region flags. Drop these functions and use open-coded impl

Re: [PATCH v5 0/9] phy: Add configuration interface for MIPI D-PHY devices

2019-02-06 Thread Kishon Vijay Abraham I
Hi, On 06/02/19 5:55 PM, Maxime Ripard wrote: > Hi Kishon, > > On Wed, Feb 06, 2019 at 05:43:12PM +0530, Kishon Vijay Abraham I wrote: >> On 05/02/19 2:16 PM, Daniel Vetter wrote: >>> On Mon, Feb 04, 2019 at 03:33:31PM +0530, Kishon Vijay Abraham I wrote: On 21/01/19 9:15 PM, Maxim

Re: [PATCH v3 1/2] r8169: Load MAC address from device tree if present

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 01:30:17PM +0100, Thierry Reding wrote: > From: Thierry Reding > > If the system was booted using a device tree and if the device tree > contains a MAC address, use it instead of reading one from the EEPROM. > This is useful in situations where the EEPROM isn't properly pr

Re: [PATCH v3 2/2] r8169: Avoid pointer aliasing

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 01:30:18PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Read MAC address 32-bit at a time and manually extract the individual > bytes. This avoids pointer aliasing and gives the compiler a better > chance of optimizing the operation. > > Suggested-by: Andrew Lu

Re: [PATCH 4/6] perf thread-stack: Represent jmps to the start of a different symbol

2019-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 09, 2019 at 11:18:33AM +0200, Adrian Hunter escreveu: > The compiler might optimize a call/ret combination by making it a jmp. > However the thread-stack does not presently cater for that, so that such > control flow is not visible in the call graph. Make it visible by recording > on th

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 1:46, Sowjanya Komatineni пишет: > This patch adds DMA support for Tegra I2C. > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > transfer size of the max FIFO depth and DMA mode is used for > transfer size higher than max FIFO depth to save CPU overhead. > > PIO mode

Re: [PATCH v5 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 12:07:30PM +0100, Uwe Kleine-König wrote: > On Wed, Feb 06, 2019 at 04:18:47PM +0530, Yash Shah wrote: > > On Wed, Jan 30, 2019 at 1:44 PM Uwe Kleine-König > > wrote: > > > > > > On Tue, Jan 29, 2019 at 05:13:18PM +0530, Yash Shah wrote: > > > > DT documentation for PWM con

Re: [PATCH 02/35] ARM: davinci: select GENERIC_IRQ_MULTI_HANDLER

2019-02-06 Thread Sekhar Nori
On 31/01/19 7:08 PM, Bartosz Golaszewski wrote: > diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c > index 67805ca74ff8..b9aec3c48a6a 100644 > --- a/arch/arm/mach-davinci/cp_intc.c > +++ b/arch/arm/mach-davinci/cp_intc.c > @@ -19,6 +19,7 @@ > #include > #include >

Re: [PATCH v3 4/5] phy: qcom-qmp: Add QMP UFS PHY support for msm8998

2019-02-06 Thread Kishon Vijay Abraham I
Hi, On 04/02/19 11:40 PM, Jeffrey Hugo wrote: > On 2/4/2019 10:39 AM, Marc Gonzalez wrote: >> Use same init sequence as sdm845. >> >> Signed-off-by: Marc Gonzalez >> --- > > Reviewed-by: Jeffrey Hugo I don't seem to have the dt-binding patch in my inbox. Can you resend them please? Thanks Ki

Re: [PATCH v3] tpm/tpm_crb: Avoid unaligned reads in crb_recv()

2019-02-06 Thread Jarkko Sakkinen
On Tue, Feb 05, 2019 at 10:57:19PM +0200, Jarkko Sakkinen wrote: > On Tue, Feb 05, 2019 at 02:56:02PM +, Winkler, Tomas wrote: > > > > > > > -Original Message- > > > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > > > Sent: Tuesday, February 05, 2019 16:36 > > > To: W

Re: [PATCH v5 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-02-06 Thread Thierry Reding
On Tue, Jan 29, 2019 at 05:13:19PM +0530, Yash Shah wrote: [...] > diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c [...] > +static void pwm_sifive_update_clock(struct pwm_sifive_ddata *pwm, > + unsigned long rate) > +{ > + /* (1 << (16+scale)) *

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 03:40:52PM +0300, Dmitry Osipenko wrote: > 06.02.2019 1:46, Sowjanya Komatineni пишет: > > This patch adds DMA support for Tegra I2C. > > > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > > transfer size of the max FIFO depth and DMA mode is used for > >

RE: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Sowjanya Komatineni
> TEGRA_I2C_TIMEOUT); > > tegra_i2c_mask_irq(i2c_dev, int_mask); @@ -814,6 +1133,7 @@ static > > int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, > > time_left, completion_done(&i2c_dev->msg_complete), > > i2c_dev->msg_err); > > > > + i2c_dev->is

Re: [PATCH 2/2] x86/boot: increase maximum number of avoided KASLR regions

2019-02-06 Thread Julian Stecklina
Borislav Petkov writes: >> @@ -213,7 +213,7 @@ static void mem_avoid_memmap(char *str) >> i++; >> } >> >> -/* More than 4 memmaps, fail kaslr */ >> +/* Can't store all regions, fail kaslr */ >> if ((i >= MAX_MEMMAP_REGIONS) && str) >> memmap_too_large

Re: [PATCH 00/24] Add support for PCIe RC and EP mode in TI's AM654 SoC

2019-02-06 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 04/02/19 10:10 PM, Lorenzo Pieralisi wrote: > On Mon, Jan 14, 2019 at 06:54:00PM +0530, Kishon Vijay Abraham I wrote: >> Add PCIe RC support for TI's AM654 SoC. The PCIe controller in AM654 >> uses Synopsys core revision 4.90a and uses the same TI wrapper as used >> in keystone2 wit

Re: [PATCH v3 4/5] phy: qcom-qmp: Add QMP UFS PHY support for msm8998

2019-02-06 Thread Marc Gonzalez
On 06/02/2019 13:39, Kishon Vijay Abraham I wrote: > I don't seem to have the dt-binding patch in my inbox. Can you resend them > please? Jeffrey pointed out a few deficiencies in the series. I'll CC you on the entire upcoming v4 series. Regards.

[BUG] Deadlock in block/blk-flush.c, with resolution

2019-02-06 Thread Dragan Milenkovic
The bug manifests by mdX_raid1 and other related tasks being blocked. It is triggered by LVM RAID, but is not caused by it. I have also triggered it by LVM + mdraid, but only once. It is more frequent by LVM RAID. It does not occur in the master branch, but it does in 4.20.y, 4.19.y, 4.18.y.

Re: [RFC PATCH 7/8] KVM: i8254: Remove need for irq ack notifier

2019-02-06 Thread Julian Stecklina
Paolo Bonzini writes: > Alternatively, it is probably a good time to switch the default to split > irqchip > in QEMU. Split irqchip was introduced in kernel 4.5, which was released about > three years ago. I totally agree. At some point, the in-kernel PIT/PIC emulation should also be removed,

Re: [PATCH 2/4] pwm: stm32-lp: Add power management support

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 09:54:05AM +0100, Uwe Kleine-König wrote: > On Wed, Feb 06, 2019 at 09:42:48AM +0100, Fabrice Gasnier wrote: > > If you agree with the current approach, I can send a V2 with Tomasz's > > suggestion to remove the ifdefs and use __maybe_unused instead. > > I think the suspend

RE: [PATCH v3] tpm/tpm_crb: Avoid unaligned reads in crb_recv()

2019-02-06 Thread Winkler, Tomas
() > > On Tue, Feb 05, 2019 at 10:57:19PM +0200, Jarkko Sakkinen wrote: > > On Tue, Feb 05, 2019 at 02:56:02PM +, Winkler, Tomas wrote: > > > > > > > > > > -Original Message- > > > > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > > > > Sent: Tuesday, February 05, 2

Re: [RFC][Patch v8 5/7] virtio: Enables to add a single descriptor to the host

2019-02-06 Thread Nitesh Narayan Lal
On 2/5/19 3:49 PM, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 03:18:52PM -0500, Nitesh Narayan Lal wrote: >> This patch enables the caller to expose a single buffers to the >> other end using vring descriptor. It also allows the caller to >> perform this action in synchornous manner by us

Re: [PATCH v10 0/6] tpm: retrieve digest size of unknown algorithms from TPM

2019-02-06 Thread Jarkko Sakkinen
On Wed, Feb 06, 2019 at 11:57:18AM +0100, Roberto Sassu wrote: > Update > > This version of the patch set includes three additional patches (5-7/7) > that allow users of the TPM driver to provide a digest for each PCR bank to > tpm_pcr_extend(). The new patches have been included to facilitate the

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 14:55, Dmitry Osipenko пишет: > 06.02.2019 1:46, Sowjanya Komatineni пишет: >> This patch adds DMA support for Tegra I2C. >> >> Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for >> transfer size of the max FIFO depth and DMA mode is used for >> transfer size higher than max

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 15:48, Thierry Reding пишет: > On Wed, Feb 06, 2019 at 03:40:52PM +0300, Dmitry Osipenko wrote: >> 06.02.2019 1:46, Sowjanya Komatineni пишет: >>> This patch adds DMA support for Tegra I2C. >>> >>> Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for >>> transfer size of the m

Re: [PATCH v2 0/9] driver core: Fix some device links issues and add "consumer autoprobe" flag

2019-02-06 Thread Ulf Hansson
On Wed, 6 Feb 2019 at 13:10, Rafael J. Wysocki wrote: > > On Wed, Feb 6, 2019 at 12:24 PM Ulf Hansson wrote: > > > > On Wed, 6 Feb 2019 at 10:56, Rafael J. Wysocki wrote: > > > > > > On Tue, Feb 5, 2019 at 12:27 PM Rafael J. Wysocki > > > wrote: > > > > > > > > On Tuesday, February 5, 2019 9:1

Re: [PATCH net-next v3 01/12] net: Introduce ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:15AM CET, f.faine...@gmail.com wrote: >In preparation for getting rid of switchdev_ops, create a dedicated NDO >operation for getting the port's parent identifier. There are >essentially two classes of drivers that need to implement getting the >port's parent ID which are

Re: linux-next: Fixes tag needs some work in the scsi-fixes tree

2019-02-06 Thread Martin K. Petersen
Vaibhav, > Martin, should I resend the patch with this fixed ? No need, I fixed it up yesterday. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 05/35] ARM: davinci: drop irq defines from default_priorites

2019-02-06 Thread Sekhar Nori
On 05/02/19 3:51 AM, David Lechner wrote: > On 1/31/19 7:38 AM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> In order to select SPARSE_IRQ we need to make the interrupt numbers >> dynamic (at least at build-time for the top-level controller). The >> interrupt numbers are used as a

RE: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Sowjanya Komatineni
> BTW, I'm seeing "atmel_mxt_ts 0-004c: Warning: Info CRC error - > device=0xF436DC file=0x00" whithout making any modifications to the > original patch as well and it shall not happen, hence there is bug somewhere. > Probably FIFO triggers are still not set up correctly... ? > > In snippet

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 16:03, Sowjanya Komatineni пишет: >> BTW, I'm seeing "atmel_mxt_ts 0-004c: Warning: Info CRC error - >> device=0xF436DC file=0x00" whithout making any modifications to the >> original patch as well and it shall not happen, hence there is bug >> somewhere. Probably FIFO triggers ar

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 15:49, Sowjanya Komatineni пишет: > >> TEGRA_I2C_TIMEOUT); >>> tegra_i2c_mask_irq(i2c_dev, int_mask); @@ -814,6 +1133,7 @@ static >>> int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, >>> time_left, completion_done(&i2c_dev->msg_complete), >>>

Re: [PATCH v10 0/6] tpm: retrieve digest size of unknown algorithms from TPM

2019-02-06 Thread Roberto Sassu
On 2/6/2019 1:57 PM, Jarkko Sakkinen wrote: On Wed, Feb 06, 2019 at 11:57:18AM +0100, Roberto Sassu wrote: Update This version of the patch set includes three additional patches (5-7/7) that allow users of the TPM driver to provide a digest for each PCR bank to tpm_pcr_extend(). The new patches

Re: [PATCH 3/9] mfd: pm8xxx: convert to v2 irq interfaces to support hierarchical IRQ chips

2019-02-06 Thread Linus Walleij
Hi Brian! I found one more bug in this patch, still not the last bug but I'm still digging around: On Fri, Jan 25, 2019 at 5:23 PM Brian Masney wrote: > +struct pm_irq_data { > + int num_irqs; > + struct irq_chip *irq_chip; > + void (*irq_handler)(struct irq_desc *desc); > +};

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 02:55:01PM +0300, Dmitry Osipenko wrote: > 06.02.2019 1:46, Sowjanya Komatineni пишет: > > This patch adds DMA support for Tegra I2C. > > > > Tegra I2C TX and RX FIFO depth is 8 words. PIO mode is used for > > transfer size of the max FIFO depth and DMA mode is used for > >

Re: [PATCH net-next v3 02/12] bnxt: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:16AM CET, f.faine...@gmail.com wrote: >BNXT only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). The conversion is >straight forward he

Re: [PATCH 5/5] arm: dts: axpxx: add charge led node

2019-02-06 Thread Chen-Yu Tsai
On Wed, Feb 6, 2019 at 2:06 PM Stefan Mavrodiev wrote: > > > On 2/5/19 6:16 PM, Chen-Yu Tsai wrote: > > On Thu, Jan 31, 2019 at 4:25 PM Stefan Mavrodiev wrote: > >> Add dt node for axp20x-led driver controlling CHGLED. > >> Default status is disabled, since it may be not used. > >> > >> Signed-of

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Thierry Reding
On Wed, Feb 06, 2019 at 02:09:09PM +0100, Thierry Reding wrote: > On Wed, Feb 06, 2019 at 02:55:01PM +0300, Dmitry Osipenko wrote: [...] > > Sowjanya, I tried to enforce DMA transferring + setting DMA burst to a one > > word and this combination doesn't work well while it should, if I'm not > > m

Re: [RFC][Patch v8 5/7] virtio: Enables to add a single descriptor to the host

2019-02-06 Thread Luiz Capitulino
On Wed, 6 Feb 2019 07:56:37 -0500 Nitesh Narayan Lal wrote: > On 2/5/19 3:49 PM, Michael S. Tsirkin wrote: > > On Mon, Feb 04, 2019 at 03:18:52PM -0500, Nitesh Narayan Lal wrote: > >> This patch enables the caller to expose a single buffers to the > >> other end using vring descriptor. It also

[PATCH v2 04/28] thunderbolt: Add dummy read after port capability list walk on Light Ridge

2019-02-06 Thread Mika Westerberg
Light Ridge has an issue where reading the next capability pointer location in port config space the read data is not cleared. It is fine to read capabilities each after another so only thing we need to do is to make sure we issue dummy read after tb_port_find_cap() is finished to avoid the issue i

[PATCH v2 17/28] thunderbolt: Add support for full PCIe daisy chains

2019-02-06 Thread Mika Westerberg
Currently the software connection manager (tb.c) has only supported creating a single PCIe tunnel, no PCIe device daisy chaining has been supported so far. This updates the software connection manager so that it now can create PCIe tunnels for full chain of six devices. Signed-off-by: Mika Westerb

[PATCH v2 10/28] thunderbolt: Rename tunnel_pci to tunnel

2019-02-06 Thread Mika Westerberg
In order to tunnel non-PCIe traffic as well rename tunnel_pci.[ch] to tunnel.[ch] to reflect this fact. No functional changes. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/Makefile | 2 +- drivers/thunderbolt/tb.c | 2 +- drivers/thunderbolt/{tun

[PATCH v2 01/28] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending

2019-02-06 Thread Mika Westerberg
The XDomain protocol messages may start as soon as Thunderbolt control channel is started. This means that if the other host starts sending ThunderboltIP packets early enough they will be passed to the network driver which then gets confused because its resume hook is not called yet. Fix this by u

[PATCH tip/core/rcu 06/19] rcu/sync: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. Signed-off-by: Paul E. McKenney --- kernel/rcu/sync.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c index be10036fa621..a8304d90573f 100644 --- a/kernel/rc

[PATCH v2 21/28] thunderbolt: Add support for Display Port tunnels

2019-02-06 Thread Mika Westerberg
Display Port tunnels are somewhat more complex than PCIe tunnels as it requires 3 tunnels (AUX Rx/Tx and Video). In addition we are not supposed to create the tunnels immediately when a DP OUT is enumerated. Instead we need to wait until we get hotplug event to that adapter port or check if the por

[PATCH v2 23/28] thunderbolt: Add XDomain UUID exchange support

2019-02-06 Thread Mika Westerberg
Currently ICM has been handling XDomain UUID exchange so there was no need to have it in the driver yet. However, since now we are going to add the same capabilities to the software connection manager it needs to be handled properly. For this reason modify the driver XDomain protocol handling so t

[PATCH v2 26/28] thunderbolt: Add support for XDomain connections

2019-02-06 Thread Mika Westerberg
Two domains (hosts) can be connected through a Thunderbolt cable and in that case they can start software services such as networking over the high-speed DMA paths. Now that we have all the basic building blocks in place to create DMA tunnels over the Thunderbolt fabric we can add this support to t

[PATCH tip/core/rcu 13/19] linux/rcu_sync: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. Signed-off-by: Paul E. McKenney --- include/linux/rcu_sync.h | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/include/linux/rcu_sync.h b/include/linux/rcu_sync.h index ece7ed9a4a70..5890da7a38b8 1

RE: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Sowjanya Komatineni
> >> BTW, I'm seeing "atmel_mxt_ts 0-004c: Warning: Info CRC error - > >> device=0xF436DC file=0x00" whithout making any modifications to the > >> original patch as well and it shall not happen, hence there is bug > >> somewhere. Probably FIFO triggers are still not set up correctly... ? >

[PATCH v2 27/28] thunderbolt: Make rest of the logging to happen at debug level

2019-02-06 Thread Mika Westerberg
Now that the driver can handle every possible tunnel types there is no point to log everything as info level so turn these to happen at debug level instead. While at it remove duplicated tunnel activation log message (tb_tunnel_activate() calls tb_tunnel_restart() which print the same message). S

[PATCH v2 19/28] thunderbolt: Generalize port finding routines to support all port types

2019-02-06 Thread Mika Westerberg
We will be needing these routines to find Display Port adapters as well so modify them to take port type as the second parameter. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 16 drivers/thunderbolt/tb.c | 35 +-- drivers/

[PATCH v2 25/28] thunderbolt: Make tb_switch_alloc() return ERR_PTR()

2019-02-06 Thread Mika Westerberg
In order to detect possible connections to other domains we need to be able to find out why tb_switch_alloc() fails so make it return ERR_PTR() instead. This allows the caller to differentiate between errors such as -ENOMEM which comes from the kernel and for instance -EIO which comes from the hard

[PATCH v2 16/28] thunderbolt: Discover preboot PCIe paths the boot firmware established

2019-02-06 Thread Mika Westerberg
In Apple Macs the boot firmware (EFI) connects all devices automatically when the system is started, before it hands over to the OS. Instead of ignoring we discover all those PCIe tunnels and record them using our internal structures, just like we do when a device is connected after the OS is alrea

[PATCH v2 24/28] thunderbolt: Add support for DMA tunnels

2019-02-06 Thread Mika Westerberg
In addition to PCIe and Display Port tunnels it is also possible to create tunnels that forward DMA traffic from the host interface adapter (NHI) to a NULL port that is connected to another domain through a Thunderbolt cable. These tunnels can be used to carry software messages such as networking p

[PATCH v2 28/28] thunderbolt: Start firmware on Titan Ridge Apple systems

2019-02-06 Thread Mika Westerberg
Titan Ridge flow to start the firmware is the same as Alpine Ridge so we can do the same on Titan Ridge based Apple systems. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/icm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c in

[PATCH v2 15/28] thunderbolt: Deactivate all paths before restarting them

2019-02-06 Thread Mika Westerberg
We can't be sure the paths are actually properly deactivated when a tunnel is restarted after resume. So instead of marking all paths as inactive we go ahead and deactivate them explicitly. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/tunnel.c | 9 - 1 file changed, 8 insertion

[PATCH v2 20/28] thunderbolt: Rework NFC credits handling

2019-02-06 Thread Mika Westerberg
NFC (non flow control) credits is actually 20-bit field so update tb_port_add_nfc_credits() to handle this properly. This allows us to set NFC credits for Display Port path in subsequent patches. Also make sure the function does not update the hardware if the underlying switch is already unplugged

Re: [PATCH V12 3/5] i2c: tegra: Add DMA support

2019-02-06 Thread Dmitry Osipenko
06.02.2019 16:13, Thierry Reding пишет: [snip] >> That's odd because it suggests that DMA actually completed, but the >> message didn't. >> >> I'm not sure I understand how that could happen. >> >> What's also weird above is that there doesn't seem to be a DMA that >> is started for that particul

[PATCH v2 18/28] thunderbolt: Scan only valid NULL adapter ports in hotplug

2019-02-06 Thread Mika Westerberg
The only way to expand Thunderbolt topology is through the NULL adapter ports (typically ports 1, 2, 3 and 4). There is no point handling Thunderbolt hotplug events on any other port. Add a helper function (tb_port_is_null()) that can be used to determine if the port is NULL port, and use it in so

Re: [PATCH v3] tpm/tpm_crb: Avoid unaligned reads in crb_recv()

2019-02-06 Thread Jarkko Sakkinen
On Wed, Feb 06, 2019 at 12:55:55PM +, Winkler, Tomas wrote: > > Fixed comments and applied the patch, thank you. Do I amend your acked-by? > > Please, do. > Thanks > Tomas Great, thank you. /Jarkko

[PATCH v2 06/28] thunderbolt: Configure lanes when switch is initialized

2019-02-06 Thread Mika Westerberg
Thunderbolt 2 devices and beyond need to have additional bits set in link controller specific registers. This includes two bits in LC_SX_CTRL that tell the link controller which lane is connected and whether it is upstream facing or not. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/lc.

[PATCH v2 02/28] thunderbolt: Do not allocate switch if depth is greater than 6

2019-02-06 Thread Mika Westerberg
Maximum depth in Thunderbolt topology is 6 so make sure it is not possible to allocate switches that exceed the depth limit. While at it update tb_switch_alloc() to use upper/lower_32_bits() following tb_switch_alloc_safe_mode(). Signed-off-by: Mika Westerberg --- drivers/thunderbolt/icm.c|

Re: [PATCH net-next v3 03/12] liquidio: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:17AM CET, f.faine...@gmail.com wrote: >Liquidio only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it >a great candidate to be converted to use the ndo_get_port_parent_id() >NDO instead of implementing switchdev_port_attr_get(). > >Signed-off-by: Florian Fainelli

[PATCH tip/core/rcu 16/19] linux/srcu: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/srcu.h | 17 ++--- include/linux/srcutiny.h | 17 ++--- include/linux/srcutree.h | 17 ++--- 3 fi

[PATCH tip/core/rcu 10/19] linux/rcu_node_tree: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/rcu_node_tree.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/linux/rcu_node_tree.h b/in

[PATCH v2 07/28] thunderbolt: Set sleep bit when suspending switch

2019-02-06 Thread Mika Westerberg
Thunderbolt 2 devices and beyond link controller needs to be notified when a switch is going to be suspended by setting bit 31 in LC_SX_CTRL register. Add this functionality to the software connection manager. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/lc.c | 44

[PATCH tip/core/rcu 19/19] locking/locktorture: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/locking/locktorture.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/locking/locktorture.c b/ke

Re: [PATCH net-next v3 04/12] net/mlx5e: Implement ndo_get_port_parent_id()

2019-02-06 Thread Jiri Pirko
Wed, Feb 06, 2019 at 12:53:18AM CET, f.faine...@gmail.com wrote: >mlx5e only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID, which makes it a >great candidate to be converted to use the ndo_get_port_parent_id() NDO >instead of implementing switchdev_port_attr_get(). > >Since mlx5e makes use of switchdev

[PATCH tip/core/rcu 05/19] rcu/srcu: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/srcutiny.c | 17 ++--- kernel/rcu/srcutree.c | 17 ++--- 2 files changed, 4 insertions(+), 30 deletions(-) diff --g

[PATCH tip/core/rcu 01/19] rcu/rcu.h: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/rcu.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h index 75787

[PATCH v2 22/28] thunderbolt: Run tb_xdp_handle_request() in system workqueue

2019-02-06 Thread Mika Westerberg
We run all XDomain requests during discovery in tb->wq and since it only runs one work at the time it means that sending back reply to the other domain may be delayed too much depending whether there is an active XDomain discovery request running. To make sure we can send reply to the other domain

[PATCH tip/core/rcu 02/19] rcu/rcuperf: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/rcuperf.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf

[PATCH tip/core/rcu 15/19] linux/rcutree: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/rcutree.h | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/include/linux/rcutree.h b/include/linu

[PATCH v2 13/28] thunderbolt: Add helper function to iterate from one port to another

2019-02-06 Thread Mika Westerberg
We need to be able to walk from one port to another when we are creating paths where there are multiple switches between two ports. For this reason introduce a new function tb_port_get_next() and a new macro tb_for_each_port(). Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 60

[PATCH v2 09/28] thunderbolt: Cache adapter specific capability offset into struct port

2019-02-06 Thread Mika Westerberg
The adapter specific capability either is there or not if the port does not hold an adapter. Instead of always finding it on-demand we read the offset just once when the port is initialized. While there we update the struct port documentation to follow kernel-doc format. Signed-off-by: Mika Weste

[PATCH tip/core/rcu 0/19] SPDX changes for v5.1

2019-02-06 Thread Paul E. McKenney
Hello! This series makes SPDX and email-address changes to RCU source files. Thanx, Paul include/linux/rcu_node_tree.h | 17 ++--- include/linux/rcu_se

[PATCH tip/core/rcu 18/19] linux/torture: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/torture.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/linux/torture.h b/include/linux/

[PATCH tip/core/rcu 12/19] linux/rcu_segcblist: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/rcu_segcblist.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/linux/rcu_segcblist.h b/in

[PATCH v2 11/28] thunderbolt: Generalize tunnel creation functionality

2019-02-06 Thread Mika Westerberg
To be able to tunnel non-PCIe traffic, separate tunnel functionality into generic and PCIe specific parts. Rename struct tb_pci_tunnel to tb_tunnel, and make it hold an array of paths instead of just two. Update all the tunneling functions to take this structure as parameter. We also move tb_pci_p

[PATCH v2 03/28] thunderbolt: Enable TMU access when accessing port space on legacy devices

2019-02-06 Thread Mika Westerberg
Light Ridge and Eagle Ridge both need to have TMU access enabled before port space can be fully accessed so make sure it happens on those. This allows us to get rid of the offset quirk in tb_port_find_cap(). Signed-off-by: Mika Westerberg --- drivers/thunderbolt/cap.c | 74 ++

[PATCH tip/core/rcu 17/19] torture: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/torture.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/torture.c b/kernel/torture.c index bbf

[PATCH v2 12/28] thunderbolt: Add functions for allocating and releasing hop IDs

2019-02-06 Thread Mika Westerberg
Each port has a separate path configuration space that is used for finding the next hop (switch) in the path. Hop ID is an index to this configuration space and hop IDs 0 - 7 are reserved. In order to get next available hop ID for each direction we provide two pairs of helper functions that can be

[PATCH v2 14/28] thunderbolt: Extend tunnel creation to more than 2 adjacent switches

2019-02-06 Thread Mika Westerberg
Now that we can allocate hop IDs per port on a path, we can take advantage of this and create tunnels covering longer paths than just between two adjacent switches. PCIe actually does not need this as it is always a daisy chain between two adjacent switches but this way we do not need to hard-code

[PATCH tip/core/rcu 14/19] linux/rcutiny: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- include/linux/rcutiny.h | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/linux/rcutiny.h b/include/linux/

[PATCH v2 05/28] thunderbolt: Move LC specific functionality into a separate file

2019-02-06 Thread Mika Westerberg
We will be adding more link controller functionality in subsequent patches and it does not make sense to keep all that in switch.c, so separate LC functionality into its own file. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/Makefile | 2 +- drivers/thunderbolt/lc.c | 21 +++

[PATCH v2 08/28] thunderbolt: Properly disable path

2019-02-06 Thread Mika Westerberg
We need to wait until all buffers have been drained before the path can be considered disabled. Do this for every hop in a path. Also if the switch is physically disconnected, do not bother disabling it anymore (it is not present anyway). This adds another bit field to struct tb_regs_hop even if w

[PATCH tip/core/rcu 09/19] rcu/update: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/update.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c in

[PATCH tip/core/rcu 04/19] rcu/rcutorture: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/rcutorture.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/r

[PATCH tip/core/rcu 08/19] rcu/tree: Convert to SPDX license identifier

2019-02-06 Thread Paul E. McKenney
Replace the license boiler plate with a SPDX license identifier. While in the area, update an email address. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c| 19 +++ kernel/rcu/tree.h| 17 ++--- kernel/rcu/tree_exp.h| 17 ++--- ke

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