Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-09 Thread Ingo Molnar
* Willy Tarreau wrote: > On Wed, Jan 10, 2018 at 08:31:28AM +0100, Ingo Molnar wrote: > > > > * Borislav Petkov wrote: > > > > > Oh, and you've built the kernel with the option to be able to disable > > > PTI so it's not like you haven't seen it already. > > > > In general in many corporate

Re: [patches] [PATCH 1/6] riscv/ftrace: Add RECORD_MCOUNT support

2018-01-09 Thread Alan Kao
On Wed, Jan 10, 2018 at 08:43:54AM +0100, Christoph Hellwig wrote: > On Wed, Jan 10, 2018 at 03:38:09PM +0800, Alan Kao wrote: > > -LDFLAGS_vmlinux := > > +ifeq ($(CONFIG_DYNAMIC_FTRACE),y) > > + LDFLAGS_vmlinux := --no-relax > > +else > > + LDFLAGS_vmlinux := > > +endif > > Why not: > > LDFL

Re: [PATCH v2 3/4] clk: Show symbolic clock flags in debugfs

2018-01-09 Thread Geert Uytterhoeven
Hi Stephen, On Wed, Jan 10, 2018 at 3:02 AM, Stephen Boyd wrote: > On 01/03, Geert Uytterhoeven wrote: >> Currently the virtual "clk_flags" file in debugfs shows the numeric >> value of the top-level framework flags for the specified clock. >> Hence the user must manually interpret these values.

[PATCH v2] f2fs: handle newly created page when revoking inmem pages

2018-01-09 Thread Daeho Jeong
When committing inmem pages is successful, we revoke already committed blocks in __revoke_inmem_pages() and finally replace the committed ones with the old blocks using f2fs_replace_block(). However, if the committed block was newly created one, the address of the old block is NEW_ADDR and __f2fs_r

Re: [RFC git branches] rseq and membarrier against v4.15-rc7

2018-01-09 Thread Ingo Molnar
their hands and interested to test those branches can fetch > them at: > > https://git.kernel.org/pub/scm/linux/kernel/git/rseq/linux-rseq.git/ > > tags: > v4.15-rc7-rseq-20180109 > v4.15-rc7-membarrier-20180109 > > Feedback is welcome, although I really hope those invo

Re: BUG: soft lockup (2)

2018-01-09 Thread Eric Biggers
On Fri, Jan 05, 2018 at 09:47:01AM -0800, syzbot wrote: > syzkaller has found reproducer for the following crash on > e1915c8195b38393005be9b74bfa6a3a367c83b3 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw c

Re: [patches] [PATCH 1/6] riscv/ftrace: Add RECORD_MCOUNT support

2018-01-09 Thread Christoph Hellwig
On Wed, Jan 10, 2018 at 03:38:09PM +0800, Alan Kao wrote: > -LDFLAGS_vmlinux := > +ifeq ($(CONFIG_DYNAMIC_FTRACE),y) > + LDFLAGS_vmlinux := --no-relax > +else > + LDFLAGS_vmlinux := > +endif Why not: LDFLAGS_vmlinux := ifeq ($(CONFIG_DYNAMIC_FTRACE),y) LDFLAGS_vmlinux += --no-relax endif

Re: [PATCH] Fix: membarrier: add missing preempt off around smp_call_function_many

2018-01-09 Thread Ingo Molnar
* Mathieu Desnoyers wrote: > Hi Linus, > > Can you pick up this straightforward fix please ? Let me know whether > I need to re-send the patch if for some reason the original post is > too far back in your inbox. The fix looks much more reasonable than previous attempts: I'll pick it up into

[PATCH v2 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-09 Thread Caesar Wang
From: Shawn Lin Just use the API instead of open-coding it, no functional change intended. Signed-off-by: Shawn Lin Reviewed-by: Brian Norris Signed-off-by: Caesar Wang --- Changes in v2: - As Brian commented on https://patchwork.kernel.org/patch/10139891/, changed the note and added to p

Re: [PATCH][next] IB/mlx5: remove redundant assignment of mdev

2018-01-09 Thread Leon Romanovsky
On Tue, Jan 09, 2018 at 03:55:43PM +, Colin King wrote: > From: Colin Ian King > > The initial assignment to mdev is redundant as mdev is re-assigned > later and the first assigned value is never read. Remove this > redundant assignment. > > Cleans up clang warning: > drivers/infiniband/hw/mlx

Re: [PATCH 04/18] arm: implement nospec_ptr()

2018-01-09 Thread Hanjun Guo
On 2018/1/10 10:04, Laura Abbott wrote: > On 01/05/2018 05:10 PM, Dan Williams wrote: >> From: Mark Rutland >> >> This patch implements nospec_ptr() for arm, following the recommended >> architectural sequences for the arm and thumb instruction sets. >> > Fedora picked up the series and it fails o

[PATCH 3/6] riscv/ftrace: Add dynamic function graph tracer support

2018-01-09 Thread Alan Kao
Once the function_graph tracer is enabled, a filtered function has the following call sequence: * ftracer_caller ==> on/off by ftrace_make_call/ftrace_make_nop * ftrace_graph_caller * ftrace_graph_call ==> on/off by ftrace_en/disable_ftrace_graph_caller * prepare_ftrace_return Consid

[PATCH 1/6] riscv/ftrace: Add RECORD_MCOUNT support

2018-01-09 Thread Alan Kao
Now recordmcount.pl recognizes RISC-V object files. For the mechanism to work, we have to disable the linker relaxation. This is because relaxation happens after the script records offsets of _mcount call sites, resulting in a unreliable record. Cc: Greentime Hu Signed-off-by: Alan Kao --- arc

[PATCH 6/6] riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support

2018-01-09 Thread Alan Kao
When doing unwinding in the function walk_stackframe, the pc now receives the address from calling ftrace_graph_ret_addr instead of manual calculation. Note that the original expression, pc = frame->ra - 4 is buggy if the instruction at the return address happened to be a compressed inst.

[PATCH 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-09 Thread Alan Kao
We now have dynamic ftrace with the following added items: * ftrace_make_call, ftrace_make_nop (in kernel/ftrace.c) The two functions turns any recorded call site of filtered functions into a call to ftrace_caller or nops * ftracce_update_ftrace_func (in kernel/ftrace.c) turns the nops at f

[PATCH 4/6] riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support

2018-01-09 Thread Alan Kao
Cc: Greentime Hu Signed-off-by: Alan Kao --- arch/riscv/include/asm/ftrace.h | 1 + arch/riscv/kernel/mcount-dyn.S | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h index acf0c7d001f3..429a6a156645 100644 --- a/arch/riscv/i

[PATCH 5/6] riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support

2018-01-09 Thread Alan Kao
Cc: Greentime Hu Signed-off-by: Alan Kao --- arch/riscv/Kconfig | 1 + arch/riscv/kernel/ftrace.c | 17 ++ arch/riscv/kernel/mcount-dyn.S | 124 + 3 files changed, 142 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconf

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-09 Thread Willy Tarreau
On Wed, Jan 10, 2018 at 08:31:28AM +0100, Ingo Molnar wrote: > > * Borislav Petkov wrote: > > > Oh, and you've built the kernel with the option to be able to disable > > PTI so it's not like you haven't seen it already. > > In general in many corporate environments requiring kernel reboots or k

[PATCH 0/6] Add dynamic ftrace support for RISC-V platforms

2018-01-09 Thread Alan Kao
This patch set includes the building blocks of dynamic ftraces features for RISC-V machines. Alan Kao (6): riscv/ftrace: Add RECORD_MCOUNT support riscv/ftrace: Add dynamic function tracer support riscv/ftrace: Add dynamic function graph tracer support riscv/ftrace: Add ARCH_SUPPORTS_FTRAC

[PATCH v2 0/2] phy: rockchip-emmc: fixes emmc-phy power on failed with rk3399 SoCs

2018-01-09 Thread Caesar Wang
Hi Kishon, Since the Shawn isn't available, I take over this series patches for now. As the original bug had tracked on https://issuetracker.google.com/71561742. In some cases, the mmc phy power on failed during booting up. The log as below: ... [ 2.375333] rockchip_emmc_phy_power: caldone time

[PATCH v2 1/2] phy: rockchip-emmc: retry calpad busy trimming

2018-01-09 Thread Caesar Wang
From: Shawn Lin It turns out that 5us isn't enough for all cases, so let's retry some more times to wait for caldone. Signed-off-by: Shawn Lin Tested-by: Ziyuan Xu Signed-off-by: Caesar Wang --- Changes in v2: - print the return valut with regmap_read_poll_timeout failing. drivers/phy/rock

Re: [PATCH 3/3] mmc: sdhci: fix o2 eMMC init bug and add support for hardware tuning

2018-01-09 Thread Adrian Hunter
On 28/12/17 12:00, ernest.zhang wrote: > In some case of eMMC used as boot device, the eMMC signaling voltage is > fixed to 1.8v, bios can set o2 sd host controller register 0x308 bit4 to > let host controller skip try 3.3.v signaling voltage in eMMC initialize > process. > O2 sd host controller ha

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-09 Thread Ingo Molnar
* Borislav Petkov wrote: > Oh, and you've built the kernel with the option to be able to disable > PTI so it's not like you haven't seen it already. In general in many corporate environments requiring kernel reboots or kernel rebuilds limits the real-world usability of any kernel feature we of

[GIT PULL] sound fixes for 4.15-rc8

2018-01-09 Thread Takashi Iwai
Linus, please pull sound fixes for v4.15-rc8 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.15-rc8 The topmost commit is 900498a34a3ac9c611e9b425094c8106bdd7dc1c sound fixes for 4.15-rc8 A co

Re: [RFC PATCH v2 3/6] x86/pti: add a per-cpu variable pti_disable

2018-01-09 Thread Willy Tarreau
On Wed, Jan 10, 2018 at 08:19:51AM +0100, Ingo Molnar wrote: > > * Willy Tarreau wrote: > > > +#ifdef CONFIG_PAGE_TABLE_ISOLATION > > + this_cpu_write(pti_disable, > > + next_p->mm && next_p->mm->context.pti_disable); > > +#endif > > Another pet peeve, please write: > > > +

Re: [PATCH 0/2] pinctrl: meson: use one uniform 'function' name

2018-01-09 Thread Jerome Brunet
On Wed, 2018-01-10 at 10:12 +0800, Yixun Lan wrote: > > On 01/08/18 16:52, Jerome Brunet wrote: > > On Mon, 2018-01-08 at 15:33 +0800, Yixun Lan wrote: > > > These two patches are general improvement for meson pinctrl driver. > > > It make the two pinctrl trees (ee/ao) to share one uniform 'functi

Re: [PATCH] f2fs: handle newly created page when revoking inmem pages

2018-01-09 Thread Daeho Jeong
Hi Chao, > Original intention here is to recover status to the timing before > committing atomic write. As at that timing blkaddr in dnode should be > cur->old_addr(NEW_ADDR), so we need to change to call:   > f2fs_update_data_blkaddr(&dn, NEW_ADDR); Ok, I'll change NULL_ADDR to NEW_ADDR. Thanks

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-09 Thread Ingo Molnar
* Borislav Petkov wrote: > On Tue, Jan 09, 2018 at 01:26:57PM -0800, Andy Lutomirski wrote: > > 2.Turning off PTI is, in general, a terrible idea. It totally breaks > > any semblance of a security model on a Meltdown-affected CPU. So I > > think we should require CAP_SYS_RAWIO *and* that the s

Re: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set

2018-01-09 Thread Willy Tarreau
On Wed, Jan 10, 2018 at 08:15:10AM +0100, Ingo Molnar wrote: > > + /* The "pti_disable" mm attribute is mirrored into this per-cpu var */ > > + cmpb$0, PER_CPU_VAR(pti_disable) > > + jne .Lend_\@ > > Could you please do this small change for future iterations: > > s/per-cpu > /per-

Re: [PATCH v8 00/37] tracing: Inter-event (e.g. latency) support

2018-01-09 Thread Steven Rostedt
On Wed, 10 Jan 2018 14:45:07 +0900 Namhyung Kim wrote: > On Thu, Dec 21, 2017 at 10:02:22AM -0600, Tom Zanussi wrote: > > Hi, > > > > This is V8 of the inter-event tracing patchset, addressing input from > > V7. > > > > These changes address Namhyung's most recent comments (thanks, > > Namhyung

Re: [RFC PATCH v2 3/6] x86/pti: add a per-cpu variable pti_disable

2018-01-09 Thread Ingo Molnar
* Willy Tarreau wrote: > +#ifdef CONFIG_PAGE_TABLE_ISOLATION > + this_cpu_write(pti_disable, > +next_p->mm && next_p->mm->context.pti_disable); > +#endif Another pet peeve, please write: > + this_cpu_write(pti_disable, next_p->mm && > next_p->mm->context.pti_disabl

Re: [RFC PATCH v2 5/6] x86/entry/pti: avoid setting CR3 when it's already correct

2018-01-09 Thread Willy Tarreau
On Wed, Jan 10, 2018 at 08:16:24AM +0100, Ingo Molnar wrote: > > * Willy Tarreau wrote: > > > + /* if we're already on the kernel PGD, we don't switch */ > > +* If we're already on the kernel PGD, we don't switch, > > +* If we saved a kernel context on entry, we didn't switch the CR3,

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2018-01-09 Thread Steven Rostedt
On Tue, 9 Jan 2018 14:53:56 -0800 Tejun Heo wrote: > Hello, Steven. > > On Tue, Jan 09, 2018 at 05:47:50PM -0500, Steven Rostedt wrote: > > > Maybe it can break out eventually but that can take a really long > > > time. It's OOM. Most of userland is waiting for reclaim. There > > > isn't all

Re: [PATCH] Remove silentoldconfig from "make help"; fix kconfig/conf's help

2018-01-09 Thread Masahiro Yamada
2018-01-06 7:21 GMT+09:00 Marc Herbert : > On 04/01/2018 09:21, Masahiro Yamada wrote: >> (+CC Michal's new address) >> >> 2017-12-19 10:26 GMT+09:00 Marc Herbert : >>> As explained by Michal Marek at https://lkml.org/lkml/2011/8/31/189 >>> silentoldconfig has become a misnomer. It has become an in

Re: [RFC PATCH v2 5/6] x86/entry/pti: avoid setting CR3 when it's already correct

2018-01-09 Thread Ingo Molnar
* Willy Tarreau wrote: > + /* if we're already on the kernel PGD, we don't switch */ > + * If we're already on the kernel PGD, we don't switch, > + * If we saved a kernel context on entry, we didn't switch the CR3, It's hard enough to read assembly code, please use consistent capi

Re: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set

2018-01-09 Thread Ingo Molnar
* Willy Tarreau wrote: > When a syscall returns to userspace with pti_disable set, it means the > current mm is configured to disable page table isolation (PTI). In this > case, returns from kernel to user will not switch the CR3, leaving it > to the kernel one which already maps both user and k

Re: [PATCH] x86/retpoline: Fix NOSPEC_JMP for tip

2018-01-09 Thread David Woodhouse
On Tue, 2018-01-09 at 16:39 -0800, Linus Torvalds wrote: > On Tue, Jan 9, 2018 at 4:31 PM, Andi Kleen > wrote: > > > > > > The following patch fixes it for me. Something doesn't > > seem to work with ALTERNATIVE_2. It adds only a few bytes > > more code, so seems acceptable. > Ugh. It's kind of

Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI

2018-01-09 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Jan 9, 2018 at 6:54 AM, Willy Tarreau wrote: > > On Tue, Jan 09, 2018 at 03:51:57PM +0100, Borislav Petkov wrote: > >> On Tue, Jan 09, 2018 at 03:36:53PM +0100, Willy Tarreau wrote: > >> > I see and am not particularly against this, but what use case do you >

Re: [patch v7 3/3] platform/mellanox: mlxreg-hotplug: modify to use regmap intreface

2018-01-09 Thread kbuild test robot
Hi Vadim, I love your patch! Yet something to improve: [auto build test ERROR on platform-drivers-x86/for-next] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vad

[PATCH v1 6/8] perf util: Allocate time slices buffer according to number of comma

2018-01-09 Thread Jin Yao
Previously we use a magic number 10 to limit the number of time slices. It's not very good. This patch creates a new function perf_time__range_alloc() to allocate time slices buffer. The number of buffer entries is determined by the number of comma in string but at least it will allocate one entry

[PATCH v1 4/8] perf util: Support no index time percent slice

2018-01-09 Thread Jin Yao
Previously, the time percent slice needs an index to specify which one the user wants. While it may be easy for using if the index can be omitted. So with this patch, for example, perf report --stdio --time 10%/1 should be equivalent to perf report --stdio --time 10% Signed-off-by: Jin Yao ---

[PATCH v1 2/8] perf script: Improve error msg when no first/last sample time found

2018-01-09 Thread Jin Yao
The following message will be returned to user when executing 'perf script --time' if perf data file doesn't contain the first/last sample time. "HINT: no first/last sample time found in perf data. Please use latest perf binary to execute 'perf record' (if '--buildid-all' is enabled, needs to se

[PATCH v1 8/8] perf script: Remove the time slices number limitation

2018-01-09 Thread Jin Yao
Previously it was only allowed to use at most 10 time slices in 'perf script --time'. This patch removes this limitation. For example, following command line is OK (12 time slices) perf script --time 1%/1,1%/2,1%/3,1%/4,1%/5,1%/6,1%/7,1%/8,1%/9,1%/10,1%/11,1%/12 Signed-off-by: Jin Yao --- too

[PATCH v1 7/8] perf report: Remove the time slices number limitation

2018-01-09 Thread Jin Yao
Previously it was only allowed to use at most 10 time slices in 'perf report --time'. This patch removes this limitation. For example, following command line is OK (12 time slices) perf report --stdio --time 1%/1,1%/2,1%/3,1%/4,1%/5,1%/6,1%/7,1%/8,1%/9,1%/10,1%/11,1%/12 Signed-off-by: Jin Yao

[PATCH v1 3/8] perf util: Improve error checking for time percent input

2018-01-09 Thread Jin Yao
The command line like 'perf report --stdio --time 1abc%/1' could be accepted by perf. It looks not very good. This patch uses strtod() to replace original atof() and check the entire string. Now for the same command line, it would return error message "Invalid time string". root@skl:/tmp# perf re

[PATCH v1 5/8] perf report: Add an indication of what time slices are used

2018-01-09 Thread Jin Yao
Add a time slices indication to the perf report header. For example, # perf report --stdio --time 10% # Total Lost Samples: 0 # # Samples: 9K of event 'cycles:ppp' (time slices: 10%) # Event count (approx.): 8951288803 Signed-off-by: Jin Yao --- tools/perf/builtin-report.c | 3 +++

[PATCH v1 1/8] perf report: Improve error msg when no first/last sample time found

2018-01-09 Thread Jin Yao
The following message will be returned to user when executing 'perf report --time' if perf data file doesn't contain the first/last sample time. "HINT: no first/last sample time found in perf data. Please use latest perf binary to execute 'perf record' (if '--buildid-all' is enabled, needs to se

[PATCH v1 0/8] perf: Follow-up patches to improve time slice

2018-01-09 Thread Jin Yao
It's follow-up patches to improve the perf time slice feature (perf report/script --time xxx) 1. Improve the error message perf report: Improve error msg when no first/last sample time found perf script: Improve error msg when no first/last sample time found 2. Fix an issue that illegal per

Re: RFC(V3): Audit Kernel Container IDs

2018-01-09 Thread Richard Guy Briggs
On 2018-01-09 11:18, Simo Sorce wrote: > On Tue, 2018-01-09 at 07:16 -0500, Richard Guy Briggs wrote: > > Containers are a userspace concept. The kernel knows nothing of them. > > > > The Linux audit system needs a way to be able to track the container > > provenance of events and actions. Audit

[PATCH 5/6] kconfig: remove redundant input_mode test for check_conf() loop

2018-01-09 Thread Masahiro Yamada
check_conf() never increments conf_cnt for listnewconfig, so conf_cnt is always zero. In other words, conf_cnt is not zero, "input_mode != listnewconfig" is met. Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script

RE: [PATCH] powercap: add suspend and resume mechanism for SOC power limit

2018-01-09 Thread Sun, XinX
Thanks for your suggestion. I will pay attention about this. BR, Sun Xin -Original Message- From: Srinivas Pandruvada [mailto:srinivas.pandruv...@linux.intel.com] Sent: Wednesday, January 10, 2018 2:21 PM To: Sun, XinX ; r...@rjwysocki.net; jacob.jun@linux.intel.com Cc: Han, Zhen ;

[PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-09 Thread ShuFanLee
From: ShuFanLee Richtek RT1711H Type-C chip driver that works with Type-C Port Controller Manager to provide USB PD and USB Type-C functionalities. Signed-off-by: ShuFanLee --- .../devicetree/bindings/usb/richtek,rt1711h.txt| 38 + arch/arm64/boot/dts/hisilicon/rt1711h.dtsi | 1

[PATCH 6/6] kconfig: hide irrelevant menu for oldconfig

2018-01-09 Thread Masahiro Yamada
Historically, "make oldconfig" has changed its behavior several times, quieter or louder. (I attached the history below.) Currently, it is not as quiet as it should be. This commit addresses it. Test Case - ---(Kconfig) menu "menu

[PATCH 3/6] kconfig: do not call conf_set_all_new_symbols() for (all)defconfig

2018-01-09 Thread Masahiro Yamada
(all)defconfig does not need to call conf_set_all_new_symbols() because conf_write() calculates all symbols based on their default unless they have been user-defined. conf_set_all_new_symbols(def_default) is no-op except for "choice". It calls sym_cal_value() for "choice", but the SYMBOL_VALID is

[PATCH 1/6] kconfig: do not call check_conf() for olddefconfig

2018-01-09 Thread Masahiro Yamada
check_conf() traverses the menu tree, but it is completely no-op for olddefconfig because the following if-else block does nothing. if (input_mode == listnewconfig) { ... } else if (input_mode != olddefconfig) { ... } As the help message says, olddefconfig auto

[PATCH 2/6] kconfig: call sym_calc_value() for all symbols before writing to .config

2018-01-09 Thread Masahiro Yamada
conf_write() skips sym_calc_value() for "choice", but we do not need to do so. conf_set_all_new_symbols() may have already called sym_calc_value() for "choice", but set_all_choice_value() has cleared SYMBOL_VALID away. So, conf_write() re-calculates "choice" here when calculating the visibility of

[PATCH 4/6] kconfig: remove unneeded input_mode test in conf()

2018-01-09 Thread Masahiro Yamada
conf() is never called for listnewconfig / olddefconfig. Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 8364811..693cd5f 100644 --- a/scripts/kconfig/conf.c ++

Re: RFC(V3): Audit Kernel Container IDs

2018-01-09 Thread Richard Guy Briggs
On 2018-01-09 19:05, Eric W. Biederman wrote: > Please let's have a description of the problem you are trying to solve. I thought the first sentence of the second paragraph summed it up rather well. Here are the elaborated motivations: - Filter unwanted, irrelevant or unimportant messages before

Re: [Ocfs2-devel] [PATCH v2 1/2] ocfs2: add trimfs dlm lock resource

2018-01-09 Thread Changwei Ge
Hi Gang, On 2017/12/14 13:16, Gang He wrote: > Introduce a new dlm lock resource, which will be used to > communicate during fstrim a ocfs2 device from cluster nodes. > > Signed-off-by: Gang He > --- > fs/ocfs2/dlmglue.c | 86 > + > fs/ocf

Re: [PATCH] f2fs: handle newly created page when revoking inmem pages

2018-01-09 Thread Chao Yu
On 2018/1/10 10:43, Daeho Jeong wrote: > When committing inmem pages is successful, we revoke already committed > blocks in __revoke_inmem_pages() and finally replace the committed > ones with the old blocks using f2fs_replace_block(). However, if > the committed block was newly created one, the ad

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-09 Thread Changwei Ge
Hi Gang, On 2017/12/14 13:16, Gang He wrote: > As you know, ocfs2 has support trim the underlying disk via > fstrim command. But there is a problem, ocfs2 is a shared disk > cluster file system, if the user configures a scheduled fstrim > job on each file system node, this will trigger multiple no

Re: [patch RFC 4/5] x86/cpufeatures: Detect Speculation control feature

2018-01-09 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Tim Chen > > CPUs can expose a MSR to control speculation. The initial function of this > MSR is to control Indirect Branch Speculation, which is required to > mitigate the Spectre_V2 attack on certain CPU generations. s/a MSR /an MSR > If CPUID(7).RDX[26] i

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Guoqing Jiang
On 01/10/2018 02:13 PM, Paolo Valente wrote: Il giorno 10 gen 2018, alle ore 02:41, Guoqing Jiang ha scritto: On 01/09/2018 05:27 PM, Paolo Valente wrote: For each pair [device for which bfq is selected as I/O scheduler, group in blkio/io], bfq maintains a corresponding bfq group. Each

Re: [PATCH v2] jbd2: fix sphinx kerel-doc build warnings

2018-01-09 Thread Tobin C. Harding
On Wed, Jan 10, 2018 at 12:26:19AM -0500, Theodore Ts'o wrote: > On Wed, Jan 10, 2018 at 12:42:29PM +1100, Tobin C. Harding wrote: > > Sphinx emits various (26) warnings when building make target 'htmldocs'. > > Currently struct definitions contain duplicate documentation, some as > > kernel-docs a

[PATCH v2 1/4] f2fs: support F2FS_IOC_PRECACHE_EXTENTS

2018-01-09 Thread Chao Yu
This patch introduces a new ioctl F2FS_IOC_PRECACHE_EXTENTS to precache extent info like ext4, in order to gain better performance during triggering AIO by eliminating synchronous waiting of mapping info. Referred commit: 7869a4a6c5ca ("ext4: add support for extent pre-caching") In addition, with

Re: [PATCH 1/4] f2fs: support F2FS_IOC_PRECACHE_EXTENTS

2018-01-09 Thread Chao Yu
On 2018/1/10 4:43, Jaegeuk Kim wrote: > On 01/09, Jaegeuk Kim wrote: >> On 01/08, Chao Yu wrote: >>> This patch introduces a new ioctl F2FS_IOC_PRECACHE_EXTENTS to precache >>> extent info, in order to gain better performance during data/meta >>> accessing. >>> >>> Signed-off-by: Chao Yu >>> --- >

Re: [patch RFC 2/5] x86/spectre: Simplify spectre code a bit

2018-01-09 Thread Ingo Molnar
* Thomas Gleixner wrote: > Make the sysfs print use a string array, use __defined(RETPOLINE) instead > of the ugly ifdefs. Capitalization fix for the title: s/spectre /Spectre Reviewed-by: Ingo Molnar Thanks, Ingo

Re: [PATCH] powercap: add suspend and resume mechanism for SOC power limit

2018-01-09 Thread Srinivas Pandruvada
On Wed, 2018-01-10 at 01:53 +, Sun, XinX wrote: > According to Rafael's comment. > > > > There is a formal issue here. > > We need a Signed-off-by: tag from Zhen Han too. > I changed Signed-off in commit message. > This is not the correct procedure to do such things after sending the patch. B

[PATCH v3] f2fs: support FIEMAP_FLAG_XATTR

2018-01-09 Thread Chao Yu
This patch enables ->fiemap to handle FIEMAP_FLAG_XATTR flag for xattr mapping info lookup purpose. It makes f2fs passing generic/425 test in fstest. Signed-off-by: Chao Yu --- v3: - relocate inode_lock in separated patch. - add missing FIEMAP_EXTENT_NOT_ALIGNED to flag in inline xattr case. fs

Re: [patch RFC 1/5] x86/CPU: Sync CPU feature flags late

2018-01-09 Thread Ingo Molnar
* Dave Hansen wrote: > On 01/09/2018 05:06 PM, Thomas Gleixner wrote: > > This is for the case where we need to set feature flags late, like, for > > example, after late microcode patch has been loaded which has enabled > > new CPUID bits. > > > > This has no effect on alternatives patching. >

Re: [PATCH v2] f2fs: support FIEMAP_FLAG_XATTR

2018-01-09 Thread Chao Yu
On 2018/1/10 2:11, Jaegeuk Kim wrote: > On 01/08, Chao Yu wrote: >> This patch enables ->fiemap to handle FIEMAP_FLAG_XATTR flag for xattr >> mapping info lookup purpose. >> >> It makes f2fs passing generic/425 test in fstest. >> >> Signed-off-by: Chao Yu >> --- >> v2: adjust f2fs_xattr_fiemap flo

[PATCH] f2fs: fix to cover f2fs_fiemap with inode_lock

2018-01-09 Thread Chao Yu
This patch fix to cover f2fs_fiemap with inode_lock in order to make the whole interface avoiding race with mapping change. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index d6302051a65d..33

Re: [PATCH 1/3] gpiolib: Export gpiochip_irqchip_irq_valid() to drivers

2018-01-09 Thread Bjorn Andersson
On Tue 09 Jan 17:58 PST 2018, Stephen Boyd wrote: > Some pinctrl drivers can use the gpiochip irq valid information > to figure out if certain gpios are exposed to the kernel for > usage or not. Expose this API so we can use it in the > pinmux_ops::request ops. > > Signed-off-by: Stephen Boyd A

Re: [PATCH BUGFIX V2 1/2] block, bfq: put async queues for root bfq groups too

2018-01-09 Thread Paolo Valente
> Il giorno 10 gen 2018, alle ore 02:41, Guoqing Jiang ha > scritto: > > > > On 01/09/2018 05:27 PM, Paolo Valente wrote: >> For each pair [device for which bfq is selected as I/O scheduler, >> group in blkio/io], bfq maintains a corresponding bfq group. Each such >> bfq group contains a set

Re: [PATCH 3/3] pinctrl: qcom: Don't allow protected pins to be requested

2018-01-09 Thread Bjorn Andersson
On Tue 09 Jan 17:58 PST 2018, Stephen Boyd wrote: I like it, a few comment below though. > +static int msm_gpio_init_irq_valid_mask(struct gpio_chip *chip, > + struct msm_pinctrl *pctrl) > +{ > + int ret; > + unsigned int len, i; > + unsigned int ma

[PATCH] KVM: PPC: Book3S HV: Always flush TLB in kvmppc_alloc_reset_hpt()

2018-01-09 Thread David Gibson
The KVM_PPC_ALLOCATE_HTAB ioctl(), implemented by kvmppc_alloc_reset_hpt() is supposed to completely clear and reset a guest's Hashed Page Table (HPT) allocating or re-allocating it if necessary. In the case where an HPT of the right size already exists and it just zeroes it, it forces a TLB flush

Re: [PATCH 05/10] perf tools: Add support for decoding CoreSight trace data

2018-01-09 Thread Leo Yan
Hi Mike, On Tue, Jan 09, 2018 at 12:09:58PM +, Mike Leach wrote: > Hi Leo, > > The OCSD_GEN_TRC_ELEM_ADDR_NACC element indicates that the decoder > does not have an code image mapping for the address contained in the > trace, at the location described by this element. the payload for the > NA

Re: [PATCH v7 02/11] x86/retpoline: Temporarily disable objtool when CONFIG_RETPOLINE=y

2018-01-09 Thread Josh Poimboeuf
On Tue, Jan 09, 2018 at 02:43:08PM +, David Woodhouse wrote: > From: Andi Kleen > > objtool's assembler currently cannot deal with the code generated by the > retpoline compiler and throws hundreds of warnings, mostly because it sees > calls that don't have a symbolic target. > > Exclude all

Re: [PATCH] zsmalloc: use U suffix for negative literals being shifted

2018-01-09 Thread Minchan Kim
Hi Nick, On Mon, Jan 08, 2018 at 08:35:19PM -0800, Nick Desaulniers wrote: > On Sun, Jan 7, 2018 at 7:04 AM, Minchan Kim wrote: > > Sorry for the delay. I have missed this until now. ;-( > > No worries, figured patches would need a post holiday bump for review. > > > > > On Sun, Dec 24, 2017 at

Re: linux-next: build failure after merge of the net-next tree

2018-01-09 Thread Jason Wang
On 2018年01月10日 12:06, Stephen Rothwell wrote: Hi all, After merging the net-next tree, today's linux-next build (sparc64 defconfig) failed like this: net/socket.o: In function `tun_xdp_to_ptr': (.text+0x3180): multiple definition of `tun_xdp_to_ptr' fs/compat_ioctl.o:compat_ioctl.c:(.text+0x0

[PATCH] iommu/vt-d: use domain instead of cache fetching

2018-01-09 Thread Peter Xu
after commit a1ddcbe93010 ("iommu/vt-d: Pass dmar_domain directly into iommu_flush_iotlb_psi", 2015-08-12), we have domain pointer as parameter to iommu_flush_iotlb_psi(), so no need to fetch it from cache again. More importantly, a NULL reference pointer bug is reported on RHEL7 (and it can be re

Re: [PATCH v8 00/37] tracing: Inter-event (e.g. latency) support

2018-01-09 Thread Namhyung Kim
On Thu, Dec 21, 2017 at 10:02:22AM -0600, Tom Zanussi wrote: > Hi, > > This is V8 of the inter-event tracing patchset, addressing input from > V7. > > These changes address Namhyung's most recent comments (thanks, > Namhyung!) and move everything to the latest tracing/for-next: > > - moved a c

Re: [PATCH v8 24/37] tracing: Add support for 'synthetic' events

2018-01-09 Thread Namhyung Kim
Hi Tom, On Thu, Dec 21, 2017 at 10:02:46AM -0600, Tom Zanussi wrote: > Synthetic events are user-defined events generated from hist trigger > variables saved from one or more other events. > > To define a synthetic event, the user writes a simple specification > consisting of the name of the new

Re: [PATCH V2 5/5] usb: serial: f81534: fix tx error on some baud rate

2018-01-09 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, Johan Hovold 於 2018/1/9 下午 07:32 寫道: On Thu, Jan 04, 2018 at 10:29:21AM +0800, Ji-Ze Hong (Peter Hong) wrote: + /* +* We'll make tx frame error when baud rate from 384~500kps. So we'll +* delay all tx data frame with 1bit. +*/ + port_priv->shadow_cl

Re: [PATCH V8 3/3] OPP: Allow "opp-hz" and "opp-microvolt" to contain magic values

2018-01-09 Thread Viresh Kumar
On 09-01-18, 18:54, Stephen Boyd wrote: > My read of Kevin's comments lead me to think he's saying that a > generic 'domain-performance-state' property is worse than putting > the numbers directly inside of the opp table with a comment above > it. Now that's all fine, but now that we have required-

RE: [PATCH v2 5/5] pinctrl: imx6ul: add IOMUXC SNVS pinctrl driver for i.MX 6ULL

2018-01-09 Thread A.s. Dong
Hi Linus, > -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: Tuesday, January 09, 2018 10:08 PM > > Stefan, would you consider making a patch adding you, Dong Aisheng and > Shawn Guo as maintainers in MAINTAINERS for > drivers/pinctrl/freescale/* > D

Re: RCU: Call touch_nmi_watchdog() while printing stall warnings

2018-01-09 Thread Sergey Senozhatsky
Hello, On (01/09/18 10:47), Tejun Heo wrote: > When RCU stall warning triggers, it can print out a lot of messages > while holding spinlocks. If the console device is slow (e.g. an > actual or IPMI serial console), it may end up triggering NMI hard > lockup watchdog like the following. > > *** C

Re: [PATCH v3 6/6] coresight: etm4x: Support panic kdump

2018-01-09 Thread Leo Yan
On Tue, Jan 09, 2018 at 01:21:28PM -0700, Mathieu Poirier wrote: > On Thu, Dec 21, 2017 at 04:20:15PM +0800, Leo Yan wrote: > > ETMv4 hardware information and configuration needs to be saved as > > metadata; these metadata should be compatible with tool 'perf' and > > can be used for tracing data a

Re: [PATCH V2 1/5] usb: serial: f81534: add high baud rate support

2018-01-09 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, Johan Hovold 於 2018/1/9 下午 07:08 寫道: On Thu, Jan 04, 2018 at 10:29:17AM +0800, Ji-Ze Hong (Peter Hong) wrote: The F81532/534 had 4 clocksource 1.846/18.46/14.77/24MHz and baud rates can be up to 1.5Mbits with 24MHz. This device may generate data overrun when baud rate setting to 9216

Re: [PATCH v2] jbd2: fix sphinx kerel-doc build warnings

2018-01-09 Thread Theodore Ts'o
On Wed, Jan 10, 2018 at 12:42:29PM +1100, Tobin C. Harding wrote: > Sphinx emits various (26) warnings when building make target 'htmldocs'. > Currently struct definitions contain duplicate documentation, some as > kernel-docs and some as standard c89 comments. We can reduce > duplication while cl

linux-next: Tree for Jan 10

2018-01-09 Thread Stephen Rothwell
Hi all, Changes since 20180109: The net-next tree gained a conflict against the vfs tree. it also gained a build failure for which I applied a patch. The akpm-current tree still had its build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 8051 8389

Re: [v7, 05/11] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-09 Thread Andrei Vagin
On Tue, Jan 09, 2018 at 08:39:21PM -0800, Dave Hansen wrote: > On 01/09/2018 08:30 PM, Andi Kleen wrote: > > On Tue, Jan 09, 2018 at 07:54:08PM -0800, Andrei Vagin wrote: > >> > >> In my test environment, the kernel with this patch crashes. > > > > I posted a patch for this. > > It's called: > >

Re: Query: Crash is coming during /prod/PID/stat and do_exit of same task

2018-01-09 Thread Alexey Dobriyan
> We are seeing crash in do_task_stat while accessing stack pointer, It > seems same task has already completed do_exit call. > So it seems a race between them: Please, post exact kernel version and struct task_struct::usage if you still have that kernel core (or even full task_struct)

Re: [PATCH v3 3/6] coresight: Support panic kdump functionality

2018-01-09 Thread Leo Yan
On Tue, Jan 09, 2018 at 11:41:26AM -0700, Mathieu Poirier wrote: > On Thu, Dec 21, 2017 at 04:20:12PM +0800, Leo Yan wrote: > > After kernel panic happens, coresight has many useful info can be used > > for analysis. For example, the trace info from ETB RAM can be used to > > check the CPU executi

[PATCH 2/2] usb: xhci: Remove ep_trb from finish_td()

2018-01-09 Thread Lu Baolu
Function argument ep_trb for finish_td() isn't needed anymore. Cleanup it. Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-ring.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 642a070..88071c4 10064

[PATCH 1/2] usb: xhci: Remove ep_trb from xhci_cleanup_halted_endpoint()

2018-01-09 Thread Lu Baolu
Function argument ep_trb for xhci_cleanup_halted_endpoint() isn't needed anymore. Cleanup it. Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-ring.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index

[PATCH 2/4] ASoC: max98373: Added missing blank lines

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added missing blank line into two places. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index e040b03..77b86c4 100644 --- a/sound/soc/codecs/max98373.c +++

Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest

2018-01-09 Thread Nadav Amit
Paolo Bonzini wrote: > On 09/01/2018 17:48, Liran Alon wrote: + if (have_spec_ctrl) { + rdmsrl(MSR_IA32_SPEC_CTRL, vmx->spec_ctrl); + if (vmx->spec_ctrl != 0) + wrmsrl(MSR_IA32_SPEC_CTRL, 0); >> >> As I said also on the AMD patch, I think t

[PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Changed SPDX header in C comment-style to C++ comment-style sound/soc/codecs/max98373.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 9af0d98..e040b03 100644 --- a

[PATCH 3/4] ASoC: max98373: Added TDM off if parameters are all zeroes

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added tdm_mode off condition when all input parameters are zero sound/soc/codecs/max98373.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 77b86c4..c5ff30f 1006

  1   2   3   4   5   6   7   8   9   10   >