Re: [PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-03 Thread Eric Engestrom
On Tuesday, 2017-01-03 17:56:10 +0100, Rainer Hochecker wrote: > On Mon, Jan 2, 2017 at 3:31 PM, Rainer Hochecker wrote: > > > > I chose GR16 because that matches with Mesa texture formats. Unfortunately > > RG16 is already taken by DRM_FORMAT_RGB565 > > So GR32 / RG32 might

Re: [PATCH] drm: add fourcc codes for 16bit R and GR

2017-01-03 Thread Eric Engestrom
On Tuesday, 2017-01-03 17:56:10 +0100, Rainer Hochecker wrote: > On Mon, Jan 2, 2017 at 3:31 PM, Rainer Hochecker wrote: > > > > I chose GR16 because that matches with Mesa texture formats. Unfortunately > > RG16 is already taken by DRM_FORMAT_RGB565 > > So GR32 / RG32 might be better. All other

Re: [PATCH v3 2/3] ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP

2017-01-03 Thread Vineet Gupta
On 12/28/2016 12:46 AM, Yuriy Kolerov wrote: > It is necessary to call entry/exit functions for parent interrupt > controllers for proper masking/unmasking of interrupt lines. > > Signed-off-by: Yuriy Kolerov Applied to for-curr. Thx, -vineet

Re: [PATCH v3 2/3] ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP

2017-01-03 Thread Vineet Gupta
On 12/28/2016 12:46 AM, Yuriy Kolerov wrote: > It is necessary to call entry/exit functions for parent interrupt > controllers for proper masking/unmasking of interrupt lines. > > Signed-off-by: Yuriy Kolerov Applied to for-curr. Thx, -vineet

[PATCH] Fix SLAB freelist randomization duplicate entries

2017-01-03 Thread Thomas Garnier
This patch fixes a bug in the freelist randomization code. When a high random number is used, the freelist will contain duplicate entries. It will result in different allocations sharing the same chunk. Fixes: c7ce4f60ac19 ("mm: SLAB freelist randomization") Signed-off-by: John Sperbeck

[PATCH] Fix SLAB freelist randomization duplicate entries

2017-01-03 Thread Thomas Garnier
This patch fixes a bug in the freelist randomization code. When a high random number is used, the freelist will contain duplicate entries. It will result in different allocations sharing the same chunk. Fixes: c7ce4f60ac19 ("mm: SLAB freelist randomization") Signed-off-by: John Sperbeck

[PATCH net-next 2/3] net: dsa: move HWMON support to its own file

2017-01-03 Thread Vivien Didelot
The HWMON support in DSA is currently embedded in the legacy DSA code. Move it out in its own file, so that it can be reused in newer DSA code. --- net/dsa/Makefile | 1 + net/dsa/dsa.c | 131 +- net/dsa/dsa_priv.h | 9 net/dsa/hwmon.c

[PATCH net-next 1/3] net: dsa: remove out label in dsa_switch_setup_one

2017-01-03 Thread Vivien Didelot
The "out" label in dsa_switch_setup_one() is useless, thus remove it. --- net/dsa/dsa.c | 40 +--- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 7899919cd9f0..89e66b623d73 100644 --- a/net/dsa/dsa.c +++

[PATCH net-next 2/3] net: dsa: move HWMON support to its own file

2017-01-03 Thread Vivien Didelot
The HWMON support in DSA is currently embedded in the legacy DSA code. Move it out in its own file, so that it can be reused in newer DSA code. --- net/dsa/Makefile | 1 + net/dsa/dsa.c | 131 +- net/dsa/dsa_priv.h | 9 net/dsa/hwmon.c

[PATCH net-next 1/3] net: dsa: remove out label in dsa_switch_setup_one

2017-01-03 Thread Vivien Didelot
The "out" label in dsa_switch_setup_one() is useless, thus remove it. --- net/dsa/dsa.c | 40 +--- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 7899919cd9f0..89e66b623d73 100644 --- a/net/dsa/dsa.c +++

[PATCH net-next 0/3] net: dsa: restore HWMON support in dsa2

2017-01-03 Thread Vivien Didelot
The current HWMON support in DSA in embedded in the legacy code. Extract it to its own file and register it in the newer DSA code. Tested on ZII Rev B boards. Vivien Didelot (3): net: dsa: remove out label in dsa_switch_setup_one net: dsa: move HWMON support to its own file net: dsa:

[PATCH net-next 0/3] net: dsa: restore HWMON support in dsa2

2017-01-03 Thread Vivien Didelot
The current HWMON support in DSA in embedded in the legacy code. Extract it to its own file and register it in the newer DSA code. Tested on ZII Rev B boards. Vivien Didelot (3): net: dsa: remove out label in dsa_switch_setup_one net: dsa: move HWMON support to its own file net: dsa:

[PATCH 6/6] libata: Protect DMA core code by #ifdef CONFIG_HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/libata.ko] undefined! To fix this, protect the DMA code by #ifdef CONFIG_HAS_DMA, and provide dummies of ata_sg_clean() and ata_sg_setup() for the !CONFIG_HAS_DMA case. Signed-off-by: Geert Uytterhoeven ---

[PATCH net-next 3/3] net: dsa: restore HWMON support in dsa2

2017-01-03 Thread Vivien Didelot
The HWMON support was only registered in the legacy DSA code. Register it in the newer DSA code (dsa2) as well. --- net/dsa/dsa2.c | 4 1 file changed, 4 insertions(+) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 5fff951a0a49..668aa2974d01 100644 --- a/net/dsa/dsa2.c +++

[PATCH 6/6] libata: Protect DMA core code by #ifdef CONFIG_HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/libata.ko] undefined! To fix this, protect the DMA code by #ifdef CONFIG_HAS_DMA, and provide dummies of ata_sg_clean() and ata_sg_setup() for the !CONFIG_HAS_DMA case. Signed-off-by: Geert Uytterhoeven --- drivers/ata/libata-core.c | 61

[PATCH net-next 3/3] net: dsa: restore HWMON support in dsa2

2017-01-03 Thread Vivien Didelot
The HWMON support was only registered in the legacy DSA code. Register it in the newer DSA code (dsa2) as well. --- net/dsa/dsa2.c | 4 1 file changed, 4 insertions(+) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 5fff951a0a49..668aa2974d01 100644 --- a/net/dsa/dsa2.c +++

Re: [RFC PATCH] sched: Remove set_task_state()

2017-01-03 Thread Mark Rutland
On Tue, Jan 03, 2017 at 10:06:58AM -0800, Davidlohr Bueso wrote: > On Tue, 03 Jan 2017, Mark Rutland wrote: > > >Does the below help? > > It does, yes. Performance is pretty much the same with either function > without sysreg. Great! > With arm no longer in the picture, I'll send up another

[PATCH 4/6] ata: AHCI and other non-SFF native drivers should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/libahci_platform.ko] undefined! ERROR: "dmam_alloc_coherent" [drivers/ata/libahci.ko] undefined! Add a block dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 4 1

Re: [RFC PATCH] sched: Remove set_task_state()

2017-01-03 Thread Mark Rutland
On Tue, Jan 03, 2017 at 10:06:58AM -0800, Davidlohr Bueso wrote: > On Tue, 03 Jan 2017, Mark Rutland wrote: > > >Does the below help? > > It does, yes. Performance is pretty much the same with either function > without sysreg. Great! > With arm no longer in the picture, I'll send up another

[PATCH 4/6] ata: AHCI and other non-SFF native drivers should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/libahci_platform.ko] undefined! ERROR: "dmam_alloc_coherent" [drivers/ata/libahci.ko] undefined! Add a block dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 4 1 file changed, 4

[RFC PATCH 10/10] dt-bindings: Document devicetree binding for ARM SPE

2017-01-03 Thread Will Deacon
This patch documents the devicetree binding in use for ARM SPE. Cc: Mark Rutland Cc: Rob Herring Signed-off-by: Will Deacon --- Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 1 file changed, 20

[RFC PATCH 10/10] dt-bindings: Document devicetree binding for ARM SPE

2017-01-03 Thread Will Deacon
This patch documents the devicetree binding in use for ARM SPE. Cc: Mark Rutland Cc: Rob Herring Signed-off-by: Will Deacon --- Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 1 file changed, 20 insertions(+) create mode 100644

[RFC PATCH 05/10] genirq: export irq_get_percpu_devid_partition to modules

2017-01-03 Thread Will Deacon
Any modular driver using cluster-affine PPIs needs to be able to call irq_get_percpu_devid_partition so that it can enable the IRQ on the correct subset of CPUs. This patch exports the symbol so that it can be called from within a module. Cc: Marc Zyngier Cc: Thomas

[RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-01-03 Thread Will Deacon
The ARMv8.2 architecture introduces the Statistical Profiling Extension (SPE). SPE provides a way to configure and collect profiling samples from the CPU in the form of a trace buffer, which can be mapped directly into userspace using the perf AUX buffer infrastructure. This patch adds support

[RFC PATCH 03/10] arm64: KVM: Save/restore the host SPE state when entering/leaving a VM

2017-01-03 Thread Will Deacon
The SPE buffer is virtually addressed, using the page tables of the CPU MMU. Unusually, this means that the EL0/1 page table may be live whilst we're executing at EL2 on non-VHE configurations. When VHE is in use, we can use the same property to profile the guest behind its back. This patch adds

[RFC PATCH 06/10] perf/core: Export AUX buffer helpers to modules

2017-01-03 Thread Will Deacon
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon ---

[RFC PATCH 03/10] arm64: KVM: Save/restore the host SPE state when entering/leaving a VM

2017-01-03 Thread Will Deacon
The SPE buffer is virtually addressed, using the page tables of the CPU MMU. Unusually, this means that the EL0/1 page table may be live whilst we're executing at EL2 on non-VHE configurations. When VHE is in use, we can use the same property to profile the guest behind its back. This patch adds

[RFC PATCH 06/10] perf/core: Export AUX buffer helpers to modules

2017-01-03 Thread Will Deacon
Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- kernel/events/ring_buffer.c | 4 1 file changed, 4

[RFC PATCH 05/10] genirq: export irq_get_percpu_devid_partition to modules

2017-01-03 Thread Will Deacon
Any modular driver using cluster-affine PPIs needs to be able to call irq_get_percpu_devid_partition so that it can enable the IRQ on the correct subset of CPUs. This patch exports the symbol so that it can be called from within a module. Cc: Marc Zyngier Cc: Thomas Gleixner Signed-off-by:

[RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-01-03 Thread Will Deacon
The ARMv8.2 architecture introduces the Statistical Profiling Extension (SPE). SPE provides a way to configure and collect profiling samples from the CPU in the form of a trace buffer, which can be mapped directly into userspace using the perf AUX buffer infrastructure. This patch adds support

[RFC PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-01-03 Thread Will Deacon
In preparation for adding additional flags to perf AUX records, allow the flags for a session to be passed directly to perf_aux_output_end, rather than extend the function to take a bool for each one. Signed-off-by: Will Deacon --- arch/x86/events/intel/bts.c

[PATCH 0/6] ata: Missing HAS_DMA dependencies

2017-01-03 Thread Geert Uytterhoeven
Hi all, Bartlomiej's "[PATCH 1/3] ata: allow subsystem to be used on m68k arch" exposed a few missing dependencies on HAS_DMA. This series allows to build again "allmodconfig" and "allyesconfig" kernels tailored for Sun-3, which sets NO_DMA=y. Geert Uytterhoeven (6): ata: SATA_MV

[PATCH 2/6] ata: SATA_HIGHBANK should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/sata_highbank.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Kconfig

[PATCH 0/6] ata: Missing HAS_DMA dependencies

2017-01-03 Thread Geert Uytterhoeven
Hi all, Bartlomiej's "[PATCH 1/3] ata: allow subsystem to be used on m68k arch" exposed a few missing dependencies on HAS_DMA. This series allows to build again "allmodconfig" and "allyesconfig" kernels tailored for Sun-3, which sets NO_DMA=y. Geert Uytterhoeven (6): ata: SATA_MV

[PATCH 2/6] ata: SATA_HIGHBANK should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/sata_highbank.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index

[RFC PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end

2017-01-03 Thread Will Deacon
In preparation for adding additional flags to perf AUX records, allow the flags for a session to be passed directly to perf_aux_output_end, rather than extend the function to take a bool for each one. Signed-off-by: Will Deacon --- arch/x86/events/intel/bts.c | 11

[RFC PATCH 08/10] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

2017-01-03 Thread Will Deacon
The ARM SPE architecture permits an implementation to ignore a sample if the sample is due to be taken whilst another sample is already being produced. In this case, it is desirable to report the collision to userspace, as they may want to lower the sample period. This patch adds a

Re: [PATCH v3 3/3] ARCv2: MCIP: Deprecate setting of affinity in Device Tree

2017-01-03 Thread Vineet Gupta
On 12/28/2016 12:47 AM, Yuriy Kolerov wrote: > Ignore value of interrupt distribution mode for common interrupts in > IDU since setting of affinity using value from Device Tree is deprecated > in ARC. Originally it is done in idu_irq_xlate() function and it is > semantically wrong and does not

[RFC PATCH 08/10] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

2017-01-03 Thread Will Deacon
The ARM SPE architecture permits an implementation to ignore a sample if the sample is due to be taken whilst another sample is already being produced. In this case, it is desirable to report the collision to userspace, as they may want to lower the sample period. This patch adds a

Re: [PATCH v3 3/3] ARCv2: MCIP: Deprecate setting of affinity in Device Tree

2017-01-03 Thread Vineet Gupta
On 12/28/2016 12:47 AM, Yuriy Kolerov wrote: > Ignore value of interrupt distribution mode for common interrupts in > IDU since setting of affinity using value from Device Tree is deprecated > in ARC. Originally it is done in idu_irq_xlate() function and it is > semantically wrong and does not

[RFC PATCH 04/10] arm64: head.S: Enable EL1 (host) access to SPE when entered at EL2

2017-01-03 Thread Will Deacon
The SPE architecture requires each exception level to enable access to the SPE controls for the exception level below it, since additional context-switch logic may be required to handle the buffer safely. This patch allows EL1 (host) access to the SPE controls when entered at EL2. Cc: Marc

[RFC PATCH 04/10] arm64: head.S: Enable EL1 (host) access to SPE when entered at EL2

2017-01-03 Thread Will Deacon
The SPE architecture requires each exception level to enable access to the SPE controls for the exception level below it, since additional context-switch logic may be required to handle the buffer safely. This patch allows EL1 (host) access to the SPE controls when entered at EL2. Cc: Marc

[RFC PATCH 02/10] arm64: cpufeature: Don't enforce system-wide SPE capability

2017-01-03 Thread Will Deacon
The statistical profiling extension (SPE) is an optional feature of ARMv8.1 and is unlikely to be supported by all of the CPUs in a heterogeneous system. This patch updates the cpufeature checks so that such systems are not tainted as unsupported. Reviewed-by: Suzuki Poulose

[PATCH 1/6] ata: SATA_MV should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "dma_pool_alloc" [drivers/ata/sata_mv.ko] undefined! ERROR: "dmam_pool_create" [drivers/ata/sata_mv.ko] undefined! ERROR: "dma_pool_free" [drivers/ata/sata_mv.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven

[PATCH 5/6] libata: Make ata_sg_clean() static again

2017-01-03 Thread Geert Uytterhoeven
Commit 70e6ad0c6d1e6cb9 ("[PATCH] libata: prepare ata_sg_clean() for invocation from EH") made ata_sg_clean() global, but no user outside libata-core.c has ever materialized. Signed-off-by: Geert Uytterhoeven --- drivers/ata/libata-core.c | 2 +- drivers/ata/libata.h

[RFC PATCH 02/10] arm64: cpufeature: Don't enforce system-wide SPE capability

2017-01-03 Thread Will Deacon
The statistical profiling extension (SPE) is an optional feature of ARMv8.1 and is unlikely to be supported by all of the CPUs in a heterogeneous system. This patch updates the cpufeature checks so that such systems are not tainted as unsupported. Reviewed-by: Suzuki Poulose Signed-off-by: Will

[PATCH 1/6] ata: SATA_MV should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "dma_pool_alloc" [drivers/ata/sata_mv.ko] undefined! ERROR: "dmam_pool_create" [drivers/ata/sata_mv.ko] undefined! ERROR: "dma_pool_free" [drivers/ata/sata_mv.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven ---

[PATCH 5/6] libata: Make ata_sg_clean() static again

2017-01-03 Thread Geert Uytterhoeven
Commit 70e6ad0c6d1e6cb9 ("[PATCH] libata: prepare ata_sg_clean() for invocation from EH") made ata_sg_clean() global, but no user outside libata-core.c has ever materialized. Signed-off-by: Geert Uytterhoeven --- drivers/ata/libata-core.c | 2 +- drivers/ata/libata.h | 1 - 2 files

[RFC PATCH 00/10] Add support for the ARMv8.2 Statistical Profiling Extension

2017-01-03 Thread Will Deacon
Hi all, This RFC series adds support for the ARMv8.2 Statistical Profiling Extension (SPE) to Linux in the form of a perf PMU driver. There aren't any userspace patches for perf tool yet, but Kim (on CC) is working on those and I thought posting the kernel side as an RFC was still worth it in the

[RFC PATCH 00/10] Add support for the ARMv8.2 Statistical Profiling Extension

2017-01-03 Thread Will Deacon
Hi all, This RFC series adds support for the ARMv8.2 Statistical Profiling Extension (SPE) to Linux in the form of a perf PMU driver. There aren't any userspace patches for perf tool yet, but Kim (on CC) is working on those and I thought posting the kernel side as an RFC was still worth it in the

[PATCH 3/6] ata: ATA_BMDMA should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "dmam_alloc_coherent" [drivers/ata/libata.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Kconfig

[PATCH 3/6] ata: ATA_BMDMA should depend on HAS_DMA

2017-01-03 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "dmam_alloc_coherent" [drivers/ata/libata.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index

[RFC PATCH 01/10] arm64: cpufeature: allow for version discrepancy in PMU implementations

2017-01-03 Thread Will Deacon
Perf already supports multiple PMU instances for heterogeneous systems, so there's no need to be strict in the cpufeature checking, particularly as the PMU extension is optional in the architecture. Reviewed-by: Suzuki K Poulose Signed-off-by: Will Deacon

[RFC PATCH 01/10] arm64: cpufeature: allow for version discrepancy in PMU implementations

2017-01-03 Thread Will Deacon
Perf already supports multiple PMU instances for heterogeneous systems, so there's no need to be strict in the cpufeature checking, particularly as the PMU extension is optional in the architecture. Reviewed-by: Suzuki K Poulose Signed-off-by: Will Deacon --- arch/arm64/kernel/cpufeature.c | 6

Re: [RFC PATCH] sched: Remove set_task_state()

2017-01-03 Thread Davidlohr Bueso
On Tue, 03 Jan 2017, Mark Rutland wrote: Does the below help? It does, yes. Performance is pretty much the same with either function without sysreg. With arm no longer in the picture, I'll send up another patchset with this change as well as Peter's cleanup remarks. Thanks, Davidlohr

Re: [RFC PATCH] sched: Remove set_task_state()

2017-01-03 Thread Davidlohr Bueso
On Tue, 03 Jan 2017, Mark Rutland wrote: Does the below help? It does, yes. Performance is pretty much the same with either function without sysreg. With arm no longer in the picture, I'll send up another patchset with this change as well as Peter's cleanup remarks. Thanks, Davidlohr

Re: [PATCH 2/4] Documetation: samsung-phy: add the exynos-pcie-phy binding

2017-01-03 Thread Rob Herring
On Wed, Dec 28, 2016 at 07:34:52PM +0900, Jaehoon Chung wrote: > Adds the exynos-pcie-phy binding for Exynos PCIe PHY. > This is for using generic PHY framework. > > Signed-off-by: Jaehoon Chung > --- > .../devicetree/bindings/phy/samsung-phy.txt| 23 >

Re: [PATCH 2/4] Documetation: samsung-phy: add the exynos-pcie-phy binding

2017-01-03 Thread Rob Herring
On Wed, Dec 28, 2016 at 07:34:52PM +0900, Jaehoon Chung wrote: > Adds the exynos-pcie-phy binding for Exynos PCIe PHY. > This is for using generic PHY framework. > > Signed-off-by: Jaehoon Chung > --- > .../devicetree/bindings/phy/samsung-phy.txt| 23 > ++ > 1 file

Re: [PATCH V2] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2017-01-03 Thread Stefano Stabellini
On Mon, 2 Jan 2017, Juergen Gross wrote: > On 28/12/16 01:47, Jiandi An wrote: > > Ensure all reserved fields of xatp are zero before making > > hypervisor call to XEN in xen_map_device_mmio(). > > xenmem_add_to_physmap_one() in XEN fails the mapping request if > > extra.res reserved field in xatp

Re: [PATCH V2] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2017-01-03 Thread Stefano Stabellini
On Mon, 2 Jan 2017, Juergen Gross wrote: > On 28/12/16 01:47, Jiandi An wrote: > > Ensure all reserved fields of xatp are zero before making > > hypervisor call to XEN in xen_map_device_mmio(). > > xenmem_add_to_physmap_one() in XEN fails the mapping request if > > extra.res reserved field in xatp

[RFC PATCH 3/7] locking/rtqspinlock: Use static RT priority when in interrupt context

2017-01-03 Thread Waiman Long
When in interrupt context, the priority of the interrupted task is meaningless. So static RT priority is assigned in this case to make sure that it can get lock ASAP to reduce latency to the interrupted task. Signed-off-by: Waiman Long --- kernel/locking/qspinlock_rt.h | 15

[RFC PATCH 7/7] locking/rtqspinlock: Enable collection of event counts

2017-01-03 Thread Waiman Long
This patch enables the collection of event counts in the slowpath of the realtime queued spinlocks. The following events are being tracked if CONFIG_QUEUED_LOCK_STAT is defined: - # of interrupt context RT spinnings - # of task context RT spinnings - # of nested spinlock RT spinnings - # of

[RFC PATCH 3/7] locking/rtqspinlock: Use static RT priority when in interrupt context

2017-01-03 Thread Waiman Long
When in interrupt context, the priority of the interrupted task is meaningless. So static RT priority is assigned in this case to make sure that it can get lock ASAP to reduce latency to the interrupted task. Signed-off-by: Waiman Long --- kernel/locking/qspinlock_rt.h | 15 +-- 1

[RFC PATCH 7/7] locking/rtqspinlock: Enable collection of event counts

2017-01-03 Thread Waiman Long
This patch enables the collection of event counts in the slowpath of the realtime queued spinlocks. The following events are being tracked if CONFIG_QUEUED_LOCK_STAT is defined: - # of interrupt context RT spinnings - # of task context RT spinnings - # of nested spinlock RT spinnings - # of

Re: [PATCH v7 1/2] Add OV5647 device tree documentation

2017-01-03 Thread Rob Herring
On Tue, Dec 27, 2016 at 01:59:02PM +, Ramiro Oliveira wrote: > Create device tree bindings documentation. > > Signed-off-by: Ramiro Oliveira > --- > .../devicetree/bindings/media/i2c/ov5647.txt | 35 > ++ > 1 file changed, 35 insertions(+) >

[RFC PATCH 2/7] locking/rtqspinlock: Introduce realtime queued spinlocks

2017-01-03 Thread Waiman Long
Realtime queued spinlock is a variant of the queued spinlock that is suitable for use in a realtime running environment where the highest priority task should always get its work done as soon as possible. That means a minimal wait for spinlocks. To make that happen, RT tasks will not wait in the

Re: [PATCH v7 1/2] Add OV5647 device tree documentation

2017-01-03 Thread Rob Herring
On Tue, Dec 27, 2016 at 01:59:02PM +, Ramiro Oliveira wrote: > Create device tree bindings documentation. > > Signed-off-by: Ramiro Oliveira > --- > .../devicetree/bindings/media/i2c/ov5647.txt | 35 > ++ > 1 file changed, 35 insertions(+) > create mode 100644

[RFC PATCH 2/7] locking/rtqspinlock: Introduce realtime queued spinlocks

2017-01-03 Thread Waiman Long
Realtime queued spinlock is a variant of the queued spinlock that is suitable for use in a realtime running environment where the highest priority task should always get its work done as soon as possible. That means a minimal wait for spinlocks. To make that happen, RT tasks will not wait in the

[RFC PATCH 5/7] locking/rtqspinlock: Handle priority boosting

2017-01-03 Thread Waiman Long
As the priority of a task may get boosted due to an acquired rtmutex, we will need to periodically check the task priority to see if it gets boosted. For an originally non-RT task, that means unqueuing from the MCS wait queue before doing an RT spinning. So the unqueuing code from osq_lock is

[RFC PATCH 5/7] locking/rtqspinlock: Handle priority boosting

2017-01-03 Thread Waiman Long
As the priority of a task may get boosted due to an acquired rtmutex, we will need to periodically check the task priority to see if it gets boosted. For an originally non-RT task, that means unqueuing from the MCS wait queue before doing an RT spinning. So the unqueuing code from osq_lock is

[RFC PATCH 4/7] locking/rtqspinlock: Override spin_lock_nested with special RT variants

2017-01-03 Thread Waiman Long
In general, the spinlock critical section is typically small enough that once a CPU acquires a spinlock, it should be able to release the lock in a reasonably short time. Waiting for the lock, however, can take a while depending on how many CPUs are contending for the lock. The exception here is

[RFC PATCH 4/7] locking/rtqspinlock: Override spin_lock_nested with special RT variants

2017-01-03 Thread Waiman Long
In general, the spinlock critical section is typically small enough that once a CPU acquires a spinlock, it should be able to release the lock in a reasonably short time. Waiting for the lock, however, can take a while depending on how many CPUs are contending for the lock. The exception here is

[RFC PATCH 6/7] locking/rtqspinlock: Voluntarily yield CPU when need_sched()

2017-01-03 Thread Waiman Long
Ideally we want the CPU to be preemptible even when inside or waiting for a lock. We cannot make it preemptible when inside a lock critical section, but we can try to make the task voluntarily yield the CPU when waiting for a lock. This patch checks the need_sched() flag and yields the CPU when

[RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-03 Thread Waiman Long
This patchset introduces a new variant of queued spinlocks - the realtime queued spinlocks. The purpose of this new variant is to support real spinlock in a realtime environment where high priority RT tasks should be allowed to complete its work ASAP. This means as little waiting time for

[RFC PATCH 1/7] locking/spinlock: Remove the unused spin_lock_bh_nested API

2017-01-03 Thread Waiman Long
The spin_lock_bh_nested() API is defined but is not used anywhere in the kernel. So all spin_lock_bh_nested() and related APIs are now removed. Signed-off-by: Waiman Long --- include/linux/spinlock.h | 8 include/linux/spinlock_api_smp.h | 2 --

[RFC PATCH 6/7] locking/rtqspinlock: Voluntarily yield CPU when need_sched()

2017-01-03 Thread Waiman Long
Ideally we want the CPU to be preemptible even when inside or waiting for a lock. We cannot make it preemptible when inside a lock critical section, but we can try to make the task voluntarily yield the CPU when waiting for a lock. This patch checks the need_sched() flag and yields the CPU when

[RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-03 Thread Waiman Long
This patchset introduces a new variant of queued spinlocks - the realtime queued spinlocks. The purpose of this new variant is to support real spinlock in a realtime environment where high priority RT tasks should be allowed to complete its work ASAP. This means as little waiting time for

[RFC PATCH 1/7] locking/spinlock: Remove the unused spin_lock_bh_nested API

2017-01-03 Thread Waiman Long
The spin_lock_bh_nested() API is defined but is not used anywhere in the kernel. So all spin_lock_bh_nested() and related APIs are now removed. Signed-off-by: Waiman Long --- include/linux/spinlock.h | 8 include/linux/spinlock_api_smp.h | 2 -- include/linux/spinlock_api_up.h

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-01-03 Thread Luis R. Rodriguez
On Mon, Dec 26, 2016 at 05:35:59PM +0100, Pavel Machek wrote: > > Right question is "should we solve it without user-space help"? > > Answer is no, too. Way too complex. Yes, it would be nice if hardware > was designed in such a way that getting calibration data from kernel > is easy, and if you

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-01-03 Thread Luis R. Rodriguez
On Mon, Dec 26, 2016 at 05:35:59PM +0100, Pavel Machek wrote: > > Right question is "should we solve it without user-space help"? > > Answer is no, too. Way too complex. Yes, it would be nice if hardware > was designed in such a way that getting calibration data from kernel > is easy, and if you

[PATCHv6 11/11] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2017-01-03 Thread Laura Abbott
x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This inclues callers using virt_to_phys on image addresses instead of __pa_symbol. As features such as

[PATCHv6 11/11] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2017-01-03 Thread Laura Abbott
x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This inclues callers using virt_to_phys on image addresses instead of __pa_symbol. As features such as

[PATCH] checkpatch: Warn on logging continuations

2017-01-03 Thread Joe Perches
pr_cont(...) and printk(KERN_CONT ...) uses should be discouraged as their output can be interleaved by multiple logging processes. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl

[PATCH] checkpatch: Warn on logging continuations

2017-01-03 Thread Joe Perches
pr_cont(...) and printk(KERN_CONT ...) uses should be discouraged as their output can be interleaved by multiple logging processes. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

Re: module: Drop redundant declaration of struct module

2017-01-03 Thread Jessica Yu
+++ Jean Delvare [16/12/16 18:45 +0100]: Struct module is already declared at the beginning of the file, no need to declare it again. Signed-off-by: Jean Delvare Fixes: 93c2e105f6bc ("module: Optimize __module_address() using a latched RB-tree") Cc: Peter Zijlstra (Intel)

Re: module: Drop redundant declaration of struct module

2017-01-03 Thread Jessica Yu
+++ Jean Delvare [16/12/16 18:45 +0100]: Struct module is already declared at the beginning of the file, no need to declare it again. Signed-off-by: Jean Delvare Fixes: 93c2e105f6bc ("module: Optimize __module_address() using a latched RB-tree") Cc: Peter Zijlstra (Intel) Cc: Jessica Yu Cc:

[PATCH 2/2] m68k/bitops: Correct signature of test_bit()

2017-01-03 Thread Geert Uytterhoeven
mm/filemap.c: In function ‘clear_bit_unlock_is_negative_byte’: mm/filemap.c:933: warning: passing argument 2 of ‘test_bit’ discards qualifiers from pointer target type Make the bitmask pointed to by the "vaddr" parameter volatile to fix this, like is done on other architectures. Signed-off-by:

[PATCH 1/2] h8300: Correct signature of test_bit()

2017-01-03 Thread Geert Uytterhoeven
mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte': mm/filemap.c:933:9: warning: passing argument 2 of 'test_bit' discards 'volatile' qualifier from pointer target type return test_bit(PG_waiters, mem); ^ In file included from include/linux/bitops.h:36:0,

[PATCH 2/2] m68k/bitops: Correct signature of test_bit()

2017-01-03 Thread Geert Uytterhoeven
mm/filemap.c: In function ‘clear_bit_unlock_is_negative_byte’: mm/filemap.c:933: warning: passing argument 2 of ‘test_bit’ discards qualifiers from pointer target type Make the bitmask pointed to by the "vaddr" parameter volatile to fix this, like is done on other architectures. Signed-off-by:

[PATCH 1/2] h8300: Correct signature of test_bit()

2017-01-03 Thread Geert Uytterhoeven
mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte': mm/filemap.c:933:9: warning: passing argument 2 of 'test_bit' discards 'volatile' qualifier from pointer target type return test_bit(PG_waiters, mem); ^ In file included from include/linux/bitops.h:36:0,

Re: [PATCH v2 0/2] trace-cmd record: add --cpu-list option

2017-01-03 Thread Luiz Capitulino
On Tue, 3 Jan 2017 11:45:30 -0500 Steven Rostedt wrote: > On Tue, 3 Jan 2017 11:32:58 -0500 > Luiz Capitulino wrote: > > > On Tue, 22 Nov 2016 15:20:50 -0500 > > Luiz Capitulino wrote: > > > > > This series adds support

Re: [PATCH v2 0/2] trace-cmd record: add --cpu-list option

2017-01-03 Thread Luiz Capitulino
On Tue, 3 Jan 2017 11:45:30 -0500 Steven Rostedt wrote: > On Tue, 3 Jan 2017 11:32:58 -0500 > Luiz Capitulino wrote: > > > On Tue, 22 Nov 2016 15:20:50 -0500 > > Luiz Capitulino wrote: > > > > > This series adds support for a --cpu-list option, which is > > > much more human friendly than

Re: [PATCH v3 1/6] mfd: dt: Fix "indicates" typo in mfd bindings document

2017-01-03 Thread Lee Jones
On Tue, 06 Dec 2016, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery Applied with Acks, thanks. > --- > Documentation/devicetree/bindings/mfd/mfd.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mfd/mfd.txt

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2017-01-03 Thread Tim Chen
On Tue, 2017-01-03 at 13:34 +0900, Minchan Kim wrote: > Hi Jan, > > On Mon, Jan 02, 2017 at 04:48:41PM +0100, Jan Kara wrote: > > > > Hi, > > > > On Tue 27-12-16 16:45:03, Minchan Kim wrote: > > > > > > > > > > > Patch 3 splits the swap cache radix tree into 64MB chunks, reducing > > > >  

Re: [PATCH v3 1/6] mfd: dt: Fix "indicates" typo in mfd bindings document

2017-01-03 Thread Lee Jones
On Tue, 06 Dec 2016, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery Applied with Acks, thanks. > --- > Documentation/devicetree/bindings/mfd/mfd.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mfd/mfd.txt >

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2017-01-03 Thread Tim Chen
On Tue, 2017-01-03 at 13:34 +0900, Minchan Kim wrote: > Hi Jan, > > On Mon, Jan 02, 2017 at 04:48:41PM +0100, Jan Kara wrote: > > > > Hi, > > > > On Tue 27-12-16 16:45:03, Minchan Kim wrote: > > > > > > > > > > > Patch 3 splits the swap cache radix tree into 64MB chunks, reducing > > > >  

Re: [PATCH v3 3/6] mfd: dt: Add Aspeed Low Pin Count Controller bindings

2017-01-03 Thread Lee Jones
On Tue, 06 Dec 2016, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery Applied with Acks, thanks. > --- > .../devicetree/bindings/mfd/aspeed-lpc.txt | 111 > + > 1 file changed, 111 insertions(+) > create mode 100644

Re: [PATCH 8/9] irqchip/ls-scfg-msi: add LS1043a v1.1 MSI support

2017-01-03 Thread Rob Herring
On Tue, Dec 27, 2016 at 05:13:04PM +0800, Minghuan Lian wrote: > A MSI controller of LS1043a v1.0 only includes one MSIR and > is assigned one GIC interrupt. In order to support affinity, > LS1043a v1.1 MSI is assigned 4 MSIRs and 4 GIC interrupts. > But the MSIR has the different offset and only

Re: [PATCH 7/9] irqchip/ls-scfg-msi: add LS1046a MSI support

2017-01-03 Thread Rob Herring
On Tue, Dec 27, 2016 at 05:13:03PM +0800, Minghuan Lian wrote: > LS1046a includes 4 MSIRs, each MSIR is assigned a dedicate GIC > SPI interrupt and provides 32 MSI interrupts. Compared to previous > MSI, LS1046a's IBS(interrupt bit select) shift is changed to 2 and > total MSI interrupt number is

Re: [PATCH 0/6] staging: vchiq_arm: Fine-tuning for some function implementations

2017-01-03 Thread Eric Anholt
SF Markus Elfring writes: > From: Markus Elfring > Date: Sat, 31 Dec 2016 22:42:34 +0100 > > Some update suggestions were taken into account > from static source code analysis. This series is: Reviewed-by: Eric Anholt

<    5   6   7   8   9   10   11   12   13   14   >