Re: [PATCH v6 17/36] nds32: ELF definitions

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds definitions for the ELF format, relocation types, vdso > locations and EXEC_PAGESIZE. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

Re: [PATCH v6 18/36] nds32: System calls handling

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for system calls. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu You seem to have finally addressed all my previous concerns, looks good. Reviewed-by: Arnd Bergmann

Re: [PATCH v6 19/36] nds32: VDSO support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds VDSO support. The VDSO code is currently used for > sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-b

[PATCH] soc: xilinx: xlnx_vcu: Fix && vs & typo

2018-01-18 Thread Dan Carpenter
We accidentally used a logical AND instead of a bitwise AND here. Fixes: cee8113a295a ("soc: xilinx: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP init driver") Signed-off-by: Dan Carpenter diff --git a/drivers/soc/xilinx/xlnx_vcu.c b/drivers/soc/xilinx/xlnx_vcu.c index c1d6f1b190b6..a840c0272135

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-01-18 Thread Alban Crequy
On Wed, Jan 17, 2018 at 8:31 PM, Seth Forshee wrote: > On Wed, Jan 17, 2018 at 07:56:59PM +0100, Alban Crequy wrote: >> On Wed, Jan 17, 2018 at 3:29 PM, Seth Forshee >> wrote: >> > On Wed, Jan 17, 2018 at 11:59:06AM +0100, Alban Crequy wrote: >> >> [Adding Tejun, David, Tom for question about cus

Re: [RFC PATCH 2/2] gpio: provide a consumer when requesting a gpio

2018-01-18 Thread Linus Walleij
On Mon, Jan 15, 2018 at 5:24 PM, Ludovic Desroches wrote: > It can be useful for the pinmuxing layer to know which device is > requesting a GPIO. Add a consumer variant for gpiod_request to > reach this goal. > > GPIO chips managed by pin controllers should provide the new > request_consumer oper

Re: [PATCH v6 20/36] nds32: Signal handling support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for signal handling. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu I never feel qualified enough to properly review signal handling code, so no Ack from me for this code even t

Re: [PATCH v6 21/36] nds32: Library functions

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch add support for various library functions. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-01-18 Thread Morten Rasmussen
On Mon, Jan 15, 2018 at 10:43:18AM +0100, Peter Zijlstra wrote: > On Tue, Jan 02, 2018 at 03:44:57PM +, Morten Rasmussen wrote: > > > Vincent already proposed, why can't we just modify Brendan's > > CPU_NEWLY_IDLE proposal to do a stats update from idle_balance() every > > 32ms regardless of w

[PATCH] rcu: refine structure rcu_node field for rcu boost

2018-01-18 Thread Liu, Changcheng
Do not allocate space for rcu boost field when RCU BOOST is not configured. Signed-off-by: Liu Changcheng diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 46a5d19..88f087e 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -129,6 +129,7 @@ struct rcu_node {

Re: [PATCH v6 22/36] nds32: Debugging support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds ptrace support. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu I must have missed this patch earlier, unfortunately I don't think this is ready: > +long arch_ptrace(struct task_struct

Re: [RFC PATCH 2/5] sched: Add NOHZ_STATS_KICK

2018-01-18 Thread Morten Rasmussen
On Mon, Jan 15, 2018 at 09:26:09AM +0100, Vincent Guittot wrote: > Le Wednesday 03 Jan 2018 à 10:16:00 (+0100), Vincent Guittot a écrit : > > Hi Peter, > > > > On 22 December 2017 at 21:42, Peter Zijlstra wrote: > > > On Fri, Dec 22, 2017 at 07:56:29PM +0100, Peter Zijlstra wrote: > > >> Right; b

Re: [PATCH v6 23/36] nds32: L2 cache support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds L2 cache support. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

Re: [PATCH] IIO: ADC: stm32-dfsdm: remove unused variable

2018-01-18 Thread Mark Brown
On Wed, Jan 17, 2018 at 09:09:19PM +0100, Arnd Bergmann wrote: > Mark, not sure how you want to proceed from here: if this is a branch > that can get rebased, it might be best to do that merge again, or even > drop one of the two copies of my earlier patch. Otherwise I can send > a new version of

Re: [PATCH v6 24/36] nds32: Loadable modules

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for loadable modules. One detail: You still seem to have both the ELF_REL and ELF_RELA based functions implemented here, you should drop the unused ELF_REL version: > diff --git a/arch/nds32/k

Re: [PATCH v6 25/36] nds32: Generic timers support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for timer. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > Reviewed-by: Linus Walleij Acked-by: Arnd Bergmann

Re: [PATCH v6 26/36] nds32: Device tree support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds support for device tree. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

Re: [PATCH v6 28/36] nds32: defconfig

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds nds32 defconfig. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

[PATCH -next] of: platform: fix OF node refcount leak

2018-01-18 Thread Sudeep Holla
We need to call of_node_put() for device nodes obtained with of_find_node_by_path(). Fixes: 3aa0582fdb82 ("of: platform: populate /firmware/ node from of_platform_default_populate_init()") Reported-by: Loys Ollivier Cc: Rob Herring Cc: Frank Rowand Signed-off-by: Sudeep Holla --- drivers/of/

[tip:irq/urgent] irq/matrix: Spread interrupts on allocation

2018-01-18 Thread tip-bot for Thomas Gleixner
Commit-ID: a0c9259dc4e1923a98356967ce8b732da1979df8 Gitweb: https://git.kernel.org/tip/a0c9259dc4e1923a98356967ce8b732da1979df8 Author: Thomas Gleixner AuthorDate: Wed, 17 Jan 2018 16:01:47 +0100 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 11:38:41 +0100 irq/matrix: Spread

Re: [PATCH v6 30/36] MAINTAINERS: Add nds32

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > Signed-off-by: Greentime Hu Please add a changelog text to every single commit, otherwise: Acked-by: Arnd Bergmann

Re: [PATCH v6 32/36] dt-bindings: nds32 L2 cache controller Bindings

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds nds32 L2 cache controller binding documents. > > Signed-off-by: Greentime Hu > Reviewed-by: Rob Herring Acked-by: Arnd Bergmann

Re: [PATCH v1] timer: Forward timer base before migrating timers

2018-01-18 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: > In case when timers are migrated to a CPU, after it exits > idle, but before timer base is forwarded, either from > run_timer_softirq()/mod_timer()/add_timer_on(), it's > possible that migrated timers are queued, based on older > clock value. Th

Re: [PATCH v6 34/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds an irqchip driver document for the Andestech Internal Vector > Interrupt Controller. > > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu > Reviewed-by: Rob Herring Acked-by: Arnd Bergmann

Re: [PATCH v6 27/36] nds32: Miscellaneous header files

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch introduces some miscellaneous header files. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

Re: [PATCH v2] crypto/ahash: Require export/import in ahash

2018-01-18 Thread Kamil Konieczny
On 16.01.2018 19:38, Kamil Konieczny wrote: > Export and import were optional in async hash. As most drivers were > rewritten, they become mandatory now, so correct init of ahash > transformation. > > Signed-off-by: Kamil Konieczny Please drop this patch, as there is one more driver needed for c

Re: [PATCH v3 01/12] clk: sunxi-ng: Mask nkmp factors when setting register

2018-01-18 Thread Maxime Ripard
On Wed, Jan 17, 2018 at 09:14:10PM +0100, Jernej Skrabec wrote: > Currently, if one of the factors isn't present, bit 0 gets always set to > 1. For example, A83T has NMP PLLs modelled as NKMP PLL without K. Since > K is not specified, it's offset, width and shift is 0. Driver assumes > that lowest

Re: dangers of bots on the mailing lists was Re: divide error in ___bpf_prog_run

2018-01-18 Thread Dmitry Vyukov
On Wed, Jan 17, 2018 at 11:11 AM, Henrique de Moraes Holschuh wrote: > On Wed, 17 Jan 2018, Dmitry Vyukov wrote: >> On Wed, Jan 17, 2018 at 10:32 AM, Pavel Machek wrote: >> > On Fri 2018-01-12 17:58:01, syzbot wrote: >> >> syzkaller hit the following crash on >> >> 19d28fbd306e7ae7c1acf05c3e6968b

[tip:x86/urgent] x86/mm: Rework wbinvd, hlt operation in stop_this_cpu()

2018-01-18 Thread tip-bot for Tom Lendacky
Commit-ID: f23d74f6c66c3697e032550eeef3f640391a3a7d Gitweb: https://git.kernel.org/tip/f23d74f6c66c3697e032550eeef3f640391a3a7d Author: Tom Lendacky AuthorDate: Wed, 17 Jan 2018 17:41:41 -0600 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 11:48:59 +0100 x86/mm: Rework wbinvd,

Re: [PATCH v16 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-18 Thread Meghana Madhyastha
On Wed, Jan 17, 2018 at 11:03:24PM +0100, Noralf Trønnes wrote: > > Den 17.01.2018 18.00, skrev Daniel Thompson: > > > > > >On 16/01/18 10:31, Meghana Madhyastha wrote: > >>Add helper functions backlight_enable and backlight_disable to > >>enable/disable a backlight device. These helper functions

Re: [PATCH v3 02/12] clk: sunxi-ng: Change formula for NKMP PLLs

2018-01-18 Thread Maxime Ripard
Hi, On Wed, Jan 17, 2018 at 09:14:11PM +0100, Jernej Skrabec wrote: > This commit changes formula from this: > > Freq = (parent_freq * N * K) / (M * P) > > to this: > > Freq = (parent_freq / M) * N * K / P > > This improves situation when N is in the range 1-255. PLL parent clock > is almost a

Re: [PATCH v6 29/36] nds32: Build infrastructure

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds Makefile, Kconfig and vmlinux.lds.S files required for > building > an nds32 kernel. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu I find some new details every time I look here ;-)

[PATCH 2/2] clk: mux: add helper function for index/value translation

2018-01-18 Thread Jerome Brunet
Add helper functions for the translation between parent index and register value in the generic multiplexer function. The purpose of this change is avoid duplicating the code in other clock providers, using the same generic logic. Signed-off-by: Jerome Brunet --- drivers/clk/clk-mux.c| 7

[PATCH 0/2] clk: add helpers for generic clocks

2018-01-18 Thread Jerome Brunet
This series exports an helper providing the divider mask in the generic divider and helpers to translate the between the index and the register value in the generic mux. The goal is to avoid duplicating this code in clock providers deriving from these generic clocks, something I plan do doing in u

Re: [PATCH] epoll: avoid calling ep_call_nested() from ep_poll_safewake()

2018-01-18 Thread Hou Tao
Hi Jason, On 2017/10/18 22:03, Jason Baron wrote: > > > On 10/17/2017 11:37 AM, Davidlohr Bueso wrote: >> On Fri, 13 Oct 2017, Jason Baron wrote: >> >>> The ep_poll_safewake() function is used to wakeup potentially nested >>> epoll >>> file descriptors. The function uses ep_call_nested() to prev

Re: [PATCH v16 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-18 Thread Meghana Madhyastha
On Wed, Jan 17, 2018 at 05:09:57PM +, Daniel Thompson wrote: > On 16/01/18 10:34, Meghana Madhyastha wrote: > >Add devm_of_find_backlight and the corresponding release > >function because some drivers use devres versions of functions > >for acquiring device resources. > > > >Signed-off-by: Megh

Re: [PATCH v6 31/36] dt-bindings: nds32 CPU Bindings

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds nds32 CPU binding documents. > > Signed-off-by: Vincent Chen > Signed-off-by: Rick Chen > Signed-off-by: Zong Li > Signed-off-by: Greentime Hu > Reviewed-by: Rob Herring > --- > Documentation/devic

Re: [PATCH v6 33/36] dt-bindings: nds32 SoC Bindings

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch adds nds32 SoC(AE3XX and AG101P) binding documents. > > Signed-off-by: Greentime Hu > Reviewed-by: Rob Herring Acked-by: Arnd Bergmann

Re: [PATCH v6 36/36] net: faraday add nds32 support.

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch is used to support nds32 architecture to use these faraday > mac IP. > > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann

[tip:locking/core] lockdep: Assign lock keys on registration

2018-01-18 Thread tip-bot for Matthew Wilcox
Commit-ID: 64f29d1bc9fb8196df3d0f1df694245230e208c0 Gitweb: https://git.kernel.org/tip/64f29d1bc9fb8196df3d0f1df694245230e208c0 Author: Matthew Wilcox AuthorDate: Wed, 17 Jan 2018 07:14:12 -0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 11:56:48 +0100 lockdep: Assign lock

[tip:locking/core] lockdep: Make lockdep checking constant

2018-01-18 Thread tip-bot for Matthew Wilcox
Commit-ID: 08f36ff642342fb058212099757cb5d40f158c2a Gitweb: https://git.kernel.org/tip/08f36ff642342fb058212099757cb5d40f158c2a Author: Matthew Wilcox AuthorDate: Wed, 17 Jan 2018 07:14:13 -0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 11:56:48 +0100 lockdep: Make lockde

[tip:locking/core] lockdep: Convert some users to const

2018-01-18 Thread tip-bot for Matthew Wilcox
Commit-ID: 05b93801a23c21a6f355f4c492c51715d6ccc96d Gitweb: https://git.kernel.org/tip/05b93801a23c21a6f355f4c492c51715d6ccc96d Author: Matthew Wilcox AuthorDate: Wed, 17 Jan 2018 07:14:14 -0800 Committer: Thomas Gleixner CommitDate: Thu, 18 Jan 2018 11:56:49 +0100 lockdep: Convert som

Re: [PATCH v6 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:57 AM, Greentime Hu wrote: > From: Rick Chen > > Add a document to describe Andestech atcpit100 timer and > binding information. > > Signed-off-by: Rick Chen > Signed-off-by: Greentime Hu > Acked-by: Rob Herring Acked-by: Arnd Bergmann

[PATCH 1/2] clk: divider: export clk_div_mask() helper

2018-01-18 Thread Jerome Brunet
Export clk_div_mask() in clk-provider header so every clock providers derived from the generic clock divider may share the definition instead of redefining it. Signed-off-by: Jerome Brunet --- drivers/clk/clk-divider.c| 24 +++- include/linux/clk-provider.h | 1 + 2 file

Re: [PATCH v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:57 AM, Greentime Hu wrote: > From: Rick Chen > > VDSO needs real-time cycle count to ensure the time accuracy. > Unlike others, nds32 architecture does not define clock source, > hence VDSO needs atcpit100 offering real-time cycle count > to derive the correct time. > >

[PATCH] watchdog: core: make sure the watchdog_worker is not deferred

2018-01-18 Thread Christophe Leroy
commit 4cd13c21b207e ("softirq: Let ksoftirqd do its job") has the effect of deferring timer handling in case of high CPU load, hence delaying the delayed work allthought the worker is running which high realtime priority. As hrtimers are not managed by softirqs, this patch replaces the delayed wo

[PATCH] [v2] IIO: ADC: stm32-dfsdm: remove unused variable again

2018-01-18 Thread Arnd Bergmann
The merge between commit abaca806fd13 ("IIO: ADC: stm32-dfsdm: code optimization") and commit 2353758bc2d4 ("IIO: ADC: stm32-dfsdm: avoid unused-variable warning") left one variable behind that is no longer needed and can be removed, as shown by the gcc warning: drivers/iio/adc/stm32-dfsdm-core.c:

Re: [PATCH v2 02/10] x86: Update _static_cpu_has to use all named variables

2018-01-18 Thread Borislav Petkov
On Tue, Jan 16, 2018 at 03:28:27PM +0100, Peter Zijlstra wrote: C'mon... you can do it... I believe in you..., you can give me that commit message, even if it is a single sentence... :-))) > Requested-by: Josh Poimboeuf > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/include/asm/cpuf

Applied "ASoC: Intel: remove select on non-existing SND_SOC_INTEL_COMMON" to the asoc tree

2018-01-18 Thread Mark Brown
The patch ASoC: Intel: remove select on non-existing SND_SOC_INTEL_COMMON has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "spi: a3700: Allow to enable or disable FIFO mode" to the spi tree

2018-01-18 Thread Mark Brown
The patch spi: a3700: Allow to enable or disable FIFO mode has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Applied "spi: a3700: Add full-duplex support" to the spi tree

2018-01-18 Thread Mark Brown
The patch spi: a3700: Add full-duplex support has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Applied "spi: a3700: Clear DATA_OUT when performing a read" to the spi tree

2018-01-18 Thread Mark Brown
The patch spi: a3700: Clear DATA_OUT when performing a read has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Applied "spi: a3700: Set frequency limits at startup" to the spi tree

2018-01-18 Thread Mark Brown
The patch spi: a3700: Set frequency limits at startup has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Re: Missing watchdog after ACPI watchdog creation failure

2018-01-18 Thread Mika Westerberg
On Thu, Jan 18, 2018 at 12:20:32PM +0200, Mika Westerberg wrote: > On Wed, Jan 17, 2018 at 12:53:41PM +0100, Takashi Iwai wrote: > > Unfortunately we couldn't get approval yet, since it's a prototype > > machine. > > In that case, I think the system itself and its ACPI tables should be > fixed if

Re: Missing watchdog after ACPI watchdog creation failure

2018-01-18 Thread Takashi Iwai
On Thu, 18 Jan 2018 12:26:37 +0100, Mika Westerberg wrote: > > On Thu, Jan 18, 2018 at 12:20:32PM +0200, Mika Westerberg wrote: > > On Wed, Jan 17, 2018 at 12:53:41PM +0100, Takashi Iwai wrote: > > > Unfortunately we couldn't get approval yet, since it's a prototype > > > machine. > > > > In that

Re: [PATCH v2 03/10] x86: Add a type field to alt_instr

2018-01-18 Thread Borislav Petkov
On Tue, Jan 16, 2018 at 03:28:28PM +0100, Peter Zijlstra wrote: > Add a type field to the alternative description. For now this will be > used to annotate static_cpu_has() but possible future uses include > using it to implement alternative alignment and special NOP handling. > > Suggested-by: Bor

Re: [PATCH] soc: xilinx: xlnx_vcu: Fix && vs & typo

2018-01-18 Thread Michal Simek
On 18.1.2018 11:28, Dan Carpenter wrote: > We accidentally used a logical AND instead of a bitwise AND here. > > Fixes: cee8113a295a ("soc: xilinx: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP > init driver") > Signed-off-by: Dan Carpenter > > diff --git a/drivers/soc/xilinx/xlnx_vcu.c b/drivers/

[PATCH] arm64: dts: hisi: add hns-dsaf cpld control for the hip07 SoC

2018-01-18 Thread Huazhong Tan
Add cpld-syscon node to support the cpld control for hns-dsaf on the hip07 SoC. Signed-off-by: Huazhong Tan --- arch/arm64/boot/dts/hisilicon/hip07.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hip07.dtsi b/arch/arm64/boot/dts/hisilicon/hip07.dts

Re: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support

2018-01-18 Thread Herbert Xu
On Tue, Jan 09, 2018 at 04:09:04PM -0800, Megha Dey wrote: > > +static void mcryptd_skcipher_encrypt(struct crypto_async_request *base, > + int err) > +{ > + struct skcipher_request *req = skcipher_request_cast(base); > + struct mc

Re: [PATCH] drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()

2018-01-18 Thread Philippe CORNU
Hi Brian, On 01/11/2018 12:16 PM, Philippe CORNU wrote: > Hi Brian, > > On 01/09/2018 07:55 PM, Brian Norris wrote: >> Hi Philippe, >> >> On Tue, Jan 09, 2018 at 10:48:43AM +, Philippe CORNU wrote: >>> Hi Brian, >>> >>> And many thanks for implementing these TODOs. >> >> And thanks for adding

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Dave Martin
On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: > We issue the enable() call back for all CPU hwcaps capabilities > available on the system, on all the CPUs. So far we have ignored > the argument passed to the call back, which had a prototype to > accept a "void *" for use with on

[PATCH v2 2/3] ARM: dts: at91: nattis: add lvds-encoder

2018-01-18 Thread Peter Rosin
The lvds encoder chip was omitted by oversight. Add it. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 31 ++--- 1 file changed, 28 insertions(+),

[PATCH v2 3/3] ARM: dts: at91: tse850: make the sound dai cell count explicit

2018-01-18 Thread Peter Rosin
The node is referred to as a DAI from the sound node and should therefore have a #sound-dai-cells property. Fixes: 21dd0ece34c2 ("ARM: dts: at91: add devicetree for the Axentia TSE-850") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-tse850-3.dts | 1 + 1 file changed, 1 insertion(+) dif

[PATCH v2 0/3] Device tree fixes for Axentia TSE-850 and Nattis

2018-01-18 Thread Peter Rosin
Hi! Here's a series that is of the "documentation" kind. It fixes things that don't really need fixing, but the fixes are correct none-the-less and should prevent possible confusion. Changes since v1: - One more fix added to patch 1/3. The size of the rootfs partition should be 504MB, as the f

[PATCH v2 1/3] ARM: dts: at91: nattis: use up-to-date mtd partitions

2018-01-18 Thread Peter Rosin
The nattis currently relies on the cmdline to correctly configure the MTD partition table, and the one given in the device tree is simply ignored. Which is fortunate, since the device tree partition table is bonkers and does not match reality. So, in order to avoid confusion, fix the device tree p

Re: [PATCH v16 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-18 Thread Daniel Thompson
On Thu, Jan 18, 2018 at 04:32:26PM +0530, Meghana Madhyastha wrote: > On Wed, Jan 17, 2018 at 05:09:57PM +, Daniel Thompson wrote: > > On 16/01/18 10:34, Meghana Madhyastha wrote: > > >Add devm_of_find_backlight and the corresponding release > > >function because some drivers use devres version

[PATCH v2] timer: Forward timer base before migrating timers

2018-01-18 Thread Lingutla Chandrasekhar
In case when timers are migrated to a CPU, after it exits idle, but before timer base is forwarded, either from run_timer_softirq()/mod_timer()/add_timer_on(), it's possible that migrated timers are queued, based on older clock value. This can cause delays in handling those timers. For example, co

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-18 Thread Petr Mladek
On Wed 2018-01-17 12:05:51, Tejun Heo wrote: > Hello, Steven. > > On Wed, Jan 17, 2018 at 12:12:51PM -0500, Steven Rostedt wrote: > > From what I gathered, you said an OOM would trigger, and then the > > network console would not be able to allocate memory and it would > > trigger a printk too, an

[PATCH v4 01/13] iommu/rockchip: Prohibit unbind and remove

2018-01-18 Thread Jeffy Chen
Removal of IOMMUs cannot be done reliably. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa --- Changes in v4: Rewrite commit message. Changes in v3: Also remove remove() and module_exit() as Tomasz suggested. Changes in v2: None drivers/iommu/rock

[PATCH v4 04/13] iommu/rockchip: Fix error handling in attach

2018-01-18 Thread Jeffy Chen
From: Tomasz Figa Currently if the driver encounters an error while attaching device, it will leave the IOMMU in an inconsistent state. Even though it shouldn't really happen in reality, let's just add proper error path to keep things consistent. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy

[PATCH v4 03/13] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-01-18 Thread Jeffy Chen
Move request_irq to the end of rk_iommu_probe(). Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Loop platform_get_irq() as Robin suggested. Changes in v2: None drivers/iommu/rockchip-iommu.c | 38 +- 1 file chan

[PATCH v4 00/13] iommu/rockchip: Use OF_IOMMU

2018-01-18 Thread Jeffy Chen
This series fixes some issues in rockchip iommu driver, and add of_iommu support in it. Changes in v4: Rewrite commit message. Changes in v3: Also remove remove() and module_exit() as Tomasz suggested. Loop platform_get_irq() as Robin suggested. Add struct rk_iommudata. Squash iommu/rockchip: Us

[PATCH v4 05/13] iommu/rockchip: Use iopoll helpers to wait for hardware

2018-01-18 Thread Jeffy Chen
From: Tomasz Figa This patch converts the rockchip-iommu driver to use the in-kernel iopoll helpers to wait for certain status bits to change in registers instead of an open-coded custom macro. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Ch

[PATCH v4 06/13] iommu/rockchip: Fix TLB flush of secondary IOMMUs

2018-01-18 Thread Jeffy Chen
From: Tomasz Figa Due to the bug in current code, only first IOMMU has the TLB lines flushed in rk_iommu_zap_lines. This patch fixes the inner loop to execute for all IOMMUs and properly flush the TLB. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3:

[PATCH v4 09/13] iommu/rockchip: Use IOMMU device for dma mapping operations

2018-01-18 Thread Jeffy Chen
Use the first registered IOMMU device for dma mapping operations, and drop the domain platform device. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/iommu/rockchip-iommu.c | 8

[PATCH v4 07/13] ARM: dts: rockchip: add clocks in vop iommu nodes

2018-01-18 Thread Jeffy Chen
Add clocks in vop iommu nodes, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3036.dtsi | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 4 2 files changed, 6 insertions(+)

[PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU

2018-01-18 Thread Jeffy Chen
From: Tomasz Figa Current code relies on master driver enabling necessary clocks before IOMMU is accessed, however there are cases when the IOMMU should be accessed while the master is not running yet, for example allocating V4L2 videobuf2 buffers, which is done by the VB2 framework using DMA map

[PATCH v4 13/13] iommu/rockchip: Support sharing IOMMU between masters

2018-01-18 Thread Jeffy Chen
There would be some masters sharing the same IOMMU device. Put them in the same iommu group and share the same iommu domain. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Remove rk_iommudata->domain. Changes in v2: None drivers/iommu/rockchip-iommu.c | 22 ++

[PATCH v4 11/13] iommu/rockchip: Fix error handling in init

2018-01-18 Thread Jeffy Chen
It's hard to undo bus_set_iommu() in the error path, so move it to the end of rk_iommu_probe(). Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa --- Changes in v4: None Changes in v3: None Changes in v2: Move bus_set_iommu() to rk_iommu_probe(). drivers/iommu/rockchip-iommu.c | 15 ++---

[PATCH v4 12/13] iommu/rockchip: Add runtime PM support

2018-01-18 Thread Jeffy Chen
When the power domain is powered off, the IOMMU cannot be accessed and register programming must be deferred until the power domain becomes enabled. Add runtime PM support, and use runtime PM device link from IOMMU to master to startup and shutdown IOMMU. Signed-off-by: Jeffy Chen --- Changes i

Applied "ASoC: use seq_file to dump the contents of dai_list,platform_list and codec_list" to the asoc tree

2018-01-18 Thread Mark Brown
The patch ASoC: use seq_file to dump the contents of dai_list,platform_list and codec_list has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually someti

[PATCH v4 10/13] iommu/rockchip: Use OF_IOMMU to attach devices automatically

2018-01-18 Thread Jeffy Chen
Converts the rockchip-iommu driver to use the OF_IOMMU infrastructure, which allows attaching master devices to their IOMMUs automatically according to DT properties. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Add struct rk_iommudata. Squash iommu/rockchip: Use iommu_group_

Re: [PATCH] kconfig: announce removal of oldnoconfig if used

2018-01-18 Thread Ulf Magnusson
On Thu, Jan 18, 2018 at 5:13 AM, Masahiro Yamada wrote: > The 'oldnoconfig' is really confusing due to its counter-intuitive name. > It was renamed by commit fb16d8912db5 ("kconfig: replace 'oldnoconfig' > with 'olddefconfig', and keep the old name as an alias"). > > The 'oldnoconfig' has been kep

[PATCH v4 02/13] iommu/rockchip: Fix error handling in probe

2018-01-18 Thread Jeffy Chen
Add missing iommu_device_sysfs_remove in error path. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/iommu/rockchip-iommu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/rockchi

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 11:45, Dave Martin wrote: On Wed, Jan 17, 2018 at 05:42:19PM +, Suzuki K Poulose wrote: We issue the enable() call back for all CPU hwcaps capabilities available on the system, on all the CPUs. So far we have ignored the argument passed to the call back, which had a prototype to

[PATCH v1 tip/master 1/3] retpoline: Introduce start/end markers of indirect thunk

2018-01-18 Thread Masami Hiramatsu
Introduce start/end markers of __x86_indirect_thunk_* functions. These thunk functions are placed in .text.__x86.indirect_thunk.* sections. So this puts those sections in the end of kernel text and adds __indirect_thunk_start/end so that other subsystem (e.g. kprobes) can identify it. Signed-off-b

[PATCH v1 tip/master 0/3] kprobes/x86: retpoline: Fix kprobes for retpoline

2018-01-18 Thread Masami Hiramatsu
Hi, This is a series of patches to fix kprobes issues on the kernel with CONFIG_RETPOLINE=y. - [1/3]: This introduces __x86_indirect_thunk_* boundary symbols so that kprobes easily identify those functions. - [2/3]: Mark __x86_indirect_thunk_* as blacklisted function for kprobes

[PATCH v1 tip/master 2/3] kprobes/x86: Blacklist indirect thunk functions for kprobes

2018-01-18 Thread Masami Hiramatsu
Mark __x86_indirect_thunk_* functions as blacklist for kprobes because those functions can be called from anywhere in the kernel including blacklist functions of kprobes. Signed-off-by: Masami Hiramatsu --- arch/x86/lib/retpoline.S |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH v16 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-18 Thread Daniel Thompson
On Thu, Jan 18, 2018 at 04:29:23PM +0530, Meghana Madhyastha wrote: > On Wed, Jan 17, 2018 at 11:03:24PM +0100, Noralf Trønnes wrote: > > > > Den 17.01.2018 18.00, skrev Daniel Thompson: > > > > > > > > >On 16/01/18 10:31, Meghana Madhyastha wrote: > > >>Add helper functions backlight_enable and b

[PATCH v1 tip/master 3/3] kprobes/x86: Disable optimizing on the function jumps to indirect thunk

2018-01-18 Thread Masami Hiramatsu
Since indirect jump instructions will be replaced by jump to __x86_indirect_thunk_*, those jmp instruction must be treated as an indirect jump. Since optprobe prohibits to optimize probes in the function which uses an indirect jump, it also needs to find out the function which jump to __x86_indirec

Re: [PATCH 1/2] crypto: exynos-rng - Add SPDX license identifier and correct module license

2018-01-18 Thread Herbert Xu
On Tue, Jan 09, 2018 at 06:57:35PM +0100, Krzysztof Kozlowski wrote: > Replace GPL license statement with SPDX GPL-2.0 license identifier and > correct the module license to GPLv2. > > The license itself was a generic GPL because of copy-and-paste from old > drivers/char/hw_random/exynos-rng.c dri

Re: [PATCH] hw_random: mediatek: Setup default RNG quality

2018-01-18 Thread Herbert Xu
On Wed, Jan 10, 2018 at 12:02:46PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > When hw_random device's quality is non-zero, it will automatically fill > the kernel's entropy pool at boot. For the purpose, one conservative > quality value is being picked up as the default value. >

Re: [PATCH] irqdomain: provide useful debugging information for irq domain

2018-01-18 Thread Yang, Shunyong
Hi, Marc On Thu, 2018-01-18 at 08:54 +, Marc Zyngier wrote: > On 18/01/18 01:53, Yang, Shunyong wrote: > > > > Hi, Marc > > > > On Wed, 2018-01-17 at 10:43 +, Marc Zyngier wrote: > > > > > > On 17/01/18 10:20, Yang, Shunyong wrote: > > > > > > > > > > > > Hi, Thomas and Marc, > > > >

Re: [PATCH] crypto: marvell/cesa - Fix DMA API misuse

2018-01-18 Thread Herbert Xu
On Wed, Jan 10, 2018 at 03:15:43PM +, Robin Murphy wrote: > phys_to_dma() is an internal helper for certain DMA API implementations, > and is not appropriate for drivers to use. It appears that what the CESA > driver really wants to be using is dma_map_resource() - admittedly that > didn't exis

Re: [PATCH] hwrng: imx-rngc: simplify the power management definitions

2018-01-18 Thread Herbert Xu
On Thu, Jan 11, 2018 at 10:06:39PM +0100, Martin Kaiser wrote: > Use the SIMPLE_DEV_PM_OPS() macro instead of populating a struct > dev_pm_ops directly. The suspend and resume functions will now be used > for both hibernation and suspend to ram. > > If power management is disabled, SIMPLE_DEV_PM_O

Re: [PATCH v1 tip/master 1/3] retpoline: Introduce start/end markers of indirect thunk

2018-01-18 Thread Woodhouse, David
On Thu, 2018-01-18 at 21:01 +0900, Masami Hiramatsu wrote: > > +#define X86_INDIRECT_THUNK(reg)\ > +   *(.text.__x86.indirect_thunk.##reg) Note that we don't actually care about those being in their own section, named after the register. That was just a hangover from the initi

Re: [PATCH v16 09/10] drm/panel: Use of_find_backlight helper

2018-01-18 Thread Meghana Madhyastha
On Tue, Jan 16, 2018 at 06:08:53PM +0100, Noralf Trønnes wrote: > > Den 16.01.2018 11.36, skrev Meghana Madhyastha: > >Replace of_find_backlight_by_node and of the code around it > >with of_find_backlight helper to avoid repetition of code. > > > >Signed-off-by: Meghana Madhyastha > >--- > > dri

Re: [PATCH v2 0/2] arm64: Run enable method for errata work arounds on late CPUs

2018-01-18 Thread Robin Murphy
On 18/01/18 12:00, Robin Murphy wrote: [...] +struct enable_arg { +    int (*enable)(struct arm64_cpu_capabilities const *); +    struct arm64_cpu_capabilities const *cap; +}; + +static int __enable_cpu_capability(void *arg) +{ +    struct enable_arg const *e = arg; + +    return e->enable(e->cap

[PATCH 2/2] clk: meson: use devm_of_clk_add_hw_provider

2018-01-18 Thread Jerome Brunet
There is no remove callbacks in meson's clock controllers and of_clk_del_provider is never called if of_clk_add_hw_provider has been executed, introducing a potential memory leak. Fixing this by the using the devm variant. In reality, the leak would never happen since these controllers are never u

[PATCH 0/2] clk: meson: probe clean-ups

2018-01-18 Thread Jerome Brunet
This changeset feature a couple of clean-ups in the probe function of meson's clock controllers. It is the beginning of a refactoring of meson's clock controllers Jerome Brunet (2): clk: meson: use dev pointer where possible clk: meson: use devm_of_clk_add_hw_provider drivers/clk/meson/axg.c

<    3   4   5   6   7   8   9   10   >