Re: [PATCH] irqchip: create a Kconfig menu for irqchip drivers

2017-07-26 Thread Marc Zyngier
On 26/07/17 14:14, Masahiro Yamada wrote: > 2017-07-26 19:37 GMT+09:00 Marc Zyngier : >> On 26/07/17 11:18, Masahiro Yamada wrote: >>> Hi Marc, >>> >>> >>> 2017-07-26 17:04 GMT+09:00 Marc Zyngier : On 26/07/17 05:03, Masahiro Yamada wrote: > Some irqchip drivers have a Kconfig prompt. Whe

Re: [RFC PATCH v1 8/8] sched/deadline: make bandwidth enforcement scale-invariant

2017-07-26 Thread luca abeni
On Tue, 25 Jul 2017 15:51:05 +0200 Peter Zijlstra wrote: > On Tue, Jul 25, 2017 at 09:03:08AM +0200, Luca Abeni wrote: > > > > I'm still confused.. > > > > > > So GRUB does: > > > > > > dq = Uact -dt > > > > > > right? > > > > Right. This is what the original (single processor) GRUB did.

Re: [PATCH v6] x86/mm: Improve TLB flush documentation

2017-07-26 Thread Andy Lutomirski
On Tue, Jul 25, 2017 at 7:44 AM, Peter Zijlstra wrote: > On Tue, Jul 25, 2017 at 07:10:44AM -0700, Andy Lutomirski wrote: >> Improve comments as requested by PeterZ and also add some >> documentation at the top of the file. >> >> This adds and removes some smp_mb__after_atomic() calls to make the

Re: [PATCH V3 1/4] ARM64: dts: rockchip: rk3328 add iommu nodes

2017-07-26 Thread Heiko Stübner
Hi Joerg, Am Mittwoch, 26. Juli 2017, 14:27:53 CEST schrieb Joerg Roedel: > On Wed, Jul 26, 2017 at 01:44:02PM +0200, Heiko Stübner wrote: > > I really would prefer iommu dt-nodes going through my tree :-) > > > > Especially as parts of these conflict with already pending patches for > > graphics

[PATCH 2/3] ACPI/DRM: rework ACPI_VIDEO Kconfig dependencies

2017-07-26 Thread Arnd Bergmann
ACPI_VIDEO keeps causing problems with circular Kconfig dependencies, as it depends on a couple of other symbols, and it gets selected by drivers that may end up being depending on others. This is an attempt to simplify this by changing all drivers that currently 'select ACPI_VIDEO' to use 'depend

[PATCH 0/3] Kconfig dependencies: acpi-video, backlight and thermal

2017-07-26 Thread Arnd Bergmann
Hi everyone, It took me a while to figure this out properly, as I kept getting circular or missing dependencies with video drivers. This set of three patches should simplify the situation a bit, mostly by cleaning up the dependencies around CONFIG_ACPI_VIDEO. With all three patches applied, I no

[PATCH 1/3] backlight: always select BACKLIGHT_LCD_SUPPORT for BACKLIGHT_CLASS_DEVICE

2017-07-26 Thread Arnd Bergmann
randconfig builds occasionally produce this Kconfig warning: warning: (DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON &&

[PATCH 3/3] drm/etnaviv: add thermal dependency

2017-07-26 Thread Arnd Bergmann
When CONFIG_THERMAL is enabled as a loadable module, and etnaviv is built-in, we get a link error: drivers/gpu/drm/etnaviv/etnaviv_gpu.o: In function `etnaviv_gpu_bind': etnaviv_gpu.c:(.text.etnaviv_gpu_bind+0x34): undefined reference to `thermal_of_cooling_device_register' etnaviv_gpu.c:(.text.e

Re: objtool failures with -march=atom

2017-07-26 Thread Josh Poimboeuf
On Wed, Jul 26, 2017 at 12:12:04PM +0200, Arnd Bergmann wrote: > With the latest objtool failure, I get countless warnings when > -march=atom or -mtune=atom is used, > at least with gcc-4.9 through gcc-7 (I did not try older versions: > > kernel/sched/core.o: warning: objtool: > trace_raw_output_s

Re: [v4 1/4] mm, oom: refactor the TIF_MEMDIE usage

2017-07-26 Thread Michal Hocko
On Wed 26-07-17 14:27:15, Roman Gushchin wrote: [...] > @@ -656,13 +658,24 @@ static void mark_oom_victim(struct task_struct *tsk) > struct mm_struct *mm = tsk->mm; > > WARN_ON(oom_killer_disabled); > - /* OOM killer might race with memcg OOM */ > - if (test_and_set_tsk_thread

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-26 Thread Mimi Zohar
On Tue, 2017-07-25 at 22:00 -0500, Serge E. Hallyn wrote: > On Fri, Jul 14, 2017 at 03:26:14PM -0400, Mimi Zohar wrote: > > On Fri, 2017-07-14 at 13:17 -0500, Eric W. Biederman wrote: > > > Which brings us to the semantic question of would it be nice to have > > > stacked IMA/EVM on the same file.

[PATCH RESEND] fbdev: omapfb: remove unused variable

2017-07-26 Thread Arnd Bergmann
Removing the default display name left a harmless warning: fbdev/omap2/omapfb/dss/core.c: In function 'omap_dss_probe': fbdev/omap2/omapfb/dss/core.c:196:30: error: unused variable 'pdata' [-Werror=unused-variable] This removes the now-unused variable as well. Fixes: 278cba7eaf54 ("drm: omapdrm

Re: [Xen-devel] [PATCH v1] xen: get rid of paravirt op adjust_exception_frame

2017-07-26 Thread Andrew Cooper
On 26/07/17 14:48, Andy Lutomirski wrote: > >> /* Runs on exception stack */ >> -ENTRY(nmi) >> - /* >> -* Fix up the exception frame if we're on Xen. >> -* PARAVIRT_ADJUST_EXCEPTION_FRAME is guaranteed to push at most >> -* one value to the stack on native, so it may

Re: [f2fs-dev] [PATCH] f2fs: add ioctl to expose current features

2017-07-26 Thread Chao Yu
On 2017/7/22 4:11, Jaegeuk Kim wrote: > This patch adds an ioctl to provide feature information to user. > For exapmle, SQLite can use this ioctl to detect whether f2fs support atomic > write or not. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks, > --- > fs/f2fs/f2fs.h | 2 ++ >

[PATCH] mmc: sdhci-of-at91: force card detect value for non removable devices

2017-07-26 Thread Ludovic Desroches
When the device is non removable, the card detect signal is often use for another purpose i.e. muxed to another SoC peripheral or used as a GPIO. It could lead to wrong behaviors depending the defaut value of this signal if not muxed to the SDHCI controller. Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at9

Re: [PATCH v2] ARM: zImage: Fix stack overflow in merge_fdt_bootargs()

2017-07-26 Thread Richard Genoud
2017-07-22 15:02 GMT+02:00 Rask Ingemann Lambertsen : > This function is called very early on from head.S and currently sets up a > stack frame of more than 1024 bytes: > > atags_to_fdt.c: In function ‘merge_fdt_bootargs’: > atags_to_fdt.c:98:1: warning: the frame size of 1032 bytes is larger than

Re: [PATCH v6] x86/mm: Improve TLB flush documentation

2017-07-26 Thread Peter Zijlstra
On Wed, Jul 26, 2017 at 06:52:06AM -0700, Andy Lutomirski wrote: > On Tue, Jul 25, 2017 at 7:44 AM, Peter Zijlstra wrote: > > On Tue, Jul 25, 2017 at 07:10:44AM -0700, Andy Lutomirski wrote: > >> Improve comments as requested by PeterZ and also add some > >> documentation at the top of the file. >

Re: objtool failures with -march=atom

2017-07-26 Thread Arnd Bergmann
On Wed, Jul 26, 2017 at 3:55 PM, Josh Poimboeuf wrote: > On Wed, Jul 26, 2017 at 12:12:04PM +0200, Arnd Bergmann wrote: >> With the latest objtool failure, I get countless warnings when >> -march=atom or -mtune=atom is used, >> at least with gcc-4.9 through gcc-7 (I did not try older versions: >>

Re: [PATCH v4] KVM: LAPIC: Fix reentrancy issues with preempt notifiers

2017-07-26 Thread Takashi Iwai
On Tue, 25 Jul 2017 09:43:15 +0200, Wanpeng Li wrote: > > From: Wanpeng Li > > Preempt can occur in the preemption timer expiration handler: > > CPU0CPU1 > > preemption timer vmexit > handle_preemption_timer(vCPU0) > kvm_lapic_expired_hv_timer > hv_t

Re: [v4 1/4] mm, oom: refactor the TIF_MEMDIE usage

2017-07-26 Thread Roman Gushchin
On Wed, Jul 26, 2017 at 03:56:22PM +0200, Michal Hocko wrote: > On Wed 26-07-17 14:27:15, Roman Gushchin wrote: > [...] > > @@ -656,13 +658,24 @@ static void mark_oom_victim(struct task_struct *tsk) > > struct mm_struct *mm = tsk->mm; > > > > WARN_ON(oom_killer_disabled); > > - /* OOM k

Re: [f2fs-dev] [PATCH] f2fs: add ioctl to expose current features

2017-07-26 Thread Chao Yu
Hi Jaegeuk, I noted that the patch ("f2fs: give a try to do atomic write in -ENOMEM case") hasn't been sent to mailing list before been merged. Could you please send it out, and please add: Reviewed-by: Chao Yu Thanks, On 2017/7/22 4:11, Jaegeuk Kim wrote: > This patch adds an ioctl to provid

Re: [f2fs-dev] [PATCH 2/2] f2fs: don't give partially written atomic data from process crash

2017-07-26 Thread Chao Yu
On 2017/7/26 9:29, Jaegeuk Kim wrote: > This patch resolves the below scenario. > > == Process 1 == == Process 2 == > open(w) open(rw) > begin > write(new_#1) > process_crash > f_op->flush > locks_remove_posix > f_op>release > read (new_#1) > > In order t

Re: [PATCH v2 13/23] percpu: generalize bitmap (un)populated iterators

2017-07-26 Thread Tejun Heo
On Mon, Jul 24, 2017 at 07:02:10PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > The area map allocator only used a bitmap for the backing page state. > The new bitmap allocator will use bitmaps to manage the allocation > region in addition to this. > > This patch generalizes th

Re: [Xen-devel] [PATCH v1] xen: get rid of paravirt op adjust_exception_frame

2017-07-26 Thread Andy Lutomirski
On Wed, Jul 26, 2017 at 7:01 AM, Andrew Cooper wrote: > On 26/07/17 14:48, Andy Lutomirski wrote: >> >>> /* Runs on exception stack */ >>> -ENTRY(nmi) >>> - /* >>> -* Fix up the exception frame if we're on Xen. >>> -* PARAVIRT_ADJUST_EXCEPTION_FRAME is guaranteed to push at

Re: [PATCH v3 00/10] ARM: sun8i: a83t: Add support for MMC controllers

2017-07-26 Thread Chen-Yu Tsai
On Mon, Jul 24, 2017 at 9:58 PM, Chen-Yu Tsai wrote: > Hi everyone, > > This is v3 of my MMC controller support series. > [...] > Chen-Yu Tsai (10): > clk: sunxi-ng: Add interface to query or configure MMC timing modes. > clk: sunxi-ng: Add MP_MMC clocks that support MMC timing modes > s

Re: [PATCH 4/4] of/fdt: only store the device node basename in full_name

2017-07-26 Thread Rob Herring
On Wed, Jul 26, 2017 at 5:26 AM, Michael Ellerman wrote: > Rob Herring writes: > >> With dependencies on a statically allocated full path name converted to >> use %pOF format specifier, we can store just the basename of node, and >> the unflattening of the FDT can be simplified. >> >> This commit

Re: [PATCH 4.9 000/125] 4.9.40-stable review

2017-07-26 Thread Sumit Semwal
Hi Greg, On 26 July 2017 at 00:48, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.40 release. > There are 125 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: Support standalone metrics and metric groups for perf

2017-07-26 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:00PM -0700, Andi Kleen wrote: > Add generic support for standalone metrics specified in JSON files > to perf stat. A metric is a formula that uses multiple events > to compute a higher level result (e.g. IPC). > > For more complex metrics we need to have micro archit

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-07-26 Thread Thomas Gleixner
On Wed, 26 Jul 2017, qiaozhou wrote: Cc'ed ARM folks. > I want to ask you for suggestions about how to fix one contention between > expire_timers and try_to_del_timer_sync. Thanks in advance. > The issue is a hard-lockup issue detected on our platform(arm64, one cluster > with 4 a53, and the othe

Applied "ASoC: atmel: ac97c: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: atmel: ac97c: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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 hou

Applied "ASoC: jz4740: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: jz4740: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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) an

Applied "ASoC: samsung: pcm: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: samsung: pcm: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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 hou

Applied "ASoC: samsung: spdif: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: samsung: spdif: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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 h

Applied "ASoC: rt5663: constify acpi_device_id." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: rt5663: constify acpi_device_id. has been applied to the asoc tree at git://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 du

Applied "ASoC: rt5514: constify acpi_device_id." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: rt5514: constify acpi_device_id. has been applied to the asoc tree at git://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 du

Applied "ASoC: samsung: i2s: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: samsung: i2s: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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 hou

Applied "ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
The patch ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable. has been applied to the asoc tree at git://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

[GIT PULL 00/40] perf/core improvements and fixes

2017-07-26 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 510457ec9dc259b002879bcfe475f89d4514a0fc: Merge tag 'perf-core-for-mingo-4.13-20170718' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into

[PATCH 02/40] perf intel-pt: Always set no branch for dummy event

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Kan Liang An earlier kernel patch allowed enabling PT and LBR at the same time on Goldmont. commit ccbebba4c6bf ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it") However, users still cannot use Intel PT and LBRs simultaneously. $ sudo perf record -e cycles,inte

Applied "spi: imx: add SPI_NO_CS support" to the spi tree

2017-07-26 Thread Mark Brown
The patch spi: imx: add SPI_NO_CS support has been applied to the spi tree at git://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 the n

Re: [PATCH] x86/amd: Only fixup cpu_core_id for pre-family17h

2017-07-26 Thread Borislav Petkov
On Tue, Jul 25, 2017 at 02:13:00PM -0500, Suravee Suthikulpanit wrote: > Current fixup causes cpu_core_id for family17 w/ downcore configuration > to be incorrect as shown here: Applied but did some heavy massaging: --- From: Suravee Suthikulpanit Date: Tue, 25 Jul 2017 14:13:00 -0500 Subject: [

[PATCH 06/40] perf trace: Use the syscall_fmt formatters without a tracepoint

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Previously we only used the syscall_fmt when we had sc->tp_format set, i.e. when we found the (enter, exit) pair in tracefs/events/syscalls/. But we really only need to use what is in sc->arg_fmt to apply the arg beautifiers to the syscall argument values, so do it

[PATCH 09/40] perf trace: Allow specifying names to syscall arguments formatters

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For tracepointless syscalls, like clone, otherwise get them from the tracepoint's /format file. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-ml5qvv1w5k96ghwhxpzzs...@git.kernel.org Signed-off-

[PATCH 08/40] perf trace: Allow specifying number of syscall args for tracepointless syscalls

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we don't have syscalls:sys_{enter,exit}_NAME, we had to resort to dumping all the 6 syscall arguments, fix it by providing that info for such syscalls, like 'clone'. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http:

[PATCH 15/40] tools include: Adopt strstarts() from the kernel

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Replacing prefixcmp(), same purpose, inverted result, so standardize on the kernel variant, to reduce silly differences among tools/ and the kernel sources, making it easier for people to work in both codebases. And then doing: if (strstarts(option, "no-")

[PATCH 14/40] perf trace: Filter out 'sshd' in the tracer ancestry in syswide tracing

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Avoiding a loop, so now its quite convenient to ssh to a machine and then simply do: # perf trace To trace all syscalls without causing a loop. This was possible using --filter-pids, i.e. once you noticed the loop, get the sshd pid and add it to --filter-

[PATCH 11/40] perf trace beauty clone: Beautify syscall arguments

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now, syswide tracing, selected entries: # trace -e clone 24417.203 ( 0.158 ms): bash/11323 clone(flags: CHILD_CLEARTID|CHILD_SETTID|0x11, child_stack: 0, parent_tidptr: 0, child_tidptr: 0x7f0778e5c9d0, tls: 0x7f0778e5c700) = 11325 (bash) ? ( ?

[PATCH 16/40] tools lib: Update copy of strtobool from the kernel sources

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Getting support for "on", "off" introduced in a81a5a17d44b ("lib: add "on"/"off" support to kstrtobool") and making it check for NULL, introduced in ef951599074b ("lib: move strtobool() to kstrtobool()"). Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhy

[PATCH 18/40] perf annotate: Rename 'sum' to 'nr_samples' in struct sym_hist

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song To make it more clear that it is the sum of all the nr_samples fields in the addr[] entries, i.e.: sym_hist->nr_samples = sum(sym_hist->addr[0 .. symbol__size(sym)]->nr_samples) Committer notes: Taeung had renamed it to total_samples, but using nr_samples, as in the added

[PATCH 12/40] perf trace beauty clone: Suppress unused args according to 'flags' arg

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'parent_tidptr', 'child_tidptr' and 'tls' arguments to the 'clone' syscall are only used when certain flags are set in 'flags', suppress them when those aren't there. E.g: 9886.919 (0.236 ms): fetchmail/19298 clone(flags: CHILD_CLEARTID|CHILD_SETTID|0x11,

[PATCH 19/40] perf hists: Pass perf_sample to __symbol__inc_addr_samples()

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song To pave the way to use perf_sample fields in the annotate code, storing sample->period in sym_hist->addr->period and its sum in sym_hist->period. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1500500215-16646-1-git-send-email-treez

[PATCH 21/40] perf annotate: Do not overwrite sample->period

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song In fixing the --show-total-period option it was noticed that the value of sample->period was being overwritten, fix it. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Fixes: fd36f3dd7933 ("perf hist: Pass struct sample to __hists__add_entry()") L

[PATCH 23/40] perf report: Fix kernel symbol adjustment for s390x

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Thomas Richter On s390x the kernel text segment starts at address 0x0. When perf report reads kernel symbols from vmlinux file it adds an offset of 0x1000. For example see symbol set_reset_devices: [root@s8360047 linux-devel]# nm -A vmlinux| fgrep set_reset_devices vmlinux:01

[PATCH 24/40] perf cgroup: Fix refcount usage

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When converting from atomic_t to refcount_t we didn't follow the usual step of initializing it to one before taking any new reference, which trips over checking if taking a reference for a freed refcount_t, fix it. Brendan's report: --- It's 4.12-rc7, with node v

[PATCH 25/40] perf tools: Add EXCLUDE_EXTLIBS and EXTRA_PERFLIBS to makefile

2017-07-26 Thread Arnaldo Carvalho de Melo
From: David Carrillo-Cisneros The goal is to allow users to override linking of libraries that were automatically added to PERFLIBS. EXCLUDE_EXTLIBS contains linker flags to be removed from LIBS while EXTRA_PERFLIBS contains linker flags to be added. My use case is to force certain library to b

[PATCH 27/40] perf jvmti: Fix linker error when libelf config is disabled

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Sudeep Holla When libelf is disabled in the configuration, we get the following linker error: LINK libperf-jvmti.so ld: cannot find -lelf Makefile.perf:515: recipe for target 'libperf-jvmti.so' failed Jiri pointed out that both librt and libelf are not really required. So this p

[PATCH 29/40] perf top: Support lookup of symbols in other mount namespaces.

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Krister Johansen The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen Cc: Alexander Shishkin Cc: B

[PATCH 31/40] perf script python: Allocate memory only if handler exists

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arun Kalyanasundaram Avoid allocating memory if hook handler is not available. This saves unused memory allocation and simplifies error path. Let handler in python_process_tracepoint point to either tracepoint specific or trace_unhandled hook. Use dict to check if handler points to trace_u

[PATCH 32/40] perf script python: Refactor creation of perf sample dict

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arun Kalyanasundaram Move the creation of the dict containing perf_sample entries into a helper function to enable its reuse in other sample processing routines. Signed-off-by: Arun Kalyanasundaram Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Daniel Borkmann Cc: David Carrillo-Cisner

[PATCH 34/40] perf script python: Add perf_sample dict to tracepoint handlers

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arun Kalyanasundaram The process_event python hook receives a dict with all perf_sample entries, but the tracepoint specific and trace_unhandled hooks predate the introduction of this dict, and do not receive it. Add the aforementioned dict as an additional argument to the affected handler

[PATCH 36/40] perf report: Make --branch-history work without callgraphs(-g) option in perf record

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Jin Yao perf record -b -g perf report --branch-history This merges the LBRs with the callgraphs. However it would be nice if it also works without callgraphs (-g) set in perf record, so that only the LBRs are displayed. But currently perf report errors in this case. For example,

[PATCH 37/40] perf report: Tag branch type/flag on "to" and tag cycles on "from"

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Jin Yao Current --branch-history LBR annotation displays confused data. For example, each cycles report is duplicated on both "from" and "to" entries. For example: perf report --branch-history --no-children --stdio --2.32%--main div.c:39 (COND_BWD CROSS_2M predicted:49.7% cycles:1)

[PATCH 39/40] perf annotate stdio: Fix column header when using --show-total-period

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Currently the first column header is always "Percent", fix it to show correct column name based on given options, i.e. if using --show-total-period, show "Event count" as a first column. Reported-by: Milian Wolff Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Lin

[PATCH 40/40] perf tools: Add tools/include/uapi/asm-generic/fcntl.h to the MANIFEST

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This file was copied from the kernel so that we could build tools/perf/ on older systems where some newer defines, such as these are available: CC trace/beauty/fcntl.o trace/beauty/fcntl.c: In function ‘syscall_arg__scnprintf_fcntl_arg’: trace/beauty/

Re: [PATCH 02/16] fpga: add FPGA device framework

2017-07-26 Thread Alan Tull
On Wed, Jul 26, 2017 at 4:50 AM, Wu Hao wrote: > On Tue, Jul 25, 2017 at 04:32:10PM -0500, Alan Tull wrote: >> On Sat, Apr 1, 2017 at 7:18 AM, Wu Hao wrote: >> >> Hi Hao, >> >> > On Fri, Mar 31, 2017 at 12:01:13PM -0700, matthew.gerl...@linux.intel.com >> > wrote: >> >> On Fri, 31 Mar 2017, Wu H

Re: [PATCH 4.12 178/196] sched/cputime: Accumulate vtime on top of nsec clocksource

2017-07-26 Thread Mel Gorman
I noticed relatively late and it hadn't occured on my own testing. I can send it as a separate patch but I wanted to highlight that it would affect a 4.12.4 release. ---8<--- sched/cputime: Don't use smp_processor_id() in preemptible context commit 0e4097c3354e2f5a5ad8affd9dc7f7f7d00bb6b9 upstrea

Re: [PATCH] USB: hcd: Mark secondary HCD as dead if the primary one died

2017-07-26 Thread Alan Stern
On Tue, 25 Jul 2017, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make usb_hc_died() clear the HCD_FLAG_RH_RUNNING flag for the shared > HCD and set HCD_FLAG_DEAD for it, in analogy with what is done for > the primary one. > > Among other thigs, this prevents check_root_hub_suspended(

[PATCH 38/40] perf jevents: Make build fail on JSON parse error

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Today, when a JSON file fails parsing the build continues, but there are no json files built in, which is difficult to debug later. Make the build stop on a parse error instead. v2: Add fixes from Sukadev. Now we handle architectures with no JSON events correctly. And fix s

[PATCH 35/40] perf script python: Generate hooks with additional argument

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arun Kalyanasundaram Modify the signature of tracepoint specific and trace_unhandled hooks to add the perf_sample dict as a new argument. Create a python helper function to print a dictionary. Signed-off-by: Arun Kalyanasundaram Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Daniel Bork

Re: [PATCH 0/4] Removing full paths from DT full_name

2017-07-26 Thread Frank Rowand
Hi Rob, On 07/25/17 14:44, Rob Herring wrote: > This series is the last steps to remove storing the full path for every > DT node. Instead, we can create full path strings dynamically as needed > with printf %pOF specifiers (commit ce4fecf1fe15). There are a number of > remaining direct users o

[PATCH 33/40] perf script python: Add sample_read to dict

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arun Kalyanasundaram Provide time_enabled, time_running and counter value in the perf_sample dict. Signed-off-by: Arun Kalyanasundaram Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Daniel Borkmann Cc: David Carrillo-Cisneros Cc: David S. Miller Cc: Peter Zijlstra Cc: Seongjae Park

Re: [PATCH 3.18 00/60] 3.18.63-stable review

2017-07-26 Thread Shuah Khan
On 07/25/2017 01:15 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.63 release. > There are 60 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[PATCH 30/40] perf script: Remove some bogus error handling

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Dan Carpenter If script_desc__new() fails then the current code has a NULL dereference. We don't actually need to do any cleanup, we can just return NULL. Signed-off-by: Dan Carpenter Cc: Alexander Shishkin Cc: Peter Zijlstra Cc: kernel-janit...@vger.kernel.org Link: http://lkml.kernel

Re: [PATCH] irqchip: create a Kconfig menu for irqchip drivers

2017-07-26 Thread Thomas Gleixner
On Wed, 26 Jul 2017, Marc Zyngier wrote: > On 26/07/17 14:14, Masahiro Yamada wrote: > > The irqchip maintainers applied drivers > > with user-configurable Kconfig entries. > > They are *not* user-selectable, since there is *NO* menu entry. *You* > are making them user-selectable, and I'm objectin

Re: [PATCH 4.4 00/83] 4.4.79-stable review

2017-07-26 Thread Shuah Khan
On 07/25/2017 01:18 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.79 release. > There are 83 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [v4 1/4] mm, oom: refactor the TIF_MEMDIE usage

2017-07-26 Thread Michal Hocko
On Wed 26-07-17 15:06:07, Roman Gushchin wrote: > On Wed, Jul 26, 2017 at 03:56:22PM +0200, Michal Hocko wrote: > > On Wed 26-07-17 14:27:15, Roman Gushchin wrote: > > [...] > > > @@ -656,13 +658,24 @@ static void mark_oom_victim(struct task_struct *tsk) > > > struct mm_struct *mm = tsk->mm; > >

Re: [PATCH 4.9 000/125] 4.9.40-stable review

2017-07-26 Thread Shuah Khan
On 07/25/2017 01:18 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.40 release. > There are 125 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 4.12 000/196] 4.12.4-stable review

2017-07-26 Thread Shuah Khan
On 07/25/2017 01:19 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.12.4 release. > There are 196 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

[PATCH 28/40] perf evsel: Add verbose output for sys_perf_event_open fallback

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding info about what is being switched off in the sys_perf_event_open fallback. New output (notice the 'switching off' lines): $ perf stat -e '{cycles,instructions}' -vvv ls Using CPUID GenuineIntel-6-3D intel_pt default config: tsc

Re: [PATCH 1/3] arm/syscalls: Move address limit check in loop

2017-07-26 Thread Thomas Garnier
On Wed, Jul 26, 2017 at 5:02 AM, Will Deacon wrote: > On Tue, Jul 25, 2017 at 01:01:17PM -0700, Thomas Garnier wrote: >> On Tue, Jul 25, 2017 at 3:38 AM, Russell King - ARM Linux >> wrote: >> > On Tue, Jul 25, 2017 at 01:28:01PM +0300, Leonard Crestez wrote: >> >> On Mon, 2017-07-24 at 10:07 -070

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-26 Thread Thomas Gleixner
On Wed, 26 Jul 2017, Martin Peres wrote: > On 25/07/17 10:01, Tomi Sarvela wrote: > > On 24/07/17 19:37, Martin Peres wrote: > > > On 24/07/17 19:35, Thomas Gleixner wrote: > > > > On Mon, 24 Jul 2017, Martin Peres wrote: > > > > > On 24/07/17 18:28, Thomas Gleixner wrote: > > > > > > Output of 'ca

[PATCH 26/40] perf annotate: Process tracing data in pipe mode

2017-07-26 Thread Arnaldo Carvalho de Melo
From: David Carrillo-Cisneros 'perf annotate' was missing the handler for tracing data records. Prior to this patch we obtained "unhandled" records when piping trace events to perf annotate (using -D option to show the dump_printf messages in process_event_synth_tracing_data_stub): $ perf rec

[PATCH 22/40] perf annotate stdio: Fix --show-total-period

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song We were showing the total number of samples, not the total period as asked by the user, fix it. Reported-by: Namhyung Kim Cc: Jiri Olsa Cc: Martin Liška Cc: Milian Wolff Link: http://lkml.kernel.org/n/tip-lh2nh89rtqn5x5vbfthw6...@git.kernel.org Fixes: 0c4a5bcea460 ("perf an

Re: [RESEND PATCH 2/2] userfaultfd: selftest: Add tests for UFFD_FREATURE_SIGBUS

2017-07-26 Thread Andrea Arcangeli
On Tue, Jul 25, 2017 at 12:47:42AM -0400, Prakash Sangappa wrote: > Signed-off-by: Prakash Sangappa > --- > tools/testing/selftests/vm/userfaultfd.c | 121 > +- > 1 files changed, 118 insertions(+), 3 deletions(-) Like Mike said, some comment about the test would be

Re: [PATCH RESEND] fbdev: omapfb: remove unused variable

2017-07-26 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, July 26, 2017 03:57:55 PM Arnd Bergmann wrote: > Removing the default display name left a harmless warning: > > fbdev/omap2/omapfb/dss/core.c: In function 'omap_dss_probe': > fbdev/omap2/omapfb/dss/core.c:196:30: error: unused variable 'pdata' > [-Werror=unused-variable] > >

objtool warnings in randconfig builds using gcc-7.1.1

2017-07-26 Thread Arnd Bergmann
Hi Josh, With the configuration at https://pastebin.com/jHtvCwER and gcc-7.1.1, I get these warnings drivers/hid/wacom_wac.o: warning: objtool: wacom_bpt3_touch()+0x2a5: stack state mismatch: cfa1=7+8 cfa2=6+16 drivers/iio/adc/vf610_adc.o: warning: objtool: vf610_adc_calculate_rates() falls throu

Re: [PATCH v2 03/13] xen/pvcalls: implement socket command and handle events

2017-07-26 Thread Boris Ostrovsky
On 7/25/2017 5:22 PM, Stefano Stabellini wrote: Send a PVCALLS_SOCKET command to the backend, use the masked req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array ready for the response, and there cannot be tw

Re: [PATCH] irqchip: create a Kconfig menu for irqchip drivers

2017-07-26 Thread Masahiro Yamada
2017-07-26 22:50 GMT+09:00 Marc Zyngier : > On 26/07/17 14:14, Masahiro Yamada wrote: >> 2017-07-26 19:37 GMT+09:00 Marc Zyngier : >>> On 26/07/17 11:18, Masahiro Yamada wrote: Hi Marc, 2017-07-26 17:04 GMT+09:00 Marc Zyngier : > On 26/07/17 05:03, Masahiro Yamada wrote: >>>

Re: [PATCH] [v2] iopoll: avoid -Wint-in-bool-context warning

2017-07-26 Thread Mark Brown
On Wed, Jul 26, 2017 at 03:37:32PM +0200, Arnd Bergmann wrote: > When we pass the result of a multiplication as the timeout or > the delay, we can get a warning: This'd be easier if you sent each of the changes separately... > include/linux/iopoll.h | 24 +++- > include/linux

Re: USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4

2017-07-26 Thread Alan Stern
On Tue, 25 Jul 2017, Guenter Roeck wrote: > On 07/25/2017 12:50 PM, Alan Stern wrote: > > On Tue, 25 Jul 2017, Zdenek Kabelac wrote: > > > >> Dne 25.7.2017 v 19:02 Alan Stern napsal(a): > >>> On Tue, 25 Jul 2017, Zdenek Kabelac wrote: > >>> > And in fact it's the very same commit - which add

[PATCH 20/40] perf annotate: Store the sample period in each histogram bucket

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song We'll use it soon, when fixing --show-total-period. Signed-off-by: Taeung Song Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/r/1500500215-16646-1-git-send-email-treeze.tae...@gmail.com [ split from a larger pat

[PATCH 17/40] perf annotate: Introduce struct sym_hist_entry

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song struct sym_hist has addr[] but it should have not only number of samples but also the sample period. So use new struct symhist_entry to pave the way to have that. Committer notes: This initial patch will only introduce the struct sym_hist_entry and use only the nr_samples mem

Re: [RESEND PATCH 1/2] userfaultfd: Add feature to request for a signal delivery

2017-07-26 Thread Andrea Arcangeli
On Tue, Jul 25, 2017 at 12:47:41AM -0400, Prakash Sangappa wrote: > In some cases, userfaultfd mechanism should just deliver a SIGBUS signal > to the faulting process, instead of the page-fault event. Dealing with > page-fault event using a monitor thread can be an overhead in these > cases. For ex

[PATCH 13/40] perf trace: Introduce filter_loop_pids()

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in functionality, just to make clearer that what we want when filtering the tracer pid in a system wide tracing session is to avoid a feedback loop. This also paves the way for a more interesting loop avoidance algorithm, one that tries to figure out if w

[PATCH 10/40] tools include uapi: Grab a copy of linux/sched.h

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we make sure we have recent enough defines for things such as 'perf trace' system call argument beautifiers. For instance, the 'clone' syscall argument 'flag' needs to use CLONE_NEWCGROUP, and that is not available in RHEL7. Cc: Adrian Hunter Cc: David Ah

[PATCH 07/40] perf trace: Ditch __syscall__arg_val() variant, not needed anymore

2017-07-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo All callers now can use syscall__arg_val(arg, idx), be it to iterate thru the syscall arguments while taking into account alignment, or to get values for other arguments that affect how the current argument should be formatted (think of fcntl's 'cmd' and 'arg' argum

Re: [PATCH RESEND] fbdev: omapfb: remove unused variable

2017-07-26 Thread Arnd Bergmann
On Wed, Jul 26, 2017 at 4:27 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Wednesday, July 26, 2017 03:57:55 PM Arnd Bergmann wrote: >> Removing the default display name left a harmless warning: >> >> fbdev/omap2/omapfb/dss/core.c: In function 'omap_dss_probe': >> fbdev/omap2/omapfb/dss/core

Re: [PATCH 0/4] Removing full paths from DT full_name

2017-07-26 Thread Rob Herring
On Wed, Jul 26, 2017 at 9:20 AM, Frank Rowand wrote: > Hi Rob, > > On 07/25/17 14:44, Rob Herring wrote: >> This series is the last steps to remove storing the full path for every >> DT node. Instead, we can create full path strings dynamically as needed >> with printf %pOF specifiers (commit ce4f

Re: [f2fs-dev] [PATCH 1/2] f2fs: expose /sys/fs/f2fs/features

2017-07-26 Thread Chao Yu
On 2017/7/26 9:29, Jaegeuk Kim wrote: > This patch exposes what features are supported by current f2fs build to sysfs > entry. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Minor thing, can you exchange below function name to follow ext4: f2fs_init_sysfs <-> f2fs_register_sysfs f2fs_exit

Re: [PATCH] Drivers : edac : checkpatch.pl clean up

2017-07-26 Thread Borislav Petkov
On Wed, Jul 26, 2017 at 06:37:48PM +0530, Himanshu Jha wrote: > Fixed 'no assignment in if condition' coding style issue and removed > unnecessary spaces at the start of a line. Please put a shorter version of your commit message in the patch subject - "[PATCH] Drivers : edac : checkpatch.pl clea

<    1   2   3   4   5   6   7   8   9   10   >