Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-25 Thread Lorenzo Pieralisi
On Fri, Feb 22, 2013 at 06:52:14PM +, Thomas Gleixner wrote: > On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: > > On Fri, Feb 22, 2013 at 03:03:02PM +, Thomas Gleixner wrote: > > > On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: > > > > On Fri, Feb 22, 20

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-21 Thread Lorenzo Pieralisi
Hi Jason, On Thu, Feb 21, 2013 at 06:16:51AM +, Jason Liu wrote: > 2013/2/20 Thomas Gleixner : > > On Wed, 20 Feb 2013, Jason Liu wrote: > >> void arch_idle(void) > >> { > >> > >> clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu); > >> > >> enter_the_wait_mode(); > >> > >> clocke

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-22 Thread Lorenzo Pieralisi
ied out in the local timer handler). > > > Your patch fixes the retries on both CPUs on my dual core machine. So > > you use my tested by if you need one. > > They are always welcome. > > > Tested-by: Santosh Shilimkar You can add mine too, we should fix the WARN_ON_

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-22 Thread Lorenzo Pieralisi
On Fri, Feb 22, 2013 at 10:24:00AM +, Thomas Gleixner wrote: > On Fri, 22 Feb 2013, Santosh Shilimkar wrote: > > BTW, Lorenzo off-list mentioned to me about warning in boot-up > > which I missed while testing your patch. It will take bit more > > time for me to look into it and hence thought of

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-22 Thread Lorenzo Pieralisi
On Fri, Feb 22, 2013 at 12:07:30PM +, Thomas Gleixner wrote: > On Fri, 22 Feb 2013, Santosh Shilimkar wrote: > > > On Friday 22 February 2013 04:01 PM, Lorenzo Pieralisi wrote: > > > On Fri, Feb 22, 2013 at 10:24:00AM +, Thomas Gleixner wrote: > > >

Re: too many timer retries happen when do local timer swtich with broadcast timer

2013-02-22 Thread Lorenzo Pieralisi
On Fri, Feb 22, 2013 at 03:03:02PM +, Thomas Gleixner wrote: > On Fri, 22 Feb 2013, Lorenzo Pieralisi wrote: > > On Fri, Feb 22, 2013 at 12:07:30PM +, Thomas Gleixner wrote: > > > Now we could make use of that and avoid going deep idle just to come > > >

Re: [patch 4/7] tick: Handle broadcast wakeup of multiple cpus

2013-03-13 Thread Lorenzo Pieralisi
nt. If the current CPU is in > + * the force mask, then we are going to be > + * woken by the IPI right away. > + */ > + if (!cpumask_test_cpu(cpu, tick_broadcast_force_mask) &&

Re: [PATCH] ARM: suspend: use flush range instead of flush all

2012-09-12 Thread Lorenzo Pieralisi
On Wed, Sep 12, 2012 at 08:43:33AM +0100, Shilimkar, Santosh wrote: > + Lorenzo, > > On Wed, Sep 12, 2012 at 12:48 PM, wzch wrote: > > From: Wenzeng Chen > > > > In cpu suspend function __cpu_suspend_save(), we save cp15 registers, > > resume function, sp and suspend_pgd, then flush the data to

Re: [PATCH v2 RESEND 2/2] ARM: local timers: add timer support using IO mapped register

2012-10-02 Thread Lorenzo Pieralisi
On Tue, Oct 02, 2012 at 12:27:04PM +0100, Dave Martin wrote: > On Fri, Sep 28, 2012 at 06:15:53PM +0100, Lorenzo Pieralisi wrote: > > On Fri, Sep 28, 2012 at 04:57:46PM +0100, Dave Martin wrote: [...] > > There must be a common way for all devices to link to the topology, thoug

Re: [RFC PATCH v2 3/4] powerpc: refactor of_get_cpu_node to support other architectures

2013-08-29 Thread Lorenzo Pieralisi
On Wed, Aug 28, 2013 at 08:46:38PM +0100, Grant Likely wrote: > On Thu, 22 Aug 2013 14:59:30 +0100, Mark Rutland wrote: > > On Mon, Aug 19, 2013 at 02:56:10PM +0100, Sudeep KarkadaNagesha wrote: > > > On 19/08/13 14:02, Rob Herring wrote: > > > > On 08/19/2013 05:19 AM, Mark Rutland wrote: > > > >

Re: linux-next: manual merge of the arm-soc tree with the pm tree

2013-09-10 Thread Lorenzo Pieralisi
On Mon, Sep 09, 2013 at 06:22:16PM +0100, Kevin Hilman wrote: > On Mon, Sep 2, 2013 at 11:09 AM, Lorenzo Pieralisi > wrote: > > On Thu, Aug 29, 2013 at 06:57:15PM +0100, Olof Johansson wrote: > >> On Thu, Aug 29, 2013 at 06:04:25PM +1000, Stephen Rothwell

Re: linux-next: manual merge of the arm-soc tree with the pm tree

2013-09-02 Thread Lorenzo Pieralisi
On Thu, Aug 29, 2013 at 06:57:15PM +0100, Olof Johansson wrote: > On Thu, Aug 29, 2013 at 06:04:25PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the arm-soc tree got a conflict in > > drivers/cpuidle/Makefile between commits b98e01ad4ed9 ("cpuidle: Add > > Kconfi

Re: [RFC PATCH v3 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-13 Thread Lorenzo Pieralisi
> On Thu, Jun 06, 2013 at 10:59:23AM +0100, Lorenzo Pieralisi wrote: > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > > index d54e985..391eda1 100644 > > --- a/drivers/mfd/Kconfig > > +++ b/drivers/mfd/Kconfig > > @@ -1148,3 +1148,10 @@ config VE

Re: [RFC PATCH v3 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-14 Thread Lorenzo Pieralisi
eadability, which is one of the most important things of new code > these days. > > Please find a shorter suitable prefix than vexpress_spc_.* too, it's > way too long. Ok. > On Thu, Jun 06, 2013 at 10:59:23AM +0100, Lorenzo Pieralisi wrote: > > The TC2 versatile expre

[RFC PATCH v4 0/2] drivers: mfd: Versatile Express SPC support

2013-06-17 Thread Lorenzo Pieralisi
comply with the Versatile Express config API, second patch is the SPC driver implementation. Code extensively exercised through CPUidle and CPUfreq power states and operating point transitions. Lorenzo Pieralisi (1): drivers: mfd: vexpress: add Serial Power Controller (SPC) support Pawel Moll (1

[RFC PATCH v4 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-17 Thread Lorenzo Pieralisi
Kucheria Cc: Jon Medhurst Signed-off-by: Achin Gupta Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sudeep KarkadaNagesha Reviewed-by: Nicolas Pitre --- Documentation/devicetree/bindings/mfd/vexpress-spc.txt | 36 + drivers/mfd/Kconfig| 13 + drivers/mfd

[RFC PATCH v4 1/2] drivers: mfd: refactor the vexpress config bridge API

2013-06-17 Thread Lorenzo Pieralisi
From: Pawel Moll The introduction of Serial Power Controller (SPC) requires the vexpress config interface to change slightly since the SPC memory mapped interface can be used as configuration bus but also for operating points programming and retrieval. The helper that allocates the bridge functio

[RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Lorenzo Pieralisi
Medhurst Signed-off-by: Achin Gupta Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sudeep KarkadaNagesha --- .../devicetree/bindings/mfd/vexpress-spc.txt | 35 ++ drivers/mfd/Kconfig| 7 + drivers/mfd/Makefile | 1

[RFC PATCH v2 1/2] drivers: mfd: refactor the vexpress config bridge API

2013-06-05 Thread Lorenzo Pieralisi
From: Pawel Moll The introduction of Serial Power Controller (SPC) requires the vexpress config interface to change slightly since the SPC memory mapped interface can be used as configuration bus but also for operating points programming and retrieval. The helper that allocates the bridge functio

[RFC PATCH v2 0/2] drivers: mfd: Versatile Express SPC support

2013-06-05 Thread Lorenzo Pieralisi
operating point transitions. Lorenzo Pieralisi (1): drivers: mfd: vexpress: add Serial Power Controller (SPC) support Pawel Moll (1): drivers: mfd: refactor the vexpress config bridge API .../devicetree/bindings/mfd/vexpress-spc.txt | 35 ++ drivers/mfd/Kconfig

Re: [RFC PATCH v2 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-05 Thread Lorenzo Pieralisi
On Wed, Jun 05, 2013 at 07:08:33PM +0100, Jon Medhurst (Tixy) wrote: > On Wed, 2013-06-05 at 12:46 +0100, Lorenzo Pieralisi wrote: > [...] > > +static const struct of_device_id vexpress_spc_ids[] __initconst = { > > + { .compatible = "arm,vexpress-spc,v2p-ca15_a7" },

[RFC PATCH v3 1/2] drivers: mfd: refactor the vexpress config bridge API

2013-06-06 Thread Lorenzo Pieralisi
From: Pawel Moll The introduction of Serial Power Controller (SPC) requires the vexpress config interface to change slightly since the SPC memory mapped interface can be used as configuration bus but also for operating points programming and retrieval. The helper that allocates the bridge functio

[RFC PATCH v3 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-06 Thread Lorenzo Pieralisi
Medhurst Signed-off-by: Achin Gupta Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sudeep KarkadaNagesha Reviewed-by: Nicolas Pitre --- Documentation/devicetree/bindings/mfd/vexpress-spc.txt | 35 + drivers/mfd/Kconfig| 7 + drivers/mfd/Makefile

[RFC PATCH v3 0/2] drivers: mfd: Versatile Express SPC support

2013-06-06 Thread Lorenzo Pieralisi
implementation. Code extensively exercised through CPUidle and CPUfreq power states and operating point transitions. Lorenzo Pieralisi (1): drivers: mfd: vexpress: add Serial Power Controller (SPC) support Pawel Moll (1): drivers: mfd: refactor the vexpress config bridge API Documentation

Re: [RFC PATCH v4 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-18 Thread Lorenzo Pieralisi
Hi Olof, thanks a lot. On Mon, Jun 17, 2013 at 06:44:51PM +0100, Olof Johansson wrote: > On Mon, Jun 17, 2013 at 04:51:09PM +0100, Lorenzo Pieralisi wrote: > > The TC2 versatile express core tile integrates a logic block that provides > > the > > interface between the dual

Re: [RFC PATCH v4 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-18 Thread Lorenzo Pieralisi
On Tue, Jun 18, 2013 at 05:25:22AM +0100, Nicolas Pitre wrote: > On Mon, 17 Jun 2013, Lorenzo Pieralisi wrote: > > > The TC2 versatile express core tile integrates a logic block that provides > > the > > interface between the dual cluster test-chip and the M3 microcontrol

Re: [PATCH] ARM: EXYNOS: Fix incorrect usage of S5P_ARM_CORE1_* registers

2013-06-19 Thread Lorenzo Pieralisi
On Wed, Jun 19, 2013 at 01:50:57PM +0100, Tomasz Figa wrote: > On Wednesday 19 of June 2013 17:39:21 Chander Kashyap wrote: > > On 18 June 2013 23:29, Kukjin Kim wrote: > > > On 06/19/13 02:45, Tomasz Figa wrote: > > >> Ccing Arnd and Olof, because I forgot to add them to git send-email... > > >>

Re: [RFC PATCH 2/3] drivers: mfd: vexpress: add timeout API to vexpress config interface

2013-06-03 Thread Lorenzo Pieralisi
On Mon, Jun 03, 2013 at 11:15:32AM +0100, Jon Medhurst (Tixy) wrote: > On Fri, 2013-05-24 at 13:53 +0100, Lorenzo Pieralisi wrote: > > In case some transactions to the Serial Power Controller (SPC) are lost > > owing > > to multiple operations handled at once by the M3 contr

Re: [RFC PATCH 2/3] drivers: mfd: vexpress: add timeout API to vexpress config interface

2013-06-03 Thread Lorenzo Pieralisi
On Mon, Jun 03, 2013 at 01:03:50PM +0100, Jon Medhurst (Tixy) wrote: > On Mon, 2013-06-03 at 12:52 +0100, Lorenzo Pieralisi wrote: > > On Mon, Jun 03, 2013 at 11:15:32AM +0100, Jon Medhurst (Tixy) wrote: > > > On Fri, 2013-05-24 at 13:53 +0100, Lorenzo Pieralisi wrote: &g

Re: linux-next: manual merge of the arm-mpidr tree with the arm tree

2013-06-26 Thread Lorenzo Pieralisi
Hi Stephen, On Wed, Jun 26, 2013 at 02:04:11AM +0100, Stephen Rothwell wrote: > Hi Lorenzo, > > Today's linux-next merge of the arm-mpidr tree got a conflict in > arch/arm/kernel/suspend.c between commit 7604537bbb57 ("ARM: kernel: > implement stack pointer save array through MPIDR hashing") from

Re: [PATCH] arm/dt: Don't add disabled CPUs to system topology

2013-06-07 Thread Lorenzo Pieralisi
Hi James, On Thu, Jun 06, 2013 at 06:11:25PM +0100, James King wrote: > If CPUs are marked as disabled in the devicetree, make sure they do > not exist in the system CPU information and CPU topology information. > In this case these CPUs will not be able to be added to the system later > using hot

Re: [PATCH] arm/dt: Don't add disabled CPUs to system topology

2013-06-07 Thread Lorenzo Pieralisi
On Fri, Jun 07, 2013 at 03:20:20PM +0100, Rob Herring wrote: > On 06/07/2013 05:23 AM, Lorenzo Pieralisi wrote: > > Hi James, > > > > On Thu, Jun 06, 2013 at 06:11:25PM +0100, James King wrote: > >> If CPUs are marked as disabled in the devicetree, make sure they d

Re: [PATCH] arm/dt: Don't add disabled CPUs to system topology

2013-06-07 Thread Lorenzo Pieralisi
On Fri, Jun 07, 2013 at 12:48:58PM +0100, James King wrote: > Hi Lorenzo, > > On 7 June 2013 11:23, Lorenzo Pieralisi wrote: > > Hi James, > > > > On Thu, Jun 06, 2013 at 06:11:25PM +0100, James King wrote: > >> If CPUs are marked as disabled in the devicetr

Re: [RFC PATCH v3 0/2] drivers: mfd: Versatile Express SPC support

2013-06-11 Thread Lorenzo Pieralisi
management back-ends, your ack would be appreciated, if you think it is worth it of course. Thank you very much indeed, Lorenzo On Thu, Jun 06, 2013 at 10:59:21AM +0100, Lorenzo Pieralisi wrote: > This patch is v3 of a previous posting: > > http://lists.infradead.org/pipermail/linux-arm-ke

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-07-02 Thread Lorenzo Pieralisi
/1) from stable kernel queues, hence if and when we decide to backport all these DT updates/fixes to stable kernels we will have to do it in one go. Let's postpone this decision until -rc1 is out. Thanks, Lorenzo > > Bye, > > > > > > Thanks! > > Maxime > &

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-07-05 Thread Lorenzo Pieralisi
On Sun, Jun 30, 2013 at 10:48:46AM +0100, Lorenzo Pieralisi wrote: > On Sat, Jun 29, 2013 at 08:38:19PM +0100, Russell King - ARM Linux wrote: > > On Fri, Jun 28, 2013 at 01:05:42PM -0700, Olof Johansson wrote: > > > On Fri, Jun 28, 2013 at 1:03 PM, Maxime Ripard > > >

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-06-28 Thread Lorenzo Pieralisi
> > These two patches solve the situation for sunxi. The first one by > Lorenzo is to be applied for 3.10 if it's still possible, and the > second one on top of arm-soc/for-next. Tell me if you prefer a more > formal pull request for these patches > > Thanks! > Maxime >

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-06-28 Thread Lorenzo Pieralisi
On Fri, Jun 28, 2013 at 09:05:42PM +0100, Olof Johansson wrote: > On Fri, Jun 28, 2013 at 1:03 PM, Maxime Ripard > wrote: > > On Fri, Jun 28, 2013 at 06:15:32PM +0100, Lorenzo Pieralisi wrote: > >> On Fri, Jun 28, 2013 at 05:44:02PM +0100, Maxime Ripard wrote:

Re: [PATCH 095/105] ARM: 7762/1: kernel: fix arm_dt_init_cpu_maps() to skip non-cpu nodes

2013-06-28 Thread Lorenzo Pieralisi
solve dependencies to be made asap, please drop this patch from the queue since it can trigger regressions. Thanks and apologies, Lorenzo > > -- > > From: Lorenzo Pieralisi > > commit 1ba9bf0a9ae779c1a2b3eb64951e4161d9bad7a9 upstream. > > The introduction of th

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-06-29 Thread Lorenzo Pieralisi
On Sat, Jun 29, 2013 at 07:07:30PM +0100, Maxime Ripard wrote: > On Fri, Jun 28, 2013 at 10:45:12PM +0100, Lorenzo Pieralisi wrote: > > On Fri, Jun 28, 2013 at 09:05:42PM +0100, Olof Johansson wrote: > > > On Fri, Jun 28, 2013 at 1:03 PM, Maxime Ripard > > > wrote: >

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-06-29 Thread Lorenzo Pieralisi
On Sat, Jun 29, 2013 at 08:38:19PM +0100, Russell King - ARM Linux wrote: > On Fri, Jun 28, 2013 at 01:05:42PM -0700, Olof Johansson wrote: > > On Fri, Jun 28, 2013 at 1:03 PM, Maxime Ripard > > wrote: > > > On Fri, Jun 28, 2013 at 06:15:32PM +0100, Lorenzo Pieralisi wrote

Re: [PATCH 0/2] ARM: sunxi: Convert DTSI to new CPU bindings

2013-06-30 Thread Lorenzo Pieralisi
On Sat, Jun 29, 2013 at 08:38:19PM +0100, Russell King - ARM Linux wrote: > On Fri, Jun 28, 2013 at 01:05:42PM -0700, Olof Johansson wrote: > > On Fri, Jun 28, 2013 at 1:03 PM, Maxime Ripard > > wrote: > > > On Fri, Jun 28, 2013 at 06:15:32PM +0100, Lorenzo Pieralisi wrote

[RFC PATCH v5 0/1] drivers: mfd: Versatile Express SPC support

2013-07-16 Thread Lorenzo Pieralisi
sections warning - Fixed two minor bugs Lorenzo Pieralisi (1): drivers: mfd: vexpress: add Serial Power Controller (SPC) support Documentation/devicetree/bindings/mfd/vexpress-spc.txt | 36 ++ drivers/mfd/Kconfig| 10 + drivers/mfd/Makefile

[RFC PATCH v5 1/1] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-07-16 Thread Lorenzo Pieralisi
Cc: Amit Kucheria Cc: Jon Medhurst Signed-off-by: Achin Gupta Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sudeep KarkadaNagesha --- Documentation/devicetree/bindings/mfd/vexpress-spc.txt | 36 ++ drivers/mfd/Kconfig| 10 + drivers/mfd/Makefile

Re: [RFC PATCH v5 0/1] drivers: mfd: Versatile Express SPC support

2013-07-17 Thread Lorenzo Pieralisi
On Wed, Jul 17, 2013 at 10:18:25AM +0100, Pawel Moll wrote: > On Tue, 2013-07-16 at 17:05 +0100, Lorenzo Pieralisi wrote: > > /drivers/mfd is probably not the right place for this code as it stands (but > > probably will be when the entire driver, with DVFS and config interface,

Re: [RFC PATCH v5 0/1] drivers: mfd: Versatile Express SPC support

2013-07-18 Thread Lorenzo Pieralisi
Hi Samuel, On Wed, Jul 17, 2013 at 10:07:00PM +0100, Samuel Ortiz wrote: > Hi Lorenzo, > > On Tue, Jul 16, 2013 at 05:05:42PM +0100, Lorenzo Pieralisi wrote: > > Hello, > > > > version v5 of VExpress SPC driver, please read on the changelog for major > > chang

Re: RFC: revert request for cpuidle patches e11538d1 and 69a37bea

2013-07-29 Thread Lorenzo Pieralisi
On Mon, Jul 29, 2013 at 02:12:58PM +0100, Arjan van de Ven wrote: > > > > The menu governor tries to deduce the next wakeup but based on events > > per cpu. That means if a task with a specific behavior is migrated > > across cpus, the statistics will be wrong. > > > btw this is largely a misunde

Re: RFC: revert request for cpuidle patches e11538d1 and 69a37bea

2013-07-29 Thread Lorenzo Pieralisi
On Mon, Jul 29, 2013 at 03:29:20PM +0100, Arjan van de Ven wrote: > On 7/29/2013 7:14 AM, Lorenzo Pieralisi wrote: > >> > >> > >> btw this is largely a misunderstanding; > >> tasks are not the issue; tasks use timers and those are perfectly > >> pr

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Lorenzo Pieralisi
On Mon, Jul 29, 2013 at 02:36:30PM +0100, Dave Martin wrote: > On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: > > On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: > > > On 27 July 2013 12:42, Hanjun Guo wrote: > > > > Power aware scheduling needs the cpu topology info

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-10 Thread Lorenzo Pieralisi
On Wed, Apr 10, 2013 at 09:44:52AM +0100, Lukasz Majewski wrote: [...] > > Have you also looked at the power clamp driver that have similar > > target ? > > I might be wrong here, but in my opinion the power clamp driver is a bit > different: > > 1. It is dedicated to Intel SoCs, which provide

[RFC PATCH 0/3] drivers: mfd: Versatile Express SPC support

2013-05-24 Thread Lorenzo Pieralisi
patches provide changes required by SPC to comply with the Versatile Express config API, third patch is the SPC driver implementation. Code extensively exercised through CPUidle and CPUfreq power states and operating point transitions. Lorenzo Pieralisi (2): drivers: mfd: vexpress: add timeout API to

[RFC PATCH 1/3] drivers: mfd: refactor the vexpress config bridge API

2013-05-24 Thread Lorenzo Pieralisi
From: Pawel Moll The introduction of Serial Power Controller (SPC) requires the vexpress config interface to change slightly since the SPC memory mapped interface can be used as configuration bus but also for operating points programming and retrieval. The helper that allocates the bridge functio

[RFC PATCH 2/3] drivers: mfd: vexpress: add timeout API to vexpress config interface

2013-05-24 Thread Lorenzo Pieralisi
: Lorenzo Pieralisi --- drivers/mfd/vexpress-config.c | 26 +++--- include/linux/vexpress.h | 23 ++-- 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/vexpress-config.c b/drivers/mfd/vexpress-config.c index 1af2b0e..6f4aa5a 100644 --- a/drivers/mfd

[RFC PATCH 3/3] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-05-24 Thread Lorenzo Pieralisi
Medhurst Signed-off-by: Achin Gupta Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sudeep KarkadaNagesha --- Documentation/devicetree/bindings/mfd/vexpress-spc.txt | 35 + drivers/mfd/Kconfig| 7 + drivers/mfd/Makefile

Re: [PATCH v2 RESEND 2/2] ARM: local timers: add timer support using IO mapped register

2012-09-28 Thread Lorenzo Pieralisi
On Fri, Sep 28, 2012 at 04:57:46PM +0100, Dave Martin wrote: > [ Note: please aim to CC devicetree-disc...@lists.ozlabs.org with any > patches or bindings relevant to device tree. ] > > [ Lorenzo, there's a question for you further down this mail. ] [...] > > > > + If using the memory mapped in

[RFC PATCH v3 00/13] ACPI IORT ARM SMMU v3 support

2016-07-20 Thread Lorenzo Pieralisi
ased PCI host controller" v8 http://marc.info/?l=linux-acpi&m=146462129816292&w=2 and is provided for early review/testing purposes here: git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git acpi/iort-smmu-v3 Tested on FVP models for ARM SMMU v3 probing path. Loren

[RFC PATCH v3 07/13] drivers: acpi: iort: add node match function

2016-07-20 Thread Lorenzo Pieralisi
given IORT node type is present or not in the ACPI table, providing an ACPI IORT equivalent for of_find_matching_node(). Signed-off-by: Lorenzo Pieralisi Cc: Hanjun Guo Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" --- drivers/acpi/iort.c | 15 +++ include/linux/iort.h

[RFC PATCH v3 06/13] drivers: acpi: implement acpi_dma_configure

2016-07-20 Thread Lorenzo Pieralisi
case, but since arch_setup_dma_ops() is a NOP on all architectures but ARM/ARM64 this patch does not change the current kernel behaviour on them. Signed-off-by: Lorenzo Pieralisi Acked-by: Bjorn Helgaas [pci] Cc: Bjorn Helgaas Cc: Robin Murphy Cc: Tomasz Nowicki Cc: Joerg Roedel Cc: "Raf

[RFC PATCH v3 03/13] drivers: acpi: iort: add support for IOMMU fwnode registration

2016-07-20 Thread Lorenzo Pieralisi
-off-by: Lorenzo Pieralisi Cc: Hanjun Guo Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" --- drivers/acpi/iort.c | 65 + 1 file changed, 65 insertions(+) diff --git a/drivers/acpi/iort.c b/drivers/acpi/iort.c index 1f440d2..86f6985 10

[RFC PATCH v3 09/13] drivers: iommu: arm-smmu-v3: split probe functions into DT/generic portions

2016-07-20 Thread Lorenzo Pieralisi
portions so that other FW interfaces (ie ACPI) can reuse the HW probing functions and skip the DT portion accordingly. This patch implements no functional change, only code reshuffling. Signed-off-by: Lorenzo Pieralisi Acked-by: Will Deacon Cc: Will Deacon Cc: Hanjun Guo Cc: Robin Murphy Cc

[RFC PATCH v3 12/13] drivers: acpi: iort: replace rid map type with type mask

2016-07-20 Thread Lorenzo Pieralisi
node type. Upgrade the IORT iort_node_map_rid() API to work with a type mask instead of a single node type so that it can be used for mappings that span multiple components types (ie IOMMUs). Signed-off-by: Lorenzo Pieralisi Cc: Hanjun Guo Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" --

[RFC PATCH v3 13/13] drivers: acpi: iort: introduce iort_iommu_configure

2016-07-20 Thread Lorenzo Pieralisi
: Lorenzo Pieralisi Cc: Hanjun Guo Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" --- drivers/acpi/iort.c | 64 drivers/acpi/scan.c | 7 +- include/linux/iort.h | 4 3 files changed, 74 insertions(+), 1 deletion(-) di

[RFC PATCH v3 11/13] drivers: iommu: arm-smmu-v3: add IORT platform device creation

2016-07-20 Thread Lorenzo Pieralisi
configuration functions to the IORT kernel layer for the ARM SMMU v3 components, so that the ARM SMMU v3 driver can initialize its respective platform device by relying on the IORT kernel infrastructure and by adding a corresponding ACPI device early probe section entry. Signed-off-by: Lorenzo Pieralisi

[RFC PATCH v3 10/13] drivers: iommu: arm-smmu-v3: enable ACPI driver initialization

2016-07-20 Thread Lorenzo Pieralisi
the driver and initialize the bus IOMMU operations accordingly. This patch changes the logic in arm-smmu-v3 init call to allow for it to be probed in ACPI systems. Signed-off-by: Lorenzo Pieralisi Acked-by: Will Deacon Cc: Will Deacon Cc: Robin Murphy Cc: Joerg Roedel --- drivers/iommu/arm

[RFC PATCH v3 05/13] drivers: iommu: make iommu_fwspec OF agnostic

2016-07-20 Thread Lorenzo Pieralisi
an explicit arch dependency in its config entry. Current drivers using the iommu_fwspec for streamid translation are converted to the new iommu_fwspec API by simply converting the device_node to its fwnode_handle pointer. Signed-off-by: Lorenzo Pieralisi Cc: Will Deacon Cc: Hanjun Guo Cc

[RFC PATCH v3 02/13] drivers: acpi: iort: introduce linker section for IORT entries probing

2016-07-20 Thread Lorenzo Pieralisi
d with the driver specific callback is matched. Signed-off-by: Lorenzo Pieralisi Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" Cc: Marc Zyngier --- drivers/acpi/iort.c | 2 ++ include/asm-generic/vmlinux.lds.h | 1 + include/linux/iort.h | 3 +++ 3 files c

[RFC PATCH v3 01/13] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-07-20 Thread Lorenzo Pieralisi
kernel layer that allows to allocate/free FWNODE_IOMMU fwnode_handle structures and associate them with IOMMU devices. Signed-off-by: Lorenzo Pieralisi Cc: Joerg Roedel Cc: "Rafael J. Wysocki" --- include/linux/fwnode.h | 1 + include/linux/iommu.h | 25

[RFC PATCH v3 08/13] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-07-20 Thread Lorenzo Pieralisi
is added to the kernel) to be used to define the platform devices names, init the IOMMUs, count their resources and finally initialize them. Signed-off-by: Lorenzo Pieralisi Cc: Hanjun Guo Cc: Tomasz Nowicki Cc: "Rafael J. Wysocki" --- drivers/acpi/ior

[RFC PATCH v3 04/13] drivers: platform: add fwnode base platform devices retrieval

2016-07-20 Thread Lorenzo Pieralisi
equivalent (eg of_find_device_by_node()) will reuse the newly introduced function when OF code will take care of setting up the device->fwnode value that is currently left dangling for platform devices instantiated out of device tree nodes. Signed-off-by: Lorenzo Pieralisi Cc: Greg Kroah-Hartman

Re: [PATCH v8 7/9] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-21 Thread Lorenzo Pieralisi
On Wed, Jul 20, 2016 at 02:18:02AM +0800, fu@linaro.org wrote: > From: Fu Wei > > This driver adds support for parsing memory-mapped timer in GTDT: > provide a kernel APIs to parse GT Block Structure in GTDT, > export all the info by filling the struct which provided > by parameter(pointer of

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-21 Thread Lorenzo Pieralisi
On Tue, Sep 20, 2016 at 02:17:44PM -0500, Bjorn Helgaas wrote: > On Tue, Sep 20, 2016 at 04:09:25PM +0100, Ard Biesheuvel wrote: [...] > > None of these platforms can be fixed entirely in software, and given > > that we will not be adding quirks for new broken hardware, we should > > ask ourselve

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-22 Thread Lorenzo Pieralisi
On Wed, Sep 21, 2016 at 01:04:57PM -0500, Bjorn Helgaas wrote: > On Wed, Sep 21, 2016 at 03:05:49PM +0100, Lorenzo Pieralisi wrote: > > On Tue, Sep 20, 2016 at 02:17:44PM -0500, Bjorn Helgaas wrote: > > > On Tue, Sep 20, 2016 at 04:09:25PM +0100, Ar

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-22 Thread Lorenzo Pieralisi
On Thu, Sep 22, 2016 at 11:10:13AM +, Gabriele Paoloni wrote: > Hi Lorenzo, Bjorn > > > -Original Message- > > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > > Sent: 22 September 2016 10:50 > > To: Bjorn Helgaas > > Cc: Ard Biesheuve

Re: [RFC PATCH v3 2/2] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller

2016-06-20 Thread Lorenzo Pieralisi
On Fri, Jun 17, 2016 at 02:37:02PM -0700, Duc Dang wrote: > On Thu, Jun 16, 2016 at 10:48 AM, Lorenzo Pieralisi > wrote: > > On Wed, Jun 15, 2016 at 11:34:11AM -0400, Christopher Covington wrote: > >> From: Tomasz Nowicki > >> > >> pci_generic_ecam_

Re: [PATCH v1 15/25] PCI: generic: Free resource list close to where it's allocated

2016-06-20 Thread Lorenzo Pieralisi
On Mon, Jun 20, 2016 at 09:56:45AM -0700, Tyler Baker wrote: > Hi Bjorn, > > On 6 June 2016 at 16:06, Bjorn Helgaas wrote: > > Previously we allocated the PCI resource list in > > gen_pci_parse_request_of_pci_ranges(), but if we had an error, we freed it > > on error in gen_pci_init(). > > > > Re

Re: [RFC PATCH v3 1/2] ACPI/PCI: Check platform specific ECAM quirks

2016-06-20 Thread Lorenzo Pieralisi
[+ Ard, Arnd] On Wed, Jun 15, 2016 at 11:34:10AM -0400, Christopher Covington wrote: > From: Tomasz Nowicki > > Some platforms may not be fully compliant with the generic PCI config > operations. For these cases we implement a way to use custom map and > accessor functions. The algorithm travers

Re: [RFC PATCH v3 2/2] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller

2016-06-21 Thread Lorenzo Pieralisi
On Mon, Jun 20, 2016 at 12:12:24PM -0700, Duc Dang wrote: > On Mon, Jun 20, 2016 at 10:17 AM, Christopher Covington > wrote: > > Hi Duc, > > > > On 06/20/2016 05:42 AM, Lorenzo Pieralisi wrote: > >> On Fri, Jun 17, 2016 at 02:37:02PM -0700, Duc Dang wrote: >

Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-21 Thread Lorenzo Pieralisi
On Mon, Jun 20, 2016 at 01:02:14PM +0200, Tomasz Nowicki wrote: > IORT shows representation of IO topology for ARM based systems. > It describes how various components are connected together on > parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see IORT spec. Add the spec link if you want a ref

Re: [RFC PATCH v2 00/15] ACPI IORT ARM SMMU v3 support

2016-06-21 Thread Lorenzo Pieralisi
Hi Hanjun, On Tue, Jun 21, 2016 at 06:37:17PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2016/6/7 21:30, Lorenzo Pieralisi wrote: > >This RFC patch series is v2 of a previous posting: > > > >https://lkml.org/lkml/2016/4/14/702 > > > >v1 -> v2: >

Re: [RFC PATCH v2 03/15] arm64: mm: change IOMMU notifier action to attach DMA ops

2016-06-21 Thread Lorenzo Pieralisi
722ec35f7 and fold them in the new version along with Robin's suggestions. Thanks, Lorenzo > > > Best regards > Marek Szyprowski, PhD > Samsung R&D Institute Poland > > > > >On 07/06/16 14:30, Lorenzo Pieralisi wrote: > >>Current bus notifier in ARM64 (__iom

Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-06-21 Thread Lorenzo Pieralisi
Hi Rafael, On Mon, Jun 20, 2016 at 01:02:14PM +0200, Tomasz Nowicki wrote: > IORT shows representation of IO topology for ARM based systems. > It describes how various components are connected together on > parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see IORT spec. > > Initial support all

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-23 Thread Lorenzo Pieralisi
[+ Zhang Rui] On Thu, Sep 22, 2016 at 05:10:42PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 22, 2016 at 01:31:01PM -0500, Bjorn Helgaas wrote: > > On Thu, Sep 22, 2016 at 01:44:46PM +0100, Lorenzo Pieralisi wrote: > > > On Thu, Sep 22, 2016 at 11:10:13AM +, Gabriele Paoloni

Re: [UPDATE PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-08 Thread Lorenzo Pieralisi
. GTDT table. > > Signed-off-by: Tomasz Nowicki > Reviewed-by: Hanjun Guo > Reviewed-by: Lorenzo Pieralisi > --- > drivers/acpi/Kconfig| 4 + > drivers/acpi/Makefile | 2 + > drivers/acpi/arm64/Kconfig | 6 ++ > drivers/acpi/arm64/Makefile | 1

Re: [PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-09 Thread Lorenzo Pieralisi
On Fri, Sep 09, 2016 at 11:09:40AM +0800, Dennis Chen wrote: > Hi Tomasz, > > On Tue, Sep 06, 2016 at 11:08:51AM +0200, Tomasz Nowicki wrote: > [...] > > +static int iort_id_map(struct acpi_iort_id_mapping *map, u8 type, u32 > > rid_in, > > + u32 *rid_out) > > +{ > > + /* Singl

Re: [UPDATE PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-09 Thread Lorenzo Pieralisi
placed under drivers/acpi/arm64/ new directory due to its > ARM64 specific nature. The code there is considered only for ARM64. > The long term plan is to keep all ARM64 specific tables support > in this place e.g. GTDT table. > > Signed-off-by: Tomasz Nowicki > Reviewed-by: H

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] > >>+static acpi_status __init iort_match_iommu_callback(struct > >>acpi_iort_node *node, > >>+void *context) > >>+{ > >>+int ret; > >>+struct fwnode_handle *fwnode; > >>+ > >>+fwnode = iort_

Re: [PATCH v5 05/14] drivers: iommu: make iommu_fwspec OF agnostic

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 02:38:35PM +0100, Robin Murphy wrote: > > static int arm_smmu_match_node(struct device *dev, void *data) > > { > > - return dev->of_node == data; > > + struct fwnode_handle *fwnode; > > + > > + fwnode = dev->of_node ? &dev->of_node->fwnode : dev->fwnode; > > + > > +

Re: [PATCH v5 06/14] drivers: acpi: implement acpi_dma_configure

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 03:41:06PM +0100, Robin Murphy wrote: > On 09/09/16 15:23, Lorenzo Pieralisi wrote: > > On DT based systems, the of_dma_configure() API implements DMA > > configuration for a given device. On ACPI systems an API equivalent to > > of_dma_configure() is

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:25:55PM +0100, Robin Murphy wrote: [...] > > +/** > > + * iort_add_smmu_platform_device() - Allocate a platform device for SMMU > > + * @fwnode: IORT node associated fwnode handle > > + * @node: Pointer to SMMU ACPI IORT node > > + * > > + * Returns: 0 on success, <0 fa

Re: [PATCH V6 2/5] PCI/ACPI: Check platform specific ECAM quirks

2016-09-14 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 07:38:39PM +0800, Dongdong Liu wrote: > Hi Tomasz > > ?? 2016/9/13 14:32, Tomasz Nowicki : > >Hi Liu, > > > >On 13.09.2016 04:36, Dongdong Liu wrote: > >>Hi Tomasz > >> > >>?? 2016/9/10 3:24, Tomasz Nowicki : > >>>Some platforms may not be fully compliant with gener

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-14 Thread Lorenzo Pieralisi
On Wed, Sep 07, 2016 at 01:47:22PM +0300, Felipe Balbi wrote: > > Hi, > > Robin Murphy writes: > > On 07/09/16 10:55, Peter Chen wrote: > > [...] > >>> Regarding the DMA configuration that you mention in ci_hdrc_add_device(), > >>> I think we should replace > >>> > >>> pdev->dev.dma_mas

Re: [PATCH V6 2/5] PCI/ACPI: Check platform specific ECAM quirks

2016-09-15 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 07:38:39PM +0800, Dongdong Liu wrote: [...] > Our host bridge is non ECAM only for the RC bus config space; > for any other bus underneath the root bus we support ECAM access. > > RC config resource with hardcode as DEFINE_RES_MEM(0xb007, SZ_4K), > EP config resource

Re: [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-08-31 Thread Lorenzo Pieralisi
Hi Rafael, On Thu, Aug 18, 2016 at 08:25:20AM +0200, Tomasz Nowicki wrote: > On 12.08.2016 18:33, Lorenzo Pieralisi wrote: > >Hi Tomasz, > > > >On Thu, Aug 11, 2016 at 12:06:31PM +0200, Tomasz Nowicki wrote: > >>IORT shows representation of IO topology for ARM based

Re: [RFC PATCH V5 1/5] PCI: Embed pci_ecam_ops in pci_config_window structure

2016-09-02 Thread Lorenzo Pieralisi
On Thu, Sep 01, 2016 at 01:23:45PM -0500, Bjorn Helgaas wrote: > On Mon, Aug 08, 2016 at 03:05:37PM +0200, Tomasz Nowicki wrote: > > pci_config_window keeps pointer to pci_ecam_ops and every time > > we want to deallocate pci_config_window (pci_ecam_free()) we need to make > > sure to free pci_ecam

Re: [RFC PATCH v3 13/13] drivers: acpi: iort: introduce iort_iommu_configure

2016-08-08 Thread Lorenzo Pieralisi
Hi Nate, thanks for having a look. On Wed, Aug 03, 2016 at 10:19:43AM -0400, nwatt...@codeaurora.org wrote: > On 2016-07-20 07:23, Lorenzo Pieralisi wrote: > >DT based systems have a generic kernel API to configure IOMMUs > >for devices (ie of_iommu_configure()). > > > &g

Re: [PATCH v3 0/4] Generalize fncpy availability

2017-06-20 Thread Lorenzo Pieralisi
[+Sudeep] On Mon, Jun 19, 2017 at 10:32:38AM -0700, Florian Fainelli wrote: > On 06/19/2017 05:24 AM, Mark Rutland wrote: > > On Fri, Jun 16, 2017 at 05:07:40PM -0700, Florian Fainelli wrote: > >> Hi all, > > > > Hi Florian, > > > >> This patch series makes ARM's fncpy() implementation more gene

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

2017-06-20 Thread Lorenzo Pieralisi
On Tue, Jun 20, 2017 at 10:51:23AM +0200, Robert Richter wrote: > On 20.06.17 10:19:43, Robert Richter wrote: > > On 30.05.17 17:33:39, Geetha sowjanya wrote: > > > From: Linu Cherian > > > > + /* > > > + * Override the size, for Cavium ThunderX2 implementation > > > + * which doesn't support t

[PATCH] microblaze/PCI: Remove pcibios_setup_bus_{self/devices} dead code

2017-06-20 Thread Lorenzo Pieralisi
g with the functions they were calling in turn) so they can be removed. Signed-off-by: Lorenzo Pieralisi Cc: Bharat Kumar Gogada Cc: Ravi Kiran Gummaluri Cc: Bjorn Helgaas Cc: Michal Simek --- Bjorn, Michal, spotted this while reading microblaze code that parses legacy IRQs, I am not familiar with

Re: [PATCH v2 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units

2017-06-20 Thread Lorenzo Pieralisi
Hi Ganapatrao, On Tue, Jun 20, 2017 at 12:37:17PM +0530, Ganapatrao Kulkarni wrote: > Add code to parse SRAT ITS Affinity sub table as defined in ACPI 6.2 > Later in per device probe, ITS devices are mapped to > numa node using ITS id to proximity domain mapping. > > Signed-off-by: Ganapatrao Kul

Re: [PATCH v3 0/4] Generalize fncpy availability

2017-06-20 Thread Lorenzo Pieralisi
On Tue, Jun 20, 2017 at 09:20:34AM -0700, Florian Fainelli wrote: > On 06/20/2017 02:10 AM, Lorenzo Pieralisi wrote: > > [+Sudeep] > > > > On Mon, Jun 19, 2017 at 10:32:38AM -0700, Florian Fainelli wrote: > >> On 06/19/2017 05:24 AM, Mark Rutland wrote: > >&

  1   2   3   4   5   6   7   8   9   10   >