[PATCH V3 2/2] irqchip: qcom: Add IRQ combiner driver

2016-05-13 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 344 3 files changed, 353 insertions(+) create mode 100644 drivers/i

[PATCH V3 1/2] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-05-13 Thread Agustin Vega-Frias
This allows irqchip drivers to associate an ACPI DSDT device to an IRQ domain and provides support for using the ResourceSource in Extended IRQ Resources to find the domain and map the IRQs specified on that domain. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- driver

[PATCH V3 0/2] irqchip: qcom: Add IRQ combiner driver

2016-05-13 Thread Agustin Vega-Frias
PIO library for the combiner * Refactor to use fwnode/ResourceSource to IRQ domain mapping introduced in ACPI core Changes V2 -> V3: * Removed parsing of _PRS to find IRQs * Removed acpi_irq_domain_create and acpi_irq_domain_remove Agustin Vega-Frias (2): ACPI: Add support for ResourceSour

Re: [PATCH V11 3/3] irqchip: qcom: Add IRQ combiner driver

2017-02-02 Thread Agustin Vega-Frias
Hi Andy, On 2017-01-25 19:44, Andy Shevchenko wrote: On Fri, Jan 20, 2017 at 4:34 AM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: Driver for interrupt combiners in the Top-level Control and Status Registers (TCSR) hardware block in Qualcomm Technologies chips. An interrupt co

[PATCH V12 0/3] irqchip: qcom: Add IRQ combiner driver

2017-02-02 Thread Agustin Vega-Frias
scan. * Make some public APIs private to drivers/acpi/irq.c since they are no longer used on other modules. Agustin Vega-Frias (3): ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan ACPI: Add support for ResourceSource/IRQ domain mapping irqchip: qcom: Add IRQ com

[PATCH V12 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-02-02 Thread Agustin Vega-Frias
IRQ resource, and provides proper behavior for probe deferral when the domain is not yet present when called. Acked-by: Rafael J. Wysocki <raf...@kernel.org> Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c =&g

[PATCH V12 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2017-02-02 Thread Agustin Vega-Frias
to keep the current behavior on x86 platforms, in case some existing ACPI tables are using this incorrectly. Acked-by: Rafael J. Wysocki <raf...@kernel.org> Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.c | 18 +- 1 file changed, 1

[PATCH V12 3/3] irqchip: qcom: Add IRQ combiner driver

2017-02-02 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 9 ++ drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 296 3 files changed, 306 insertions(+) create mode 100644 drivers/i

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-02-02 Thread Agustin Vega-Frias
Hi Rafael, On 2017-01-31 17:10, Rafael J. Wysocki wrote: On Wed, Jan 18, 2017 at 5:46 PM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to imp

[PATCH V2] perf: qcom: Add L3 cache PMU driver

2017-02-16 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/perf/Kconfig | 9 + drivers/perf/Makefile | 1 + drivers/perf/qcom_l3_pmu.c | 931 + include/linux/cpuhotplug.h | 1 + 4 files changed, 942 insertions(+) create mode

Re: [PATCH V2] perf: qcom: Add L3 cache PMU driver

2017-02-16 Thread Agustin Vega-Frias
Hey Mark, On 2017-02-16 11:41, Mark Rutland wrote: Hi, On Thu, Feb 16, 2017 at 10:03:05AM -0500, Agustin Vega-Frias wrote: This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports a distributed

Re: [PATCH V9 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2017-01-17 Thread Agustin Vega-Frias
Hi Hanjun, On 2017-01-17 07:15, Hanjun Guo wrote: On 2016/12/15 6:10, Agustin Vega-Frias wrote: ACPI extended IRQ resources may contain a Resource Source field to specify an alternate interrupt controller, attempting to map them as GSIs is incorrect, so just disable the platform resource

Re: [PATCH V9 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-17 Thread Agustin Vega-Frias
Hi Hanjun, On 2017-01-17 07:47, Hanjun Guo wrote: On 2016/12/15 6:10, Agustin Vega-Frias wrote: ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to implement ResourceSource/IRQ domain mapping. The new API

Re: [PATCH V9 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-16 Thread Agustin Vega-Frias
Hi Rafael, On 2017-01-03 16:56, Rafael J. Wysocki wrote: On Tue, Jan 3, 2017 at 4:19 PM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: Hi, Is there any more feedback on this beyond Lorenzo's suggestion to drop the conditional check on the first patch? How can we move f

[PATCH V10 3/3] irqchip: qcom: Add IRQ combiner driver

2017-01-18 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 319 3 files changed, 329 insertions(+) create mode 100644 drivers/i

[PATCH V10 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2017-01-18 Thread Agustin Vega-Frias
to keep the current behavior on x86 platforms, in case some existing ACPI tables are using this incorrectly. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH V10 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-18 Thread Agustin Vega-Frias
e some public APIs private to drivers/acpi/irq.c since they are no longer used on other modules. Changes V7 -> V8: * Reorder patches to allow all new code to be under drivers/acpi/irq.c. * Change acpi_irq_get implementation to be more similar to of_irq_get to improve maintainability. Agu

[PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
IRQ resource, and provides proper behavior for probe deferral when the domain is not yet present when called. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/gsi.c | 98 - drivers/acpi/irq.c

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
Hi Andy, On 2017-01-18 13:00, Andy Shevchenko wrote: On Wed, Jan 18, 2017 at 6:46 PM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to imp

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
IRQ resource, and provides proper behavior for probe deferral when the domain is not yet present when called. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq

[PATCH V11 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-19 Thread Agustin Vega-Frias
r modules. Agustin Vega-Frias (3): ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan ACPI: Add support for ResourceSource/IRQ domain mapping irqchip: qcom: Add IRQ combiner driver drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq.c}

[PATCH V11 3/3] irqchip: qcom: Add IRQ combiner driver

2017-01-19 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 320 3 files changed, 330 insertions(+) create mode 100644 drivers/i

[PATCH V11 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Agustin Vega-Frias
IRQ resource, and provides proper behavior for probe deferral when the domain is not yet present when called. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq.c}

[PATCH V11 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2017-01-19 Thread Agustin Vega-Frias
to keep the current behavior on x86 platforms, in case some existing ACPI tables are using this incorrectly. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/driver

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Agustin Vega-Frias
Hi Andy, On 2017-01-18 14:45, Andy Shevchenko wrote: On Wed, Jan 18, 2017 at 9:04 PM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: [...] + */ +static struct fwnode_handle * +acpi_get_irq_source_fwhandle(const struct acpi_resource_source *source) +{ + struct fwnode_

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Agustin Vega-Frias
On 2017-01-19 07:36, Lorenzo Pieralisi wrote: On Wed, Jan 18, 2017 at 09:45:56PM +0200, Andy Shevchenko wrote: [...] > +/** > + * acpi_irq_get - Look for the ACPI IRQ resource with the given index and > + *use it to initialize the given Linux IRQ resource. > + * @handle ACPI

[PATCH V6 0/3] irqchip: qcom: Add IRQ combiner driver

2016-10-28 Thread Agustin Vega-Frias
combiner registers as ACPI Register resources Agustin Vega-Frias (3): ACPI: Retry IRQ conversion if it failed previously ACPI: Add support for ResourceSource/IRQ domain mapping irqchip: qcom: Add IRQ combiner driver drivers/acpi/Makefile | 1 + drivers/acpi/ir

[PATCH V6 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-10-28 Thread Agustin Vega-Frias
This allows irqchip drivers to associate an ACPI DSDT device to an IRQ domain and provides support for using the ResourceSource in Extended IRQ Resources to find the domain and map the IRQs specified on that domain. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- driver

[PATCH V6 3/3] irqchip: qcom: Add IRQ combiner driver

2016-10-28 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 337 3 files changed, 346 insertions(+) create mode 100644 drivers/i

[PATCH V5 1/2] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-10-18 Thread Agustin Vega-Frias
This allows irqchip drivers to associate an ACPI DSDT device to an IRQ domain and provides support for using the ResourceSource in Extended IRQ Resources to find the domain and map the IRQs specified on that domain. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- driver

[PATCH V5 2/2] irqchip: qcom: Add IRQ combiner driver

2016-10-18 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 332 3 files changed, 341 insertions(+) create mode 100644 drivers/i

[PATCH V5 0/2] irqchip: qcom: Add IRQ combiner driver

2016-10-18 Thread Agustin Vega-Frias
to probe DSDT IRQ chips as necessary when converting HW IRQs to Linux IRQs * Describe IRQ combiner registers as ACPI Register resources Changes V4 -> V5: * Fix issues flagged by the 0-DAY build bot * Fix some minor style issues raised by Timur Agustin Vega-Frias (2): ACPI:

Re: [PATCH V7 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-28 Thread Agustin Vega-Frias
Hi Rafael, Can you chime in on Lorenzo's feedback and the discussion below? It would be great if you can comment on the reason ACPI does things in a certain way. Hi Lorenzo, On 2016-11-25 06:40, Lorenzo Pieralisi wrote: Hi Agustin, On Thu, Nov 24, 2016 at 04:15:48PM +, Lorenzo Pieralisi

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-15 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-11-15 10:48, Lorenzo Pieralisi wrote: On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: This allows probe deferral to work properly when a dependent device fails to get a valid IRQ because the IRQ domain was not registered at the time the resources were

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-16 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-11-16 12:18, Lorenzo Pieralisi wrote: On Tue, Nov 15, 2016 at 12:43:38PM -0500, Agustin Vega-Frias wrote: Hi Lorenzo, On 2016-11-15 10:48, Lorenzo Pieralisi wrote: >On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: >>This allows probe deferra

[PATCH V7 3/3] irqchip: qcom: Add IRQ combiner driver

2016-11-13 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 337 3 files changed, 346 insertions(+) create mode 100644 drivers/i

[PATCH V7 0/3] irqchip: qcom: Add IRQ combiner driver

2016-11-13 Thread Agustin Vega-Frias
gsi in terms of the new acpi_register_irq API. Changes V5 -> V6: * Drop probe table and on-demand probing based on resource_source * Add patch to fix probe deferral * Change back combiner driver to use the platform_device/platform_driver APIs Agustin Vega-Frias (3): ACPI: Retry IRQ conv

[PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-13 Thread Agustin Vega-Frias
This allows probe deferral to work properly when a dependent device fails to get a valid IRQ because the IRQ domain was not registered at the time the resources were added to the platform_device. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.

[PATCH V7 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-13 Thread Agustin Vega-Frias
dependent devices are probed these changes allow the ACPI core find the domain and map the IRQ. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq.c} | 98 +-- dri

[PATCH V6 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-10-28 Thread Agustin Vega-Frias
This allows probe deferral to work properly when a dependent device fails to get a valid IRQ because the IRQ domain was not registered at the time the resources were added to the platform_device. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.

[PATCH V4 1/2] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-10-17 Thread Agustin Vega-Frias
This allows irqchip drivers to associate an ACPI DSDT device to an IRQ domain and provides support for using the ResourceSource in Extended IRQ Resources to find the domain and map the IRQs specified on that domain. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- driver

[PATCH V4 0/2] irqchip: qcom: Add IRQ combiner driver

2016-10-17 Thread Agustin Vega-Frias
to probe DSDT IRQ chips as necessary when converting HW IRQs to Linux IRQs * Describe IRQ combiner registers as ACPI Register resources Agustin Vega-Frias (2): ACPI: Add support for ResourceSource/IRQ domain mapping irqchip: qcom: Add IRQ combiner driver drivers/acpi/Makefile

[PATCH V4 2/2] irqchip: qcom: Add IRQ combiner driver

2016-10-17 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 332 3 files changed, 341 insertions(+) create mode 100644 drivers/i

[PATCH V8 0/3] irqchip: qcom: Add IRQ combiner driver

2016-11-29 Thread Agustin Vega-Frias
enting acpi_register_gsi in terms of the new acpi_register_irq API. Changes V5 -> V6: * Drop probe table and on-demand probing based on resource_source * Add patch to fix probe deferral * Change back combiner driver to use the platform_device/platform_driver APIs Agustin Vega-Frias (3): ACPI: Ad

[PATCH V8 2/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-29 Thread Agustin Vega-Frias
This allows probe deferral to work properly when a dependent device fails to get a valid IRQ because the IRQ domain was not registered at the time the resources were added to the platform_device. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/irq.c

[PATCH V8 3/3] irqchip: qcom: Add IRQ combiner driver

2016-11-29 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 8 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 337 3 files changed, 346 insertions(+) create mode 100644 drivers/i

[PATCH V8 1/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-29 Thread Agustin Vega-Frias
dependent devices are probed these changes allow the ACPI core find the domain and map the IRQ. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq.c} | 99 +-- dri

Re: [PATCH V8 3/3] irqchip: qcom: Add IRQ combiner driver

2016-12-13 Thread Agustin Vega-Frias
On 2016-12-07 13:16, Marc Zyngier wrote: Hi Agustin, On 29/11/16 22:57, Agustin Vega-Frias wrote: Driver for interrupt combiners in the Top-level Control and Status Registers (TCSR) hardware block in Qualcomm Technologies chips. An interrupt combiner in this block combines a set of interrupts

Re: [PATCH V8 1/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-12-13 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-12-08 06:05, Lorenzo Pieralisi wrote: Hi Agustin, please CC me for next version. On Tue, Nov 29, 2016 at 05:57:37PM -0500, Agustin Vega-Frias wrote: When an Extended IRQ Resource contains a valid ResourceSource use it to map the IRQ on the domain associated with the ACPI

[PATCH V9 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2016-12-14 Thread Agustin Vega-Frias
to keep the current behavior on x86 platforms, in case some existing ACPI tables are using this incorrectly. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/resource.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH V9 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-12-14 Thread Agustin Vega-Frias
IRQ resource, and provides proper behavior for probe deferral when the domain is not yet present when called. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/acpi/Makefile | 2 +- drivers/acpi/{gsi.c => irq

[PATCH V9 3/3] irqchip: qcom: Add IRQ combiner driver

2016-12-14 Thread Agustin Vega-Frias
-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/Kconfig | 9 + drivers/irqchip/Makefile| 1 + drivers/irqchip/qcom-irq-combiner.c | 322 3 files changed, 332 insertions(+) create mode 100644 drivers/i

[PATCH V9 0/3] irqchip: qcom: Add IRQ combiner driver

2016-12-14 Thread Agustin Vega-Frias
w code to be under drivers/acpi/irq.c. * Change acpi_irq_get implementation to be more similar to of_irq_get to improve maintainability. Agustin Vega-Frias (3): ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan ACPI: Add support for ResourceSource/IRQ domain mapping i

Re: [PATCH V9 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2016-12-16 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-12-16 11:24, Lorenzo Pieralisi wrote: On Wed, Dec 14, 2016 at 05:10:36PM -0500, Agustin Vega-Frias wrote: ACPI extended IRQ resources may contain a Resource Source field to specify an alternate interrupt controller, attempting to map them as GSIs is incorrect, so just

Re: [PATCH V7 0/3] irqchip: qcom: Add IRQ combiner driver

2016-11-29 Thread Agustin Vega-Frias
Hi Hanjun, On 2016-11-29 06:31, Hanjun Guo wrote: Hi Agustin, On 2016/11/14 5:59, Agustin Vega-Frias wrote: Add support for IRQ combiners in the Top-level Control and Status Registers (TCSR) hardware block in Qualcomm Technologies chips. The first patch fixes IRQ probe deferral by allowing

Re: [PATCH V7 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-29 Thread Agustin Vega-Frias
Hi Rafael, On 2016-11-29 07:43, Rafael J. Wysocki wrote: On Tue, Nov 29, 2016 at 1:11 PM, Lorenzo Pieralisi <lorenzo.pieral...@arm.com> wrote: Hi Agustin, On Mon, Nov 28, 2016 at 05:40:24PM -0500, Agustin Vega-Frias wrote: Hi Rafael, Can you chime in on Lorenzo's feedback and the disc

Re: [PATCH V7 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2016-11-29 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-11-29 07:11, Lorenzo Pieralisi wrote: Hi Agustin, On Mon, Nov 28, 2016 at 05:40:24PM -0500, Agustin Vega-Frias wrote: Hi Rafael, Can you chime in on Lorenzo's feedback and the discussion below? It would be great if you can comment on the reason ACPI does things

Re: [PATCH V9 3/3] irqchip: qcom: Add IRQ combiner driver

2017-01-06 Thread Agustin Vega-Frias
Hey Marc, On 2017-01-05 11:48, Marc Zyngier wrote: Hi Agustin, On 14/12/16 22:10, Agustin Vega-Frias wrote: Driver for interrupt combiners in the Top-level Control and Status Registers (TCSR) hardware block in Qualcomm Technologies chips. An interrupt combiner in this block combines a set

Re: [PATCH V9 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-04 Thread Agustin Vega-Frias
On 2017-01-03 16:56, Rafael J. Wysocki wrote: On Tue, Jan 3, 2017 at 4:19 PM, Agustin Vega-Frias <agust...@codeaurora.org> wrote: Hi, Is there any more feedback on this beyond Lorenzo's suggestion to drop the conditional check on the first patch? How can we move forward on this

Re: [PATCH V9 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-03 Thread Agustin Vega-Frias
Hi, Is there any more feedback on this beyond Lorenzo's suggestion to drop the conditional check on the first patch? How can we move forward on this series? Thanks. On 2016-12-14 17:10, Agustin Vega-Frias wrote: Add support for IRQ combiners in the Top-level Control and Status Registers (TCSR

[PATCH V5] perf: qcom: Add L3 cache PMU driver

2017-03-23 Thread Agustin Vega-Frias
l3cache_0_0/read-miss/ perf stat -a -e l3cache_0_0/event=0x21/ Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- Documentation/perf/qcom_l3_pmu.txt | 25 ++ drivers/perf/Kconfig | 10 + drivers/perf/Makefile | 1 + drivers/perf/qcom_l3_pmu.c

[PATCH V6] perf: qcom: Add L3 cache PMU driver

2017-03-31 Thread Agustin Vega-Frias
l3cache_0_0/read-miss/ perf stat -a -e l3cache_0_0/event=0x21/ Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- Documentation/perf/qcom_l3_pmu.txt | 25 ++ drivers/perf/Kconfig | 10 + drivers/perf/Makefile | 1 + drivers/perf/qcom_l3_pmu.c

Re: [PATCH V4] perf: qcom: Add L3 cache PMU driver

2017-03-23 Thread Agustin Vega-Frias
On 2017-03-23 11:33, Mark Rutland wrote: Hi Agustin, Structurally, this looks good to me. I have a few minor comments below; with those fixed up I think this is ready to merge. Thanks Mark, I'll spin V5 ASAP. Agustin -- Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm

Re: [PATCH V4] perf: qcom: Add L3 cache PMU driver

2017-03-17 Thread Agustin Vega-Frias
On 2017-03-17 10:24, Agustin Vega-Frias wrote: This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports a distributed cache architecture where the overall cache for a socket is comprised of multiple

[PATCH V4] perf: qcom: Add L3 cache PMU driver

2017-03-17 Thread Agustin Vega-Frias
l3cache_0_0/read-miss/ perf stat -a -e l3cache_0_0/event=0x21/ Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- Documentation/perf/qcom_l3_pmu.txt | 25 ++ drivers/perf/Kconfig | 10 + drivers/perf/Makefile | 1 + drivers/perf/qcom_l3_pmu.c

Re: [PATCH V3] perf: qcom: Add L3 cache PMU driver

2017-03-06 Thread Agustin Vega-Frias
Hi Mark, On 2017-03-03 09:50, Mark Rutland wrote: Hi Augustin, On Thu, Mar 02, 2017 at 03:58:32PM -0500, Agustin Vega-Frias wrote: This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports

[PATCH V3] perf: qcom: Add L3 cache PMU driver

2017-03-02 Thread Agustin Vega-Frias
l3cache_0_0/read-miss/ perf stat -a -e l3cache_0_0/event=0x21/ Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/perf/Kconfig | 10 + drivers/perf/Makefile | 1 + drivers/perf/qcom_l3_pmu.c | 755 + include

Re: [PATCH V5] perf: qcom: Add L3 cache PMU driver

2017-03-31 Thread Agustin Vega-Frias
Hey Mark, On 2017-03-31 09:59, Mark Rutland wrote: Hi Agustin, On Thu, Mar 23, 2017 at 05:03:17PM -0400, Agustin Vega-Frias wrote: This adds a new dynamic PMU to the Perf Events framework to program and control the L3 cache PMUs in some Qualcomm Technologies SOCs. The driver supports

[RFC V2 2/3] arm_pmu: acpi: add support for CPU PMU variant detection

2018-06-07 Thread Agustin Vega-Frias
function is called after the default PMU initialization and is passed a pointer to the arm_pmu structure and a pointer to the PMU device. The init function can then override arm_pmu callbacks and attributes and query more properties from the PMU device. Signed-off-by: Agustin Vega-Frias ---

[RFC V2 0/3] arm_pmu: acpi: variant support and QCOM Falkor extensions

2018-06-07 Thread Agustin Vega-Frias
table. If this found to be a reasonable extension approach other patches will be added to the series to build on the base QCOM extensions. [1] https://lkml.org/lkml/2017/3/1/540 Changes since V1: - Redesign as a separate module by adding variant detection support. Agustin Vega-Frias (3): ACPI

[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-07 Thread Agustin Vega-Frias
) { Name (_HID, "ACPI0007" /* Processor Device */) ... Device (PMU0) { Name (_HID, "QCOM8150") /* Qualcomm Falkor PMU device */ ... } } Signed-off-by: Agustin Vega-Frias --- drivers/perf/Makefile |

[RFC V2 1/3] ACPI: add support for sentinel-delimited probe tables

2018-06-07 Thread Agustin Vega-Frias
at the end of the probe table. This section can be used to add a sentinel for tables that require it. Signed-off-by: Agustin Vega-Frias --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-12 Thread Agustin Vega-Frias
Hi Mark, On 2018-06-12 10:40, Mark Rutland wrote: Hi, On Thu, Jun 07, 2018 at 09:56:48AM -0400, Agustin Vega-Frias wrote: Selection of these events can be envisioned as indexing them from a 3D matrix: - the first index selects a Region Event Selection Register (PMRESRx_EL0) - the second

Re: [RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-14 Thread Agustin Vega-Frias
Hi, On 2018-06-13 09:02, Will Deacon wrote: On Wed, Jun 13, 2018 at 01:59:58PM +0100, Marc Zyngier wrote: On 13/06/18 11:35, Will Deacon wrote: [...] > Great :( We need to make sure we disable EL0 access during boot then, but > that means we need to prove for the existence of this thing in

[RFC V2 2/3] arm_pmu: acpi: add support for CPU PMU variant detection

2018-06-22 Thread Agustin Vega-Frias
function is called after the default PMU initialization and is passed a pointer to the arm_pmu structure and a pointer to the PMU device. The init function can then override arm_pmu callbacks and attributes and query more properties from the PMU device. Signed-off-by: Agustin Vega-Frias ---

[RFC V3 0/3] arm_pmu: acpi: variant support and QCOM Falkor extensions

2018-06-22 Thread Agustin Vega-Frias
: - Redesign as a separate module by adding variant detection support. Agustin Vega-Frias (3): ACPI: add support for sentinel-delimited probe tables arm_pmu: acpi: add support for CPU PMU variant detection perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support drivers/perf/Makefile

[RFC V2 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-22 Thread Agustin Vega-Frias
I0007" /* Processor Device */) ... Device (PMU0) { Name (_HID, "QCOM8150") /* Qualcomm Falkor PMU device */ ... } } Signed-off-by: Agustin Vega-Frias --- drivers/perf/Makefile | 2 +- drivers/perf/

[RFC V2 1/3] ACPI: add support for sentinel-delimited probe tables

2018-06-22 Thread Agustin Vega-Frias
at the end of the probe table. This section can be used to add a sentinel for tables that require it. Signed-off-by: Agustin Vega-Frias --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic

[RFC V3 3/3] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-06-22 Thread Agustin Vega-Frias
I0007" /* Processor Device */) ... Device (PMU0) { Name (_HID, "QCOM8150") /* Qualcomm Falkor PMU device */ ... } } Signed-off-by: Agustin Vega-Frias --- drivers/perf/Makefile | 2 +- drivers/perf/

[RFC V3 1/3] ACPI: add support for sentinel-delimited probe tables

2018-06-22 Thread Agustin Vega-Frias
at the end of the probe table. This section can be used to add a sentinel for tables that require it. Signed-off-by: Agustin Vega-Frias --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic

[RFC V3 2/3] arm_pmu: acpi: add support for CPU PMU variant detection

2018-06-22 Thread Agustin Vega-Frias
function is called after the default PMU initialization and is passed a pointer to the arm_pmu structure and a pointer to the PMU device. The init function can then override arm_pmu callbacks and attributes and query more properties from the PMU device. Signed-off-by: Agustin Vega-Frias ---

Re: [PATCH 2/2] perf: add arm64 smmuv3 pmu driver

2018-05-02 Thread Agustin Vega-Frias
On 2018-04-02 02:37, Yisheng Xie wrote: Hi Neil, On 2018/4/1 13:44, Neil Leeder wrote: Hi Yisheng Xie, On 3/29/2018 03:03 AM, Yisheng Xie wrote: Hi Neil, On 2017/8/5 3:59, Neil Leeder wrote: +mem_resource_0 = platform_get_resource(pdev, IORESOURCE_MEM, 0); +mem_map_0 =

[PATCH V1] irqchip/qcom: Fix check for spurious interrupts

2018-05-01 Thread Agustin Vega-Frias
When the interrupts for a combiner span multiple registers we need to check if any interrupts have been asserted on each register before checking for spurious interrupts. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- drivers/irqchip/qcom-irq-combiner.c | 4 ++-- 1 file c

[RFC V4 3/4] perf: qcom: Add PC capture support to CPU PMU

2018-07-05 Thread Agustin Vega-Frias
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"qcom,pmu-pcc-support", 1}, } }) } } Signed-off-by: Agustin Vega-Frias --- arch/arm64/include/asm/perf_event.h | 18 ++ arc

[RFC V4 2/4] arm_pmu: acpi: add support for CPU PMU variant detection

2018-07-05 Thread Agustin Vega-Frias
function is called after the default PMU initialization and is passed a pointer to the arm_pmu structure and a pointer to the PMU device. The init function can then override arm_pmu callbacks and attributes and query more properties from the PMU device. Signed-off-by: Agustin Vega-Frias ---

[RFC V4 0/3] arm_pmu: acpi: variant support and QCOM Falkor extensions

2018-07-05 Thread Agustin Vega-Frias
uses of the PMU lock. Agustin Vega-Frias (3): ACPI: add support for sentinel-delimited probe tables arm_pmu: acpi: add support for CPU PMU variant detection perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support drivers/perf/Makefile | 2 +- drivers/perf

[RFC V4 4/4] perf: qcom: Add Falkor CPU PMU IMPLEMENTATION DEFINED event support

2018-07-05 Thread Agustin Vega-Frias
I0007" /* Processor Device */) ... Device (PMU0) { Name (_HID, "QCOM8150") /* Qualcomm Falkor PMU device */ ... } } Signed-off-by: Agustin Vega-Frias --- drivers/perf/qcom_arm_pmu.c | 306

[RFC V4 1/4] ACPI: add support for sentinel-delimited probe tables

2018-07-05 Thread Agustin Vega-Frias
at the end of the probe table. This section can be used to add a sentinel for tables that require it. Signed-off-by: Agustin Vega-Frias --- include/asm-generic/vmlinux.lds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic

Re: [RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-07 Thread Agustin Vega-Frias
On 2018-03-07 14:39, Arnaldo Carvalho de Melo wrote: Em Wed, Mar 07, 2018 at 04:05:43PM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Mar 07, 2018 at 04:05:09PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Mar 07, 2018 at 10:54:15AM -0800, Andi Kleen escreveu: > > > Sorry about

Re: [RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-07 Thread Agustin Vega-Frias
On 2018-03-07 14:58, Arnaldo Carvalho de Melo wrote: Em Wed, Mar 07, 2018 at 02:49:50PM -0500, Agustin Vega-Frias escreveu: On 2018-03-07 14:39, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 07, 2018 at 04:05:43PM -0300, Arnaldo Carvalho de Melo > escreveu: > > Em Wed, Mar 07, 2

[RFC V4] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-07 Thread Agustin Vega-Frias
be passed. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- tools/perf/Documentation/perf-list.txt | 8 +++- tools/perf/Documentation/perf-stat.txt | 13 + tools/perf/util/parse-events.l | 2 +- tools/perf/util/parse-events.y | 14 -- 4

Re: [RFC V4] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-08 Thread Agustin Vega-Frias
On 2018-03-08 08:03, Arnaldo Carvalho de Melo wrote: Em Wed, Mar 07, 2018 at 03:35:47PM -0500, Agustin Vega-Frias escreveu: +++ b/tools/perf/util/parse-events.y @@ -8,6 +8,7 @@ #define YYDEBUG 1 +#include #include #include #include @@ -234,6 +235,10 @@ PE_NAME opt_event_config

Re: [RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-07 Thread Agustin Vega-Frias
On 2018-03-07 11:02, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 06, 2018 at 09:04:42AM -0500, Agustin Vega-Frias escreveu: [snip] This breaks the build in at least Alpine Linux 3.4, 3.5 and 3.6 and android-ndk:r15c-arm Alpine 3.6 build failure: CC /tmp/build/perf/util/parse-events

[RFC V3 3/3] perf pmu: Auto-merge PMU events created by prefix or glob match

2018-03-06 Thread Agustin Vega-Frias
l3cache/read-miss/ 63 l3cache/read-miss/ 60 l3cache/read-miss/ 1.002622192 seconds time elapsed Change-Id: I0a47eed54c05e1982ca964d743b37f50f60c508c Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- tool

[RFC V3 0/3] perf stat: improvements for handling of multiple PMUs

2018-03-06 Thread Agustin Vega-Frias
sample output to the third patch. Agustin Vega-Frias (3): perf, tools: Support wildcards on pmu name in dynamic pmu events perf, tools: Display pmu name when printing unmerged events in stat perf pmu: Auto-merge PMU events created by prefix or glob match tools/perf/Documentation/perf-list.txt

[RFC V3 2/3] perf, tools: Display pmu name when printing unmerged events in stat

2018-03-06 Thread Agustin Vega-Frias
he_read_miss [l3cache_0_0] 0.001661305 seconds time elapsed Change-Id: I8056b9eda74bda33e95065056167ad96e97cb1fb Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- tools/perf/builtin-stat.c | 29 - tools/perf/util/evsel.c| 1 + tools

[RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-06 Thread Agustin Vega-Frias
be passed. Change-Id: Icb25653fc5d5239c20f3bffdfdf4ab4c9c9bb20b Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- tools/perf/Documentation/perf-list.txt | 8 +++- tools/perf/Documentation/perf-stat.txt | 13 + tools/perf/util/parse-events.l | 2 +- tools/per

Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-05 Thread Agustin Vega-Frias
On 2018-03-04 13:10, Jiri Olsa wrote: On Sun, Mar 04, 2018 at 09:12:45AM -0800, Andi Kleen wrote: > > +#include > > #include > > #include > > #include > > @@ -241,7 +242,7 @@ PE_NAME opt_event_config > > if (!strncmp(name, "uncore_", 7) && > >

Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-05 Thread Agustin Vega-Frias
On 2018-03-05 14:09, Jiri Olsa wrote: On Mon, Mar 05, 2018 at 10:08:18AM -0500, Agustin Vega-Frias wrote: On 2018-03-04 13:10, Jiri Olsa wrote: > On Sun, Mar 04, 2018 at 09:12:45AM -0800, Andi Kleen wrote: > > > > +#include > > > > #include > >

[RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-02 Thread Agustin Vega-Frias
be passed. Signed-off-by: Agustin Vega-Frias <agust...@codeaurora.org> --- tools/perf/Documentation/perf-list.txt | 8 +++- tools/perf/Documentation/perf-stat.txt | 12 tools/perf/util/parse-events.l | 2 +- tools/perf/util/parse-events.y | 3 ++- 4 files chang

  1   2   3   >