Re: [PATCH 5/5] overlayfs: Use vfs_getxattr_noperm() for real inode

2016-07-08 Thread Miklos Szeredi
On Thu, Jul 7, 2016 at 8:35 PM, Vivek Goyal wrote: > On Wed, Jul 06, 2016 at 04:58:37PM +0200, Miklos Szeredi wrote: >> On Wed, Jul 6, 2016 at 12:54 PM, Vivek Goyal wrote: >> > On Wed, Jul 06, 2016 at 06:36:49AM +0200, Miklos Szeredi wrote: >> >> On Tue, Jul 5, 2016 at 11:16 PM, Vivek Goyal wrot

AM DR HARUNA BELLO

2016-07-08 Thread drharuna bello
-- I AM DR HARUNA BELLO FROM BURKINA FASO I HAVE A GENIUE BUSINESS TRANSACTION OF 18.5MILLION U.S DOLLAS TO DO WITH YOU IF YOU ARE INTERESTED SEND TO ME THE FOLLOWING INFORMATION IMMEDIATELY. YOUR FULL NAME.. YOUR OCCUPATION. YOUR AGE YOUR MARITAL STATUS. YOUR PHONE NU

[PATCH] clk: clk-conf: Fix error message when clock isn't found

2016-07-08 Thread Tomeu Vizoso
When failing to lookup the assigned clock for setting its parents, we were previously printing a misleading error message that lead to think that it was the parent clock what couldn't be found. Change error message to make clear that it's the assigned clock what couldn't be found in this case. Si

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-08 Thread Ingo Molnar
* Dave Hansen wrote: > > Applications that frequently get called will get hammed into the ground > > with > > serialisation on mmap_sem not to mention the cost of the syscall entry/exit. > > I think we can do both of them without mmap_sem, as long as we resign > ourselves > to this just bein

Re: Introspecting userns relationships to other namespaces?

2016-07-08 Thread W. Trevor King
On Thu, Jul 07, 2016 at 11:54:54PM -0700, Andrew Vagin wrote: > On Thu, Jul 07, 2016 at 10:26:50PM -0700, W. Trevor King wrote: > > On Thu, Jul 07, 2016 at 08:26:47PM -0700, James Bottomley wrote: > > > On Thu, 2016-07-07 at 20:00 -0700, Andrew Vagin wrote: > > > > On Thu, Jul 07, 2016 at 07:16:18P

Re: [PATCH 1/5] security, overlayfs: provide copy up security hook for unioned files

2016-07-08 Thread Miklos Szeredi
On Thu, Jul 7, 2016 at 11:44 PM, Casey Schaufler wrote: > On 7/7/2016 1:33 PM, Vivek Goyal wrote: >> On Tue, Jul 05, 2016 at 12:36:17PM -0700, Casey Schaufler wrote: >>> On 7/5/2016 8:50 AM, Vivek Goyal wrote: Provide a security hook to label new file correctly when a file is copied up f

Re: [RFC PATCH 0/1] Portable Device Tree Connector -- conceptual

2016-07-08 Thread Pantelis Antoniou
Hi David, > On Jul 7, 2016, at 10:15 , David Gibson wrote: > > On Sat, Jul 02, 2016 at 04:55:49PM -0700, frowand.l...@gmail.com wrote: >> From: Frank Rowand >> >> Hi All, >> >> This is version 2 of this email. >> >> Changes from version 1: >> >> - some rewording of the text >> - removed n

Re: [PATCH] qla2xxx: Fix NULL pointer deref in QLA interrupt

2016-07-08 Thread Thorsten Leemhuis
Bruno Prémont wrote on 30.06.2016 17:00: > In qla24xx_process_response_queue() rsp->msix->cpuid may trigger NULL > pointer dereference when rsp->msix is NULL: > […] > The affected code was introduced by commit > cdb898c52d1dfad4b4800b83a58b3fe5d352edde > (qla2xxx: Add irq affinity notification). >

Re: [PATCH 0/2] sched/cputime: Deltas for "replace VTIME_GEN irq time code with IRQ_TIME_ACCOUNTING code"

2016-07-08 Thread Ingo Molnar
* Rik van Riel wrote: > On Thu, 2016-07-07 at 16:27 +0200, Frederic Weisbecker wrote: > > Hi Rick, > > > > While reviewing your 2nd patch, I thought about these cleanups. > > Perhaps > > the first one could be merged into your patch. I let you decide. > > I'm not convinced we want to merge cle

Re: [PATCH v2 1/6] dt-bindings: clock: add DT binding for the Xtal clock on Armada 3700

2016-07-08 Thread Thomas Petazzoni
Hello, On Fri, 8 Jul 2016 00:37:46 +0200, Gregory CLEMENT wrote: > +gpio1: gpio@13800 { > + compatible = "marvell,mvebu-gpio-3700", "syscon", "simple-mfd"; I find this compatible string not very consistent with what we do for other drivers, it should have been: marvell,armada-3700-

RE: [PATCH v2 00/13] sched: Clean-ups and asymmetric cpu capacity support

2016-07-08 Thread KEITA KOBAYASHI
Hi, I tested these patches on Renesas SoC r8a7790(CA15*4 + CA7*4) and your preview branch[1] on Renesas SoC r8a7795(CA57*4 + CA53*4). > Test 0: > for i in `seq 1 10`; \ > do sysbench --test=cpu --max-time=3 --num-threads=1 run; > \ > done \ > | awk '{if ($4==

Re: [PATCH v2] kexec: Fix kdump failure with notsc

2016-07-08 Thread Ingo Molnar
* Eric W. Biederman wrote: > Sigh. Can we please just do the work to rip out the apic shutdown code from > the > kexec on panic code path? > > I forgetting details but the only reason we have do any apic shutdown is bugs > in > older kernels that could not initialize a system properly if w

Re: [RFC PATCH 0/1] Portable Device Tree Connector -- conceptual

2016-07-08 Thread David Gibson
On Fri, Jul 08, 2016 at 10:26:15AM +0300, Pantelis Antoniou wrote: > Hi David, > > > On Jul 7, 2016, at 10:15 , David Gibson wrote: > > > > On Sat, Jul 02, 2016 at 04:55:49PM -0700, frowand.l...@gmail.com wrote: > >> From: Frank Rowand > >> > >> Hi All, > >> > >> This is version 2 of this ema

[PATCH v15 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock)

2016-07-08 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

[PATCH v15 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-08 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

[PATCH v2] pmem: add pmem support codes on ARM64

2016-07-08 Thread Kwangwoo Lee
v2) rewrite functions under the mapping information MEMREMAP_WB. rewrite the comments for ARM64 in pmem.h add __clean_dcache_area() to clean data in PoC. v1) The PMEM driver on top of NVDIMM(Non-Volatile DIMM) has already been supported on X86_64 and there exist several ARM64 platforms which suppo

Re: [RFC PATCH 3/3] perf: util: only open events on CPUs an evsel permits

2016-07-08 Thread Jiri Olsa
On Thu, Jul 07, 2016 at 05:04:34PM +0100, Mark Rutland wrote: > In systems with heterogeneous CPU PMUs, it's possible for each evsel to > cover a distinct set of CPUs, and hence the cpu_map associated with each > evsel may have a distinct idx<->id mapping. Any of these may be distinct from > the ev

Re: [PATCH v2 2/3] nvme: implement DMA_ATTR_NO_WARN

2016-07-08 Thread Masayoshi Mizuma
On Thu, 7 Jul 2016 09:45:08 -0300 Mauricio Faria De Oliveira wrote: Use the DMA_ATTR_NO_WARN attribute on dma_map_sg() calls of nvme driver. Signed-off-by: Mauricio Faria de Oliveira Reviewed-by: Gabriel Krisman Bertazi --- Changelog: v2: - address warnings from checkpatch.pl (line wrapp

Re: [CRIU] Introspecting userns relationships to other namespaces?

2016-07-08 Thread Eric W. Biederman
Andrew Vagin writes: > On Wed, Jul 06, 2016 at 10:46:33AM -0500, Eric W. Biederman wrote: >> "Serge E. Hallyn" writes: >> >> > On Wed, Jul 06, 2016 at 10:41:48AM +0200, Michael Kerrisk (man-pages) >> > wrote: >> >> [Rats! Doing now what I should have down to start with. Looping some >> >> list

Re: perf bpf examples

2016-07-08 Thread Brendan Gregg
On Thu, Jul 7, 2016 at 9:18 PM, Wangnan (F) wrote: > > > On 2016/7/8 1:58, Brendan Gregg wrote: >> >> On Thu, Jul 7, 2016 at 10:54 AM, Brendan Gregg >> wrote: >>> >>> On Wed, Jul 6, 2016 at 6:49 PM, Wangnan (F) wrote: [...] >> ... Also, has anyone looked into perf sampling (-F 99) with bpf yet?

Re: [PATCH] make WRITE_ONCE return void

2016-07-08 Thread Peter Zijlstra
On Fri, Jul 08, 2016 at 01:20:08AM +0300, Alexey Dobriyan wrote: > Currently WRITE_ONCE is used as if it returns void. Let's codify this > before somebody tries to be smarter than necessary. > > Signed-off-by: Alexey Dobriyan > --- > > include/linux/compiler.h |2 +- > 1 file changed, 1 ins

Re: [dm-devel] [RFC] block: fix blk_queue_split() resource exhaustion

2016-07-08 Thread Lars Ellenberg
On Fri, Jul 08, 2016 at 08:07:52AM +1000, NeilBrown wrote: > Before I introduced the recursion limiting, requests were handled as an > in-order tree walk. The code I wrote tried to preserve that but didn't > for several reasons. I think we need to restore the original in-order > walk because it m

linux-next: Tree for Jul 8

2016-07-08 Thread Stephen Rothwell
8b2fc986 unicore32: mm: Add missing parameter to arch_vma_access_permitted) Merging xtensa/for_next (9da8320bb977 xtensa: add test_kc705_hifi variant) Merging btrfs/next (c315ef8d9db7 Merge branch 'for-chris-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux into for-linu

RE: [PATCH v15 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-08 Thread Dexuan Cui
> From: Dexuan Cui > Sent: Friday, July 8, 2016 15:47 > > You can also get the patch here (2764221d): > https://github.com/dcui/linux/commits/decui/hv_sock/net-next/20160708_v15 > > In v14: > fix some coding style issues pointed out by David. > > In v15: > Just some stylistic changes addressing

[PATCH 1/2] tty: amba-pl011: add support for clock frequency setting via dt

2016-07-08 Thread Jorge Ramirez-Ortiz
Allow to specify the clock frequency for any given port via the assigned-clock-rates device tree property. Signed-off-by: Jorge Ramirez-Ortiz Tested-by: Jorge Ramirez-Ortiz --- drivers/tty/serial/amba-pl011.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/tty/serial/amba-pl011

[PATCH 2/2] arm64: dts: set UART1 clock frequency to 150MHz

2016-07-08 Thread Jorge Ramirez-Ortiz
Enable support for higher baud rates (up to 3Mbps) in UART1 - required for bluetooth transfers. Signed-off-by: Jorge Ramirez-Ortiz Tested-by: Jorge Ramirez-Ortiz --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/hisilico

Re: [RFC PATCH v2] net: sched: convert qdisc linked list to hashtable

2016-07-08 Thread Jiri Kosina
On Thu, 7 Jul 2016, Craig Gallek wrote: > This sort of seems like it's just side-stepping the problem. Given > that the size of this hash table is fixed, the lookup time of this > operation is still going to approach linear as the number of qdiscs > increases. That's true; however the primary

Re: [PATCH v2 00/13] sched: Clean-ups and asymmetric cpu capacity support

2016-07-08 Thread Morten Rasmussen
On Fri, Jul 08, 2016 at 07:35:56AM +, KEITA KOBAYASHI wrote: > Hi, > > I tested these patches on Renesas SoC r8a7790(CA15*4 + CA7*4) > and your preview branch[1] on Renesas SoC r8a7795(CA57*4 + CA53*4). > > > Test 0: > > for i in `seq 1 10`; \ > >do sysbench --test=cpu --max-t

Re: [RFC] [PATCH v2 1/3] scatterlist: Add support to clone scatterlist

2016-07-08 Thread Mark Brown
On Thu, Jul 07, 2016 at 07:43:25PM +0200, Robert Jarzmik wrote: > I'll try, but I don't trust much my chances of success, given that this > tester : > - should compile and link in $(TOP)/lib/scatterlist.c, as this is where >sg_split() is defined > - this implies all its includes > - this i

Re: [PATCH v2] kexec: Fix kdump failure with notsc

2016-07-08 Thread Nikolay Borisov
On 07/07/2016 01:17 PM, Wei Jiangang wrote: > If we specify the 'notsc' boot parameter for the dump-capture kernel, > and then trigger a crash(panic) by using "ALT-SysRq-c" or "echo c > > /proc/sysrq-trigger", > the dump-capture kernel will hang in calibrate_delay_converge(): > > /* wait for

Re: [PATCH 1/1] irqdomain: Export __irq_domain_alloc_irqs() and irq_domain_free_irqs()

2016-07-08 Thread Alexander Popov
On 06.07.2016 14:17, Thomas Gleixner wrote: > On Fri, 1 Jul 2016, Alexander Popov wrote: > >> Export __irq_domain_alloc_irqs() and irq_domain_free_irqs() for being >> able to work with irq_domain hierarchy in modules. > > We usually export only when we have a proper use case which is supposed to

Re: [PATCH v2 2/3] Documentation, ABI: Add a document entry for cache id

2016-07-08 Thread Ingo Molnar
* Fenghua Yu wrote: > From: Fenghua Yu > > Add an ABI document entry for /sys/devices/system/cpu/cpu*/cache/index*/id. > > Signed-off-by: Fenghua Yu > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/Documentat

Re: [PATCH 0/9] mm: Hardened usercopy

2016-07-08 Thread Ingo Molnar
* Kees Cook wrote: > - I couldn't detect a measurable performance change with these features > enabled. Kernel build times were unchanged, hackbench was unchanged, > etc. I think we could flip this to "on by default" at some point. Could you please try to find some syscall workload that doe

Re: [RFC] [PATCH v3 1/4] spi: omap2-mcspi: Add comments for RX only DMA buffer workaround

2016-07-08 Thread Mark Brown
On Thu, Jul 07, 2016 at 12:17:48PM -0500, Franklin S Cooper Jr wrote: > OMAP35x and OMAP37x mentions in the McSPI End-of-Transfer Sequences section > that if the McSPI is configured as a Master and only DMA RX is being > performed then the DMA transfer size needs to be reduced by 1 or 2. Please do

kernel/time/ntp.c: possible unit inconsistency

2016-07-08 Thread Matwey V. Kornilov
Hello, I think I found minor inconsistency in measurement units between ntpd and linux kernel. Though, I am not sure completely. I've failed to reach ntp mail list because lists.ntp.org is down for me for several days. My principal concern is about `maxerror' quantity. kernel/time/ntp.c has time_

Applied "spi: omap2-mcspi: Select SPI_SPLIT" to the spi tree

2016-07-08 Thread Mark Brown
The patch spi: omap2-mcspi: Select SPI_SPLIT 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 th

Re: [RFC PATCH v2] net: sched: convert qdisc linked list to hashtable

2016-07-08 Thread Eric Dumazet
On Thu, 2016-07-07 at 22:36 +0200, Jiri Kosina wrote: > From: Jiri Kosina > > Convert the per-device linked list into a hashtable. The primary > motivation for this change is that currently, we're not tracking all the > qdiscs in hierarchy (e.g. excluding default qdiscs), as the lookup > perfo

Applied "spi: omap2-mcspi: Use the SPI framework to handle DMA mapping" to the spi tree

2016-07-08 Thread Mark Brown
The patch spi: omap2-mcspi: Use the SPI framework to handle DMA mapping 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)

Re: [PATCH v2] regulator: pwm: Fix regulator ramp delay for continuous mode

2016-07-08 Thread Mark Brown
On Thu, Jul 07, 2016 at 06:43:33PM +, Aleksandr Frid wrote: I'm not entirely sure what's wrong with your mail client here but your mails are essentially illegible. There appears to be some combination of top posting, reflowing quoted content to remove line breaks and extra levels of quoting.

Re: Applied "spi: omap2-mcspi: Select SPI_SPLIT" to the spi tree

2016-07-08 Thread Sekhar Nori
Mark, On Friday 08 July 2016 02:19 PM, Mark Brown wrote: > From 2b32e987c48c65a1a40b3b4294435f761e063b6b Mon Sep 17 00:00:00 2001 > From: Franklin S Cooper Jr > Date: Thu, 7 Jul 2016 12:17:49 -0500 > Subject: [PATCH] spi: omap2-mcspi: Select SPI_SPLIT Looks like you fixed up the description loca

Re: [PATCH] x86: add workaround monitor bug

2016-07-08 Thread Ingo Molnar
* Jacob Pan wrote: > From: Peter Zijlstra > > Monitored cached line may not wake up from mwait on certain > Goldmont based CPUs. This patch will avoid calling > current_set_polling_and_test() and thereby not set the TIF_ flag. > The result is that we'll always send IPIs for wakeups. > > Signe

Re: [RFC PATCH v2] net: sched: convert qdisc linked list to hashtable

2016-07-08 Thread Jiri Kosina
On Fri, 8 Jul 2016, Eric Dumazet wrote: > > diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c > > index fdc9de2..0f70ecc 100644 > > --- a/net/ipv6/ip6_gre.c > > +++ b/net/ipv6/ip6_gre.c > > @@ -62,11 +62,11 @@ module_param(log_ecn_error, bool, 0644); > > MODULE_PARM_DESC(log_ecn_error, "Log pa

[PATCH 0/7] Rockchip dw-mipi-dsi driver

2016-07-08 Thread Chris Zhong
Hi all This is a bunch of dw-mipi-dsi driver for RK3399 and RK3288, they have been tested on rk3399 and rk3288 evb board. This series is based on Mark Yao's branch: https://github.com/markyzq/kernel-drm-rockchip/tree/drm-rockchip-next-2016-05-23 Chris Zhong (7): dt-bindings: add rk3399 supp

[PATCH 3/7] dt-bindings: add power domain node for dw-mipi-rockchip

2016-07-08 Thread Chris Zhong
Signed-off-by: Chris Zhong --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt| 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt b/Documentation/devicetree/bindings/display/rockchip/dw_mipi_d

[PATCH 5/7] drm/rockchip: dw-mipi: support HPD poll

2016-07-08 Thread Chris Zhong
At the first time of bind, there is no any panel attach in mipi. Add a DRM_CONNECTOR_POLL_HPD porperty to detect the panel status, when panel probe, the dw_mipi_dsi_host_attach would be called, then mipi-dsi will trigger a event to notify the drm framework. Signed-off-by: Chris Zhong --- driver

[PATCH 1/7] dt-bindings: add rk3399 support for dw-mipi-rockchip

2016-07-08 Thread Chris Zhong
The dw-mipi-dsi of rk3399 is almost the same as rk3288, the rk3399 has additional phy config clock. Signed-off-by: Chris Zhong --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt| 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/dis

[PATCH 2/7] DRM: mipi: support rk3399 mipi dsi

2016-07-08 Thread Chris Zhong
The vopb/vopl switch register of rk3399 mipi is different from rk3288, the default setting for mipi dsi mode is different too, so add a of_device_id structure to distinguish them, and make sure set the correct mode before mipi phy init. Signed-off-by: Chris Zhong Signed-off-by: Mark Yao --- dr

[PATCH 7/7] drm/rockchip: dw-mipi: fix insufficient bandwidth of some panel

2016-07-08 Thread Chris Zhong
Set the lanes bps to 1 / 0.9 times of pclk, the margin is not enough for some panel, it will cause the screen display is not normal, so increases the badnwidth to 1 / 0.8. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[PATCH 4/7] drm/rockchip: dw-mipi: add dw-mipi power domain support

2016-07-08 Thread Chris Zhong
Reference the power domain incase dw-mipi power down when in use. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index 1

[PATCH 6/7] drm/rockchip: dw-mipi: fix phy clk lane stop state timeout

2016-07-08 Thread Chris Zhong
Before phy init, the detection of phy state should be controlled manually. After that, we can switch the detection to hardward, it is automatic. Hence move PHY_TXREQUESTCLKHS setting to the end of phy init. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 ++- 1 file ch

Re: get_nohz_timer_target?

2016-07-08 Thread Thomas Gleixner
On Mon, 18 Apr 2016, Richard Cochran wrote: > Looking at kernel/sched/core.c:get_nohz_timer_target(), I don't > understand the change made in: > > commit 9642d18eee2cd169b60c6ac0f20bda745b5a3d1e > Author: Vatika Harlalka > Date: Tue Sep 1 16:50:59 2015 +0200 > nohz: Affine unpin

[PATCH 4/6] x86/mce: Fix mce_rdmsrl() warning message

2016-07-08 Thread Borislav Petkov
From: Borislav Petkov The MSR address we're dumping in there should be in hex, otherwise we get funsies like: [0.016000] WARNING: CPU: 1 PID: 0 at arch/x86/kernel/cpu/mcheck/mce.c:428 mce_rdmsrl+0xd9/0xe0 [0.016000] mce: Unable to read msr -1073733631!

[PATCH 0/6] x86/RAS queue

2016-07-08 Thread Borislav Petkov
From: Borislav Petkov Hi, here's some more RAS stuff for 4.8. Please queue, thanks. Aravind Gopalakrishnan (1): x86/mce/AMD: Increase size of bank_map type Borislav Petkov (1): x86/mce: Fix mce_rdmsrl() warning message Yazen Ghannam (4): x86/RAS/AMD: Reduce number of IPIs when prepping

[PATCH 3/6] x86/mce: Add support for new MCA_SYND register

2016-07-08 Thread Borislav Petkov
From: Yazen Ghannam Syndrome information is no longer contained in MCA_STATUS for SMCA systems but in a new register. Add a synd field to struct mce to hold MCA_SYND register value. Add it to the end of struct mce to maintain compatibility with old versions of mcelog. Also, add it to the respect

[PATCH 5/6] EDAC, mce_amd: Print syndrome register value on SMCA systems

2016-07-08 Thread Borislav Petkov
From: Yazen Ghannam Print SyndV bit status and print the raw value of the MCA_SYND register. Further decoding of the syndrome from struct mce.synd can be done in other places where appropriate, e.g. DRAM ECC. Boris: make the error stanza more compact by putting the error address and syndrome on

[PATCH 6/6] x86/RAS: Add syndrome support to mce_amd_inj

2016-07-08 Thread Borislav Petkov
From: Yazen Ghannam Add a debugfs file which holds the error syndrome (written into MCA_SYND) of an injected error. Only write it on SMCA systems. Update README file, while at it. Signed-off-by: Yazen Ghannam Cc: Aravind Gopalakrishnan Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://l

[PATCH 1/6] x86/mce/AMD: Increase size of bank_map type

2016-07-08 Thread Borislav Petkov
From: Aravind Gopalakrishnan Change bank_map type from char to int since we now have more than eight banks in a system. Signed-off-by: Aravind Gopalakrishnan Cc: Aravind Gopalakrishnan Cc: Tony Luck Cc: linux-edac Link: http://lkml.kernel.org/r/1466462163-29008-1-git-send-email-yazen.ghan..

[PATCH 2/6] x86/RAS/AMD: Reduce number of IPIs when prepping error injection

2016-07-08 Thread Borislav Petkov
From: Yazen Ghannam We currently use wrmsr_on_cpu() 4 times when prepping for an error injection. This will generate 4 IPIs for each MSR write. We can reduce the number of IPIs to 1 by grouping the MSR writes and executing them serially on the appropriate CPU. Signed-off-by: Yazen Ghannam Sugge

Re: [PATCH v2 03/22] usb: ulpi: Support device discovery via device properties

2016-07-08 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:20:54PM -0700, Stephen Boyd wrote: > @@ -39,6 +42,10 @@ static int ulpi_match(struct device *dev, struct > device_driver *driver) > struct ulpi *ulpi = to_ulpi_dev(dev); > const struct ulpi_device_id *id; > > + /* Some ULPI devices don't have a product

Re: [PATCH] capabilities: add capability cgroup controller

2016-07-08 Thread Petr Mladek
On Thu 2016-07-07 20:27:13, Topi Miettinen wrote: > On 07/07/16 09:16, Petr Mladek wrote: > > On Sun 2016-07-03 15:08:07, Topi Miettinen wrote: > >> The attached patch would make any uses of capabilities generate audit > >> messages. It works for simple tests as you can see from the commit > >> mes

Re: [RESEND PATCH v2 02/13] drivers: clk: st: Simplify clock binding of STiH4xx platforms

2016-07-08 Thread Gabriel Fernandez
Hi Mike, On 07/08/2016 03:43 AM, Michael Turquette wrote: Quoting Rob Herring (2016-06-19 08:04:58) On Thu, Jun 16, 2016 at 11:20:22AM +0200, Gabriel Fernandez wrote: This patch reworks the clock binding to avoid too much detail in DT. Now we have only compatible string per type of clock (rema

Re: [PATCH net-next V4 0/6] switch to use tx skb array in tun

2016-07-08 Thread Jason Wang
On 2016年07月08日 14:19, Michael S. Tsirkin wrote: On Wed, Jul 06, 2016 at 01:45:58PM -0400, Craig Gallek wrote: >On Thu, Jun 30, 2016 at 2:45 AM, Jason Wang wrote: > >Hi all: > > > >This series tries to switch to use skb array in tun. This is used to > >eliminate the spinlock contention betwee

Re: [PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-08 Thread Benjamin Tissoires
Hi, On Thu, Jul 7, 2016 at 9:11 AM, Lv Zheng wrote: > There are many AML tables reporting wrong initial lid state, and some of > them never reports lid state. As a proxy layer acting between, ACPI button > driver is not able to handle all such cases, but need to re-define the > usage model of the

[PATCH -v4 0/2] printk.devkmsg: Ratelimit it by default

2016-07-08 Thread Borislav Petkov
From: Borislav Petkov Hi all, sorry for spamming so quickly again and not waiting for a week before resubmitting but I believe the stuff is ready for 4.8. So here's v4 with all the minor review comments addressed. Changelog: -- v3: here's v3 integrating Ingo's comments. The thing is

[PATCH -v4 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-08 Thread Borislav Petkov
From: Borislav Petkov Extend the ratelimiting facility to print the amount of suppressed lines when it is being released. Separated from a previous patch by Linus. Also, make the ON_RELEASE image not use "callbacks" as it is misleading. Signed-off-by: Borislav Petkov Cc: Andrew Morton Cc: Fr

[PATCH -v4 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-08 Thread Borislav Petkov
From: Borislav Petkov Add a "printk.devkmsg" kernel command line parameter which controls how userspace writes into /dev/kmsg. It has three options: * ratelimit - ratelimit logging from userspace. * on - unlimited logging from userspace * off - logging from userspace gets ignored The default s

Re: [PATCH 1/9] mm: Hardened usercopy

2016-07-08 Thread Arnd Bergmann
On Thursday, July 7, 2016 1:37:43 PM CEST Kees Cook wrote: > > > >> + /* Allow kernel bss region (if not marked as Reserved). */ > >> + if (ptr >= (const void *)__bss_start && > >> + end <= (const void *)__bss_stop) > >> + return NULL; > > > > accesses to .data/.rodata/.

Re: [PATCH 1/6] x86/mce/AMD: Increase size of bank_map type

2016-07-08 Thread Ingo Molnar
* Borislav Petkov wrote: > From: Aravind Gopalakrishnan > > Change bank_map type from char to int since we now have more than eight > banks in a system. > > Signed-off-by: Aravind Gopalakrishnan > Cc: Aravind Gopalakrishnan > Cc: Tony Luck > Cc: linux-edac > Link: > http://lkml.kernel.or

Re: [PATCH v2 04/22] usb: chipidea: Only read/write OTGSC from one place

2016-07-08 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:20:55PM -0700, Stephen Boyd wrote: > With the id and vbus detection done via extcon we need to make > sure we poll the status of OTGSC properly by considering what the > extcon is saying, and not just what the register is saying. Let's > move this hw_wait_reg() function t

Re: [PATCH 3/6] x86/mce: Add support for new MCA_SYND register

2016-07-08 Thread Ingo Molnar
* Borislav Petkov wrote: > From: Yazen Ghannam > > Syndrome information is no longer contained in MCA_STATUS for SMCA > systems but in a new register. > > Add a synd field to struct mce to hold MCA_SYND register value. Add it > to the end of struct mce to maintain compatibility with old versi

Re: [PATCH v2 3/4] ACPI / button: Add SW_ACPI_LID for new usage model

2016-07-08 Thread Benjamin Tissoires
On Thu, Jul 7, 2016 at 9:10 AM, Lv Zheng wrote: > There are many AML tables reporting wrong initial lid state, and some of > them never reports lid state. As a proxy layer acting between, ACPI button > driver is not able to handle all such cases, but need to re-define the > usage model of the ACPI

[PATCH] bcma: define ChipCommon B MII registers

2016-07-08 Thread Rafał Miłecki
We don't have access to datasheets to document all the bits but we can name these registers at least. Signed-off-by: Rafał Miłecki --- drivers/bcma/driver_chipcommon_b.c | 10 ++ include/linux/bcma/bcma_driver_chipcommon.h | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(

Re: [PATCH 0/5] hwmon: New hwmon registration API

2016-07-08 Thread Punit Agrawal
Hi Guenter, Guenter Roeck writes: > Up to now, each hwmon driver has to implement its own sysfs attributes. > This requires a lot of template code, and distracts from the driver's > core function to read and write chip registers. > > To be able to reduce driver complexity, move sensor attribute

Re: [PATCH 1/6] x86/mce/AMD: Increase size of bank_map type

2016-07-08 Thread Borislav Petkov
On Fri, Jul 08, 2016 at 11:21:35AM +0200, Ingo Molnar wrote: > Btw., is there any check somewhere which printed a helpful warning when we > exceeded the 8 banks limit - and which would prints a helpful warning if we > ever > exceed the 32 banks limit? __mcheck_cpu_cap_init(). And it'll be hard

Re: [PATCH v2 06/22] usb: chipidea: Add platform flag for wrapper phy management

2016-07-08 Thread Peter Chen
On Thu, Jul 07, 2016 at 03:20:57PM -0700, Stephen Boyd wrote: > The ULPI phy on qcom platforms needs to be initialized and > powered on after a USB reset and before we toggle the run/stop > bit. Otherwise, the phy locks up and doesn't work properly. > Therefore, add a flag to skip any phy power man

RE: [PATCH v14 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-08 Thread Dexuan Cui
> From: Olaf Hering [mailto:o...@aepfle.de] > Sent: Friday, July 8, 2016 0:02 > On Thu, Jun 30, Dexuan Cui wrote: > > > +/* The MTU is 16KB per the host side's design. */ > > +struct hvsock_recv_buf { > > + unsigned int data_len; > > + unsigned int data_offset; > > + > > + struct vmpipe_prot

[PATCH 04/34] mm, mmzone: clarify the usage of zone padding

2016-07-08 Thread Mel Gorman
Zone padding separates write-intensive fields used by page allocation, compaction and vmstats but the comments are a little misleading and need clarification. Signed-off-by: Mel Gorman --- include/linux/mmzone.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/l

[PATCH 01/34] mm, vmstat: add infrastructure for per-node vmstats

2016-07-08 Thread Mel Gorman
VM statistic counters for reclaim decisions are zone-based. If the kernel is to reclaim on a per-node basis then we need to track per-node statistics but there is no infrastructure for that. The most notable change is that the old node_page_state is renamed to sum_zone_node_page_state. The new n

[PATCH 05/34] mm, vmscan: begin reclaiming pages on a per-node basis

2016-07-08 Thread Mel Gorman
This patch makes reclaim decisions on a per-node basis. A reclaimer knows what zone is required by the allocation request and skips pages from higher zones. In many cases this will be ok because it's a GFP_HIGHMEM request of some description. On 64-bit, ZONE_DMA32 requests will cause some proble

[PATCH 00/34] Move LRU page reclaim from zones to nodes v9

2016-07-08 Thread Mel Gorman
Minor changes this time Changelog since v8 o Cosmetic cleanups to comments o Calculate node vmstat threshold based on the largest zone in the node o Align retry checks with decisions made by the OOM killer o Avoid tricks with -1 and kswapd_classzone_idx o More consistent handling of buffer_heads_o

[PATCH 13/34] mm, vmscan: make shrink_node decisions more node-centric

2016-07-08 Thread Mel Gorman
Earlier patches focused on having direct reclaim and kswapd use data that is node-centric for reclaiming but shrink_node() itself still uses too much zone information. This patch removes unnecessary zone-based information with the most important decision being whether to continue reclaim or not.

[PATCH 09/34] mm, vmscan: simplify the logic deciding whether kswapd sleeps

2016-07-08 Thread Mel Gorman
kswapd goes through some complex steps trying to figure out if it should stay awake based on the classzone_idx and the requested order. It is unnecessarily complex and passes in an invalid classzone_idx to balance_pgdat(). What matters most of all is whether a larger order has been requsted and w

[PATCH 06/34] mm, vmscan: have kswapd only scan based on the highest requested zone

2016-07-08 Thread Mel Gorman
kswapd checks all eligible zones to see if they need balancing even if it was woken for a lower zone. This made sense when we reclaimed on a per-zone basis because we wanted to shrink zones fairly so avoid age-inversion problems. Ideally this is completely unnecessary when reclaiming on a per-nod

Re: [PATCH 3/6] x86/mce: Add support for new MCA_SYND register

2016-07-08 Thread Borislav Petkov
On Fri, Jul 08, 2016 at 11:26:59AM +0200, Ingo Molnar wrote: > So why does neither the changelog nor the code comment actually _explain_ > this and > give aa bit of a background about what 'syndrome information' is and why we > want > to have kernel support for it? > > This is why I hate kerne

[PATCH 02/34] mm, vmscan: move lru_lock to the node

2016-07-08 Thread Mel Gorman
Node-based reclaim requires node-based LRUs and locking. This is a preparation patch that just moves the lru_lock to the node so later patches are easier to review. It is a mechanical change but note this patch makes contention worse because the LRU lock is hotter and direct reclaim and kswapd ca

[PATCH 03/34] mm, vmscan: move LRU lists to node

2016-07-08 Thread Mel Gorman
This moves the LRU lists from the zone to the node and related data such as counters, tracing, congestion tracking and writeback tracking. Unfortunately, due to reclaim and compaction retry logic, it is necessary to account for the number of LRU pages on both zone and node logic. Most reclaim logic

[PATCH 12/34] mm: vmscan: do not reclaim from kswapd if there is any eligible zone

2016-07-08 Thread Mel Gorman
kswapd scans from highest to lowest for a zone that requires balancing. This was necessary when reclaim was per-zone to fairly age pages on lower zones. Now that we are reclaiming on a per-node basis, any eligible zone can be used and pages will still be aged fairly. This patch avoids reclaiming

[PATCH 11/34] mm, vmscan: remove duplicate logic clearing node congestion and dirty state

2016-07-08 Thread Mel Gorman
Reclaim may stall if there is too much dirty or congested data on a node. This was previously based on zone flags and the logic for clearing the flags is in two places. As congestion/dirty tracking is now tracked on a per-node basis, we can remove some duplicate logic. Signed-off-by: Mel Gorman

[PATCH 23/34] mm: convert zone_reclaim to node_reclaim

2016-07-08 Thread Mel Gorman
As reclaim is now per-node based, convert zone_reclaim to be node_reclaim. It is possible that a node will be reclaimed multiple times if it has multiple zones but this is unavoidable without caching all nodes traversed so far. The documentation and interface to userspace is the same from a config

[PATCH 14/34] mm, memcg: move memcg limit enforcement from zones to nodes

2016-07-08 Thread Mel Gorman
Memcg needs adjustment after moving LRUs to the node. Limits are tracked per memcg but the soft-limit excess is tracked per zone. As global page reclaim is based on the node, it is easy to imagine a situation where a zone soft limit is exceeded even though the memcg limit is fine. This patch moves

[PATCH 17/34] mm: move page mapped accounting to the node

2016-07-08 Thread Mel Gorman
Reclaim makes decisions based on the number of pages that are mapped but it's mixing node and zone information. Account NR_FILE_MAPPED and NR_ANON_PAGES pages on the node. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka Acked-by: Michal Hocko --- arch/tile/mm/pgtable.c | 2 +- drivers/ba

[PATCH 21/34] mm, vmscan: only wakeup kswapd once per node for the requested classzone

2016-07-08 Thread Mel Gorman
kswapd is woken when zones are below the low watermark but the wakeup decision is not taking the classzone into account. Now that reclaim is node-based, it is only required to wake kswapd once per node and only if all zones are unbalanced for the requested classzone. Note that one node might be c

[PATCH 24/34] mm, vmscan: avoid passing in classzone_idx unnecessarily to shrink_node

2016-07-08 Thread Mel Gorman
shrink_node receives all information it needs about classzone_idx from sc->reclaim_idx so remove the aliases. Signed-off-by: Mel Gorman Acked-by: Hillf Danton --- mm/vmscan.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c inde

[PATCH 28/34] mm, vmscan: add classzone information to tracepoints

2016-07-08 Thread Mel Gorman
This is convenient when tracking down why the skip count is high because it'll show what classzone kswapd woke up at and what zones are being isolated. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- include/trace/events/vmscan.h | 51 ++- mm/vmsc

[PATCH 26/34] mm, vmscan: avoid passing in remaining unnecessarily to prepare_kswapd_sleep

2016-07-08 Thread Mel Gorman
As pointed out by Minchan Kim, the first call to prepare_kswapd_sleep always passes in 0 for remaining and the second call can trivially check the parameter in advance. Suggested-by: Minchan Kim Signed-off-by: Mel Gorman --- mm/vmscan.c | 12 1 file changed, 4 insertions(+), 8 dele

[PATCH 16/34] mm, page_alloc: consider dirtyable memory in terms of nodes

2016-07-08 Thread Mel Gorman
Historically dirty pages were spread among zones but now that LRUs are per-node it is more appropriate to consider dirty pages in a node. Signed-off-by: Mel Gorman Signed-off-by: Johannes Weiner Acked-by: Vlastimil Babka Acked-by: Michal Hocko --- include/linux/mmzone.h| 12 +++ inclu

[PATCH 15/34] mm, workingset: make working set detection node-aware

2016-07-08 Thread Mel Gorman
Working set and refault detection is still zone-based, fix it. Signed-off-by: Mel Gorman Acked-by: Johannes Weiner Acked-by: Vlastimil Babka --- include/linux/mmzone.h | 6 +++--- include/linux/vmstat.h | 1 - mm/vmstat.c| 20 +++- mm/workingset.c| 43

[PATCH 20/34] mm: move vmscan writes and file write accounting to the node

2016-07-08 Thread Mel Gorman
As reclaim is now node-based, it follows that page write activity due to page reclaim should also be accounted for on the node. For consistency, also account page writes and page dirtying on a per-node basis. After this patch, there are a few remaining zone counters that may appear strange but ar

[PATCH 18/34] mm: rename NR_ANON_PAGES to NR_ANON_MAPPED

2016-07-08 Thread Mel Gorman
NR_FILE_PAGES is the number offile pages. NR_FILE_MAPPED is the number of mapped file pages. NR_ANON_PAGES is the number of mapped anon pages. This is unhelpful naming as it's easy to confuse NR_FILE_MAPPED and NR_ANON_PAGES for mapped pages. This patch renames NR_ANON_PAGES so we have

[PATCH 30/34] mm: page_alloc: cache the last node whose dirty limit is reached

2016-07-08 Thread Mel Gorman
If a page is about to be dirtied then the page allocator attempts to limit the total number of dirty pages that exists in any given zone. The call to node_dirty_ok is expensive so this patch records if the last pgdat examined hit the dirty limits. In some cases, this reduces the number of calls t

  1   2   3   4   5   6   7   8   >