[PATCH v2] regmap: irq: allow different device for irq chip and regmap

2017-06-22 Thread Michael Grzeschik
From: Philipp Zabel If the irq chip device is using the regmap of its parent device or a syscon regmap that doesn't have an associated device at all, allow the driver to provide its own device. That makes it possible to reference the irq controller from other devices running on the same regmap.

Re: [PATCH v7 19/36] x86/mm: Add support to access boot related data in the clear

2017-06-22 Thread Matt Fleming
On Fri, 16 Jun, at 01:53:26PM, Tom Lendacky wrote: > Boot data (such as EFI related data) is not encrypted when the system is > booted because UEFI/BIOS does not run with SME active. In order to access > this data properly it needs to be mapped decrypted. > > Update early_memremap() to provide an

[tip:locking/core] locking/atomic/x86: Un-macro-ify atomic ops implementation

2017-06-22 Thread tip-bot for Dmitry Vyukov
Commit-ID: 0f2376eb0ff8851124c876eb81806d7ec1b421d1 Gitweb: http://git.kernel.org/tip/0f2376eb0ff8851124c876eb81806d7ec1b421d1 Author: Dmitry Vyukov AuthorDate: Sat, 17 Jun 2017 11:15:27 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:19:56 +0200 locking/atomic/x86: Un-mac

[tip:locking/core] locking/atomic/x86: Use 's64 *' for 'old' argument of atomic64_try_cmpxchg()

2017-06-22 Thread tip-bot for Dmitry Vyukov
Commit-ID: f6dda790094b0d658b59cf108c52805f1f7c11e6 Gitweb: http://git.kernel.org/tip/f6dda790094b0d658b59cf108c52805f1f7c11e6 Author: Dmitry Vyukov AuthorDate: Sat, 17 Jun 2017 11:15:28 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:19:56 +0200 locking/atomic/x86: Use 's

[tip:x86/apic] x86/apic: Make init_legacy_irqs() __init

2017-06-22 Thread tip-bot for Dou Liyang
Commit-ID: a884d25f383133c845d23c2cce929ba15994ca62 Gitweb: http://git.kernel.org/tip/a884d25f383133c845d23c2cce929ba15994ca62 Author: Dou Liyang AuthorDate: Wed, 21 Jun 2017 18:14:21 +0800 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:34:41 +0200 x86/apic: Make init_legacy_ir

[tip:locking/core] locking/atomic: Add asm-generic/atomic-instrumented.h

2017-06-22 Thread tip-bot for Dmitry Vyukov
Commit-ID: ff5060d9b2a73917dbf52654e29b08018e22a1f9 Gitweb: http://git.kernel.org/tip/ff5060d9b2a73917dbf52654e29b08018e22a1f9 Author: Dmitry Vyukov AuthorDate: Sat, 17 Jun 2017 11:15:29 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:20:12 +0200 locking/atomic: Add asm-ge

[tip:x86/apic] x86/apic: Make arch_init_msi/htirq_domain __init

2017-06-22 Thread tip-bot for Dou Liyang
Commit-ID: 538ac46c64a6bc61e71982091fc1eef0026f322e Gitweb: http://git.kernel.org/tip/538ac46c64a6bc61e71982091fc1eef0026f322e Author: Dou Liyang AuthorDate: Thu, 22 Jun 2017 11:15:41 +0800 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:34:42 +0200 x86/apic: Make arch_init_msi/

[tip:perf/urgent] perf/x86/intel: Add 1G DTLB load/store miss support for SKL

2017-06-22 Thread tip-bot for Kan Liang
Commit-ID: fb3a5055cd7098f8d1dd0cd38d717223255f Gitweb: http://git.kernel.org/tip/fb3a5055cd7098f8d1dd0cd38d717223255f Author: Kan Liang AuthorDate: Mon, 19 Jun 2017 07:26:09 -0700 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 11:07:08 +0200 perf/x86/intel: Add 1G DTLB lo

[tip:x86/mm] x86/ldt: Simplify the LDT switching logic

2017-06-22 Thread tip-bot for Andy Lutomirski
Commit-ID: 7353425881b170a24990b4d3bdcd14b1156fa8bd Gitweb: http://git.kernel.org/tip/7353425881b170a24990b4d3bdcd14b1156fa8bd Author: Andy Lutomirski AuthorDate: Tue, 20 Jun 2017 22:22:08 -0700 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:57:50 +0200 x86/ldt: Simplify the LD

[tip:x86/mm] x86/mm: Remove reset_lazy_tlbstate()

2017-06-22 Thread tip-bot for Andy Lutomirski
Commit-ID: d54368127a11c6da0776c109a4c65a7b6a815f32 Gitweb: http://git.kernel.org/tip/d54368127a11c6da0776c109a4c65a7b6a815f32 Author: Andy Lutomirski AuthorDate: Tue, 20 Jun 2017 22:22:09 -0700 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:57:50 +0200 x86/mm: Remove reset_laz

[tip:x86/boot] x86/debug: Extend the lower bound of crash kernel low reservations

2017-06-22 Thread tip-bot for Jiri Bohac
Commit-ID: fe2d48b805d01e14ddb8144de01de43171eb516f Gitweb: http://git.kernel.org/tip/fe2d48b805d01e14ddb8144de01de43171eb516f Author: Jiri Bohac AuthorDate: Fri, 16 Jun 2017 18:16:02 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 11:10:23 +0200 x86/debug: Extend the lower b

Re: [PATCH V1 7/9] clk: sprd: add adjustable pll support

2017-06-22 Thread Arnd Bergmann
On Thu, Jun 22, 2017 at 12:17 PM, Chunyan Zhang wrote: > On 20 June 2017 at 09:37, Stephen Boyd wrote: >> On 06/18, Chunyan Zhang wrote: >>> + kint = DIV_ROUND_CLOSEST(((fvco - refin * nint * CCU_PLL_1M)/1) * >>> + ((mask >> (shift + i)) + 1), refin * 100) << i; >>> + cfg[index].

[tip:sched/core] sched/loadavg: Generalize "_idle" naming to "_nohz"

2017-06-22 Thread tip-bot for Frederic Weisbecker
Commit-ID: 3c85d6db5e5f05ae6c3d7f5a0ceceb43746a5ca7 Gitweb: http://git.kernel.org/tip/3c85d6db5e5f05ae6c3d7f5a0ceceb43746a5ca7 Author: Frederic Weisbecker AuthorDate: Mon, 19 Jun 2017 04:12:00 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 11:30:01 +0200 sched/loadavg: Gener

[tip:sched/core] nohz: Move idle balancer registration to the idle path

2017-06-22 Thread tip-bot for Frederic Weisbecker
Commit-ID: a0db971e4eb69fc84eb3d7ef94f718b483550b4a Gitweb: http://git.kernel.org/tip/a0db971e4eb69fc84eb3d7ef94f718b483550b4a Author: Frederic Weisbecker AuthorDate: Mon, 19 Jun 2017 04:12:01 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 11:30:01 +0200 nohz: Move idle bala

[tip:locking/core] locking/refcount: Create unchecked atomic_t implementation

2017-06-22 Thread tip-bot for Kees Cook
Commit-ID: 87f7583e9205fe5220677d0775f3a4d2b8fe8827 Gitweb: http://git.kernel.org/tip/87f7583e9205fe5220677d0775f3a4d2b8fe8827 Author: Kees Cook AuthorDate: Wed, 21 Jun 2017 13:00:26 -0700 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 10:36:25 +0200 locking/refcount: Create unche

[tip:sched/core] sched/fair: Spare idle load balancing on nohz_full CPUs

2017-06-22 Thread tip-bot for Frederic Weisbecker
Commit-ID: 387bc8b5536eeb0a92f4b4ab553539eaea2ac0ba Gitweb: http://git.kernel.org/tip/387bc8b5536eeb0a92f4b4ab553539eaea2ac0ba Author: Frederic Weisbecker AuthorDate: Mon, 19 Jun 2017 04:12:02 +0200 Committer: Ingo Molnar CommitDate: Thu, 22 Jun 2017 11:30:02 +0200 sched/fair: Spare id

[PATCH 2/2] x86/idle: use dynamic halt poll

2017-06-22 Thread root
From: Yang Zhang use dynamic poll to reduce the cost when the event is not occurred during poll. The idea is similar to current dynamic halt poll inside KVM: Before entering idle, we will record the time. After wakeup from idle (nomally, this is in interrupt handler), we will record the time too.

[PATCH 1/2] x86/idle: add halt poll for halt idle

2017-06-22 Thread root
From: Yang Zhang This patch introduce a new mechanism to poll for a while before entering idle state. David has a topic in KVM forum to describe the problem on current KVM VM when running some message passing workload in KVM forum. Also, there are some work to improve the performance in KVM, lik

[PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread root
From: Yang Zhang Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the overhead is amplified when running inside VM. The most cost i have seen is inside idle path. This patch introduces a new mechanism to poll for a while before en

Re: [PATCH] PM / QoS: constify *_attribute_group.

2017-06-22 Thread Pavel Machek
On Thu 2017-06-22 16:23:32, Arvind Yadav wrote: > File size before: >text data bss dec hex filename >3890 1152 8505013ba drivers/base/power/sysfs.o > > File size After adding 'const': >text data bss dec hex filename >

Re: [PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread Yang Zhang
On 2017/6/22 19:22, root wrote: From: Yang Zhang Sorry to use wrong username to send patch because i am using a new machine which don't setup the git config well. Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the overhead

[PATCH 3/3] crypto: cpp - Abstract interrupt registeration

2017-06-22 Thread Brijesh Singh
The CCP and PSP devices part of AMD Secure Procesor may share the same interrupt. Hence we expand the SP device to register a common interrupt handler and provide functions to CCP and PSP devices to register their interrupt callback which will be invoked upon interrupt. Signed-off-by: Brijesh Sing

[PATCH 0/3] Introduce AMD Secure Processor device

2017-06-22 Thread Brijesh Singh
CCP device (drivers/crypto/ccp/ccp.ko) is part of AMD Secure Processor, which is not dedicated solely to crypto. The AMD Secure Processor includes CCP and PSP (Platform Secure Processor) devices. This patch series adds a framework that allows functional component of the AMD Secure Processor to be

[PATCH 2/3] crypto: ccp - Introduce the AMD Secure Processor device

2017-06-22 Thread Brijesh Singh
The CCP device is part of the AMD Secure Processor. In order to expand the usage of the AMD Secure Processor, create a framework that allows functional components of the AMD Secure Processor to be initialized and handled appropriately. Signed-off-by: Brijesh Singh --- drivers/crypto/Kconfig

[PATCH 1/3] crypto: ccp - Use devres interface to allocate PCI/iomap and cleanup

2017-06-22 Thread Brijesh Singh
Update pci and platform files to use devres interface to allocate the PCI and iomap resources. Also add helper functions to consolicate module init, exit and power mangagement code duplication. Signed-off-by: Brijesh Singh --- drivers/crypto/ccp/ccp-dev-v3.c | 8 +++ drivers/crypto/ccp/ccp-d

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-22 Thread Yury Norov
On Wed, Jun 21, 2017 at 02:10:03AM +0300, Yury Norov wrote: > On Mon, Jun 19, 2017 at 04:58:16PM +0100, James Morse wrote: > > Hi Yury, [...] > > This is confusing as 'is_compat_task()' matches one of aarch32 or ilp32, but > > compat_user_mode(regs) only matches aarch32 as it checks the saved sp

[PATCH] PM / CPU: constify *_attribute_group.

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 2280 776 43060 bf4 drivers/base/cpu.o File size After adding 'const': textdata bss dec hex filename 2384 648 43036 bdc drivers/base/cpu.o Signed-off-by: Arvind Yadav --

Re: [PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread Wanpeng Li
2017-06-22 19:22 GMT+08:00 root : > From: Yang Zhang > > Some latency-intensive workload will see obviously performance > drop when running inside VM. The main reason is that the overhead > is amplified when running inside VM. The most cost i have seen is > inside idle path. > This patch introduce

Re: [PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-22 Thread Philippe CORNU
On 06/22/2017 08:06 AM, Peter Rosin wrote: > The redundant fb helper .load_lut is no longer used, and can not > work right without also providing the fb helpers .gamma_set and > .gamma_get thus rendering the code in this driver suspect. > Hi Peter, STM32 chipsets supports 8-bit CLUT mode but th

Re: [PATCH v2 2/5] dt-bindings: scsi: ufs: add document for hi3660-ufs

2017-06-22 Thread Arnd Bergmann
On Thu, Jun 22, 2017 at 1:44 PM, Bu Tao wrote: > 在 2017/6/17 5:51, Arnd Bergmann 写道: >> On Fri, Jun 16, 2017 at 8:51 AM, Bu Tao wrote: >>> +Optional properties for board device: >>> +- ufs-hi3660-use-rate-B: specifies UFS rate-B >>> +- ufs-hi3660-broken-fastauto : specifies no f

Re: [PATCH 2/2] x86/idle: use dynamic halt poll

2017-06-22 Thread Paolo Bonzini
On 22/06/2017 13:22, root wrote: > == > > +poll_grow: (X86 only) > + > +This parameter is multiplied in the grow_poll_ns() to increase the poll time. > +By default, the values is 2. > + > +=

Re: [PATCH 2/2] spi: add driver for STM32 SPI controller

2017-06-22 Thread Amelie DELAUNAY
Hi Mark, Thanks for your review. On 06/21/2017 05:13 PM, Mark Brown wrote: On Wed, Jun 21, 2017 at 04:32:06PM +0200, Amelie Delaunay wrote: A few minor stylistic things but overall this looks really nice, please send followup patches fixing these style things. + /* Determine the first

Re: [PATCH 1/2] dt-bindings: spi: Document the STM32 SPI bindings

2017-06-22 Thread Amelie DELAUNAY
On 06/21/2017 05:20 PM, Neil Armstrong wrote: On 06/21/2017 04:32 PM, Amelie Delaunay wrote: This patch adds the documentation of device tree bindings for the STM32 SPI controller. Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/spi/spi-stm32.txt | 60 ++

Re: [tpmdd-devel] [PATCH v3 1/6] tpm: use tpm_buf functions to perform a PCR read

2017-06-22 Thread Roberto Sassu
On 6/22/2017 12:14 PM, Jarkko Sakkinen wrote: On Wed, Jun 21, 2017 at 04:29:36PM +0200, Roberto Sassu wrote: tpm2_pcr_read() now uses tpm_buf functions to build the TPM command to read a PCR. Those functions are preferred to passing a tpm2_cmd structure, as they provide protection against buffer

[PATCH] base: topology: constify topology_attr_group.

2017-06-22 Thread Arvind Yadav
File size before: text data bss dec hex filename 594 328 0 922 39a drivers/base/topology.o File size After adding 'const': textdata bss dec hex filename 634 264 0 898 382 drivers/base/topology.o Signed-off-by: Arvind

Re: [PATCH v2 2/5] dt-bindings: scsi: ufs: add document for hi3660-ufs

2017-06-22 Thread Bu Tao
在 2017/6/17 5:51, Arnd Bergmann 写道: On Fri, Jun 16, 2017 at 8:51 AM, Bu Tao wrote: add ufs node document for hi3660 Signed-off-by: Bu Tao --- .../devicetree/bindings/ufs/hi3660-ufs.txt | 58 ++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/d

Re: [PATCH v2 2/5] dt-bindings: scsi: ufs: add document for hi3660-ufs

2017-06-22 Thread Bu Tao
在 2017/6/22 19:51, Arnd Bergmann 写道: On Thu, Jun 22, 2017 at 1:44 PM, Bu Tao wrote: 在 2017/6/17 5:51, Arnd Bergmann 写道: On Fri, Jun 16, 2017 at 8:51 AM, Bu Tao wrote: +Optional properties for board device: +- ufs-hi3660-use-rate-B: specifies UFS rate-B +- ufs-hi3660-broken-

[PATCH] block: rbd: constify rbd_attr_group and rbd_opts_tokens

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 431002161 64 45325b10d drivers/block/rbd.o File size After adding 'const': textdata bss dec hex filename 432921969 64 45325b10d drivers/block/rbd.o Signed-off-by: Arvind Yadav

Re: [PATCH V1 7/9] clk: sprd: add adjustable pll support

2017-06-22 Thread Chunyan Zhang
Hi Arnd, On 22 June 2017 at 19:15, Arnd Bergmann wrote: > On Thu, Jun 22, 2017 at 12:17 PM, Chunyan Zhang wrote: >> On 20 June 2017 at 09:37, Stephen Boyd wrote: >>> On 06/18, Chunyan Zhang wrote: > + kint = DIV_ROUND_CLOSEST(((fvco - refin * nint * CCU_PLL_1M)/1) * + ((ma

[PATCH v6 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/remotepr

[PATCH v6 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-06-22 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi --- drive

[PATCH v6 4/4] remoteproc: qcom: Add support for mss remoteproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_

[PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-06-22 Thread Avaneesh Kumar Dwivedi
Two different processors on a SOC need to switch memory ownership during load/unload. To enable this, second level memory map table need to be updated, which is done by secure layer. This patch adds the interface for making secure monitor call for memory ownership switching request. Signed-off-by:

[PATCH v6 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-06-22 Thread Avaneesh Kumar Dwivedi
This patch set does following 1- Adds new scm call which helps in stage two translation of a memory region so that memory ownership sharing and switching can be achieved on armv8 and later. 2- Enable mss remoteproc on msm8996 Major changes since last patch: - R

[PATCH] block: cciss: constify cciss_host_attr_group and cciss_dev_attr_group

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 409111432 304 42647a697 drivers/block/cciss.o File size After adding 'const': textdata bss dec hex filename 410391304 304 42647a697 drivers/block/cciss.o Signed-off-by: Arvind Yad

Re: rtc: ds3232: add temperature support

2017-06-22 Thread Kirill Esipov
2017-06-22 1:24 GMT+03:00 Guenter Roeck : > On Wed, Jun 21, 2017 at 05:49:43PM +0300, Kirill Esipov wrote: >> DS3232/DS3234 has the temperature registers with a resolution of >> 0.25 degree celsius. This enables to get the value through hwmon. >> >> # cat /sys/class/hwmon/hwmon0/temp1_input >

[PATCH v6 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-06-22 Thread Ding Tianhong
From: Casey Leedom The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING indicates that the Relaxed Ordering Attribute should not be used on Transaction Layer Packets destined for the PCIe End Node so flagged. Initially flagged this way are Intel E5-26xx Root Complex Ports which suffer from a Flow Cont

[PATCH v6 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-22 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Signed-off-by: Casey Leedom Signed-off-by: Ding Tianhong --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethern

[PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-22 Thread Ding Tianhong
Some devices have problems with Transaction Layer Packets with the Relaxed Ordering Attribute set. This patch set adds a new PCIe Device Flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known devices with Relaxed Ordering issues, and a use of this new flag by the cxgb4 dr

[PATCH v6 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-22 Thread Ding Tianhong
The PCIe Device Control Register use the bit 4 to indicate that whether the device is permitted to enable relaxed ordering or not. But relaxed ordering is not safe for some platform which could only use strong write ordering, so devices are allowed (but not required) to enable relaxed ordering bit

Re: [PATCH v2 2/5] dt-bindings: scsi: ufs: add document for hi3660-ufs

2017-06-22 Thread Arnd Bergmann
On Thu, Jun 22, 2017 at 1:58 PM, Bu Tao wrote: > 在 2017/6/22 19:51, Arnd Bergmann 写道: >> On Thu, Jun 22, 2017 at 1:44 PM, Bu Tao wrote: >>> 在 2017/6/17 5:51, Arnd Bergmann 写道: On Fri, Jun 16, 2017 at 8:51 AM, Bu Tao wrote: >>> >>> I do not know wheher other SoC need to use the optional prop

Re: [PATCH v3 11/11] x86/mm: Try to preserve old TLB entries using PCID

2017-06-22 Thread Thomas Gleixner
On Wed, 21 Jun 2017, Andy Lutomirski wrote: > On Wed, Jun 21, 2017 at 6:38 AM, Thomas Gleixner wrote: > > That requires a conditional branch > > > > if (asid >= NR_DYNAMIC_ASIDS) { > > asid = 0; > > > > } > > > > The question is whether 4 IDs wo

Re: [PATCH] block: rbd: constify rbd_attr_group and rbd_opts_tokens

2017-06-22 Thread Joe Perches
On Thu, 2017-06-22 at 17:34 +0530, Arvind Yadav wrote: > File size before: >text data bss dec hex filename > 43100 2161 64 45325b10d drivers/block/rbd.o > > File size After adding 'const': >text data bss dec hex filename > 4

Re: [PATCH] powerpc: Only obtain cpu_hotplug_lock if called by rtasd

2017-06-22 Thread Thomas Gleixner
On Wed, 21 Jun 2017, Thiago Jung Bauermann wrote: > Michael Ellerman writes: > >> Notes: > >> This patch applies on tip/smp/hotplug, it should probably be carried > >> there. > > > > stop_machine_cpuslocked() doesn't exist in mainline so I think it has to > > be carried there right? > > Yes.

[PATCH v9 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-22 Thread Geetha sowjanya
Cavium ThunderX2 SMMUv3 implementation has two Silicon Erratas. 1. Errata ID #74 SMMU register alias Page 1 is not implemented 2. Errata ID #126 SMMU doesnt support unique IRQ lines and also MSI for gerror, eventq and cmdq-sync The following patchset does software workaround for these two

Re: [PATCH 2/2] ARM: cpuidle: Support asymmetric idle definition

2017-06-22 Thread Daniel Lezcano
On 12/06/2017 20:49, Rafael J. Wysocki wrote: > On Monday, June 12, 2017 05:55:10 PM Daniel Lezcano wrote: >> Some hardware have clusters with different idle states. The current code does >> not support this and fails as it expects all the idle states to be identical. >> >> Because of this, the Med

[PATCH v9 1/3] ACPI/IORT: Fixup SMMUv3 resource size for Cavium ThunderX2 SMMUv3 model

2017-06-22 Thread Geetha sowjanya
From: Linu Cherian Cavium ThunderX2 implementation doesn't support second page in SMMU register space. Hence, resource size is set as 64k for this model. Signed-off-by: Linu Cherian Signed-off-by: Geetha Sowjanya --- drivers/acpi/arm64/iort.c | 15 ++- 1 files changed, 14 insert

[PATCH v9 3/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126

2017-06-22 Thread Geetha sowjanya
From: Geetha Sowjanya Cavium ThunderX2 SMMU doesn't support MSI and also doesn't have unique irq lines for gerror, eventq and cmdq-sync. New named irq "combined" is set as a errata workaround, which allows to share the irq line by register single irq handler for all the interrupts. Signed-off-b

[PATCH 3/5] x86/mpx: Do not allow MPX if we have mappings above 47-bit

2017-06-22 Thread Kirill A. Shutemov
MPX (without MAWA extension) cannot handle addresses above 47-bit, so we need to make sure that MPX cannot be enabled if we already have VMA above the boundary and forbid creating such VMAs once MPX is enabled. The patch implements mpx_unmapped_area_check() which is called from all variants of get

[PATCH v9 2/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74

2017-06-22 Thread Geetha sowjanya
From: Linu Cherian Cavium ThunderX2 SMMU implementation doesn't support page 1 register space and PAGE0_REGS_ONLY option is enabled as an errata workaround. This option when turned on, replaces all page 1 offsets used for EVTQ_PROD/CONS, PRIQ_PROD/CONS register access with page 0 offsets. SMMU r

[PATCH 4/5] x86/mm: Prepare to expose larger address space to userspace

2017-06-22 Thread Kirill A. Shutemov
On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in pointers to encode their information. It collides with valid pointers with 5-level paging and leads to crashes.

[PATCH 2/5] x86/mm: Rename tasksize_32bit/64bit to task_size_32bit/64bit

2017-06-22 Thread Kirill A. Shutemov
Rename these helpers to be consistent with spelling of TASK_SIZE and related constants. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/elf.h | 4 ++-- arch/x86/kernel/sys_x86_64.c | 2 +- arch/x86/mm/hugetlbpage.c| 2 +- arch/x86/mm/mmap.c | 10 +- 4 files

[PATCH 1/5] x86: Enable 5-level paging support

2017-06-22 Thread Kirill A. Shutemov
Most of things are in place and we can enable support of 5-level paging. The patch makes XEN_PV dependent on !X86_5LEVEL. XEN_PV is not ready to work with 5-level paging. Signed-off-by: Kirill A. Shutemov Reviewed-by: Juergen Gross --- Documentation/x86/x86_64/5level-paging.txt | 64 ++

[PATCH 0/5] Last bits for initial 5-level paging enabling

2017-06-22 Thread Kirill A. Shutemov
As Ingo requested I've split and updated last two patches for my previous patchset. Please review and consider applying. Kirill A. Shutemov (5): x86: Enable 5-level paging support x86/mm: Rename tasksize_32bit/64bit to task_size_32bit/64bit x86/mpx: Do not allow MPX if we have mappings abov

[PATCH 5/5] x86/mm: Allow userspace have mapping above 47-bit

2017-06-22 Thread Kirill A. Shutemov
All bits and pieces now in place and we can allow userspace to have VMAs above 47-bit. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Andrzej Hajda
On 22.06.2017 11:23, Boris Brezillon wrote: > On Thu, 22 Jun 2017 13:47:43 +0530 > Archit Taneja wrote: > >> On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: >>> 2017-06-20 19:31 GMT+02:00 Eric Anholt : Archit Taneja writes: > On 06/16/2017 08:13 PM, Eric Anholt wrote: >>

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Ben Hutchings
Here's my attempt at a backport to 3.2. This is only tested on x86_64 and I think I should introduce local variables for vma_start_gap() in a few places. I had to cherry-pick commit 09884964335e "mm: do not grow the stack vma just because of an overrun on preceding vma" before this one (which was

Re: [PATCH 0/3] some scheduler code movements

2017-06-22 Thread Nicolas Pitre
On Thu, 22 Jun 2017, Ingo Molnar wrote: > > * Nicolas Pitre wrote: > > > On Wed, 21 Jun 2017, Ingo Molnar wrote: > > > > > I've applied the first patch to the scheduler tree yesterday, but the > > > other > > > changes unfortunately conflicted with other pending scheduler work - could > > > y

[PATCH] crypto: qat - avoid an uninitialized variable warning

2017-06-22 Thread Arnd Bergmann
After commit 9e442aa6a753 ("x86: remove DMA_ERROR_CODE"), the inlining decisions in the qat driver changed slightly, introducing a new false-positive warning: drivers/crypto/qat/qat_common/qat_algs.c: In function 'qat_alg_sgl_to_bufl.isra.6': include/linux/dma-mapping.h:228:2: error: 'sz_out' may

Re: Fix Skylake PEBS data source for perf

2017-06-22 Thread Thomas Gleixner
Andi, On Wed, 21 Jun 2017, Andi Kleen wrote: I asked for proper cover letters with a proper PATCH prefix for the first submission and a PATCH vN prefix for subsequent submissions politely more than once. I'm tired of your obnoxious refusal to cooperate with other people. >From now on patches wh

Re: [PATCH v2 2/5] dt-bindings: scsi: ufs: add document for hi3660-ufs

2017-06-22 Thread Bu Tao
在 2017/6/22 20:15, Arnd Bergmann 写道: On Thu, Jun 22, 2017 at 1:58 PM, Bu Tao wrote: 在 2017/6/22 19:51, Arnd Bergmann 写道: On Thu, Jun 22, 2017 at 1:44 PM, Bu Tao wrote: 在 2017/6/17 5:51, Arnd Bergmann 写道: On Fri, Jun 16, 2017 at 8:51 AM, Bu Tao wrote: I do not know wheher other SoC need

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Boris Brezillon
On Thu, 22 Jun 2017 14:29:07 +0200 Andrzej Hajda wrote: > On 22.06.2017 11:23, Boris Brezillon wrote: > > On Thu, 22 Jun 2017 13:47:43 +0530 > > Archit Taneja wrote: > > > >> On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: > >>> 2017-06-20 19:31 GMT+02:00 Eric Anholt : > Archit Tan

[PATCH] acpi: thermal: honor "mode" sysfs file setting

2017-06-22 Thread Enric Balletbo i Serra
From: Sameer Nanda Under each thermal zone there is a file called "mode". Writing enabled or disabled to this file allows a given thermal zone to be enabled or disabled. Honor writes to this file by enabling or disabling the polling timers. With this change, in the acpi_thermal_add path, acpi_th

Re: [PATCH v5] HID: Add driver for Retrode2 joypad adapter

2017-06-22 Thread Jiri Kosina
On Tue, 20 Jun 2017, Bastien Nocera wrote: > This driver does 2 things: > - Apply the MULTI_INPUT quirk to create separate joypad device nodes >for each one of the 4 connectors. > - Rename the input devices so that their names are different, and allow >users to recognise which device cor

Re: [PATCH v5 2/7] dma: Add simple dma_noop_mmap

2017-06-22 Thread Vladimir Murzin
On 20/06/17 14:23, Christoph Hellwig wrote: > On Wed, May 24, 2017 at 11:24:27AM +0100, Vladimir Murzin wrote: >> This patch adds a simple implementation of mmap to dma_noop_ops. > > Currently we use dma_common_mmap as the generic fallback if a dma_ops > instance doesn't implement a mmap method.

Re: [PATCH v5 1/7] dma: Take into account dma_pfn_offset

2017-06-22 Thread Vladimir Murzin
On 20/06/17 14:24, Christoph Hellwig wrote: >> -sg_dma_address(sg) = (dma_addr_t)virt_to_phys(va); >> +sg_dma_address(sg) = (dma_addr_t)(virt_to_phys(va) - >> PFN_PHYS(dev->dma_pfn_offset)); > > Needs a line break instead of the overly long line. Will do. > > Otherwise

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Willy Tarreau
On Thu, Jun 22, 2017 at 01:30:45PM +0100, Ben Hutchings wrote: > Here's my attempt at a backport to 3.2. This is only tested on > x86_64 and I think I should introduce local variables for > vma_start_gap() in a few places. I had to cherry-pick commit > 09884964335e "mm: do not grow the stack vma

Re: [PATCH RESEND 2/4] pwm: mediatek: fix clk issue

2017-06-22 Thread Zhi Mao
On Wed, 2017-06-21 at 20:07 +0800, John Crispin wrote: > Hi > > comments inline > > > > +static int mtk_pwm_clk_enable(struct pwm_chip *chip, struct pwm_device > > *pwm) > > +{ > > + ret = clk_prepare_enable(pc->clks[MTK_CLK_PWM1 + pwm->hwpwm]); > > + if (ret < 0) { > > + clk_dis

[PATCH] iio: adc: at91-sama5d2_adc: add support for suspend/resume functionality

2017-06-22 Thread Eugen Hristev
Added support for suspend/resume functionality for the ADC IP in sama5d2 SoC. In order to enter Suspend to ram mode (backup + self refresh mode for memory), in which the ADC IP is no longer powered, we need to reset the pins to default state, for the scenario when they are also used for I2C bus to

Re: [RFC PATCH 04/10] objtool: add undwarf debuginfo generation

2017-06-22 Thread Josh Poimboeuf
On Thu, Jun 22, 2017 at 09:47:46AM +0200, Jiri Slaby wrote: > On 06/14/2017, 03:27 PM, Josh Poimboeuf wrote: > > I agree with all your comments, will fix them all. Thanks for the > > review. > > This is not the correct way: > ++ if (flags & O_WRONLY) > ++ cmd = ELF_C_WRITE; > ++

[PATCH] staging: fsl-dpaa2/eth: fix a couple of implicit includes

2017-06-22 Thread laurentiu.tudor
From: Laurentiu Tudor dpni.c is using byte order macros and error codes but does not explicitly include the required kernel header, so add it. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-dpaa2/ethernet/dpni.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/fsl-

[PATCH] mtd: spi-nor: Add support for Spansion S25FL064L

2017-06-22 Thread Harry Chou
It's an 8 MiB flash with 4 KiB erase sectors. Signed-off-by: Harry Chou --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index dea8c9c..1f84765 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/driv

Re: [PATCH] dmaengine: fsldma: set BWC, DAHTS and SAHTS values correctly

2017-06-22 Thread Vinod Koul
On Mon, Jun 19, 2017 at 04:40:04PM +0200, Thomas Breitung wrote: > The bits of BWC, DAHTS and SAHTS in the DMA mode register must be cleared > before a new value can be or-ed in. Applied, thanks -- ~Vinod

Re: [PATCH v5 3/7] drivers: dma-coherent: Account dma_pfn_offset when used with device tree

2017-06-22 Thread Vladimir Murzin
On 20/06/17 14:42, Christoph Hellwig wrote: > Wouldn't the smal patch below solve the same issue in a simple way? > > diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c > index 640a7e63c453..e8f8447d705b 100644 > --- a/drivers/base/dma-coherent.c > +++ b/drivers/base/dma-cohere

Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

2017-06-22 Thread Johannes Berg
On Wed, 2017-06-21 at 10:48 -0700, Brian Norris wrote: > > Yes, that all sounds nice. But for my sake, can you describe better > what's actually going on there (e.g., can you point me at which code > does this)? It's much easier with mac80211, it has all the state. Basically the reconfig is in i

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Ben Hutchings
On Thu, 2017-06-22 at 14:46 +0200, Willy Tarreau wrote: > On Thu, Jun 22, 2017 at 01:30:45PM +0100, Ben Hutchings wrote: > > Here's my attempt at a backport to 3.2.  This is only tested on > > x86_64 and I think I should introduce local variables for > > vma_start_gap() in a few places.  I had to c

Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

2017-06-22 Thread Johannes Berg
On Wed, 2017-06-21 at 11:27 -0700, Brian Norris wrote: > > > I'm not sure what you mean by "we need to atually stop all the > > virtual interfaces ([...]) first". > > Judging by your following comments, I may have been completely > mistaken. > (But that's why I asked you folks!) :) > > There ar

Re: [PATCH 1/2] sched/debug: Inform the number of rt/dl task that can migrate

2017-06-22 Thread Daniel Bristot de Oliveira
On 06/22/2017 11:29 AM, Ingo Molnar wrote: > Note that this patch breaks in various cross-builds - here's the Alpha > defconfig > build: > > /home/mingo/tip/kernel/sched/debug.c: In function 'print_rt_rq': > /home/mingo/tip/kernel/sched/debug.c:556:60: error: 'struct rt_rq' has no > member > n

[PATCH] scripts/dtc: dtx_diff - Show real file names in diff header

2017-06-22 Thread Geert Uytterhoeven
As the comparison uses process substitution to pass files after conversion to DTS format, the diff header doesn't show the real filenames, but the names of the file descriptors used: --- /dev/fd/63 2017-06-22 11:21:47.531637188 +0200 +++ /dev/fd/62 2017-06-22 11:21:47.531637188 +0200 Th

Re: [PATCH] powerpc: Only obtain cpu_hotplug_lock if called by rtasd

2017-06-22 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Michael Ellerman writes: >> Thiago Jung Bauermann writes: >> >>> Calling arch_update_cpu_topology from a CPU hotplug state machine callback >>> hits a deadlock because the function tries to get a read lock on >>> cpu_hotplug_lock while the state machine still hol

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Willy Tarreau
On Thu, Jun 22, 2017 at 01:58:11PM +0100, Ben Hutchings wrote: > On Thu, 2017-06-22 at 14:46 +0200, Willy Tarreau wrote: > > On Thu, Jun 22, 2017 at 01:30:45PM +0100, Ben Hutchings wrote: > > > Here's my attempt at a backport to 3.2.  This is only tested on > > > x86_64 and I think I should introdu

Re: [PATCH] ASoC: es8316: add I2C dependency

2017-06-22 Thread Daniel Drake
On Wed, Jun 21, 2017 at 4:09 PM, Arnd Bergmann wrote: > Without CONFIG_I2C, we get a build failure: > > sound/soc/codecs/es8316.c:633:1: error: data definition has no type or > storage class [-Werror] > sound/soc/codecs/es8316.c:633:1: error: type defaults to 'int' in declaration > of 'module_i2

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Andrzej Hajda
On 22.06.2017 14:41, Boris Brezillon wrote: > On Thu, 22 Jun 2017 14:29:07 +0200 > Andrzej Hajda wrote: > >> On 22.06.2017 11:23, Boris Brezillon wrote: >>> On Thu, 22 Jun 2017 13:47:43 +0530 >>> Archit Taneja wrote: >>> On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: > 2017-06-20 1

Re: [PATCH v5 4/7] drivers: dma-coherent: Introduce default DMA pool

2017-06-22 Thread Vladimir Murzin
On 20/06/17 14:49, Christoph Hellwig wrote: > On Wed, May 24, 2017 at 11:24:29AM +0100, Vladimir Murzin wrote: >> This patch introduces default coherent DMA pool similar to default CMA >> area concept. To keep other users safe code kept under CONFIG_ARM. > > I don't see a CONFIG_ARM in the code, a

[PATCH 1/5 v2] Extend the request_region() infrastructure

2017-06-22 Thread Zoltán Böszörményi
Add a new IORESOURCE_ALLOCATED flag that is automatically used when alloc_resource() is used internally in kernel/resource.c and free_resource() now takes this flag into account. The core of __request_region() was factored out into a new function called __request_declared_region() that needs struc

[PATCH 2/5 v2] Modify behaviour of request_*muxed_region()

2017-06-22 Thread Zoltán Böszörményi
In order to make request_*muxed_region() behave more like mutex_lock(), a possible failure case needs to be eliminated. When drivers do not properly share the same I/O region, e.g. one is using request_region() and the other is using request_muxed_region(), the kernel didn't warn the user about it.

[PATCH 4/5 v4] i2c: i2c-piix4: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
Use the new request_declared_muxed_region() macro to synchronize access to the I/O port pair 0xcd6 / 0xcd7. At the same time, remove the long lifetime request_region() call to reserve these I/O ports, so the sp5100_tco watchdog driver can also load. This fixes an old regression in Linux 4.4-rc4,

[PATCH 5/5 v4] watchdog: sp5100_tco: Use request_declared_muxed_region()

2017-06-22 Thread Zoltán Böszörményi
Use the new request_declared_muxed_region() macro to synchronize accesses to the SB800 I/O port pair (0xcd6 / 0xcd7) with the PCI quirk for isochronous USB transfers and with the i2c-piix4 driver. At the same time, remove the long lifetime request_region() call to reserve these I/O ports, similarl

[PATCH 0/5 v4] Fix sp5100_tco watchdog driver regression

2017-06-22 Thread Zoltán Böszörményi
This patch series fixes a regression introduced by: commit 2fee61d22e606fc99ade9079fda15fdee83ec33e Author: Christian Fetzer Date: Thu Nov 19 20:13:48 2015 +0100 i2c: piix4: Add support for multiplexed main adapter in SB800 The regression caused sp5100_tco fail to load: sp5100_tco: SP510

[PATCH 3/5 v4] usb: pci-quirks: Protect the I/O port pair of SB800

2017-06-22 Thread Zoltán Böszörményi
This patch uses the previously introduced macro called request_declared_muxed_region() to synchronize access to the I/O port pair 0xcd6 / 0xcd7 on SB800. These I/O ports are also used by i2c-piix4 and sp5100_tco, so synchronization is necessary. The other drivers will also be modified to use the n

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