[PATCH v3 05/14] dm: add ->flush() dax operation support

2017-06-09 Thread Dan Williams
Allow device-mapper to route flush operations to the per-target implementation. In order for the device stacking to work we need a dax_dev and a pgoff relative to that device. This gives each layer of the stack the information it needs to look up the operation pointer for the next level. This

[PATCH v12 14/14] sun4i-codec: Add Capture Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 65a4685..a596249 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -675,6 +675,7 @@ static

[PATCH v12 13/14] sun4i-codec: Add Left Capture Select, Right Capture Select.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 085a603..65a4685 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@

[PATCH v12 10/14] sun4i-codec: Add Line Boost Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index c47ffd5..564df33 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -107,6 +107,7 @@ #define

[PATCH v12 09/14] sun4i-codec: Add Line Playback Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 234ded2..c47ffd5 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -64,8 +64,11 @@ #define

Re: [PATCH 08/17] dts: include documentation for the RISC-V interrupt controllers

2017-06-09 Thread Wesley Terpstra
On Thu, Jun 8, 2017 at 3:52 AM, Mark Rutland wrote: >> What flags? > > Edge vs level, active high vs active low. Typically some of these are > programmable, and are described as flags in the interrupt-specifier. > > See the examples in: > >

Re: [PATCH 08/17] dts: include documentation for the RISC-V interrupt controllers

2017-06-09 Thread Wesley Terpstra
Ugh. Clicked reply without being done writing the reply! On Thu, Jun 8, 2017 at 3:52 AM, Mark Rutland wrote: > Edge vs level, active high vs active low. Typically some of these are > programmable, and are described as flags in the interrupt-specifier. > > See the examples

RE: [PATCH v1 1/3] mfd: Add new mfd device TPS68470

2017-06-09 Thread Mani, Rajmohan
Hi Andy, > On Tue, Jun 06, 2017 at 03:59:49PM +0300, Andy Shevchenko wrote: > > On Tue, Jun 6, 2017 at 2:55 PM, Rajmohan Mani > wrote: > > > The TPS68470 device is an advanced power management unit that powers > > > a Compact Camera Module (CCM), generates clocks for

Re: [PATCH] thermal: int340x: check for sensor when PTYP is missing

2017-06-09 Thread Andy Shevchenko
On Sat, Jun 10, 2017 at 1:23 AM, Srinivas Pandruvada wrote: > On Wed, 2017-06-07 at 13:55 +0300, Andy Shevchenko wrote: >> On Wed, Jun 7, 2017 at 2:00 AM, Srinivas Pandruvada >> wrote: >> > This change checks for the

[patch v2 -mm] mm, hugetlb: schedule when potentially allocating many hugepages

2017-06-09 Thread David Rientjes
A few hugetlb allocators loop while calling the page allocator and can potentially prevent rescheduling if the page allocator slowpath is not utilized. Conditionally schedule when large numbers of hugepages can be allocated. Signed-off-by: David Rientjes --- Based on -mm

[PATCH v13 3/6] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-06-09 Thread Joshua Clayton
altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" interface on Altera Arria 10, Cyclone V or Stratix V FPGAs. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional SPI with lsb first. Signed-off-by: Joshua Clayton

[PATCH v13 1/6] fpga: Add flag to indicate SPI bitstream is bit-reversed

2017-06-09 Thread Joshua Clayton
From: Anatolij Gustschin Add a flag that is passed to the write_init() callback, indicating that the SPI bitstream starts with LSB first. SPI controllers usually send data with MSB first. If an FPGA expects bitstream data as LSB first, the data must be reversed either by the SPI

[PATCH v13 4/6] ARM: dts: imx6q-evi: support altera-ps-spi

2017-06-09 Thread Joshua Clayton
Add support for Altera FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts

[PATCH v13 6/6] fpga-manager: altera-ps-spi: use bitrev8x4

2017-06-09 Thread Joshua Clayton
Speed up bit reversal by using hardware bit reversal Add extra code to handle less than 4byte remnants, if any Signed-off-by: Joshua Clayton --- drivers/fpga/altera-ps-spi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Sakari, Andy, > Subject: Re: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation > region driver > > On Wed, Jun 07, 2017 at 04:37:12PM +0300, Andy Shevchenko wrote: > > >> +static acpi_status ti_pmic_common_handler(u32 function, > > > +

Re: [PATCH v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 04:23 PM, Pavel Machek wrote: Hi! Steve, You need to remove the fim node now that you've moved this to V4L2 controls. Yep, I caught this just after sending the v8 patchset. I'll send a v9 of this patch. This needs ack from devicetree people, then it can be merged. Can you

Re: [PATCH v6 10/34] x86, x86/mm, x86/xen, olpc: Use __va() against just the physical address in cr3

2017-06-09 Thread Tom Lendacky
On 6/9/2017 1:46 PM, Andy Lutomirski wrote: On Thu, Jun 8, 2017 at 3:38 PM, Tom Lendacky wrote: On 6/8/2017 1:05 AM, Andy Lutomirski wrote: On Wed, Jun 7, 2017 at 12:14 PM, Tom Lendacky wrote: The cr3 register entry can contain the SME

[PATCH 3/7] vfio: New external user group/file match

2017-06-09 Thread Alex Williamson
At the point where the kvm-vfio pseudo device wants to release its vfio group reference, we can't always acquire a new reference to make that happen. The group can be in a state where we wouldn't allow a new reference to be added. This new helper function allows a caller to match a file to a

[PATCH 7/7] vfio: Use driver_override to avert binding to compromising drivers

2017-06-09 Thread Alex Williamson
If a device is bound to a non-vfio, non-whitelisted driver while a group is in use, then the integrity of the group is compromised and will result in hitting a BUG_ON. This code tries to avoid this case by mangling driver_override to force a no-match for the driver. The driver-core will either

[PATCH 6/7] vfio: Register pci, platform, amba, and mdev bus drivers

2017-06-09 Thread Alex Williamson
Hook into vfio bus driver register/unregister support. Signed-off-by: Alex Williamson Cc: Baptiste Reynal Cc: Kirti Wankhede Cc: Eric Auger --- drivers/vfio/mdev/vfio_mdev.c |

[PATCH 5/7] vfio: Create interface for vfio bus drivers to register

2017-06-09 Thread Alex Williamson
Generally we don't know about vfio bus drivers until a device is added to the vfio-core with vfio_add_group_dev(), this optional registration with vfio_register_bus_driver() allows vfio-core to track known drivers. Our current use for this information is to know whether a driver is vfio

[PATCH 0/7] vfio: Fix release ordering races and use driver_override

2017-06-09 Thread Alex Williamson
VM hotplug testing reveals a number of races in the vfio device, group, container shutdown path, some attributed to libvirt's ask/take unplug behavior and some long standing with groups potentially composed of multiple devices, where each device can be independently bound to drivers. Libvirt's

[PATCH 2/7] kvm-vfio: Decouple only when we match a group

2017-06-09 Thread Alex Williamson
Unset-KVM and decrement-assignment only when we find the group in our list. Otherwise we can get out of sync if the user triggers this for groups that aren't currently on our list. Signed-off-by: Alex Williamson Cc: Paolo Bonzini ---

[PATCH 1/7] vfio: Fix group release deadlock

2017-06-09 Thread Alex Williamson
If vfio_iommu_group_notifier() acquires a group reference and that reference becomes the last reference to the group, then vfio_group_put introduces a deadlock code path where we're trying to unregister from the iommu notifier chain from within a callout of that chain. Use a work_struct to

[PATCH 4/7] iommu: Add driver-not-bound notification

2017-06-09 Thread Alex Williamson
The driver core supports a BUS_NOTIFY_DRIVER_NOT_BOUND notification sent if a driver fails to bind to a device. Extend IOMMU group notifications to include a version of this. Signed-off-by: Alex Williamson Cc: Joerg Roedel --- drivers/iommu/iommu.c

[PATCH] goldfish_pipe: allocate memory with GFP_ATOMIC in spinlock context

2017-06-09 Thread Alexey Khoroshilov
get_free_pipe_id_locked() is called with spinlock held, so the patch replaces GFP_KERNEL with GFP_ATOMIC to avoid sleeping in atomic spinlock context. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov ---

[PATCH] clocksource: fix read and iounmap of incorrect variable

2017-06-09 Thread frowand . list
From: Frank Rowand Fix boot warning 'Trying to vfree() nonexistent vm area' from arch_timer_mem_of_init(). Refactored code attempts to read and iounmap using address frame instead of address ioremap(frame->cntbase). Fixes: c389d701dfb70 ("clocksource: arm_arch_timer:

[PATCH v3 06/14] filesystem-dax: convert to dax_flush()

2017-06-09 Thread Dan Williams
Filesystem-DAX flushes caches whenever it writes to the address returned through dax_direct_access() and when writing back dirty radix entries. That flushing is only required in the pmem case, so the dax_flush() helper skips cache management work when the underlying driver does not specify a flush

[PATCH v3 03/14] filesystem-dax: convert to dax_copy_from_iter()

2017-06-09 Thread Dan Williams
Now that all possible providers of the dax_operations copy_from_iter method are implemented, switch filesytem-dax to call the driver rather than copy_to_iter_pmem. Signed-off-by: Dan Williams --- arch/x86/include/asm/pmem.h | 50

[PATCH v3 02/14] dm: add ->copy_from_iter() dax operation support

2017-06-09 Thread Dan Williams
Allow device-mapper to route copy_from_iter operations to the per-target implementation. In order for the device stacking to work we need a dax_dev and a pgoff relative to that device. This gives each layer of the stack the information it needs to look up the operation pointer for the next level.

[PATCH v3 00/14] pmem: stop abusing __copy_user_nocache(), and other reworks

2017-06-09 Thread Dan Williams
Changes since v2 [1]: 1/ Address the concerns from "[NAK] copy_from_iter_ops()" [2]. The copy_from_iter_ops approach is replaced with a new set _flushcache memcpy and user-copy helpers (Al) 2/ Use _flushcache as the suffix for the new cache managing copy helpers rather than _writethrough

Re: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk

2017-06-09 Thread Arnd Bergmann
On Fri, Jun 9, 2017 at 10:15 PM, John Stultz wrote: > On Fri, Jun 9, 2017 at 1:06 PM, Arnd Bergmann wrote: >> On Fri, Jun 9, 2017 at 5:46 PM, Daniel Lezcano >> wrote: >>> On Tue, Jun 06, 2017 at 04:17:40PM +0200, Ulf Hansson

Re: [PATCH 15/16] platform/x86: wmi-mof: New driver to expose embedded WMI MOF metadata

2017-06-09 Thread Pali Rohár
On Friday 09 June 2017 17:46:12 mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Wednesday, June 7, 2017 3:50 PM > > To: Limonciello, Mario > > Cc: l...@amacapital.net; dvh...@infradead.org;

[PATCH] net: aquantia: atlantic: remove declaration of hw_atl_utils_hw_set_power

2017-06-09 Thread Philippe Reynes
This function is not defined, so no need to declare it. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- .../aquantia/atlantic/hw_atl/hw_atl_utils.h|3 --- 1 files changed, 0 insertions(+), 3

Re: [PATCH v8 00/34] i.MX Media Driver

2017-06-09 Thread Hans Verkuil
On 10/06/17 01:16, Steve Longerbeam wrote: > > > On 06/07/2017 12:02 PM, Hans Verkuil wrote: >> We're still waiting for an Ack for patch 02/34, right? >> > > Hi Hans, Rub has provided an Ack for patch 2. > >> Other than that everything is ready AFAICT. >> > > But as Pavel pointed out, in fact

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Andy, Thanks for the reviews and patience. > Subject: Re: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation > region driver > > On Wed, Jun 7, 2017 at 3:07 PM, Sakari Ailus wrote: > > >> +static int ti_tps68470_pmic_get_power(struct regmap *regmap, int reg, >

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Sakari, Andy, > Subject: Re: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation > region driver > > On Wed, Jun 07, 2017 at 11:40:27PM +0300, Andy Shevchenko wrote: > > On Wed, Jun 7, 2017 at 11:10 PM, Sakari Ailus wrote: > > > On Wed, Jun 07, 2017 at 04:40:13PM

[PATCH] security: smack: smack.h - style fix

2017-06-09 Thread Derek Robson
Fixed checkpatch.pl warnings of "function definition argument FOO should also have an identifier name" Found using checkpatch Signed-off-by: Derek Robson --- security/smack/smack.h | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git

Re: [PATCH] l2tp: cast l2tp traffic counter to unsigned

2017-06-09 Thread Eric Dumazet
On Fri, 2017-06-09 at 15:16 -0700, Stephen Hemminger wrote: > On Fri, 9 Jun 2017 16:29:47 +0200 > Dominik Heidler wrote: > > > This fixes a counter problem on 32bit systems: > > When the rx_bytes counter reached 2 GiB, it jumpd to (2^64 Bytes - 2GiB) > > Bytes. > > > >

Re: [PATCH 09/11] platform: thinkpad_acpi: convert to use DRIVER_ATTR_RO/RW

2017-06-09 Thread Darren Hart
On Fri, Jun 09, 2017 at 12:02:25PM +0200, Greg Kroah-Hartman wrote: > On Fri, Jun 09, 2017 at 12:35:35PM +0300, Andy Shevchenko wrote: > > On Fri, Jun 9, 2017 at 12:03 PM, Greg Kroah-Hartman > > wrote: > > > We are trying to get rid of DRIVER_ATTR(), and the

[PATCH 3/3] scsi:ufs:add hi3660 ufs driver code

2017-06-09 Thread butao
add hi3660 ufs driver code Signed-off-by: Geng Jianfeng Signed-off-by: Bu Tao Signed-off-by: Zang Leigang Signed-off-by: Yu Jianfeng --- drivers/scsi/ufs/Kconfig | 8 +

[PATCH 1/3] scsi:ufs:add AHIT for hi3660 ufs

2017-06-09 Thread butao
add Auto-Hibernate Idle Timer value for hi3660 ufs Signed-off-by: Bu Tao Signed-off-by: Geng Jianfeng Signed-off-by: Zang Leigang Signed-off-by: Yu Jianfeng ---

Re: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk

2017-06-09 Thread John Stultz
On Fri, Jun 9, 2017 at 1:06 PM, Arnd Bergmann wrote: > On Fri, Jun 9, 2017 at 5:46 PM, Daniel Lezcano > wrote: >> On Tue, Jun 06, 2017 at 04:17:40PM +0200, Ulf Hansson wrote: >>> On 5 June 2017 at 20:13, Daniel Lezcano wrote:

[PATCH v3 12/14] libnvdimm, nfit: enable support for volatile ranges

2017-06-09 Thread Dan Williams
Allow volatile nfit ranges to participate in all the same infrastructure provided for persistent memory regions. A resulting resulting namespace device will still be called "pmem", but the parent region type will be "nd_volatile". This is in preparation for disabling the dax ->flush() operation in

[PATCH v3 09/14] x86, libnvdimm, pmem: move arch_invalidate_pmem() to libnvdimm

2017-06-09 Thread Dan Williams
Kill this globally defined wrapper and move to libnvdimm so that we can ultimately remove include/linux/pmem.h. Cc: Cc: Jan Kara Cc: Jeff Moyer Cc: Ingo Molnar Cc: Christoph Hellwig Cc: "H. Peter Anvin"

[PATCH v3 08/14] x86, dax, libnvdimm: move wb_cache_pmem() to libnvdimm

2017-06-09 Thread Dan Williams
With all calls to this routine re-directed through the pmem driver, we can kill the pmem api indirection. arch_wb_cache_pmem() is now optionally supplied by the arch specific asm/pmem.h. Same as before, pmem flushing is only defined for x86_64, but it is straightforward to add other archs in the

[PATCH v12 04/14] sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 42952af..c69b55c 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -95,6

[PATCH v12 05/14] sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-09 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. --- sound/soc/sunxi/sun4i-codec.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c

[PATCH v12 03/14] sun4i-codec: Add support for extra controls to struct sun4i_codec_quirks and use them.

2017-06-09 Thread Danny Milosavljevic
Some controls use different registers depending on which Allwinner chip it is. Provide a means of specifying and adding those controls. --- sound/soc/sunxi/sun4i-codec.c | 33 +++-- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git

[PATCH] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.

2017-06-09 Thread srishti sharma
Fixed alignment so that it matched open parenthesis. Signed-off-by: srishti sharma --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c

Re: [PATCH 1/3] mm: add vm_insert_mixed_mkwrite()

2017-06-09 Thread Dan Williams
On Wed, Jun 7, 2017 at 1:48 PM, Ross Zwisler wrote: > To be able to use the common 4k zero page in DAX we need to have our PTE > fault path look more like our PMD fault path where a PTE entry can be > marked as dirty and writeable as it is first inserted, rather than

Re: [linux-sunxi] Re: [PATCH v2 01/11] dt-bindings: update the binding for Allwinner H3 TVE support

2017-06-09 Thread Jernej Škrabec
Hi! Dne petek, 09. junij 2017 ob 18:51:02 CEST je Icenowy Zheng napisal(a): > 于 2017年6月10日 GMT+08:00 上午12:49:15, Maxime Ripard 写到: > >On Wed, Jun 07, 2017 at 04:48:50PM +0800, Icenowy Zheng wrote: > >> >> @@ -189,6 +211,8 @@ supported. > >> >> > >> >>

Re: [PATCH] l2tp: cast l2tp traffic counter to unsigned

2017-06-09 Thread Stephen Hemminger
On Fri, 9 Jun 2017 16:29:47 +0200 Dominik Heidler wrote: > This fixes a counter problem on 32bit systems: > When the rx_bytes counter reached 2 GiB, it jumpd to (2^64 Bytes - 2GiB) > Bytes. > > rtnl_link_stats64 has __u64 type and atomic_long_read returns > atomic_long_t

Re: [PATCH 4/7] iommu: Add driver-not-bound notification

2017-06-09 Thread Alex Williamson
On Sat, 10 Jun 2017 00:21:33 +0200 Joerg Roedel wrote: > On Fri, Jun 09, 2017 at 03:59:59PM -0600, Alex Williamson wrote: > > The driver core supports a BUS_NOTIFY_DRIVER_NOT_BOUND notification > > sent if a driver fails to bind to a device. Extend IOMMU group > > notifications

Re: [PATCH 2/2] thermal: add brcmstb AVS TMON driver

2017-06-09 Thread Markus Mayer
On 6 June 2017 at 05:27, Rafał Miłecki wrote: > On 2017-06-05 23:09, Markus Mayer wrote: >> >> --- /dev/null >> +++ b/drivers/thermal/broadcom/brcmstb_thermal.c >> @@ -0,0 +1,361 @@ >> +/* >> + * Broadcom STB AVS TMON thermal sensor driver >> + * >> + * Copyright (c) 2015-2017

Re: [PATCH v8 00/34] i.MX Media Driver

2017-06-09 Thread Steve Longerbeam
On 06/07/2017 12:02 PM, Hans Verkuil wrote: We're still waiting for an Ack for patch 02/34, right? Hi Hans, Rub has provided an Ack for patch 2. Other than that everything is ready AFAICT. But as Pavel pointed out, in fact we are missing many Acks still, for all of the dts source

Re: arm64: build is broken on next-20170609 with merge-commit 9afca2c4e379 (arm64: allwinner: sun50i-a64: add dwmac-sun8i Ethernet driver)

2017-06-09 Thread Stephen Rothwell
Hi Yury, On Fri, 9 Jun 2017 15:43:25 +0300 Yury Norov wrote: > > Today's linux-next breaks build with: > DTC arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dtb > arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dtb: ERROR > (duplicate_node_names):

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Hans, > > > > As PMICs are typically linked to the kernel (vs. being modules), > > there's no issue with the module name. I would suppose few if any > > PMICs will be compiled as modules in general. > > Good point about the OpRegion driver usually being built-in, in my experience > it > MUST

Re: [PATCH 1/3] mtd: sharpsl: add sharpslpart MTD partition parser

2017-06-09 Thread Brian Norris
Hi Boris, On Fri, Jun 09, 2017 at 09:16:43AM +0200, Boris Brezillon wrote: > On Thu, 8 Jun 2017 19:32:51 -0700 > Brian Norris wrote: > > On Tue, Apr 18, 2017 at 11:35:56AM +0200, Boris Brezillon wrote: > > > On Tue, 18 Apr 2017 10:58:02 +0200 > > > Andrea Adami

[PATCH] [media] davinci/dm644x: work around ccdc_update_raw_params trainwreck

2017-06-09 Thread Arnd Bergmann
Now that the davinci drivers can be enabled in compile tests on other architectures, I ran into this warning on a 64-bit build: drivers/media/platform/davinci/dm644x_ccdc.c: In function 'ccdc_update_raw_params': drivers/media/platform/davinci/dm644x_ccdc.c:279:7: error: cast to pointer from

RE: [PATCH v1 1/3] mfd: Add new mfd device TPS68470

2017-06-09 Thread Mani, Rajmohan
Hi Heikki, Thanks for the reviews and patience. > -Original Message- > From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com] > Sent: Tuesday, June 06, 2017 5:49 AM > To: Mani, Rajmohan > Cc: linux-kernel@vger.kernel.org; linux-g...@vger.kernel.org;

RE: [PATCH v1 1/3] mfd: Add new mfd device TPS68470

2017-06-09 Thread Mani, Rajmohan
Hi Andy, Thanks for the reviews and patience. > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Tuesday, June 06, 2017 6:00 AM > To: Mani, Rajmohan > Cc: linux-kernel@vger.kernel.org; linux-g...@vger.kernel.org; linux- >

Re: [PATCH v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 02:38 PM, Pavel Machek wrote: On Thu 2017-06-08 13:36:12, Steve Longerbeam wrote: On 06/08/2017 01:25 PM, Tim Harvey wrote: Steve, You need to remove the fim node now that you've moved this to V4L2 controls. Yep, I caught this just after sending the v8 patchset. I'll

Re: [patch -mm] mm, hugetlb: schedule when potentially allocating many hugepages

2017-06-09 Thread David Rientjes
On Wed, 7 Jun 2017, Mike Kravetz wrote: > > @@ -2364,6 +2366,7 @@ static unsigned long set_max_huge_pages(struct hstate > > *h, unsigned long count, > > ret = alloc_fresh_gigantic_page(h, nodes_allowed); > > else > > ret =

Re: [PATCH v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-09 Thread Pavel Machek
Hi! > >>>Steve, > >>> > >>>You need to remove the fim node now that you've moved this to V4L2 > >>>controls. > >>> > >> > >>Yep, I caught this just after sending the v8 patchset. I'll send > >>a v9 of this patch. > > > >This needs ack from devicetree people, then it can be merged. Can you > >be

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Sakari, Thanks for the reviews. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@iki.fi] > Sent: Wednesday, June 07, 2017 5:08 AM > To: Mani, Rajmohan > Cc: linux-kernel@vger.kernel.org; linux-g...@vger.kernel.org; linux- > a...@vger.kernel.org;

[PATCH] drm/core: Fail atomic IOCTL with no CRTC state but with signaling.

2017-06-09 Thread Andrey Grodzovsky
Problem: While running IGT kms_atomic_transition test suite i encountered a hang in drmHandleEvent immidietly follwoing an atomic_commit. After dumping the atomic state I relized that in this case there was not even one CRTC attached to the state and only disabled planes. This probably due to a

Re: [PATCH] thermal: int340x: check for sensor when PTYP is missing

2017-06-09 Thread Srinivas Pandruvada
On Wed, 2017-06-07 at 13:55 +0300, Andy Shevchenko wrote: > On Wed, Jun 7, 2017 at 2:00 AM, Srinivas Pandruvada > wrote: > > > > For INT3403 sensor PTYP field is mandatory. But some platforms > > didn't > > have this field for sensors. This cause load failure

Re: [PATCH 4/7] iommu: Add driver-not-bound notification

2017-06-09 Thread Joerg Roedel
On Fri, Jun 09, 2017 at 03:59:59PM -0600, Alex Williamson wrote: > The driver core supports a BUS_NOTIFY_DRIVER_NOT_BOUND notification > sent if a driver fails to bind to a device. Extend IOMMU group > notifications to include a version of this. > > Signed-off-by: Alex Williamson

Re: [PATCH 1/4] dt-bindings: tps65217: Update binding documentation.

2017-06-09 Thread Enric Balletbo Serra
Hello Rob, 2017-06-09 16:03 GMT+02:00 Rob Herring : > On Wed, Jun 07, 2017 at 12:32:39PM +0200, Enric Balletbo i Serra wrote: >> This patch adds a new binding documentation for the TPS65217 MFD and >> updates the documentation for all the sub-devices in accordance to get >> each

Re: [PATCH v8 19/34] media: Add i.MX media core driver

2017-06-09 Thread Steve Longerbeam
On 06/09/2017 06:15 AM, Philipp Zabel wrote: On Wed, 2017-06-07 at 11:33 -0700, Steve Longerbeam wrote: Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel

[PATCH 3/3] ARM: OMAP4: hwmod data: add des

2017-06-09 Thread Sebastian Reichel
This fixes the following error during kernel boot: platform 480a5000.des: Cannot lookup hwmod 'des' Unfortunately the DES module is only documented partly in the OMAP4430 TRM. I found an old patch from Joel, which I took over and updated for currently mainline. Signed-off-by: Joel Fernandes

[PATCH 2/3] ARM: OMAP4: hwmod data: add aes

2017-06-09 Thread Sebastian Reichel
This fixes the following error during kernel boot: platform 4b501000.aes: Cannot lookup hwmod 'aes' Unfortunately the AES module is only documented partly in the OMAP4430 TRM. I found an old patch from Joel, which I took over and updated for currently mainline. Signed-off-by: Joel Fernandes

[PATCH 1/3] ARM: dts: omap4: add missing des_fck

2017-06-09 Thread Sebastian Reichel
Add missing functional clock for DES3DES IP core. This is documented in the TRM as CM_L4SEC_DES3DES_CLKCTRL. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap44xx-clocks.dtsi | 8 1 file changed, 8 insertions(+) diff --git

RE: [PATCH v1 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-06-09 Thread Mani, Rajmohan
Hi Sakari, Andy, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@iki.fi] > Sent: Wednesday, June 07, 2017 2:13 PM > To: Andy Shevchenko > Cc: Mani, Rajmohan ; Hans de Goede > ;

[git pull] Input updates for v4.12-rc4

2017-06-09 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem: - mark "guest" RMI device as pass-through port to avoid "phantom" ALPS toouchpad on newer Lenovo Carbons - add 2 more laptops to the

Re: [PATCH v4 1/1] intel_telemetry_debugfs: fix oops found while load/unload module test

2017-06-09 Thread Darren Hart
On Wed, Jun 07, 2017 at 05:42:52PM +0300, Andy Shevchenko wrote: > On Sat, Jun 3, 2017 at 8:21 PM, wrote: > > From: Priyalee Kushwaha > > > > This fix oops found while testing load/unload test of > > intel_telemetry_debugfs module.

Re: WMI and Kernel:User interface

2017-06-09 Thread Darren Hart
On Fri, Jun 09, 2017 at 08:41:51AM +0200, Greg Kroah-Hartman wrote: > On Sat, Jun 03, 2017 at 12:50:58PM -0700, Darren Hart wrote: > > On Wed, May 10, 2017 at 07:13:41AM +0200, Greg Kroah-Hartman wrote: > > > On Tue, May 09, 2017 at 04:16:39PM -0700, Darren Hart wrote: > > > > Linus and Greg, > >

Re: [PATCH] security: selinux: use kmem_cache for ebitmap

2017-06-09 Thread Paul Moore
On Thu, Jun 8, 2017 at 12:18 AM, Junil Lee wrote: > The allocated size for each ebitmap_node is 192byte by kzalloc(). > Then, ebitmap_node size is fixed, so it's possible to use only 144byte > for each object by kmem_cache_zalloc(). > It can reduce some dynamic allocation

[PATCH v3 01/14] x86, uaccess: introduce copy_from_iter_flushcache for pmem / cache-bypass operations

2017-06-09 Thread Dan Williams
The pmem driver has a need to transfer data with a persistent memory destination and be able to rely on the fact that the destination writes are not cached. It is sufficient for the writes to be flushed to a cpu-store-buffer (non-temporal / "movnt" in x86 terms), as we expect userspace to call

[PATCH v3 10/14] pmem: remove global pmem api

2017-06-09 Thread Dan Williams
Now that all callers of the pmem api have been converted to dax helpers that call back to the pmem driver, we can remove include/linux/pmem.h. Cc: Cc: Jan Kara Cc: Jeff Moyer Cc: Ingo Molnar Cc: Christoph Hellwig

[PATCH v3 07/14] x86, dax: replace clear_pmem() with open coded memset + dax_ops->flush

2017-06-09 Thread Dan Williams
The clear_pmem() helper simply combines a memset() plus a cache flush. Now that the flush routine is optionally provided by the dax device driver we can avoid unnecessary cache management on dax devices fronting volatile memory. With clear_pmem() gone we can follow on with a patch to make pmem

[PATCH v3 14/14] libnvdimm, pmem: disable dax flushing when pmem is fronting a volatile region

2017-06-09 Thread Dan Williams
The pmem driver attaches to both persistent and volatile memory ranges advertised by the ACPI NFIT. When the region is volatile it is redundant to spend cycles flushing caches at fsync(). Check if the hosting region is volatile and do not set QUEUE_FLAG_WC if it is. Cc: Jan Kara

[PATCH v3 04/14] dax, pmem: introduce an optional 'flush' dax_operation

2017-06-09 Thread Dan Williams
Filesystem-DAX flushes caches whenever it writes to the address returned through dax_direct_access() and when writing back dirty radix entries. That flushing is only required in the pmem case, so add a dax operation to allow pmem to take this extra action, but skip it for other dax capable devices

[PATCH v3 11/14] libnvdimm, pmem: fix persistence warning

2017-06-09 Thread Dan Williams
The pmem driver assumes if platform firmware describes the memory devices associated with a persistent memory range and CONFIG_ARCH_HAS_PMEM_API=y that it has all the mechanism necessary to flush data to a power-fail safe zone. We warn if the firmware does not describe memory devices, but we also

[PATCH v3 13/14] filesystem-dax: gate calls to dax_flush() on QUEUE_FLAG_WC

2017-06-09 Thread Dan Williams
Some platforms arrange for cpu caches to be flushed on power-fail. On those platforms there is no requirement that the kernel track and flush potentially dirty cache lines. Given that we still insert entries into the radix for locking purposes this patch only disables the cache flush loop, not the

[PATCH v12 11/14] sun4i-codec: Add Line Right, Line Left, Line Playback Switch.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 564df33..bcd665d 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -67,6 +67,8 @@ #define

[PATCH v12 06/14] sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 3718137..55687f9 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -68,6 +68,10 @@ #define

[PATCH v12 08/14] sun4i-codec: Add FM Left, FM Right, FM Playback Switch.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 5b6f100..234ded2 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -702,6 +702,9 @@ static const struct

[PATCH v12 02/14] sun4i-codec: Add Mic Playback Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index f703293..49b9cd1 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -64,6 +64,7 @@ #define

[PATCH v12 01/14] sun4i-codec: Add MIC2 Pre-Amplifier, Mic2.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 1500699..f703293 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -711,6 +711,8 @@ static const

[PATCH v12 00/14] sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2017-06-09 Thread Danny Milosavljevic
This patchset adds some mixer controls to sun4i-codec. It also adds a mux for the capture source and the PGA for the MIC2 preamp. Where possible, it uses SOC_DAPM_DOUBLE in order to cut down on the number of distinct controls in alsamixer. v12 changes compared to v11 are: - Split u patchset in

[PATCH v12 07/14] sun4i-codec: Add FM Playback Volume.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 55687f9..5b6f100 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -64,6 +64,7 @@ #define

[PATCH v12 12/14] sun4i-codec: Add Differential Line Source.

2017-06-09 Thread Danny Milosavljevic
--- sound/soc/sunxi/sun4i-codec.c | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index bcd665d..085a603 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -110,6 +110,7 @@

Re: [PATCH v2 0/6] Appended signatures support for IMA appraisal

2017-06-09 Thread Thiago Jung Bauermann
Michael Ellerman writes: > Thiago Jung Bauermann writes: > >> On the OpenPOWER platform, secure boot and trusted boot are being >> implemented using IMA for taking measurements and verifying signatures. > > I still want you to implement

Re: [PATCH v8 14/34] ARM: dts: imx6-sabreauto: add the ADV7180 video decoder

2017-06-09 Thread Pavel Machek
On Thu 2017-06-08 13:36:12, Steve Longerbeam wrote: > > > On 06/08/2017 01:25 PM, Tim Harvey wrote: > > > > > >Steve, > > > >You need to remove the fim node now that you've moved this to V4L2 controls. > > > > Yep, I caught this just after sending the v8 patchset. I'll send > a v9 of this

[git pull] first batch of ufs fixes

2017-06-09 Thread Al Viro
That's just the obvious backport fodder; I'm pretty sure that there will be more - definitely so wrt performance and quite possibly correctness as well. The following changes since commit a8c39544a6eb2093c04afd5005b6192bd0e880c6: osf_wait4(): fix infoleak (2017-05-21 13:10:07 -0400)

Re: [PATCH] mtd: nand: fsl_ifc: remove unused variable

2017-06-09 Thread Pavel Machek
On Fri 2017-06-09 12:47:43, Arnd Bergmann wrote: > This one was accidentally introduced without any references, > and it causes a harmless warning: > > drivers/mtd/nand/fsl_ifc_nand.c: In function 'fsl_ifc_read_page': > drivers/mtd/nand/fsl_ifc_nand.c:696:7: error: unused variable 'res' >

[PATCH] ARM: OMAP: PM: stop early on systems without twl

2017-06-09 Thread Sebastian Reichel
Motorola Droid 4 has an OMAP4, but no TWL6030. It currently complains verbosely about this during boot: twl: not initialized twl6030_uv_to_vsel:OUT OF RANGE! non mapped vsel for 1375000 Vs max 1316660 twl6030_uv_to_vsel:OUT OF RANGE! non mapped vsel for 1375000 Vs max 1316660

Re: [PATCH v4 6/7] ARM: dts: meson8: switch to new bindings for UART nodes

2017-06-09 Thread Martin Blumenstingl
Hi Neil, On Fri, Jun 9, 2017 at 11:49 AM, Neil Armstrong wrote: > Switch to the stable UART bindings by adding a XTAL node and using the > proper compatible strings. unfortunately this won't apply now that Kevin has merged my "ARM: dts: meson8: add and use the real clock

  1   2   3   4   5   6   7   8   9   10   >