[PATCH 3/3] ARM: dts: stm32: add vrefbuf to stm32h743

2017-07-11 Thread Fabrice Gasnier
Add STM32H743 VREFBUF (Voltage Reference Buffer) definition. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32h743.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi index 4685629..c57096a 100644 --- a/ar

[PATCH 1/3] dt-bindings: regulator: Add STM32 Voltage Reference Buffer

2017-07-11 Thread Fabrice Gasnier
Document STM32 VREFBUF (voltage reference buffer) which can be used as voltage reference for ADCs, DACs and external components. Signed-off-by: Fabrice Gasnier --- .../bindings/regulator/st,stm32-vrefbuf.txt | 20 1 file changed, 20 insertions(+) create mode 100644

Re: [RFC PATCH 1/1] mm/mremap: add MREMAP_MIRROR flag for existing mirroring functionality

2017-07-11 Thread Michal Hocko
On Thu 06-07-17 09:17:26, Mike Kravetz wrote: > The mremap system call has the ability to 'mirror' parts of an existing > mapping. To do so, it creates a new mapping that maps the same pages as > the original mapping, just at a different virtual address. This > functionality has existed since at

Re: [RFC PATCH v1 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE

2017-07-11 Thread Peter Zijlstra
On Thu, Jul 06, 2017 at 08:56:32PM -0700, Joel Fernandes wrote: > > @@ -3998,7 +3998,9 @@ static int __sched_setscheduler(struct task_struct *p, > > } > > > > if (attr->sched_flags & > > - ~(SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM)) > > + ~(SCHED_F

Re: [PATCH v8 2/6] PCI: add resizeable BAR infrastructure v5

2017-07-11 Thread kbuild test robot
-resource-type-mask-v2/20170711-104904 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next reproduce: make htmldocs All warnings (new ones prefixed by >>): WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org)

[PATCH 2/5] drm/rockchip: vop: support verify registers with vop version

2017-07-11 Thread Mark Yao
Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 66 + drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 18 ++-- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 20 ++--- 3 files changed, 77 insertions(+), 27 deletions(-) diff --git a/drive

[PATCH 1/5] drm/rockchip: vop: get rid of register init table

2017-07-11 Thread Mark Yao
Register init table use un-document define, it is unreadable, And sometimes we only want to update tiny bits, init table method is not friendly, it's diffcult to reuse for difference chips. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 ++-- drivers/gpu/drm/rockchi

[PATCH 0/5] drm/rockchip: add all full framework vop support

2017-07-11 Thread Mark Yao
These patches try to make all current rockchip full framework vop works on drm, The newer vop design always have some different to the old one, So we add a register verify mechanism to distinguish those register, then the registers table can be reused. And people can easy to know the different for

[PATCH 5/5] dt-bindings: display: fill Documents for series of vop

2017-07-11 Thread Mark Yao
Signed-off-by: Mark Yao --- Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt index

Re: [PATCH 1/2] printk: Unconditionally unregister boot consoles if in init section

2017-07-11 Thread Petr Mladek
Hi all, let's first make sure that we understand the code the same way. On Fri 2017-07-07 08:58:01, Matt Redfearn wrote: > On 07/07/17 05:45, Sergey Senozhatsky wrote: > >On (07/06/17 11:38), Matt Redfearn wrote: > >>Commit 4c30c6f566c0 ("kernel/printk: do not turn off bootconsole in > >>printk_l

[PATCH 4/5] drm/rockchip: vop: add a series of vop support

2017-07-11 Thread Mark Yao
Vop Full framework now has following vops: IP versionchipname 3.1 rk3288 3.2 rk3368 3.4 rk3366 3.5 rk3399 big 3.6 rk3399 lit 3.7 rk322x 3.8 rk3328 The above IP version is from H/W define, some of vop support ge

[PATCH 3/5] drm/rockchip: vop: move line_flag_num to interrupt registers

2017-07-11 Thread Mark Yao
Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 4 ++-- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 8 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-11 Thread Ulf Hansson
On 16 June 2017 at 09:29, Quentin Schulz wrote: > This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 > SoC's SDHCI controller. > > When resuming from deepest state, it is required to restore preset > registers as the registers are lost since VDD core has been shut down > when

Re: [PATCH 5/5] dt-bindings: display: fill Documents for series of vop

2017-07-11 Thread Heiko Stübner
Hi Mark, Am Dienstag, 11. Juli 2017, 20:42:38 CEST schrieb Mark Yao: > Signed-off-by: Mark Yao > --- > Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt | 4 > 1 file changed, 4 insertions(+) > > diff --git > a/Documentation/devicetree/bindings/display/rockchip/rockchip-vo

[RESEND PATCH 00/13] vfs: Convert file allocation code to use the IDR

2017-07-11 Thread Sandhya Bankar
Currently the file descriptors are allocated using a custom allocator. This patchset replaces the custom code with an IDR. This replacement will result in some memory saving for processes with relatively few open files and improve performance of workloads with very large numbers of open files.

Re: [v3 2/6] mm, oom: cgroup-aware OOM killer

2017-07-11 Thread Roman Gushchin
On Mon, Jul 10, 2017 at 04:05:49PM -0700, David Rientjes wrote: > On Wed, 21 Jun 2017, Roman Gushchin wrote: > > > Traditionally, the OOM killer is operating on a process level. > > Under oom conditions, it finds a process with the highest oom score > > and kills it. > > > > This behavior doesn't

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-11 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 10, 2017 at 04:29:43PM -0700, Krister Johansen escreveu: > On Mon, Jul 10, 2017 at 07:52:49PM -0300, Arnaldo Carvalho de Melo wrote: > > I will work on testing them soon, I just wanted this discussion to take > > place, what you did seems to be the best we can do with the existing > > k

[RESEND PATCH 01/13] idr: Add ability to set/clear tags

2017-07-11 Thread Matthew Wilcox
Now that the IDR uses the radix tree, we can expose the radix tree tags to users of the IDR. A few spots in the radix tree needed to be changed to cope with the fact that the IDR can have NULL pointers with tags set. One of the more notable changes is that IDR_FREE really is special -- an index wh

Re: [RFC PATCH v1 04/11] sched/idle: make the fast idle path for short idle periods

2017-07-11 Thread Paul E. McKenney
On Mon, Jul 10, 2017 at 09:38:34AM +0800, Aubrey Li wrote: > From: Aubrey Li > > The system will enter a fast idle loop if the predicted idle period > is shorter than the threshold. > --- > kernel/sched/idle.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/kern

drivers/usb/typec/ucsi/ucsi.h:331:59: warning: 'struct device' declared inside parameter list

2017-07-11 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 548aa0e3c516d906dae5edb1fc9a1ad2e490120a commit: c1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f usb: typec: Add support for UCSI interface date: 2 weeks ago config: x86_64-randconfig-in0-07111558 (attached as .c

[RESEND PATCH 02/13] idr: Add idr_for_each_entry_tagged()

2017-07-11 Thread Matthew Wilcox
Add the ability to iterate over tagged entries in the IDR with idr_get_next_tag() and idr_for_each_entry_tagged(). Signed-off-by: Matthew Wilcox --- include/linux/idr.h | 15 ++- lib/idr.c | 30 +- tools/testing/ra

[RESEND PATCH 03/13] idr, radix-tree: Add get_tag_batch function

2017-07-11 Thread Matthew Wilcox
To implement select() on top of the IDR, we need to be able to get the tags which represent the open files in bulk. For this user, it makes sense to get a batch of BITS_PER_LONG tags at a time, and until another user shows up that wants something different, let's enforce that instead of coping wit

[RESEND PATCH 04/13] idr, radix-tree: Implement copy_preload

2017-07-11 Thread Matthew Wilcox
In the file descriptor table duplication code (called at fork()), we need to duplicate an IDR. But we have to do it under a lock (so another thread doesn't open/close a fd in the middle), and there's no suitable preload operation for this today. Adding just idr_copy_preload() isn't enough as anot

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-07-11 Thread Jin, Yao
On 7/11/2017 5:03 PM, Ingo Molnar wrote: * Kyle Huey wrote: On Wed, Jul 5, 2017 at 10:07 PM, Robert O'Callahan wrote: On Tue, Jul 4, 2017 at 3:21 AM, Mark Rutland wrote: Should any of those be moved into the "should be dropped" pile? Why not be conservative and clear every sample you're

Re: [PATCH v4 02/14] drm/atomic-helper: update lut props directly in ..._legacy_gamma_set

2017-07-11 Thread Peter Rosin
On 2017-07-11 10:02, Daniel Vetter wrote: > On Thu, Jul 06, 2017 at 02:20:36PM +0200, Peter Rosin wrote: >> Do not waste cycles looking up the property id when we have the >> actual property already. >> >> Signed-off-by: Peter Rosin > > With the names adjusted per my comments on patch 1 this lgtm

Re: [PATCH 00/16] omap_hsmmc: Add ADMA support and UHS/HS200/DDR support

2017-07-11 Thread Ulf Hansson
On 16 June 2017 at 14:45, Kishon Vijay Abraham I wrote: > This is the final part of the series originally sent as > part of [2]. > > This series adds UHS, HS200, DDR mode and ADMA support to > omap_hsmmc driver used to improve the throughput of MMC/SD in dra7 > SoCs. > > Changes from [2]: > *) No

[PATCH v2] [media] staging/imx: remove confusing IS_ERR_OR_NULL usage

2017-07-11 Thread Arnd Bergmann
While looking at a compiler warning, I noticed the use of IS_ERR_OR_NULL, which is generally a sign of a bad API design and should be avoided. In this driver, this is fairly easy, we can simply stop storing error pointers in persistent structures, and change the two functions that might return eit

[RESEND PATCH 05/13] vfs: Replace array of file pointers with an IDR

2017-07-11 Thread Sandhya Bankar
Instead of storing all the file pointers in a single array, use an IDR. It is RCU-safe, and does not need to be reallocated when the fd array grows. It also handles allocation of new file descriptors. Signed-off-by: Sandhya Bankar [mawil...@microsoft.com: fixes] Signed-off-by: Matthew Wilcox -

Re: [PATCH 8/9] RISC-V: User-facing API

2017-07-11 Thread Will Deacon
On Mon, Jul 10, 2017 at 01:00:29PM -0700, Palmer Dabbelt wrote: > On Thu, 06 Jul 2017 08:45:13 PDT (-0700), will.dea...@arm.com wrote: > > On Thu, Jul 06, 2017 at 08:34:27AM -0700, Christoph Hellwig wrote: > >> On Thu, Jul 06, 2017 at 09:55:03AM +0100, Will Deacon wrote: > >> > Agreed on the indire

[RESEND PATCH 06/13] vfs: Remove next_fd from fd alloc code path.

2017-07-11 Thread Sandhya Bankar
The IDR is used in file descriptor allocation code to allocate new file descriptor so, no need of next_fd to track next file descriptor. Hence removing it from file descriptor allocation code path. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 6 -

Re: [PATCH] [media] staging/imx: remove confusing IS_ERR_OR_NULL usage

2017-07-11 Thread Arnd Bergmann
On Thu, Jun 29, 2017 at 11:13 AM, Philipp Zabel wrote: >> @@ -134,23 +134,26 @@ static void csi_idmac_put_ipu_resources(struct >> csi_priv *priv) >> static int csi_idmac_get_ipu_resources(struct csi_priv *priv) >> { >> int ch_num, ret; >> + struct ipu_smfc *smfc, *idmac_ch; > > This

[RESEND PATCH 07/13] vfs: Remove full_fds_bits from fd allocation code path.

2017-07-11 Thread Sandhya Bankar
The IDR has removed the need to have full_fds_bits hence removing it. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 18 +- include/linux/fdtable.h | 2 -- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/fs/file.c b/fs/f

A question about acpi_early_init(), and want to invoke acpi_early_init() earlier

2017-07-11 Thread Dou Liyang
Hi, Rafael Recently, I worked for unify the interrupt delivery mode and do its setup earlier[1]. And I met a bug about ACPI[2]. When I investigated it, I got your commit c4e1acbb35e4 (ACPI / init: Run acpi_early_init() before timekeeping_init()). And I reproduced the problem you said. Questi

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Thomas Gleixner
On Tue, 11 Jul 2017, Sebastian Reichel wrote: > On Tue, Jul 11, 2017 at 12:52:17PM +0200, Thomas Gleixner wrote: > > On Tue, 11 Jul 2017, Thomas Gleixner wrote: > > > On Tue, 11 Jul 2017, Sebastian Reichel wrote: > > > So this crashes in do_raw_spin_unlock_irqrestore() !?! I just have to > > > wond

[RESEND PATCH 08/13] vfs: Use idr_tag_get() in fd_is_open().

2017-07-11 Thread Sandhya Bankar
Use idr_tag_get() in fd_is_open() to know whether a given fd is allocated. Also move fd_is_open() to file.c and make it static as it is only called from one place. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 7 ++- include/linux/fdtable.h | 5 -

[RESEND PATCH 09/13] vfs: Rewrite close_files()

2017-07-11 Thread Sandhya Bankar
Use the IDR iteration functionality instead of the open_fds bitmap to call filp_close() for each open file. Also make close_files() return void, because it no longer uses the fdtable. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 37 +++

Re: A question about acpi_early_init(), and want to invoke acpi_early_init() earlier

2017-07-11 Thread Dou Liyang
At 07/11/2017 09:26 PM, Dou Liyang wrote: Hi, Rafael Recently, I worked for unify the interrupt delivery mode and do its setup earlier[1]. And I met a bug about ACPI[2]. When I investigated it, I got your commit c4e1acbb35e4 (ACPI / init: Run acpi_early_init() before timekeeping_init()). And

Re: [RFC PATCH 3/4] pmbus: Allow dynamic fan coefficient values

2017-07-11 Thread Guenter Roeck
On 07/10/2017 06:56 AM, Andrew Jeffery wrote: Some PMBus chips, such as the MAX31785, use different coefficients for FAN_COMMAND_[1-4] depending on whether the fan is in PWM (percent duty) or RPM mode. Add a callback to allow the driver to provide the applicable coefficients to avoid imposing on

[RESEND PATCH 10/13] vfs: Replace close_on_exec bitmap with an IDR tag

2017-07-11 Thread Sandhya Bankar
Replace close_on_exec with idr_(get,set,clear)_tag(). Through this patch, added new IDR tag FD_TAG_CLOEXEC which is passing to idr_(get,set,clear)_tag() to achieve close_on_exec functionality. Also removed get_close_on_exec() and using close_on_exec() instead of that. Signed-off-by: Sandhya Bankar

Re: [PATCH 1/3] ASoC: codec: cpcap: new codec

2017-07-11 Thread Mark Brown
On Tue, Jul 11, 2017 at 02:13:31PM +0200, Sebastian Reichel wrote: > How is having a subnode without a compatible property different? You don't *need* to have the subnode, I was only mentioning that if for some reason it was super useful for organizing the properties. signature.asc Description:

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-11 Thread Ludovic Desroches
On Tue, Jul 11, 2017 at 02:42:44PM +0200, Ulf Hansson wrote: > On 16 June 2017 at 09:29, Quentin Schulz > wrote: > > This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 > > SoC's SDHCI controller. > > > > When resuming from deepest state, it is required to restore preset > > re

[RESEND PATCH 11/13] vfs: Add init_task.h include

2017-07-11 Thread Matthew Wilcox
Removes a sparse warning about init_files() not being declared. Signed-off-by: Matthew Wilcox --- fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/file.c b/fs/file.c index 56c5731..23f198b 100644 --- a/fs/file.c +++ b/fs/file.c @@ -19,6 +19,7 @@ #include #include #include +

[RESEND PATCH 12/13] vfs: Convert select to use idr_get_tag_batch()

2017-07-11 Thread Sandhya Bankar
Convert select to use idr_get_tag_batch(). Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/select.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/select.c b/fs/select.c index e211227..5d20a14 100644 --- a/fs/select.c +++ b/fs/select.c

[RESEND PATCH 13/13] vfs: Delete struct fdtable

2017-07-11 Thread Sandhya Bankar
Completing the conversion of the file descriptor allocation code to use the IDR. This patch includes below changes: - Move max_fds from struct fdtable to files_struct. - Added fill_max_fds() routine to calculate the new value of max_fds to matches the old behaviour of alloc_fdtable() code wh

Re: [PATCH v2] staging: ccree: Use __func__ instead of function name

2017-07-11 Thread Gilad Ben-Yossef
Hello Karthik , Thank you for the patch. On Thu, Jun 29, 2017 at 8:08 PM, wrote: > From: Karthik Tummala > > Fixed following checkpatch.pl warning: > WARNING: Prefer using '"%s...", __func__' to using > the function's name, in a string > > It is prefered to use '%s & __func__' instead

Re: [RFC PATCH 2/4] pmbus: Add fan configuration support

2017-07-11 Thread Guenter Roeck
On 07/10/2017 06:56 AM, Andrew Jeffery wrote: Augment PMBus support to include control of fans via the FAN_COMMAND_[1-4] registers, both in RPM and PWM modes. The behaviour of FAN_CONFIG_{1_2,3_4} and FAN_COMMAND_[1-4] are tightly coupled, and their interactions do not fit the existing use of str

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread Christoph Hellwig
> +++ b/arch/riscv/kernel/sys_riscv.c > @@ -0,0 +1,43 @@ > +/* > + * Copyright (C) 2012 Regents of the University of California > + * Copyright (C) 2014 Darius Rad > + * Copyright (C) 2017 SiFive > + * > + * This program is free software; you can redistribute it and/or > + * modify it under th

[PATCH] vmemmap, memory_hotplug: fallback to base pages for vmmap

2017-07-11 Thread Michal Hocko
From: Michal Hocko vmemmap_populate uses huge pages if the CPU supports them which is good and usually what we want. vmemmap_alloc_block will use the bootmem allocator in the early initialization so the allocation will most likely succeed. This is not the case for the memory hotplug though. Such

[PATCH v4 1/1] ARM: dts: imx53: Add GE Healthcare PPD

2017-07-11 Thread Martyn Welch
From: Fabien Lahoudere PPD is a product from GE Healthcare to monitor vital biometric signals. Signed-off-by: Fabien Lahoudere Signed-off-by: Sebastian Reichel Signed-off-by: Martyn Welch --- Changes since PATCHv3: https://patchwork.kernel.org/patch/9819017/ - licensing modified - manufact

Re: [PATCH 1/2] staging: ccree: remove unnecessary cast on kmalloc

2017-07-11 Thread Gilad Ben-Yossef
On Sun, Jul 9, 2017 at 8:43 AM, Gustavo A. R. Silva wrote: > The assignment operator implicitly converts a void pointer to the type of the > pointer it is assigned to. > > This issue was detected using Coccinelle and the following semantic patch: > > @@ > expression * e; > expression arg1, arg2; >

Re: [RFC PATCH 1/2] mmc: sdhci: add quirk SDHCI_QUIRK2_BROKEN_SDMA_BOUNDARY_BUFFER

2017-07-11 Thread Ulf Hansson
On 28 June 2017 at 15:35, wrote: > From: Srinivas Kandagatla > > This patch adds quirk to sdhci controllers which are broken when > HOST SDMA Buffer Boundary is programmed in Block Size Register (0x04) > when using ADMA. Qualcomm sdhci controller is one of such type, writing > to this bits is un

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Marc Zyngier
On 11/07/17 12:21, Sebastian Reichel wrote: > Hi, > > On Tue, Jul 11, 2017 at 12:52:17PM +0200, Thomas Gleixner wrote: >> On Tue, 11 Jul 2017, Thomas Gleixner wrote: >>> On Tue, 11 Jul 2017, Sebastian Reichel wrote: >>> So this crashes in do_raw_spin_unlock_irqrestore() !?! I just have to >>> wond

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Tony Lindgren
* Thomas Gleixner [170711 02:48]: > On Tue, 11 Jul 2017, Thomas Gleixner wrote: > > So Tony actually provided the part of dmesg which shows the initial > failure, which subsequently leads to the splat Sebastian reported. > > Unhandled fault: external abort on non-linefetch (0x1028) at 0xfb050034

Re: [PATCH v4 3/3] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-07-11 Thread Radim Krčmář
[David did a great review, so I'll just point out things I noticed.] 2017-07-11 09:51+0200, David Hildenbrand: > On 10.07.2017 22:49, Bandan Das wrote: > > When L2 uses vmfunc, L0 utilizes the associated vmexit to > > emulate a switching of the ept pointer by reloading the > > guest MMU. > > > >

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-11 Thread Ulf Hansson
On 11 July 2017 at 15:33, Ludovic Desroches wrote: > On Tue, Jul 11, 2017 at 02:42:44PM +0200, Ulf Hansson wrote: >> On 16 June 2017 at 09:29, Quentin Schulz >> wrote: >> > This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 >> > SoC's SDHCI controller. >> > >> > When resuming

Re: [PATCH 8/9] RISC-V: User-facing API

2017-07-11 Thread Christoph Hellwig
On Tue, Jul 11, 2017 at 02:22:15PM +0100, Will Deacon wrote: > The problem is that by supporting these hypothetical designs that can't do > atomics, you hurt sensible designs that *can* do the atomics because you > force them to take an additional indirection that could otherwise be > avoided. Agr

Re: [PATCH 00/16] omap_hsmmc: Add ADMA support and UHS/HS200/DDR support

2017-07-11 Thread Kishon Vijay Abraham I
Hi Ulf, On Tuesday 11 July 2017 06:40 PM, Ulf Hansson wrote: > On 16 June 2017 at 14:45, Kishon Vijay Abraham I wrote: >> This is the final part of the series originally sent as >> part of [2]. >> >> This series adds UHS, HS200, DDR mode and ADMA support to >> omap_hsmmc driver used to improve th

Re: [PATCH v8 05/10] mm: thp: enable thp migration in generic path

2017-07-11 Thread Zi Yan
On 11 Jul 2017, at 2:47, Naoya Horiguchi wrote: > On Sat, Jul 01, 2017 at 09:40:03AM -0400, Zi Yan wrote: >> From: Zi Yan >> >> This patch adds thp migration's core code, including conversions >> between a PMD entry and a swap entry, setting PMD migration entry, >> removing PMD migration entry, a

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-11 Thread James Hogan
Hi Christoph, On Tue, Jul 11, 2017 at 06:39:48AM -0700, Christoph Hellwig wrote: > > +#ifdef CONFIG_64BIT > > +SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, > > + unsigned long, prot, unsigned long, flags, > > + unsigned long, fd, off_t, offset) > > +{ > > + if (unlikely(off

Re: [PATCH/RFC] dma-mapping: Provide dummy set_dma_ops() for NO_DMA=y

2017-07-11 Thread Christoph Hellwig
On Mon, Jul 10, 2017 at 04:31:54PM +0100, Robin Murphy wrote: > On 10/07/17 15:56, Christoph Hellwig wrote: > > This looks reasonable to me, I'd be happy to pick it up. Can you send > > it as a series with the reverts? > > The fact remains that the FSL driver is still doing the wrong thing > thou

[PATCH] power: supply: ltc2941-battery-gauge: Add LTC2944 support

2017-07-11 Thread Dragos Bogdan
The only difference between the already supported LTC2943 and LTC2944 is the operating range (3.6V - 20V compared to 3.6V - 60V). Signed-off-by: Dragos Bogdan --- Documentation/devicetree/bindings/power/supply/ltc2941.txt | 10 +- drivers/power/supply/ltc2941-battery-gauge.c

[PATCH] ASoC: hdmi-codec: make const array hdmi_codec_eld_spk_alloc_bits static

2017-07-11 Thread Colin King
From: Colin Ian King Don't populate array hdmi_codec_eld_spk_alloc_bits on the stack but make it static. Makes the object code smaller by over 260 bytes: Before: textdata bss dec hex filename 108823384 64 1433037fa sound/soc/codecs/hdmi-codec.o After: text

[PATCH] ARM: dts: uniphier: use SPDX-License-Identifier (2nd)

2017-07-11 Thread Masahiro Yamada
Commit fa53757bca33 ("ARM: dts: uniphier: use SPDX-License-Identifier") missed to touch these two. Now updating. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-pinctrl.dtsi | 38 + arch/arm/boot/dts/uniphier-pro5.dtsi| 38 +

[PATCH] scsi: scsi_dh_alua: fix boolreturn.cocci warnings

2017-07-11 Thread kbuild test robot
drivers/scsi/device_handler/scsi_dh_alua.c:594:9-10: WARNING: return of 0/1 in function 'alua_rtpg_print_check' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: cb809ba2fcbf (

Re: [PATCH v2 3/4] scsi: scsi_dh_alua: do not print RTPG state if it remains unavailable/standby

2017-07-11 Thread kbuild test robot
Hi Mauricio, [auto build test WARNING on bvanassche/for-next] [also build test WARNING on v4.12 next-20170711] [cannot apply to mkp-scsi/for-next scsi/for-next] [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

Re: [PATCH RFC v4] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-11 Thread Joel Fernandes
Hi Viresh, On Tue, Jul 11, 2017 at 3:14 AM, Viresh Kumar wrote: > On 09-07-17, 10:08, Joel Fernandes wrote: >> diff --git a/kernel/sched/cpufreq_schedutil.c >> b/kernel/sched/cpufreq_schedutil.c >> index 622eed1b7658..4d9e8b96bed1 100644 >> --- a/kernel/sched/cpufreq_schedutil.c >> +++ b/kernel/

Re: [PATCHSET for-4.13] cgroup: implement cgroup2 thread mode, v2

2017-07-11 Thread Waiman Long
On 07/11/2017 08:15 AM, Peter Zijlstra wrote: > On Mon, Jul 10, 2017 at 05:01:19PM -0400, Waiman Long wrote: >> On 07/10/2017 04:32 AM, Peter Zijlstra wrote: >>> On Fri, Jun 30, 2017 at 09:23:24AM -0400, Tejun Heo wrote: On Tue, Jun 27, 2017 at 09:01:43AM +0200, Peter Zijlstra wrote: > On

[PATCH 0/2] Fatal signal handing within uaccess faults

2017-07-11 Thread Mark Rutland
Hi, Arch maintainer tl;dr: most arch fault code doesn't handle fatal signals correctly, allowing unprivileged users to create an unkillable task which can lock up the system. Please check whether your arch is affected. AFAICT, most arches don't correctly handle a fatal signal interrupting a uacce

[PATCH 1/2] arm64: mm: abort uaccess retries upon fatal signal

2017-07-11 Thread Mark Rutland
When there's a fatal signal pending, arm64's do_page_fault() implementation returns 0. The intent is that we'll return to the faulting userspace instruction, delivering the signal on the way. However, if we take a fatal signal during fixing up a uaccess, this results in a return to the faulting ke

[PATCH 2/2] arm: mm: abort uaccess retries upon fatal signal

2017-07-11 Thread Mark Rutland
When there's a fatal signal pending, arm's do_page_fault() implementation returns 0. The intent is that we'll return to the faulting userspace instruction, delivering the signal on the way. However, if we take a fatal signal during fixing up a uaccess, this results in a return to the faulting kern

Re: [PATCH RFC v4] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-11 Thread Joel Fernandes
On Tue, Jul 11, 2017 at 7:14 AM, Joel Fernandes wrote: [..] >>> + } >>> } else if (sg_cpu->iowait_boost) { >>> s64 delta_ns = time - sg_cpu->last_update; >>> >>> /* Clear iowait_boost if the CPU apprears to have been idle. >>> */ >>> if

Re: [PATCH v2 1/2] drivers: dma-coherent: Fix dev->cma_area vs dev->dma_mem breakage

2017-07-11 Thread Christoph Hellwig
On Fri, Jul 07, 2017 at 05:06:52PM +0100, Robin Murphy wrote: > I don't think we need to go that far, I reckon it would be clear enough > to just split the per-device vs. global pool interfaces, something like > I've sketched out below (such that the ops->alloc implementation calls > dma_alloc_from

Re: [PATCH 0/2] Fatal signal handing within uaccess faults

2017-07-11 Thread Mark Rutland
Hi, It appears that I botched adding LAKML to Cc. Please ignore this posting -- I will resend with LAKML's address corrected. Mark.

[PATCH 0/2] Fatal signal handing within uaccess faults

2017-07-11 Thread Mark Rutland
[resending with LAKML's address corrected] Hi, Arch maintainer tl;dr: most arch fault code doesn't handle fatal signals correctly, allowing unprivileged users to create an unkillable task which can lock up the system. Please check whether your arch is affected. AFAICT, most arches don't correctl

[PATCH 1/2] arm64: mm: abort uaccess retries upon fatal signal

2017-07-11 Thread Mark Rutland
When there's a fatal signal pending, arm64's do_page_fault() implementation returns 0. The intent is that we'll return to the faulting userspace instruction, delivering the signal on the way. However, if we take a fatal signal during fixing up a uaccess, this results in a return to the faulting ke

[PATCH 2/2] arm: mm: abort uaccess retries upon fatal signal

2017-07-11 Thread Mark Rutland
When there's a fatal signal pending, arm's do_page_fault() implementation returns 0. The intent is that we'll return to the faulting userspace instruction, delivering the signal on the way. However, if we take a fatal signal during fixing up a uaccess, this results in a return to the faulting kern

Re: [PATCH] KVM: s390: Fix KVM_S390_GET_CMMA_BITS ioctl definition

2017-07-11 Thread Radim Krčmář
2017-07-11 10:21+0200, Christian Borntraeger: > On 07/10/2017 11:23 PM, Gleb Fotengauer-Malinovskiy wrote: > > On Mon, Jul 10, 2017 at 08:43:12PM +0200, Christian Borntraeger wrote: > >> On 07/10/2017 04:44 PM, Gleb Fotengauer-Malinovskiy wrote: > >>> This ioctl actually writes to parameter too. >

[PATCH 2/2] arm64: dts: uniphier: add Denali NAND controller nodes

2017-07-11 Thread Masahiro Yamada
Add NAND controller node to LD11 and LD20. Neither of them supports the CS1 line, so pinctrl is set up for a single CS line. Signed-off-by: Masahiro Yamada --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 11 +++ arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 11 +++

RE: [PATCH] dpaa_eth: use correct device for DMA mapping API

2017-07-11 Thread Madalin-cristian Bucur
> -Original Message- > From: arndbergm...@gmail.com [mailto:arndbergm...@gmail.com] On Behalf Of > Arnd Bergmann > Subject: Re: [PATCH] dpaa_eth: use correct device for DMA mapping API > > On Tue, Jul 11, 2017 at 10:50 AM, Madalin-cristian Bucur > wrote: > > > Hi Arnd, > > > > Thanks for

Re: [PATCH] power: supply: ltc2941-battery-gauge: Add LTC2944 support

2017-07-11 Thread Ladislav Michl
On Tue, Jul 11, 2017 at 05:05:09PM +0300, Dragos Bogdan wrote: > The only difference between the already supported LTC2943 and LTC2944 is the > operating range (3.6V - 20V compared to 3.6V - 60V). So it is using different voltage and current conversion, but patch does not handle it at all resultin

[PATCH 1/2] ARM: dts: uniphier: add Denali NAND controller node

2017-07-11 Thread Masahiro Yamada
Add NAND controller node to sLD3, LD4, Pro4, sLD8, Pro5, and PXs2. Set up pinctrl to enable 2 chip select lines except Pro4. The CS1 for Pro4 is multiplexed with other peripherals such as UART2, so I did not enable it. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ld4-ref.dts

RE: [PATCH] tty: Fix TIOCGPTPEER ioctl definition

2017-07-11 Thread David Laight
From: Linuxppc-dev Gleb Fotengauer-Malinovskiy > Sent: 11 July 2017 01:12 > This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag > because it doesn't copy anything from/to userspace to access the > argument. > > Fixes: 54ebbfb1 ("tty: add TIOCGPTPEER ioctl") ... > -#define TIOCGPTPE

Re: [PATCH] vmemmap, memory_hotplug: fallback to base pages for vmmap

2017-07-11 Thread Michal Hocko
Ohh, scratch that. The patch is bogus. I have completely missed that vmemmap_populate_hugepages already falls back to vmemmap_populate_basepages. I have to revisit the bug report I have received to see what happened apart from the allocation warning. Maybe we just want to silent that warning. Sorr

Re: [PATCH 2/2] phy: Add stingray usb phy driver

2017-07-11 Thread Srinath Mannam
Hi Kishon, Thank you for the feedback. I will address all your comments in the next patch set. Regards, Srinath. On Tue, Jul 11, 2017 at 12:01 PM, Kishon Vijay Abraham I wrote: > hi, > > On Friday 07 July 2017 06:37 PM, Srinath Mannam wrote: >> USB phy driver for stingray USB DRDU3 and DRDU2/U

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-07-11 Thread Mark Rutland
On Tue, Jul 11, 2017 at 11:03:58AM +0200, Ingo Molnar wrote: > > * Kyle Huey wrote: > > > On Wed, Jul 5, 2017 at 10:07 PM, Robert O'Callahan > > wrote: > > > On Tue, Jul 4, 2017 at 3:21 AM, Mark Rutland wrote: > > >> Should any of those be moved into the "should be dropped" pile? > > > > > >

Re: [PATCH] ata: fix gemini Kconfig dependencies

2017-07-11 Thread Linus Walleij
On Mon, Jul 10, 2017 at 10:51 AM, Arnd Bergmann wrote: > We cannot build the new ftide010 code without also building the faraday > sata bridge driver: > > drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe': > pata_ftide010.c:(.text+0x2b8): undefined reference to `gemini_sata_bridge_ge

Re: module: fix ddebug_remove_module()

2017-07-11 Thread Jessica Yu
+++ Zhou Chengming [07/07/17 11:15 +0800]: ddebug_remove_module() use mod->name to find the ddebug_table of the module and remove it. But dynamic_debug_setup() use the first _ddebug->modname to create ddebug_table for the module. It's ok when the _ddebug->modname is the same with the mod->name.

Re: [PATCH RFC v4] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-11 Thread Joel Fernandes
Hi Juri, On Tue, Jul 11, 2017 at 12:14 AM, Juri Lelli wrote: [..] >> > Considering it a per-cpu thing, isn't enough that it gets bumped up or >> > decayed only when a CPU does an update (by using the above from >> > sugov_update_shared)? >> > >> > If we go this way I think we will only need to re

[PATCH v2 02/12] drm/atomic: Change drm_atomic_helper_swap_state to return an error.

2017-07-11 Thread Maarten Lankhorst
We want to change swap_state to wait indefinitely, but to do this swap_state should wait interruptibly. This requires propagating the error to each driver. Cc: dri-de...@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: intel-...@lists.freedesktop.org Signed-off-by: Maarten Lankhorst ---

[PATCH V3] perf/x86/intel/uncore: remove nonexistent clockticks event for client uncore

2017-07-11 Thread kan . liang
From: Kan Liang For client uncore, all CBOXes seems have their own clockticks event uncore_cbox_*/clockticks/. However, only the clockticks event for CBOX_0 can work. Accessing other CBOX clockticks evnet will always return EINVAL. Here is an example. $ perf stat -x, -e uncore_cbox_0/cl

Re: [PATCH v4 1/3] rtmutex: update rt-mutex-design

2017-07-11 Thread Alex Shi
On 07/07/2017 10:52 AM, Alex Shi wrote: > > -Reviewers: Ingo Molnar, Thomas Gleixner, Thomas Duetsch, and Randy Dunlap > +Original Reviewers: Ingo Molnar, Thomas Gleixner, Thomas Duetsch, and > + Randy Dunlap > +Update (7/6/2017) Reviewers: Steven Rostedt and Sebastian Siewio

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-11 Thread Ludovic Desroches
On Tue, Jul 11, 2017 at 03:54:17PM +0200, Ulf Hansson wrote: > On 11 July 2017 at 15:33, Ludovic Desroches > wrote: > > On Tue, Jul 11, 2017 at 02:42:44PM +0200, Ulf Hansson wrote: > >> On 16 June 2017 at 09:29, Quentin Schulz > >> wrote: > >> > This adds deepest (Backup+Self-Refresh) PM support

Re: [PATCH] gpu: host1x: Free the IOMMU domain when there is no device to attach

2017-07-11 Thread Marcel Ziswiler
On Tue, 2017-07-11 at 11:49 +0300, Paul Kocialkowski wrote: > On Mon, 2017-07-10 at 21:33 +0200, Paul Kocialkowski wrote: > > When there is no device to attach to the IOMMU domain, as may be > > the > > case when the device-tree does not contain the proper iommu node, > > it > > is > > best to keep

Re: [PATCH v2 2/3] rtmutex: update rt-mutex

2017-07-11 Thread Alex Shi
Any comments for this patch? or time to pick it up? Thanks Alex On 07/07/2017 10:52 AM, Alex Shi wrote: > The rtmutex remove a pending owner bit in in rt_mutex::owner, in > commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio > task get lock") > But the document was changed

Re: [PATCH RFC v4] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-11 Thread Juri Lelli
On 11/07/17 07:33, Joel Fernandes wrote: > Hi Juri, > > On Tue, Jul 11, 2017 at 12:14 AM, Juri Lelli wrote: > [..] > >> > Considering it a per-cpu thing, isn't enough that it gets bumped up or > >> > decayed only when a CPU does an update (by using the above from > >> > sugov_update_shared)? > >>

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-07-11 Thread Alex Shi
Any comments for this little change? It's passed on 0day testing. Thanks Alex On 07/07/2017 10:52 AM, Alex Shi wrote: > We don't need to adjust prio before new pi_waiter adding. The prio > only need update after pi_waiter change or task priority change. > > Signed-off-by: Alex Shi > Cc: Steven

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Sebastian Reichel
Hi, On Tue, Jul 11, 2017 at 02:51:23PM +0100, Marc Zyngier wrote: > On 11/07/17 12:21, Sebastian Reichel wrote: > > Hi, > > > > On Tue, Jul 11, 2017 at 12:52:17PM +0200, Thomas Gleixner wrote: > >> On Tue, 11 Jul 2017, Thomas Gleixner wrote: > >>> On Tue, 11 Jul 2017, Sebastian Reichel wrote: > >

Re: [PATCH RFC 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2017-07-11 Thread Andy Lutomirski
On Mon, Jul 10, 2017 at 7:43 PM, Wanpeng Li wrote: > > Sigh, I heard the same idea from a company called Huawei, they applied > the patent for the idea. Seriously? What arseholes. Also, calling that an invention is a bit of a joke. It's called the VMX *preemption* timer. Using it for preempti

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Sebastian Reichel
Hi, On Tue, Jul 11, 2017 at 06:51:32AM -0700, Tony Lindgren wrote: > * Thomas Gleixner [170711 02:48]: > > On Tue, 11 Jul 2017, Thomas Gleixner wrote: > > > > So Tony actually provided the part of dmesg which shows the initial > > failure, which subsequently leads to the splat Sebastian reported

Re: [GIT pull] irq updates for 4.13

2017-07-11 Thread Thomas Gleixner
On Tue, 11 Jul 2017, Tony Lindgren wrote: > * Thomas Gleixner [170711 02:48]: > And "external abort on non-linefetch" means something is not clocked > in this case. The following alone makes things boot for me again, but I don't > quite follow what has now changed with the ordering.. Thomas, any i

<    1   2   3   4   5   6   7   8   >