[PATCH v1 04/23] ata: sata_dwc_460ex: burst size must be in items not bytes

2016-04-21 Thread Andy Shevchenko
The burst size as defined by DMAengine API is in items of address width. Derive burst size from AHB_DMA_BRST_DFLT (64 bytes) by dividing it to DMA_SLAVE_BUSWIDTH_4_BYTES (4 bytes) that gives us 16 items. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 6 +++--- 1 file changed,

[PATCH v1 22/23] ata: sata_dwc_460ex: make debug messages neat

2016-04-21 Thread Andy Shevchenko
There is a duplication in the debug messages when accessing SCR registers. Remove duplication to make the messages neat. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/driv

[PATCH v1 03/23] ata: sata_dwc_460ex: set dma_boundary to 0x1fff

2016-04-21 Thread Andy Shevchenko
The original code states: Make sure a LLI block is not created that will span 8K max FIS boundary. If the block spans such a FIS boundary, there is a chance that a DMA burst will cross that boundary -- this results in an error in the host controller. Since we have

[PATCH v1 10/23] ata: sata_dwc_460ex: add phy support

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard This adds support for powering on an optional PHY when activating the device. Signed-off-by: Mans Rullgard --- drivers/ata/Kconfig | 1 + drivers/ata/sata_dwc_460ex.c | 22 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/ata/Kconfig

[PATCH v1 14/23] ata: sata_dwc_460ex: get rid of some pointless casts

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard Casting a pointer to unsigned long only to immediately cast it back to a pointer makes no sense. Fix this. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dr

[PATCH v1 11/23] ata: sata_dwc_460ex: get rid of global data

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard This moves all global data into the driver private struct, thus permitting multiple devices of this type to be used. The core_scr_read/write() functions are replaced with equivalent calls to the existing sata_dwc_scr_read/write(). Signed-off-by: Mans Rullgard --- drivers/a

[PATCH v1 08/23] ata: sata_dwc_460ex: don't call ata_sff_qc_issue() on DMA commands

2016-04-21 Thread Andy Shevchenko
ata_sff_qc_issue() can't handle DMA commands and thus we have to avoid it for them. Do call ata_bmdma_qc_issue() instead for this case. Suggested-by: Christian Lamparter Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH v1 20/23] ata: sata_dwc_460ex: tidy up sata_dwc_clear_dmacr()

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard This consolidates the reads from each of the if/else branches to one place making the code a lot nicer to look at. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/ata/sa

[PATCH v1 16/23] ata: sata_dwc_460ex: add __iomem to register base pointer

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard The pointer to the mmio register base is missing the __iomem annotation. Fix this. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c

[PATCH v1 17/23] ata: sata_dwc_460ex: supply physical address of FIFO to DMA

2016-04-21 Thread Andy Shevchenko
DMA operates with physical addresses which is not exactly the same as ioremap() returns. Introduce variable to keep physical address of the SATA FIFO register and supply it when prepare DMA channel. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 13 +++-- 1 file chang

[PATCH v1 13/23] ata: sata_dwc_460ex: remove empty libata callback

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard The sata_dwc_qc_prep() does nothing. Use the default ata_noop_qc_prep instead. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex

[PATCH v1 21/23] ata: sata_dwc_460ex: use devm_ioremap

2016-04-21 Thread Andy Shevchenko
This simplifies error handling and cleanup by using devm to manage IO mappings. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 30 +++--- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_4

[PATCH v1 18/23] ata: sata_dwc_460ex: switch to new dmaengine_terminate_* API

2016-04-21 Thread Andy Shevchenko
Convert dmaengine_terminate_all() calls to synchronous and asynchronous versions where appropriate. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c inde

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-21 Thread Noralf Trønnes
Den 21.04.2016 09:28, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 08:15:30PM +0200, Noralf Trønnes wrote: Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrec

[PATCH v1 09/23] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard Currently this driver only works with a DesignWare DMA engine which it registers manually using the second "reg" address range and interrupt number from the DT node. This patch makes the driver instead use the "dmas" property if present, otherwise optionally falling back on t

[PATCH v1 15/23] ata: sata_dwc_460ex: get rid of incorrect cast

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard The (void *__iomem) cast is wrong. Change the target type of the "base" pointer to void __iomem instead and drop the cast. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/sata

[PATCH v1 19/23] ata: sata_dwc_460ex: use readl/writel_relaxed()

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard Rename the register access macros and use standard _relaxed() ops instead of __raw variants with explicit byte swapping. The original driver used the ppc-specific in/out_le32(). When it was adapted to other systems, these were added to the driver under ifdefs. However, thos

[PATCH v1 07/23] ata: sata_dwc_460ex: skip dma setup for non-dma commands

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard Calling dmaengine_prep_slave_sg() for non-dma ATA commands is unnecessary at best and could be harmful if the dma driver reacts badly to this. It also causes this driver to print a bogus error message in these cases. This patch changes sata_dwc_qc_issue() to only do the dma

[PATCH v1 06/23] ata: sata_dwc_460ex: select only core part of DMA driver

2016-04-21 Thread Andy Shevchenko
There is no need to have a platform driver compiled since the DMA driver is used as a library. Signed-off-by: Andy Shevchenko --- drivers/ata/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index cfa936a..7c6e43a 100644 --- a/

Re: [PATCH 1/3] checkpatch: add Kconfig 'default n' test

2016-04-21 Thread Paul Bolle
On do, 2016-04-21 at 10:16 -0700, Joe Perches wrote: > Also, there are some oddities like: > > arch/mips/cavium-octeon/Kconfig:default "n" For v4.6-rc4: $ git grep -n -e "default\s\+\"[mny]\"" -- "*Kconfig*" arch/mips/Kconfig:2232: default "y" arch/mips/Kconfig:2237: default "

[PATCH v1 12/23] ata: sata_dwc_460ex: correct HOSTDEV{P}_FROM_*() macros

2016-04-21 Thread Andy Shevchenko
Here we refactor HOSTDEV{P}_FROM_*() macros to fit one line and fix the definition of HSDEV_FROM_HSDEVP() where wrong name of the parameter waas used. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --

[PATCH net v2 1/3] drivers: net: cpsw: fix parsing of phy-handle DT property in dual_emac config

2016-04-21 Thread David Rivshin (Allworx)
From: David Rivshin Commit 9e42f715264ff158478fa30eaed847f6e131366b ("drivers: net: cpsw: add phy-handle parsing") saved the "phy-handle" phandle into a new cpsw_priv field. However, phy connections are per-slave, so the phy_node field should be in cpsw_slave_data rather than cpsw_priv. This wou

[PATCH v1 23/23] powerpc/4xx: Device tree update for the 460ex DWC SATA

2016-04-21 Thread Andy Shevchenko
Device tree update for the Applied micro processor 460ex on-chip SATA to use "dmas" property. Signed-off-by: Andy Shevchenko --- arch/powerpc/boot/dts/canyonlands.dts | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/canyonlands.dts b/arc

[PATCH v1 02/23] ata: sata_dwc_460ex: fix crash on offline links without an attached drive

2016-04-21 Thread Andy Shevchenko
From: Christian Lamparter This patch fixes Machine Check "Data Write PLB Error" which happens when libata-sff's ata_sff_dev_select is trying to write into the device_addr in order to select a drive. However, SATA has no master or slave devices like the old ATA Bus, therefore selecting a different

[PATCH v1 01/23] ata: sata_dwc_460ex: remove incorrect locking

2016-04-21 Thread Andy Shevchenko
From: Mans Rullgard This lock is already taken in ata_scsi_queuecmd() a few levels up the call stack so attempting to take it here is an error. Moreover, it is pointless in the first place since it only protects a single, atomic assignment. Enabling lock debugging gives the following output: =

[PATCH v1 00/23] ata: sata_dwc_460ex: make it working again

2016-04-21 Thread Andy Shevchenko
The last approach in the commit 8b3444852a2b ("sata_dwc_460ex: move to generic DMA driver") to switch to generic DMA engine API wasn't tested on bare metal. Besides that we expecting new board support coming with the same SATA IP but with different DMA. This series is targetting the following thin

[PATCH v1 05/23] ata: sata_dwc_460ex: DMA is always a flow controller

2016-04-21 Thread Andy Shevchenko
In the original code the DMA is always a flow controller. Set this accordingly in updated code. Signed-off-by: Andy Shevchenko --- drivers/ata/sata_dwc_460ex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 4c

[PATCH 2/6] rtc: rv3029: convert to use regmap

2016-04-21 Thread Mylène Josserand
To add support of rv3049, the current driver is converted to use regmap. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-rv3029c2.c | 275 +++-- 1 file changed, 142 insertions(+), 133 deletions(-) diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/

[PATCH 1/6] rtc: rv3029: remove 'i2c' in functions names

2016-04-21 Thread Mylène Josserand
To prepare the use of regmap to add the support of RV-3049, all the 'i2c' in functions's names are removed. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-rv3029c2.c | 132 - 1 file changed, 57 insertions(+), 75 deletions(-) diff --git a/drivers/

[PATCH 0/6] add support for Microcrystal RV-3049

2016-04-21 Thread Mylène Josserand
The current patchset adds the support of the microcrystal RV-3049 (spi). This RTC will use the same driver than RV-3029 by updating it to use regmap. It also adds the alarm IRQ functionality. Mylène Josserand (6): rtc: rv3029: remove 'i2c' in functions names rtc: rv3029: convert to use regmap

[PATCH 6/6] rtc: rv3029: add alarm IRQ

2016-04-21 Thread Mylène Josserand
Add the alarm IRQ functionality. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-rv3029c2.c | 114 - 1 file changed, 93 insertions(+), 21 deletions(-) diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/rtc-rv3029c2.c index 42de1a3..152ca9d 1006

[PATCH 4/6] rtc: rv3029: Removes some checks and warnings

2016-04-21 Thread Mylène Josserand
Removes some checks from checkpatch such as spaces around arithmetic operations. Signed-off-by: Mylène Josserand --- drivers/rtc/rtc-rv3029c2.c | 66 ++ 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/drivers/rtc/rtc-rv3029c2.c b/driver

[PATCH 3/6] rtc: rv3029: Add support of RV3049

2016-04-21 Thread Mylène Josserand
Add support of Microcrystal RV3049 RTC (SPI) using regmap on the RV3029 (I2C) driver. Signed-off-by: Mylène Josserand --- drivers/rtc/Kconfig| 37 +++ drivers/rtc/rtc-rv3029c2.c | 110 +++-- 2 files changed, 126 insertions(+), 21 delet

[PATCH 5/6] rtc: rv3029: enable AE_x bits on set_alarm

2016-04-21 Thread Mylène Josserand
The RTC RV3029 handles different types of alarms : seconds, minutes, ... These alarms can be enabled or disabled individually using an AE_x bit which is the last bit (BIT(7)) on each alarm registers. To prepare the alarm IRQ support, the current code enables all the alarm types by setting each AE_

[PATCH net v2 2/3] drivers: net: cpsw: fix error messages when using phy-handle DT property

2016-04-21 Thread David Rivshin (Allworx)
From: David Rivshin The phy-handle, phy_id, and fixed-link properties are mutually exclusive, and only one need be specified. However if phy-handle was specified, an error message would complain about the lack of phy_id or fixed-link. Also, if phy-handle was specified and the subsequent of_phy_c

Re: [PATCH] drivers: net: cpsw: fix wrong regs access in cpsw_ndo_open

2016-04-21 Thread David Miller
From: Grygorii Strashko Date: Tue, 19 Apr 2016 21:09:49 +0300 > The cpsw_ndo_open() could try to access CPSW registers before > calling pm_runtime_get_sync(). This will trigger L3 error: > > WARNING: CPU: 0 PID: 21 at drivers/bus/omap_l3_noc.c:147 > l3_interrupt_handler+0x220/0x34c() > 44

Re: [PATCH V3 2/4] gpio: tegra: Make of_device_id compatible data to constant

2016-04-21 Thread Stephen Warren
On 04/20/2016 07:30 AM, Laxman Dewangan wrote: The data member of the of_device_id is the constant type and hence all static structure which is used for this initialisation as static. Reviewed-by: Stephen Warren

Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables

2016-04-21 Thread Stephen Warren
On 04/20/2016 07:30 AM, Laxman Dewangan wrote: Move the file scoped multiple global variable from Tegra GPIO driver to the structure and make this as gpiochip data which can be referred from GPIO chip callbacks. diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c +#define GPI

Re: [PATCH V3 4/4] gpio: tegra: Add support for gpio debounce

2016-04-21 Thread Stephen Warren
On 04/20/2016 07:30 AM, Laxman Dewangan wrote: NVIDIA's Tegra210 support the HW debounce in the GPIO controller for all its GPIO pins. Add support for setting debounce timing by implementing the set_debounce callback of gpiochip. diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegr

Re: [PATCH 0/3] Make x86's switch_mm run with IRQs off

2016-04-21 Thread Andy Lutomirski
On Thu, Apr 21, 2016 at 10:57 AM, Andy Lutomirski wrote: > This is some of the PCID prep work, but I think it's reasonable on > its own, too. I might also want it for FSGSBASE. I rebased this wrong. I'll send a new version after the kbuild bot has some time to test it. > > Andy Lutomirski (3):

[PATCH net v2 3/3] drivers: net: cpsw: use of_phy_connect() in fixed-link case

2016-04-21 Thread David Rivshin (Allworx)
From: David Rivshin If a fixed-link DT subnode is used, the phy_device was looked up so that a PHY ID string could be constructed and passed to phy_connect(). This is not necessary, as the device_node can be passed directly to of_phy_connect() instead. This reuses the same codepath as if the phy-

Re: [PATCH v2 2/2] kbuild: Remove stale asm-generic wrappers

2016-04-21 Thread James Hogan
On Tue, Feb 23, 2016 at 09:51:07AM +, James Hogan wrote: > Hi Michal, > > On Tue, Jan 19, 2016 at 03:27:24PM +0100, Arnd Bergmann wrote: > > On Tuesday 19 January 2016 14:22:13 James Hogan wrote: > > > On Tue, Jan 19, 2016 at 03:09:14PM +0100, Arnd Bergmann wrote: > > > > On Tuesday 19 January

Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables

2016-04-21 Thread Laxman Dewangan
On Friday 22 April 2016 12:03 AM, Stephen Warren wrote: On 04/20/2016 07:30 AM, Laxman Dewangan wrote: Move the file scoped multiple global variable from Tegra GPIO driver to the structure and make this as gpiochip data which can be referred from GPIO chip callbacks. diff --git a/drivers/gpi

[PATCH] drm/exynos/hdmi: Don't print error on deferral due to regulators

2016-04-21 Thread Javier Martinez Canillas
The regulators may not be available just because their driver's probe function was just not executed and so the regulators not registered. So, in this case the Exynos HDMI driver should not print logs since a -EPROBE_DEFER is not really an error and that will just pollute the kernel log and confus

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-21 Thread Noralf Trønnes
Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback (struct drm_framebuffer_funcs *)->dirty() The drm_fb_helper_sys_*() functions will accumulate changes and schedule

[PATCH] Revert "cpufreq: governor: Fix negative idle_time when configured with CONFIG_HZ_PERIODIC"

2016-04-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Revert commit 0df35026c6a5 (cpufreq: governor: Fix negative idle_time when configured with CONFIG_HZ_PERIODIC) that introduced a regression by causing the ondemand cpufreq governor to misbehave for CONFIG_TICK_CPU_ACCOUNTING unset (the frequency goes up to the max at one p

Re: [PATCH v1 2/5] perf/x86/intel/pt: IP filtering register/cpuid bits

2016-04-21 Thread Thomas Gleixner
On Thu, 21 Apr 2016, Borislav Petkov wrote: > > +#define MSR_IA32_RTIT_ADDR0_A 0x0580 > > +#define MSR_IA32_RTIT_ADDR0_B 0x0581 > > +#define MSR_IA32_RTIT_ADDR1_A 0x0582 > > +#define MSR_IA32_RTIT_ADDR1_B 0x0583 > > +#define MSR_IA

Re: [PATCH 1/2] net: ethernet: davinci_emac: Fix Unbalanced pm_runtime_enable

2016-04-21 Thread David Miller
From: Neil Armstrong Date: Wed, 20 Apr 2016 10:56:13 +0200 > In order to avoid an Unbalanced pm_runtime_enable in the DaVinci > emac driver when the device is removed and re-probed, and a > pm_runtime_disable() call in davinci_emac_remove(). > > Actually, using unbind/bind on a TI DM8168 SoC giv

Re: [PATCH 2/2] net: ethernet: davinci_emac: Fix platform_data overwrite

2016-04-21 Thread David Miller
From: Neil Armstrong Date: Wed, 20 Apr 2016 10:56:45 +0200 > When the DaVinci emac driver is removed and re-probed, the actual > pdev->dev.platform_data is populated with an unwanted valid pointer saved by > the previous davinci_emac_of_get_pdata() call, causing a kernel crash when > calling priv

Re: [PATCH v1 2/5] perf/x86/intel/pt: IP filtering register/cpuid bits

2016-04-21 Thread Peter Zijlstra
On Thu, Apr 21, 2016 at 08:55:38PM +0200, Thomas Gleixner wrote: > On Thu, 21 Apr 2016, Borislav Petkov wrote: > > > +#define MSR_IA32_RTIT_ADDR0_A0x0580 > > > +#define MSR_IA32_RTIT_ADDR0_B0x0581 > > > +#define MSR_IA32_RTIT_ADDR1_A0x0582 > > > +#def

[tip:irq/urgent] irqchip/mips-gic: Don't overrun pcpu_masks array

2016-04-21 Thread tip-bot for Paul Burton
Commit-ID: 91951f980e521d8f7e92283735b99fb9f4b05d93 Gitweb: http://git.kernel.org/tip/91951f980e521d8f7e92283735b99fb9f4b05d93 Author: Paul Burton AuthorDate: Thu, 21 Apr 2016 11:31:54 +0100 Committer: Thomas Gleixner CommitDate: Thu, 21 Apr 2016 21:04:29 +0200 irqchip/mips-gic: Don't

Re: [PATCH] ixgbevf: Fix relaxed order settings in VF driver

2016-04-21 Thread Alexander Duyck
On Thu, Apr 21, 2016 at 11:13 AM, Alexander Duyck wrote: > On Thu, Apr 21, 2016 at 10:21 AM, Babu Moger wrote: >> Current code writes the tx/rx relaxed order without reading it first. >> This can lead to unintended consequences as we are forcibly writing >> other bits. > > The consequences were v

Re: [PATCH net] Driver: Vmxnet3: set CHECKSUM_UNNECESSARY for IPv6 packets

2016-04-21 Thread David Miller
From: Shrikrishna Khare Date: Wed, 20 Apr 2016 18:12:29 -0700 > For IPv6, if the device indicates that the checksum is correct, set > CHECKSUM_UNNECESSARY. > > Reported-by: Subbarao Narahari > Signed-off-by: Shrikrishna Khare > Signed-off-by: Jin Heo Applied.

Re: [PATCH v2 0/4] net: thunderx: Add multiqset support for DPDK

2016-04-21 Thread David Miller
From: sunil.kovv...@gmail.com Date: Thu, 21 Apr 2016 12:27:48 +0530 > This patch series mainly adds support for userspace application > like DPDK with a VNIC VF attached to request additional QSets > for having morethan the default 8 queues. I don't think it's appropriate to add facilities for no

Re: [PATCH v7 00/10] KVM PCIe/MSI passthrough on ARM/ARM64: kernel part 1/3: iommu changes

2016-04-21 Thread Alex Williamson
On Thu, 21 Apr 2016 14:18:09 +0200 Eric Auger wrote: > Hi Alex, Robin, > On 04/19/2016 06:56 PM, Eric Auger wrote: > > This series introduces the dma-reserved-iommu api used to: > > > > - create/destroy an iova domain dedicated to reserved iova bindings > > - map/unmap physical addresses onto re

Re: stable-security kernel updates

2016-04-21 Thread Sasha Levin
On 04/21/2016 10:54 AM, Jiri Slaby wrote: > On 04/21/2016, 03:53 PM, Sasha Levin wrote: >> I'm not trying to replace the stable trees, I'm trying to help users who >> don't >> update the stable tree that often to at least receive critical fixes in >> between >> those updates. > > And that's the

Re: [PATCH V3 3/4] gpio: tegra: Get rid of all file scoped global variables

2016-04-21 Thread Stephen Warren
On 04/21/2016 12:35 PM, Laxman Dewangan wrote: On Friday 22 April 2016 12:03 AM, Stephen Warren wrote: On 04/20/2016 07:30 AM, Laxman Dewangan wrote: Move the file scoped multiple global variable from Tegra GPIO driver to the structure and make this as gpiochip data which can be referred from

Re: [PATCH 1/2] x86/arch_prctl: add ARCH_SET_{COMPAT,NATIVE} to change compatible mode

2016-04-21 Thread Andy Lutomirski
On Wed, Apr 20, 2016 at 12:05 PM, Peter Zijlstra wrote: > On Wed, Apr 20, 2016 at 08:40:23AM -0700, Andy Lutomirski wrote: >> Do LBR, PEBS, and similar report user regs or do they merely want to >> know the instruction format? If the latter, I could whip up a tiny >> function to do just that (lik

Re: [PATCH] ixgbevf: Fix relaxed order settings in VF driver

2016-04-21 Thread Babu Moger
Hi Alex, On 4/21/2016 2:22 PM, Alexander Duyck wrote: > On Thu, Apr 21, 2016 at 11:13 AM, Alexander Duyck > wrote: >> On Thu, Apr 21, 2016 at 10:21 AM, Babu Moger wrote: >>> Current code writes the tx/rx relaxed order without reading it first. >>> This can lead to unintended consequences as we a

Re: [PATCH V2] cpuidle: Change ktime_get() with local_clock()

2016-04-21 Thread Rafael J. Wysocki
On Thu, Apr 21, 2016 at 10:56 AM, Daniel Lezcano wrote: > The ktime_get() can have a non negligeable overhead, use local_clock() > instead. > > In order to test the difference between ktime_get() and local_clock(), > a quick hack has been added to trigger, via debugfs, 1 times a > call to ktim

[PATCH] checkpatch: Add test for keywords not starting on tabstops

2016-04-21 Thread Joe Perches
It's somewhat common and in general a defect for c90 keywords to not start on a tabstop. Add a test for this condition and warn when it occurs. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 13 + 1 file changed, 13 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts

Re: [PATCH v2] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-21 Thread Rafael J. Wysocki
On Thursday, April 21, 2016 02:52:55 AM Laurent Pinchart wrote: > The pm_runtime_force_suspend() and pm_runtime_force_resume() helpers are > designed to help driver being RPM-centric by offering an easy way to > manage runtime PM state during system suspend and resume. The first > function will for

Re: [PATCHv7 2/3] x86/vdso: add mremap hook to vm_special_mapping

2016-04-21 Thread Andy Lutomirski
On Mon, Apr 18, 2016 at 7:23 AM, Dmitry Safonov wrote: > Add possibility for userspace 32-bit applications to move > vdso mapping. Previously, when userspace app called > mremap for vdso, in return path it would land on previous > address of vdso page, resulting in segmentation violation. > Now it

[PATCH] fs: fix over-zealous use of "const"

2016-04-21 Thread Kees Cook
When I was fixing up const recommendations from checkpatch.pl, I went overboard. This fixes the warning (during a W=1 build): include/linux/fs.h:2627:74: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] static inline const char * const kernel_read_file_id_str(enum

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-21 Thread Maciej W. Rozycki
On Thu, 21 Apr 2016, Fengguang Wu wrote: > > -mcompact-branches=optimal is an option for the latest version of the MIPS > > architecture which is enabled by mips-malta_qemu_32r6_defconfig but your > > compiler is too old, doesn't support R6. Unfortunately there's no simple > > way to run a test o

[GIT] Networking

2016-04-21 Thread David Miller
1) Fix memory leak in iwlwifi, from Matti Gottlieb. 2) Add missing registration of netfilter arp_tables into initial namespace, from Florian Westphal. 3) Fix potential NULL deref in DecNET routing code. 4) Restrict NETLINK_URELEASE to truly bound sockets only, from Dmitry Ivanov. 5) Fix

[GIT PULL] Power management fixes for v4.6-rc5

2016-04-21 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm+acpi-4.6-rc5 to receive power management material for v4.6-rc5 with top-most commit 395da1259ac3e3fdc70636a854c993ddb76c6169 Merge branch 'pm-cpufreq-fixes' on top of commit c3b46c73264b03000d1

Re: [PATCH v1 23/23] powerpc/4xx: Device tree update for the 460ex DWC SATA

2016-04-21 Thread Rob Herring
On Thu, Apr 21, 2016 at 1:15 PM, Andy Shevchenko wrote: > Device tree update for the Applied micro processor 460ex on-chip SATA to use > "dmas" property. > Signed-off-by: Andy Shevchenko > --- > arch/powerpc/boot/dts/canyonlands.dts | 15 --- > 1 file changed, 12 insertions(+), 3 del

Re: [PATCHv5 3/3] selftest/x86: add mremap vdso 32-bit test

2016-04-21 Thread Andy Lutomirski
On Mon, Apr 18, 2016 at 6:43 AM, Dmitry Safonov wrote: > Should print on success: > [root@localhost ~]# ./test_mremap_vdso_32 > AT_SYSINFO_EHDR is 0xf773f000 > [NOTE] Moving vDSO: [f773f000, f774] -> [a00, a001000] > [OK] > Or segfault if landing was bad (before patches): > [root@

[PATCH] rapidio: fix potential NULL pointer dereference

2016-04-21 Thread Vladimir Zapolskiy
The change fixes improper check for a returned error value by class_create() function, which on error returns ERR_PTR() value, thus the original check always results in a dead code on error path. Signed-off-by: Vladimir Zapolskiy --- drivers/rapidio/devices/rio_mport_cdev.c | 4 ++-- 1 file chan

Re: [PATCH 1/5] x86, KASLR: Update description for decompressor worst case size

2016-04-21 Thread Kees Cook
On Thu, Apr 21, 2016 at 7:47 AM, Borislav Petkov wrote: > On Wed, Apr 20, 2016 at 01:55:42PM -0700, Kees Cook wrote: > ... >> diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S >> index 6236b9ec4b76..6b8f8728c1fa 100644 >> --- a/arch/x86/boot/header.S >> +++ b/arch/x86/boot/header.S >> @

Re: Major KVM issues with kernel 4.5 on the host

2016-04-21 Thread Marc Haber
On Thu, Apr 21, 2016 at 06:51:06PM +0200, Borislav Petkov wrote: > On Thu, Apr 21, 2016 at 04:50:05PM +0200, Marc Haber wrote: > > What bothers me is that since I ended up with a "suspect" commit that > > actually results in a "good" kernel (running for 22 hours now), I must > > have said "bad" to

[PATCH] scripts: kconfig: implement a sort method

2016-04-21 Thread Felipe Balbi
With a growing amount of Kernel configuration, it's getting ever more difficult to find anything on menuconfig. Because of that, implement mergesort for kconfig to make it a little easier for anybody building kernels. Signed-off-by: Felipe Balbi --- let me know if you folks prefer to turn this i

Re: [PATCH 1/2] x86/arch_prctl: add ARCH_SET_{COMPAT,NATIVE} to change compatible mode

2016-04-21 Thread Peter Zijlstra
On Thu, Apr 21, 2016 at 12:39:42PM -0700, Andy Lutomirski wrote: > On Wed, Apr 20, 2016 at 12:05 PM, Peter Zijlstra wrote: > > On Wed, Apr 20, 2016 at 08:40:23AM -0700, Andy Lutomirski wrote: > >> >> Peter, I got lost in the code that calls this. Are regs coming from > >> >> the overflow interru

Re: [RFC v1 3/4] x86, boot: Implement ASLR for kernel memory sections (x86_64)

2016-04-21 Thread H. Peter Anvin
On April 21, 2016 8:52:01 AM PDT, Thomas Garnier wrote: >On Thu, Apr 21, 2016 at 8:46 AM, H. Peter Anvin wrote: >> On April 21, 2016 6:30:24 AM PDT, Boris Ostrovsky > wrote: >>> >>> >>>On 04/15/2016 06:03 PM, Thomas Garnier wrote: +void __init kernel_randomize_memory(void) +{ +

Re: [PATCH V3 04/11] CRIS v32: nand: set ECC algorithm explicitly

2016-04-21 Thread Boris Brezillon
On Sun, 17 Apr 2016 22:53:00 +0200 Rafał Miłecki wrote: > This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to > enum nand_ecc_algo). > > Signed-off-by: Rafał Miłecki Mikael, Jesper, could you review/ack this patch? I'd like to take it into the nand tree to avoid any depende

Re: [RFC v1 3/4] x86, boot: Implement ASLR for kernel memory sections (x86_64)

2016-04-21 Thread Thomas Garnier
Make sense, thanks for the details. On Thu, Apr 21, 2016 at 1:15 PM, H. Peter Anvin wrote: > On April 21, 2016 8:52:01 AM PDT, Thomas Garnier wrote: >>On Thu, Apr 21, 2016 at 8:46 AM, H. Peter Anvin wrote: >>> On April 21, 2016 6:30:24 AM PDT, Boris Ostrovsky >> wrote: On 04/15/20

Re: [PATCH V3 05/11] staging: mt29f_spinand: set ECC algorithm explicitly

2016-04-21 Thread Boris Brezillon
Hi Greg, On Sun, 17 Apr 2016 22:53:01 +0200 Rafał Miłecki wrote: > This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to > enum nand_ecc_algo). Do you mind if I take this patch through the NAND tree in order to avoid dependency problems? > > Signed-off-by: Rafał Miłecki > -

Re: [PATCH v3 0/2] Align mmap address for DAX pmd mappings

2016-04-21 Thread Mike Kravetz
On 04/21/2016 12:06 AM, Matthew Wilcox wrote: > On Wed, Apr 20, 2016 at 11:10:25PM -0400, Toshi Kani wrote: >> How about moving the function (as is) to mm/huge_memory.c, rename it to >> get_hugepage_unmapped_area(), which is defined to NULL in huge_mm.h >> when TRANSPARENT_HUGEPAGE is unset? > > G

Re: [PATCH] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs

2016-04-21 Thread Heiko Stübner
Am Donnerstag, 21. April 2016, 12:30:18 schrieb Marc Zyngier: > On Thu, 21 Apr 2016 18:47:20 +0800 > > "Huang, Tao" wrote: > > Hi, Mark: > > > > On 2016年04月21日 18:19, Mark Rutland wrote: > > > On Thu, Apr 21, 2016 at 11:58:12AM +0800, Jianqun Xu wrote: > > >> +cpu_l0: cpu@0 { > >

[PATCH net] ipv4/fib: don't warn when primary address is missing if in_dev is dead

2016-04-21 Thread Paolo Abeni
After commit fbd40ea0180a ("ipv4: Don't do expensive useless work during inetdev destroy.") when deleting an interface, fib_del_ifaddr() can be executed without any primary address present on the dead interface. The above is safe, but triggers some "bug: prim == NULL" warnings. This commit avoids

Re: [PATCH v1 00/23] ata: sata_dwc_460ex: make it working again

2016-04-21 Thread Christian Lamparter
On Thursday, April 21, 2016 09:15:21 PM Andy Shevchenko wrote: > The last approach in the commit 8b3444852a2b ("sata_dwc_460ex: move to generic > DMA driver") to switch to generic DMA engine API wasn't tested on bare metal. > Besides that we expecting new board support coming with the same SATA IP

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-21 Thread Ralf Baechle
On Thu, Apr 21, 2016 at 12:51:29PM +0800, Fengguang Wu wrote: > On Wed, Apr 20, 2016 at 03:30:21PM +0200, Ralf Baechle wrote: > > On Wed, Apr 20, 2016 at 01:44:28PM +0800, kbuild test robot wrote: > > > > > FYI, the error/warning still remains. > > > > > > tree: > > > https://git.kernel.org/p

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-21 Thread Ralf Baechle
On Thu, Apr 21, 2016 at 08:55:34PM +0100, Maciej W. Rozycki wrote: > > % mips-linux-gnu-gcc --version > > mips-linux-gnu-gcc (Debian 5.2.1-16) 5.2.1 20150903 > > Copyright (C) 2015 Free Software Foundation, Inc. > > > > How about temporarily disable that error, until we upgrade to a new > > gcc v

Re: [PATCH v2 2/2] asus-laptop: correct error handling in sysfs_acpi_set

2016-04-21 Thread Andy Shevchenko
On Sat, Apr 16, 2016 at 3:01 AM, Giedrius Statkevičius wrote: > Properly return rv back to the caller in the case of an error in > parse_arg. In the process remove a unused variable 'out'. > > Signed-off-by: Giedrius Statkevičius > --- > drivers/platform/x86/asus-laptop.c | 5 ++--- > 1 file cha

Re: [PATCH v1 2/5] perf/x86/intel/pt: IP filtering register/cpuid bits

2016-04-21 Thread Borislav Petkov
On Thu, Apr 21, 2016 at 08:55:38PM +0200, Thomas Gleixner wrote: > I have to disagree here. The MSRs itself can really go into msr-index.h while > the bit definitions might go elsewhere. What's wrong with having all MSRs at a > central place? Same reason as for pci_ids.h - to contain only MSRs whi

Re: [PATCH v1 2/5] perf/x86/intel/pt: IP filtering register/cpuid bits

2016-04-21 Thread Borislav Petkov
On Thu, Apr 21, 2016 at 09:17:02PM +0200, Peter Zijlstra wrote: > So I agree with Thomas; the risk of not doing this is that we'll > introduce the same MSR again, in another file, under another name. ... only if that MSR is useful in other compilation units. If not, then you're unlikely to need it

Re: regression: 3a878c430fd6 ("tty: serial: msm: Add TX DMA support") drops data

2016-04-21 Thread Andy Shevchenko
On Thu, Apr 21, 2016 at 4:00 AM, Frank Rowand wrote: > On 4/20/2016 9:48 AM, Frank Rowand wrote: >> On 4/19/2016 11:07 PM, Ivan Ivanov wrote: >>> On Apr 20, 2016, at 02:23, Frank Rowand wrote: Hi Ivan, It appears that I have found a regression caused by 3a878c430fd6

Re: [PATCH V3 04/11] CRIS v32: nand: set ECC algorithm explicitly

2016-04-21 Thread Mikael Starvik
Acked-by: Mikael Starvik > 17 apr. 2016 kl. 22:53 skrev Rafał Miłecki : > > This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to > enum nand_ecc_algo). > > Signed-off-by: Rafał Miłecki > --- > arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 1 + > arch/cris/arch-v32/drivers/

Re: [PATCH v2] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-21 Thread Laurent Pinchart
Hi Rafael, On Thursday 21 Apr 2016 21:52:56 Rafael J. Wysocki wrote: > On Thursday, April 21, 2016 02:52:55 AM Laurent Pinchart wrote: > > The pm_runtime_force_suspend() and pm_runtime_force_resume() helpers are > > designed to help driver being RPM-centric by offering an easy way to > > manage ru

Re: [PATCH v2 2/2] asus-laptop: correct error handling in sysfs_acpi_set

2016-04-21 Thread Darren Hart
On Thu, Apr 21, 2016 at 11:34:13PM +0300, Andy Shevchenko wrote: > On Sat, Apr 16, 2016 at 3:01 AM, Giedrius Statkevičius > wrote: > > Properly return rv back to the caller in the case of an error in > > parse_arg. In the process remove a unused variable 'out'. > > > > Signed-off-by: Giedrius Stat

[PATCH v4] ASoC: docs: add clocking examples for DAI formats

2016-04-21 Thread Peter Rosin
Provide *our* view of what the rules are for the different DAI formats, so that we do not have to trust external interpretations for this crucial bit of interoperability. Signed-off-by: Peter Rosin --- Documentation/sound/alsa/soc/clocking.txt | 195 ++ 1 file changed

Re: [PATCH] ixgbevf: Fix relaxed order settings in VF driver

2016-04-21 Thread Alexander Duyck
On Thu, Apr 21, 2016 at 12:39 PM, Babu Moger wrote: > Hi Alex, > > On 4/21/2016 2:22 PM, Alexander Duyck wrote: >> On Thu, Apr 21, 2016 at 11:13 AM, Alexander Duyck >> wrote: >>> On Thu, Apr 21, 2016 at 10:21 AM, Babu Moger wrote: Current code writes the tx/rx relaxed order without reading

Re: [PATCH v2] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-21 Thread Rafael J. Wysocki
On Thu, Apr 21, 2016 at 10:57 PM, Laurent Pinchart wrote: > Hi Rafael, > > On Thursday 21 Apr 2016 21:52:56 Rafael J. Wysocki wrote: >> On Thursday, April 21, 2016 02:52:55 AM Laurent Pinchart wrote: >> > The pm_runtime_force_suspend() and pm_runtime_force_resume() helpers are >> > designed to hel

[PATCH] HID: uhid: Fixes a bug with userspace bluetooth stacks, which causes hangs during certain operations

2016-04-21 Thread roderick
From: Roderick Colenbrander Many devices use userspace bluetooth stacks like BlueZ or Bluedroid in combination with uhid. If any of these stacks is used with a HID device for which the driver performs a HID request as part .probe (or technically another HID operation), this results in a deadlock

Re: [PATCH] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs

2016-04-21 Thread Rob Herring
On Wed, Apr 20, 2016 at 10:58 PM, Jianqun Xu wrote: > This patch adds rk3399.dtsi for rk3399 found on Rockchip > RK3399 SoCs, also add rk3399-evb.dts for Rockchip RK3399 > Evaluation Board. > > Patch is tested on RK3399 evb. > > Signed-off-by: Jianqun Xu > --- > arch/arm64/boot/dts/rockchip/Make

Re: [PATCH v2] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-21 Thread Laurent Pinchart
Hi Rafael, On Thursday 21 Apr 2016 23:02:06 Rafael J. Wysocki wrote: > On Thu, Apr 21, 2016 at 10:57 PM, Laurent Pinchart wrote: > > On Thursday 21 Apr 2016 21:52:56 Rafael J. Wysocki wrote: > >> On Thursday, April 21, 2016 02:52:55 AM Laurent Pinchart wrote: > >>> The pm_runtime_force_suspend() a

[PATCH] wcn36xx: Set SMD timeout to 10 seconds

2016-04-21 Thread Bjorn Andersson
After booting the wireless subsystem and uploading the NV blob to the WCNSS_CTRL service the remote continues to do things and will not start servicing wlan-requests for another 2-5 seconds (measured). The downstream code does not have any special handling for this case, but has a timeout of 10 se

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-21 Thread Maciej W. Rozycki
On Thu, 21 Apr 2016, Ralf Baechle wrote: > > I don't think it makes sense as the compiler won't support MIPSr6 code > > anyway, so first it'll bail out on `-march=mips32r6', and if we go even > > further and disable that too, then GAS will probably break somewhere on > > inline asm and GCC wil

Re: [PATCH] wcn36xx: Set SMD timeout to 10 seconds

2016-04-21 Thread John Stultz
On Thu, Apr 21, 2016 at 2:09 PM, Bjorn Andersson wrote: > After booting the wireless subsystem and uploading the NV blob to the > WCNSS_CTRL service the remote continues to do things and will not start > servicing wlan-requests for another 2-5 seconds (measured). > > The downstream code does not h

<    2   3   4   5   6   7   8   9   >