Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Mark Rutland
On Tue, May 15, 2018 at 01:43:23PM +0300, Boaz Harrosh wrote: > On 15/05/18 03:41, Matthew Wilcox wrote: > > On Mon, May 14, 2018 at 10:37:38PM +0300, Boaz Harrosh wrote: > >> On 14/05/18 22:15, Matthew Wilcox wrote: > >>> On Mon, May 14, 2018 at 08:28:01PM +0300, Boaz Harrosh wrote: > On a ca

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 02:41:41PM +0300, Boaz Harrosh wrote: > On 15/05/18 14:11, Matthew Wilcox wrote: > > You're still thinking about this from the wrong perspective. If you > > were writing a program to attack this facility, how would you do it? > > It's not exactly hard to leak one pointer's

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Boaz Harrosh
On 15/05/18 14:47, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:43:23PM +0300, Boaz Harrosh wrote: >> Yes I know, but that is exactly the point of this flag. I know that this >> address is only ever accessed from a single core. Because it is an mmap (vma) >> of an O_TMPFILE-exclusive file cre

[PATCH v2 2/2] arm64: dts: exynos: add OF graph between USB-PHY and MUIC

2018-05-15 Thread Andrzej Hajda
OF graph describes USB data lanes between USB-PHY and respective MUIC. Since graph is present and DWC driver can use it to get extcon, obsolete extcon property can be removed. Signed-off-by: Andrzej Hajda --- .../dts/exynos/exynos5433-tm2-common.dtsi | 19 ++- 1 file changed,

[PATCH v2 1/2] USB: dwc3: get extcon device by OF graph bindings

2018-05-15 Thread Andrzej Hajda
extcon device is used to detect host/device connection. Since extcon OF property is deprecated, alternative method should be added. This method uses OF graph bindings to locate extcon. Signed-off-by: Andrzej Hajda --- drivers/usb/dwc3/drd.c | 34 -- 1 file changed

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:41:44PM +0200, Peter Zijlstra wrote: > #!/bin/bash > > gen_proto() { > local cnt=0; > > proto=$1; shift; > ret=$1; shift; > pfx=$1; shift; > sfx=$1; shift; > > echo -n "${ret} "; > > name=${proto%(*}; > echo -n "${pfx}${

[PATCH v2 0/2] USB: dwc3: get extcon device by OF graph bindings

2018-05-15 Thread Andrzej Hajda
Hi, This small patchset tries to address issue with broken DT extcon property in case of USB controller - DWC3. It exposes similar problem as in proposed USB connector bindings[1] - extcon device is required by devices not always connected directly to extcon device. Here we have: DWC3 -> USB-PHY -

Re: [PATCH v2] mm: allow deferred page init for vmemmap only

2018-05-15 Thread Pavel Tatashin
Hi Michal, Thank you for your reply, my comments below: > You are now disabling a potentially useful feature to SPARSEMEM users > without having any evidence that they do suffer from the issue which is > kinda sad. Especially when the only known offender is a UP pcp allocator > implementation. T

Re: [PATCH v2 2/2] arm64: dts: exynos: add OF graph between USB-PHY and MUIC

2018-05-15 Thread Krzysztof Kozlowski
On Tue, May 15, 2018 at 2:12 PM, Andrzej Hajda wrote: > OF graph describes USB data lanes between USB-PHY and respective MUIC. > Since graph is present and DWC driver can use it to get extcon, obsolete > extcon property can be removed. > > Signed-off-by: Andrzej Hajda > --- > .../dts/exynos/exyn

Re: [PATCH v1 1/4] media: rc: introduce BPF_PROG_IR_DECODER

2018-05-15 Thread Sean Young
On Mon, May 14, 2018 at 04:27:19PM -0700, Randy Dunlap wrote: > On 05/14/2018 02:10 PM, Sean Young wrote: > > Add support for BPF_PROG_IR_DECODER. This type of BPF program can call > > Kconfig file below uses IR_BPF_DECODER instead of the symbol name above. > > and then patch 3 says a third choic

Re: [PATCH 06/18] arm64: move sve_user_{enable, disable} to

2018-05-15 Thread Dave Martin
On Tue, May 15, 2018 at 11:39:36AM +0100, Mark Rutland wrote: > On Mon, May 14, 2018 at 12:06:50PM +0100, Dave Martin wrote: > > On Mon, May 14, 2018 at 10:46:28AM +0100, Mark Rutland wrote: > > > In subsequent patches, we'll want to make use of sve_user_enable() and > > > sve_user_disable() outsid

Re: [PATCH v4 1/1] drivers core: multi-threading device shutdown

2018-05-15 Thread Pavel Tatashin
Hi Greg, > Can you refactor this to be at least 2 patches? One that moves code > around to comon functions to make the second patch, that adds the new > functionality, easier to review and understand? Yes, I will split the patch into a two-three patches. > And I echo the "don't use kerneldoc f

Re: Grant

2018-05-15 Thread M. M. Fridman
I Mikhail Fridman. has selected you specially as one of my beneficiaries for my Charitable Donation, Just as I have declared on May 23, 2016 to give my fortune as charity. Check the link below for confirmation: http://www.ibtimes.co.uk/russias-second-wealthiest-man-mikhail-fridman-plans-leaving

Re: [PATCH 1/1] Drivers: hv: vmbus: enable VMBus protocol version 5.0

2018-05-15 Thread Dan Carpenter
On Mon, May 14, 2018 at 11:17:55AM -0700, Stephen Hemminger wrote: > On Mon, 14 May 2018 18:14:15 + > Dexuan Cui wrote: > > > > From: devel On Behalf Of > > > Stephen Hemminger > > > Sent: Sunday, May 13, 2018 10:24 > > > > ... > > > > @@ -372,6 +400,18 @@ int vmbus_post_msg(void *buffer,

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-15 Thread Marek Szyprowski
Hi Vinod, On 2018-05-15 08:21, Vinod wrote: > On 11-05-18, 14:57, Marek Szyprowski wrote: >> On 2018-05-10 18:04, Frank Mori Hess wrote: >>> On Thu, May 10, 2018 at 4:31 AM, Marek Szyprowski >>> wrote: On 2018-05-09 19:48, Frank Mori Hess wrote: > On Wed, May 9, 2018 at 9:19 AM, Marek Sz

[PATCH 0/3] enable ccree on Renesas R-Car platform

2018-05-15 Thread Gilad Ben-Yossef
The following patch set enables CryptoCell present in the Renesas R-Car SoC. Gilad Ben-Yossef (3): crypto: ccree: drop signature register check clk: renesas: r8a7795: Add ccree clock arm64: dts: renesas: r8a7795: add ccree binding arch/arm64/boot/dts/renesas/r8a7795.dtsi | 8 dri

[PATCH 2/3] clk: renesas: r8a7795: Add ccree clock

2018-05-15 Thread Gilad Ben-Yossef
This patch adds the clock used by the CryptoCell 630p instance in the SoC. Signed-off-by: Gilad Ben-Yossef --- drivers/clk/renesas/r8a7795-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r8a7795-cpg-mssr.c b/drivers/clk/renesas/r8a7795-cpg-mssr.c index 775b0ce

[PATCH 3/3] arm64: dts: renesas: r8a7795: add ccree binding

2018-05-15 Thread Gilad Ben-Yossef
Add bindings for CryptoCell instance in the SoC. Signed-off-by: Gilad Ben-Yossef --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 91486b4..6c76841 10

[PATCH 1/3] crypto: ccree: drop signature register check

2018-05-15 Thread Gilad Ben-Yossef
We were using the content of the signature register as a sanity check for the hardware functioning but it turns out not all implementers use the same values so the check is giving false negative on certain SoCs and so we drop it. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_driver

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Boaz Harrosh
On 15/05/18 15:09, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 02:41:41PM +0300, Boaz Harrosh wrote: >> On 15/05/18 14:11, Matthew Wilcox wrote: > >>> You're still thinking about this from the wrong perspective. If you >>> were writing a program to attack this facility, how would you do it? >

Re: [PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware

2018-05-15 Thread Josh Boyer
On Mon, May 14, 2018 at 11:27 PM Luis R. Rodriguez wrote: > On Mon, May 14, 2018 at 10:02:31PM -0400, Mimi Zohar wrote: > > On Mon, 2018-05-14 at 19:28 +, Luis R. Rodriguez wrote: > > > > - CONFIG_IMA_APPRAISE is not fine enough grained. > > > > > > > > The CONFIG_IMA_APPRAISE_FIRMWARE will b

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:07:51PM +0100, Mark Rutland wrote: > // speculatively allocates TLB Ohh, right, I completely forgot about that, but that actually does happen. We had trouble with AMD doing just that only about a year ago or so IIRC. CPUs are comple

[PATCH] arm64: dts: exynos: fix type of thermal trip points for Exynos7

2018-05-15 Thread Bartlomiej Zolnierkiewicz
Currently Exynos thermal driver treats as "active" all specified trip points before reaching maximum number of hardware supported trip points. Moreover polling-delay-passive is specified as "0" in exynos7.dtsi (IOW passive polling is disabled). Therefore fix type of cpu-alert-0 to cpu-alert6 trip p

Re: [PATCH] KVM: arm/arm64: fix unaligned hva start and end in handle_hva_to_gpa

2018-05-15 Thread Jia He
Hi Suzuki On 5/15/2018 4:36 PM, Suzuki K Poulose Wrote: > > Hi Jia > > On 05/15/2018 03:03 AM, Jia He wrote: >> Hi Suzuki >> >> I will merge the other thread into this, and add the necessary CC list >> >> That WARN_ON call trace is very easy to reproduce in my armv8a server after I >> start 20 g

Re: MMC performance degradation due to too many requests

2018-05-15 Thread Linus Walleij
On Mon, May 14, 2018 at 1:30 PM, Faiz Abbas wrote: > Also, I see many times the number of interrupts for mmc1 in 4.14. (...) > I also printed out the size of the DMA transfers in the omap_hsmmc > driver during the dd command. I see that the maximum size of the dma > transfer has decreased from 1

Re: [PATCH 2/2] support kdump when AMD secure memory encryption is active

2018-05-15 Thread kbuild test robot
: https://github.com/0day-ci/linux/commits/Lianbo-Jiang/support-kdump-for-AMD-secure-memory-encryption-sme/20180515-135732 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by

Re: [PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware

2018-05-15 Thread Mimi Zohar
On Tue, 2018-05-15 at 08:32 -0400, Josh Boyer wrote: > One aspect that was always a concern to some is whether the firmware files > were modified directly to have the signature attached to them. That may > run afoul of the "no modification" license that most blobs are shipped > under. Does IMA h

Re: [PATCH 5/6] hwspinlock/u8500: Switch to SPDX license identifier

2018-05-15 Thread Linus Walleij
On Fri, May 11, 2018 at 7:03 PM, Suman Anna wrote: > Use the appropriate SPDX license identifier in the U8500 HWSEM > driver source file and drop the previous boilerplate license text. > > Cc: Mathieu J. Poirier > Cc: Linus Walleij > Signed-off-by: Suman Anna Reviewed-by: Linus Walleij Your

[PATCH V1 00/19] perf tools and x86 PTI entry trampolines

2018-05-15 Thread Adrian Hunter
Hi Here is V1 of patches to support x86 PTI entry trampolines in perf tools. Patches also here: http://git.infradead.org/users/ahunter/linux-perf.git/shortlog/refs/heads/perf-tools-kpti-v1 git://git.infradead.org/users/ahunter/linux-perf.git perf-tools-kpti-v1 Changes Since R

[PATCH V1 03/19] x86: Add entry trampolines to kcore

2018-05-15 Thread Adrian Hunter
From: Alexander Shishkin Signed-off-by: Alexander Shishkin --- arch/x86/mm/cpu_entry_area.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/mm/cpu_entry_area.c b/arch/x86/mm/cpu_entry_area.c index d1da5cf4b2de..fb1fbc8538fa 100644 --- a/arch/x86/mm/cpu_entry_area.c +++ b/arch/

[PATCH V1 01/19] kallsyms: Simplify update_iter_mod()

2018-05-15 Thread Adrian Hunter
The logic in update_iter_mod() is overcomplicated and gets worse every time another get_ksymbol_* function is added. In preparation for adding another get_ksymbol_* function, simplify logic in update_iter_mod(). Signed-off-by: Adrian Hunter --- kernel/kallsyms.c | 20 ++-- 1 fil

[PATCH V1 06/19] perf tools: Fix kernel_start for PTI on x86

2018-05-15 Thread Adrian Hunter
On x86_64, PTI entry trampolines are less than the start of kernel text, but still above 2^63. So leave kernel_start = 1ULL << 63 for x86_64. Signed-off-by: Adrian Hunter --- tools/perf/util/machine.c | 16 +++- tools/perf/util/machine.h | 2 ++ 2 files changed, 17 insertions(+), 1

[PATCH V1 08/19] perf tools: Fix map_groups__split_kallsyms() for entry trampoline symbols

2018-05-15 Thread Adrian Hunter
When kernel symbols are derived from /proc/kallsyms only (not using vmlinux or /proc/kcore) map_groups__split_kallsyms() is used. However that function makes assumptions that are not true with entry trampoline symbols. For now, remove the entry trampoline symbols at that point, as they are no longe

[PATCH V1 10/19] perf tools: Create maps for x86 PTI entry trampolines

2018-05-15 Thread Adrian Hunter
Create maps for x86 PTI entry trampolines, based on symbols found in kallsyms. It is also necessary to keep track of whether the trampolines have been mapped particularly when the kernel dso is kcore. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/Build | 1 + tools/perf/arch/x8

[PATCH V1 09/19] perf tools: Allow for extra kernel maps

2018-05-15 Thread Adrian Hunter
Identify extra kernel maps by name so that they can be distinguished from the kernel map and module maps. Signed-off-by: Adrian Hunter --- tools/perf/util/event.c | 2 +- tools/perf/util/machine.c | 8 ++-- tools/perf/util/map.c | 22 ++ tools/perf/util/map.h

[PATCH V1 04/19] x86: kcore: Give entry trampolines all the same offset in kcore

2018-05-15 Thread Adrian Hunter
Entry trampolines all map to the same page. Represent that by giving the corresponding program headers in kcore the same offset. This has the benefit that, when perf tools uses /proc/kcore as a source for kernel object code, samples from different CPU trampolines are aggregated together. Note, s

[PATCH V1 13/19] perf buildid-cache: kcore_copy: Keep a count of phdrs

2018-05-15 Thread Adrian Hunter
In preparation to add more program headers, keep a count of phdrs. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index b13873a6f368..4e7b71e8ac

[PATCH V1 16/19] perf buildid-cache: kcore_copy: Iterate phdrs

2018-05-15 Thread Adrian Hunter
In preparation to add more program headers, iterate phdrs instead of assuming there is only one for the kernel text and one for the modules. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git

[PATCH V1 18/19] perf buildid-cache: kcore_copy: Copy x86 PTI entry trampoline sections

2018-05-15 Thread Adrian Hunter
Identify and copy any sections for x86 PTI entry trampolines. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 37d9324c27

[PATCH V1 17/19] perf buildid-cache: kcore_copy: Get rid of kernel_map

2018-05-15 Thread Adrian Hunter
In preparation to add more program headers, get rid of kernel_map and modules_map by moving ->kernel_map and ->modules_map to newly allocated entries in the ->phdrs list. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 70 1 file chang

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-15 Thread Radu Pirea
On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: > Hi, > > On 11/05/2018 12:38, Radu Pirea wrote: > > This patch modifies the place where resources and device tree > > properties > > are searched. > > > > Signed-off-by: Radu Pirea > > --- > > drivers/tty/serial/Kconfig| 1 + > >

[PATCH V1 19/19] perf buildid-cache: kcore_copy: Amend the offset of sections that remap kernel text

2018-05-15 Thread Adrian Hunter
x86 PTI entry trampolines all map to the same physical page. If that is reflected in the program headers of /proc/kcore, then do the same for the copy of kcore. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 53 ++-- 1 file changed, 51 ins

[PATCH V1 14/19] perf buildid-cache: kcore_copy: Calculate offset from phnum

2018-05-15 Thread Adrian Hunter
In preparation to add more program headers, calculate offset from the number of phdrs. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 4e7b71e8

[PATCH 0/5] Add ChromeOS EC CEC Support

2018-05-15 Thread Neil Armstrong
Hi All, The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support throught it's Embedded Controller, to enable the Linux CEC Core to communicate with it and get the CEC Physical Address from the correct HDMI Connector, the following must be added/changed: - Add the CEC sub-device re

[PATCH V1 15/19] perf buildid-cache: kcore_copy: Layout sections

2018-05-15 Thread Adrian Hunter
In preparation to add more program headers, layout the relative offset of each section. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symb

[PATCH 1/5] media: cec-notifier: Get notifier by device and connector name

2018-05-15 Thread Neil Armstrong
In non device-tree world, we can need to get the notifier by the driver name directly and eventually defer probe if not yet created. This patch adds a variant of the get function by using the device name instead and will not create a notifier if not yet created. But the i915 driver exposes at lea

[PATCH 4/5] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-15 Thread Neil Armstrong
The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device when the CEC feature bit is present. Signed-off-by: Neil Armstrong --- drivers/mfd/cros_ec_dev.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index

[PATCH 3/5] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-15 Thread Neil Armstrong
The EC can expose a CEC bus, this patch adds the CEC related definitions needed by the cros-ec-cec driver. Having a 16 byte mkbp event size makes it possible to send CEC messages from the EC to the AP directly inside the mkbp event instead of first doing a notification and then a read. Signed-off-

[PATCH 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-15 Thread Neil Armstrong
The Chrome OS Embedded Controller can expose a CEC bus, this patch add the driver for such feature of the Embedded Controller. This driver is part of the cros-ec MFD and will be add as a sub-device when the feature bit is exposed by the EC. The controller will only handle a single logical address

Re: [RFC PATCH v2 2/2] locking/percpu-rwsem: Mark rwsem as non-spinnable in percpu_rwsem_release()

2018-05-15 Thread Oleg Nesterov
On 05/15, Peter Zijlstra wrote: > > > > Afaict the whole .owner=NULL thing in release already stops the spinners > > > > Not really, the new writer will spin in this case, afaics. > > > > But this is another problem and probably we do not care. The new writer is > > almost impossible in this partic

[PATCH 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-15 Thread Neil Armstrong
This patchs adds the cec_notifier feature to the intel_hdmi part of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate between each HDMI ports. The changes will allow the i915 HDMI code to notify EDID and HPD changes to an eventual CEC adapter. Signed-off-by: Neil Armstrong

[PATCH V1 12/19] perf buildid-cache: kcore_copy: Keep phdr data in a list

2018-05-15 Thread Adrian Hunter
Currently, kcore_copy makes 2 program headers, one for the kernel text (namely kernel_map) and one for the modules (namely modules_map). Now more program headers are needed, but treating each program header as a special case results in much more code. Instead, in preparation to add more program he

[PATCH V1 11/19] perf tools: Synthesize and process mmap events for x86 PTI entry trampolines

2018-05-15 Thread Adrian Hunter
Like the kernel text, the location of x86 PTI entry trampolines must be recorded in the perf.data file. Like the kernel, synthesize a mmap event for that, and add processing for it. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/Build | 1 + tools/perf/arch/x86/util/event.c | 76 ++

[PATCH V1 07/19] perf tools: Workaround missing maps for x86 PTI entry trampolines

2018-05-15 Thread Adrian Hunter
On x86_64 the PTI entry trampolines are not in the kernel map created by perf tools. That results in the addresses having no symbols and prevents annotation. It also causes Intel PT to have decoding errors at the trampoline addresses. Workaround that by creating maps for the trampolines. At present

[PATCH V1 05/19] perf tools: Use the _stest symbol to identify the kernel map when loading kcore

2018-05-15 Thread Adrian Hunter
The first symbol is not necessarily in the kernel text. Instead of using the first symbol, use the _stest symbol to identify the kernel map when loading kcore. This allows for the introduction of symbols to identify the x86 PTI entry trampolines. Signed-off-by: Adrian Hunter --- tools/perf/uti

[PATCH V1 02/19] kallsyms, x86: Export addresses of syscall trampolines

2018-05-15 Thread Adrian Hunter
From: Alexander Shishkin Signed-off-by: Alexander Shishkin --- arch/x86/mm/cpu_entry_area.c | 23 +++ kernel/kallsyms.c| 28 +++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/cpu_entry_area.c b/arch/x86/mm/cpu

[PATCH v12 0/4] set VSESR_EL2 by user space and support NOTIFY_SEI notification

2018-05-15 Thread Dongjiu Geng
1. Detect whether KVM can set set guest SError syndrome 2. Support to Set VSESR_EL2 and inject SError by user space. 3. Support live migration to keep SError pending state and VSESR_EL2 value. 4. ACPI 6.1 adds support for NOTIFY_SEI as a GHES notification mechanism, so support this notification

[PATCH v12 2/4] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS

2018-05-15 Thread Dongjiu Geng
For the migrating VMs, user space may need to know the exception state. For example, in the machine A, KVM make an SError pending, when migrate to B, KVM also needs to pend an SError. This new IOCTL exports user-invisible states related to SError. Together with appropriate user space changes, user

[PATCH v12 4/4] arm64: handle NOTIFY_SEI notification by the APEI driver

2018-05-15 Thread Dongjiu Geng
Add a helper to handle the NOTIFY_SEI notification, when kernel gets the NOTIFY_SEI notification, call this helper and let APEI driver to handle this notification. Signed-off-by: Dongjiu Geng --- arch/arm64/include/asm/system_misc.h | 1 + arch/arm64/kernel/traps.c| 4 arch/ar

[PATCH v12 1/4] arm64: KVM: export the capability to set guest SError syndrome

2018-05-15 Thread Dongjiu Geng
For the arm64 RAS Extension, user space can inject a virtual-SError with specified ESR. So user space needs to know whether KVM support to inject such SError, this interface adds this query for this capability. KVM will check whether system support RAS Extension, if supported, KVM returns true to

[PATCH v12 3/4] ACPI / APEI: Add SEI notification type support for ARMv8

2018-05-15 Thread Dongjiu Geng
ACPI 6.x adds support for NOTIFY_SEI as a GHES notification mechanism, so add new GHES notification handling functions. Expose API ghes_notify_sei() to arch code, arch code will call this API when it gets this NOTIFY_SEI. Signed-off-by: Dongjiu Geng Note: Firmware will follow the SError mask rul

Re: [PATCH 1/5] media: cec-notifier: Get notifier by device and connector name

2018-05-15 Thread Hans Verkuil
Hi Neil, Two small comments below: On 05/15/18 14:46, Neil Armstrong wrote: > In non device-tree world, we can need to get the notifier by the driver > name directly and eventually defer probe if not yet created. > > This patch adds a variant of the get function by using the device name > instea

Re: [PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-15 Thread Paul E. McKenney
On Tue, May 15, 2018 at 12:02:43AM -0700, Joel Fernandes wrote: > Hi Paul, > Good morning, hope you're having a great Tuesday. I managed to find some > evening hours today to dig into this a bit more. > > On Mon, May 14, 2018 at 08:59:52PM -0700, Paul E. McKenney wrote: > > On Mon, May 14, 2018 at

Re: [PATCH v2] mm: allow deferred page init for vmemmap only

2018-05-15 Thread Michal Hocko
On Tue 15-05-18 08:17:27, Pavel Tatashin wrote: > Hi Michal, > > Thank you for your reply, my comments below: > > > You are now disabling a potentially useful feature to SPARSEMEM users > > without having any evidence that they do suffer from the issue which is > > kinda sad. Especially when the

Re: [PATCH 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-15 Thread Hans Verkuil
On 05/15/18 14:46, Neil Armstrong wrote: > This patchs adds the cec_notifier feature to the intel_hdmi part > of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate > between each HDMI ports. > The changes will allow the i915 HDMI code to notify EDID and HPD changes > to an ev

Re: [RFC PATCH v2 2/2] locking/percpu-rwsem: Mark rwsem as non-spinnable in percpu_rwsem_release()

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 02:45:32PM +0200, Oleg Nesterov wrote: > On 05/15, Peter Zijlstra wrote: > > > > > > Afaict the whole .owner=NULL thing in release already stops the spinners > > > > > > Not really, the new writer will spin in this case, afaics. > > > > > > But this is another problem and pr

Re: [PATCH] arm64: dts: exynos: fix type of thermal trip points for Exynos7

2018-05-15 Thread Krzysztof Kozlowski
On Tue, May 15, 2018 at 2:37 PM, Bartlomiej Zolnierkiewicz wrote: > Currently Exynos thermal driver treats as "active" all specified > trip points before reaching maximum number of hardware supported > trip points. The trip point type describe the way how system should act - use active or passive

[PATCH 0/1] thunderbolt: Fix for v4.17-rc6

2018-05-15 Thread Mika Westerberg
Hi Greg, There is one fix to make preboot ACL handling show NULL entries correctly in sysfs. The patch is also included in case you want to apply it directly instead of pulling the signed tag. The following changes since commit 75bc37fefc4471e718ba8e651aa74673d4e0a9eb: Linux 4.17-rc4 (2018-05

Re: [PATCH 5/5] media: platform: Add Chrome OS EC CEC driver

2018-05-15 Thread Hans Verkuil
Some small comments below: On 05/15/18 14:47, Neil Armstrong wrote: > The Chrome OS Embedded Controller can expose a CEC bus, this patch add the > driver for such feature of the Embedded Controller. > > This driver is part of the cros-ec MFD and will be add as a sub-device when > the feature bit

[PATCH 1/1] thunderbolt: Handle NULL boot ACL entries properly

2018-05-15 Thread Mika Westerberg
If the boot ACL entry is already NULL we should not fill in the upper two DWs with 0xf. Otherwise they are not shown as empty entries when the sysfs attribute is read. Fixes: 9aaa3b8b4c56 ("thunderbolt: Add support for preboot ACL") Signed-off-by: Mika Westerberg Acked-by: Yehezkel Bernat

Re: KASAN: out-of-bounds Read in ip6_xmit

2018-05-15 Thread Guillaume Nault
On Tue, May 08, 2018 at 09:45:25PM -0700, Eric Biggers wrote: > On Sun, Jan 28, 2018 at 11:24:01AM -0800, syzbot wrote: > > Hello, > > > > syzbot hit the following crash on net-next commit > > 6bb46bc57c8e9ce947cc605e555b7204b44d2b10 (Fri Jan 26 16:00:23 2018 +) > > Merge branch 'cxgb4-fix-dum

Re: [PATCH v10 18/25] mm: provide speculative fault infrastructure

2018-05-15 Thread vinayak menon
On Tue, Apr 17, 2018 at 8:03 PM, Laurent Dufour wrote: > > +#ifdef CONFIG_SPECULATIVE_PAGE_FAULT > + > +#ifndef __HAVE_ARCH_PTE_SPECIAL > +/* This is required by vm_normal_page() */ > +#error "Speculative page fault handler requires __HAVE_ARCH_PTE_SPECIAL" > +#endif > + > +/* > + * vm_normal_page

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-15 Thread Richard Genoud
On 15/05/2018 14:47, Radu Pirea wrote: > On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: >> After your patch, the DMA is not selected anymore: >> atmel_usart_serial atmel_usart_serial.0.auto: TX channel not >> available, switch to pio >> instead of: >> atmel_usart f200.serial: using dm

Re: [PATCH 1/4] amba: Export amba_bustype

2018-05-15 Thread Kim Phillips
On Tue, 15 May 2018 08:59:02 +0200 Ulf Hansson wrote: > On 8 May 2018 at 21:06, Kim Phillips wrote: > > This patch is provided in the context of allowing the Coresight driver > > subsystem to be loaded as modules. Coresight uses amba_bus in its call > > to bus_find_device() in of_coresight_get_

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Boaz Harrosh
On 15/05/18 15:07, Mark Rutland wrote: > On Tue, May 15, 2018 at 01:43:23PM +0300, Boaz Harrosh wrote: >> On 15/05/18 03:41, Matthew Wilcox wrote: >>> On Mon, May 14, 2018 at 10:37:38PM +0300, Boaz Harrosh wrote: On 14/05/18 22:15, Matthew Wilcox wrote: > On Mon, May 14, 2018 at 08:28:01PM

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Boaz Harrosh
On 15/05/18 14:54, Boaz Harrosh wrote: > On 15/05/18 03:44, Matthew Wilcox wrote: >> On Mon, May 14, 2018 at 02:49:01PM -0700, Andrew Morton wrote: >>> On Mon, 14 May 2018 20:28:01 +0300 Boaz Harrosh wrote: In this project we utilize a per-core server thread so everything is kept local.

Re: [PATCH] gpio: zynq: Setup chip->base based on alias ID

2018-05-15 Thread Michal Simek
Hi Linus, On 2.5.2018 16:19, Michal Simek wrote: > On 2.5.2018 15:56, Linus Walleij wrote: >> On Wed, May 2, 2018 at 3:41 PM, Michal Simek wrote: >> >>> If you don't want this patch I understand that and it will become just >>> another soc vendor patch out of mainline. >> >> I don't really know w

Re: [PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-15 Thread Boaz Harrosh
On 15/05/18 15:03, Matthew Wilcox wrote: > On Tue, May 15, 2018 at 02:41:41PM +0300, Boaz Harrosh wrote: >> That would be very hard. Because that program would: >> - need to be root >> - need to start and pretend it is zus Server with the all mount >> thread thing, register new filesystem, grab s

Re: [RFC PATCH 00/11] prctl: Modernise wiring for optional prctl() calls

2018-05-15 Thread Dave Martin
On Mon, May 14, 2018 at 07:28:11PM +0100, Kees Cook wrote: > On Mon, May 14, 2018 at 10:14 AM, Dave Martin wrote: > > [Reviewer note: this is a cross-arch series. To reduce spam, I have > > tried not to Cc people on patches they aren't likely to care about. > > The complete series can be found in

Re: [PATCH 0/2] support kdump for AMD secure memory encryption(sme)

2018-05-15 Thread Tom Lendacky
On 5/14/2018 8:51 PM, Lianbo Jiang wrote: > It is convenient to remap the old memory encrypted to the second kernel by > calling ioremap_encrypted(). > > When sme enabled on AMD server, we also need to support kdump. Because > the memory is encrypted in the first kernel, we will remap the old memo

Re: [PATCH v10 02/27] clk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE

2018-05-15 Thread Sekhar Nori
On Wednesday 09 May 2018 10:55 PM, David Lechner wrote: > +void of_da850_pll0_init(struct device_node *node) > { > - return of_davinci_pll_init(dev, dev->of_node, &da850_pll0_info, > -&da850_pll0_obsclk_info, > -da850_pll0_sysclk_

Re: [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90

2018-05-15 Thread Maxime Ripard
On Mon, May 14, 2018 at 10:40:15PM +0200, Paul Kocialkowski wrote: > Le vendredi 11 mai 2018 à 10:59 +0200, Maxime Ripard a écrit : > > On Wed, May 09, 2018 at 01:31:23PM +0200, Paul Kocialkowski wrote: > > > On Wed, 2018-05-09 at 09:12 +0200, Maxime Ripard wrote: > > > > On Tue, May 08, 2018 at 12

Re: [PATCH 4/9] arm: Split breakpoint validation into "check" and "commit"

2018-05-15 Thread Frederic Weisbecker
On Wed, May 09, 2018 at 12:32:57PM +0100, Mark Rutland wrote: > On Tue, May 08, 2018 at 12:13:23PM +0100, Mark Rutland wrote: > > Hi Frederick, > > > > On Sun, May 06, 2018 at 09:19:50PM +0200, Frederic Weisbecker wrote: > > > The breakpoint code mixes up attribute check and commit into a single >

Re: WARNING in arch_uprobe_analyze_insn

2018-05-15 Thread Oleg Nesterov
On 05/14, syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:66e1c94db3cd Merge branch 'x86-pti-for-linus' of git://git.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1181710780 > kernel config: https://syzkaller.apps

Re: [PATCH v4 2/3] random: Return nbytes filled from hw RNG

2018-05-15 Thread Steven Rostedt
On Tue, 15 May 2018 13:06:25 +1000 "Tobin C. Harding" wrote: > Currently the function get_random_bytes_arch() has return value 'void'. > If the hw RNG fails we currently fall back to using get_random_bytes(). > This defeats the purpose of requesting random material from the hw RNG > in the first

Re: [PATCH 1/3] afs: Rearrange fs/afs/proc.c

2018-05-15 Thread Christoph Hellwig
I generally like this a lot, but this will conflict like mad with my procfs series if done right now :(

Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-05-15 Thread Benjamin Berg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Daniel, I had a quick chat with Bastien about this. The conclusion was that reusing the TOGGLE key may be problematic for gnome-settings-daemon. And the alternative of a new CYCLE key also has some caveats. The most straight forward solution is

Re: [RFC PATCH v4 3/5] ima: differentiate auditing policy rules from "audit" actions

2018-05-15 Thread Mimi Zohar
Hi Stefan, On Fri, 2018-05-11 at 10:42 -0400, Stefan Berger wrote: > From: Mimi Zohar > > The AUDIT_INTEGRITY_RULE is used for auditing IMA policy rules and > the IMA "audit" policy action. This patch defines AUDIT_INTEGRITY_POLICY > to reflect the IMA policy rules. > > Signed-off-by: Mimi Zoh

Re: [PATCH 1/4] amba: Export amba_bustype

2018-05-15 Thread Russell King - ARM Linux
On Tue, May 15, 2018 at 08:59:02AM +0200, Ulf Hansson wrote: > On 8 May 2018 at 21:06, Kim Phillips wrote: > > This patch is provided in the context of allowing the Coresight driver > > subsystem to be loaded as modules. Coresight uses amba_bus in its call > > to bus_find_device() in of_coresight

Re: [PATCH v10 03/27] clk: davinci: psc: allow for dev == NULL

2018-05-15 Thread Sekhar Nori
On Wednesday 09 May 2018 10:55 PM, David Lechner wrote: > @@ -261,10 +263,14 @@ davinci_lpsc_clk_register(struct device *dev, const > char *name, > lpsc->pd = pd; > lpsc->flags = flags; > > - ret = devm_clk_hw_register(dev, &lpsc->hw); > + ret = clk_hw_register(dev, &lpsc->hw

Re: [PATCH 2/3] proc: Add a way to make network proc files writable

2018-05-15 Thread Christoph Hellwig
On Tue, May 01, 2018 at 12:20:33AM +0100, David Howells wrote: > Provide two extra functions, proc_create_net_data_write() and > proc_create_net_single_write() that act like their non-write versions but > also set a write method in the proc_dir_entry struct. > > An internal simple write function i

Re: Revert "dmaengine: pl330: add DMA_PAUSE feature"

2018-05-15 Thread Vinod
On 15-05-18, 14:24, Marek Szyprowski wrote: > Hi Vinod, > > On 2018-05-15 08:21, Vinod wrote: > > On 11-05-18, 14:57, Marek Szyprowski wrote: > >> On 2018-05-10 18:04, Frank Mori Hess wrote: > >>> On Thu, May 10, 2018 at 4:31 AM, Marek Szyprowski > >>> wrote: > On 2018-05-09 19:48, Frank Mor

Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-05-15 Thread Joerg Roedel
On Mon, May 14, 2018 at 03:00:50PM -0500, Gary R Hook wrote: > This was brought up a few weeks ago in, I believe, version 3 of this patch. > That question was discussed (because that's what I did the first time out), > and _someone_ _else_ asked about why I didn't just do it the way I've done > it

Re: [RFC PATCH v2 2/2] locking/percpu-rwsem: Mark rwsem as non-spinnable in percpu_rwsem_release()

2018-05-15 Thread Waiman Long
On 05/15/2018 01:42 AM, Amir Goldstein wrote: > On Mon, May 14, 2018 at 10:31 PM, Waiman Long wrote: >> The percpu_rwsem_release() is called when the ownership of the embedded >> rwsem is to be transferred to another task. The new owner, however, may >> take a while to get the ownership of the loc

Re: [PATCH v4 3/3] vsprintf: Use hw RNG for ptr_key

2018-05-15 Thread Steven Rostedt
On Tue, 15 May 2018 13:06:26 +1000 "Tobin C. Harding" wrote: > Currently we must wait for enough entropy to become available before > hashed pointers can be printed. We can remove this wait by using the > hw RNG if available. > > Use hw RNG to get keying material. > > Suggested-by: Kees Cook

Re: [PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-15 Thread Eric Anholt
Dan Carpenter writes: > On Thu, May 10, 2018 at 04:31:07PM -0700, Eric Anholt wrote: >> @@ -258,32 +181,40 @@ get_msg_context(struct vchiq_mmal_instance *instance) >> if (!msg_context) >> return ERR_PTR(-ENOMEM); >> >> -msg_context->instance = instance; >> -msg_context

Re: [PATCH 3/3] afs: Implement namespacing

2018-05-15 Thread Christoph Hellwig
So the real question here is why afs needs a write callback as the first user of /proc/net ever in a day and time were we've deprecated adding new proc files. This is a discussion that should be had with linux-fsdevel and netdev in Cc. On Tue, May 01, 2018 at 12:20:39AM +0100, David Howells wrote

Re: [PATCH 1/4] amba: Export amba_bustype

2018-05-15 Thread Russell King - ARM Linux
On Tue, May 15, 2018 at 08:15:19AM -0500, Kim Phillips wrote: > On Tue, 15 May 2018 08:59:02 +0200 > Ulf Hansson wrote: > > > On 8 May 2018 at 21:06, Kim Phillips wrote: > > > This patch is provided in the context of allowing the Coresight driver > > > subsystem to be loaded as modules. Coresig

Re: [PATCH v9 2/2] blk-mq: Rework blk-mq timeout handling again

2018-05-15 Thread Sebastian Ott
On Mon, 14 May 2018, Bart Van Assche wrote: > Recently the blk-mq timeout handling code was reworked. See also Tejun > Heo, "[PATCHSET v4] blk-mq: reimplement timeout handling", 08 Jan 2018 > (https://www.mail-archive.com/linux-block@vger.kernel.org/msg16985.html). > This patch reworks the blk-mq t

[PATCH -next] signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions

2018-05-15 Thread Guenter Roeck
Most mips builds fail with arch/mips/kernel/traps.c: In function ‘force_fcr31_sig’: arch/mips/kernel/traps.c:732:2: error: ‘si_code’ may be used uninitialized in this function Fix the problem by initializing si_code with FPE_FLTUNK (undiagnosed floating point exception). Fixes: f43a54a0d

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