Re: [BUG nohz]: wrong user and system time accounting

2017-03-23 Thread Luiz Capitulino
On Thu, 23 Mar 2017 21:08:38 -0400 Rik van Riel wrote: > On Thu, 2017-03-23 at 21:05 -0400, Luiz Capitulino wrote: > > On Thu, 23 Mar 2017 20:56:02 -0400 > > Rik van Riel wrote: > > > > > On Thu, 2017-03-23 at 16:55 -0400, Luiz Capitulino wrote: > > > > When there are two or more tasks exec

Re: [RFC][PATCH v3 2/2] cpufreq: schedutil: Avoid reducing frequency of busy CPUs prematurely

2017-03-23 Thread Rafael J. Wysocki
On Thu, Mar 23, 2017 at 8:26 PM, Sai Gurrappadi wrote: > Hi Rafael, Hi, > On 03/21/2017 04:08 PM, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki > > > >> >> That has been attributed to CPU utilization metric updates on task >> migration that cause the total utilization value for the CPU t

[GIT PULL] Power management fixes for v4.11-rc4

2017-03-23 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.11-rc4 with top-most commit 90ff2b729e181fba628b854eac2097e5ccc22e66 Merge branch 'pm-cpuidle-fixes' on top of commit 97da3854c526d3a6ee05c849c96e48d21527606c Linux 4.11-rc3 to rec

[ANNOUNCE] Linux Security Summit 2017 - CFP

2017-03-23 Thread James Morris
== ANNOUNCEMENT AND CALL FOR PARTICIPATION LINUX SECURITY SUMMIT 2017 14-15 September LO

Re: [PATCH v2 1/5] PCI: rockchip: fix sign issues for current limits

2017-03-23 Thread Shawn Lin
Hi Bjorn, On 2017/3/24 6:33, Brian Norris wrote: On Thu, Mar 23, 2017 at 05:27:17PM -0500, Bjorn Helgaas wrote: On Thu, Mar 09, 2017 at 06:46:13PM -0800, Brian Norris wrote: The regulator framework can return negative error codes via regulator_get_current_limit() for regulators that don't prov

Re: [net-next PATCH v2 5/8] net: Track start of busy loop instead of when it should end

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:37 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > The last bit I changed is to move from using a shift by 10 to just using > NSEC_PER_USEC and using multiplication for any run time calculations and > division for a few compile time ones. This should be more a

Re: linux-next: manual merge of the net-next tree with Linus' tree

2017-03-23 Thread Alexei Starovoitov
On 3/23/17 5:10 PM, David Miller wrote: From: Stephen Rothwell Date: Fri, 24 Mar 2017 11:05:14 +1100 Hi all, Today's linux-next merge of the net-next tree got a conflict in: kernel/bpf/hashtab.c between commit: 8c290e60fa2a ("bpf: fix hashmap extra_elems logic") from Linus' tree and c

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread Pasha Tatashin
On 03/23/2017 07:47 PM, Pasha Tatashin wrote: How long does it take if we just don't zero this memory at all? We seem to be initialising most of struct page in __init_single_page(), so it seems like a lot of additional complexity to conditionally zero the rest of struct page. Alternatively,

Re: [PATCH v5 1/6] mtd: spi-nor: introduce more SPI protocols and the Dual Transfer Mode

2017-03-23 Thread Cyrille Pitchen
Hi Cédic, Le 23/03/2017 à 16:13, Cédric Le Goater a écrit : > On 03/23/2017 12:33 AM, Cyrille Pitchen wrote: >> This patch changes the prototype of spi_nor_scan(): its 3rd parameter >> is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor >> framework about the actual hardware

Re: [BUG nohz]: wrong user and system time accounting

2017-03-23 Thread Rik van Riel
On Thu, 2017-03-23 at 21:05 -0400, Luiz Capitulino wrote: > On Thu, 23 Mar 2017 20:56:02 -0400 > Rik van Riel wrote: > > > On Thu, 2017-03-23 at 16:55 -0400, Luiz Capitulino wrote: > > > When there are two or more tasks executing in user-space and > > > taking 100% of a nohz_full CPU, top reports

Re: [BUG nohz]: wrong user and system time accounting

2017-03-23 Thread Luiz Capitulino
On Thu, 23 Mar 2017 20:56:02 -0400 Rik van Riel wrote: > On Thu, 2017-03-23 at 16:55 -0400, Luiz Capitulino wrote: > > When there are two or more tasks executing in user-space and > > taking 100% of a nohz_full CPU, top reports 70% system time > > and 30% user time utilization. Sometimes I'm even

Re: [PATCH net-next v4 1/2] New kernel function to get IP overhead on a socket.

2017-03-23 Thread kbuild test robot
Hi Parameswaran, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/R-Parameswaran/New-kernel-function-to-get-IP-overhead-on-a-socket/20170324-065003 config: x86_64-randconfig-s1-03240701 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 re

Re: [net-next PATCH v2 4/8] net: Change return type of sk_busy_loop from bool to void

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:37 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > >From what I can tell there is only a couple spots where we are actually > checking the return value of sk_busy_loop. As there are only a few > consumers of that data, and the data being checked for can be repla

Re: [net-next PATCH v2 3/8] net: Only define skb_mark_napi_id in one spot instead of two

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:36 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > Instead of defining two versions of skb_mark_napi_id I think it is more > readable to just match the format of the sk_mark_napi_id functions and just > wrap the contents of the function instead of defining two v

[PATCH 0/8] patches for fpga

2017-03-23 Thread Alan Tull
Hi Greg, Please take these patches that add FPGA programming via Xilinx slave-serial SPI and Altera PR IP reconfiguration IP. Also some cleanup and adding fpga bindings documentation to the MAINTAINERS file. The one patch by me is needed for the Altera PR IP patchset. Thanks, Alan Alan Tull (1)

[PATCH 7/8] fpga pr ip: Platform driver for Altera Partial Reconfiguration IP.

2017-03-23 Thread Alan Tull
From: Matthew Gerlach This adds a platform bus driver for a fpga-mgr driver that uses the Altera Partial Reconfiguration IP component. Signed-off-by: Matthew Gerlach Acked-by: Alan Tull --- drivers/fpga/Kconfig | 7 drivers/fpga/Makefile | 1 + drivers/

[PATCH 4/8] fpga: add config complete timeout

2017-03-23 Thread Alan Tull
From: Alan Tull Adding timeout for maximum allowed time for FPGA to go to operating mode after a FPGA region has been programmed. Signed-off-by: Alan Tull --- drivers/fpga/fpga-region.c| 3 +++ include/linux/fpga/fpga-mgr.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/fp

[PATCH 2/8] dt: bindings: fpga: add xilinx slave-serial binding description

2017-03-23 Thread Alan Tull
From: Anatolij Gustschin Add dt binding documentation details for Xilinx FPGA configuration over slave serial interface. Signed-off-by: Anatolij Gustschin Acked-by: Moritz Fischer Acked-by: Rob Herring Acked-by: Michal Simek Acked-by: Alan Tull --- .../bindings/fpga/xilinx-slave-serial.txt

[PATCH 6/8] fpga dt: bindings for Altera Partial Reconfiguration IP.

2017-03-23 Thread Alan Tull
From: Matthew Gerlach Device Tree bindings for Altera Partial Reconfiguration IP. Signed-off-by: Matthew Gerlach Acked-by: Rob Herring Acked-by: Alan Tull --- Documentation/devicetree/bindings/fpga/altera-pr-ip.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Docum

Re: [net-next PATCH v2 2/8] tcp: Record Rx hash and NAPI ID in tcp_child_process

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:36 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > While working on some recent busy poll changes we found that child sockets > were being instantiated without NAPI ID being set. In our first attempt to > fix it, it was suggested that we should just pull progra

Re: [PATCHv2 1/1] mmc: core: export emmc revision via sysfs

2017-03-23 Thread Kyungmin Park
On Thu, Mar 23, 2017 at 6:03 PM, Ulf Hansson wrote: > On 23 March 2017 at 01:18, Jin Qian wrote: >> Extend sysfs to access ext_csd revision information. it can be used secure erase feature for each revision. so it's helpful to support at sysfs node. Acked-by: Kyungmin Park >> >> Signed-off-by:

Re: [PATCH] drm/fb-helper: Allow var->x/yres(_virtual) < fb->width/height again

2017-03-23 Thread Stefan Agner
On 2017-03-23 01:53, Michel Dänzer wrote: > From: Michel Dänzer > > Otherwise this can also prevent modesets e.g. for switching VTs, when > multiple monitors with different native resolutions are connected. When changing resolution a regular fbdev driver also changes display timing accordingly (

Re: [net-next PATCH v2 8/8] net: Introduce SO_INCOMING_NAPI_ID

2017-03-23 Thread Alexander Duyck
On Thu, Mar 23, 2017 at 3:43 PM, Andy Lutomirski wrote: > On Thu, Mar 23, 2017 at 2:38 PM, Alexander Duyck > wrote: >> From: Sridhar Samudrala >> >> This socket option returns the NAPI ID associated with the queue on which >> the last frame is received. This information can be used by the apps t

Re: [PATCH v3 2/9] bcache: Don't reinvent the wheel but use existing llist API

2017-03-23 Thread Byungchul Park
On Tue, Feb 14, 2017 at 04:26:23PM +0900, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. +cc ax...@fb.com > > Signed-off-by: Byungchul Park > --- > drivers/md/bcache/closure.c | 17 +++-- > 1 file changed, 3 insertions(+), 14 deletio

Re: [BUG nohz]: wrong user and system time accounting

2017-03-23 Thread Rik van Riel
On Thu, 2017-03-23 at 16:55 -0400, Luiz Capitulino wrote: > When there are two or more tasks executing in user-space and > taking 100% of a nohz_full CPU, top reports 70% system time > and 30% user time utilization. Sometimes I'm even able to get > 100% system time and 0% user time. > > This was r

[PATCH] x86/mce: Don't print all MCEs when mcelog is active

2017-03-23 Thread Andi Kleen
From: Andi Kleen Since cd9c57c x86/MCE: Dump MCE to dmesg if no consumers in 4.9 all MCEs are printed even when mcelog is running. This fixes this regression to not print again when mcelog is running, because it already takes care of the logging. This was hit by a lot of people, so it's good t

Re: [PATCH 3/4] zram: implement deduplication in zram

2017-03-23 Thread Minchan Kim
On Thu, Mar 23, 2017 at 12:04:23PM +0900, Joonsoo Kim wrote: > On Wed, Mar 22, 2017 at 08:41:21AM +0900, Minchan Kim wrote: > > Hi Joonsoo, > > > > On Thu, Mar 16, 2017 at 11:46:37AM +0900, js1...@gmail.com wrote: > > > From: Joonsoo Kim > > > > > > This patch implements deduplication feature in

Re: [PATCH 1/4] mm/zsmalloc: always set movable/highmem flag to the zspage

2017-03-23 Thread Minchan Kim
Hi Joonsoo, On Thu, Mar 23, 2017 at 11:10:23AM +0900, Joonsoo Kim wrote: > On Tue, Mar 21, 2017 at 08:10:05PM +0900, Minchan Kim wrote: > > Hi Joonsoo, > > > > On Thu, Mar 16, 2017 at 11:46:35AM +0900, js1...@gmail.com wrote: > > > From: Joonsoo Kim > > > > > > Zspage is always movable and is u

[PATCH v4 2/2] drm/panel: add innolux,p079zca panel driver

2017-03-23 Thread Chris Zhong
Support Innolux P079ZCA 7.85" 768x1024 TFT LCD panel, it is a MIPI DSI panel. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Tested-by: Brian Norris --- Changes in v4: - remove backlight check after probe - add bpc info Changes in v3: - printk err after regulator_disable(innolux->supply)

[PATCH] perf, tools, script: Skip locking overhead in perf script

2017-03-23 Thread Andi Kleen
From: Andi Kleen I was tired of seeing ~10% locking overhead in perf script while doing larger PT decodes. perf script doesn't need any locking because it is single threaded. Nearly all of it comes from looking at the maps cache. I added a global variable to indicate perf is running single thread

[PATCH v4 1/2] dt-bindings: Add INNOLUX P079ZCA panel bindings

2017-03-23 Thread Chris Zhong
The Innolux P079ZCA is a 7.85" panel with a 768X1024 resolution and connected to DSI using four lanes. Signed-off-by: Chris Zhong Reviewed-by: Brian Norris --- Changes in v4: None Changes in v3: None Changes in v2: None .../bindings/display/panel/innolux,p079zca.txt | 23 +

[PATCH 8/8] MAINTAINERS: Add file patterns for fpga device tree bindings

2017-03-23 Thread Alan Tull
From: Geert Uytterhoeven Submitters of device tree binding documentation may forget to CC the subsystem maintainer if this is missing. Signed-off-by: Geert Uytterhoeven Acked-by: Moritz Fischer Cc: Alan Tull Cc: Moritz Fischer Cc: linux-f...@vger.kernel.org Acked-by: Alan Tull --- MAINTAIN

Re: [PATCH v1 RESEND 1/2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-23 Thread Baoquan He
Hi, Ping! Since our kaslr mm back port has been held to wait for this upstream fix, and post deadline is very close, can this patch be merged or picked up into tip-bot treeu? This is an obvious code bug, it has risk to cause kexec/kdump boot failure, and the current code change won't bring other

[PATCH 1/8] fpga: altera_freeze_bridge: Constify ops

2017-03-23 Thread Alan Tull
From: Moritz Fischer The ops are not changing, make them const. Signed-off-by: Moritz Fischer Cc: Alan Tull Cc: linux-kernel@vger.kernel.org Cc: linux-f...@vger.kernel.org Acked-by: Alan Tull --- drivers/fpga/altera-freeze-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 3/8] fpga manager: Add Xilinx slave serial SPI driver

2017-03-23 Thread Alan Tull
From: Anatolij Gustschin The driver loads FPGA firmware over SPI, using the "slave serial" configuration interface on Xilinx FPGAs. Signed-off-by: Anatolij Gustschin Acked-by: Michal Simek Reviewed-by: Moritz Fischer Acked-by: Alan Tull --- drivers/fpga/Kconfig | 7 ++ drivers/fpga/M

RE: [PATCH V7 5/7] ACPI: Delay the enumeration on the devices whose dependency has not met

2017-03-23 Thread Gabriele Paoloni
Hi Arnd > -Original Message- > From: linuxarm-boun...@huawei.com [mailto:linuxarm-boun...@huawei.com] > On Behalf Of Gabriele Paoloni > Sent: 16 March 2017 16:14 > To: Arnd Bergmann; Yuanzhichang > Cc: Mark Rutland; Benjamin Herrenschmidt; Rafael Wysocki; linux-pci; > Will Deacon; Linuxarm

[PATCH 5/8] fpga pr ip: Core driver support for Altera Partial Reconfiguration IP.

2017-03-23 Thread Alan Tull
From: Matthew Gerlach Adding the core functions necessary for a fpga-mgr driver for the Altera Partial IP component. It is intended for these functions to be used by the various bus implementations like the platform bus or the PCIe bus. Signed-off-by: Matthew Gerlach Acked-by: Alan Tull ---

RE: [PATCH] e1000e: fix timing for 82579 Gigabit Ethernet controller

2017-03-23 Thread Brown, Aaron F
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Bernd Faust > Sent: Thursday, February 16, 2017 10:42 AM > To: Kirsher, Jeffrey T ; Lubetkin, YanirX > ; intel-wired-...@lists.osuosl.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Bernd Fa

Re: linux-next: manual merge of the net-next tree with Linus' tree

2017-03-23 Thread David Miller
From: Stephen Rothwell Date: Fri, 24 Mar 2017 11:05:14 +1100 > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > kernel/bpf/hashtab.c > > between commit: > > 8c290e60fa2a ("bpf: fix hashmap extra_elems logic") > > from Linus' tree and commit: > > bcc6b1b

[PATCH v3] block: trace completion of all bios.

2017-03-23 Thread NeilBrown
Currently only dm and md/raid5 bios trigger trace_block_bio_complete(). Now that we have bio_chain() and bio_inc_remaining(), it is not possible, in general, for a driver to know when the bio is really complete. Only bio_endio() knows that. So move the trace_block_bio_complete() call to bio_end

Re: [PATCH v2] block: trace completion of all bios.

2017-03-23 Thread NeilBrown
On Thu, Mar 23 2017, Ming Lei wrote: > On Thu, Mar 23, 2017 at 05:29:02PM +1100, NeilBrown wrote: >> >> /** >> + * bio_endio_notrace - end I/O on a bio without tracing >> + * @bio:bio >> + * >> + * Description: >> + * bio_endio_notrace() will end I/O on the whole bio. >> + * bio_endio_no

linux-next: manual merge of the net-next tree with Linus' tree

2017-03-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: kernel/bpf/hashtab.c between commit: 8c290e60fa2a ("bpf: fix hashmap extra_elems logic") from Linus' tree and commit: bcc6b1b7ebf8 ("bpf: Add hash of maps support") from the net-next tree. I fixed it up (see belo

Re: [PATCH net-next 1/2] net: dwc-xlgmac: declaration of dual license in headers

2017-03-23 Thread David Miller
From: Jie Deng Date: Thu, 23 Mar 2017 12:03:45 +0800 > The driver "dwc-xlgmac" is dual-licensed. This patch adds > declaration of dual license in file headers. > > Signed-off-by: Jie Deng Applied.

Re: [PATCH net-next 2/2] net: dwc-xlgmac: use dual license

2017-03-23 Thread David Miller
From: Jie Deng Date: Thu, 23 Mar 2017 12:03:46 +0800 > The driver "dwc-xlgmac" is dual-licensed. > Declare the dual license with MODULE_LICENSE(). > > Signed-off-by: Jie Deng Applied.

[PATCH] rtc: ds1307: support m41t0 variant

2017-03-23 Thread Stefan Agner
The m41t0 variant is very similar to the already supported m41t00 variant, with the notable exception of the oscillator fail bit. The data sheet notes: If the oscillator fail (OF) bit is internally set to a '1,' this indicates that the oscillator has either stopped, or was stopped for some p

Re: [PATCH v4 1/2] dt: bindings: fpga: add xilinx slave-serial binding description

2017-03-23 Thread Alan Tull
On Thu, Mar 16, 2017 at 6:01 AM, Michal Simek wrote: > On 28.2.2017 17:40, Anatolij Gustschin wrote: >> Add dt binding documentation details for Xilinx FPGA configuration >> over slave serial interface. >> >> Signed-off-by: Anatolij Gustschin >> Acked-by: Moritz Fischer >> Acked-by: Rob Herring

Re: [PATCH 1/3] soc: qcom: smd: Transition client drivers from smd to rpmsg

2017-03-23 Thread David Miller
From: Bjorn Andersson Date: Wed, 22 Mar 2017 14:57:33 -0700 > On Wed 22 Mar 11:44 PDT 2017, David Miller wrote: > >> From: Bjorn Andersson >> Date: Mon, 20 Mar 2017 16:35:42 -0700 >> >> What is the status of the Kconfig dependency fix and how will I be >> getting it? >> > > There are two Kco

Re: [PATCH v3 02/12] irqchip: mtk-sysirq: extend intpol base to arbitrary number

2017-03-23 Thread Mars Cheng
On Thu, 2017-03-23 at 16:25 +, Marc Zyngier wrote: > On 19/03/17 15:26, Mars Cheng wrote: > > Originally driver only supports one base. However, MT6797 has > > more than one bases to configure interrupt polarity. To support > > possible design change, here comes a solution to use arbitrary > >

Re: [PATCH v4 2/2] fpga manager: Add Xilinx slave serial SPI driver

2017-03-23 Thread Alan Tull
On Thu, Mar 16, 2017 at 9:58 AM, Moritz Fischer wrote: > On Tue, Feb 28, 2017 at 8:40 AM, Anatolij Gustschin wrote: >> The driver loads FPGA firmware over SPI, using the "slave serial" >> configuration interface on Xilinx FPGAs. >> >> Signed-off-by: Anatolij Gustschin > Reviewed-by: Moritz Fisch

Re: [PATCH v3 00/12] Add Basic SoC support for MT6797

2017-03-23 Thread Mars Cheng
On Thu, 2017-03-23 at 15:24 +, Marc Zyngier wrote: > Hi Mars, > > On 23/03/17 00:46, Mars Cheng wrote: > > Hi Matthias, Rob, Marc, Stephen > > > > gentle ping for this patch set. > > I appreciate that you're eager to see this reviewed, but less than 4 > days between a posting and a reminder

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread Pasha Tatashin
On 03/23/2017 07:35 PM, David Miller wrote: From: Matthew Wilcox Date: Thu, 23 Mar 2017 16:26:38 -0700 On Thu, Mar 23, 2017 at 07:01:48PM -0400, Pavel Tatashin wrote: When deferred struct page initialization feature is enabled, we get a performance gain of initializing vmemmap in parallel a

Re: [RFC PATCH v0.2] PCI: Add support for tango PCIe host bridge

2017-03-23 Thread Mason
On 23/03/2017 18:03, Mason wrote: > The host bridge actually supports 256 MSIs. > > IIUC, what you suggested on IRC is that I support 256 in the driver, > and only read the status for *enabled* MSIs. > > Pseudo-code: > > for every 32-bit blob in the enabled bitmap > if the value is non-zero >

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread Pasha Tatashin
Hi Matthew, Thank you for your comment. If you look at the data, having memset() actually benefits initializing data. With base it takes: [ 66.148867] node 0 initialised, 128312523 pages in 7200ms With fix: [ 15.260634] node 0 initialised, 128312523 pages in 4190ms So 4.19s vs 7.2s for t

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread David Miller
From: Matthew Wilcox Date: Thu, 23 Mar 2017 16:26:38 -0700 > On Thu, Mar 23, 2017 at 07:01:48PM -0400, Pavel Tatashin wrote: >> When deferred struct page initialization feature is enabled, we get a >> performance gain of initializing vmemmap in parallel after other CPUs are >> started. However, w

Re: [PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-23 Thread Russell King - ARM Linux
On Thu, Mar 23, 2017 at 10:54:53PM +0100, Linus Walleij wrote: > Hm, I certainly want it... but it would be unreasonable of me to expect > Eric to cold-code a big upfront design for systems he can't even test > this on. > > What I would request would rather be: please do not put in any > immediate

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread Matthew Wilcox
On Thu, Mar 23, 2017 at 07:01:48PM -0400, Pavel Tatashin wrote: > When deferred struct page initialization feature is enabled, we get a > performance gain of initializing vmemmap in parallel after other CPUs are > started. However, we still zero the memory for vmemmap using one boot CPU. > This pat

Re: [PATCH] lib/syscall: Clear return values when no stack

2017-03-23 Thread Andy Lutomirski
On Thu, Mar 23, 2017 at 3:46 PM, Kees Cook wrote: > Commit aa1f1a639621 ("lib/syscall: Pin the task stack in collect_syscall()") > added logic to handle a process stack not existing, but left sp and pc > uninitialized, which can be later reported via /proc/$pid/syscall for zombie > processes, pote

Re: [PATCH v2 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Dmitry Torokhov
On Thu, Mar 23, 2017 at 3:07 PM, Rob Herring wrote: > On Thu, Mar 23, 2017 at 3:12 AM, Jeffy Chen wrote: >> Currently we only free the allocated resource struct when error. >> This would cause memory leak after pci_free_resource_list. >> >> Signed-off-by: Jeffy Chen >> --- >> >> Changes in v2: >

Re: [RFC] Add option to mount only a pids subset

2017-03-23 Thread Alexey Gladkov
On Thu, Mar 23, 2017 at 05:05:07PM +0100, Oleg Nesterov wrote: > Again, I can't really review this, I know nothing about vfs, but since > nobody else replied... Thanks anyway :) > On 03/20, Alexey Gladkov wrote: > > > > @@ -97,7 +169,23 @@ static struct dentry *proc_mount(struct > > file_system_

[v1 2/5] mm: defining memblock_virt_alloc_try_nid_raw

2017-03-23 Thread Pavel Tatashin
A new version of memblock_virt_alloc_* allocations: - Does not zero the allocated memory - Does not panic if request cannot be satisfied Signed-off-by: Pavel Tatashin Reviewed-by: Shannon Nelson --- include/linux/bootmem.h |3 +++ mm/memblock.c | 46 +

[v1 3/5] mm: add "zero" argument to vmemmap allocators

2017-03-23 Thread Pavel Tatashin
Allow clients to request non-zeroed memory from vmemmap allocator. The following two public function have a new boolean argument called zero: __vmemmap_alloc_block_buf() vmemmap_alloc_block() When zero is true, memory that is allocated by memblock allocator is zeroed (the current behavior), when

[v1 1/5] sparc64: simplify vmemmap_populate

2017-03-23 Thread Pavel Tatashin
Remove duplicating code, by using common functions vmemmap_pud_populate and vmemmap_pgd_populate functions. Signed-off-by: Pavel Tatashin Reviewed-by: Shannon Nelson --- arch/sparc/mm/init_64.c | 23 ++- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/arch/

[v1 0/5] parallelized "struct page" zeroing

2017-03-23 Thread Pavel Tatashin
When deferred struct page initialization feature is enabled, we get a performance gain of initializing vmemmap in parallel after other CPUs are started. However, we still zero the memory for vmemmap using one boot CPU. This patch-set fixes the memset-zeroing limitation by deferring it as well. Her

[v1 4/5] mm: zero struct pages during initialization

2017-03-23 Thread Pavel Tatashin
When deferred struct page initialization is enabled, do not expect that the memory that was allocated for struct pages was zeroed by the allocator. Zero it when "struct pages" are initialized. Also, a defined boolean VMEMMAP_ZERO is provided to tell platforms whether they should zero memory or can

[v1 5/5] mm: teach platforms not to zero struct pages memory

2017-03-23 Thread Pavel Tatashin
If we are using deferred struct page initialization feature, most of "struct page"es are getting initialized after other CPUs are started, and hence we are benefiting from doing this job in parallel. However, we are still zeroing all the memory that is allocated for "struct pages" using the boot CP

Re: linux-next: manual merge of the gpio tree with the input tree

2017-03-23 Thread Stephen Rothwell
Hi Dmitry, On Thu, 23 Mar 2017 09:30:49 -0700 Dmitry Torokhov wrote: > > I think the fix is trivial and if it does not both Stephen to carry it > on we'll let the other Linus resolve it in his tree when merging. I > think he prefers to have cross-tree merges only happen when it is > needed for d

Re: [net-next PATCH v2 0/8] Add busy poll support for epoll

2017-03-23 Thread Eric Dumazet
On Thu, Mar 23, 2017 at 3:38 PM, Alexander Duyck wrote: > On Thu, Mar 23, 2017 at 3:07 PM, Alexei Starovoitov >> it all sounds awesome, but i cannot quite visualize the impact. >> Can you post some sample code/minibenchmark and numbers before/after? >> >> Thanks! >> > > Anything specific you are

Re: [PATCH v3 3/3] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2017-03-23 Thread Byungchul Park
On Thu, Mar 23, 2017 at 07:08:24AM -0700, Steven Rostedt wrote: > On Thu, 23 Mar 2017 19:36:51 +0900 > Byungchul Park wrote: > > > On Thu, Mar 23, 2017 at 10:44:45AM +0100, Peter Zijlstra wrote: > > > On Thu, Mar 23, 2017 at 11:12:49AM +0900, Byungchul Park wrote: > > > > It would be better to

[PATCH] lib/syscall: Clear return values when no stack

2017-03-23 Thread Kees Cook
Commit aa1f1a639621 ("lib/syscall: Pin the task stack in collect_syscall()") added logic to handle a process stack not existing, but left sp and pc uninitialized, which can be later reported via /proc/$pid/syscall for zombie processes, potentially exposing kernel memory to userspace. Zombie /proc/

Re: [net-next PATCH v2 8/8] net: Introduce SO_INCOMING_NAPI_ID

2017-03-23 Thread Andy Lutomirski
On Thu, Mar 23, 2017 at 2:38 PM, Alexander Duyck wrote: > From: Sridhar Samudrala > > This socket option returns the NAPI ID associated with the queue on which > the last frame is received. This information can be used by the apps to > split the incoming flows among the threads based on the Rx qu

Re: [net-next PATCH v2 0/8] Add busy poll support for epoll

2017-03-23 Thread Alexander Duyck
On Thu, Mar 23, 2017 at 3:07 PM, Alexei Starovoitov wrote: > On Thu, Mar 23, 2017 at 02:36:29PM -0700, Alexander Duyck wrote: >> This is my second pass at trying to add support for busy polling when using >> epoll. It is pretty much a full rewrite as I have made serious changes to >> most of the p

Re: [PATCH 8/8] sched/deadline: Return the best satisfying affinity and dl in cpudl_find

2017-03-23 Thread Byungchul Park
On Thu, Mar 23, 2017 at 07:32:43PM +0900, Byungchul Park wrote: > cpudl_find() is used to find a cpu having the latest dl. The function > should return the latest cpu among ones satisfying task's affinity and > dl constraint, but current code gives up immediately and just return > fail when it fail

Re: [PATCH 0/8] sched/deadline: Return the best satisfying affinity and dl in cpudl_find

2017-03-23 Thread Byungchul Park
On Thu, Mar 23, 2017 at 07:32:35PM +0900, Byungchul Park wrote: > cpudl_find() is used to find a cpu having the latest dl. The function > should return the latest cpu among ones satisfying task's affinity and > dl constraint, but current code gives up immediately and just return > fail when it fail

Re: [PATCH v2 1/5] PCI: rockchip: fix sign issues for current limits

2017-03-23 Thread Brian Norris
On Thu, Mar 23, 2017 at 05:27:17PM -0500, Bjorn Helgaas wrote: > On Thu, Mar 09, 2017 at 06:46:13PM -0800, Brian Norris wrote: > > The regulator framework can return negative error codes via > > regulator_get_current_limit() for regulators that don't provide current > > information. The subsequent

Re: [PATCH 2/5] mfd: intel_soc_pmic: Select designware i2c-bus driver

2017-03-23 Thread Hans de Goede
Hi, On 23-03-17 17:46, Lee Jones wrote: On Wed, 22 Mar 2017, Andy Shevchenko wrote: On Wed, 2017-03-22 at 12:29 +0100, Hans de Goede wrote: The Crystal Cove PMIC provides an ACPI OPRegion handler, which must be available before other drivers using it are loaded, which is why INTEL_SOC_PMIC is

Re: [PATCH 2/2] MIPS: NI 169445 board support

2017-03-23 Thread Rob Herring
On Tue, Mar 14, 2017 at 11:13:23AM -0500, Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan > --- > Documentation/devicetree/bindings/mips/ni.txt | 7 ++ > MAINTAINERS | 8 ++ > arch/mips/boot/dts/

Re: [PATCH v2 1/5] PCI: rockchip: fix sign issues for current limits

2017-03-23 Thread Bjorn Helgaas
On Thu, Mar 09, 2017 at 06:46:13PM -0800, Brian Norris wrote: > The regulator framework can return negative error codes via > regulator_get_current_limit() for regulators that don't provide current > information. The subsequent check for postive values isn't very useful, > if the variable is unsign

Re: [net-next PATCH v2 6/8] net: Commonize busy polling code to focus on napi_id instead of socket

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:37 -0700, Alexander Duyck wrote: > From: Sridhar Samudrala > > Move the core functionality in sk_busy_loop() to napi_busy_loop() and > make it independent of sk. > > This enables re-using this function in epoll busy loop implementation. > > Signed-off-by: Sridhar Samudr

Re: [PATCH 00/46] SELinux: Fine-tuning for several function implementations

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 9:55 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 15 Jan 2017 15:15:14 +0100 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (46): Hi Markus, Thank you for your patience with this patc

Re: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-23 Thread Andi Kleen
On Thu, Mar 23, 2017 at 09:31:38PM +0100, Peter Zijlstra wrote: > On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > > From: Kan Liang > > > > When setting FREEZE_WHILE_SMM bit in IA32_DEBUGCTL, all performance > > counters will be effected. There is no way to do per-counter f

Re: [net-next PATCH v2 8/8] net: Introduce SO_INCOMING_NAPI_ID

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:38 -0700, Alexander Duyck wrote: > From: Sridhar Samudrala > > This socket option returns the NAPI ID associated with the queue on which > the last frame is received. This information can be used by the apps to > split the incoming flows among the threads based on the Rx

Re: [PATCH 23/46] selinux: Move an assignment for a pointer in range_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:23 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 21:00:45 +0100 > > Move the assignment for the local variable "r" behind a call of the > function "next_entry" at the beginning so that it will only be set > after a successful call. > > Sig

Re: [PATCH 22/46] selinux: Delete an unnecessary variable initialisation in range_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:22 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 20:40:12 +0100 > > The local variable "rt" will be set to an appropriate pointer a bit later. > Thus omit the explicit initialisation at the beginning which became > unnecessary with a previ

Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-03-23 Thread Jon Masters
Thanks :) :) :) -- Computer Architect | Sent from my 64-bit #ARM Powered phone > On Mar 23, 2017, at 18:14, Bjorn Helgaas wrote: > >> On Wed, Mar 22, 2017 at 11:34:00AM -0500, Bjorn Helgaas wrote: >>> On Wed, Mar 22, 2017 at 12:25:39PM -0400, Jon Masters wrote: On 03/22/2017 10:48 AM, Bjo

Re: [PATCH] staging: wilc1000: use kernel define byte order macros

2017-03-23 Thread Robert Perry Hooker
Well, yes, all data is 'endian' one way or another, right? I guess the byte order of the tx/rx_buffers is host-endian (which could be big), or _maybe_ network-endian... Regards, Perry On Thu, 2017-03-23 at 11:33 +0300, Dan Carpenter wrote: > On Wed, Mar 22, 2017 at 07:53:28PM -0600, Robert Perry

Re: [PATCH 21/46] selinux: Two function calls less in range_read() after error detection

2017-03-23 Thread Paul Moore
On Tue, Jan 17, 2017 at 11:35 AM, Casey Schaufler wrote: > On 1/15/2017 7:21 AM, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Sat, 14 Jan 2017 20:20:15 +0100 >> >> Adjust a jump target to avoid two calls of the function "kfree" at the end >> after a memory allocation failed for the l

Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-03-23 Thread Bjorn Helgaas
On Wed, Mar 22, 2017 at 11:34:00AM -0500, Bjorn Helgaas wrote: > On Wed, Mar 22, 2017 at 12:25:39PM -0400, Jon Masters wrote: > > On 03/22/2017 10:48 AM, Bjorn Helgaas wrote: > > > On Wed, Mar 22, 2017 at 10:28:27AM -0400, Jon Masters wrote: > > >> On 03/21/2017 10:56 AM, David Daney wrote: > > >

Re: linux-next: unable to fetch the watchdog tree

2017-03-23 Thread Stephen Rothwell
Hi Wim, On Mon, 5 Dec 2016 09:39:34 +1100 Stephen Rothwell wrote: > > On Tue, 22 Nov 2016 09:49:19 +1100 Stephen Rothwell > wrote: > > > > On Mon, 14 Nov 2016 16:26:16 +0100 Wim Van Sebroeck wrote: > > > > > > > > This has been fixed. Thanks for notifying me about it. > > > > > > > Fo

Re: [PATCH 20/46] selinux: Move four assignments for the variable "rc" in range_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:20 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 19:55:00 +0100 > > One local variable was set to an error code in four cases before > a concrete error situation was detected. Thus move the corresponding > assignments into if branches to i

Re: [PATCH 19/46] selinux: Return directly after a failed next_entry() in range_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:19 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 19:35:59 +0100 > > Return directly after a call of the function "next_entry" failed > at the beginning. > > Signed-off-by: Markus Elfring > --- > security/selinux/ss/policydb.c | 2 +- > 1

[PATCH 1/2 v5] pci-hyperv: properly handle pci bus remove

2017-03-23 Thread Long Li
From: Long Li hv_pci_devices_present is called in hv_pci_remove when we remove a PCI device from host (e.g. by disabling SRIOV on a device). In hv_pci_remove, the bus is already removed before the call, so we don't need to rescan the bus in the workqueue scheduled from hv_pci_devices_present. By

[PATCH 2/2 v5] pci-hyperv: lock pci bus on device eject

2017-03-23 Thread Long Li
From: Long Li A PCI_EJECT message can arrive at the same time we are calling pci_scan_child_bus in the workqueue for the previous PCI_BUS_RELATIONS message or in create_root_hv_pci_bus(), in this case we could potentially modify the bus from multiple places. Properly lock the bus access. Thanks

Re: [PATCH 18/46] selinux: One function call less in filename_trans_read() after error detection

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:18 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 19:19:42 +0100 > > Adjust a jump target to avoid a function call at the end after a memory > allocation failed for the local variable "ft". > > Signed-off-by: Markus Elfring > --- > securi

Re: [PATCH 17/46] selinux: Delete an unnecessary variable assignment in filename_trans_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:17 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 19:02:42 +0100 > > The local variable "ft" was set to a null pointer despite of an > immediate reassignment. > Thus remove this statement from the beginning of a loop. > > Signed-off-by: Mar

Re: [RFC][PATCH 2/2] cpufreq: schedutil: Force max frequency on busy CPUs

2017-03-23 Thread Vincent Guittot
On 23 March 2017 at 00:56, Joel Fernandes wrote: > On Mon, Mar 20, 2017 at 5:34 AM, Patrick Bellasi > wrote: >> On 20-Mar 09:26, Vincent Guittot wrote: >>> On 20 March 2017 at 04:57, Viresh Kumar wrote: >>> > On 19-03-17, 14:34, Rafael J. Wysocki wrote: >>> >> From: Rafael J. Wysocki >>> >> >>>

Re: [RFC] Add option to mount only a pids subset

2017-03-23 Thread Alexey Gladkov
On Thu, Mar 23, 2017 at 05:06:28PM +0100, Djalal Harouni wrote: > Hi Alexey, > > On Mon, Mar 20, 2017 at 1:58 PM, Alexey Gladkov > wrote: > > > > > > Al Viro, this patch looks better ? > > > > == Overview == > > > > Some of the container virtualization systems are mounted /proc inside > > the con

Re: [net-next PATCH v2 0/8] Add busy poll support for epoll

2017-03-23 Thread Alexei Starovoitov
On Thu, Mar 23, 2017 at 02:36:29PM -0700, Alexander Duyck wrote: > This is my second pass at trying to add support for busy polling when using > epoll. It is pretty much a full rewrite as I have made serious changes to > most of the patches. > > In the v1 series I had submitted we only allowed epo

Re: [PATCH v2 2/2] of/pci: Fix memory leak in of_pci_get_host_bridge_resources

2017-03-23 Thread Rob Herring
On Thu, Mar 23, 2017 at 3:12 AM, Jeffy Chen wrote: > Currently we only free the allocated resource struct when error. > This would cause memory leak after pci_free_resource_list. > > Signed-off-by: Jeffy Chen > --- > > Changes in v2: > Don't change the resource_list_create_entry's behavior. > >

Re: [PATCH 16/46] selinux: Move two assignments for the variable "rc" in filename_trans_read()

2017-03-23 Thread Paul Moore
On Sun, Jan 15, 2017 at 10:16 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Jan 2017 18:50:52 +0100 > > One local variable was set to an error code in two cases before > a concrete error situation was detected. Thus move the corresponding > assignments into if branches to in

Re: [net-next PATCH v2 1/8] net: Busy polling should ignore sender CPUs

2017-03-23 Thread Eric Dumazet
On Thu, 2017-03-23 at 14:36 -0700, Alexander Duyck wrote: > From: Alexander Duyck > > This patch is a cleanup/fix for NAPI IDs following the changes that made it > so that sender_cpu and napi_id were doing a better job of sharing the same > location in the sk_buff. > > One issue I found is that

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