Re: [PATCH v3 0/2] guard virt_spin_lock() with a static key

2017-10-02 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 07:36:23PM +0200, Juergen Gross wrote: > With virt_spin_lock() being guarded by a static key the bare metal case > can be optimized by patching the call away completely. In case a kernel > running as a guest it can decide whether to use paravitualized > spinlocks, the curren

Re: [PATCH v2 1/2] ARM: dts: Fix I2C repeated start issue on Armada-38x

2017-10-02 Thread Gregory CLEMENT
Hi Kalyan, On ven., sept. 29 2017, Kalyan Kinthada wrote: > All the Armada 38x(380, 385, 388) have a silicon issue in > the I2C controller which violates the I2C repeated start timing > (errata FE-8471889). > > i2c-mv64xxx driver handles this errata based on the compatible string > "marvell,m

Re: [PATCH v3 6/6] perf script: support time percent and multiple time ranges

2017-10-02 Thread Jiri Olsa
On Mon, Oct 02, 2017 at 09:41:09PM +0800, Jin, Yao wrote: > > > On 10/2/2017 7:58 PM, Jiri Olsa wrote: > > On Thu, Sep 28, 2017 at 08:45:21PM +0800, Jin Yao wrote: > > > > SNIP > > > >> diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > >> index 9092de0..7fd3063 100644 > >

Re: [PATCH v2] dt-bindings: fsl-imx-drm: Remove incorrect "@di0" usage

2017-10-02 Thread Philipp Zabel
Hi Marco, On Mon, 2017-10-02 at 10:45 -0300, Marco Franchi wrote: > Improve the binding example by removing the '@di0' notation, which > fixes the following build warning: > > Warning (unit_address_vs_reg): Node /display@di0 has a unit name, but  > no reg property > > Signed-off-by: Marco Franch

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Mark Rutland
Hi Eric, On Mon, Oct 02, 2017 at 06:36:32AM -0700, Eric Dumazet wrote: > On Mon, Oct 2, 2017 at 3:49 AM, Mark Rutland wrote: > > I hit the below splat at net/core/skbuff.c:2626 while fuzzing v4.14-rc2 > > on arm64 with Syzkaller. This is the BUG_ON(len) at the end of > > skb_copy_and_csum_bits().

Re: [PATCH v2 2/2] dt-bindings: i2c: Update documentation for "mv78230-a0-i2c"

2017-10-02 Thread Gregory CLEMENT
Hi Wolfram, On ven., sept. 29 2017, Kalyan Kinthada wrote: > This commit modifies the documentation for > "marvell,mv78230-a0-i2c" compatible string. > > The "marvell,mv78230-a0-i2c" compatible string enables the workaround > for an i2c repeated start timing violation, but unlike > "marvell,m

Re: Build regressions/improvements in v4.14-rc3

2017-10-02 Thread Geert Uytterhoeven
Hi Thomas, On Mon, Oct 2, 2017 at 4:11 PM, Thomas Meyer wrote: > On Mon, Oct 02, 2017 at 11:49:33AM +0200, Geert Uytterhoeven wrote: >> Below is the list of build error/warning regressions/improvements in >> v4.14-rc3[1] compared to v4.13[2]. > > a question regarding the um-defconfig build: > htt

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Michal Hocko
On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > > This attempts to bring more flexibility to how hugepages are allocated > > > by making it possible to decide whether we want th

Re: [PATCH v3 6/6] perf script: support time percent and multiple time ranges

2017-10-02 Thread Jin, Yao
On 10/2/2017 10:21 PM, Jiri Olsa wrote: > On Mon, Oct 02, 2017 at 09:41:09PM +0800, Jin, Yao wrote: >> >> >> On 10/2/2017 7:58 PM, Jiri Olsa wrote: >>> On Thu, Sep 28, 2017 at 08:45:21PM +0800, Jin Yao wrote: >>> >>> SNIP >>> diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-scri

Re: [v8 0/4] cgroup-aware OOM killer

2017-10-02 Thread Michal Hocko
On Mon 02-10-17 13:47:12, Roman Gushchin wrote: > On Mon, Oct 02, 2017 at 02:24:34PM +0200, Michal Hocko wrote: [...] > > I believe the latest version (v9) looks sensible from the semantic point > > of view and we should focus on making it into a mergeable shape. > > The only thing is that after s

Re: [2/2] hwmon: add dt binding for max1619

2017-10-02 Thread Alan Tull
On Sun, Oct 1, 2017 at 9:13 AM, Guenter Roeck wrote: > On Mon, Sep 11, 2017 at 02:16:49PM -0500, Alan Tull wrote: >> Add new device tree binding for max1619. >> >> Signed-off-by: Alan Tull >> Cc: Jean Delvare >> Cc: Guenter Roeck >> Cc: Rob Herring >> Cc: Mark Rutland > > Applied to hwmon-nex

Re: mptsas driver cannot detect hotplugging disk with the LSI SCSI SAS1068 controller in Ubuntu guest on VMware

2017-10-02 Thread Hannes Reinecke
On 09/27/2017 09:33 AM, Gavin Guo wrote: > There is a problem in the latest upstream kernel with the device: > > $ grep -i lsi lspci > 03:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios > Logic SAS1068 PCI-X Fusion-MPT SAS [1000:0054] (rev 01) > > The device is simulated by the V

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-02 Thread Darren Hart
On Mon, Oct 02, 2017 at 11:24:53AM +0200, Greg Kroah-Hartman wrote: > On Sun, Oct 01, 2017 at 05:57:20PM -0700, Darren Hart wrote: > > On Sat, Sep 30, 2017 at 10:12:05AM +0200, Greg Kroah-Hartman wrote: > > > On Fri, Sep 29, 2017 at 06:52:28PM -0700, Darren Hart wrote: > > > > > > > > On Wed, Sep

Re: [alsa-devel] usb/sound/usx2y: warning in usb_stream_new/__alloc_pages_slowpath

2017-10-02 Thread Andrey Konovalov
On Mon, Oct 2, 2017 at 2:14 PM, Takashi Iwai wrote: > On Fri, 22 Sep 2017 11:35:49 +0200, > Takashi Iwai wrote: >> >> On Thu, 21 Sep 2017 17:38:53 +0200, >> Andrey Konovalov wrote: >> > >> > Hi! >> > >> > I've got the following report while fuzzing the kernel with syzkaller. >> > >> > On commit eb

Re: [PATCH v3 3/8] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check

2017-10-02 Thread Pali Rohár
On Monday 02 October 2017 14:15:11 mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Saturday, September 30, 2017 3:01 PM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > > ker..

Re: [PATCH] PCI MSI: allow alignment restrictions on vector allocation

2017-10-02 Thread Thomas Gleixner
Daniel, On Mon, 2 Oct 2017, Daniel Drake wrote: > On Wed, Sep 27, 2017 at 11:28 PM, Thomas Gleixner wrote: > On another system, I have multiple devices using IR-PCI-MSI according > to /proc/interrupts, and lspci shows that a MSI Message Data value 0 > is used for every single MSI-enabled device.

[PATCH] ACPI / sysfs: make function param_set_trace_method_name static

2017-10-02 Thread Colin King
From: Colin Ian King The function param_set_trace_method_name is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'param_set_trace_method_name' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/acpi

Re: [PATCH v2] kvm/x86: Handle async PF in RCU read-side critical sections

2017-10-02 Thread Boqun Feng
On Mon, Oct 02, 2017 at 01:41:03PM +, Paolo Bonzini wrote: [...] > > > > Wanpeng, the callsite of kvm_async_pf_task_wait() in > > kvm_handle_page_fault() is for nested scenario, right? I take it we > > should handle it as if the fault happens when l1 guest is running in > > kernel mode, so @us

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Eric Dumazet
On Mon, Oct 2, 2017 at 7:21 AM, Mark Rutland wrote: > Hi Eric, > > On Mon, Oct 02, 2017 at 06:36:32AM -0700, Eric Dumazet wrote: >> On Mon, Oct 2, 2017 at 3:49 AM, Mark Rutland wrote: >> > I hit the below splat at net/core/skbuff.c:2626 while fuzzing v4.14-rc2 >> > on arm64 with Syzkaller. This i

Re: 4.14-rc2 on thinkpad x220: out of memory when inserting mmc card

2017-10-02 Thread Michal Hocko
On Sun 01-10-17 12:26:47, Pavel Machek wrote: > Hi! > > > I inserted u-SD card, only to realize that it is not detected as it > > should be. And dmesg indeed reveals: > > Tetsuo asked me to report this to linux-mm. > > But 2^4 is 16 pages, IIRC that can't be expected to work reliably, and > thus

spi-atmel.c: regression

2017-10-02 Thread Igor Plyatov
Hello! please help to manage issue with data corruption by PDC of SPI. I have compared operation of Linux-2.6.39 and linux4sam kernel 4.9.36+ on the AT91SAM9G20 (Stamp9G20 SOM from Taskit.de) and found regression in the spi-atmel.c. New spi-atmel.c driver works very bad with SPI speeds abov

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Eric Dumazet
On Mon, 2017-10-02 at 15:21 +0100, Mark Rutland wrote: > Hi Eric, > > On Mon, Oct 02, 2017 at 06:36:32AM -0700, Eric Dumazet wrote: > > On Mon, Oct 2, 2017 at 3:49 AM, Mark Rutland wrote: > > > I hit the below splat at net/core/skbuff.c:2626 while fuzzing v4.14-rc2 > > > on arm64 with Syzkaller.

[PATCH] tty: serial: jsm: Add space before the open brace

2017-10-02 Thread Gimcuan Hui
This patch fixes the checkpatch.pl error complain: ERROR: space required before the open brace '{' Signed-off-by: Gimcuan Hui --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tt

Re: [PATCH] ARM: dts: am43xx-epos-evm: Enable SGX on EPOS boards

2017-10-02 Thread Tony Lindgren
* Andrew F. Davis [170918 10:32]: > From: Yogesh Siraswar > > The SGX IP is valid and usable on AM438x devices, enable this > here. This still produces: arch/arm/boot/dts/am43x-epos-evm.dts:796.1-5 Label or path sgx not found The parent node for the interconnect target module can be added the

Re: [PATCH 7/7] fs-writeback: only allow one inflight and pending full flush

2017-10-02 Thread Jan Kara
On Thu 28-09-17 20:09:50, Jens Axboe wrote: > On 09/25/2017 11:35 AM, Jan Kara wrote: > > On Thu 21-09-17 10:00:25, Jens Axboe wrote: > >> On 09/21/2017 09:36 AM, Jens Axboe wrote: > But more importantly once we are not guaranteed that we only have > a single global wb_writeback_work per

Re: 4.14-rc2 on thinkpad x220: out of memory when inserting mmc card

2017-10-02 Thread Tetsuo Handa
Michal Hocko wrote: > On Sun 01-10-17 12:26:47, Pavel Machek wrote: > > Hi! > > > > > I inserted u-SD card, only to realize that it is not detected as it > > > should be. And dmesg indeed reveals: > > > > Tetsuo asked me to report this to linux-mm. > > > > But 2^4 is 16 pages, IIRC that can't be

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-02 Thread Stephen Hemminger
On Mon, 02 Oct 2017 05:15:32 - Michael Witten wrote: > On Sun, 1 Oct 2017 17:59:09 -0700, Stephen Hemminger wrote: > > > On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > > > >> + spin_lock_irqsave(&q->lock, flags); > >> + skb = q->next; > >> + __skb_queue_head_init(q); > >> +

Re: [PATCH] printk: simplify no_printk()

2017-10-02 Thread Petr Mladek
On Mon 2017-09-18 00:01:44, Masahiro Yamada wrote: > Commit 069f0cd00df0 ("printk: Make the printk*once() variants return > a value") surrounded the macro implementation with ({ ... }). > > Now, the inner do { ... } while (0); is redundant. > > Signed-off-by: Masahiro Yamada Looks fine to me. T

[PATCH] x86/intel_rdt/cqm: make integer rmid_limbo_count static

2017-10-02 Thread Colin King
From: Colin Ian King The unsigned int rmid_limbo_count is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'rmid_limbo_count' was not declared. Should it be static? Signed-off-by: Colin Ian King --- arch/x86/kernel/cpu/intel_rdt_

Re: [PATCH 01/12] buffer: have alloc_page_buffers() use __GFP_NOFAIL

2017-10-02 Thread Jan Kara
On Wed 27-09-17 14:13:48, Jens Axboe wrote: > Instead of adding weird retry logic in that function, utilize > __GFP_NOFAIL to ensure that the vm takes care of handling any > potential retries appropriately. This means we don't have to > call free_more_memory() from here. > > Signed-off-by: Jens Ax

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Mark Rutland
On Mon, Oct 02, 2017 at 07:42:17AM -0700, Eric Dumazet wrote: > On Mon, Oct 2, 2017 at 7:21 AM, Mark Rutland wrote: > > Just to check I've understood correctly, are you suggesting that the > > IPv4 code should also check the dev->mtu against a IP_MIN_MTU (which > > doesn't seem to exist today)? >

Re: [PATCH v2 2/2] pid: Remove pidhash

2017-10-02 Thread Oleg Nesterov
On 09/30, Gargi Sharma wrote: > > On Wed, Sep 27, 2017 at 9:58 PM, Oleg Nesterov wrote: > > If I was not clear... > > > > in short, after this patch the very first idr_alloc_cyclic() is already > > wrong. Because, once again, the new not-fully-initialized pid can be found > > by find_pid_ns(). > >

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Mark Rutland
On Mon, Oct 02, 2017 at 07:48:28AM -0700, Eric Dumazet wrote: > Please try the following fool proof patch. > > This is what I had in my local tree back in August but could not > conclude on the syzkaller bug I was working on. Thanks, I'll give this a go shortly. I'm currently minimizing the Syzk

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Alexandru Moise
On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > > > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > > > This attempts to bring more flexibility to how hugepages

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-02 Thread Brijesh Singh
On 10/02/2017 07:41 AM, Borislav Petkov wrote: On Mon, Oct 02, 2017 at 06:32:18AM -0500, Brijesh Singh wrote: Because sev_enabled will always be 'false' when we are booting on bare metal. Whereas when we are running under hypervisor then this variable will be true for the SEV guest, please see

[PATCH] Add new uio device for PCI with dynamic memory allocation

2017-10-02 Thread Stahl, Manuel
This device combines the uio_pci_generic driver and the uio_dmem_genirq driver since PCI uses a slightly different API for interrupts. A fixed number of DMA capable memory regions can be defined using the module parameter "dmem_sizes". The memory is not allocated until the uio device file is opened

[PATCH 2/5] x86/kernel: Skip TSC test and error messages if already unstable

2017-10-02 Thread mike.travis
If the TSC has already been determined to be unstable, then checking TSC ADJUST values is a waste of time and generates unnecessary error messages. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Russ Anderson Reviewed-by: Peter Zijlstra --- arch/x86/kernel/tsc_sync.c |

[PATCH 3/5] x86/kernel: Drastically reduce the number of firmware bug warnings

2017-10-02 Thread mike.travis
Prior to the TSC ADJUST MSR being available, the method to set TSC's in sync with each other naturally caused a small skew between cpu threads. This was NOT a firmware bug at the time so introducing a whole avalanche of alarming warning messages might cause unnecessary concern and customer complain

[PATCH 5/5] x86/platform/UV: Add check of TSC state set by UV BIOS

2017-10-02 Thread mike.travis
Insert a check early in UV system startup that checks whether BIOS was able to obtain satisfactory TSC Sync stability. If not, it usually is caused by an error in the external TSC clock generation source. In this case the best fallback is to use the builtin hardware RTC as the kernel will not be a

[PATCH 4/5] x86/kernel: Provide a means to disable TSC ART

2017-10-02 Thread mike.travis
On systems where multiple chassis are reset asynchronously there is not a constant ratio between the ART frequency and the TSC time that can be provided by the boot cpu. Provide a means to disable the ART capability by arches that have this characteristic. Signed-off-by: Mike Travis --- arch/x8

[PATCH 0/5] x86/platform/UV: Update TSC support

2017-10-02 Thread mike.travis
The UV BIOS goes to considerable effort to get the TSC synchronization accurate across the entire system. Included in that are multiple chassis that can have 32+ sockets. The architecture does support an external high resolution clock to aid in maintaining this synchronization. The resulting TS

Re: [PATCH 0/3 v2 RESEND] x86/smpboot: Cleanup logical package ID

2017-10-02 Thread Prarit Bhargava
On 09/26/2017 08:53 AM, Prarit Bhargava wrote: > Sending to wider audience. I originally sent this to only the people Andi > had cc'd. Here's an example of the panic: smpboot: Booting Node 1, Processors #1 OK smpboot: Package 1 of CPU 1 exceeds BIOS package data 1. [

[PATCH 1/5] x86/kernel: Add option that TSC on Socket 0 being non-zero is valid

2017-10-02 Thread mike.travis
Add a flag to indicate and process that TSC counters are on chassis that reset at different times during system startup. Therefore which TSC ADJUST values should be zero is not predictable. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Russ Anderson Reviewed-by: And ew

Re: [PATCH] ASoC: rockchip: Fix wrong allocation size of dapm routes

2017-10-02 Thread Doug Anderson
Hi, On Thu, Sep 28, 2017 at 8:52 PM, Jeffy Chen wrote: > The allocation size of dapm routes is wrong, correct it. > > Fixes: d9f9c167edae ("ASoC: rockchip: Init dapm routes dynamically") > Signed-off-by: Jeffy Chen > --- > > sound/soc/rockchip/rk3399_gru_sound.c | 8 ++-- > 1 file changed,

Re: [PATCH 2/6] lightnvm: pblk: reduce arguments in __pblk_rb_update_l2p

2017-10-02 Thread Javier González
> On 2 Oct 2017, at 13.32, Javier González wrote: > >> On 1 Oct 2017, at 15.23, Rakesh Pandit wrote: >> >> We already pass the structure pointer so no need to pass the member. >> >> Signed-off-by: Rakesh Pandit >> --- >> drivers/lightnvm/pblk-rb.c | 12 ++-- >> 1 file changed, 6 insert

Re: [PATCH v10 3/7] edac,soc: thunderx: Add wrapper for EDAC LMC PCI device

2017-10-02 Thread Jan Glauber
On Wed, Sep 27, 2017 at 06:19:01PM +0200, Borislav Petkov wrote: > On Mon, Sep 25, 2017 at 02:34:58PM +0200, Jan Glauber wrote: > > Cavium SOCs contain a memory controller that is presented as a > > PCI device. This PCI device will be used by an EDAC driver and > > by a PMU driver. > > > > To allo

Re: [PATCH v2 2/2] pid: Remove pidhash

2017-10-02 Thread Oleg Nesterov
Hi Rik, On 10/02, Rik van Riel wrote: > > Gargi and I are looking at that code, and trying to figure out > exactly what needs to be done to make all of this correct. see another email I sent to Gargi a minute ago, > 2) With pid_ns_prepare_proc out of the way, we can put all the code >from be

Re: [PATCH v2 2/2] pid: Remove pidhash

2017-10-02 Thread Rik van Riel
On Mon, 2017-10-02 at 17:21 +0200, Oleg Nesterov wrote: > Hi Rik, > > On 10/02, Rik van Riel wrote: > > > > Gargi and I are looking at that code, and trying to figure out > > exactly what needs to be done to make all of this correct. > > see another email I sent to Gargi a minute ago, > > > 2)

Re: [PATCH v2] kvm/x86: Handle async PF in RCU read-side critical sections

2017-10-02 Thread Paul E. McKenney
On Mon, Oct 02, 2017 at 10:43:00PM +0800, Boqun Feng wrote: > On Mon, Oct 02, 2017 at 01:41:03PM +, Paolo Bonzini wrote: > [...] > > > > > > Wanpeng, the callsite of kvm_async_pf_task_wait() in > > > kvm_handle_page_fault() is for nested scenario, right? I take it we > > > should handle it as

Re: [PATCH v4 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-10-02 Thread Dave Gerlach
Russell, On 09/28/2017 03:38 AM, Russell King - ARM Linux wrote: > On Tue, Sep 26, 2017 at 07:03:55PM -0500, Dave Gerlach wrote: >> diff --git a/drivers/memory/emif-asm-offsets.c >> b/drivers/memory/emif-asm-offsets.c >> new file mode 100644 >> index ..bdb153c9e948 >> --- /dev/null >>

Re: [PATCH v2 3/6] staging: fsl-dpaa2/ethsw: Add ethtool support

2017-10-02 Thread Andrew Lunn
Hi Razvan > +static void ethsw_get_drvinfo(struct net_device *netdev, > + struct ethtool_drvinfo *drvinfo) > +{ > + struct ethsw_port_priv *port_priv = netdev_priv(netdev); > + u16 version_major, version_minor; > + int err; > + > + strlcpy(drvinfo->driver,

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-10-02 Thread Yang Shi
On 9/30/17 4:00 AM, Tetsuo Handa wrote: Yang Shi wrote: On 9/28/17 1:45 PM, Tetsuo Handa wrote: Yang Shi wrote: On 9/28/17 12:57 PM, Tetsuo Handa wrote: Yang Shi wrote: On 9/27/17 9:36 PM, Tetsuo Handa wrote: On 2017/09/28 6:46, Yang Shi wrote: Changelog v7 -> v8: * Adopted Michal’s sugg

Re: [PATCH 1/2] RAS/CEC: Use the right length for "cec_disable"

2017-10-02 Thread Thomas Gleixner
On Mon, 2 Oct 2017, Borislav Petkov wrote: > From: Nicolas Iooss > > parse_cec_param() compares a string with "cec_disable" using only 7 > characters of the 11-character-long string. Fix the length. > > Signed-off-by: Nicolas Iooss > Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector")

Re: [PATCH 2/3] mm: oom: show unreclaimable slab info when kernel panic

2017-10-02 Thread Yang Shi
On 9/30/17 11:43 PM, Christopher Lameter wrote: On Thu, 28 Sep 2017, Yang Shi wrote: CONFIG_SLABINFO and /proc/slabinfo have nothing to do with the unreclaimable slab info. The current design uses "struct slabinfo" and get_slabinfo() to retrieve some info, i.e. active objs, etc. They are pr

Re: [PATCH 2/3] mm: oom: show unreclaimable slab info when kernel panic

2017-10-02 Thread Yang Shi
On 10/2/17 12:26 AM, Michal Hocko wrote: On Thu 28-09-17 01:25:50, Yang Shi wrote: On 9/27/17 3:45 AM, Michal Hocko wrote: On Wed 27-09-17 08:53:35, Yang Shi wrote: Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel.

Re: [PATCH] mm, swap: Make VMA based swap readahead configurable

2017-10-02 Thread Dave Hansen
On 09/27/2017 06:02 PM, Huang, Ying wrote: > I still think there may be a performance regression for some users > because of the change of the algorithm and the knobs, and the > performance regression can be resolved via setting the new knob. But I > don't think there will be a functionality regre

Re: [kprobes/x86] a19b2e3d78: WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller

2017-10-02 Thread Masami Hiramatsu
On Mon, 2 Oct 2017 09:33:16 +0200 Peter Zijlstra wrote: > On Sun, Oct 01, 2017 at 07:12:51AM +0800, kernel test robot wrote: > > > > FYI, we noticed the following commit (built with gcc-6): > > > > commit: a19b2e3d783964d48d2b494439648e929bcdc976 ("kprobes/x86: Remove IRQ > > disabling from ft

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-10-02 Thread Yang Shi
On 10/2/17 4:20 AM, Michal Hocko wrote: On Thu 28-09-17 13:36:57, Tetsuo Handa wrote: On 2017/09/28 6:46, Yang Shi wrote: Changelog v7 —> v8: * Adopted Michal’s suggestion to dump unreclaim slab info when unreclaimable slabs amount > total user memory. Not only in oom panic path. Holding s

[PATCH] vt: Use consistent logging style

2017-10-02 Thread Joe Perches
vt has a mixture of pr_ and printk. Convert to using only pr_. Miscellanea: o Coalesce formats o Realign arguments o Add missing braces around an if/else with the printk conversion Signed-off-by: Joe Perches --- drivers/tty/vt/vt.c | 29 ++--- 1 file changed, 14 inserti

[PATCH v4 4/4] arm: dts: stm32: remove useless clocksource nodes

2017-10-02 Thread Benjamin Gaignard
16 bits timers aren't accurate enough to be used as clocksource, remove them from stm32f4 and stm32f7 devicetree. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 32 arch/arm/boot/dts/stm32f746.dtsi | 32 2

[PATCH v4 1/4] clocksource: stm32: convert driver to timer_of

2017-10-02 Thread Benjamin Gaignard
Convert driver to use timer_of helpers. This allow to remove custom proprietary structure. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/Kconfig | 1 + drivers/clocksource/timer-stm32.c | 162 +- 2 files changed, 57 insertions(+), 106 deleti

[PATCH v4 3/4] clocksource: stm32: add clocksource support

2017-10-02 Thread Benjamin Gaignard
Rework driver code to be able to implement clocksource and clockevent on the same hardware block. Before this patch only the counter of the hardware block was used to generate clock events. Now counter will be used to provide a 32 bits clock source and a comparator will provide clock events. Signe

[PATCH v4 2/4] clocksource: stm32: only use 32 bits timers

2017-10-02 Thread Benjamin Gaignard
16 bits hardware are not enough accure to be used. Do no allow them to be probed by tested max counter value. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/ti

[PATCH v4 0/4] stm32 clocksource driver rework

2017-10-02 Thread Benjamin Gaignard
version 4: - split patch in 3 parts - convert code to timer_of - only use 32 bits timers - add clocksource support version 3: - fix comments done by Daniel - use timer_of helper functions version 2: - fix uninitialized variable These patches implements clocksource and clockevent by using o

[PATCH v2] livepatch: unpatch all klp_objects if klp_module_coming fails

2017-10-02 Thread Joe Lawrence
When an incoming module is considered for livepatching by klp_module_coming(), it iterates over multiple patches and multiple kernel objects in this order: list_for_each_entry(patch, &klp_patches, list) { klp_for_each_object(patch, obj) { which means that if one of the ker

Re: [f2fs-dev] [PATCH v4] f2fs: introduce discard_granularity sysfs entry

2017-10-02 Thread Chao Yu
Hi Park, Thanks for the report, could have a try with below patch: >From 5fa30e8cdcb93f210e25142c48a884be383c6121 Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Mon, 2 Oct 2017 02:50:16 +0800 Subject: [PATCH] f2fs: fix potential panic during fstrim As Ju Hyung Park reported: "When 'fstrim' is ca

[PATCH] ARM: dts: meson8b: add reserved memory zone to fix silent freezes

2017-10-02 Thread Linus Lüssing
So far, the stress-ng tool for instance quickly resulted in a silent freeze of the system with no prior notice on a serial console when running its filesystem or memory stressor classes. Even with a panic-on-OOM and reboot-on-panic (vm.panic_on_oom=1, kernel.panic=10) configured, the system would

Re: [PATCH V7 2/6] block: tracking request allocation with q_usage_counter

2017-10-02 Thread Bart Van Assche
On Sat, 2017-09-30 at 14:12 +0800, Ming Lei wrote: > @@ -1395,16 +1401,21 @@ static struct request *blk_old_get_request(struct > request_queue *q, > unsigned int op, gfp_t gfp_mask) > { > struct request *rq; > + int ret = 0; > > WARN_ON_O

Re: [kprobes/x86] a19b2e3d78: WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller

2017-10-02 Thread Peter Zijlstra
On Tue, Oct 03, 2017 at 12:46:05AM +0900, Masami Hiramatsu wrote: > On Mon, 2 Oct 2017 09:33:16 +0200 > Peter Zijlstra wrote: > > > [ 87.018115] Call Trace: > > > [ 87.025046] trace_hardirqs_off+0xd/0xf > > > [ 87.034185] setjmp_pre_handler+0x6c/0x95 > > > [ 87.043738] kprobe_ftrace_ha

Re: [alsa-devel] usb/sound/usx2y: warning in usb_stream_new/__alloc_pages_slowpath

2017-10-02 Thread Takashi Iwai
On Mon, 02 Oct 2017 16:34:57 +0200, Andrey Konovalov wrote: > > On Mon, Oct 2, 2017 at 2:14 PM, Takashi Iwai wrote: > > On Fri, 22 Sep 2017 11:35:49 +0200, > > Takashi Iwai wrote: > >> > >> On Thu, 21 Sep 2017 17:38:53 +0200, > >> Andrey Konovalov wrote: > >> > > >> > Hi! > >> > > >> > I've got t

Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages

2017-10-02 Thread Michal Hocko
On Mon 02-10-17 17:06:38, Alexandru Moise wrote: > On Mon, Oct 02, 2017 at 04:27:17PM +0200, Michal Hocko wrote: > > On Mon 02-10-17 16:06:33, Alexandru Moise wrote: > > > On Mon, Oct 02, 2017 at 02:54:32PM +0200, Michal Hocko wrote: > > > > On Mon 02-10-17 00:51:11, Alexandru Moise wrote: > > > >

Re: [kprobes/x86] a19b2e3d78: WARNING:at_kernel/locking/lockdep.c:#trace_hardirqs_off_caller

2017-10-02 Thread Linus Torvalds
On Mon, Oct 2, 2017 at 8:46 AM, Masami Hiramatsu wrote: > > I'm considering to remove disabling-irq itself from jprobe. > (Frankly to say, I would like to remove jprobe itself...) Please please please... That would be lovely. The jprobe thing is really nasty, and despite the thing having been ar

Re: [PATCH] PCI MSI: allow alignment restrictions on vector allocation

2017-10-02 Thread Thomas Gleixner
On Mon, 2 Oct 2017, Thomas Gleixner wrote: > On Mon, 2 Oct 2017, Daniel Drake wrote: > 2) The affinity setting of straight MSI interrupts (w/o remapping) on x86 > requires to make the affinity change from the interrupt context of the > current active vector in order not to lose interrup

Re: [PATCH 5/7] ARM: dts: sun8i: a83t: cubietruck-plus: Add AXP818 regulator nodes

2017-10-02 Thread Maxime Ripard
Hi, On Fri, Sep 29, 2017 at 03:25:12AM +, Chen-Yu Tsai wrote: > +#include "axp81x.dtsi" > + > +®_aldo1 { > + regulator-always-on; > + regulator-min-microvolt = <180>; > + regulator-max-microvolt = <180>; > + regulator-name = "vcc18-csi2-dsi-efuse-hdmi-d4dp"; > +}; I'm

Re: [PATCH v2 2/2] pid: Remove pidhash

2017-10-02 Thread Gargi Sharma
On Mon, Oct 2, 2017 at 8:52 PM, Rik van Riel wrote: > On Mon, 2017-10-02 at 17:21 +0200, Oleg Nesterov wrote: >> Hi Rik, >> >> On 10/02, Rik van Riel wrote: >> > >> > Gargi and I are looking at that code, and trying to figure out >> > exactly what needs to be done to make all of this correct. >> >

Re: [PATCH V7 5/6] block: support PREEMPT_ONLY

2017-10-02 Thread Bart Van Assche
On Sat, 2017-09-30 at 14:12 +0800, Ming Lei wrote: > +void blk_set_preempt_only(struct request_queue *q, bool preempt_only) > +{ > + blk_mq_freeze_queue(q); > + if (preempt_only) > + queue_flag_set_unlocked(QUEUE_FLAG_PREEMPT_ONLY, q); > + else > + queue_flag_cle

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-02 Thread Tom Lendacky
On 10/2/2017 8:51 AM, Borislav Petkov wrote: On Mon, Oct 02, 2017 at 08:44:21AM -0500, Tom Lendacky wrote: I think we're talking about the same thing. You want sev_enabled to indicate whether you can launch an SEV guest. We would still need an sev_active variable to distinguish between SME and

Re: system hung up when offlining CPUs

2017-10-02 Thread YASUAKI ISHIMATSU
On 09/16/2017 11:02 AM, Thomas Gleixner wrote: > On Sat, 16 Sep 2017, Thomas Gleixner wrote: >> On Thu, 14 Sep 2017, YASUAKI ISHIMATSU wrote: >>> Here are one irq's info of megasas: >>> >>> - Before offline CPU >>> /proc/irq/70/smp_affinity_list >>> 24-29 >>> >>> /proc/irq/70/effective_affinity >

RE: [PATCH v16 5/5] virtio-balloon: VIRTIO_BALLOON_F_CTRL_VQ

2017-10-02 Thread Wang, Wei W
On Sunday, October 1, 2017 11:19 AM, Michael S. Tsirkin wrote: > On Sat, Sep 30, 2017 at 12:05:54PM +0800, Wei Wang wrote: > > +static void ctrlq_send_cmd(struct virtio_balloon *vb, > > + struct virtio_balloon_ctrlq_cmd *cmd, > > + bool inbuf) > > +{ > > +

Re: [PATCH 1/3] scsi: ufs: Change HCI marco to actual bit position

2017-10-02 Thread Bart Van Assche
On Sat, 2017-09-30 at 11:52 +0530, Alim Akhtar wrote: > Currently UFS HCI uses UFS_BIT() macro to get various bit > position for the hardware registers status bits. Which makes > code longer instead of shorter. This macro does not improve > code readability as well. > Lets re-write these macro defi

[Part2 Patch v4.2] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-10-02 Thread Brijesh Singh
The Platform Security Processor (PSP) is part of AMD Secure Processor (AMD-SP), PSP is a dedicated processor that provides the support for key management commands in a Secure Encrypted Virtualization (SEV) mode, along with software-based Trusted Execution Environment (TEE) to enable the third-party

[PATCH] ARM: footbridge: Delete an error message for a failed memory allocation in dc21285_setup()

2017-10-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Oct 2017 18:36:56 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/arm/mach-footbridge/dc21285.c | 4 +--- 1 file changed, 1 insertio

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-02 Thread Mauro Carvalho Chehab
Em Sun, 1 Oct 2017 20:52:20 -0400 Jérémy Lefaure escreveu: > Anyway, I can tell to each maintainer that they can apply the patches > they're concerned about and next time I may send individual patches. In the case of media, we'll handle it as if they were individual ones. Thanks, Mauro

Re: [PATCH v5 6/7] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-10-02 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 02, 2017 at 03:14:05PM +0100, Will Deacon escreveu: > On Fri, Sep 29, 2017 at 05:19:40PM -0500, Kim Phillips wrote: > > On Thu, 28 Sep 2017 15:09:50 +0100 > > Will Deacon wrote: > > > + if (arm_spe_event_to_pmsevfr(event) & SYS_PMSEVFR_EL1_RES0) > > > + return -EOPNOTSUPP; > >

Re: [PATCH v4 13/27] x86: xen-pvh, annotate data appropriatelly

2017-10-02 Thread Boris Ostrovsky
On 10/02/2017 05:12 AM, Jiri Slaby wrote: > Use the new SYM_DATA_START_LOCAL, and SYM_DATA_END* macros: > 8 OBJECT LOCAL DEFAULT6 gdt > 000832 OBJECT LOCAL DEFAULT6 gdt_start > 0028 0 OBJECT LOCAL DEFAULT6 gdt_end > 0028 256 OBJECT LOCAL DEFAULT6 e

Re: [PATCH v6 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-10-02 Thread Sakari Ailus
Hi Rafael, On Mon, Aug 14, 2017 at 11:39:00PM +0300, Sakari Ailus wrote: > On Fri, Jul 28, 2017 at 05:30:26PM -0700, Rajmohan Mani wrote: > > The Kabylake platform coreboot (Chrome OS equivalent of > > BIOS) has defined 4 operation regions for the TI TPS68470 PMIC. > > These operation regions are

Re: [PATCH] libata: make ata_port_type const

2017-10-02 Thread Tejun Heo
On Sat, Sep 30, 2017 at 10:10:40PM +0530, Bhumika Goyal wrote: > Make this const as it is only stored in the const field of a device > structure. Make the declaration in header const too. > > Structure found using Coccinelle and changes done by hand. > > Signed-off-by: Bhumika Goyal Applied to

Re: [PATCH v4 21/27] x86_64: assembly, add ENDs to some functions and relabel with SYM_CODE_*

2017-10-02 Thread Boris Ostrovsky
On 10/02/2017 05:12 AM, Jiri Slaby wrote: > All these are functions which are invoked from elsewhere, but they are > not typical C functions. So we annotate them (as global) using the new > SYM_CODE_START. All these were not balanced with any END, so mark their > ends by SYM_CODE_END, appropriatell

Re: Modular BIG_KEYS (was: Re: [PATCH v4] security/keys: rewrite all of big_key crypto)

2017-10-02 Thread Eric Biggers
On Mon, Oct 02, 2017 at 09:14:36AM +0200, Geert Uytterhoeven wrote: > Now this has hit mainline, the "BIG_KEYS" Kconfig symbol appeared on my > radar. Is there any reason this cannot be tristate? > > The help text says: > > This option provides support for holding large keys within the kernel

Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB DMA controller

2017-10-02 Thread Stephen Warren
On 09/29/2017 09:11 PM, Dmitry Osipenko wrote: On 29.09.2017 22:30, Stephen Warren wrote: On 09/27/2017 02:34 AM, Jon Hunter wrote: On 27/09/17 02:57, Dmitry Osipenko wrote: On 26.09.2017 17:50, Jon Hunter wrote: On 26/09/17 00:22, Dmitry Osipenko wrote: Document DT bindings for NVIDIA Teg

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-02 Thread Jacob Pan
On Sat, 30 Sep 2017 01:21:43 +0200 "Rafael J. Wysocki" wrote: > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > wrote: > > intel idle driver does not DTRT when running within a VM: > > when going into a deep power state, the right thing to > > do is to exit to hypervisor rather than to ke

Re: [kernel-hardening] [PATCH 0/2] capability controlled user-namespaces

2017-10-02 Thread Serge E. Hallyn
Quoting Mahesh Bandewar (mah...@bandewar.net): > From: Mahesh Bandewar > > [Same as the previous RFC series sent on 9/21] > > TL;DR version > - > Creating a sandbox environment with namespaces is challenging > considering what these sandboxed processes can engage into. e.g. > CVE-201

Re: [PATCH 5/6] lightnvm: pblk: free up mempool allocation for erases correctly

2017-10-02 Thread Rakesh Pandit
On Mon, Oct 02, 2017 at 03:25:10PM +0300, Rakesh Pandit wrote: > On Mon, Oct 02, 2017 at 02:09:35PM +0200, Javier González wrote: > > > On 1 Oct 2017, at 15.25, Rakesh Pandit wrote: > > > > > > While separating read and erase mempools in 22da65a1b pblk_g_rq_cache > > > was used two times to set a

RE: [PATCH RFC V4 5/6] perf top: switch to backward overwrite mode

2017-10-02 Thread Liang, Kan
> On Fri, Sep 29, 2017 at 07:47:56AM -0700, kan.li...@intel.com wrote: > > From: Kan Liang > > > > perf_top__mmap_read has severe performance issue in Knights > > Landing/Mill, when monitoring in heavy load system. It costs several > > minutes to finish, which is unacceptable. > > > > perf top w

Re: [PATCH] writeback: remove unused parameter from balance_dirty_pages()

2017-10-02 Thread Tahsin Erdogan
On Mon, Oct 2, 2017 at 12:56 AM, Michal Hocko wrote: > balance_dirty_pages_ratelimited doesn't really need mapping as well. All > it needs is the inode and we already have it in callers. So would it > make sense to refactor a bit further and make its argument an inode? My only concern is that, ba

Re: [PATCH 6/6] lightnvm: pblk: fix releases of kmem cache in error path

2017-10-02 Thread Rakesh Pandit
On Mon, Oct 02, 2017 at 02:44:23PM +0200, Javier González wrote: > > On 1 Oct 2017, at 15.26, Rakesh Pandit wrote: > > > > If pblk_core_init fails lets destroy all global caches. > > > > Signed-off-by: Rakesh Pandit > > --- > > drivers/lightnvm/pblk-init.c | 8 +++- > > 1 file changed, 7 ins

Re: [PATCH V4] r8152: add Linksys USB3GIGV1 id

2017-10-02 Thread Grant Grundler
On Sun, Oct 1, 2017 at 10:39 PM, David Miller wrote: > From: Grant Grundler > Date: Thu, 28 Sep 2017 11:35:00 -0700 > >> This linksys dongle by default comes up in cdc_ether mode. >> This patch allows r8152 to claim the device: >>Bus 002 Device 002: ID 13b1:0041 Linksys >> >> Signed-off-by: G

Re: [PATCH v2] nvme-pci: Use PCI bus address for data/queues in CMB

2017-10-02 Thread Keith Busch
On Sun, Oct 01, 2017 at 09:42:03AM +0200, Christoph Hellwig wrote: > This looks very convoluted, mostly because the existing code is > doing weird things. For one thing what is sq_dma_addr currently > is not a DMA adddress - we either need the resource address > for the ioremap, but we don't need

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Mark Rutland
m more than happy to give it a go. Thanks, Mark. [1] https://www.kernel.org/pub/linux/kernel/people/mark/bugs/20171002-skb_clone-misaligned-atomic/syzkaller.repro

Re: [PATCH 2/6] lightnvm: pblk: reduce arguments in __pblk_rb_update_l2p

2017-10-02 Thread Rakesh Pandit
On Mon, Oct 02, 2017 at 05:16:57PM +0200, Javier González wrote: > > On 2 Oct 2017, at 13.32, Javier González wrote: > > > >> On 1 Oct 2017, at 15.23, Rakesh Pandit wrote: [..] > >> -static int __pblk_rb_update_l2p(struct pblk_rb *rb, unsigned int *l2p_upd, > >> - unsign

<    1   2   3   4   5   6   7   8   >