[PATCH] ACPI / tables: Add IORT to injectable table list

2018-01-23 Thread Yang Shunyong
This patch adds ACPI_SIG_PPTT to the table, which enables IORT from initrd to override which from firmware. Signed-off-by: Yang Shunyong Cc: yutang2.ji...@hxt-semitech.com Cc: yu.zh...@hxt-semitech.com --- drivers/acpi/tables.c | 3 ++- 1 file changed, 2

Re: [PATCH v6 22/36] nds32: Debugging support

2018-01-23 Thread Arnd Bergmann
On Tue, Jan 23, 2018 at 8:28 AM, Vincent Chen wrote: > 2018-01-18 18:37 GMT+08:00 Arnd Bergmann : >> On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >>> From: Greentime Hu >> >> It appears that you are

[PATCH v2] ACPI / tables: Add IORT to injectable table list

2018-01-23 Thread Yang Shunyong
This patch adds ACPI_SIG_IORT to the table, which enables IORT from initrd to override which from firmware. Signed-off-by: Yang Shunyong Cc: yutang2.ji...@hxt-semitech.com Cc: yu.zh...@hxt-semitech.com --- v2: change typo ACPI_SIG_PPTT to ACPI_SIG_IORT in commit

Re: [RFC v2 1/5] vfio/type1: Introduce iova list and add iommu aperture validity check

2018-01-23 Thread Auger Eric
Hi Shameer, On 18/01/18 01:04, Alex Williamson wrote: > On Fri, 12 Jan 2018 16:45:27 + > Shameer Kolothum wrote: > >> This introduces an iova list that is valid for dma mappings. Make >> sure the new iommu aperture window is valid and doesn't conflict

[PATCH] cpufreq: mediatek: Add mediatek related projects into blacklist

2018-01-23 Thread sean.wang
From: Sean Wang commit 6066998cbd2b1012a8d5bc9a2957cfd0ad53150e upstream. commit edeec420de24 ("cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2") not added MediaTek SoCs to the blacklist that would lead to cause an occasional hang or unexpected

Re: [PATCH v2 1/2] Input: edt-ft5x06 - Add support for regulator

2018-01-23 Thread Lothar Waßmann
Hi, On Mon, 22 Jan 2018 09:42:08 -0800 Dmitry Torokhov wrote: > Hi Mylène, > > On Thu, Dec 28, 2017 at 8:33 AM, Mylène Josserand > wrote: > > Add the support of regulator to use it as VCC source. > > > > Signed-off-by: Mylène Josserand

Re: [RFC v2 2/5] vfio/type1: Check reserve region conflict and update iova list

2018-01-23 Thread Auger Eric
Hi Shameer, On 18/01/18 01:04, Alex Williamson wrote: > On Fri, 12 Jan 2018 16:45:28 + > Shameer Kolothum wrote: > >> This retrieves the reserved regions associated with dev group and >> checks for conflicts with any existing dma mappings. Also update

Re: problematic rc9 futex changes.

2018-01-23 Thread Peter Zijlstra
On Tue, Jan 23, 2018 at 12:34:46AM -0500, Dave Jones wrote: > c1e2f0eaf015fb: "futex: Avoid violating the 10th rule of futex" seems to > make up a few new rules to violate. > > Coverity picked up these two problems in the same code: > Yeah, Geert also spotted it:

Re: [PATCH v1] x86/io: Define readq()/writeq() to use 64-bit type

2018-01-23 Thread Andy Shevchenko
On Mon, 2018-01-22 at 16:46 -0800, h...@zytor.com wrote: > On January 22, 2018 4:32:14 PM PST, "Mehta, Sohil" com> wrote: > > On Fri, 2018-01-19 at 16:33 +0200, Andy Shevchenko wrote: > > > +build_mmio_read(readq, "q", unsigned long long, "=r", :"memory") > > >

Re: [RFC v2 3/5] vfio/type1: check dma map request is within a valid iova range

2018-01-23 Thread Auger Eric
Hi Shameer, On 12/01/18 17:45, Shameer Kolothum wrote: > This checks and rejects any dma map request outside valid iova > range. > > Signed-off-by: Shameer Kolothum > --- > drivers/vfio/vfio_iommu_type1.c | 22 ++ > 1 file changed, 22

[PATCH v8 3/5] x86/KASLR: Give a warning if movable_node specified without kaslr_mem=

2018-01-23 Thread Chao Fan
Since only 'movable_node' specified without 'kaslr_mem=' may break memory hotplug, so reconmmend users using 'kaslr_mem=' when 'movable_node' specified. Acked-by: Baoquan He Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 10 ++

Re: [PATCH v2 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-01-23 Thread Greg KH
On Wed, Jan 17, 2018 at 12:20:32PM -0800, Jolly Shah wrote: > This patch is adding communication layer with firmware. > Firmware driver provides an interface to firmware APIs. > Interface APIs can be used by any driver to communicate to > PMUFW(Platform Management Unit). All requests go through

[PATCH v8 1/5] x86/KASLR: Add kaslr_mem=nn[KMG]@ss[KMG]

2018-01-23 Thread Chao Fan
Introduce a new kernel parameter kaslr_mem=nn[KMG]@ss[KMG] which is used by KASLR only during kernel decompression stage. Users can use it to specify memory regions where kernel can be randomized into. E.g if movable_node specified in kernel cmdline, kernel could be extracted into those movable

[PATCH RFC 14/16] rcuperf: Add config files with various CONFIG_NR_CPUS

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- .../selftests/rcutorture/configs/rcuperf/PRCU-12| 21 + .../rcutorture/configs/rcuperf/PRCU-12.boot | 1 + .../selftests/rcutorture/configs/rcuperf/PRCU-14| 21

Re: Ping Re: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all

2018-01-23 Thread Vincent Legoll
On 1/23/18, Michael Ellerman wrote: > This has been broken in linux-next for ~6 weeks now, can we please merge > this and get it fixed. Added Stephen Rothwell to cc -- Vincent Legoll

[PATCH RFC 03/16] rcutorture: Add PRCU test config files

2018-01-23 Thread lianglihao
From: Lihao Liang Use the same config files as TREE02, TREE03, TREE06, TREE07, and TREE09. Signed-off-by: Lihao Liang --- .../selftests/rcutorture/configs/rcu/CFLIST| 5 .../selftests/rcutorture/configs/rcu/PRCU02| 27

[PATCH RFC 10/16] rcutorture: Test call_prcu() and prcu_barrier()

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- kernel/rcu/prcu.c | 4 +++- kernel/rcu/rcutorture.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/prcu.c b/kernel/rcu/prcu.c index 2664d091..49cb70e6

[PATCH RFC 16/16] Add GPLv2 license

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- include/linux/prcu.h | 4 kernel/rcu/prcu.c| 4 2 files changed, 8 insertions(+) diff --git a/include/linux/prcu.h b/include/linux/prcu.h index 9f740985..9fa74dac 100644 ---

[PATCH RFC 12/16] prcu: Add PRCU Kconfig parameter

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- include/linux/prcu.h | 14 ++ init/Kconfig | 7 +++ kernel/rcu/Makefile | 3 ++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/include/linux/prcu.h

[PATCH v6 0/2] Initial Allwinner V3s CSI Support

2018-01-23 Thread Yong Deng
This patchset add initial support for Allwinner V3s CSI. Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 interface and CSI1 is used for parallel interface. This is not documented in datasheet but by test and guess. This patchset implement a v4l2 framework driver and add a

[PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-23 Thread Yong Deng
Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 interface and CSI1 is used for parallel interface. This is not documented in datasheet but by test and guess. This patch implement a v4l2 framework driver for it. Currently, the driver only support the parallel interface.

[PATCH v8 2/5] x86/KASLR: Handle the memory regions specified in kaslr_mem

2018-01-23 Thread Chao Fan
If no 'kaslr_mem=' specified, just handle the e820/efi entries directly as before. Otherwise, limit kernel to memory regions specified in 'kaslr_mem=' commandline. Rename process_mem_region to slots_count to match slots_fetch_random, and name new function as process_mem_region. Tested-by: Luiz

[PATCH v8 0/5] x86/KASLR: Add parameter kaslr_mem=nn[KMG]@ss[KMG]

2018-01-23 Thread Chao Fan
This is v8 resend. There's no code change. Just improve code comments and document accordingly. So add Baoquan's Acked-by and Luiz's Tested-by. ***Background: People reported that kaslr may randomly chooses some positions which are located in movable memory regions. This will break memory hotplug

[PATCH v2] iommu/mediatek: Move attach_device after iommu-group is ready for M4Uv1

2018-01-23 Thread Yong Wu
In the commit 05f80300dc8b ("iommu: Finish making iommu_group support mandatory"), the iommu framework has supposed all the iommu drivers have their owner iommu-group, it get rid of the FIXME workarounds while the group is NULL. But the flow of Mediatek M4U gen1 looks a bit trick that it will hang

Re: [PATCH v7 2/2] mfd: syscon: Add hardware spinlock support

2018-01-23 Thread Baolin Wang
Hi Lee, On 22 January 2018 at 21:43, Lee Jones wrote: > On Thu, 11 Jan 2018, Lee Jones wrote: >> On Mon, 25 Dec 2017, Baolin Wang wrote: >> >> > Some system control registers need hardware spinlock to synchronize >> > between the multiple subsystems, so we should add

[PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-23 Thread lianglihao
From: Heng Zhang This RCU implementation (PRCU) is based on a fast consensus protocol published in the following paper: Fast Consensus Using Bounded Staleness for Scalable Read-mostly Synchronization. Haibo Chen, Heng Zhang, Ran Liu, Binyu Zang, and Haibing Guan. IEEE

[PATCH RFC 00/16] A new RCU implementation based on a fast consensus protocol

2018-01-23 Thread lianglihao
From: Lihao Liang Dear Paul, This patch set implements a preemptive version of RCU (PRCU) based on the following paper: Fast Consensus Using Bounded Staleness for Scalable Read-mostly Synchronization. Haibo Chen, Heng Zhang, Ran Liu, Binyu Zang, and Haibing Guan. IEEE

[PATCH RFC 04/16] rcuperf: Add PRCU rcu_perf_ops

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- kernel/rcu/rcuperf.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index a4a86fb4..ea80fa3e 100644

[PATCH RFC 02/16] rcutorture: Add PRCU rcu_torture_ops

2018-01-23 Thread lianglihao
From: Lihao Liang Reviewed-by: Heng Zhang Signed-off-by: Lihao Liang --- include/linux/rcupdate.h | 1 + kernel/rcu/rcutorture.c | 40 +++- 2 files changed, 40 insertions(+), 1 deletion(-)

[PATCH RFC 05/16] rcuperf: Add PRCU test config files

2018-01-23 Thread lianglihao
From: Lihao Liang Use the same config file of TREE. Signed-off-by: Lihao Liang --- .../selftests/rcutorture/configs/rcuperf/CFLIST | 1 + .../selftests/rcutorture/configs/rcuperf/PRCU| 20

[PATCH v6 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-01-23 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Reviewed-by: Rob Herring Signed-off-by: Yong Deng --- .../devicetree/bindings/media/sun6i-csi.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644

Re: [PATCH v6 16/36] nds32: DMA mapping API

2018-01-23 Thread Greentime Hu
Hi, Arnd: 2018-01-18 18:26 GMT+08:00 Arnd Bergmann : > On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> This patch adds support for the DMA mapping API. It uses dma_map_ops for >> flexibility. >> >>

Re: [PATCH v2 3/4] drivers: firmware: xilinx: Add sysfs interface

2018-01-23 Thread Greg KH
On Wed, Jan 17, 2018 at 12:20:33PM -0800, Jolly Shah wrote: > Add Firmware-ggs sysfs interface which provides read/write > interface to global storage registers. > > Signed-off-by: Jolly Shah > Signed-off-by: Rajan Vaja > --- >

[PATCH v8 4/5] x86/KASLR: Skip memory mirror handling if movable_node specified

2018-01-23 Thread Chao Fan
In kernel code, if 'movable_node' specified, it will skip the mirror feature. So also skip mirror feature in KASLR. Acked-by: Baoquan He Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH v8 5/5] document: add document for kaslr_mem

2018-01-23 Thread Chao Fan
Cc: linux-...@vger.kernel.org Cc: Jonathan Corbet Cc: Randy Dunlap Signed-off-by: Chao Fan --- Documentation/admin-guide/kernel-parameters.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH v5] devres: combine function devm_ioremap*

2018-01-23 Thread Greg KH
On Tue, Jan 16, 2018 at 08:03:41PM +0800, Yisheng Xie wrote: > When I tried to use devm_ioremap function and review related > code, I found devm_ioremap_* almost have the similar realize > with each other, which can be combined. > > In the former version, I have tried to kill ioremap_cache to >

Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on

2018-01-23 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jan 22, 2018 at 10:04 AM, Andy Lutomirski wrote: > > The existing retpoline code carefully and awkwardly retpolinifies > > the SYSCALL64 slow path. This stops the fast path from being > > particularly fast, and

[PATCH RFC 15/16] rcutorture: Add scripts to run experiments

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- kvm.sh | 452 + run-rcuperf.sh | 26 2 files changed, 478 insertions(+) create mode 100755 kvm.sh create mode 100755

[PATCH RFC 13/16] prcu: Comment source code

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- include/linux/prcu.h | 73 - kernel/rcu/prcu.c| 178 +++ 2 files changed, 225 insertions(+), 26 deletions(-) diff --git

[PATCH RFC 08/16] prcu: Implement PRCU callback processing

2018-01-23 Thread lianglihao
From: Lihao Liang Currently, PRCU core processing only consists of callback processing in prcu_process_callbacks(), which is triggered by the scheduling-clock interrupt. Reviewed-by: Heng Zhang Signed-off-by: Lihao Liang ---

[PATCH RFC 09/16] prcu: Implement prcu_barrier() API

2018-01-23 Thread lianglihao
From: Lihao Liang This is PRCU's counterpart of RCU's rcu_barrier() API. Reviewed-by: Heng Zhang Signed-off-by: Lihao Liang --- include/linux/prcu.h | 7 ++ kernel/rcu/prcu.c| 63

[PATCH RFC 07/16] prcu: Implement call_prcu() API

2018-01-23 Thread lianglihao
From: Lihao Liang This is PRCU's counterpart of RCU's call_rcu() API. Reviewed-by: Heng Zhang Signed-off-by: Lihao Liang --- include/linux/prcu.h | 25 init/main.c | 2 ++ kernel/rcu/prcu.c|

[PATCH RFC 06/16] rcuperf: Set gp_exp to true for tests to run

2018-01-23 Thread lianglihao
From: Lihao Liang Signed-off-by: Lihao Liang --- kernel/rcu/rcuperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index ea80fa3e..baccc123 100644 --- a/kernel/rcu/rcuperf.c +++

[PATCH RFC 11/16] rcutorture: Add basic ARM64 support to run scripts

2018-01-23 Thread lianglihao
From: Lihao Liang This commit adds support of the qemu command qemu-system-aarch64 to rcutorture. Signed-off-by: Lihao Liang --- tools/testing/selftests/rcutorture/bin/functions.sh | 17 +++-- 1 file changed, 15 insertions(+), 2

Re: [PATCH v3 11/20] arm64: mm: Map entry trampoline into trampoline and kernel page tables

2018-01-23 Thread Yisheng Xie
Hi Will, On 2017/12/6 20:35, Will Deacon wrote: > +#ifdef CONFIG_UNMAP_KERNEL_AT_EL0 > +static int __init map_entry_trampoline(void) > +{ > + extern char __entry_tramp_text_start[]; > + > + pgprot_t prot = rodata_enabled ? PAGE_KERNEL_ROX : PAGE_KERNEL_EXEC; > + phys_addr_t pa_start =

Re: [PATCH v2 4/4] drivers: firmware: xilinx: Add debugfs interface

2018-01-23 Thread Greg KH
On Wed, Jan 17, 2018 at 12:20:34PM -0800, Jolly Shah wrote: > +/* Setup debugfs fops */ > +static const struct file_operations fops_zynqmp_pm_dbgfs = { > + .owner = THIS_MODULE, > + .write = zynqmp_pm_debugfs_api_write, > + .read =

Re: [PATCH 2/5] pinctrl: stm32: add STM32F769 MCU support

2018-01-23 Thread Alexandre Torgue
On 01/22/2018 09:25 AM, Linus Walleij wrote: On Mon, Dec 11, 2017 at 9:54 AM, Alexandre Torgue wrote: This patch which adds STM32F769 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Alexandre Torgue

Re: [PATCH arm/aspeed/ast2500 v1] eSPI: add Aspeed AST2500 eSPI driver to boot a host with PCH runs on eSPI

2018-01-23 Thread Greg KH
On Tue, Jan 16, 2018 at 07:52:32PM +0800, Haiyue Wang wrote: > When PCH works under eSPI mode, the PMC (Power Management Controller) in > PCH is waiting for SUS_ACK from BMC after it alerts SUS_WARN. It is in > dead loop if no SUS_ACK assert. This is the basic requirement for the BMC > works as

Re: [PATCH] cpufreq: mediatek: Add mediatek related projects into blacklist

2018-01-23 Thread Greg KH
On Tue, Jan 23, 2018 at 04:31:11PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > commit 6066998cbd2b1012a8d5bc9a2957cfd0ad53150e upstream. > > commit edeec420de24 ("cpufreq: dt-platdev: Automatically create cpufreq > device with OPP v2") not added MediaTek

[PATCH 2/2] ARM: dts: imx6sx: add ARM power domain support

2018-01-23 Thread Anson Huang
Add ARM power domain in PGC. Signed-off-by: Anson Huang --- this patch should be based on 0001-ARM-dts-imx6sx-add-pu-power-domain-support.patch arch/arm/boot/dts/imx6sx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi

[PATCH 1/2] soc: imx: gpc: ARM power domain should be always-on

2018-01-23 Thread Anson Huang
ARM power domain does NOT support runtime off, always-on flag should be set to avoid incorrect power state in pm_genpd_summary: Before: root@imx6qpdlsolox:~# cat /sys/kernel/debug/pm_genpd/pm_genpd_summary domain status slaves /device

Re: [PATCH] Documentation/ABI: clean up sysfs-class-pktcdvd

2018-01-23 Thread Julia Lawall
On Tue, 23 Jan 2018, Aishwarya Pant wrote: > Clean up the sysfs documentation such that it is in the same format as > described in Documentation/ABI/README. Mainly, the patch moves the > attribute names to the 'What:' field. This might be useful for scripting > and tracking changes in the ABI.

[PATCH] block: neutralize blk_insert_cloned_request IO stall regression (was: Re: [RFC PATCH] blk-mq: fixup RESTART when queue becomes idle)

2018-01-23 Thread Mike Snitzer
On Thu, Jan 18 2018 at 5:20pm -0500, Bart Van Assche wrote: > On Thu, 2018-01-18 at 17:01 -0500, Mike Snitzer wrote: > > And yet Laurence cannot reproduce any such lockups with your test... > > Hmm ... maybe I misunderstood Laurence but I don't think that Laurence has >

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-23 Thread David Woodhouse
On Tue, 2018-01-23 at 08:53 +0100, Ingo Molnar wrote: > > The patch below demonstrates the principle, it forcibly enables dynamic > ftrace  > patching (CONFIG_DYNAMIC_FTRACE=y et al) and turns mcount/__fentry__ into a > RET: > >   81a01a40 <__fentry__>: >   81a01a40:   c3   

[RFC PATCH 2/2] hv_netvsc: Change GPADL teardown order according to Hyper-V version

2018-01-23 Thread Mohammed Gamal
Commit 0cf737808ae7 ("hv_netvsc: netvsc_teardown_gpadl() split") introduced a regression causing VMs not to shutdown on pre-Wind2016 hosts after netvsc_remove_device() is called. This was caused as the GPADL teardown sequence was changed. This patch restores the old behavior for pre-Win2016

[RFC PATCH 1/2] hv_netvsc: Split netvsc_revoke_buf() and netvsc_teardown_gpadl()

2018-01-23 Thread Mohammed Gamal
Split each of the functions into two for each of send/recv buffers Signed-off-by: Mohammed Gamal --- drivers/net/hyperv/netvsc.c | 35 +++ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/net/hyperv/netvsc.c

[RFC PATCH 0/2] hv_netvsc: Fix shutdown regression on Win2012 hosts

2018-01-23 Thread Mohammed Gamal
Commit 0cf737808ae7 ("hv_netvsc: netvsc_teardown_gpadl() split") introduced a regression that caused VMs not to shutdown after netvsc_device_remove() is called. This is caused by GPADL teardown sequence change, and while that was necessary to fix issues with Win2016 hosts, it did introduce a

Re: [PATCH] cpufreq: mediatek: Add mediatek related projects into blacklist

2018-01-23 Thread Greg KH
On Tue, Jan 23, 2018 at 05:38:34PM +0800, Sean Wang wrote: > On Tue, 2018-01-23 at 09:46 +0100, Greg KH wrote: > > On Tue, Jan 23, 2018 at 04:31:11PM +0800, sean.w...@mediatek.com wrote: > > > From: Sean Wang > > > > > > commit 6066998cbd2b1012a8d5bc9a2957cfd0ad53150e

Re: [PATCH v3 1/2] arm64: Branch predictor hardening for Cavium ThunderX2

2018-01-23 Thread Will Deacon
On Mon, Jan 22, 2018 at 02:00:59PM -0500, Jon Masters wrote: > On 01/22/2018 06:33 AM, Will Deacon wrote: > > On Fri, Jan 19, 2018 at 04:22:47AM -0800, Jayachandran C wrote: > >> Use PSCI based mitigation for speculative execution attacks targeting > >> the branch predictor. We use the same

Re: [PATCH 2/2] mfd: smsc-ece1099: Improve a size determination in smsc_i2c_probe()

2018-01-23 Thread Lee Jones
On Tue, 16 Jan 2018, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 16 Jan 2018 08:58:26 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size >

RE: [RFC v2 1/5] vfio/type1: Introduce iova list and add iommu aperture validity check

2018-01-23 Thread Shameerali Kolothum Thodi
Hi Eric, > -Original Message- > From: Auger Eric [mailto:eric.au...@redhat.com] > Sent: Tuesday, January 23, 2018 8:25 AM > To: Alex Williamson ; Shameerali Kolothum > Thodi > Cc: pmo...@linux.vnet.ibm.com;

Re: [PATCH v9 3/7] acpi: apei: Add SEI notification type support for ARMv8

2018-01-23 Thread gengdongjiu
sorry fix a typo. On 2018/1/23 17:23, gengdongjiu wrote: >> There are problems with doing this: >> >> Oct. 18, 2017, 10:26 a.m. James Morse wrote: >> | How do SEA and SEI interact? >> | >> | As far as I can see they can both interrupt each other, which isn't >> something >> | the single in_nmi()

[PATCH] rtc: ds1302: remove redundant initializations of pointer bp

2018-01-23 Thread Colin King
From: Colin Ian King Pointe bp is being initialized and this value is never read, it is being updated to the same value later just before it is going to be used. Remove the initialization as it is never read and keep the setting of bp closer to the use of bp. Cleans up

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-23 Thread Ingo Molnar
* David Woodhouse wrote: > > On SkyLake this would add an overhead of maybe 2-3 cycles per function call > > and  > > obviously all this code and data would be very cache hot. Given that the > > average  > > number of function calls per system call is around a dozen, this

Re: [PULL] alpha.git

2018-01-23 Thread Mikulas Patocka
On Sat, 20 Jan 2018, Matt Turner wrote: > Hi Linus, > > Please pull my alpha git tree. It contains a build fix and a regression fix. > > Hopefully still in time for 4.15 :) > > Thanks, > Matt Hi Will you also submit these patches? The first one fixes a crash when pthread_create races with

Re: [PATCH v6 15/15] MIPS: ingenic: Initial GCW Zero support

2018-01-23 Thread Philippe Ombredanne
Paul: On Wed, Jan 10, 2018 at 11:59 PM, Paul Cercueil wrote: > Hi Philippe, > > Le dim. 7 janv. 2018 à 17:18, Philippe Ombredanne a > écrit : >> >> On Fri, Jan 5, 2018 at 7:25 PM, Paul Cercueil >> wrote: >>> >>> The GCW Zero

Re: Network interface "stops working"

2018-01-23 Thread Turbo Fredriksson
Not sure it’s a bug yet, but anyone have any ideas on how I can find out? > On 22 Jan 2018, at 23:32, Cong Wang wrote: > > (Please always Cc netdev for networking related bugs.) > > On Mon, Jan 22, 2018 at 2:02 AM, Turbo Fredriksson wrote: >> I just

Re: unixbench context switch perfomance & cpu topology

2018-01-23 Thread Wanpeng Li
2018-01-22 20:53 GMT+08:00 Peter Zijlstra : > On Mon, Jan 22, 2018 at 07:47:45PM +0800, Wanpeng Li wrote: >> Hi all, >> >> We can observe unixbench context switch performance is heavily >> influenced by cpu topology which is exposed to the guest. the score is >> posted below,

Re: [PATCH v3 11/20] arm64: mm: Map entry trampoline into trampoline and kernel page tables

2018-01-23 Thread Yisheng Xie
Hi Will, On 2018/1/23 18:04, Will Deacon wrote: > On Tue, Jan 23, 2018 at 04:28:45PM +0800, Yisheng Xie wrote: >> On 2017/12/6 20:35, Will Deacon wrote: >>> +#ifdef CONFIG_UNMAP_KERNEL_AT_EL0 >>> +static int __init map_entry_trampoline(void) >>> +{ >>> + extern char __entry_tramp_text_start[];

Re: [PATCH] kasan: add __asan_report_loadN/storeN_noabort callbacks

2018-01-23 Thread Andrey Ryabinin
On 01/19/2018 08:44 PM, Andrey Konovalov wrote: > Instead of __asan_report_load_n_noabort and __asan_report_store_n_noabort > callbacks Clang emits differently named __asan_report_loadN_noabort and > __asan_report_storeN_noabort (similar to __asan_loadN/storeN_noabort, whose > names both GCC and

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-23 Thread Ingo Molnar
* David Woodhouse wrote: > On Tue, 2018-01-23 at 11:15 +0100, Ingo Molnar wrote: > > > > BTW., the reason this is enabled on all distro kernels is because the > > overhead > > is  a single patched-in NOP instruction in the function epilogue, when > > tracing > > is 

Re: [PATCH net-next 1/1] rtnetlink: request RTM_GETLINK by pid or fd

2018-01-23 Thread Jiri Benc
On Tue, 23 Jan 2018 11:26:58 +0100, Wolfgang Bumiller wrote: > Even if you know the netnsid, do the mentioned watches work for > nested/child namespaces if eg. a container creates new namespace before > and/or after the watch was established and moves interfaces to these > child namespaces, would

[PATCH] staging: comedi: dt2811: remove redundant initialization of 'ns'

2018-01-23 Thread Colin King
From: Colin Ian King Variable ns is being initialized with a value that is never read, ns is being re-assigned a new value later on. Remove the redundant initialization. Cleans up clang warning: drivers/staging/comedi/drivers/dt2811.c:310:21: warning: Value stored to

Re: [PATCH v5] devres: combine function devm_ioremap*

2018-01-23 Thread Yisheng Xie
On 2018/1/23 16:42, Greg KH wrote: > On Tue, Jan 16, 2018 at 08:03:41PM +0800, Yisheng Xie wrote: >> When I tried to use devm_ioremap function and review related >> code, I found devm_ioremap_* almost have the similar realize >> with each other, which can be combined. >> >> In the former

Re: [PATCH 1/4] dmaengine: qcom: bam_dma: make bam clk optional

2018-01-23 Thread Vinod Koul
On Mon, Jan 22, 2018 at 09:55:01AM +, Srinivas Kandagatla wrote: > >>@@ -1180,13 +1180,14 @@ static int bam_dma_probe(struct platform_device > >>*pdev) > >>"qcom,controlled-remotely"); > >>bdev->bamclk = devm_clk_get(bdev->dev, "bam_clk"); > >

Re: [PATCH v2 1/2] Input: edt-ft5x06 - Add support for regulator

2018-01-23 Thread Mylene Josserand
Hello Lothar, Le Tue, 23 Jan 2018 09:04:14 +0100, Lothar Waßmann a écrit : > Hi, > > On Mon, 22 Jan 2018 09:42:08 -0800 Dmitry Torokhov wrote: > > Hi Mylène, > > > > On Thu, Dec 28, 2017 at 8:33 AM, Mylène Josserand > > wrote:

Re: [PATCH v1 1/4] seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro

2018-01-23 Thread Lee Jones
On Mon, 22 Jan 2018, Andy Shevchenko wrote: > The DEFINE_SHOW_ATTRIBUTE() helper macro would be useful for current > users, which are many of them, and for new comers to decrease code > duplication. > > Signed-off-by: Andy Shevchenko > --- >

Re: [PATCH 1/4] dmaengine: qcom: bam_dma: make bam clk optional

2018-01-23 Thread Srinivas Kandagatla
On 23/01/18 09:19, Vinod Koul wrote: On Mon, Jan 22, 2018 at 09:55:01AM +, Srinivas Kandagatla wrote: @@ -1180,13 +1180,14 @@ static int bam_dma_probe(struct platform_device *pdev) "qcom,controlled-remotely"); bdev->bamclk =

Re: [PATCH] PCI: qcom: add missing supplies required for msm8996

2018-01-23 Thread Stanimir Varbanov
Hey Srini, As there are no comments I'd propose to change the endpoint supplies to more generic names. On 12/08/2017 11:20 AM, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch adds supplies that are required for msm8996. Two of

[PATCH net 2/2] vhost: do not try to access device IOTLB when not initialized

2018-01-23 Thread Jason Wang
The code will try to access dev->iotlb when processing VHOST_IOTLB_INVALIDATE even if it was not initialized which may lead to NULL pointer dereference. Fixes this by check dev->iotlb before. Fixes: 6b1e6cc7855b0 ("vhost: new device IOTLB API") Signed-off-by: Jason Wang ---

Re: [PATCH] ACPI / tables: Add IORT to injectable table list

2018-01-23 Thread Yang, Shunyong
Hi, All Sorry, please ignore this patch. Please help to review v2. https://patchwork.kernel.org/patch/10179761/ Thanks Shunyong On Tue, 2018-01-23 at 16:06 +0800, Yang Shunyong wrote: > This patch adds ACPI_SIG_PPTT to the table, which enables IORT from > initrd to override which from firmware.

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-23 Thread Ingo Molnar
* Ingo Molnar wrote: > Is there a testcase for the SkyLake 16-deep-call-stack problem that I could > run? > Is there a description of the exact speculative execution vulnerability that > has > to be addressed to begin with? Ok, so for now I'm assuming that this is the 16

Re: [PATCH 2/3] power: supply: add cros-ec USB PD charger driver.

2018-01-23 Thread Lee Jones
On Wed, 17 Jan 2018, Enric Balletbo i Serra wrote: > From: Sameer Nanda > > This driver gets various bits of information about what is connected to > USB PD ports from the EC and converts that into power_supply properties. > > Signed-off-by: Sameer Nanda

Re: [Nouveau] [PATCH] drm/nouveau/mmu: Fix trailing semicolon

2018-01-23 Thread Karol Herbst
Reviewed-by: Karol Herbst On Wed, Jan 17, 2018 at 7:53 PM, Luis de Bethencourt wrote: > The trailing semicolon is an empty statement that does no operation. > Removing it since it doesn't do anything. > > Signed-off-by: Luis de Bethencourt

Re: [PATCH] drm/bridge/synopsys: dsi: Adopt SPDX identifiers

2018-01-23 Thread Philippe CORNU
Hi Laurent, A big *thank* for your review On 01/23/2018 12:30 AM, Laurent Pinchart wrote: > Hi Philippe, > > Thank you for the patch. > > On Monday, 22 January 2018 12:26:08 EET Philippe Cornu wrote: >> Add SPDX identifiers to the Synopsys DesignWare MIPI DSI >> host controller driver. >> >>

Re: [PATCH net-next 1/1] rtnetlink: request RTM_GETLINK by pid or fd

2018-01-23 Thread Wolfgang Bumiller
On Tue, Jan 23, 2018 at 10:30:09AM +0100, Jiri Benc wrote: > On Mon, 22 Jan 2018 23:25:41 +0100, Christian Brauner wrote: > > This is not necessarily true in scenarios where I move a network device > > via RTM_NEWLINK + IFLA_NET_NS_PID into a network namespace I haven't > > created. Here is an

Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation

2018-01-23 Thread David Woodhouse
On Tue, 2018-01-23 at 11:15 +0100, Ingo Molnar wrote: > > BTW., the reason this is enabled on all distro kernels is because the > overhead is  > a single patched-in NOP instruction in the function epilogue, when tracing is  > disabled. So it's not even a CALL+RET - it's a patched in NOP. Hm? We

Re: [PATCH] PCI: qcom: add missing supplies required for msm8996

2018-01-23 Thread Srinivas Kandagatla
On 23/01/18 10:14, Stanimir Varbanov wrote: Hi, On 01/23/2018 11:46 AM, Srinivas Kandagatla wrote: On 23/01/18 09:23, Stanimir Varbanov wrote: Hey Srini, As there are no comments I'd propose to change the endpoint supplies to more generic names. Sure, I will respin this with your

Re: unixbench context switch perfomance & cpu topology

2018-01-23 Thread Wanpeng Li
2018-01-22 21:37 GMT+08:00 Mike Galbraith : > On Mon, 2018-01-22 at 20:27 +0800, Wanpeng Li wrote: >> 2018-01-22 20:08 GMT+08:00 Mike Galbraith : >> > On Mon, 2018-01-22 at 19:47 +0800, Wanpeng Li wrote: >> >> Hi all, >> >> >> >> We can observe unixbench context

[PATCH 2/2] x86/microcode: Fix again accessing initrd after having been freed

2018-01-23 Thread Borislav Petkov
From: Borislav Petkov Commit 24c2503255d3 ("x86/microcode: Do not access the initrd after it has been freed") fixed attempts to access initrd from the microcode loader after it has been freed. However, a similar KASAN warning was reported (stack trace edited): smpboot:

[PATCH 1/2] x86/microcode/intel: Extend BDW late-loading further with LLC size check

2018-01-23 Thread Borislav Petkov
From: Jia Zhang The commit b94b73733171 ("x86/microcode/intel: Extend BDW late-loading with a revision check") reduced the impact of erratum BDF90 for Broadwell model 79. The impact can be reduced further by checking the size of the last level cache portion per

Re: [RFC] Add ability to multiplex SPI bus

2018-01-23 Thread Mark Brown
On Mon, Jan 22, 2018 at 10:51:11PM +, Ben Whitten wrote: > A chip that I am working on acts as an SPI multiplexer for downstream radios, > this patch adds basic support for adding an SPI mux with DT. Please don't send cover letters for single patches, if there is anything that needs saying

Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-01-23 Thread Philippe Ombredanne
Sean, sorry for the late reply and thanks you for this research. On Fri, Jan 12, 2018 at 4:33 AM, Sean Wang wrote: > Currently, I'm really confused about what usage STYLE of SPDX license > identifier I should use for each type of file. > > could you point me where I can

Re: [PATCH] vmalloc: add __alloc_vm_area() for optimizing vmap stack

2018-01-23 Thread Konstantin Khlebnikov
On 22.01.2018 23:51, Andy Lutomirski wrote: On Wed, Oct 11, 2017 at 6:32 AM, Konstantin Khlebnikov wrote: On 08.10.2017 12:16, Christoph Hellwig wrote: This looks fine in general, but a few comments: - can you split adding the new function from switching over

Re: [PATCH v7 2/2] mfd: syscon: Add hardware spinlock support

2018-01-23 Thread Lee Jones
On Tue, 23 Jan 2018, Baolin Wang wrote: > Hi Lee, > > On 22 January 2018 at 21:43, Lee Jones wrote: > > On Thu, 11 Jan 2018, Lee Jones wrote: > >> On Mon, 25 Dec 2017, Baolin Wang wrote: > >> > >> > Some system control registers need hardware spinlock to synchronize > >> >

Re: [PATCH v2 1/2] Input: edt-ft5x06 - Add support for regulator

2018-01-23 Thread Mylene Josserand
Hello Dimitry, Thank you for the review! Le Mon, 22 Jan 2018 09:42:08 -0800, Dmitry Torokhov a écrit : > Hi Mylène, > > On Thu, Dec 28, 2017 at 8:33 AM, Mylène Josserand > wrote: > > Add the support of regulator to use it as VCC

[PATCH net 1/2] vhost: use mutex_lock_nested() in vhost_dev_lock_vqs()

2018-01-23 Thread Jason Wang
We used to call mutex_lock() in vhost_dev_lock_vqs() which tries to hold mutexes of all virtqueues. This may confuse lockdep to report a possible deadlock because of trying to hold locks belong to same class. Switch to use mutex_lock_nested() to avoid false positive. Fixes: 6b1e6cc7855b0 ("vhost:

Re: [PATCH net-next 1/1] rtnetlink: request RTM_GETLINK by pid or fd

2018-01-23 Thread Jiri Benc
On Mon, 22 Jan 2018 23:25:41 +0100, Christian Brauner wrote: > This is not necessarily true in scenarios where I move a network device > via RTM_NEWLINK + IFLA_NET_NS_PID into a network namespace I haven't > created. Here is an example: > > nlmsghdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; >

Re: [PATCH v2] kasan: don't emit builtin calls when sanitization is off

2018-01-23 Thread Andrey Ryabinin
On 01/23/2018 05:20 AM, Andrew Morton wrote: > On Fri, 19 Jan 2018 18:58:12 +0100 Andrey Konovalov > wrote: > >> With KASAN enabled the kernel has two different memset() functions, one >> with KASAN checks (memset) and one without (__memset). KASAN uses some >> macro

[PATCH] bnx2: remove redundant initializations of pointers txr and rxr

2018-01-23 Thread Colin King
From: Colin Ian King Pointers txr and rxr are being initialized and a few statements later are being assigned new values without the original values ever being read. The initialized values are therefore redundant and can be removed. Cleans up clang warnings:

  1   2   3   4   5   6   7   8   9   10   >