Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-05-18 Thread Michal Hocko
On Thu 18-05-17 11:57:55, Cristopher Lameter wrote: > On Thu, 18 May 2017, Michal Hocko wrote: > > > > Nope. The OOM in a cpuset gets the process doing the alloc killed. Or what > > > that changed? > > ! > > > > > > > At this point you have messed up royally and nothing is going to rescue >

[PATCH v3 2/5] perf/core: Export AUX buffer helpers to modules

2017-05-18 Thread Will Deacon
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- kernel/events/ring_buffer.c | 4 1 file changed, 4 insertio

[PATCH v3 5/5] dt-bindings: Document devicetree binding for ARM SPE

2017-05-18 Thread Will Deacon
This patch documents the devicetree binding in use for ARM SPE. Cc: Mark Rutland Cc: Rob Herring Signed-off-by: Will Deacon --- Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/ar

[PATCH v3 3/5] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

2017-05-18 Thread Will Deacon
The ARM SPE architecture permits an implementation to ignore a sample if the sample is due to be taken whilst another sample is already being produced. In this case, it is desirable to report the collision to userspace, as they may want to lower the sample period. This patch adds a PERF_AUX_FLAG_C

[PATCH v3 0/5] Add support for the ARMv8.2 Statistical Profiling Extension

2017-05-18 Thread Will Deacon
Hi all, This is the fifth posting of the patches previously posted here: rfcv1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476450.html rfcv2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/479387.html v1: http://lists.infradead.org/pipermail

[PATCH v3 1/5] genirq: export irq_get_percpu_devid_partition to modules

2017-05-18 Thread Will Deacon
Any modular driver using cluster-affine PPIs needs to be able to call irq_get_percpu_devid_partition so that it can enable the IRQ on the correct subset of CPUs. This patch exports the symbol so that it can be called from within a module. Acked-by: Marc Zyngier Acked-by: Thomas Gleixner Signed-

[PATCH v3 4/5] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-05-18 Thread Will Deacon
The ARMv8.2 architecture introduces the optional Statistical Profiling Extension (SPE). SPE can be used to profile a population of operations in the CPU pipeline after instruction decode. These are either architected instructions (i.e. a dynamic instruction trace) or CPU-specific uops and the choi

Re: [PATCH v2 00/53] Get rid of Docbook

2017-05-18 Thread Jonathan Corbet
On Tue, 16 May 2017 09:15:52 -0300 Mauro Carvalho Chehab wrote: > This patch series convert the remaining DocBooks to ReST. Gotta love this: > 124 files changed, 7469 insertions(+), 10511 deletions(-) I've just pulled the whole set from your experimental.git repo. There are certainly a few r

Re: [PATCH 3.18 00/49] 3.18.54-stable review

2017-05-18 Thread Shuah Khan
On 05/18/2017 07:16 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.54 release. > There are 49 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: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-18 Thread Michal Hocko
On Thu 18-05-17 17:28:04, Roman Gushchin wrote: > Traditionally, the OOM killer is operating on a process level. > Under oom conditions, it finds a process with the highest oom score > and kills it. > > This behavior doesn't suit well the system with many running > containers. There are two main i

Re: [PATCH 1/1] futex: remove duplicated code

2017-05-18 Thread Will Deacon
On Wed, May 17, 2017 at 10:01:29AM +0200, Jiri Slaby wrote: > On 05/15/2017, 03:16 PM, Will Deacon wrote: > > Whilst I think this is a good idea, the code in question actually results > > in undefined behaviour per the C spec and is reported by UBSAN. > > Hi, yes, I know -- this patch was the 1st

Re: [PATCH 4.10 00/93] 4.10.17-stable review

2017-05-18 Thread Shuah Khan
On 05/18/2017 04:46 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.10.17 release. > There are 93 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.9 00/80] 4.9.29-stable review

2017-05-18 Thread Shuah Khan
On 05/18/2017 04:47 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.29 release. > There are 80 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: [PATCH 4.4 00/56] 4.4.69-stable review

2017-05-18 Thread Shuah Khan
On 05/18/2017 04:48 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.69 release. > There are 56 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: [PATCH] xen: make xen_flush_tlb_all() static

2017-05-18 Thread Boris Ostrovsky
On 05/18/2017 11:46 AM, Juergen Gross wrote: > xen_flush_tlb_all() is used in arch/x86/xen/mmu.c only. Make it static. > > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky

Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral

2017-05-18 Thread Geert Uytterhoeven
Hi Andrew, On Thu, May 18, 2017 at 6:33 PM, Andrew Lunn wrote: >> >> phy = get_phy_device(mdio, addr, is_c45); >> >> if (IS_ERR(phy)) >> >> - return; >> >> + return PTR_ERR(phy); >> >> >> >> - rc = irq_of_parse_and_map(child, 0); >> >> + rc = of

[PATCH 0/4] KVM: x86: fix bugs reported by Dan Carpenter

2017-05-18 Thread Radim Krčmář
It would be possible to make reproducers for the first three patches, but they happen under circumstances too remote from normal use, so I didn't test them like that. :) Radim Krčmář (4): KVM: nVMX: fix nested_vmx_check_vmptr failure paths under debugging KVM: x86: zero base3 of unusable segm

[PATCH 2/4] KVM: x86: zero base3 of unusable segments

2017-05-18 Thread Radim Krčmář
Static checker noticed that base3 could be used uninitialized if the segment was not present (useable). Random stack values probably would not pass VMCS entry checks. Reported-by: Dan Carpenter Fixes: 1aa366163b8b ("KVM: x86 emulator: consolidate segment accessors") Signed-off-by: Radim Krčmář

[PATCH 1/4] KVM: nVMX: fix nested_vmx_check_vmptr failure paths under debugging

2017-05-18 Thread Radim Krčmář
kvm_skip_emulated_instruction() will return 0 if userspace is single-stepping the guest. kvm_skip_emulated_instruction() uses return status convention of exit handler: 0 means "exit to userspace" and 1 means "continue vm entries". The problem is that nested_vmx_check_vmptr() return status means so

[PATCH 4/4] KVM: x86: prevent uninitialized variable warning in check_svme()

2017-05-18 Thread Radim Krčmář
get_msr() of MSR_EFER is currently always going to succeed, but static checker doesn't see that far. Don't complicate stuff and just use 0 for the fallback -- it means that the feature is not present. Reported-by: Dan Carpenter Signed-off-by: Radim Krčmář --- arch/x86/kvm/emulate.c | 2 +- 1 f

[PATCH 3/4] KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh()

2017-05-18 Thread Radim Krčmář
Static analysis noticed that pmu->nr_arch_gp_counters can be 32 (INTEL_PMC_MAX_GENERIC) and therefore cannot be used to shift 'int'. I didn't add BUILD_BUG_ON for it as we have a better checker. Reported-by: Dan Carpenter Fixes: 25462f7f5295 ("KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU f

Re: [PATCH] scsi: remove useless variable assignment

2017-05-18 Thread Gustavo A. R. Silva
Hi James, Quoting James Bottomley : On Wed, 2017-05-17 at 19:30 -0500, Gustavo A. R. Silva wrote: Remove this assignment once the value stored in variable _k_ is overwritten after a few lines. Addresses-Coverity-ID: 1226927 Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/qlogicfas408.c

Re: [PATCH v2 6/6] serial: exar: Add support for IOT2040 device

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 7:39 PM, Jan Kiszka wrote: > On 2017-05-18 18:33, Andy Shevchenko wrote: >> On Thu, May 18, 2017 at 5:59 PM, Jan Kiszka wrote: >>> +static bool is_iot2040; >> >> No, please, use driver data of DMI and hide this in corresponding structure. >> Or even assign port->port.rs4

Re: [PATCH 04/23] uuid: rename uuid types

2017-05-18 Thread Darrick J. Wong
On Thu, May 18, 2017 at 08:26:46AM +0200, Christoph Hellwig wrote: > Our "little endian" UUID really is a Wintel GUID, so rename it and its > helpers such (guid_t). The big endian UUID is the only true one, so > give it the name uuid_t. The uuid_le and uuid_be names are retained for > now, but wi

Re: [PATCH v2 5/6] gpio-exar/8250-exar: Make set of exported GPIOs configurable

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 5:59 PM, Jan Kiszka wrote: > On the SIMATIC, IOT2040 only a single pin is exportable as GPIO, the > rest is required to operate the UART. To allow modeling this case, > expand the platform device data structure to specify a (consecutive) pin > subset for exporting by the gp

Re: [net-intel-i40e] question about assignment overwrite

2017-05-18 Thread Gustavo A. R. Silva
Hi Jeff, Quoting Jeff Kirsher : On Wed, 2017-05-17 at 15:48 -0500, Gustavo A. R. Silva wrote: While looking into Coverity ID 1408956 I ran into the following piece   of code at drivers/net/ethernet/intel/i40e/i40e_main.c:8807: 8807    if (pf->hw.mac.type == I40E_MAC_X722) { 8808  

[PATCH] r8152: Remove unused function usb_ocp_read()

2017-05-18 Thread Matthias Kaehlcke
The function is not used, removing it fixes the following warning when building with clang: drivers/net/usb/r8152.c:825:5: error: unused function 'usb_ocp_read' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- drivers/net/usb/r8152.c | 6 -- 1 file changed, 6 deletions(-

[PATCH 0/6] Drivers: hv: vmbus: Some miscellaneous fixes

2017-05-18 Thread kys
From: K. Y. Srinivasan Some miscellaneous fixes. Andy Shevchenko (1): vmbus: Reuse uuid_le_to_bin() helper K. Y. Srinivasan (2): Drivers: hv: vmbus: Get the current time from the current clocksource drivers: hv: vmbus: Increase the time between retries in vmbus_post_msg() Michael Kel

[PATCH 5/6] vmbus: Reuse uuid_le_to_bin() helper

2017-05-18 Thread kys
From: Andy Shevchenko Instead of open coded variant use generic helper to convert UUID strings to binary format. Signed-off-by: Andy Shevchenko Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 51 +-- 1 files changed, 10 insertions(+),

[PATCH 2/6] hv_utils: drop .getcrosststamp() support from PTP driver

2017-05-18 Thread kys
From: Vitaly Kuznetsov Turns out that our implementation of .getcrosststamp() never actually worked. Hyper-V is sending time samples every 5 seconds and this is too much for get_device_system_crosststamp() as it's interpolation algorithm (which nobody is currently using in kernel, btw) accounts f

[PATCH 3/6] hv_utils: fix TimeSync work on pre-TimeSync-v4 hosts

2017-05-18 Thread kys
From: Vitaly Kuznetsov It was found that ICTIMESYNCFLAG_SYNC packets are handled incorrectly on WS2012R2, e.g. after the guest is paused and resumed its time is set to something different from host's time. The problem is that we call adj_guesttime() with reftime=0 for these old hosts and we don't

[PATCH 1/6] Drivers: hv: vmbus: Get the current time from the current clocksource

2017-05-18 Thread kys
From: K. Y. Srinivasan The current code uses the MSR based mechanism to get the current tick. Use the current clock source as that might be more optimal. Signed-off-by: K. Y. Srinivasan --- arch/x86/include/asm/mshyperv.h |1 - drivers/hv/hv.c |2 +- 2 files changed, 1

[PATCH 4/6] drivers: hv: vmbus: Increase the time between retries in vmbus_post_msg()

2017-05-18 Thread kys
From: K. Y. Srinivasan Commit c0bb03924f1a ("Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()") increased the retry/wait limits of vmbus_post_msg() to address the new DoS protection policies in WS2016. Increase the time between retries to make the code more robust. Signed-off-by:

[PATCH 3/4] lib/interval_tree_test: allow users to limit scope of endpoint

2017-05-18 Thread Davidlohr Bueso
Add a 'max_endpoint' parameter such that users may easily limit the size of the intervals that are randomly generated. Signed-off-by: Davidlohr Bueso --- lib/interval_tree_test.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/interval_tree_test.

[PATCH -next 0/4] lib/interval_tree_test: some debugging improvements

2017-05-18 Thread Davidlohr Bueso
Hi, Here are some patches that update the interva_tree_test module allowing users to pass finer grained options to run the actual test. Applies on top of v4.12-rc1. Thanks! Davidlohr Bueso (4): lib/interval_tree_test: allow the module to be compiled-in lib/interval_tree_test: make test opti

[PATCH 1/4] lib/interval_tree_test: allow the module to be compiled-in

2017-05-18 Thread Davidlohr Bueso
It is a tristate after all, and also serves well for quick debugging. Signed-off-by: Davidlohr Bueso --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index e4587ebe52c7..b29bf26e653c 100644 --- a/lib/Kconfig.debug +++

[PATCH 4/4] lib/interval_tree_test: allow full tree search

2017-05-18 Thread Davidlohr Bueso
... such that a user can specify visiting all the nodes in the tree (intersects with the world). This is a nice opposite from the very basic default query which is a single point. Signed-off-by: Davidlohr Bueso --- lib/interval_tree_test.c | 15 ++- 1 file changed, 10 insertions(+),

[PATCH 2/4] lib/interval_tree_test: make test options module parameters

2017-05-18 Thread Davidlohr Bueso
Allows for more flexible debugging. Signed-off-by: Davidlohr Bueso --- lib/interval_tree_test.c | 57 +--- 1 file changed, 40 insertions(+), 17 deletions(-) diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index 245900b98c8e..1093f0496

Re: [PATCHv5, REBASED 9/9] x86/mm: Allow to have userspace mappings above 47-bits

2017-05-18 Thread Michal Hocko
On Thu 18-05-17 19:13:30, Michal Hocko wrote: > On Thu 18-05-17 19:22:55, Kirill A. Shutemov wrote: > > On Thu, May 18, 2017 at 05:59:14PM +0200, Michal Hocko wrote: > [...] > > > I basically mean something like the following > > > --- > > > diff --git a/arch/x86/kernel/sys_x86_64.c b/arch/x86/kern

Re: [infiniband-hw-i40iw] question about identical code for different branches

2017-05-18 Thread Gustavo A. R. Silva
Quoting "Saleem, Shiraz" : Subject: [infiniband-hw-i40iw] question about identical code for different branches index f4d1368..48fd327 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_virtchnl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_virtchnl.c @@ -443,10 +443,7 @@ enum i40iw_status_code i40i

[PATCH] net1080: Remove unused function nc_dump_ttl()

2017-05-18 Thread Matthias Kaehlcke
The function is not used, removing it fixes the following warning when building with clang: drivers/net/usb/net1080.c:271:20: error: unused function 'nc_dump_ttl' [-Werror,-Wunused-function] Also remove the definition of TTL_THIS, which is only used in nc_dump_ttl() Signed-off-by: Matthias K

Re: [PATCH 1/1] remoteproc: fix elf_loader da_to_va translation and writing beyond segment

2017-05-18 Thread Bjorn Andersson
On Mon 15 May 07:37 PDT 2017, Henri Roosen wrote: > On 05/14/2017 06:14 AM, Bjorn Andersson wrote: > > On Thu 11 May 09:12 PDT 2017, Henri Roosen wrote: > > > > > On 05/11/2017 02:05 AM, Bjorn Andersson wrote: > > > > On Wed 03 May 05:12 PDT 2017, Henri Roosen wrote: > > > > > > > > > Consider a

[PATCH] fs: kill CONFIG_PERCPU_RWSEM some more

2017-05-18 Thread Davidlohr Bueso
As of: bf3eac84c42 (percpu-rwsem: kill CONFIG_PERCPU_RWSEM) we unconditionally build pcpu-rwsems. Remove a leftover in for FILE_LOCKING. Signed-off-by: Davidlohr Bueso --- fs/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index b0e42b6a96b9..7aee6d699fd6

Re: [PATCH 0/7] perf tool: add meta-data header support for pipe-mode

2017-05-18 Thread David Carrillo-Cisneros
On Wed, May 17, 2017 at 10:10 PM, Andi Kleen wrote: >> The difficulty in pipe mode is that information needs to be written >> sequentially to the pipe. Meta data headers are usually generated >> (and also expected) at the beginning of the file (or piped output). >> To solve this problem, we introd

Re: [PATCH 3/7] perf header: use struct feat_fd for write

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:13 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:15:58PM -0700, David Carrillo-Cisneros wrote: >> As preparation for using header records in pipe mode, replace >> int fd with struct feat_fd fd in write functions for all header >> record types. >> >> Record types that

Re: [PATCH 5/7] perf header: use struct feat_fd for process and read

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:13 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:16:00PM -0700, David Carrillo-Cisneros wrote: >> As preparation for using header records in pipe mode, replace >> int fd with struct feat_fd fd in process and read functions for >> all header record types. >> >> To redu

[GIT] Sparc

2017-05-18 Thread David Miller
Please pull in these three sparc bug fixes. Thank you. The following changes since commit b23afd384801711ab6dbccd259cc14cb09a1dcaf: Merge tag 'pstore-v4.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux (2017-05-16 13:29:07 -0700) are available in the git repository at:

[GIT] Networking

2017-05-18 Thread David Miller
1) Don't allow negative TCP reordering values, from Soheil Hassas Yeganeh. 2) Don't overflow while parsing ipv6 header options, from Craig Gallek. 3) Handle more cleanly the case where an individual route entry during a dump will not fit into the allocated netlink SKB, from David Ahern. 4) A

[PATCH] infiniband: hw: i40iw: fix duplicated code for different branches

2017-05-18 Thread Gustavo A. R. Silva
Refactor code to avoid identical code for different branches. Addresses-Coverity-ID: 1357356 Reviewed-by: Yuval Shaia Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/hw/i40iw/i40iw_virtchnl.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/infiniband/hw

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-18 Thread Johannes Weiner
On Thu, May 18, 2017 at 07:30:04PM +0200, Michal Hocko wrote: > On Thu 18-05-17 17:28:04, Roman Gushchin wrote: > > Traditionally, the OOM killer is operating on a process level. > > Under oom conditions, it finds a process with the highest oom score > > and kills it. > > > > This behavior doesn't

Re: [PATCH 2/3] livepatch: send a fake signal to all blocking tasks

2017-05-18 Thread Miroslav Benes
On Thu, 18 May 2017, Oleg Nesterov wrote: > I didn't see other patches in series, not sure I understand... There is nothing relevant to this patch, I think. I did not want to bother you with it. > On 05/18, Miroslav Benes wrote: > > > > The very safe marking is done in entry.S on syscall and > >

Re: [PATCH v2] tracing: Make sure RCU is watching before calling a stack trace

2017-05-18 Thread Miroslav Benes
On Thu, 18 May 2017, Steven Rostedt wrote: > On Thu, 18 May 2017 15:48:55 +0200 (CEST) > Miroslav Benes wrote: > > > On Thu, 18 May 2017, Steven Rostedt wrote: > > > > > > > > From: "Steven Rostedt (VMware)" > > > > > > As stack tracing now requires "rcu watching", force RCU to be watching

[PATCH] mm, page_alloc: Mark bad_range() and meminit_pfn_in_nid() as __maybe_unused

2017-05-18 Thread Matthias Kaehlcke
The functions are not used in some configurations. Adding the attribute fixes the following warnings when building with clang: mm/page_alloc.c:409:19: error: function 'bad_range' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] mm/page_alloc.c:1106:30: error: un

Re: [PATCH] perf: libdw support for powerpc

2017-05-18 Thread Naveen N. Rao
Paolo Bonzini wrote: The ARM and x86 architectures already use libdw, and it is useful to have as much common code for the unwinder as possible. Porting PPC to libdw only needs an architecture-specific hook to move the register state from perf to libdw. Thanks. Ravi has had a similar patch loc

Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral

2017-05-18 Thread Florian Fainelli
On 05/18/2017 05:59 AM, Geert Uytterhoeven wrote: > If an Ethernet PHY is initialized before the interrupt controller it is > connected to, a message like the following is printed: > > irq: no irq domain found for /interrupt-controller@e61c ! > > However, the actual error is ignored, lead

[GIT PULL] MD update for 4.12-rc2

2017-05-18 Thread Shaohua Li
Hi, Please pull MD update for 4.12-rc2. This update mainly fixes bugs: - Several bug fixes for raid5-cache from Song Liu, mainly handle journal disk error - Fix bad block handling in choosing raid1 disk from Tomasz Majchrzak - Simplify external metadata array sysfs handling from Artur Paszkiewicz

Re: [PATCH 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-05-18 Thread Jingoo Han
On Monday, May 15, 2017 7:55 AM, Song Xiaowei wrote > > Hisilicon PCIe Driver shares the common functions fo PCIe dw-host > > The poweron functions is developed on hi3660 SoC, while Others Functions > are common for Kirin series SoCs. > > Lowpower(L1ss and SR), hotplug and MSI feature are not su

Re: [PATCH 7/7] perf tools: add feature header record to pipe-mode

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:13 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:16:02PM -0700, David Carrillo-Cisneros wrote: > > SNIP > >> static const char *perf_ns__names[] = { >> diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h >> index db2de6413518..d404f50260f8 100644 >> --- a/

Re: [PATCH 7/7] perf tools: add feature header record to pipe-mode

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:13 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:16:02PM -0700, David Carrillo-Cisneros wrote: > > SNIP > >> >> @@ -2107,42 +2109,80 @@ struct feature_ops { >> int (*process)(struct feat_fd *fd, void *data); >> const char *name; >> bool full_only; >>

[PATCH 2/2] sched: Use iowait boost policy option in schedutil

2017-05-18 Thread Joel Fernandes
If cpufreq policy has iowait boost enabled, use it. Also make it a schedutil configuration from sysfs so it can be turned on/off if needed (by default use the policy value). Signed-off-by: Joel Fernandes --- kernel/sched/cpufreq_schedutil.c | 34 ++ 1 file changed

[PATCH 1/2] cpufreq: Make iowait boost a policy option

2017-05-18 Thread Joel Fernandes
Make iowait boost a cpufreq policy option and enable it for intel_pstate cpufreq driver. Governors like schedutil can use it to determine if boosting for tasks that wake up with p->in_iowait set is needed. Signed-off-by: Joel Fernandes --- drivers/cpufreq/intel_pstate.c | 1 + include/linux/cpuf

Re: [PATCH 7/7] perf tools: add feature header record to pipe-mode

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:12 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:16:02PM -0700, David Carrillo-Cisneros wrote: >> Add header record types to pipe-mode, reusing the functions >> used in file-mode and leveraging the new struct feat_fd. >> >> Add the perf_event__synthesize_feature event

Re: [PATCH 13/23] md: namespace private helper names

2017-05-18 Thread Shaohua Li
On Thu, May 18, 2017 at 08:26:55AM +0200, Christoph Hellwig wrote: > From: Amir Goldstein > > The md private helper uuid_equal() collides with a generic helper > of the same name. > > Rename the md private helper to md_uuid_equal() and do the same for > md_sb_equal(). > > Signed-off-by: Amir Go

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-18 Thread Balbir Singh
On Fri, May 19, 2017 at 3:30 AM, Michal Hocko wrote: > On Thu 18-05-17 17:28:04, Roman Gushchin wrote: >> Traditionally, the OOM killer is operating on a process level. >> Under oom conditions, it finds a process with the highest oom score >> and kills it. >> >> This behavior doesn't suit well the

Re: objective rules for architecture removal

2017-05-18 Thread Linus Torvalds
On Thu, May 18, 2017 at 7:45 AM, Waldemar Brodkorb wrote: > > are there any objective rules for removal of architecture support from > the Linux kernel tree? Objective rules for that in particular? No. We do have the whole "no regressions" rule, which covers pretty much anything except for bad s

Re: [PATCH v2] tracing: Make sure RCU is watching before calling a stack trace

2017-05-18 Thread Paul E. McKenney
On Thu, May 18, 2017 at 12:39:14PM -0400, Steven Rostedt wrote: > On Thu, 18 May 2017 08:47:11 -0700 > "Paul E. McKenney" wrote: > > > On Thu, May 18, 2017 at 09:38:09AM -0400, Steven Rostedt wrote: > > > > > > From: "Steven Rostedt (VMware)" > > > > > > As stack tracing now requires "rcu watc

Re: [PATCH] net1080: Remove unused function nc_dump_ttl()

2017-05-18 Thread David Miller
From: Matthias Kaehlcke Date: Thu, 18 May 2017 10:57:19 -0700 > The function is not used, removing it fixes the following warning when > building with clang: > > drivers/net/usb/net1080.c:271:20: error: unused function > 'nc_dump_ttl' [-Werror,-Wunused-function] > > Also remove the definiti

Re: [PATCH] r8152: Remove unused function usb_ocp_read()

2017-05-18 Thread David Miller
From: Matthias Kaehlcke Date: Thu, 18 May 2017 10:45:33 -0700 > The function is not used, removing it fixes the following warning when > building with clang: > > drivers/net/usb/r8152.c:825:5: error: unused function 'usb_ocp_read' > [-Werror,-Wunused-function] > > Signed-off-by: Matthias Ka

Re: [PATCH v4 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

2017-05-18 Thread Jingoo Han
On Thursday, May 18, 2017 5:17 AM, Song Xiaowei wrote: > > Hisilicon PCIe Driver shares the common functions fo PCIe dw-host > > The poweron functions is developed on hi3660 SoC, while Others Functions > are common for Kirin series SoCs. > > Lowpower(L1ss and SR), hotplug and MSI feature are not

Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral

2017-05-18 Thread Geert Uytterhoeven
Hi Florian, On Thu, May 18, 2017 at 8:25 PM, Florian Fainelli wrote: > On 05/18/2017 05:59 AM, Geert Uytterhoeven wrote: >> If an Ethernet PHY is initialized before the interrupt controller it is >> connected to, a message like the following is printed: >> >> irq: no irq domain found for /int

Re: [PATCH] perf: libdw support for powerpc

2017-05-18 Thread Paolo Bonzini
On 18/05/2017 20:19, Naveen N. Rao wrote: > Paolo Bonzini wrote: >> The ARM and x86 architectures already use libdw, and it is useful to >> have as much common code for the unwinder as possible. Porting PPC >> to libdw only needs an architecture-specific hook to move the register >> state from p

Re: [PATCH 0/4] KVM: x86: fix bugs reported by Dan Carpenter

2017-05-18 Thread Paolo Bonzini
On 18/05/2017 19:37, Radim Krčmář wrote: > It would be possible to make reproducers for the first three patches, > but they happen under circumstances too remote from normal use, so I > didn't test them like that. :) > > > Radim Krčmář (4): > KVM: nVMX: fix nested_vmx_check_vmptr failure path

Re: [PATCH 4/4] ARM: multi_v7_defconfig: Switch AXP20x driver from module to built-in

2017-05-18 Thread Kevin Hilman
On Fri, Mar 17, 2017 at 10:39 AM, Kevin Hilman wrote: > On Fri, Feb 10, 2017 at 12:42 AM, Maxime Ripard > wrote: >> On Wed, Feb 08, 2017 at 11:09:31PM +0100, Rask Ingemann Lambertsen wrote: >>> The AXP20X regulator support is currently built as a module, which means >>> it's not available until t

Re: [PATCH 5/5] arm64: dts: qcom: Collapse usb support into one node

2017-05-18 Thread Bjorn Andersson
On Thu 26 Jan 16:47 PST 2017, Stephen Boyd wrote: > We currently have three device nodes for the same USB hardware > block, as evident by the reuse of the same reg address multiple > times. Now that the chipidea driver fully supports OTG with the > MSM wrapper we can collapse all these nodes into

Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-05-18 Thread Christoph Lameter
On Thu, 18 May 2017, Michal Hocko wrote: > > See above. OOM Kill in a cpuset does not kill an innocent task but a task > > that does an allocation in that specific context meaning a task in that > > cpuset that also has a memory policty. > > No, the oom killer will chose the largest task in the sp

[PATCH] selinux: Mark array 'labeling_behaviors' as __maybe_unused

2017-05-18 Thread Matthias Kaehlcke
The array is only referenced in an ARRAY_SIZE() statement. Adding the attribute fixes the following warning when building with clang: security/selinux/hooks.c:338:20: error: variable 'labeling_behaviors' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] Signe

[media-dvb-usb-v2] question about value overwrite

2017-05-18 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1226934 I ran into the following piece of code at drivers/media/usb/dvb-usb-v2/lmedm04.c:205 205static int lme2510_stream_restart(struct dvb_usb_device *d) 206{ 207struct lme2510_state *st = d->priv; 208u8 all_pids[] = LME_ALL_P

Re: [PATCH 08/18] xen/pvcalls: implement connect command

2017-05-18 Thread Stefano Stabellini
On Tue, 16 May 2017, Boris Ostrovsky wrote: > >>> + ret = xenbus_map_ring_valloc(dev, &req->u.connect.ref, 1, &page); > >>> + if (ret < 0) { > >>> + sock_release(map->sock); > >>> + kfree(map); > >>> + goto out; > >>> + } > >>> + map->ring = page; > >>> + map->ring_order = m

[PATCH 2/4] Hyper-V vPCI: Use page allocation for hbus structure

2017-05-18 Thread Jork Loeser
From: Jork Loeser The hv_pcibus_device structure contains an in-memory hypercall argument that must not cross a page boundary. Allocate the structure as a page to ensure that. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 12 +--- 1 files changed, 9 insertions(+), 3

Hyper-V vPCI: Use current vPCI protocol

2017-05-18 Thread Jork Loeser
Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. [PATCH 1/4] Hyper-V vPCI: Minor format and semantic fix [PATCH 2/4] Hyper-V vPCI: Use page allocation for hbus structure [PATCH 3/4] Hyper-V vPCI: Add vPCI version protoc

[PATCH 1/4] Hyper-V vPCI: Minor format and semantic fix

2017-05-18 Thread Jork Loeser
From: Jork Loeser Fix comment formatting and use proper integer fields. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 8493638..7b

[PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-18 Thread Jork Loeser
From: Jork Loeser Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI protocol, fixing MSI creation and retargeting issues. Signed-off-by: Jork Loeser --- arch/x86/include/uapi/asm/hyperv.h |6 + drivers/pci/host/pci-hyperv.c | 297 ++

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg wrote: > The device DROM contains name of the vendor and device among other > things. Extract this information and expose it to the userspace via two > new attributes. One nit below. > + switch (header->type) { > + case TB_DROM_ENTRY_P

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-18 Thread Roman Gushchin
On Fri, May 19, 2017 at 04:37:27AM +1000, Balbir Singh wrote: > On Fri, May 19, 2017 at 3:30 AM, Michal Hocko wrote: > > On Thu 18-05-17 17:28:04, Roman Gushchin wrote: > >> Traditionally, the OOM killer is operating on a process level. > >> Under oom conditions, it finds a process with the highes

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-18 Thread Johannes Weiner
On Fri, May 19, 2017 at 04:37:27AM +1000, Balbir Singh wrote: > On Fri, May 19, 2017 at 3:30 AM, Michal Hocko wrote: > > On Thu 18-05-17 17:28:04, Roman Gushchin wrote: > >> Traditionally, the OOM killer is operating on a process level. > >> Under oom conditions, it finds a process with the highes

Re: [PATCH 0/4] KVM: x86: fix bugs reported by Dan Carpenter

2017-05-18 Thread Radim Krčmář
2017-05-18 20:52+0200, Paolo Bonzini: > On 18/05/2017 19:37, Radim Krčmář wrote: > > It would be possible to make reproducers for the first three patches, > > but they happen under circumstances too remote from normal use, so I > > didn't test them like that. :) > > > > > > Radim Krčmář (4): > >

[PATCH 3/4] Hyper-V vPCI: Add vPCI version protocol negotiation

2017-05-18 Thread Jork Loeser
From: Jork Loeser Hyper-V vPCI offers different protocol versions. This patch creates the the infra for negotiating the one to use. Signed-off-by: Jork Loeser --- drivers/pci/host/pci-hyperv.c | 72 +--- 1 files changed, 52 insertions(+), 20 deletions(-)

Re: [PATCH v2] tracing: Make sure RCU is watching before calling a stack trace

2017-05-18 Thread Steven Rostedt
On Thu, 18 May 2017 11:45:28 -0700 "Paul E. McKenney" wrote: > On Thu, May 18, 2017 at 12:39:14PM -0400, Steven Rostedt wrote: > > On Thu, 18 May 2017 08:47:11 -0700 > > "Paul E. McKenney" wrote: > > > > > On Thu, May 18, 2017 at 09:38:09AM -0400, Steven Rostedt wrote: > > > > > > > > From

[PATCH V2 0/2] load_balance() fixes for affinity

2017-05-18 Thread Jeffrey Hugo
We noticed in testing that affined workloads do not provide consistent performance under certain circumstances. To isolate the issue, we began testing with a representative CPU workload. In some cases the CPU workload results would vary by a large percentage from run to run. We used JTAG and schedu

[PATCH V2 2/2] sched/fair: Remove group imbalance from calculate_imbalance()

2017-05-18 Thread Jeffrey Hugo
The group_imbalance path in calculate_imbalance() made sense when it was added back in 2007 with commit 908a7c1b9b80 ("sched: fix improper load balance across sched domain") because busiest->load_per_task factored into the amount of imbalance that was calculated. That is not the case today. The gr

[PATCH] sched/fair: Fix load_balance() affinity redo path

2017-05-18 Thread Jeffrey Hugo
If load_balance() fails to migrate any tasks because all tasks were affined, load_balance() removes the source cpu from consideration and attempts to redo and balance among the new subset of cpus. There is a bug in this code path where the algorithm considers all active cpus in the system (minus t

[PATCH 0/7] generate full callchain cursor entries for inlined frames

2017-05-18 Thread Milian Wolff
This series of patches completely reworks the way inline frames are handled. Instead of querying for the inline nodes on-demand in the individual tools, we now create proper callchain nodes for inlined frames. The advantages this approach brings are numerous: - less duplicated code in the individu

[PATCH 1/7] perf report: remove code to handle inline frames from browsers

2017-05-18 Thread Milian Wolff
A follow-up commit will make inline frames first-class citizens in the callchain, thereby obsoleting all of this special code. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/ui/browsers/hists.c | 183 +

[PATCH 5/7] perf report: fall-back to function name comparison for -g srcline

2017-05-18 Thread Milian Wolff
When a callchain entry has no srcline available, we ended up comparing the instruction pointer. I consider this to be not too useful. Rather, I think we should group the entries by function name, which this patch adds. For people who want to split the data on the IP boundary, using `-g address` is

Re: [PATCH] of_mdio: Fix broken PHY IRQ in case of probe deferral

2017-05-18 Thread Andrew Lunn
> > This most certainly works fine in the simple case where you have one PHY > > hanging off the MDIO bus, now what happens if you have several? > > > > Presumably, the first PHY that returns EPROBE_DEFER will make the entire > > bus registration return EPROB_DEFER as well, and so on, and so forth,

[PATCH 7/7] perf script: mark inlined frames and do not print DSO for them

2017-05-18 Thread Milian Wolff
Instead of showing the (repeated) DSO name of the non-inlined frame, we now show the "(inlined)" suffix instead. Before: 214f7 __hypot_finite (/usr/lib/libm-2.25.so) ace3 hypot (/usr/lib/libm-2.25.so) std::__complex_abs (/home/milian

Re: [PATCH 22/24] thunderbolt: Add support for host and device NVM firmware upgrade

2017-05-18 Thread Andy Shevchenko
On Thu, May 18, 2017 at 5:39 PM, Mika Westerberg wrote: > Starting from Intel Falcon Ridge the NVM firmware can be upgraded by > using DMA configuration based mailbox commands. If we detect that the > host or device (device support starts from Intel Alpine Ridge) has the > DMA configuration based

[PATCH 6/7] perf report: mark inlined frames in output by " (inlined)" suffix

2017-05-18 Thread Milian Wolff
The original patch that introduced inline frame output in the various browsers used this suffix already. The new centralized approach that uses fake symbols for inlined frames was missing this approach so far. Instead of changing the symbol name itself, we only print the suffix where needed. This

[PATCH 3/7] perf report: create real callchain entries for inlined frames

2017-05-18 Thread Milian Wolff
The inlined frames use a fake symbol that is tracked in a special map inside the dso, which is always sorted by name. All other entries of the symbol beside the function name are unused for inline frames. The advantage of this approach is that all existing users of the callchain API can now transpa

[PATCH 4/7] perf report: use srcline from inlined frames

2017-05-18 Thread Milian Wolff
Instead of looking up the srcline based on the IP associated with a given callchain entry, add a new srcline member and use that. This member is set either based on the IP for non-inlined frames, or uses the DWARF data for inlined frames. To ensure we don't duplicate the work for inlined frames, a

<    5   6   7   8   9   10   11   12   13   14   >