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

2013-06-28 Thread Lorenzo Pieralisi
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 Lorenzo Pieralisi (1): ARM: dts: sunxi: cpus/cpu nodes

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 maxime.rip...@free-electrons.com 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: Hi Arnd

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
dependencies to be made asap, please drop this patch from the queue since it can trigger regressions. Thanks and apologies, Lorenzo -- From: Lorenzo Pieralisi lorenzo.pieral...@arm.com commit 1ba9bf0a9ae779c1a2b3eb64951e4161d9bad7a9 upstream. The introduction of the cpu-map

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 maxime.rip...@free-electrons.com 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 maxime.rip...@free-electrons.com 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 maxime.rip...@free-electrons.com 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-07-02 Thread Lorenzo Pieralisi
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 Lorenzo Pieralisi (1): ARM: dts: sunxi: cpus/cpu nodes dts updates Maxime Ripard (1): sunxi: a10s: dtsi: Convert cpu node to the new cpu

Re: [PATCH] cpuidle/cpuidle-big_little: fix reading cpu id part number

2014-08-13 Thread Lorenzo Pieralisi
in the future. Update usage accordingly. Signed-off-by: Juri Lelli juri.le...@arm.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/include/asm/cputype.h | 3 ++- arch/arm/include/asm/smp_plat.h | 15 +++ drivers/cpuidle/cpuidle-big_little.c

Re: [PATCH] cpuidle/cpuidle-big_little: fix reading cpu id part number

2014-08-08 Thread Lorenzo Pieralisi
On Fri, Aug 08, 2014 at 02:21:05PM +0100, Russell King - ARM Linux wrote: On Fri, Aug 08, 2014 at 01:42:37PM +0100, Juri Lelli wrote: Commit af040ffc9ba1 (ARM: make it easier to check the CPU part number correctly) changed ARM_CPU_PART_X masks, and the way they are returned and checked

Re: [PATCH v2] cpuidle/cpuidle-big_little: fix reading cpu id part number

2014-08-15 Thread Lorenzo Pieralisi
this kind of checks cleaner and helps preventing bugs in the future. Update usage accordingly. If Russell does not have any additional comments you can send it to his patch system. Thanks, Lorenzo Signed-off-by: Juri Lelli juri.le...@arm.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-23 Thread Lorenzo Pieralisi
On Thu, Oct 23, 2014 at 10:13:09AM +0100, Liviu Dudau wrote: On Wed, Oct 22, 2014 at 09:52:19PM +0100, Arnd Bergmann wrote: On Wednesday 22 October 2014 16:59:14 Lorenzo Pieralisi wrote: On Wed, Oct 01, 2014 at 10:38:45AM +0100, Arnd Bergmann wrote: [...] The arm32

[PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-23 Thread Lorenzo Pieralisi
: Will Deacon will.dea...@arm.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- drivers/pci/host/pci-host-generic.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pci-host-generic.c b/drivers/pci/host/pci-host-generic.c index 3d2076f

[PATCH RFC 2/2] drivers: pci: convert generic host controller to DT resource parsing API

2014-10-23 Thread Lorenzo Pieralisi
...@google.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- drivers/pci/host/pci-host-generic.c | 120 1 file changed, 27 insertions(+), 93 deletions(-) diff --git a/drivers/pci/host/pci-host-generic.c b/drivers/pci/host/pci-host-generic.c index

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-10-24 Thread Lorenzo Pieralisi
On Thu, Oct 23, 2014 at 11:27:07PM +0100, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource

[PATCH RFC v2 2/2] arm: kernel: fix pci_mmap_page_range() offset calculation

2014-10-24 Thread Lorenzo Pieralisi
corresponding to the resource to be mapped, ie no additional offset should be applied. Cc: Arnd Bergmann a...@arndb.de Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/kernel/bios32.c | 10 ++ 1 file changed, 2 insertions(+), 8

[PATCH RFC v2 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-10-24 Thread Lorenzo Pieralisi
: David S. Miller da...@davemloft.net Cc: Michal Simek mon...@monstr.eu Cc: Martin Wilck martin.wi...@ts.fujitsu.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- drivers/pci/pci-sysfs.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/pci/pci

[PATCH RFC v2 0/2] Fix procfs PCI resources mmap

2014-10-24 Thread Lorenzo Pieralisi
passed from user space. Second patch fixes the way the pgoff is handled in the ARM pci_mmap_page_range() implementation. v1 posting: http://marc.info/?l=linux-kernelm=141337461318554w=2 v1 = v2 - Reworded commit log as per RMK comments Lorenzo Pieralisi (2): drivers: pci: fix pci_mmap_fits

Re: [PATCH v5 12/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-10-24 Thread Lorenzo Pieralisi
On Fri, Oct 17, 2014 at 02:37:08PM +0100, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to

Re: [PATCH] arm64: dts: exynos7: add support for cpuidle core power down

2014-10-15 Thread Lorenzo Pieralisi
On Wed, Oct 15, 2014 at 07:35:20AM +0100, Chander Kashyap wrote: Exynos7 has core power down state where cores can be powered off independently. This patch adds support for this state. Please tell us more about the idle-state values you are adding, in particular entry, exit latencies and

[PATCH RFC 2/2] arm: kernel: fix pci_mmap_page_range() offset calculation

2014-10-15 Thread Lorenzo Pieralisi
no additional offset should be applied. Cc: Arnd Bergmann a...@arndb.de Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/kernel/bios32.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/kernel/bios32.c b

[PATCH RFC 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-10-15 Thread Lorenzo Pieralisi
: David S. Miller da...@davemloft.net Cc: Michal Simek mon...@monstr.eu Cc: Martin Wilck martin.wi...@ts.fujitsu.com Cc: Derrick J. Wong djw...@us.ibm.com Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- drivers/pci/pci-sysfs.c | 13 - 1 file changed, 8 insertions(+), 5

Re: [PATCH] arm64: dts: exynos7: add support for cpuidle core power down

2014-10-15 Thread Lorenzo Pieralisi
On Wed, Oct 15, 2014 at 02:02:18PM +0100, Mark Rutland wrote: + CPU_SLEEP: cpu-sleep { + compatible = arm,idle-state; + local-timer-stop; + arm,psci-suspend-param = 0x001; +

Re: [PATCH RFC 2/2] arm: kernel: fix pci_mmap_page_range() offset calculation

2014-10-16 Thread Lorenzo Pieralisi
Hi Russell, thanks for having a look. On Wed, Oct 15, 2014 at 11:29:32PM +0100, Russell King - ARM Linux wrote: On Wed, Oct 15, 2014 at 01:03:41PM +0100, Lorenzo Pieralisi wrote: ARM relies on the standard implementation of pci_resource_to_user() which actually is an identity map

Re: [PATCH v3] ARM: dts: add CPU nodes for Exynos4 SoCs

2014-10-16 Thread Lorenzo Pieralisi
On Thu, Sep 25, 2014 at 09:26:03AM +0100, Kukjin Kim wrote: On 09/25/14 17:17, Lorenzo Pieralisi wrote: [CC'ed Daniel to make him aware this patch goes through your tree] Thanks and just note the branch which is including this change actually v4 is just rebased not v3 will be sent out

Re: [PATCH v3 04/27] arm/MSI: Save MSI chip in pci_sys_data

2014-10-20 Thread Lorenzo Pieralisi
On Wed, Oct 15, 2014 at 04:06:52AM +0100, Yijing Wang wrote: Saving msi chip in pci_sys_data can make pci bus and devices don't need to know msi chip detail, it also make pci enumeration code be decoupled from msi chip. In fact, all pci devices under the same pci hostbridge share same msi

Re: [PATCH] arm64: dts: exynos7: add support for cpuidle core power down

2014-10-21 Thread Lorenzo Pieralisi
On Fri, Oct 17, 2014 at 10:43:59AM +0100, Chander Kashyap wrote: Hi Lorenzo, On Wed, Oct 15, 2014 at 2:30 PM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: On Wed, Oct 15, 2014 at 07:35:20AM +0100, Chander Kashyap wrote: Exynos7 has core power down state where cores can be powered

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-22 Thread Lorenzo Pieralisi
On Wed, Oct 01, 2014 at 10:38:45AM +0100, Arnd Bergmann wrote: [...] The arm32 implementations of pci_domain_nr/pci_proc_domain can probably be removed if we change the arm32 pcibios_init_hw function to call the new interfaces that set the domain number. I wished, but it is a bit more

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-07 Thread Lorenzo Pieralisi
On Wed, Oct 01, 2014 at 10:38:45AM +0100, Arnd Bergmann wrote: [...] pci_mmap_page_range could either get generalized some more in an attempt to have a __weak default implementation that works on ARM, or it could be changed to lose the dependency on pci_sys_data instead. In either case, the

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-07 Thread Lorenzo Pieralisi
On Tue, Oct 07, 2014 at 02:52:27PM +0100, Arnd Bergmann wrote: On Tuesday 07 October 2014 13:06:59 Lorenzo Pieralisi wrote: On Wed, Oct 01, 2014 at 10:38:45AM +0100, Arnd Bergmann wrote: [...] pci_mmap_page_range could either get generalized some more in an attempt to have

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-08 Thread Lorenzo Pieralisi
On Tue, Oct 07, 2014 at 10:39:47PM +0100, Arnd Bergmann wrote: On Tuesday 07 October 2014 15:47:50 Lorenzo Pieralisi wrote: On Tue, Oct 07, 2014 at 02:52:27PM +0100, Arnd Bergmann wrote: On Tuesday 07 October 2014 13:06:59 Lorenzo Pieralisi wrote: On Wed, Oct 01, 2014 at 10:38:45AM +0100

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-09 Thread Lorenzo Pieralisi
On Wed, Oct 08, 2014 at 03:47:43PM +0100, Arnd Bergmann wrote: On Wednesday 08 October 2014 11:19:43 Lorenzo Pieralisi wrote: Ok. So, unless I am missing something, on platform with mem_offset != 0 /proc and /sys interfaces for remapping PCI resources can't work (IIUC the proc interface

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-09-30 Thread Lorenzo Pieralisi
On Mon, Sep 29, 2014 at 03:36:30PM +0100, Arnd Bergmann wrote: On Sunday 28 September 2014 15:53:28 suravee.suthikulpa...@amd.com wrote: + +#ifdef CONFIG_ARM64 +struct pci_bus *gen_scan_root_bus(struct device *parent, int bus, + struct pci_ops *ops,

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-09-30 Thread Lorenzo Pieralisi
On Tue, Sep 30, 2014 at 01:31:44PM +0100, Arnd Bergmann wrote: On Tuesday 30 September 2014 13:03:44 Lorenzo Pieralisi wrote: static int gen_pci_probe(struct platform_device *pdev) { @@ -326,6 +385,7 @@ static int gen_pci_probe(struct platform_device *pdev) struct

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-09-30 Thread Lorenzo Pieralisi
On Tue, Sep 30, 2014 at 05:42:56PM +0100, Liviu Dudau wrote: On Tue, Sep 30, 2014 at 05:12:41PM +0100, Lorenzo Pieralisi wrote: On Tue, Sep 30, 2014 at 01:31:44PM +0100, Arnd Bergmann wrote: On Tuesday 30 September 2014 13:03:44 Lorenzo Pieralisi wrote: static int gen_pci_probe(struct

Re: [PATCH RFC 2/2] drivers: pci: convert generic host controller to DT resource parsing API

2014-10-27 Thread Lorenzo Pieralisi
On Mon, Oct 27, 2014 at 12:03:35PM +, Will Deacon wrote: On Thu, Oct 23, 2014 at 04:23:07PM +0100, Lorenzo Pieralisi wrote: In order to consolidate DT configuration for PCI host controllers in the kernel, a new API (ie of_pci_get_host_bridge_resources()) was developed to allow parsing

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-27 Thread Lorenzo Pieralisi
On Thu, Oct 23, 2014 at 05:52:06PM +0100, Jason Gunthorpe wrote: On Thu, Oct 23, 2014 at 12:27:31PM +0100, Lorenzo Pieralisi wrote: I think that by removing that, we could switch to CONFIG_PCI_DOMAINS_GENERIC on ARM32. I will remove the dependency in drivers/pci/host/pci-mvebu.c

Re: [PATCH v5 12/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-10-29 Thread Lorenzo Pieralisi
On Mon, Oct 27, 2014 at 09:58:10AM +, Hanjun Guo wrote: [...] +static int map_gicc_mpidr(struct acpi_subtable_header *entry, + int device_declaration, u32 acpi_id, int *mpidr) +{ + struct acpi_madt_generic_interrupt *gicc = + container_of(entry, struct

Re: [RFC PATCH v3 0/2] Fix procfs PCI resources mmap

2014-11-19 Thread Lorenzo Pieralisi
On Thu, Nov 13, 2014 at 11:19:14AM +, Lorenzo Pieralisi wrote: The way PCI memory resources are exported to user space through procfs is not uniform across architectures. In particular, some architectures (ie SPARC) export the resource PCI bus address to user space, whereas others (ARM

Re: [PATCH v10 08/10] OF: PCI: Add support for parsing PCI host bridge resources from DT

2014-09-09 Thread Lorenzo Pieralisi
On Mon, Sep 08, 2014 at 02:54:30PM +0100, Liviu Dudau wrote: Provide a function to parse the PCI DT ranges that can be used to create a pci_host_bridge structure together with its associated bus. Cc: Bjorn Helgaas bhelg...@google.com Cc: Arnd Bergmann a...@arndb.de Cc: Grant Likely

Re: [PATCH v3 09/17] ARM64 / ACPI: Parse MADT for SMP initialization

2014-09-09 Thread Lorenzo Pieralisi
On Thu, Sep 04, 2014 at 04:29:15PM +0100, Hanjun Guo wrote: Hi Lorenzo, On 2014?09?04? 01:21, Lorenzo Pieralisi wrote: On Mon, Sep 01, 2014 at 03:57:47PM +0100, Hanjun Guo wrote: MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu

Re: [PATCH v3 02/17] ARM64 / ACPI: Get RSDP and ACPI boot-time tables

2014-09-09 Thread Lorenzo Pieralisi
On Tue, Sep 09, 2014 at 06:15:41PM +0100, Mark Rutland wrote: On Tue, Sep 09, 2014 at 05:41:51PM +0100, Jon Masters wrote: On 09/09/2014 12:26 PM, Catalin Marinas wrote: On Mon, Sep 01, 2014 at 03:57:40PM +0100, Hanjun Guo wrote: diff --git a/arch/arm64/include/asm/acenv.h

Re: [PATCH v10 08/10] OF: PCI: Add support for parsing PCI host bridge resources from DT

2014-09-10 Thread Lorenzo Pieralisi
On Wed, Sep 10, 2014 at 03:22:41PM +0100, Liviu Dudau wrote: On Tue, Sep 09, 2014 at 02:35:46PM +0100, Lorenzo Pieralisi wrote: On Mon, Sep 08, 2014 at 02:54:30PM +0100, Liviu Dudau wrote: Provide a function to parse the PCI DT ranges that can be used to create a pci_host_bridge structure

Re: [PATCH v10 08/10] OF: PCI: Add support for parsing PCI host bridge resources from DT

2014-09-10 Thread Lorenzo Pieralisi
On Wed, Sep 10, 2014 at 04:32:33PM +0100, Liviu Dudau wrote: [...] + /* + * If we failed translation or got a zero-sized region + * then skip this range + */ + if (range.cpu_addr == OF_BAD_ADDR || range.size

Re: [PATCH v10 08/10] OF: PCI: Add support for parsing PCI host bridge resources from DT

2014-09-10 Thread Lorenzo Pieralisi
On Wed, Sep 10, 2014 at 05:53:47PM +0100, Liviu Dudau wrote: [...] + if (resource_type(res) == IORESOURCE_IO) { + if (*io_base) You do not zero io_base in the first place so you should ask the API user to do that. Is 0 a valid value BTW ?

Re: [PATCH v3 16/17] ARM64 / ACPI: Enable ARM64 in Kconfig

2014-09-11 Thread Lorenzo Pieralisi
On Mon, Sep 01, 2014 at 03:57:54PM +0100, Hanjun Guo wrote: From: Graeme Gregory graeme.greg...@linaro.org Add Kconfigs to build ACPI on ARM64, and make ACPI available on ARM64. acpi_idle driver is x86/IA64 dependent now, so make CONFIG_ACPI_PROCESSOR depend on X86 || IA64, and implement

Re: [PATCH v3 10/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-09-03 Thread Lorenzo Pieralisi
Hi Hanjun, On Mon, Sep 01, 2014 at 03:57:48PM +0100, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU

Re: [PATCH v3 09/17] ARM64 / ACPI: Parse MADT for SMP initialization

2014-09-03 Thread Lorenzo Pieralisi
On Mon, Sep 01, 2014 at 03:57:47PM +0100, Hanjun Guo wrote: MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into

Re: [PATCH] drivers: pci: convert generic host controller to DT host bridge creation API

2014-09-04 Thread Lorenzo Pieralisi
Hi Will, sorry for the delay in replying (I was not copied in). On Tue, Aug 19, 2014 at 01:05:54PM +0100, Will Deacon wrote: Hi guys, On Tue, Aug 12, 2014 at 05:41:35PM +0100, Liviu Dudau wrote: From: Lorenzo Pieralisi lorenzo.pieral...@arm.com In order to consolidate DT configuration

Re: [PATCH] drivers: pci: convert generic host controller to DT host bridge creation API

2014-09-04 Thread Lorenzo Pieralisi
Hi Arnd, thanks for having a look. On Thu, Sep 04, 2014 at 03:05:53PM +0100, Arnd Bergmann wrote: On Thursday 04 September 2014 14:39:56 Lorenzo Pieralisi wrote: + if (!res_valid) { + dev_err(dev, non-prefetchable memory resource required\n); + return -EINVAL

Re: [PATCH] clocksource: arch_timer: Fix code to use physical timers when requested

2014-09-04 Thread Lorenzo Pieralisi
On Thu, Sep 04, 2014 at 06:01:27PM +0100, Sonny Rao wrote: [...] If an OS is booted at PL2 it can access the physical counters, and should do so in case something like KVM will be used later. The OS can write to CNTVOFF at PL2, and if it sets CNTVOFF to zero the physical and virtual

Re: [PATCH RFC v2 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-11 Thread Lorenzo Pieralisi
On Mon, Nov 10, 2014 at 11:04:54PM +, Bjorn Helgaas wrote: [+cc Michael, since he merged 2311b1f2bbd3, which added pci_resource_to_user()] On Fri, Oct 24, 2014 at 05:28:05PM +0100, Lorenzo Pieralisi wrote: The addresses stored in PCI device resources for memory spaces correspond

Re: [PATCH] pci: generic host: make it more generic

2014-11-11 Thread Lorenzo Pieralisi
On Tue, Nov 11, 2014 at 10:33:59AM +, Ming Lei wrote: This patch converts the generic host controller driver into a more generic one, and basically don't need platform's pcibios support, and use DT based generic APIs to parse resource and remap IO port. This patch has been tested on

Re: [PATCH RFC v2 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-11 Thread Lorenzo Pieralisi
On Tue, Nov 11, 2014 at 02:20:31PM +, Bjorn Helgaas wrote: On Tue, Nov 11, 2014 at 4:48 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: On Mon, Nov 10, 2014 at 11:04:54PM +, Bjorn Helgaas wrote: ... Here's what I think I understand so far: Applications can mmap PCI

Re: [PATCH] pci: generic host: make it more generic

2014-11-11 Thread Lorenzo Pieralisi
On Tue, Nov 11, 2014 at 02:02:20PM +, Ming Lei wrote: [...] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/296535.html Patch above is already queued and applies most of the changes you have posted above. I should have looked at list first before writing the

Re: [PATCH] pci: generic host: make it more generic

2014-11-12 Thread Lorenzo Pieralisi
On Wed, Nov 12, 2014 at 02:12:12AM +, Ming Lei wrote: On Wed, Nov 12, 2014 at 2:24 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: On Tue, Nov 11, 2014 at 02:02:20PM +, Ming Lei wrote: [...] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/296535.html

Re: [PATCH RFC v2 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-12 Thread Lorenzo Pieralisi
On Wed, Nov 12, 2014 at 07:23:49AM +, Benjamin Herrenschmidt wrote: On Mon, 2014-11-10 at 16:04 -0700, Bjorn Helgaas wrote: But I'm not sure I have this right. If the procfs offset is either the CPU physical address or the BAR value, then pci_resource_to_user() should be (depending

Re: [PATCH] pci: generic host: make it more generic

2014-11-12 Thread Lorenzo Pieralisi
On Wed, Nov 12, 2014 at 10:51:31AM +, Ming Lei wrote: On Wed, Nov 12, 2014 at 5:58 PM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: On Wed, Nov 12, 2014 at 02:12:12AM +, Ming Lei wrote: On Wed, Nov 12, 2014 at 2:24 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote

[RFC PATCH v3 0/2] Fix procfs PCI resources mmap

2014-11-13 Thread Lorenzo Pieralisi
that led to the current interface v1 = v2 - Reworded commit log as per RMK comments Lorenzo Pieralisi (2): drivers: pci: fix pci_mmap_fits() implementation for procfs mmap arm: kernel: fix pci_mmap_page_range() offset calculation arch/arm/kernel/bios32.c | 10 ++ drivers/pci/pci

[RFC PATCH v3 2/2] arm: kernel: fix pci_mmap_page_range() offset calculation

2014-11-13 Thread Lorenzo Pieralisi
corresponding to the resource to be mapped, ie no additional offset should be applied. Cc: Arnd Bergmann a...@arndb.de Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/kernel/bios32.c | 10 ++ 1 file changed, 2 insertions(+), 8

[RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-13 Thread Lorenzo Pieralisi
Barnes jbar...@virtuousgeek.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Russell King li...@arm.linux.org.uk Cc: David S. Miller da...@davemloft.net Cc: Michal Simek mon...@monstr.eu Cc: Martin Wilck martin.wi...@ts.fujitsu.com Signed-off-by: Lorenzo

Re: [PATCH RFC v2 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-13 Thread Lorenzo Pieralisi
On Tue, Nov 11, 2014 at 05:19:31PM +, Bjorn Helgaas wrote: [...] I read your comment as an agreement on the approach I took in my patch, except for the current pci_resource_to_user() implementation(s), which I did not touch. Yes. I have two things I'd like to clear up: 1) Your

Re: [PATCH] cpuidle: Invert CPUIDLE_FLAG_TIME_VALID logic

2014-11-13 Thread Lorenzo Pieralisi
: Acked-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/include/asm/cpuidle.h | 1 - arch/arm/mach-davinci/cpuidle.c| 1 - arch/arm/mach-imx/cpuidle-imx5.c | 1 - arch/arm/mach-imx/cpuidle-imx6q.c | 3 +- arch/arm/mach-imx/cpuidle-imx6sl.c

Re: [PATCH 2/2] PCI: generic: Add set_msi_parent callback

2014-11-13 Thread Lorenzo Pieralisi
This patch implement set_msi_parent callback for PCI generic host controller. Cc: Bjorn Helgass bhelg...@google.com Cc: Liviu Dudau liviu.du...@arm.com Cc: Lorenzo Pieralisi lorenzo.pieral...@arm.com Signed-off-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com --- drivers

Re: [PATCH 2/2] PCI: generic: Add set_msi_parent callback

2014-11-13 Thread Lorenzo Pieralisi
[CC'ing Arnd and RobH] On Tue, Nov 11, 2014 at 03:33:44PM +, Suravee Suthikulpanit wrote: On 11/11/14 18:24, Will Deacon wrote: @@ -313,6 +324,9 @@ static int gen_pci_probe(struct platform_device *pdev) return err; } + pci-mchip =

Re: [PATCH v3] ARM: dts: add CPU nodes for Exynos4 SoCs

2014-09-25 Thread Lorenzo Pieralisi
[CC'ed Daniel to make him aware this patch goes through your tree] On Thu, Sep 25, 2014 at 06:56:33AM +0100, Kukjin Kim wrote: Bartlomiej Zolnierkiewicz wrote: Recent patch by Tomasz Figa (irqchip: gic: Fix core ID calculation when topology is read from DT) fixed GIC driver to filter

Re: [PATCH v3] ARM: dts: add CPU nodes for Exynos4 SoCs

2014-09-25 Thread Lorenzo Pieralisi
On Thu, Sep 25, 2014 at 10:02:05AM +0100, Daniel Lezcano wrote: On 09/25/2014 10:17 AM, Lorenzo Pieralisi wrote: [CC'ed Daniel to make him aware this patch goes through your tree] Thanks for the head up. I was about to send the PR to Rafael. [ ... ] That's great, now my Exynos CPUidle

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2014-11-25 Thread Lorenzo Pieralisi
On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: The introduction of pci_mmap_fits() in commit: b5ff7df3df9efab511244d5a299fce706c71af48 Check mapped ranges on sysfs resource files allowed to check

Re: [PATCH] arm64: psci: Fix build breakage without PM_SLEEP

2014-12-12 Thread Lorenzo Pieralisi
On Tue, Dec 09, 2014 at 04:15:11PM +, Catalin Marinas wrote: On Tue, Dec 09, 2014 at 12:38:09PM +, Krzysztof Kozlowski wrote: On wto, 2014-12-09 at 13:29 +0100, Arnd Bergmann wrote: On Tuesday 09 December 2014 12:48:36 Krzysztof Kozlowski wrote: Fix build failure of defconfig

Re: [PATCH] clocksource: arch_timer: Mark ARMv8 system timer as 'always-on'

2014-11-06 Thread Lorenzo Pieralisi
On Thu, Nov 06, 2014 at 05:57:19PM +, Anatol Pomozov wrote: Quoting ARMv8 Reference Manual section D6.1: The system counter must be implemented in an always-on power domain. Do not mix up the system counter with arch timers. System counter is always-on, but the arch timer(s) logic (that

Re: [PATCH v4] arm64: dts: exynos7: add support for cpuidle core power down

2014-11-07 Thread Lorenzo Pieralisi
= psci; enable-method should be after reg, it is not an ordering issues added by this patch but I still do not like that. Other than that, please take some time to rewrite the commit log and ask to fix the ordering above, you can add my: Acked-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com

Re: [RFC PATCH 14/16] arm/PCI: Introduce pci_get_domain_nr()

2014-11-17 Thread Lorenzo Pieralisi
On Mon, Nov 17, 2014 at 10:21:48AM +, Yijing Wang wrote: Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/arm/include/asm/mach/pci.h |9 + arch/arm/kernel/bios32.c|8 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git

Re: [RFC PATCH 09/16] PCI: Associate .get_msi_ctrl() with pci_host_bridge

2014-11-17 Thread Lorenzo Pieralisi
On Mon, Nov 17, 2014 at 10:21:43AM +, Yijing Wang wrote: From: Yijing Wang wangyijing0...@gmail.com Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host-bridge.c |1 + include/linux/pci.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff

Re: [RFC PATCH 00/16] Refine PCI host bridge scan interfaces

2014-11-18 Thread Lorenzo Pieralisi
On Tue, Nov 18, 2014 at 11:30:11AM +, Arnd Bergmann wrote: On Tuesday 18 November 2014 19:17:32 Yijing Wang wrote: On 2014/11/17 22:13, Arnd Bergmann wrote: On Monday 17 November 2014 18:21:34 Yijing Wang wrote: This series is based Linux 3.18-rc1 and Lorenzo Pieralisi's arm PCI

Re: [PATCH] arm64: psci: Support generic pm suspend withtout CPUIDLE subsystem's help.

2014-12-19 Thread Lorenzo Pieralisi
On Fri, Dec 19, 2014 at 05:32:54AM +, Jonghwa Lee wrote: Current psci's cpu_suspend callback can be used only when common cpu idle configuration is enabled. However, it's also needed for system which only uses generic pm suspend not cpu idle. This patch modifies psci driver to support both

Re: [PATCH] arm64: psci: Fix build breakage without PM_SLEEP

2014-12-15 Thread Lorenzo Pieralisi
On Mon, Dec 15, 2014 at 05:46:22PM +, Catalin Marinas wrote: On Fri, Dec 12, 2014 at 03:06:08PM +, Lorenzo Pieralisi wrote: On Tue, Dec 09, 2014 at 04:15:11PM +, Catalin Marinas wrote: On Tue, Dec 09, 2014 at 12:38:09PM +, Krzysztof Kozlowski wrote: On wto, 2014-12-09

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-10 Thread Lorenzo Pieralisi
On Thu, Oct 09, 2014 at 11:51:43AM +0100, Arnd Bergmann wrote: [...] Last changes where introduced by commit 8c05cd08a, whose commit log adds to my confusion: [...] I think what we want here is for pci_start to be 0 when mmap_api == PCI_MMAP_PROCFS.[...] But that's not what the

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-13 Thread Lorenzo Pieralisi
On Fri, Oct 10, 2014 at 07:31:26PM +0100, Arnd Bergmann wrote: On Friday 10 October 2014 14:58:04 Lorenzo Pieralisi wrote: On Thu, Oct 09, 2014 at 11:51:43AM +0100, Arnd Bergmann wrote: Last changes where introduced by commit 8c05cd08a, whose commit log adds to my confusion

Re: [PATCH RFC v2 0/2] Fix procfs PCI resources mmap

2014-11-04 Thread Lorenzo Pieralisi
On Fri, Oct 24, 2014 at 05:28:04PM +0100, Lorenzo Pieralisi wrote: The way PCI memory resources are exported to user space through procfs is not uniform across architectures. In particular, some architectures (ie SPARC) export the resource PCI bus address to user space, whereas others (ARM

Re: [PATCH v3] arm64: dts: exynos7: add support for cpuidle core power down

2014-11-05 Thread Lorenzo Pieralisi
On Wed, Nov 05, 2014 at 10:15:36AM +, Chander Kashyap wrote: Exynos7 has core power down state where cores can be powered off independently. This patch adds support for this state. Entry latency for the core power down is calculated as follows: 1. Time difference is measured between

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-11-06 Thread Lorenzo Pieralisi
On Thu, Nov 06, 2014 at 12:05:48AM +, Arnd Bergmann wrote: On Wednesday 05 November 2014 16:39:21 Bjorn Helgaas wrote: On Wed, Oct 22, 2014 at 10:52:19PM +0200, Arnd Bergmann wrote: On Wednesday 22 October 2014 16:59:14 Lorenzo Pieralisi wrote: On Wed, Oct 01, 2014 at 10:38:45AM

Re: [PATCH RFC 1/2] drivers: pci: fix window allocation order wrt bus_range filtering

2014-11-06 Thread Lorenzo Pieralisi
On Thu, Nov 06, 2014 at 12:05:36AM +, Bjorn Helgaas wrote: On Thu, Oct 23, 2014 at 04:23:06PM +0100, Lorenzo Pieralisi wrote: The number of windows allocated for the host bridge depends on the bus resource. Instead of first allocating the windows and then limit the bus resource

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2015-01-02 Thread Lorenzo Pieralisi
Hi Suravee, On Mon, Dec 29, 2014 at 07:32:44PM +, Suravee Suthikulpanit wrote: Hi, I am not sure if this thread is still alive. I'm trying to see what I can do to help clean up/convert to make the PCI GHC also works for arm64 w/ zero or minimal ifdefs. Please let me know if someone

Re: [PATCH v8 11/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-02-04 Thread Lorenzo Pieralisi
to understand why. Thanks, Lorenzo Since ACPI 5.1 doesn't support self defined PSCI function IDs, which means that only PSCI 0.2+ is supported in ACPI. CC: Lorenzo Pieralisi lorenzo.pieral...@arm.com CC: Catalin Marinas catalin.mari...@arm.com CC: Will Deacon will.dea...@arm.com Tested

Re: [PATCH v8 17/21] clocksource / arch_timer: Parse GTDT to initialize arch timer

2015-02-04 Thread Lorenzo Pieralisi
On Mon, Feb 02, 2015 at 12:45:45PM +, Hanjun Guo wrote: Using the information presented by GTDT (Generic Timer Description Table) to initialize the arch timer (not memory-mapped). Why are you not initializing the memory mapped timer ? CC: Daniel Lezcano daniel.lezc...@linaro.org

Re: [PATCH v8 09/21] ARM64 / ACPI: Disable ACPI if FADT revision is less than 5.1

2015-02-04 Thread Lorenzo Pieralisi
On Wed, Feb 04, 2015 at 09:38:25AM +, Hanjun Guo wrote: On 2015年02月04日 01:20, Catalin Marinas wrote: On Mon, Feb 02, 2015 at 12:45:37PM +, Hanjun Guo wrote: diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index afe10b4..b9f64ec 100644 ---

Re: [Linaro-acpi] [PATCH v8 11/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-02-06 Thread Lorenzo Pieralisi
On Fri, Feb 06, 2015 at 07:56:07AM +, Hanjun Guo wrote: Hi Lorenzo, Al, On 2015年02月06日 03:03, Al Stone wrote: On 02/05/2015 10:49 AM, Lorenzo Pieralisi wrote: Hi Al, Howdy, Lorenzo. On Thu, Feb 05, 2015 at 05:11:31PM +, Al Stone wrote: On 02/04/2015 09:43 AM, Lorenzo

Re: linux-next: build failure after merge of the pm tree

2015-02-08 Thread Lorenzo Pieralisi
On Mon, Feb 09, 2015 at 05:36:07AM +, Jiang Liu wrote: Hi Rafael and Lorenzo, With more closer review, I suspect statement kfree(bus_range) in commit d2be00c0fb5a (of/pci: Free resources on failure in of_pci_get_host_bridge_resources()) may cause double free of bus_range because

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-20 Thread Lorenzo Pieralisi
On Tue, Jan 20, 2015 at 01:09:55PM +, Hanjun Guo wrote: [...] +{ + int cpu; + + if (mpidr == INVALID_HWID) { + pr_info(Skip MADT cpu entry with invalid MPIDR\n); + return -EINVAL; + } + + total_cpus++; + if

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Lorenzo Pieralisi
On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to

Re: [RFC PATCH v3 1/2] drivers: pci: fix pci_mmap_fits() implementation for procfs mmap

2015-01-21 Thread Lorenzo Pieralisi
Hi Bjorn, On Fri, Nov 21, 2014 at 05:51:14PM +, Bjorn Helgaas wrote: On Thu, Nov 13, 2014 at 11:19:15AM +, Lorenzo Pieralisi wrote: The introduction of pci_mmap_fits() in commit: b5ff7df3df9efab511244d5a299fce706c71af48 Check mapped ranges on sysfs resource files allowed

Re: [PATCH 4/5] PCI: designware: Add setup bus-related to pcie_host_ops

2015-01-19 Thread Lorenzo Pieralisi
On Mon, Jan 19, 2015 at 01:54:26PM +, Arnd Bergmann wrote: On Monday 19 January 2015 13:38:53 Gabriel Fernandez wrote: On 18 December 2014 at 05:58, Jingoo Han jg1@samsung.com wrote: On Thursday, December 18, 2014 7:16 AM, Arnd Bergmann wrote: On Wednesday 17 December 2014

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-16 Thread Lorenzo Pieralisi
Hi Hanjun, On Wed, Jan 14, 2015 at 03:04:58PM +, Hanjun Guo wrote: [...] diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h index 780f82c..bf22650 100644 --- a/arch/arm64/include/asm/smp.h +++ b/arch/arm64/include/asm/smp.h @@ -39,9 +39,10 @@ extern void

Re: [PATCH v7 07/17] ARM64 / ACPI: Disable ACPI if FADT revision is less than 5.1

2015-01-16 Thread Lorenzo Pieralisi
On Wed, Jan 14, 2015 at 03:04:55PM +, Hanjun Guo wrote: FADT Major.Minor version was introduced in ACPI 5.1, it is the same as ACPI version. In ACPI 5.1, some major gaps are fixed for ARM, such as updates in MADT table for GIC and SMP init, without those updates, we can not get the

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

2015-02-10 Thread Lorenzo Pieralisi
Hi Rafael, On Wed, Feb 11, 2015 at 02:03:49AM +, Rafael J. Wysocki wrote: On Wednesday, February 11, 2015 02:41:35 AM Rafael J. Wysocki wrote: On Wednesday, February 11, 2015 12:07:55 PM Stephen Rothwell wrote: Hi Rafael, Today's linux-next merge of the pm tree got a conflict in

Re: [PATCH v2 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-02-16 Thread Lorenzo Pieralisi
Hi Thomas, On Thu, Jan 22, 2015 at 05:40:00PM +, Thomas Petazzoni wrote: Dear Yijing Wang, On Wed, 21 Jan 2015 08:30:18 +0800, Yijing Wang wrote: Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as

Re: [PATCH 1/2] pci: generic: Use the pci_scan_root_bus instead of pci_common_init_dev

2015-02-16 Thread Lorenzo Pieralisi
: Bjorn Helgaas bhelg...@google.com Cc: Arnd Bergmann a...@arndb.de Cc: Will Deacon will.dea...@arm.com Cc: Marc Zyngier marc.zyng...@arm.com Cc: Lorenzo Pieralisi lorenzo.pieral...@arm.com Cc: Catalin Marinas catalin.mari...@arm.com Cc: Liviu Dudau liviu.du...@arm.com Signed-off-by: Suravee

Re: [PATCH 34/35] tick: Provide tick_suspend_local()

2015-02-17 Thread Lorenzo Pieralisi
On Mon, Feb 16, 2015 at 12:15:09PM +, Peter Zijlstra wrote: From: Thomas Gleixner t...@linutronix.de This function is intended to use by the freezer once the freezer folks solved their race issues. Also required to get rid of the ARM BL switcher tick hackery. Totally agree with the

Re: [PATCH 33/35] tick: Make hrtimer broadcasting opt-in

2015-02-17 Thread Lorenzo Pieralisi
: Lorenzo Pieralisi lorenzo.pieral...@arm.com Reviewed-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/kernel/smp.c|2 +- arch/arm64/Kconfig |1 + arch/arm64/kernel/smp.c |1 + arch/arm64/kernel/time.c |2 +- arch/mips/kernel/smp.c

Re: [PATCH 34/35] tick: Provide tick_suspend_local()

2015-02-18 Thread Lorenzo Pieralisi
On Wed, Feb 18, 2015 at 01:35:24PM +, Peter Zijlstra wrote: On Tue, Feb 17, 2015 at 02:31:42PM +, Lorenzo Pieralisi wrote: On Mon, Feb 16, 2015 at 12:15:09PM +, Peter Zijlstra wrote: From: Thomas Gleixner t...@linutronix.de This function is intended to use by the freezer

Re: [PATCH 2/7] pm: at91: pm_suspend: add the WFI support for ARMv7

2015-01-28 Thread Lorenzo Pieralisi
On Mon, Jan 26, 2015 at 10:06:01AM +, Wenyou Yang wrote: Commit log please. Signed-off-by: Wenyou Yang wenyou.y...@atmel.com --- arch/arm/mach-at91/pm_suspend.S | 54 ++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git

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