amdgpu: Corrupted video on 32 bit systems (possible fix)

2017-01-19 Thread Nils Holland
Hi folks, there seems to be an issue on 32 bit kernels which makes graphics output look all messed up under X when using the amdgpu drm kernel driver. In fact, the same issue was present at some time in 2015 using the radeon driver too, but it has been fixed a long time ago, as can be seen here:

Re: Re: [PATCH] Input: joystick: adi - change msleep to usleep_range for small msecs

2017-01-19 Thread Aniroop Mathur
Hello Mr. Vojtech Pavlik, So then is the the behavior being checked on large sleeps as you mentioned? Along with this, like you said that replacing mdelay with usleep_range would be even more interesting so if you would like a patch for that as well to check the behavior then that could be sent to

Re: Nokia N900: mixers changed between 4.9 and 4.10-rc3, no longer can use in-call speaker

2017-01-19 Thread Jarkko Nikula
On 01/17/2017 03:47 PM, Peter Ujfalusi wrote: > On 01/15/2017 09:08 PM, Jarkko Nikula wrote: >> However v4.9.4 works and with it I can see there is an issue with these >> aic3x controls: >> >> amixer: Unable to find simple control 'Left DAC_L1 Mixer Line',0 >> >> >> >> amixer: Unable to find simple

Re: [PATCH v8 0/8] Add PWM and IIO timer drivers for STM32

2017-01-19 Thread Rob Herring
On Thu, Jan 19, 2017 at 05:02:11PM +0100, Benjamin Gaignard wrote: > 2017-01-19 9:43 GMT+01:00 Lee Jones : > > On Wed, 18 Jan 2017, Benjamin Gaignard wrote: > > > >> Benjamin Gaignard (8): > >> MFD: add bindings for STM32 Timers driver > >> MFD: add STM32 Timers driver > >> PWM: add pwm-stm3

[PATCH v4 3/4] x86/platform/intel-mid: Don't shadow error code of mp_map_gsi_to_irq()

2017-01-19 Thread Andy Shevchenko
When call mp_map_gsi_to_irq() and return its error code do not shadow it. Note that 0 is not an error. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/device_libs/platform_mrfld_wdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/platform/

[PATCH v3 2/3] spi: pxa2xx: Prepare for edge-triggered interrupts

2017-01-19 Thread Jan Kiszka
When using the a device with edge-triggered interrupts, such as MSIs, the interrupt handler has to ensure that there is a point in time during its execution where all interrupts sources are silent so that a new event can trigger a new interrupt again. This is achieved here by disabling all interru

Re: [PATCH 3/4] phy: qcom-ufs: Remove -always-on property

2017-01-19 Thread Vivek Gautam
On Thu, Jan 19, 2017 at 4:17 PM, Bjorn Andersson wrote: > The fact that a regulator is always-on is a property of the regulator, > not a specific consumer. Implementing this in the driver leads to a > system behaviour that is dependent on if the Qualcomm UFS PHY was ever > (partially) probed. > >

Re: [PATCH v2] platform: x86: Support Turbo Boost Max 3.0 for non HWP systems

2017-01-19 Thread Tim Chen
On Thu, 2017-01-19 at 12:38 +0200, Andy Shevchenko wrote: > On Wed, 2017-01-18 at 14:40 -0800, Tim Chen wrote: > > > > On Wed, 2017-01-18 at 10:29 -0800, Srinivas Pandruvada wrote: > > > > > >   > > > + > > > +static int itmt_legacy_cpu_online(unsigned int cpu) > > > +{ > > > + static u32 max_hig

[PATCH] uapi: mqueue.h: add missing linux/types.h include

2017-01-19 Thread Mike Frysinger
From: Mike Frysinger Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t' __k

Re: debugfs vs. device removal

2017-01-19 Thread Omar Sandoval
On Thu, Jan 19, 2017 at 07:03:52PM +0100, Greg Kroah-Hartman wrote: > On Thu, Jan 19, 2017 at 09:33:50AM -0800, Omar Sandoval wrote: > > On Thu, Jan 19, 2017 at 05:03:48PM +0100, Jiri Kosina wrote: > > > On Thu, 19 Jan 2017, Greg Kroah-Hartman wrote: > > > > > > > > In the block layer, we abuse sy

Re: [RFC v2 4/5] DT bindings documentation for Synopsys UDC platform driver

2017-01-19 Thread Florian Fainelli
On 01/19/2017 11:30 AM, Scott Branden wrote: > Hi Rob, > > On 17-01-19 09:36 AM, Rob Herring wrote: >> On Tue, Jan 17, 2017 at 01:35:07PM +0530, Raviteja Garimella wrote: >>> This patch adds device tree bindings documentation for Synopsys >>> USB device controller platform driver. >> >> Bindings d

Re: [PATCH v2 3/5] firmware: revamp firmware documentation

2017-01-19 Thread Kalle Valo
"Luis R. Rodriguez" writes: > Understanding this code is getting out of control without any > notes. Give the firmware_class driver a much needed documentation love, > and while at it convert it to the new sphinx documentation format. > > v2: typos and small fixes > > Signed-off-by: Luis R. Rodri

Re: [PATCH v4 2/2] procfs/tasks: add a simple per-task procfs hidepid= field

2017-01-19 Thread Andy Lutomirski
On Thu, Jan 19, 2017 at 5:53 AM, Djalal Harouni wrote: > On Thu, Jan 19, 2017 at 12:35 AM, Andy Lutomirski wrote: >> On Wed, Jan 18, 2017 at 2:50 PM, Djalal Harouni wrote: Also, this one-way thing seems wrong to me. I think it should roughly follow the no_new_privs rules instead. IOW

[PATCH v2 0/2] ASoC: sun4i-spdif: Add support for the H3 SoC

2017-01-19 Thread codekipper
From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but the transmit fifo is at a different address. This has been tested on the Beelink X2. BR, CK --- Changes since v1: - Now a patch set with bindings and driver changes. --- Marcus Cooper (2): ASoC: sunxi: Add

[PATCH v2 2/2] ASoC: sun4i-spdif: Add support for the H3 SoC

2017-01-19 Thread codekipper
From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but its TXFIFO is mapped to another address. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-spdif.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/

[PATCH v2 1/2] ASoC: sunxi: Add bindings for sun8i to SPDIF

2017-01-19 Thread codekipper
From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but the transmit fifo is at a different address. Signed-off-by: Marcus Cooper --- Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/d

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-19 Thread Shivappa Vikas
Hello Peterz, On Wed, 18 Jan 2017, Peter Zijlstra wrote: On Wed, Jan 18, 2017 at 09:53:02AM +0100, Thomas Gleixner wrote: The whole approach you and David have taken is to whack some desired cgroup functionality and whatever into CQM without rethinking the overall design. And that's fundament

Re: [PATCH 0/2] Introduce AMD Secure Processor device

2017-01-19 Thread Brijesh Singh
Hi Greg, On 01/19/2017 12:21 PM, Greg KH wrote: On Thu, Jan 19, 2017 at 01:07:50PM -0500, Brijesh Singh wrote: The CCP device (drivers/crypto/ccp/ccp.ko) is part of AMD Secure Processor, which is not dedicated solely to crypto. The AMD Secure Processor includes CCP and PSP (Platform Secure Proc

Re: [PATCH v3 2/3] spi: pxa2xx: Prepare for edge-triggered interrupts

2017-01-19 Thread Andy Shevchenko
On Thu, 2017-01-19 at 19:57 +, Mark Brown wrote: > On Thu, Jan 19, 2017 at 08:37:40PM +0100, Jan Kiszka wrote: > > When using the a device with edge-triggered interrupts, such as > > MSIs, > > the interrupt handler has to ensure that there is a point in time > > during > > I'm missing patches

Re: [PATCH 4/4] phy: qcom-ufs: Suppress extraneous logging

2017-01-19 Thread Vivek Gautam
On Thu, Jan 19, 2017 at 4:17 PM, Bjorn Andersson wrote: > The error paths of the common qcom-ufs functions for registering the > phy, acquiring clocks and acquiring regulators all print specific error > messages before returning an error, so there is no value in printing yet > another - more gener

Re: [RFC v2 4/5] DT bindings documentation for Synopsys UDC platform driver

2017-01-19 Thread Scott Branden
Hi Florian, On 17-01-19 11:40 AM, Florian Fainelli wrote: On 01/19/2017 11:30 AM, Scott Branden wrote: Hi Rob, On 17-01-19 09:36 AM, Rob Herring wrote: On Tue, Jan 17, 2017 at 01:35:07PM +0530, Raviteja Garimella wrote: This patch adds device tree bindings documentation for Synopsys USB devi

Re: [PATCH 1/4] phy: qcom-ufs: Don't kfree devres resource

2017-01-19 Thread Vivek Gautam
On Thu, Jan 19, 2017 at 4:17 PM, Bjorn Andersson wrote: > Upon failing to acquire regulator supplies the qcom-ufs driver calls > kfree() on the devm allocated memory used to store the name of the > regulator, leading to devres corruption. > > Rather than switching to using the appropriate free fun

Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-19 Thread Kalle Valo
Ulf Hansson writes: > Twisting my head around how this could be integrated smoothly into > pwrseq simple. No, I just can find a good way forward without messing > up pwrseq simple itself. > > So, for now I decided (once more :-), that let's keep this as separate driver! > > Perhaps, following dev

Re: [PATCH 06/12] PM / OPP: Add 'struct kref' to struct dev_pm_opp

2017-01-19 Thread Stephen Boyd
On 01/13, Viresh Kumar wrote: > On 13-01-17, 00:52, Stephen Boyd wrote: > > What still doesn't make sense is how an individual OPP could go > > away without the table that the OPP lives in also going away. > > dev_pm_opp_remove() is one such option, which can remove OPPs > individually. Over that,

Re: [tip:locking/core] locking/ww_mutex: Add kselftests for ww_mutex stress

2017-01-19 Thread Peter Zijlstra
Hi Chris, I got me this... I'm still trying to wrap my head around what exactly the test does. = [ BUG: bad unlock balance detected! ] 4.10.0-rc4-00122-g6edad167-dirty #608 Not tainted - kworker/u81:37/330 is trying to releas

Re: [RFC v2 4/5] DT bindings documentation for Synopsys UDC platform driver

2017-01-19 Thread Florian Fainelli
On 01/19/2017 12:07 PM, Scott Branden wrote: > Hi Florian, > > On 17-01-19 11:40 AM, Florian Fainelli wrote: >> On 01/19/2017 11:30 AM, Scott Branden wrote: >>> Hi Rob, >>> >>> On 17-01-19 09:36 AM, Rob Herring wrote: On Tue, Jan 17, 2017 at 01:35:07PM +0530, Raviteja Garimella wrote: > T

Re: [PATCH v7 3/3] arm64: dts: exynos: Add tm2 touchkey node

2017-01-19 Thread Krzysztof Kozlowski
On Tue, Jan 17, 2017 at 02:54:39PM +0900, Jaechul Lee wrote: > Add DT node support for TM2 touchkey device. > > Signed-off-by: Beomho Seo > Signed-off-by: Jaechul Lee > Signed-off-by: Andi Shyti > Reviewed-by: Javier Martinez Canillas > --- > arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 13

[PATCH RFC] vfio error recovery: kernel support

2017-01-19 Thread Michael S. Tsirkin
This is a design and an initial patch for kernel side for AER support in VFIO. 0. What happens now (PCIE AER only) Fatal errors cause a link reset. Non fatal errors don't. All errors stop the VM eventually, but not immediately because it's detected and reported asynchronously. Inter

Re: [RFC][PATCH] x86: Verify access_ok() context

2017-01-19 Thread Frank Ch. Eigler
Hi, Thomas - On Thu, Jan 19, 2017 at 07:12:48PM +0100, Thomas Gleixner wrote: > [...] > It does matter very much, because the fact that the warning triggers tells > me that it's placed in code which is NOT executed in task context. > [...] > We are not papering over problems. Understood. We were

Re: linux-next 20170117 - lockdep whines and BUGs in ata_scsi_rbuf_fill()

2017-01-19 Thread Tejun Heo
On Thu, Jan 19, 2017 at 02:28:35AM -0500, valdis.kletni...@vt.edu wrote: > linux-next 20170110 didn't exhibit this. > > Am seeing at boot a lockdep whine, followed by 3 BUGs. ata_scsi_rbuf_fill() is > in the traceback for all of them.'git log' hints that it's one of 6 > commits > against driv

Re: UM: Fine-tuning for some function implementations

2017-01-19 Thread Anton Ivanov
How about tackling some real problems and performance issues instead? There are a few of those in the network, interrupt and memory subsystems. Take your pick. A. On 19/01/17 17:13, SF Markus Elfring wrote: please don't send drive-by patches. Would you dare to take another look at the publ

Re: [PATCH v3 2/3] spi: pxa2xx: Prepare for edge-triggered interrupts

2017-01-19 Thread Mark Brown
On Thu, Jan 19, 2017 at 08:37:40PM +0100, Jan Kiszka wrote: > When using the a device with edge-triggered interrupts, such as MSIs, > the interrupt handler has to ensure that there is a point in time during I'm missing patches 1 and 3, what's going on here? signature.asc Description: PGP signatu

[PATCH] w1: add DS2405 addressable switch driver

2017-01-19 Thread Maciej S. Szmigiero
This adds a driver for a DS2405 1-wire single-channel addressable switch. The DS2405 can also work as a single-channel binary remote sensor. This driver supports two attributes: "state" and "output" which are the same attribute names as supported by existing DS2406, DS2408 and DS2413 drivers. Sig

Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip

2017-01-19 Thread Ulf Hansson
On 19 January 2017 at 21:10, Kalle Valo wrote: > Ulf Hansson writes: > >> Twisting my head around how this could be integrated smoothly into >> pwrseq simple. No, I just can find a good way forward without messing >> up pwrseq simple itself. >> >> So, for now I decided (once more :-), that let's

Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h

2017-01-19 Thread kbuild test robot
Hi Gideon, [auto build test ERROR on m68k/for-next] [also build test ERROR on v4.10-rc4 next-20170119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added

Re: [PATCH] fbdev: color map copying bounds checking

2017-01-19 Thread Kees Cook
Hi again, It's been two weeks with no response. This fixes a kernel heap OOB read. Andrew, can you take this into -mm? -Kees On Thu, Jan 5, 2017 at 2:42 PM, Kees Cook wrote: > Copying color maps to userspace doesn't check the value of to->start, > which will cause kernel heap buffer OOB read du

Re: sched/clock: Fix hotplug issue

2017-01-19 Thread kbuild test robot
Hi Peter, [auto build test ERROR on tip/sched/core] [also build test ERROR on next-20170119] [cannot apply to tip/x86/core v4.10-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter

Re: sched/clock: Fix hotplug issue

2017-01-19 Thread kbuild test robot
Hi Peter, [auto build test ERROR on tip/sched/core] [also build test ERROR on next-20170119] [cannot apply to tip/x86/core v4.10-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter

[PATCH] powerpc/rtas_flash: Move an assignment for the variable "rc" in manage_flash_write()

2017-01-19 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 19 Jan 2017 21:20:09 +0100 A local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignment into an if branch to indicate a software failure there. This issue was detected by using the Coccinelle soft

[PATCH 5/8] powerpc/nvram: Return directly after a failed kmalloc() in dev_nvram_read()

2017-01-19 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 19 Jan 2017 16:50:31 +0100 Return directly after a call of the function "kmalloc" failed here. Signed-off-by: Markus Elfring --- arch/powerpc/kernel/nvram_64.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/nvram_64

Re: [RFC for GIT] pull-request: add praise to people doing QA

2017-01-19 Thread Wolfram Sang
> So the idea is to have list of those whose names appear on > Reviewed-by: and Tested-by: collected and listed after the list of > commit titles and author names. I personally do not see much > downsides in doing so, but I do not consume that many PRs myself, so > let's hear from those who actua

[PATCH 1/1 linux-next] udf: return inappropriate ioctl instead of argument error

2017-01-19 Thread Fabian Frederick
Currently, lsattr for instance in udf directory gives "udf: Invalid argument While reading flags on ..." This patch removes argument testing and returns -ENOIOCTLCMD when command is unknown to have more accurate message like this: "Inappropriate ioctl for device While reading flags on ..." If arg

Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h

2017-01-19 Thread kbuild test robot
Hi Gideon, [auto build test ERROR on m68k/for-next] [also build test ERROR on v4.10-rc4 next-20170119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added

Re: [RESEND PATCHv1 0/8] mmc: sdhci-msm: Provide support for enhanced strobe

2017-01-19 Thread Ulf Hansson
On 10 January 2017 at 08:00, Ritesh Harjani wrote: > Hi, > > Resending this patch series, as no one could review it -possibly due to > holidays during that time. > > This patch series mainly provides enhanced strobe support to sdhci-msm driver > along with some additions of HW recommended sequence

Re: [PATCH] mutex: Remove ww_ctx unlikely() from __mutex_lock_common()

2017-01-19 Thread Peter Zijlstra
On Thu, Jan 19, 2017 at 08:54:41AM -0500, Steven Rostedt (VMware) wrote: > I added a comment stating that the branch should be unlikely, but due > to the intel drm logic, it currently isn't. Then if drm changes in the > future, we could then try it again. I really don't see the point here. The unl

[PATCH v9 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-19 Thread Eric Auger
Following LPC discussions, we now report reserved regions through the iommu-group sysfs reserved_regions attribute file. Reserved regions are populated through the IOMMU get_resv_region callback (former get_dm_regions), now implemented by amd-iommu, intel-iommu and arm-smmu: - the intel-iommu repo

[PATCH v9 03/18] iommu: Add a new type field in iommu_resv_region

2017-01-19 Thread Eric Auger
We introduce a new field to differentiate the reserved region types and specialize the apply_resv_region implementation. Legacy direct mapped regions have IOMMU_RESV_DIRECT type. We introduce 2 new reserved memory types: - IOMMU_RESV_MSI will characterize MSI regions that are mapped - IOMMU_RESV_R

[PATCH v9 01/18] iommu/dma: Allow MSI-only cookies

2017-01-19 Thread Eric Auger
From: Robin Murphy IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other

[PATCH v9 04/18] iommu: iommu_alloc_resv_region

2017-01-19 Thread Eric Auger
Introduce a new helper serving the purpose to allocate a reserved region. This will be used in iommu driver implementing reserved region callbacks. Signed-off-by: Eric Auger Reviewed-by: Tomasz Nowicki Tested-by: Tomasz Nowicki Tested-by: Bharat Bhushan --- v3 -> v4: - add INIT_LIST_HEAD(®io

[PATCH v9 12/18] irqdomain: Add irq domain MSI and MSI_REMAP flags

2017-01-19 Thread Eric Auger
We introduce two new enum values for the irq domain flag: - IRQ_DOMAIN_FLAG_MSI indicates the irq domain corresponds to an MSI domain - IRQ_DOMAIN_FLAG_MSI_REMAP indicates the irq domain has MSI remapping capabilities. Those values will be useful to check all MSI irq domains have MSI remapping

[PATCH v9 10/18] iommu/arm-smmu: Implement reserved region get/put callbacks

2017-01-19 Thread Eric Auger
The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger Reviewed-by: Tomasz Nowicki Tested-by: Tomasz Nowicki Tested-by: Bhara

Re: [PATCH] sched: Optimize pick_next_task for idle_sched_class too

2017-01-19 Thread Peter Zijlstra
On Thu, Jan 19, 2017 at 10:17:03AM -0500, Steven Rostedt wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 154fd68..e2c6d3b 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3259,13 +3259,15 @@ static inline struct task_struct * > pick_next_task(struct rq *

[PATCH v9 08/18] iommu/vt-d: Implement reserved region get/put callbacks

2017-01-19 Thread Eric Auger
This patch registers the [FEE0_h - FEF0_000h] 1MB MSI range as a reserved region and RMRR regions as direct regions. This will allow to report those reserved regions in the iommu-group sysfs. Signed-off-by: Eric Auger --- v6 -> v7: - report RMRR regions as direct regions - Due to the usage

[PATCH v9 11/18] iommu/arm-smmu-v3: Implement reserved region get/put callbacks

2017-01-19 Thread Eric Auger
The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger Acked-by: Will Deacon Reviewed-by: Tomasz Nowicki --- v7 -> v8: - ad

[PATCH v9 05/18] iommu: Only map direct mapped regions

2017-01-19 Thread Eric Auger
As we introduced new reserved region types which do not require mapping, let's make sure we only map direct mapped regions. Signed-off-by: Eric Auger Reviewed-by: Tomasz Nowicki Tested-by: Tomasz Nowicki Tested-by: Bharat Bhushan --- v3 -> v4: - use region's type and reword commit message an

[PATCH v9 14/18] irqdomain: irq_domain_check_msi_remap

2017-01-19 Thread Eric Auger
This new function checks whether all MSI irq domains implement IRQ remapping. This is useful to understand whether VFIO passthrough is safe with respect to interrupts. On ARM typically an MSI controller can sit downstream to the IOMMU without preventing VFIO passthrough. As such any assigned devic

[PATCH v9 18/18] iommu/arm-smmu: Do not advertise IOMMU_CAP_INTR_REMAP anymore

2017-01-19 Thread Eric Auger
IOMMU_CAP_INTR_REMAP has been advertised in arm-smmu(-v3) although on ARM this property is not attached to the IOMMU but rather is implemented in the MSI controller (GICv3 ITS). Now vfio_iommu_type1 checks MSI remapping capability at MSI controller level, let's correct this. Signed-off-by: Eric A

[PATCH v9 13/18] genirq/msi: Set IRQ_DOMAIN_FLAG_MSI on MSI domain creation

2017-01-19 Thread Eric Auger
Now we have a flag value indicating an IRQ domain implements MSI, let's set it on msi_create_irq_domain(). Signed-off-by: Eric Auger Reviewed-by: Marc Zyngier Tested-by: Tomasz Nowicki Tested-by: Bharat Bhushan --- v7 -> v8 - Added Marc's R-b v6: new --- kernel/irq/msi.c | 4 ++-- 1 file c

[PATCH v9 15/18] irqchip/gicv3-its: Sets IRQ_DOMAIN_FLAG_MSI_REMAP

2017-01-19 Thread Eric Auger
The GICv3 ITS is MSI remapping capable. Let's advertise this property so that VFIO passthrough can assess IRQ safety. Signed-off-by: Eric Auger Reviewed-by: Marc Zyngier Reviewed-by: Tomasz Nowicki Tested-by: Tomasz Nowicki Tested-by: Bharat Bhushan --- v7 -> v8: - added Marc's R-b --- dri

[PATCH v9 07/18] iommu: Implement reserved_regions iommu-group sysfs file

2017-01-19 Thread Eric Auger
A new iommu-group sysfs attribute file is introduced. It contains the list of reserved regions for the iommu-group. Each reserved region is described on a separate line: - first field is the start IOVA address, - second is the end IOVA address, - third is the type. Signed-off-by: Eric Auger Teste

[PATCH v9 09/18] iommu/amd: Declare MSI and HT regions as reserved IOVA regions

2017-01-19 Thread Eric Auger
This patch registers the MSI and HT regions as non mappable reserved regions. They will be exposed in the iommu-group sysfs. For direct-mapped regions let's also use iommu_alloc_resv_region(). Signed-off-by: Eric Auger --- v6 -> v7: - use IOMMU_RESV_RESERVED v5: creation --- drivers/iommu/amd

[PATCH v9 06/18] iommu: iommu_get_group_resv_regions

2017-01-19 Thread Eric Auger
Introduce iommu_get_group_resv_regions whose role consists in enumerating all devices from the group and collecting their reserved regions. The list is sorted and overlaps between regions of the same type are handled by merging the regions. Signed-off-by: Eric Auger Reviewed-by: Tomasz Nowicki T

[PATCH v9 02/18] iommu: Rename iommu_dm_regions into iommu_resv_regions

2017-01-19 Thread Eric Auger
We want to extend the callbacks used for dm regions and use them for reserved regions. Reserved regions can be - directly mapped regions - regions that cannot be iommu mapped (PCI host bridge windows, ...) - MSI regions (because they belong to another address space or because they are not transla

[PATCH v9 16/18] vfio/type1: Allow transparent MSI IOVA allocation

2017-01-19 Thread Eric Auger
When attaching a group to the container, check the group's reserved regions and test whether the IOMMU translates MSI transactions. If yes, we initialize an IOVA allocator through the iommu_get_msi_cookie API. This will allow the MSI IOVAs to be transparently allocated on MSI controller's compose()

[PATCH v9 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-19 Thread Eric Auger
In case the IOMMU translates MSI transactions (typical case on ARM), we check MSI remapping capability at IRQ domain level. Otherwise it is checked at IOMMU level. At this stage the arm-smmu-(v3) still advertise the IOMMU_CAP_INTR_REMAP capability at IOMMU level. This will be removed in subsequent

Re: [PATCHv4 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-19 Thread Chris Packham
On 19/01/17 23:03, Russell King - ARM Linux wrote: > On Fri, Jan 13, 2017 at 10:12:18PM +1300, Chris Packham wrote: >> +static struct mvebu_mpp_ctrl mv98dx3236_mpp_controls[] = { >> +MPP_FUNC_CTRL(0, 32, NULL, armada_xp_mpp_ctrl), >> +}; > > As Linus has taken my mvebu pinctrl series, this will

Re: [PATCHv4 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-19 Thread Chris Packham
On 14/01/17 20:50, Chris Packham wrote: > On 13/01/17 22:54, Sebastian Hesselbarth wrote: >> On 13.01.2017 10:12, Chris Packham wrote: >>> From: Kalyan Kinthada >>> >>> This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs >>> from Marvell. >>> >>> Signed-off-by: Kalyan Kinthada >

[PATCH v4 0/4] x86/platform/intel-mid: Fix RTC / WDT handling

2017-01-19 Thread Andy Shevchenko
Current RTC approach breaks some platforms. Rewrite it completely and make avaiable only for intended platforms. Tested on Intel Merrifield, ASuS T100TA (normal and acpi=off cases). Since v3: - move to arch_initcall() - do the same for watchdog registration code (new patch 4) Since v2: - add mp_

Re: [RFC][PATCH] x86: Verify access_ok() context

2017-01-19 Thread Thomas Gleixner
On Thu, 19 Jan 2017, Frank Ch. Eigler wrote: > Hi, Thomas - > > On Thu, Jan 19, 2017 at 07:12:48PM +0100, Thomas Gleixner wrote: > > [...] > > It does matter very much, because the fact that the warning triggers tells > > me that it's placed in code which is NOT executed in task context. > > [...

Re: [PATCH 1/2] security: Change name of CONFIG_DEBUG_RODATA

2017-01-19 Thread Helge Deller
On 19.01.2017 12:33, Heiko Carstens wrote: > On Thu, Jan 19, 2017 at 10:56:46AM +, Mark Rutland wrote: >>> +config HARDENED_PAGE_MAPPINGS >>> + bool "Mark kernel mappings with stricter permissions (RO/W^X)" >>> + default y >>> + depends on ARCH_HAS_HARDENED_MAPPINGS >>> + help >>> +

Re: [PATCH v4 1/2] mailbox: Add driver for Broadcom FlexRM ring manager

2017-01-19 Thread Scott Branden
Hi Anup, On 17-01-18 07:15 PM, Anup Patel wrote: Hi All, Any comments on this patch ?? Regards, Anup Looks good to me. Jassi, can you pickup this patchset? Scott

Re: [RFC for GIT] pull-request: add praise to people doing QA

2017-01-19 Thread Junio C Hamano
Wolfram Sang writes: > I didn't know about trailers before. As I undestand it, I could use > "Tested-by" as the key, and the commit subject as the value. This list > then could be parsed and brought into proper output shape. It would > simplify the subject parsing, but most things my AWK script c

Re: [RFC][PATCH] x86: Verify access_ok() context

2017-01-19 Thread Frank Ch. Eigler
Hi, Thomas - > Well, if you are not in thread context then the check is pointless: > __range_not_ok(addr, size, user_addr_max()) > and: > #define user_addr_max() (current->thread.addr_limit.seg) > > So what guarantees when you are not in context of current, i.e. in thread > context, that th

[PATCH] x86/crypto: fix %progbits -> @progbits

2017-01-19 Thread Denys Vlasenko
%progbits form is used on ARM (where @ is a comment char). x86 consistently uses @progbits everywhere else. Signed-off-by: Denys Vlasenko CC: Herbert Xu CC: Josh Poimboeuf CC: Xiaodong Liu CC: Megha Dey CC: George Spelvin CC: linux-cry...@vger.kernel.org CC: x...@kernel.org CC: linux-kernel

Re: [PATCH 1/6] mm: introduce kv[mz]alloc helpers

2017-01-19 Thread John Hubbard
On 01/19/2017 01:56 AM, Michal Hocko wrote: On Thu 19-01-17 01:09:35, John Hubbard wrote: [...] So that leaves us with maybe this for documentation? * Reclaim modifiers - __GFP_NORETRY and __GFP_NOFAIL should not be passed in. * Passing in __GFP_REPEAT is supported, and will cause the followi

Re: [PATCH v3 1/3] input: pwm-beeper: add feature to set volume via sysfs

2017-01-19 Thread Dmitry Torokhov
Hi Frieder, On Thu, Jan 19, 2017 at 04:24:08PM +0100, Frieder Schrempf wrote: > Make the driver accept switching volume levels via sysfs. > This can be helpful if the beep/bell sound intensity needs > to be adapted to the environment of the device. > > The volume adjustment is done by changing th

Re: [PATCH v3 3/3] input: pwm-beeper: add devicetree bindings to set volume levels

2017-01-19 Thread Dmitry Torokhov
On Thu, Jan 19, 2017 at 04:24:10PM +0100, Frieder Schrempf wrote: > This patch adds the devicetree bindings to set the volume levels > and the default volume level. > > Signed-off-by: Frieder Schrempf > --- > Changes in v3: > - none > > drivers/input/misc/pwm-beeper.c | 49 >

Re: [PATCH] x86/crypto: fix %progbits -> @progbits

2017-01-19 Thread Josh Poimboeuf
On Thu, Jan 19, 2017 at 10:28:05PM +0100, Denys Vlasenko wrote: > %progbits form is used on ARM (where @ is a comment char). > > x86 consistently uses @progbits everywhere else. > > Signed-off-by: Denys Vlasenko Reviewed-by: Josh Poimboeuf -- Josh

[PATCH] x86/crypto: make constants readonly, allow linker to merge them

2017-01-19 Thread Denys Vlasenko
A lot of asm-optimized routines in arch/x86/crypto/ keep its constants in .data. This is wrong, they should be on .rodata. Mnay of these constants are the same in different modules. For example, 128-bit shuffle mask 0x000102030405060708090A0B0C0D0E0F exists in at least half a dozen places. There

Re: [PATCH v10 0/8] Cavium MMC driver

2017-01-19 Thread Ulf Hansson
[...] > I've added a fixed regulator to DT: > > vcc_3v3: regulator-vcc_3v3 { > compatible = "regulator-fixed"; > regulator-name = "VCC_3V3"; > regulator-min-microvolt = <330>; > regulator-max-microvolt = <330>; > >

Re: [PATCH v4 2/2] firmware: add DECLARE_FW_CUSTOM_FALLBACK() annotation

2017-01-19 Thread Luis R. Rodriguez
On Thu, Jan 19, 2017 at 05:14:36PM +0100, Greg KH wrote: > In short, don't worry about this, it's not a big deal nor really worth > the effort. Fine by me, I'll drop these two patches. Luis

Re: [linux-sunxi] Re: [PATCH] ASoC: sunxi: Add bindings for sun8i to SPDIF

2017-01-19 Thread Code Kipper
On 19 January 2017 at 18:03, Mark Brown wrote: > On Wed, Jan 18, 2017 at 08:09:00AM +0100, Code Kipper wrote: > >> I missed the binding documentation on the patch for the driver so I >> pushed it separately instead of pushing a new patch version. >> You can find it under the subject heading 'ASoC:

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-01-19 Thread Stephen Boyd
On 01/19, Vivek Gautam wrote: > > On 01/19/2017 06:10 AM, Stephen Boyd wrote: > >> > >Didn't we already move away from subnodes for lanes in an earlier > >revision of these patches? I seem to recall we did that because > >lanes are not devices and the whole "phy as a bus" concept not > >making sen

Re: [PATCH 3/3] cpuidle/menu: add per cpu pm_qos_resume_latency consideration

2017-01-19 Thread Rafael J. Wysocki
On Thu, Jan 19, 2017 at 11:21 AM, Daniel Lezcano wrote: > On Thu, Jan 19, 2017 at 05:25:37PM +0800, Alex Shi wrote: >> >> > That said, I have the feeling that is taking the wrong direction. Each >> > time we >> > are entering idle, we check the latencies. Entering idle can be done >> > thousand

Re: [PATCH v3 0/3] input: pwm-beeper: add feature to set volume level

2017-01-19 Thread Dmitry Torokhov
On Thu, Jan 19, 2017 at 04:24:07PM +0100, Frieder Schrempf wrote: > Make the driver accept switching volume levels via sysfs. > This can be helpful if the beep/bell sound intensity needs > to be adapted to the environment of the device. > > The number of volume levels available and their values ca

Re: random: /dev/random often returns short reads

2017-01-19 Thread Denys Vlasenko
On Wed, Jan 18, 2017 at 7:07 PM, Theodore Ts'o wrote: > In the ideal world, yes. I've acknowledged this is a bug, in the "be > conservative in what you send, liberal in what you receive" sense.. > But no one complained for three year, and userspace needs to be able > to retry short reads instead

Re: [PATCH 0/3] per cpu resume latency

2017-01-19 Thread Rafael J. Wysocki
Hi Alex, On Tue, Jan 10, 2017 at 9:02 AM, Alex Shi wrote: > Hi All, > > Is there any comments for the testing or the patch? Please see: http://marc.info/?l=linux-pm&m=148410629024194&w=2 I will get to the patches when I'm back. Thanks, Rafael

Re: [RFC for GIT] pull-request: add praise to people doing QA

2017-01-19 Thread Jeff King
On Thu, Jan 19, 2017 at 09:43:45PM +0100, Wolfram Sang wrote: > > As to the implementation, I am wondering if we can make this somehow > > work well with the "trailers" code we already have, instead of > > inventing yet another parser of trailers. > > > > In its current shape, "interpret-traile

[PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-19 Thread Gregory CLEMENT
Hi, This set of patches adds support for the Marvell Ethernet switch 88E6341 which is found on the ESPRESSObin. With this series the network is usable on this board. >From now on, I am taking care of this series. As Andrew Lunn pointed this switch is not fully compatible with the 6352. However i

[PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-19 Thread Gregory CLEMENT
The Marvell 88E6341 device is single-chip, 6-port Ethernet switch with four integrated 10/100/1000Mbps Ethernet transceivers and one high speed SerDes interfaces. It is partially compatible with switches of family 88E6352 and switches of family 88E6390. This commit adds an initial support for this

[PATCH v5 1/2] net: dsa: mv88e6xxx: Don't forbid MDIO I/Os for PHY addr >= num_of_ports

2017-01-19 Thread Gregory CLEMENT
From: Romain Perier Some Marvell ethernet switches have internal ethernet transceivers with hardcoded phy addresses. These addresses can be greater than the number of ports or its value might be different than the associated port number. This is for example the case for MV88E6341 that has 6 ports

Re: linux-next: Tree for Jan 19

2017-01-19 Thread Stafford Horne
Hi Paul, On Thu, Jan 19, 2017 at 11:42:45AM -0500, Paul Gortmaker wrote: > On Thu, Jan 19, 2017 at 12:39 AM, Stephen Rothwell > wrote: > > Hi all, > > > > Changes since 20170118: > > > > The audit tree gained a conflict against Linus' tree. > > > > The tip tree gained a conflict against the secu

Re: [RFC PATCH] membarrier: handle nohz_full with expedited thread registration

2017-01-19 Thread Paul McKenney
On Wed, Jan 18, 2017 at 3:00 AM, Peter Zijlstra wrote: > On Tue, Jan 17, 2017 at 12:53:21PM -0800, Paul E. McKenney wrote: >> On Tue, Jan 17, 2017 at 04:55:22AM +0100, Frederic Weisbecker wrote: >> >> [ . . . ] >> >> > In fact due to the complexity involved, I have to ask first if we >> > really n

Re: [PATCH 1/2] security: Change name of CONFIG_DEBUG_RODATA

2017-01-19 Thread Kees Cook
On Thu, Jan 19, 2017 at 2:56 AM, Mark Rutland wrote: > Hi Laura, > > On Wed, Jan 18, 2017 at 05:29:05PM -0800, Laura Abbott wrote: >> diff --git a/security/Kconfig b/security/Kconfig >> index 118f454..ad6ce82 100644 >> --- a/security/Kconfig >> +++ b/security/Kconfig >> @@ -158,6 +158,22 @@ config

Re: [RFC for GIT] pull-request: add praise to people doing QA

2017-01-19 Thread Wolfram Sang
> > I didn't know about trailers before. As I undestand it, I could use > > "Tested-by" as the key, and the commit subject as the value. This list > > then could be parsed and brought into proper output shape. It would > > simplify the subject parsing, but most things my AWK script currently > > d

Re: [PATCH] lkdtm: Fix Oops when unloading the module

2017-01-19 Thread Kees Cook
On Thu, Jan 19, 2017 at 2:40 AM, Juerg Haefliger wrote: > No jprobe is registered when the module is loaded without specifying a > crashpoint that uses a jprobe. At the moment, we unconditionally try to > unregister the jprobe on module unload which results in an Oops. Add a > check to fix this. >

Re: kvm: use-after-free in process_srcu

2017-01-19 Thread Paul McKenney
(Trouble with VPN, so replying from gmail.) On Thu, Jan 19, 2017 at 1:27 AM, Paolo Bonzini wrote: > > > On 18/01/2017 23:15, Paul E. McKenney wrote: >> On Wed, Jan 18, 2017 at 09:53:19AM +0100, Paolo Bonzini wrote: >>> >>> >>> On 17/01/2017 21:34, Paul E. McKenney wrote: Do any of your callb

Re: [RFC v2 4/5] DT bindings documentation for Synopsys UDC platform driver

2017-01-19 Thread Ray Jui
On 1/19/2017 12:17 PM, Florian Fainelli wrote: > On 01/19/2017 12:07 PM, Scott Branden wrote: >> Hi Florian, >> >> On 17-01-19 11:40 AM, Florian Fainelli wrote: >>> On 01/19/2017 11:30 AM, Scott Branden wrote: Hi Rob, On 17-01-19 09:36 AM, Rob Herring wrote: > On Tue, Jan 17, 2

Re: [PATCH v3] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-19 Thread Marek Vasut
On 01/19/2017 08:01 PM, Josef Gajdusek wrote: > ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. > Otherwise, reads just return 0. > > Signed-off-by: Josef Gajdusek Changelog is missing ... > --- > drivers/iio/light/acpi-als.c | 60 >

Re: [PATCH 1/2] security: Change name of CONFIG_DEBUG_RODATA

2017-01-19 Thread Kees Cook
On Wed, Jan 18, 2017 at 5:29 PM, Laura Abbott wrote: > > Despite the word 'debug' in CONFIG_DEBUG_RODATA, this kernel option > provides key security features that are to be expected on a modern > system. Change the name to CONFIG_HARDENED_PAGE_MAPPINGS which more > accurately describes what this o

<    2   3   4   5   6   7   8   9   10   >