Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-27 Thread Mike Galbraith
On Tue, 2018-03-27 at 10:23 -0400, Waiman Long wrote: > On 03/27/2018 10:02 AM, Tejun Heo wrote: > > Hello, > > > > On Mon, Mar 26, 2018 at 04:28:49PM -0400, Waiman Long wrote: > >> Maybe we can have a different root level flag, say, > >> sched_partition_domain that is equivalent to !sched_load_bal

Re: [PATCH v3 2/2] KVM: X86: Add Force Emulation Prefix for "emulate the next instruction"

2018-03-27 Thread Liran Alon
- kernel...@gmail.com wrote: > From: Wanpeng Li > > There is no easy way to force KVM to run an instruction through the > emulator > (by design as that will expose the x86 emulator as a significant > attack-surface). > However, we do wish to expose the x86 emulator in case we are testing >

Re: [PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
On Wed, Mar 28, 2018 at 09:46:36AM +0300, Abel Vesa wrote: > From: Dong Aisheng > > For init on clocks we should move it at the first place in imx7d_clocks_init() > before any clock operations, else the clock operation may fail in case the > clock > is still not on. > > Acked-by: Ranjani Vaidya

[PATCH v2] staging: fsl-dpaa2/ethsw: Fix tag control information value overwrite

2018-03-27 Thread Razvan Stefanescu
The tag control information (TCI) part of the VLAN header contains several fields, including PCP (priority code point) and PVID (port VLAN id). Current implementation uses function ethsw_port_set_tci() to set the PVID value and mistakenly overwrites the rest of the TCI fields with 0, including PCP

[PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
From: Dong Aisheng For init on clocks we should move it at the first place in imx7d_clocks_init() before any clock operations, else the clock operation may fail in case the clock is still not on. Acked-by: Ranjani Vaidyanathan Signed-off-by: Dong Aisheng Signed-off-by: Irina Tirdea Signed-off

Re: [PATCH] ANDROID: binder: change down_write to down_read

2018-03-27 Thread Minchan Kim
On Wed, Mar 28, 2018 at 07:53:54AM +0200, Greg Kroah-Hartman wrote: > On Wed, Mar 28, 2018 at 11:42:31AM +0900, Minchan Kim wrote: > > binder_update_page_range needs down_write of mmap_sem because > > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > > it is set. However, when I p

[PATCH v4 0/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-27 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! Notes. 1. Boris, I put your R-b tag as I almost didn't change Xen part of the driver (see below). Please let me know if this is not acceptable, so I remove the tag. 2. With this patch series I am also adding a patch from Noralf Trønnes [12] to enable critical

[RESEND 2/4] clk: imx7d: Correct dram pll type

2018-03-27 Thread Abel Vesa
From: Anson Huang DRAM PLL is a audio/video type PLL, need to correct it to get correct ops of PLL. There is a test_div placed before DRAM PLL's gate, so add this test div clk. Signed-off-by: Anson Huang Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c |

[PATCH v4 2/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-27 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add support for Xen para-virtualized frontend display driver. Accompanying backend [1] is implemented as a user-space application and its helper library [2], capable of running as a Weston client or DRM master. Configuration of both backend and frontend is done via X

[PATCH v4 1/2] drm: Use srcu to protect drm_device.unplugged

2018-03-27 Thread Oleksandr Andrushchenko
From: Noralf Trønnes Use srcu to protect drm_device.unplugged in a race free manner. Drivers can use drm_dev_enter()/drm_dev_exit() to protect and mark sections preventing access to device resources that are not available after the device is gone. Suggested-by: Daniel Vetter Signed-off-by: Nora

[RESEND 3/4] clk: imx7d: Correct ahb clk parent select

2018-03-27 Thread Abel Vesa
From: Anson Huang Design team change the ahb's clk parent options but did NOT update the DOC accordingly in time, so the AHB/IPG's clk rate in clk tree is incorrect, AHB is 67.5MHz and IPG is 33.75MHz, but using scope to monitor them, they are actually 135MHz and 67.5MHz, update the clk parent op

[RESEND 1/4] clk: imx7d: Add USB clock information

2018-03-27 Thread Abel Vesa
From: Peter Chen Add USB clock information, the pll_usb_main_clk is USB_PLL at CCM which is the output of USBOTG2 PHY. Signed-off-by: Peter Chen Signed-off-by: Irina Tirdea Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-imx7d.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-)

[RESEND 4/4] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
From: Dong Aisheng For init on clocks we should move it at the first place in imx7d_clocks_init() before any clock operations, else the clock operation may fail in case the clock is still not on. Acked-by: Ranjani Vaidyanathan Signed-off-by: Dong Aisheng Signed-off-by: Irina Tirdea Signed-off

Re: [PATCH 4.4 20/43] mm/vmalloc: add interfaces to free unmapped page table

2018-03-27 Thread Nathan Chancellor
On Wed, Mar 28, 2018 at 08:32:02AM +0200, gre...@linuxfoundation.org wrote: > On Tue, Mar 27, 2018 at 01:47:55PM -0700, Nathan Chancellor wrote: > > On Tue, Mar 27, 2018 at 08:40:56PM +, Kani, Toshi wrote: > > > On Tue, 2018-03-27 at 13:31 -0700, Nathan Chancellor wrote: > > > > On Tue, Mar 27,

[RESEND 0/4] Update imx7 clocks

2018-03-27 Thread Abel Vesa
Resent as a patcheset now. I sent the initial patches as individual ones, without specifying the order they need to be applied in. https://lkml.org/lkml/2018/3/27/535 https://lkml.org/lkml/2018/3/27/536 https://lkml.org/lkml/2018/3/27/539 https://lkml.org/lkml/2018/3/27/542 Anson Huang (2): c

RE: [PATCH] staging: fsl-dpaa2/ethsw: Fix TCI values overwrite

2018-03-27 Thread Razvan Stefanescu
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Andrew Lunn > Sent: Tuesday, March 27, 2018 4:38 PM > To: Razvan Stefanescu > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; linux- > ker...@vger.kerne

Re: [RFC PATCH for 4.17 02/21] rseq: Introduce restartable sequences system call (v12)

2018-03-27 Thread Boqun Feng
On Tue, Mar 27, 2018 at 12:05:23PM -0400, Mathieu Desnoyers wrote: [...] > Changes since v11: > > - Replace task struct rseq_preempt, rseq_signal, and rseq_migrate > bool by u32 rseq_event_mask. [...] > @@ -979,6 +980,17 @@ struct task_struct { > unsigned long numa_pages_

[PATCH] staging: vt6655: check for memory allocation failures

2018-03-27 Thread Ji-Hun Kim
There are no null pointer checking on rd_info and td_info values which are allocated by kzalloc. It has potential null pointer dereferencing issues. Add return when allocation is failed. Signed-off-by: Ji-Hun Kim --- drivers/staging/vt6655/device_main.c | 12 1 file changed, 8 inser

Re: [RFC v2 01/12] KVM: arm/arm64: Set dist->spis to NULL after kfree

2018-03-27 Thread Auger Eric
Hi Marc, On 27/03/18 19:10, Marc Zyngier wrote: > On 27/03/18 15:04, Eric Auger wrote: >> in case kvm_vgic_map_resources() fails, typically if the vgic >> distributor is not defined, __kvm_vgic_destroy will be called >> several times. Indeed kvm_vgic_map_resources() is called on >> first vcpu run.

Re: [RFC PATCH] crypto: brcm - explicitly cast cipher to hash type

2018-03-27 Thread Raveendra Padasalagi
Hi Stefan, The change looks to be fine. From the IP point of view its using the same values in case of AES cipher and hash types so explicit casting should be ok. -Raveendra On Sat, Mar 24, 2018 at 4:32 PM, Stefan Agner wrote: > In the AES cases enum spu_cipher_type and enum hash_type have > t

Re: [PATCH] vhost-net: add time limitation for tx polling(Internet mail)

2018-03-27 Thread Jason Wang
On 2018年03月28日 12:01, haibinzhang(张海斌) wrote: On 2018年03月27日 19:26, Jason wrote On 2018年03月27日 17:12, haibinzhang wrote: handle_tx() will delay rx for a long time when busy tx polling udp packets with short length(ie: 1byte udp payload), because setting VHOST_NET_WEIGHT takes into account only

Re: [PATCH 4.4 20/43] mm/vmalloc: add interfaces to free unmapped page table

2018-03-27 Thread gre...@linuxfoundation.org
On Tue, Mar 27, 2018 at 01:47:55PM -0700, Nathan Chancellor wrote: > On Tue, Mar 27, 2018 at 08:40:56PM +, Kani, Toshi wrote: > > On Tue, 2018-03-27 at 13:31 -0700, Nathan Chancellor wrote: > > > On Tue, Mar 27, 2018 at 03:17:00PM -0500, Dan Rue wrote: > > > > On Tue, Mar 27, 2018 at 06:27:24PM

Re: [PATCH] clk: imx7d: Move clks_init_on before any clock operations

2018-03-27 Thread Abel Vesa
Hi Fabio, On Tue, Mar 27, 2018 at 12:08:39PM -0300, Fabio Estevam wrote: > Hi Abel, > > On Tue, Mar 27, 2018 at 11:23 AM, Abel Vesa wrote: > > From: Dong Aisheng > > > > For init on clocks we should move it at the first place in > > imx7d_clocks_init() > > before any clock operations, else the

[PATCH] HID: google: Enable PM Full On mode when adjusting backlight

2018-03-27 Thread Nicolas Boichat
From: Haridhar Kalvala hammer LED backlight brightness is not getting set when USB device is in suspend state. This patch fixes the issue by requesting USB HID device to be in FULLON mode, so that sending hardware output report and hardware raw request won't fail to set brightness, and set devic

Re: [PATCH] debugfs: Check return value of debugfs_real_fops() for NULL

2018-03-27 Thread Greg Kroah-Hartman
On Tue, Mar 27, 2018 at 04:55:53PM -0700, Matthias Kaehlcke wrote: > debugfs_real_fops() returns a NULL pointer when it is invoked without a > prior call to debugfs_file_get(). In code paths including this call it > is not strictly necessary to check the return value of > debugfs_real_fops(). Howev

Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-03-27 Thread Artem Bityutskiy
On Mon, 2018-03-26 at 10:39 +0200, Thorsten Leemhuis wrote: > Lo! Your friendly Linux regression tracker here ;-) > > On 08.03.2018 14:18, Artem Bityutskiy wrote: > > On Thu, 2018-03-08 at 18:53 +0800, Ming Lei wrote: > > > This patchset tries to spread among online CPUs as far as possible, so > >

Re: [PATCH v9 5/5] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-03-27 Thread Yisheng Xie
Hi Vivek, On 2018/3/28 12:37, Vivek Gautam wrote: > Hi Yisheng > > > On 3/28/2018 6:54 AM, Yisheng Xie wrote: >> Hi Vivek, >> >> On 2018/3/13 16:55, Vivek Gautam wrote: >>> +- power-domains: Specifiers for power domains required to be powered on >>> for >>> + the SMMU to opera

Re: [PATCH 4/6] rhashtable: allow a walk of the hash table without missing objects.

2018-03-27 Thread Herbert Xu
On Wed, Mar 28, 2018 at 08:54:41AM +1100, NeilBrown wrote: > > Possibly. > I particularly want the interface to require that you pass the > previously returned object to _continue. That makes it easy to see that > the object is still being used. If someone changes to code to delete > the object be

Re: [PATCH 5/6] rhashtable: support guaranteed successful insertion.

2018-03-27 Thread Herbert Xu
On Wed, Mar 28, 2018 at 08:34:19AM +1100, NeilBrown wrote: > > It is easy to get an -EBUSY insertion failure when .disable_count is > enabled, and I did get that. Blindly propagating that up caused lustre > to get terribly confused - not too surprising really. Right, so this failure mode is speci

Re: [PATCH 4.15 000/105] 4.15.14-stable review

2018-03-27 Thread Greg Kroah-Hartman
On Tue, Mar 27, 2018 at 04:57:44PM -0600, Shuah Khan wrote: > On 03/27/2018 10:26 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.15.14 release. > > There are 105 patches in this series, all will be posted as a response > > to this one. If anyone has any is

kernel BUG at lib/string.c:LINE! (3)

2018-03-27 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (Sun Mar 25 22:44:30 2018 +) Linux 4.16-rc7 syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=6800425d54ed3ed8135d So far this crash happened 2 times on upstream. syzkaller repro

Re: [PATCH 1/2] af_key: Use DIV_ROUND_UP() instead of open-coded equivalent

2018-03-27 Thread Steffen Klassert
On Mon, Mar 26, 2018 at 07:39:16AM -0400, Kevin Easton wrote: > Several places use (x + 7) / 8 to convert from a number of bits to a number > of bytes. Replace those with DIV_ROUND_UP(x, 8) instead, for consistency > with other parts of the same file. > > Signed-off-by: Kevin Easton Is this a f

Re: [PATCH] ANDROID: binder: change down_write to down_read

2018-03-27 Thread Greg Kroah-Hartman
On Wed, Mar 28, 2018 at 11:42:31AM +0900, Minchan Kim wrote: > binder_update_page_range needs down_write of mmap_sem because > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > it is set. However, when I profile binder working, it seems > every binder buffers should be mapped in a

Re: [PATCH] slab, slub: skip unnecessary kasan_cache_shutdown()

2018-03-27 Thread Shakeel Butt
On Tue, Mar 27, 2018 at 5:16 PM, David Rientjes wrote: > On Tue, 27 Mar 2018, Shakeel Butt wrote: > >> diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c >> index 49fffb0ca83b..135ce2838c89 100644 >> --- a/mm/kasan/kasan.c >> +++ b/mm/kasan/kasan.c >> @@ -382,7 +382,8 @@ void kasan_cache_shrink(stru

WARNING in refcount_dec

2018-03-27 Thread Byoungyoung Lee
We report the crash: WARNING in refcount_dec This crash has been found in v4.16-rc3 using RaceFuzzer (a modified version of Syzkaller), which we describe more at the end of this report. Our analysis shows that the race occurs when invoking two syscalls concurrently, (setsockopt$packet_int) and (se

Re: [PATCH for-4.17 2/2] powerpc: Remove smp_mb() from arch_spin_is_locked()

2018-03-27 Thread Michael Ellerman
Andrea Parri writes: > On Tue, Mar 27, 2018 at 11:06:56AM +1100, Benjamin Herrenschmidt wrote: >> On Mon, 2018-03-26 at 12:37 +0200, Andrea Parri wrote: >> > Commit 51d7d5205d338 ("powerpc: Add smp_mb() to arch_spin_is_locked()") >> > added an smp_mb() to arch_spin_is_locked(), in order to ensure

Re: [PATCH] pinctrl/amd: poll InterruptEnable bits in enable_irq

2018-03-27 Thread Shah, Nehal-bakulchandra
Hi On 3/26/2018 2:42 PM, Linus Walleij wrote: > On Mon, Mar 12, 2018 at 5:45 PM, Daniel Kurtz wrote: > >> In certain cases interrupt enablement will be delayed relative to when >> the InterruptEnable bits are written. One example of this is when >> a GPIO's "debounce" logice is first enabled.

[PATCH v2] perf stat: avoid 10ms limit for printing event counts

2018-03-27 Thread Alexey Budankov
Currently print count interval for performance counters values is limited by 10ms so reading the values at frequencies higher than 100Hz is restricted by the tool. This change avoids that limitation and makes perf stat -I possible on frequencies up to 1KHz and, to some extent, makes perf stat

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-03-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/kernel/cpufeature.c between commits: 143ba05d867a ("arm64: capabilities: Prepare for fine grained capabilities") 12eb369125ab ("arm64: cpufeature: Avoid warnings due to unused symbols") from the arm64 tree

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2018-03-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/kernel/cpu_errata.c between commit: c0cda3b8ee6b ("arm64: capabilities: Update prototype for enable call back") followed by a series of patches cleaning up capabilities from the arm64 tree and commits:

Re: [RFC PATCH v2 0/2] Randomization of address chosen by mmap.

2018-03-27 Thread Rob Landley
On 03/23/2018 02:06 PM, Matthew Wilcox wrote: > On Fri, Mar 23, 2018 at 02:00:24PM -0400, Rich Felker wrote: >> On Fri, Mar 23, 2018 at 05:48:06AM -0700, Matthew Wilcox wrote: >>> On Thu, Mar 22, 2018 at 07:36:36PM +0300, Ilya Smith wrote: Current implementation doesn't randomize address retur

Re: [PATCH] proc: register filesystem last

2018-03-27 Thread Al Viro
On Sat, Mar 10, 2018 at 03:06:34AM +0300, Alexey Dobriyan wrote: > On Fri, Mar 09, 2018 at 02:49:38PM -0800, Andrew Morton wrote: > > On Sat, 10 Mar 2018 01:27:09 +0300 Alexey Dobriyan > > wrote: > > > > > As soon as register_filesystem() exits, filesystem can be mounted. > > > It is better to p

Re: [PATCH v6 05/21] tracing: probeevent: Cleanup print argument functions

2018-03-27 Thread Masami Hiramatsu
On Mon, 26 Mar 2018 13:28:32 -0400 Steven Rostedt wrote: > On Mon, 26 Mar 2018 13:17:33 +0900 > Masami Hiramatsu wrote: > > > > Masami Hiramatsu wrote: > > > > > > > Current print argument functions prints the argument > > > > name too. It is not good for printing out multiple > > > > value

Re: [PATCH] vhost-net: add time limitation for tx polling(Internet mail)

2018-03-27 Thread 张海斌
On 2018年03月27日 19:26, Jason wrote On 2018年03月27日 17:12, haibinzhang wrote: >> handle_tx() will delay rx for a long time when busy tx polling udp packets >> with short length(ie: 1byte udp payload), because setting VHOST_NET_WEIGHT >> takes into account only sent-bytes but no time. > >Interesting. >

Regression: 4.14.x x86/mm: Encrypt the initrd earlier for BSP microcode update

2018-03-27 Thread Steven Haigh
Hi all, After the following patch, we are unable to build the 4.14 tree with EL6 - which uses gcc 4.4.7 The failure logs are as follows: BUILDSTDERR: arch/x86/kernel/head64.c: In function 'copy_bootdata': BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:59: sorry, unimplemented: inlining faile

Re: [PATCH 17/19] csky: defconfig

2018-03-27 Thread Guo Ren
On Tue, Mar 27, 2018 at 09:48:23AM +0200, Arnd Bergmann wrote: > On Tue, Mar 27, 2018 at 4:21 AM, Guo Ren wrote: > > On Mon, Mar 26, 2018 at 03:16:31PM +0200, Arnd Bergmann wrote: > > >> > +CONFIG_CFG80211=y > >> > +CONFIG_CFG80211_DEBUGFS=y > >> > +CONFIG_CFG80211_WEXT=y > >> > >> I would guess

Re: [PATCH 1/4] gpio: Remove VLA from gpiolib

2018-03-27 Thread Lukas Wunner
On Tue, Mar 27, 2018 at 05:37:18PM -0700, Laura Abbott wrote: > On 03/18/2018 07:23 AM, Lukas Wunner wrote: > > Actually, scratch that. If ngpio is usually smallish, we can just > > allocate reasonably sized space for mask and bits on the stack, > > and fall back to the kcalloc slowpath only if ch

Re: [PATCH v1 02/16] dt-bindings: rtc: mediatek: add bindings for PMIC RTC

2018-03-27 Thread Sean Wang
On Tue, 2018-03-27 at 17:18 +0200, Alexandre Belloni wrote: > On 25/03/2018 at 03:36:28 +0800, Sean Wang wrote: > > just reply both replies in the same mail > > > > 1.) the power-off device is a part of rtc, use the same registers rtc > > has and thus it is put as child nodes under the node rtc to

Re: [PATCH 15/19] csky: Build infrastructure

2018-03-27 Thread Guo Ren
Hi Arnd, On Tue, Mar 27, 2018 at 09:38:56AM +0200, Arnd Bergmann wrote: > Usually the way gcc handles this, either each CPU is a strict superset > of another > one, so you just need to specify the one with the smallest instruction set, > or you have an option like -mcpu=generic that produces the c

Re: [PATCH v2 10/21] kconfig: add 'success' and 'cc-option' macros

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > 'cc-option' will be the most frequently used macro. It evaluates to 'y' > if the given argument is supported by the compiler, or 'n' otherwise. > > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook > --- > > Changes in v2: > - I

Re: [PATCH v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > Now, we got a basic ability to test compiler capability in Kconfig. > > config CC_HAS_STACKPROTECTOR > def_bool $(shell (($CC -Werror -fstack-protector -c -x c /dev/null -o > /dev/null) && echo y) || echo n) > > This works, but it

Re: [PATCH v2 08/21] kconfig: replace $UNAME_RELEASE with function call

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > Now that 'shell' function is supported, this can be self-contained in > Kconfig. > > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook -Kees -- Kees Cook Pixel Security

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by make.) > > Real examples will look l

Re: [PATCH v2 06/21] kconfig: remove string expansion for mainmenu after yyparse()

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > Now that environments are expanded in the lexer, conf_parse() does > not need to explicitly expand $ARCH and $KERNELVERSION in the mainmenu. > > The hack introduced by commit 0724a7c32a54 ("kconfig: Don't leak > main menus during parsing")

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option env=" syntax. It is tedious to add a config entry for each > environment given that we need more environments such as 'CC', 'AS', > 'srctree' etc. to evaluate t

Re: [PATCH v2 05/21] kconfig: remove string expansion in file_lookup()

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > There are two callers of file_lookup(). > > [1] zconf_initscan() > This is used to open the first Kconfig. However, it cannot > contain environments in the file path because zconf_fopen() is > called before file_lookup(). By

Re: [PATCH] xfs: always free inline data before resetting inode fork during ifree

2018-03-27 Thread Dave Chinner
On Mon, Mar 26, 2018 at 07:54:31PM -0400, Sasha Levin wrote: > On Sun, Mar 25, 2018 at 6:33 PM, Dave Chinner wrote: > > On Fri, Mar 23, 2018 at 06:23:02PM +, Luis R. Rodriguez wrote: > >> On Fri, Mar 23, 2018 at 10:26:20AM -0700, Darrick J. Wong wrote: > >> > On Fri, Mar 23, 2018 at 05:08:13PM

Re: [PATCH v2 02/21] kbuild: remove CONFIG_CROSS_COMPILE support

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > Kbuild provides a couple of ways to specify CROSS_COMPILE: > > [1] Command line > [2] Environment > [3] arch/*/Makefile (only some architectures) > [4] CONFIG_CROSS_COMPILE > > [4] is problematic for the compiler capability tests in Kconfi

Re: [PATCH v2 03/21] kconfig: move and rename sym_expand_string_value()

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > This helper expands symbols contained in a string. I am about to > change it to expand environments instead of symbols. Also, I will > add function expansion later. > > Rename it to expand_string_value(), and move it to util.c, which is

[PATCH V2 2/4] clocksource/drivers/imx-tpm: fix typo of clock name

2018-03-27 Thread Anson Huang
The clock name should be ipg instead of igp. Signed-off-by: Anson Huang --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 21bffdc..3f97d49 100644 --- a/drive

Re: [PATCH v2 01/21] kbuild: remove kbuild cache

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > The kbuild cache was introduced to remember the result of shell > commands, some of which are expensive to compute, such as > $(call cc-option,...). > > However, this turned out not so clever as I had first expected. > Actually, it is prob

[PATCH V2 3/4] clocksource/drivers/imx-tpm: correct some registers operation flow

2018-03-27 Thread Anson Huang
According to i.MX7ULP reference manual, TPM_SC_CPWMS can ONLY be written when counter is disabled, TPM_SC_TOF is write-1-clear, TPM_C0SC_CHF is also write-1-clear, correct these registers initialization flow; Signed-off-by: Anson Huang --- changes since V1: use separate patch to fix the c

Re: [PATCH v2 12/21] kconfig: show compiler version text in the top comment

2018-03-27 Thread Kees Cook
On Mon, Mar 26, 2018 at 10:29 PM, Masahiro Yamada wrote: > The kernel configuration phase is now tightly coupled with the compiler > in use. It will be nice to show the compiler information in Kconfig. > > The compiler information will be displayed like this: > > $ make ARCH=arm64 CROSS_COMPILE

[PATCH V2 4/4] clocksource/drivers/imx-tpm: add different counter width support

2018-03-27 Thread Anson Huang
Different TPM modules have different width counters which is 16-bit or 32-bit, the counter width can be read from TPM_PARAM register bit[23:16], this patch adds dynamic check for counter width to support both 16-bit and 32-bit TPM modules. Signed-off-by: Anson Huang --- changes since V1:

[PATCH V2 1/4] dt-bindings: timer: tpm: fix typo of clock name

2018-03-27 Thread Anson Huang
The clock name should be ipg instead of igp. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/timer/nxp,tpm-timer.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/nxp,tpm-timer.txt b/Documentation/devicetree/bindings

[PATCH] x86, msr: fix rdmsrl_safe_on_cpu()

2018-03-27 Thread Eric Dumazet
When changing rdmsr_safe_on_cpu() to schedule, I missed that __rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu() Lets make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting the code I added for the completion handling. Fixes: 07cde313b2d2 ("x86/msr: Allow rdmsr_safe_on_cpu() to sched

Re: [PATCH] kbuild: move out of

2018-03-27 Thread Masahiro Yamada
2018-03-28 12:10 GMT+09:00 Kees Cook : > On Tue, Mar 27, 2018 at 7:40 PM, Masahiro Yamada > wrote: >> Since commit 28128c61e08e ("kconfig.h: Include compiler types to avoid >> missed struct attributes"), pulls in kernel-space >> headers to unrelated file. >> >> Commit 0f9da844d877 ("MIPS: boot: D

Re: [PATCH] kbuild: move out of

2018-03-27 Thread Kees Cook
On Tue, Mar 27, 2018 at 7:40 PM, Masahiro Yamada wrote: > Since commit 28128c61e08e ("kconfig.h: Include compiler types to avoid > missed struct attributes"), pulls in kernel-space > headers to unrelated file. > > Commit 0f9da844d877 ("MIPS: boot: Define __ASSEMBLY__ for its.S build") > suppresse

Re: [PATCH] spi: mediatek: remove redundant MODULE_ALIAS entries

2018-03-27 Thread Sean Wang
On Wed, 2018-03-28 at 10:14 +0800, Mark Brown wrote: > On Mon, Mar 26, 2018 at 06:04:18PM +0800, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > MODULE_ALIAS exports information to allow the module to be auto-loaded at > > boot for the drivers registered using legacy platform registrati

[PATCH v3 0/3] ARM64: dts: meson-axg: add AO clock driver

2018-03-27 Thread Yixun Lan
These patches try to add AO clock driver for the Amlogic's AXG SoC, while adding this driver, we found the pclk for uart AO controller was wrong, so fix it here. Note, this patch actually depend on AO clock driver[2] Please take these patches untill AO clock driver is merged. changes since v2

[PATCH v3 3/3] ARM64: dts: meson: fix clock source of the pclk for UART_AO

2018-03-27 Thread Yixun Lan
>From the hardware perspective, the actual pclk of the AO uarts is the corresponding clkc_ao uart gate, not the main clock controller clk81. This was not problem so far, because the uart_gate had the CLK_IGNORE_UNUSED flag, which kept the gate open. We plan to remove the CLK_IGNORE_UNUSED flag in

[PATCH v3 2/3] ARM64: dts: meson-axg: add an 32K alt aoclk

2018-03-27 Thread Yixun Lan
The ao_clk81 in AO domain have two clock source, one from a 32K alt crystal we name it as ao_alt_clk, another is the clk81 signal from EE domain. Acked-by: Jerome Brunet Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --

[PATCH v3 1/3] arm64: dts: meson-axg: add AO clock driver DT info

2018-03-27 Thread Yixun Lan
From: Qiufang Dai This add the AO (Always-On part) clock DT info for Meson-AXG SoC Signed-off-by: Qiufang Dai Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b

[PATCH v3 5/6] clk: meson: drop CLK_SET_RATE_PARENT flag

2018-03-27 Thread Yixun Lan
The clk81 is not expected to be changed, so drop this flag. Signed-off-by: Yixun Lan --- drivers/clk/meson/gxbb-aoclk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/gxbb-aoclk.c b/drivers/clk/meson/gxbb-aoclk.c index 5a922639a264..89b048aad239 100644 ---

[PATCH v3 6/6] clk: meson: drop CLK_IGNORE_UNUSED flag

2018-03-27 Thread Yixun Lan
Rely on drivers to request the clock explicitly. Previous the kernel will leave the clock on while bootloader adready initilized the clock, this wasn't optimal way, so fix it here. Signed-off-by: Yixun Lan --- drivers/clk/meson/axg-aoclk.c | 1 - drivers/clk/meson/gxbb-aoclk.c | 1 - 2 files c

[PATCH v3 3/6] dt-bindings: clock: reset: Add AXG AO Clock and Reset Bindings

2018-03-27 Thread Yixun Lan
Add dt-bindings headers for the Meson-AXG's AO clock and reset controller. Reviewed-by: Rob Herring Signed-off-by: Yixun Lan --- include/dt-bindings/clock/axg-aoclkc.h | 26 ++ include/dt-bindings/reset/axg-aoclkc.h | 20 2 files changed, 46 insertio

[PATCH v3 2/6] dt-bindings: clock: axg-aoclkc: New binding for Meson-AXG SoC

2018-03-27 Thread Yixun Lan
Update the dt-binding documentation to support new compatible string for the Amlogic's Meson-AXG SoC. Reviewed-by: Rob Herring Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetre

[PATCH v3 0/6] clk: meson-axg: Add AO Cloclk and Reset driver

2018-03-27 Thread Yixun Lan
This patch try to add AO clock and Reset driver for Amlogic's Meson-AXG SoC. Please note that patch 6 need to wait for the DTS changes[3] merged into mainline first, otherwise it will break the serial console. patch 1: factor the common code into a dedicated file patch 2-4: add the aoclk dri

[PATCH v3 4/6] clk: meson-axg: Add AO Clock and Reset controller driver

2018-03-27 Thread Yixun Lan
From: Qiufang Dai Adds a Clock and Reset controller driver for the Always-On part of the Amlogic Meson-AXG SoC. Signed-off-by: Qiufang Dai Signed-off-by: Yixun Lan --- drivers/clk/meson/Makefile| 2 +- drivers/clk/meson/axg-aoclk.c | 164 ++ drive

[PATCH v3 1/6] clk: meson: aoclk: refactor common code into dedicated file

2018-03-27 Thread Yixun Lan
We try to refactor the common code into one dedicated file, while preparing to add new Meson-AXG aoclk driver, this would help us to better share the code by all aoclk drivers. Suggested-by: Jerome Brunet Signed-off-by: Yixun Lan --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/gx

​​Hi

2018-03-27 Thread Mrs Alaniz Maria
Hi, How are you doing? I am Mrs Alaniz Maria.Please I have urgent issue to discus with you.

Re: [alsa-devel][PATCH 3/3 v3] ASoC: TSCS42xx: Add CCF support to get sysclk

2018-03-27 Thread Mark Brown
On Tue, Mar 27, 2018 at 12:50:49PM -0500, Steven Eckhoff wrote: > The TSCS42xx relies on set_sysclk to get a unique clock id and rate, > which > prevents it from being used with the simple-card. I'm missing patches 1 and 2 of this resend. signature.asc Description: PGP signature

Re: 答复: Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-27 Thread Sergey Senozhatsky
On (03/28/18 10:29), wen.yan...@zte.com.cn wrote: >Hello Bart, > >We have a detailed discussion of the problem. >Sergey Senozhatsky, Petr and many people have made a lot of efforts about >it. >Please see this link: >https://bugzilla.kernel.org/show_bug.cgi?id=199003 > >1

[PATCH] ANDROID: binder: change down_write to down_read

2018-03-27 Thread Minchan Kim
binder_update_page_range needs down_write of mmap_sem because vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless it is set. However, when I profile binder working, it seems every binder buffers should be mapped in advance by binder_mmap. It means we could set VM_MIXEDMAP in bider_mma

[PATCH] kbuild: move out of

2018-03-27 Thread Masahiro Yamada
Since commit 28128c61e08e ("kconfig.h: Include compiler types to avoid missed struct attributes"), pulls in kernel-space headers to unrelated file. Commit 0f9da844d877 ("MIPS: boot: Define __ASSEMBLY__ for its.S build") suppressed the build error by defining __ASSEMBLY__, but ITS (i.e. DTS) is no

Applied "regulator: ab8500: Drop AB8540/9540 support" to the regulator tree

2018-03-27 Thread Mark Brown
The patch regulator: ab8500: Drop AB8540/9540 support has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: trace: remove snd_soc_codec" to the asoc tree

2018-03-27 Thread Mark Brown
The patch ASoC: trace: remove snd_soc_codec 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 hours) and sent to Linus durin

Re: [PATCH v3 0/5] optimize memblock_next_valid_pfn and early_pfn_valid

2018-03-27 Thread Wei Yang
On Wed, Mar 28, 2018 at 09:45:33AM +0800, Jia He wrote: > > >On 3/28/2018 8:30 AM, Wei Yang Wrote: >> On Tue, Mar 27, 2018 at 03:15:08PM +0800, Jia He wrote: >> > >> > On 3/27/2018 9:02 AM, Wei Yang Wrote: >> > > On Sun, Mar 25, 2018 at 08:02:14PM -0700, Jia He wrote: >> > > > Commit b92df1de5d28

Re: [PATCH 2/3] dt-bindings: iio: wrapper: add io-channel-unit-converter

2018-03-27 Thread Phil Reid
On 27/03/2018 16:01, Peter Rosin wrote: On 2018-03-27 00:23, Rob Herring wrote: On Mon, Mar 19, 2018 at 06:02:45PM +0100, Peter Rosin wrote: Allow linear scaling and modification of the type of an io-channel. When an ADC channel measures the midpoint of a voltage divider, the interesting volta

Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-27 Thread Mark Brown
On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > > No, this is exactly the sort of use case with multiple DAIs that the > > graph card is intended to enable over the old simple-card. > +--+ +

Re: [PATCH 1/2] regulator: add QCOM RPMh regulator driver

2018-03-27 Thread Mark Brown
On Tue, Mar 27, 2018 at 01:51:56PM -0700, Doug Anderson wrote: > Assuming I didn't mess up my analysis, the entire job of of_map_mode() > is to convert from one integer to another. It should take the number > that was specified in the device tree and convert it to a > REGULATOR_MODE_XXX. That me

RE: [PATCH 2/2] clocksource/drivers/imx-tpm: add different counter width support

2018-03-27 Thread Anson Huang
Anson Huang Best Regards! > -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Monday, March 26, 2018 10:11 PM > To: Anson Huang ; t...@linutronix.de; > robh...@kernel.org; mark.rutl...@arm.com; A.s. Dong > > Cc: dl-linux-imx ; linux-kernel@vger.kernel

Applied "regulator: qcom: smd: Add pm8998 and pmi8998 regulators" to the regulator tree

2018-03-27 Thread Mark Brown
The patch regulator: qcom: smd: Add pm8998 and pmi8998 regulators has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: mediatek: remove "simple-mfd" in the example" to the asoc tree

2018-03-27 Thread Mark Brown
The patch ASoC: mediatek: remove "simple-mfd" in the example 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 hours) and se

[PATCH] ASoC: trace: remove snd_soc_codec

2018-03-27 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_codec is replaced to snd_soc_component, and it is not used in this file. Let's remove it Signed-off-by: Kuninori Morimoto --- include/trace/events/asoc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.

Re: [PATCH] spi: mediatek: remove redundant MODULE_ALIAS entries

2018-03-27 Thread Mark Brown
On Mon, Mar 26, 2018 at 06:04:18PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > MODULE_ALIAS exports information to allow the module to be auto-loaded at > boot for the drivers registered using legacy platform registration. > > However, currently the driver is always used by DT-onl

Re: [PATCH v3 5/5] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid()

2018-03-27 Thread Jia He
On 3/28/2018 1:51 AM, Daniel Vacek Wrote: On Mon, Mar 26, 2018 at 5:02 AM, Jia He wrote: Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(),

Re: [PATCH v3 2/5] mm: page_alloc: reduce unnecessary binary search in memblock_next_valid_pfn()

2018-03-27 Thread Jia He
On 3/28/2018 1:17 AM, Daniel Vacek Wrote: On Mon, Mar 26, 2018 at 5:02 AM, Jia He wrote: Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. if pfn and pfn+1 are i

Re: [PATCH 1/2] regulator: add QCOM RPMh regulator driver

2018-03-27 Thread Mark Brown
On Tue, Mar 27, 2018 at 04:38:07PM -0700, David Collins wrote: > On 03/27/2018 04:56 AM, Mark Brown wrote: > > I didn't spot this in the code but something called "device tree mode" > > sounds like it's going to be awfully confusing... > As I explained in the earlier email, it makes the device tr

[PATCH v2 3/3] microblaze: dts: replace 'linux,stdout-path' with 'stdout-path'

2018-03-27 Thread Rob Herring
'linux,stdout-path' has been deprecated for some time in favor of 'stdout-path'. Now dtc will warn on occurrences of 'linux,stdout-path'. Search and replace the one occurrence with 'stdout-path'. Signed-off-by: Rob Herring Cc: Mark Rutland Cc: Michal Simek Cc: devicet...@vger.kernel.org --- ar

  1   2   3   4   5   6   7   8   9   10   >