[PATCH v4 6/8] ARM: dts: Renesas RZ/N1 SoC base device tree file

2018-04-10 Thread Michel Pollet
This adds the Renesas RZ/N1D (Part #R9A06G032) SoC bare bone support. This currently only handles generic parts (gic, architected timer) and a UART. For simplicity sake, this also relies on the bootloader to set the pinctrl and clocks. Signed-off-by: Michel Pollet --- arch/arm/boot/dts/r9a06g03

[PATCH v4 8/8] reset: Renesas RZ/N1 reboot driver

2018-04-10 Thread Michel Pollet
The Renesas RZ/N1 Family (Part #R9A06G0xx) needs a small driver to reboot the Cortex-A7 cores. This driver is a sub driver of the sysctrl MFD. Signed-off-by: Michel Pollet --- drivers/power/reset/Kconfig | 7 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/rzn1-reboot.

Re: [PATCH] pinctrl/samsung: Correct EINTG banks order

2018-04-10 Thread Tomasz Figa
2018-04-10 16:06 GMT+09:00 Krzysztof Kozlowski : > On Sun, Apr 8, 2018 at 8:07 PM, Paweł Chmiel > wrote: >> All banks with GPIO interrupts should be at beginning >> of bank array and without any other types of banks between them. >> This order is expected by exynos_eint_gpio_irq, when doing >> int

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Zhaoyang Huang
On Tue, Apr 10, 2018 at 4:12 PM, Michal Hocko wrote: > On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: >> On Tue, Apr 10, 2018 at 3:49 PM, Michal Hocko wrote: >> > On Tue 10-04-18 14:39:35, Zhaoyang Huang wrote: >> >> On Tue, Apr 10, 2018 at 2:14 PM, Michal Hocko wrote: > [...] >> >> > OOM_SCORE

Re: [PATCH 4/4 v5 RESEND] selftests: add devpts selftests

2018-04-10 Thread Christian Brauner
On Tue, Apr 10, 2018 at 04:20:44PM +1000, Michael Ellerman wrote: > Hi Christian, > > Christian Brauner writes: > > diff --git a/tools/testing/selftests/Makefile > > b/tools/testing/selftests/Makefile > > index 7442dfb73b7f..dbda89c9d9b9 100644 > > --- a/tools/testing/selftests/Makefile > > +++

[PATCH] MAINTAINERS: Migrate oxnas list to groups.io

2018-04-10 Thread Neil Armstrong
The linux-oxnas migrates from tuxfamily to groups.io for a simpler administration and maintainance. Signed-off-by: Neil Armstrong --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6d296bd..f846da2 100644 --- a/MAINTAINERS +++ b/MA

Re: [PATCH 05/45] C++: Set compilation as C++ for .c files

2018-04-10 Thread David Howells
Hi Fengguang, There's another kbuild test that's probably worth adding if you don't do it already: create a c++ source file that just #includes all the exported UAPI headers and then try to build it. This should catch words like "private" cropping up in structs. Thanks, David

Re: [Xen-devel] [PATCH] xen/pvh: Indicate XENFEAT_linux_rsdp_unrestricted to Xen

2018-04-10 Thread Wei Liu
On Mon, Apr 09, 2018 at 02:51:44PM -0400, Boris Ostrovsky wrote: > Pre-4.17 kernels ignored start_info's rsdp_paddr pointer and instead > relied on finding RSDP in standard location in BIOS RO memory. This > has worked since that's where Xen used to place it. > > However, with recent Xen change (c

[PATCH] x86: fix pgprotval_t format string

2018-04-10 Thread Arnd Bergmann
On 32-bit builds, pgprotval_t can be either 32-bit or 64-bit wide depending on the page table layout. In the latter case, we now get a build warning: In file included from arch/x86/include/asm/bug.h:83, from include/linux/bug.h:5, from include/linux/crypto.h:23,

Re: [PATCH] uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member name

2018-04-10 Thread David Howells
Randy Dunlap wrote: > Since this header is in "include/uapi/linux/", apparently people > want to use it in userspace programs -- even in C++ ones. > However, the header uses a C++ reserved keyword ("private"), > so change that to "dh_private" instead to allow the header file > to be used in C++ u

[PATCH v2] usb: typec: ucsi: fix tracepoint related build error

2018-04-10 Thread Tobias Regnery
There is the following build error with CONFIG_TYPEC_UCSI=m, CONFIG_FTRACE=y and CONFIG_TRACING=n: ERROR: "__tracepoint_ucsi_command" [drivers/usb/typec/ucsi/typec_ucsi.ko] undefined! ERROR: "__tracepoint_ucsi_register_port" [drivers/usb/typec/ucsi/typec_ucsi.ko] undefined! ERROR: "__tracepoint_

[PATCH] scsi: qla2xxx: reduce the time granularity of qla2x00_eh_wait_on_command

2018-04-10 Thread Jianchao Wang
If the cmd has not be returned after aborted by qla2x00_eh_abort, we have to wait for it. However, the time is 1000ms at least currently. If there are a lot cmds need to be aborted, the delay could be long enough to lead to panic due to such as hung task, ocfs2 heartbeat, etc, just before scsi reco

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Cyrill Gorcunov
On Tue, Apr 10, 2018 at 05:52:54AM +0800, Yang Shi wrote: > mmap_sem is on the hot path of kernel, and it very contended, but it is > abused too. It is used to protect arg_start|end and evn_start|end when > reading /proc/$PID/cmdline and /proc/$PID/environ, but it doesn't make > sense since those p

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Jan Kara
On Tue 10-04-18 11:59:03, Minchan Kim wrote: > On Mon, Apr 09, 2018 at 07:41:52PM -0700, Matthew Wilcox wrote: > > On Tue, Apr 10, 2018 at 11:33:39AM +0900, Minchan Kim wrote: > > > @@ -522,7 +532,7 @@ EXPORT_SYMBOL(radix_tree_preload); > > > */ > > > int radix_tree_maybe_preload(gfp_t gfp_mask)

[PATCH] X86/VMX: Disable VMX preempition timer if MWAIT is not intercepted

2018-04-10 Thread KarimAllah Ahmed
The VMX-preemption timer is used by KVM as a way to set deadlines for the guest (i.e. timer emulation). That was safe till very recently when capability KVM_X86_DISABLE_EXITS_MWAIT to disable intercepting MWAIT was introduced. According to Intel SDM 25.5.1: """ The VMX-preemption timer operates in

[PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can only be true / false values. Since the return type of the tick_nohz_tick_stopped is also bool, variable tick_stopped nice to have data type as 'bool' in place of the 'unsigned int'. Moreover, the executed instructions c

Re: [PATCH v5] ANDROID: binder: change down_write to down_read

2018-04-10 Thread Ganesh Mahendran
2018-04-02 18:32 GMT+08:00 Minchan Kim : > Hi Ganesh, > > On Mon, Apr 02, 2018 at 06:01:59PM +0800, Ganesh Mahendran wrote: >> 2018-04-02 15:11 GMT+08:00 Minchan Kim : >> > On Mon, Apr 02, 2018 at 02:46:14PM +0800, Ganesh Mahendran wrote: >> >> 2018-04-02 14:34 GMT+08:00 Minchan Kim : >> >> > On Fr

Re: [RFC, v2, 1/9] hyper_dmabuf: initial upload of hyper_dmabuf drv core framework

2018-04-10 Thread Oleksandr Andrushchenko
On 02/14/2018 03:50 AM, Dongwon Kim wrote: Upload of intial version of core framework in hyper_DMABUF driver enabling DMA_BUF exchange between two different VMs in virtualized platform based on Hypervisor such as XEN. Hyper_DMABUF drv's primary role is to import a DMA_BUF from originator then re

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
Subject and commit message have been updated due for typo. This patch is based on the tip of linux-pm-cpuild branch. Thanks On 2018-04-10 04:51 PM, yuank...@codeaurora.org wrote: From: John Zhao Variable tick_stopped returned by tick_nohz_tick_stopped can only be true / false values. Since th

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Jan Kara
On Tue 10-04-18 10:22:43, Michal Hocko wrote: > On Mon 09-04-18 10:58:15, Minchan Kim wrote: > > Recently, I got a report like below. > > > > [ 7858.792946] [] __list_del_entry+0x30/0xd0 > > [ 7858.792951] [] list_lru_del+0xac/0x1ac > > [ 7858.792957] [] page_cache_tree_insert+0xd8/0x110 > > [ 785

Re: [PATCH 4/4] vfio: ccw: add traceponits for interesting error paths

2018-04-10 Thread Cornelia Huck
On Tue, 10 Apr 2018 10:16:39 +0800 Dong Jia Shi wrote: > Does the following effect make sense? > > # tracer: nop > # > # _-=> irqs-off > # / _=> need-resched > #| / _---=> hardirq/softirq > #

Re: WARNING: kobject bug in corrupted

2018-04-10 Thread Dmitry Vyukov
On Tue, Apr 10, 2018 at 7:02 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > fd40ffc72e2f74c7db61e400903e7d50a88bc0b0 (Mon Apr 9 18:36:05 2018 +) > selinux: fix missing dput() before selinuxfs unmount > syzbot dashboard link: > https://syzkaller.appspot.com/b

[PATCH] remoteproc: fix crashed parameter logic on stop call.

2018-04-10 Thread Arnaud Pouliquen
Fix rproc_add_subdev parameter name and inverse the crashed logic. Fixes: "remoteproc: Pass type of shutdown to subdev remove" Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 4 ++-- include/linux/remoteproc.h | 2 +- 2 files changed, 3 insertions(+), 3 dele

[PATCH] staging: ks7010: Replace mdelay with usleep_range in ks7010_upload_firmware

2018-04-10 Thread Jia-Ju Bai
ks7010_upload_firmware() is never called in atomic context. The call chain ending up at ks7010_upload_firmware() is: [1] ks7010_upload_firmware() <- ks7010_sdio_probe() ks7010_sdio_probe() is set as ".probe" in struct sdio_driver. This function is not called in atomic context. Despite never gett

Re: x86-tip.today (4cdf573) early instaboot

2018-04-10 Thread Ingo Molnar
* Mike Galbraith wrote: > Hi Ingo, > > FYI, my i4790 box reboots immediately.. or close enough to it that you > see nothing at all before again meeting the bios splash. Master with > the ~same config works fine. I haven't poked around yet (work). Hm, so there's been a few 'dangerous' pieces

Re: [PATCH 3/9] mtd: nand: qcom: erased page detection for uncorrectable errors only

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:19 +0530, Abhishek Sahu wrote: > The NAND flash controller generates ECC uncorrectable error > first in case of completely erased page. Currently driver > applies the erased page detection logic for other operation > errors also so fix this and return EIO f

RE: [PATCH] tpm: tpm_crb: relinquish locality on error path.

2018-04-10 Thread Winkler, Tomas
> > On Sat, 2018-04-07 at 19:12 +0300, Tomas Winkler wrote: > > In crb_map_io() function, __crb_request_locality() is called prior to > > crb_cmd_ready(), but if one of the consecutive function fails the flow > > bails out instead of trying to relinquish locality. > > This patch adds goto jump to

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 16:38:32, Zhaoyang Huang wrote: > On Tue, Apr 10, 2018 at 4:12 PM, Michal Hocko wrote: > > On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: > >> On Tue, Apr 10, 2018 at 3:49 PM, Michal Hocko wrote: > >> > On Tue 10-04-18 14:39:35, Zhaoyang Huang wrote: > >> >> On Tue, Apr 10, 2018

Re: [PATCH] X86/VMX: Disable VMX preempition timer if MWAIT is not intercepted

2018-04-10 Thread Paolo Bonzini
On 10/04/2018 10:50, KarimAllah Ahmed wrote: > WARN_ON(preemptible()); > - if (!kvm_x86_ops->set_hv_timer) > + if (!kvm_x86_ops->has_hv_timer || > + !kvm_x86_ops->has_hv_timer(apic->vcpu)) > return false; > > if (!apic_lvtt_period(apic) && atomic_read(&kt

Re: [PATCH] usb: serial: option: add HP LT4220 support

2018-04-10 Thread Johan Hovold
On Tue, Apr 03, 2018 at 10:34:39AM +0800, Edward Chang wrote: > This patch adds support for HP LT4220. > > Signed-off-by: Edward Chang > +/* HP products */ > +#define HP_VENDOR_ID 0x03f0 > +#define HP_PRODUCT_LT42200x0857 > + > struct option_blacklis

[PATCH v3 03/11] iio: Add channel for Position Relative

2018-04-10 Thread Eugen Hristev
Add new channel type for relative position on a pad. These type of analog sensor offers the position of a pen on a touchpad, and is represented as a voltage, which can be converted to a position on X and Y axis on the pad. The channel will hand the relative position on the pad in both directions.

[PATCH v3 05/11] dt-bindings: input: touchscreen: resistive-adc-touch: create bindings

2018-04-10 Thread Eugen Hristev
Added bindings for generic resistive touchscreen ADC. Signed-off-by: Eugen Hristev --- Changes in v3: - renamed file and compatible to exclude "generic" keyword - removed the pressure threshold property, added it as a common touchscreen property in the touchscreen common bindings in a separate

[PATCH] of: Don't create platform device for OPP tables

2018-04-10 Thread Viresh Kumar
The OPP tables are present as separate nodes, whose phandle is used in the "operating-points-v2" property of devices. Currently the OF core creates a platform device for the OPP table unconditionally, which is not used by any kernel code. Skip creating OPP table platform devices. Reported-by: Ste

[PATCH v3 00/11] Add support for SAMA5D2 touchscreen

2018-04-10 Thread Eugen Hristev
Hello, This patch series is a rework of my previous series named: [PATCH 00/14] iio: triggers: add consumer support This is the version 3 of the series, and addresses the received feedback on the v2 series named: [PATCH v2 00/10] Add support for SAMA5D2 touchscreen Changes in v3 are presented at

[PATCH v3 09/11] dt-bindings: iio: adc: at91-sama5d2_adc: add channel specific consumer info

2018-04-10 Thread Eugen Hristev
Added defines for channel consumer device-tree binding Signed-off-by: Eugen Hristev Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 9 + include/dt-bindings/iio/adc/at91-sama5d2_adc.h | 16 2 files changed, 25 insertion

[PATCH v1] battery: Add the ThinkPad battery status quirk

2018-04-10 Thread Ognjen Galic
The EC/ACPI firmware on Lenovo ThinkPads used to report a status of "Unknown" when the battery is between the charge start and charge stop thresholds. On Windows, it reports "Not Charging" so the quirk has been added to fix the "Unknown" state. The chosen new state when the battery is not charging

[PATCH v3 10/11] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-04-10 Thread Eugen Hristev
Preparing the ADC device to connect channel consumer drivers Signed-off-by: Eugen Hristev --- arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 61f68e5..f06ba99 100644 --- a/arch/arm/boot/dts

Re: Occasionally losing the tick_sched_timer

2018-04-10 Thread Thomas Gleixner
On Tue, 10 Apr 2018, Nicholas Piggin wrote: > On Tue, 10 Apr 2018 09:42:29 +0200 (CEST) > Thomas Gleixner wrote: > > > Thomas do you have any ideas on what we might look for, or if we can add > > > some BUG_ON()s to catch this at its source? > > > > Not really. Tracing might be a more efficient

[PATCH v3 11/11] ARM: dts: at91: sama5d2: Add resistive touch device

2018-04-10 Thread Eugen Hristev
Add generic resistive touch device which is connected to ADC block inside the SAMA5D2 SoC Signed-off-by: Eugen Hristev --- Changes in v3: - modified compatible and threshold to adapt to changed bindings Changes in v2: - now added a generic resistive touchscreen node instead of architecture spe

[PATCH v3 07/11] iio: adc: at91-sama5d2_adc: add support for position and pressure channels

2018-04-10 Thread Eugen Hristev
This implements the support for position and pressure for the included touchscreen support in the SAMA5D2 SOC ADC block. Two position channels are added and one for pressure. They can be read in raw format, or through a buffer. A normal use case is for a consumer driver to register a callback buffe

[PATCH] spi: spi-topcliff-pch: Replace GFP_ATOMIC with GFP_KERNEL in pch_spi_handle_dma

2018-04-10 Thread Jia-Ju Bai
pch_spi_handle_dma() is never called in atomic context. This function is only called by pch_spi_process_messages(). pch_spi_process_messages() is only set as a parameter of INIT_WORK() in pch_spi_pd_probe(). Despite never getting called from atomic context, pch_spi_handle_dma() calls kcalloc() wit

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 05:52:54, Yang Shi wrote: [...] > So, introduce a new spinlock in mm_struct to protect the concurrent > access to arg_start|end, env_start|end and others except start_brk and > brk, which are still protected by mmap_sem to avoid concurrent access > from do_brk(). Is there any funda

[PATCH v3 08/11] input: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen

2018-04-10 Thread Eugen Hristev
This adds a generic resistive touchscreen (GRTS) driver, which is based on an IIO device (an ADC). It must be connected to the channels of an ADC to receive touch data. Then it will feed the data into the input subsystem where it registers an input device. It uses an IIO callback buffer to register

Re: [PATCH v3] i2c: i801: blacklist Host Notify on HP EliteBook G3 850

2018-04-10 Thread Wolfram Sang
> > drivers/i2c/busses/i2c-i801.c | 23 +++ > > 1 file changed, 23 insertions(+) > > (...) > > Wolfram and stable, please hold on with this patch, Jason and I may have > found a proper fix so blacklisting would no longer be needed. Awesome, thanks Jean! signature.asc Desc

[PATCH v3 06/11] iio: inkern: add module put/get on iio dev module when requesting channels

2018-04-10 Thread Eugen Hristev
When requesting channels for a particular consumer device, besides requesting the device (incrementing the reference counter), also do it for the driver module of the iio dev. This will avoid the situation where the producer IIO device can be removed and the consumer is still present in the kernel.

[PATCH v3 04/11] dt-bindings: input: touchscreen: add pressure threshold touchscreen property

2018-04-10 Thread Eugen Hristev
Add a common touchscreen optional property that will specify the minimum pressure applied to the screen that is needed such that the driver will report the touch event. Signed-off-by: Eugen Hristev --- Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt | 3 +++ 1 file changed, 3

Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread Thomas Gleixner
On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: > On 2018-04-10 04:00 PM, Rafael J. Wysocki wrote: > > On Tue, Apr 10, 2018 at 9:33 AM, wrote: > > > From: John Zhao > > > > > > Variable tick_stopped returned by tick_nohz_tick_stopped > > > can have only true / forse values. Since the return

[PATCH v3 01/11] iio: adc: at91-sama5d2_adc: fix channel configuration for differential channels

2018-04-10 Thread Eugen Hristev
When iterating through the channels, the index in the array is not the scan index. Added an xlate function to translate to the proper index. The result of the bug is that the channel array is indexed with a wrong index, thus instead of the proper channel, we access invalid memory, which may lead to

[PATCH v3 02/11] MAINTAINERS: add generic resistive touchscreen adc

2018-04-10 Thread Eugen Hristev
Add MAINTAINERS entry for generic resistive touchscreen adc Signed-off-by: Eugen Hristev --- Changes in v3: - Changed source file name MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 36f1442..b406e7f 100644 --- a/MAINTAINERS +++ b/MAINTAINE

Re: [PATCH v2] target-i386: add KVM_HINTS_DEDICATED performance hint

2018-04-10 Thread Wanpeng Li
Hi Eduardo, 2018-03-09 22:16 GMT+08:00 Eduardo Habkost : > On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote: >> From: Wanpeng Li >> >> Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit >> to determine if they run on dedicated vCPUs, allowing optimizations such >> as

Re: [PATCH 4/9] mtd: nand: qcom: fix null pointer access for erased buffer detection

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:20 +0530, Abhishek Sahu wrote: > parse_read_errors can be called with only oob buf also in which > case data_buf will be NULL. If data_buf is NULL, then don’t > treat this page as completely erased in case of ECC uncorrectable > error. > > Signed-off-by:

Re: [PATCH 6/8] livepatch: Remove Nop structures when unused

2018-04-10 Thread Miroslav Benes
On Fri, 23 Mar 2018, Petr Mladek wrote: > Replaced patches are removed from the stack when the transition is > finished. It means that Nop structures will never be needed again > and can be removed. Why should we care? > > + Nop structures make false feeling that the function is patched > e

How to expose various BMC chip controls ?

2018-04-10 Thread Benjamin Herrenschmidt
Hi Folks ! I would like to discuss something we need to solve for BMC chips before we start implementing a solution that you'll reject upstream :-) So quick recap: the BMC chip is the management controller of your server, typically some kind of specialized ARM SoC which controls a variety of thin

RE: [virtio-dev] Re: [RFC] vhost: introduce mdev based hardware vhost backend

2018-04-10 Thread Liang, Cunming
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Tuesday, April 10, 2018 3:52 PM > To: Bie, Tiwei ; Jason Wang > Cc: m...@redhat.com; alex.william...@redhat.com; ddut...@redhat.com; > Duyck, Alexander H ; virtio-dev@lists.oasis- > open.org; linux-kernel@vge

Re: [PATCH] mtd: spi-nor: cadence-quadspi: Add DMA support for direct mode reads

2018-04-10 Thread Marek Vasut
On 04/10/2018 10:19 AM, Vignesh R wrote: > Add support to use DMA over memory mapped reads in direct mode. This > helps in reducing CPU usage from ~100% to ~10% when reading data from > flash. For non-DMA'able/vmalloc'd buffers, driver just falls back to CPU > based memcpy. > > Signed-off-by: Vign

[PATCHv2, RESEND] x86/mm: Do not lose cpuinfo_x86::x86_phys_bits adjustment

2018-04-10 Thread Kirill A. Shutemov
Some features (Intel MKTME, AMD SME) reduce number of effectively available physical address bits. We adjust x86_phys_bits accordingly. If get_cpu_cap() got called more than one time we lose this adjustement. That's exactly what happens in setup_pku(): it gets called after detect_tme() and cpuinf

Re: [RFC,v2,5/9] hyper_dmabuf: default backend for XEN hypervisor

2018-04-10 Thread Oleksandr Andrushchenko
On 02/14/2018 03:50 AM, Dongwon Kim wrote: From: "Matuesz Polrola" The default backend for XEN hypervisor. This backend contains actual implementation of individual methods defined in "struct hyper_dmabuf_bknd_ops" defined as: struct hyper_dmabuf_bknd_ops { /* backend initialization r

Re: [RFC PATCH 2/6] sched: Introduce energy models of CPUs

2018-04-10 Thread Quentin Perret
On Tuesday 10 Apr 2018 at 08:55:14 (+0200), Rafael J. Wysocki wrote: > On Mon, Apr 9, 2018 at 6:42 PM, Quentin Perret wrote: > > On Monday 09 Apr 2018 at 17:32:33 (+0200), Peter Zijlstra wrote: > >> On Mon, Apr 09, 2018 at 02:45:11PM +0100, Quentin Perret wrote: [...] > > I quiet like the first

Re: [PATCH 3/8] livepatch: Add atomic replace

2018-04-10 Thread Petr Mladek
On Mon 2018-04-09 15:53:03, Miroslav Benes wrote: > > > + * see klp_init_object_loaded(). > > > + */ > > > + if (!func->new_func && !func->nop) > > > return -EINVAL; > > > > > > > > INIT_LIST_HEAD(&func->stack_node); > > > @@ -742,6 +920,9 @@ static int klp_init_object_loaded(struc

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Zhaoyang Huang
On Tue, Apr 10, 2018 at 5:01 PM, Michal Hocko wrote: > On Tue 10-04-18 16:38:32, Zhaoyang Huang wrote: >> On Tue, Apr 10, 2018 at 4:12 PM, Michal Hocko wrote: >> > On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: >> >> On Tue, Apr 10, 2018 at 3:49 PM, Michal Hocko wrote: >> >> > On Tue 10-04-18 1

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Michal Hocko
On Tue 10-04-18 10:55:31, Jan Kara wrote: > On Tue 10-04-18 10:22:43, Michal Hocko wrote: > > On Mon 09-04-18 10:58:15, Minchan Kim wrote: > > > Recently, I got a report like below. > > > > > > [ 7858.792946] [] __list_del_entry+0x30/0xd0 > > > [ 7858.792951] [] list_lru_del+0xac/0x1ac > > > [ 785

[PATCH] x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME

2018-04-10 Thread Kirill A. Shutemov
AMD SME claims one bit from physical address to indicate whether the page is encrypted or not. To achieve that we clear out the bit from __PHYSICAL_MASK. The capability to adjust __PHYSICAL_MASK is required beyond AMD SME. For instance for upcoming Intel Multi-Key Total Memory Encryption. Factor

Re: [PATCH 4/4 v5 RESEND] selftests: add devpts selftests

2018-04-10 Thread Michael Ellerman
Christian Brauner writes: > On Tue, Apr 10, 2018 at 04:20:44PM +1000, Michael Ellerman wrote: >> Christian Brauner writes: >> > diff --git a/tools/testing/selftests/Makefile >> > b/tools/testing/selftests/Makefile >> > index 7442dfb73b7f..dbda89c9d9b9 100644 >> > --- a/tools/testing/selftests/Ma

Re: [PATCH] cifs: Use ULL suffix for 64-bit constant

2018-04-10 Thread Aurélien Aptel
Geert Uytterhoeven writes: > On 32-bit (e.g. with m68k-linux-gnu-gcc-4.1): > > fs/cifs/inode.c: In function ‘simple_hashstr’: > fs/cifs/inode.c:713: warning: integer constant is too large for ‘long’ > type > > Fixes: 7ea884c77e5c97f1 ("smb3: Fix root directory when server returns inode >

Re: [PATCH 02/10] locking/qspinlock: Remove unbounded cmpxchg loop from locking slowpath

2018-04-10 Thread Peter Zijlstra
On Mon, Apr 09, 2018 at 06:19:59PM +0100, Will Deacon wrote: > On Mon, Apr 09, 2018 at 05:54:20PM +0200, Peter Zijlstra wrote: > > On Mon, Apr 09, 2018 at 03:54:09PM +0100, Will Deacon wrote: > > > @@ -289,18 +315,26 @@ void queued_spin_lock_slowpath(struct qspinlock > > > *lock, u32 val) > > >

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Cyrill Gorcunov
On Tue, Apr 10, 2018 at 11:09:17AM +0200, Michal Hocko wrote: > On Tue 10-04-18 05:52:54, Yang Shi wrote: > [...] > > So, introduce a new spinlock in mm_struct to protect the concurrent > > access to arg_start|end, env_start|end and others except start_brk and > > brk, which are still protected by

Re: [PATCH 4/4 v5 RESEND] selftests: add devpts selftests

2018-04-10 Thread Christian Brauner
On Tue, Apr 10, 2018 at 07:34:36PM +1000, Michael Ellerman wrote: > Christian Brauner writes: > > On Tue, Apr 10, 2018 at 04:20:44PM +1000, Michael Ellerman wrote: > >> Christian Brauner writes: > >> > diff --git a/tools/testing/selftests/Makefile > >> > b/tools/testing/selftests/Makefile > >> >

Re: [PATCH 8/9] mtd: nand: qcom: helper function for raw read

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:24 +0530, Abhishek Sahu wrote: > This patch does minor code reorganization for raw reads. > Currently the raw read is required for complete page but for > subsequent patches related with erased codeword bit flips > detection, only few CW should be read. So,

Re: [PATCH 05/45] C++: Set compilation as C++ for .c files

2018-04-10 Thread Fengguang Wu
Hi David, On Tue, Apr 10, 2018 at 09:44:14AM +0100, David Howells wrote: Hi Fengguang, There's another kbuild test that's probably worth adding if you don't do it already: create a c++ source file that just #includes all the exported UAPI headers and then try to build it. This should catch wor

Re: [PATCH] selftests/filesystems: Don't run dnotify_test by default

2018-04-10 Thread Christian Brauner
On Tue, Apr 10, 2018 at 04:20:53PM +1000, Michael Ellerman wrote: > In commit ce290a19609d ("selftests: add devpts selftests"), the > filesystems directory was added to the top-level selftests Makefile. > > That had the effect of causing the existing dnotify_test in the > filesystems directory to

Attenzione

2018-04-10 Thread Amministratore
utente webmail Tieni presente che il 95% delle tue e-mail ricevute dopo l'ultima volta che hai bisogno di aggiornare il tuo server di versione webmail nel nostro database sono state ritardate. Per ricevere e inviare i tuoi messaggi su base regolare. Il nostro team tecnico di webmail aggiornerà

Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN

2018-04-10 Thread Zhaoyang Huang
On Tue, Apr 10, 2018 at 5:32 PM, Zhaoyang Huang wrote: > On Tue, Apr 10, 2018 at 5:01 PM, Michal Hocko wrote: >> On Tue 10-04-18 16:38:32, Zhaoyang Huang wrote: >>> On Tue, Apr 10, 2018 at 4:12 PM, Michal Hocko wrote: >>> > On Tue 10-04-18 16:04:40, Zhaoyang Huang wrote: >>> >> On Tue, Apr 10, 2

[PATCH v2 3/3] adp5061: Add support for charging voltage limit enable

2018-04-10 Thread Stefan Popa
This patch adds the option to activate/deactivate the charging voltage limit. If activated, the charger prevents charging until the battery voltage drops below the VCHG_VLIM threshold. This option is not configurable via the power_supply properties, therefore, access via sysfs was provided to exam

[PATCH v2 1/3] adp5061: New driver for ADP5061 I2C battery charger

2018-04-10 Thread Stefan Popa
This patch adds basic support for Analog Devices I2C programmable linear battery charger. With this driver, some parameters can be read and configured such as: * trickle charge current level * trickle charge voltage threshold * weak charge threshold * constant current * constant charge voltage lim

[PATCH v2 2/3] adp5061: Add support for battery charging enable

2018-04-10 Thread Stefan Popa
This patch adds the option to enable/disable battery charging. This option is not configurable via the power_supply properties, therefore, access via sysfs was provided to examine and modify this attribute on the fly. Signed-off-by: Stefan Popa --- Changes in v2: - Fixed kbuild test error by ch

Re: [RFC, v2, 2/9] hyper_dmabuf: architecture specification and reference guide

2018-04-10 Thread Oleksandr Andrushchenko
Sorry for top-posting Can we have all this go into some header file which will not only describe the structures/commands/responses/etc, but will also allow drivers to use those directly without defining the same one more time in the code? For example, this is how it is done in Xen [1]. This w

[PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table

2018-04-10 Thread Javier Martinez Canillas
Commit af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") fixed how the I2C core reports the module alias when devices are registered via OF. But the atmel_mxt_ts driver only has an "atmel,maxtouch" compatible in its OF device ID table, so if a Device Tree is us

Re: [PATCH v2 1/2] clk: at91: Added more information logging.

2018-04-10 Thread Alexandre Belloni
Hi, On 09/04/2018 20:16:21-0400, Marcin Ziemianowicz wrote: > I noticed that when debugging some USB clocking issue that there weren't > many ways to tell what the state of the USB clocking system was. This > adds a few logging statements to see what the relevant code is trying to > do. > > Signe

Re: [PATCH] ieee802154: mcr20a: Fix memory leak in mcr20a_probe

2018-04-10 Thread Xue Liu
Hallo, Thanks for the fix. It looks good. ACK-by: Xue Liu On 5 April 2018 at 18:20, Gustavo A. R. Silva wrote: > Free allocated memory for pdata before return. > > Addresses-Coverity-ID: 1466096 ("Resource leak") > Fixes: 8c6ad9cc5157 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver > d

Re: [PATCH v2 6/9] PCI: dwc: Define maximum number of vectors

2018-04-10 Thread Lorenzo Pieralisi
On Tue, Apr 10, 2018 at 08:59:30AM +0100, Gustavo Pimentel wrote: > Hi Lorenzo, > > On 09/04/2018 17:03, Lorenzo Pieralisi wrote: > > On Mon, Apr 09, 2018 at 10:41:15AM +0100, Gustavo Pimentel wrote: > >> Adds a callback that defines the maximum number of vectors that can be use > >> by the Root C

Re: [RFC, v2, 4/9] hyper_dmabuf: user private data attached to hyper_DMABUF

2018-04-10 Thread Oleksandr Andrushchenko
On 02/14/2018 03:50 AM, Dongwon Kim wrote: Define a private data (e.g. meta data for the buffer) attached to each hyper_DMABUF structure. This data is provided by userapace via export_remote IOCTL and its size can be up to 192 bytes. Signed-off-by: Dongwon Kim Signed-off-by: Mateusz Polrola --

Re: [PATCH 5/9] mtd: nand: qcom: parse read errors for read oob also

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:21 +0530, Abhishek Sahu wrote: > read_page and read_oob both calls the read_page_ecc function. > The QCOM NAND controller protect the OOB available bytes with > ECC so read errors should be checked for read_oob also. Now > this patch moves the error checkin

Re: [RFC,v2,9/9] hyper_dmabuf: threaded interrupt in Xen-backend

2018-04-10 Thread Oleksandr Andrushchenko
On 02/14/2018 03:50 AM, Dongwon Kim wrote: Use threaded interrupt intead of regular one because most part of ISR is time-critical and possibly sleeps Signed-off-by: Dongwon Kim --- .../hyper_dmabuf/backends/xen/hyper_dmabuf_xen_comm.c | 19 +++ 1 file changed, 11 insertions(+

Re: [PATCH v4 3/9] vsprintf: Do not check address of well-known strings

2018-04-10 Thread Andy Shevchenko
On Mon, 2018-04-09 at 14:19 +0200, Petr Mladek wrote: > On Sat 2018-04-07 17:12:35, Andy Shevchenko wrote: > > On Fri, 2018-04-06 at 11:15 +0200, Petr Mladek wrote: > > > On Thu 2018-04-05 15:30:51, Rasmus Villemoes wrote: > > > > On 2018-04-04 10:58, Petr Mladek wrote: > > > > > > > > > Please l

Re: [PATCH 6/9] mtd: nand: qcom: support for checking read errors for last codeword

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:22 +0530, Abhishek Sahu wrote: > Add boolean function argument in parse_read_errors to identify > whether the read error has been called for complete page read or > only last codeword read. This will help in subsequent patches to > detect ECC errors in case

Re: [PATCH] time: tick-sched: use bool for tick_stopped

2018-04-10 Thread yuankuiz
Hi Thomas, On 2018-04-10 05:10 PM, Thomas Gleixner wrote: On Tue, 10 Apr 2018, yuank...@codeaurora.org wrote: On 2018-04-10 04:00 PM, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 9:33 AM, wrote: > > From: John Zhao > > > > Variable tick_stopped returned by tick_nohz_tick_stopped > > ca

[PATCH v2] X86/VMX: Disable VMX preemption timer if MWAIT is not intercepted

2018-04-10 Thread KarimAllah Ahmed
The VMX-preemption timer is used by KVM as a way to set deadlines for the guest (i.e. timer emulation). That was safe till very recently when capability KVM_X86_DISABLE_EXITS_MWAIT to disable intercepting MWAIT was introduced. According to Intel SDM 25.5.1: """ The VMX-preemption timer operates in

Re: [PATCH] X86/VMX: Disable VMX preempition timer if MWAIT is not intercepted

2018-04-10 Thread Raslan, KarimAllah
On Tue, 2018-04-10 at 11:04 +0200, Paolo Bonzini wrote: > On 10/04/2018 10:50, KarimAllah Ahmed wrote: > > > > WARN_ON(preemptible()); > > - if (!kvm_x86_ops->set_hv_timer) > > + if (!kvm_x86_ops->has_hv_timer || > > + !kvm_x86_ops->has_hv_timer(apic->vcpu)) > > return fa

Re: [PATCH 7/9] mtd: nand: qcom: check for operation errors in case of raw read

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:23 +0530, Abhishek Sahu wrote: > Currently there is no error checking for raw read. For raw > reads, there won’t be any ECC failure but the operational > failures are possible so schedule the NAND_FLASH_STATUS read > after each codeword. > > Signed-off-by:

Re: KASAN: null-ptr-deref Read in xattr_getsecurity

2018-04-10 Thread Tetsuo Handa
>From 904d07a6eb014f3df0c5a1ebfcfd4323276a9a76 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 10 Apr 2018 15:15:16 +0900 Subject: [PATCH] commoncap: Handle memory allocation failure. syzbot is reporting NULL pointer dereference at xattr_getsecurity() [1], for cap_inode_getsecurity() is re

[PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Yu Chen
From: Chen Yu There's a use case during test to only print specific round of loops if --interval is specified, for example, with this patch applied: turbostat -i 5 --max_loops 4 will capture 4 samples with 5 seconds interval. Signed-off-by: Chen Yu --- tools/power/x86/turbostat/turbostat.c |

Re: [RFC PATCH 2/6] sched: Introduce energy models of CPUs

2018-04-10 Thread Rafael J. Wysocki
On Tue, Apr 10, 2018 at 11:31 AM, Quentin Perret wrote: > On Tuesday 10 Apr 2018 at 08:55:14 (+0200), Rafael J. Wysocki wrote: >> On Mon, Apr 9, 2018 at 6:42 PM, Quentin Perret >> wrote: >> > On Monday 09 Apr 2018 at 17:32:33 (+0200), Peter Zijlstra wrote: >> >> On Mon, Apr 09, 2018 at 02:45:11P

Re: [PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table

2018-04-10 Thread Enric Balletbo Serra
Thanks Javier! 2018-04-10 11:53 GMT+02:00 Javier Martinez Canillas : > Commit af503716ac14 ("i2c: core: report OF style module alias for devices > registered via OF") fixed how the I2C core reports the module alias when > devices are registered via OF. > > But the atmel_mxt_ts driver only has an "

Re: [REGRESSION][BISECTED] i.MX6 pinctrl hogs stopped working

2018-04-10 Thread Richard Fitzgerald
On 04/04/18 06:33, Mika Penttilä wrote: Hi! Reverting this made the hogs on a i.MX6 board work again. : commit b89405b6102fcc3746f43697b826028caa94c823 Author: Richard Fitzgerald Date: Wed Feb 28 15:53:06 2018 + pinctrl: devicetree: Fix dt_to_map_one_config handling of hogs --M

Re: [PATCH][RFC] tools/power turbostat: if --max_loop, print for specific time of loops

2018-04-10 Thread Rafael J. Wysocki
On Tue, Apr 10, 2018 at 12:18 PM, Yu Chen wrote: > From: Chen Yu > > There's a use case during test to only print specific round of loops > if --interval is specified, for example, with this patch applied: > > turbostat -i 5 --max_loops 4 > will capture 4 samples with 5 seconds interval. Why --m

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-10 Thread Mike Rapoport
Jon, Andrew, How do you suggest to continue with this? On Sun, Apr 01, 2018 at 09:38:58AM +0300, Mike Rapoport wrote: > (added akpm) > > On Thu, Mar 29, 2018 at 03:46:07PM -0600, Jonathan Corbet wrote: > > On Wed, 21 Mar 2018 21:22:16 +0200 > > Mike Rapoport wrote: > > > > > These patches conv

Re: [PATCH] ieee802154: mcr20a: Fix memory leak in mcr20a_probe

2018-04-10 Thread Stefan Schmidt
Hello. On 04/10/2018 11:54 AM, Xue Liu wrote: > Hallo, > > Thanks for the fix. It looks good. > > ACK-by: Xue Liu Thanks for the ACK Xue. The correct format would be Acked-by: Xue Liu That way patchwork also picks the ACK up and adds it to the patch before I apply it from there. No worries

Re: [PATCH] mm: workingset: fix NULL ptr dereference

2018-04-10 Thread Jan Kara
On Tue 10-04-18 11:32:41, Michal Hocko wrote: > On Tue 10-04-18 10:55:31, Jan Kara wrote: > > On Tue 10-04-18 10:22:43, Michal Hocko wrote: > > > On Mon 09-04-18 10:58:15, Minchan Kim wrote: > > > > Recently, I got a report like below. > > > > > > > > [ 7858.792946] [] __list_del_entry+0x30/0xd0 >

Re: [PATCH 9/9] mtd: nand: qcom: erased page bitflips detection

2018-04-10 Thread Miquel Raynal
Hi Abhishek, On Wed, 4 Apr 2018 18:12:25 +0530, Abhishek Sahu wrote: > Some of the newer nand parts can have bit flips in an erased > page due to the process technology used. In this case, qpic AFAIK, this has always been possible, it was just rare. > nand controller is not able to identify t

[PATCH v2] display: panel: Add AUO g070vvn01 display support (800x480)

2018-04-10 Thread Lukasz Majewski
This commit adds support for AUO's 7.0" display. Signed-off-by: Lukasz Majewski --- Changes for v2: - Add *.txt suffix to the auo,g070wn01 file - Remove not needed bus-format-override = "rgb565"; property --- .../bindings/display/panel/auo,g070vvn01.txt | 30 + drivers

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