[PATCH RFC 4/4] drivers: of-thermal: notify framework when sensor is tripped

2018-05-08 Thread Lina Iyer
Notify all related thermal zones when the sensor reports a thermal trip. Signed-off-by: Lina Iyer --- drivers/thermal/of-thermal.c | 83 ++-- include/linux/thermal.h | 4 ++ 2 files changed, 84 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/of

[PATCH RFC 3/4] drivers: of-thermal: aggregate sensor trips across thermal zones

2018-05-08 Thread Lina Iyer
Aggregate thermal trip based on the trip points of the thermal zones that use this sensor as the source. Signed-off-by: Lina Iyer --- drivers/thermal/of-thermal.c | 28 ++- drivers/thermal/thermal_helpers.c | 37 ++- include/linux/thermal.h

[PATCH RFC 2/4] drivers: of-thermal: allow multiple thermal zones for a sensor

2018-05-08 Thread Lina Iyer
To allow different mitigative actions based on a sensor temperature, it is desirable to have multiple thermal zones share the same source. The thermal zones could have different thresholds, mitigative actions and even different governors. Signed-off-by: Lina Iyer --- drivers/thermal/of

Re: [PATCH] soc: qcom: cmd-db: Make endian-agnostic

2018-04-17 Thread Lina Iyer
we already pad out the string 'id' field to exactly 8 bytes with the strncpy() onto the stack. Cc: Mahesh Sivasubramanian Cc: Lina Iyer Cc: Bjorn Andersson Cc: Evan Green Signed-off-by: Stephen Boyd --- Changes from inline patch: * Fixed magic * Made function for memcmp() * driver

Re: [PATCH] soc: qcom: cmd-db: Make endian-agnostic

2018-04-17 Thread Lina Iyer
On Tue, Apr 17 2018 at 11:22 -0600, Lina Iyer wrote: On Thu, Apr 12 2018 at 16:41 -0600, Stephen Boyd wrote: This driver deals with memory that is stored in little-endian format. Update the structures with the proper little-endian types and then do the proper conversions when reading the fields

Re: [PATCH v5 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-04-18 Thread Lina Iyer
On Mon, Apr 16 2018 at 00:01 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2018-04-16 09:08:18) On Fri, Apr 13 2018 at 16:40 -0600, Stephen Boyd wrote: >Well it seems like an RSC contains many DRVs and those DRVs contain many >TCSes. This is what I get after talking with Bjorn

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

2016-10-24 Thread Lina Iyer
On Tue, Oct 25 2016 at 17:51 -0600, Rafael J. Wysocki wrote: On Tuesday, October 25, 2016 10:47:29 AM Stephen Rothwell wrote: Hi Rafael, Today's linux-next merge of the pm tree got a conflict in: arch/arm/mach-imx/gpc.c between commits: eef0b282bb58 ("ARM: imx: gpc: Initialize all power

Re: [PATCH RFC v2 0/2] hwspinlock: Introduce raw capability for hwspinlock_device

2015-06-26 Thread Lina Iyer
Hi Ohad, Any comments? Thanks, Lina On Tue, Jun 09 2015 at 10:23 -0600, Lina Iyer wrote: This patch follows the discussion based on the first RFC series posted on the mailing list [1]. The discussion resulted in a couple of directives for hwspinlocks that do not want the framework imposing a

Re: [PATCH v3 2/3] ARM: cpuidle: refine cpuidle_ops member's parameters.

2015-07-10 Thread Lina Iyer
On Thu, Jul 09 2015 at 03:28 -0600, Lorenzo Pieralisi wrote: On Thu, Jul 09, 2015 at 09:43:04AM +0100, Jisheng Zhang wrote: On Thu, 9 Jul 2015 16:31:24 +0800 Jisheng Zhang wrote: > As for the suspend member function, the to-be-suspended cpu is always > the calling cpu itself, so the 'cpu' para

Re: [PATCH v3 2/3] ARM: cpuidle: refine cpuidle_ops member's parameters.

2015-07-10 Thread Lina Iyer
ce_node here may not be necessary either, because we can get the node via. of_get_cpu_node(). Signed-off-by: Jisheng Zhang Tested-by: Lina Iyer --- arch/arm/include/asm/cpuidle.h | 6 +++--- arch/arm/kernel/cpuidle.c | 8 drivers/soc/qcom/spm.c | 17 -

[PATCH] drivers: qcom: Select QCOM_SCM unconditionally for QCOM_PM

2015-07-10 Thread Lina Iyer
Enable QCOM_SCM for QCOM power management driver Signed-off-by: Lina Iyer --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 5eea374..e9a2c19 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom

Re: Build error with !CONFIG_SMP in v4.2-rc1 on arm multi_v7_defconfig

2015-07-10 Thread Lina Iyer
On Fri, Jul 10 2015 at 14:29 -0600, Dave Gerlach wrote: On 07/10/2015 02:36 PM, Stephen Boyd wrote: On 07/10/2015 12:31 PM, Dave Gerlach wrote: Hello, I am seeing the following error when building v4.2-rc1 for arm with multi_v7_defconfig with CONFIG_SMP=n: LINKvmlinux LD vmlinux.o

Re: [PATCH] soc: qcom: Add support for SAW2 regulators

2015-12-18 Thread Lina Iyer
On Fri, Dec 18 2015 at 09:15 -0700, Georgi Djakov wrote: The SAW2 (Subsystem Power Manager and Adaptive Voltage Scaling Wrapper) is part of the SPM subsystem. It is a hardware block found on some of the Qualcomm chipsets, which regulates the power to the CPU cores. Add some basic support for it,

Re: [PATCH] soc: qcom: rpmh: Update rpmh_invalidate function to return void

2020-06-18 Thread Lina Iyer
On Thu, Jun 18 2020 at 07:06 -0600, Maulik Shah wrote: Currently rpmh_invalidate() always returns success. Update its return type to void. Suggested-by: Stephen Boyd Signed-off-by: Maulik Shah Reviewed-by: Lina Iyer --- drivers/interconnect/qcom/bcm-voter.c | 6 +- drivers/soc/qcom

Re: [PATCH 3/3] PM / Domains: Add support for PM domain on/off notifiers for genpd

2020-08-25 Thread Lina Iyer
On Wed, Aug 19 2020 at 04:41 -0600, Ulf Hansson wrote: A device may have specific HW constraints that must be obeyed to, before its corresponding PM domain (genpd) can be powered off - and vice verse at power on. These constraints can't be managed through the regular runtime PM based deployment f

Re: WARNING: suspicious RCU usage - sdhci-pltfm: SDHCI platform and OF driver helper

2020-09-01 Thread Lina Iyer
Hi Ulf, On Tue, Sep 01 2020 at 06:41 -0600, Ulf Hansson wrote: On Tue, 1 Sep 2020 at 14:35, Ulf Hansson wrote: On Tue, 1 Sep 2020 at 12:42, wrote: > > On Tue, Sep 01, 2020 at 08:50:57AM +0200, Ulf Hansson wrote: > > On Tue, 1 Sep 2020 at 08:46, Ulf Hansson wrote: > > > On Mon, 31 Aug 2020 a

Re: [PATCH v3] PM: domains: Add support for PM domain on/off notifiers for genpd

2020-10-19 Thread Lina Iyer
On Tue, Oct 13 2020 at 06:23 -0600, Ulf Hansson wrote: A device may have specific HW constraints that must be obeyed to, before its corresponding PM domain (genpd) can be powered off - and vice verse at power on. These constraints can't be managed through the regular runtime PM based deployment f

Re: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH

2020-10-27 Thread Lina Iyer
Hi Anders, On Tue, Oct 27 2020 at 05:14 -0600, Anders Roxell wrote: When building allmodconfig leading to the following link error with CONFIG_QCOM_RPMH=y and CONFIG_QCOM_COMMAND_DB=m: aarch64-linux-gnu-ld: drivers/clk/qcom/clk-rpmh.o: in function `clk_rpmh_probe': drivers/clk/qcom/clk-rpmh.c:

Re: [PATCH] soc: qcom: QCOM_RPMH fix build with modular QCOM_RPMH

2020-10-28 Thread Lina Iyer
On Wed, Oct 28 2020 at 03:43 -0600, Anders Roxell wrote: On Tue, 27 Oct 2020 at 22:15, Lina Iyer wrote: Hi Anders, On Tue, Oct 27 2020 at 05:14 -0600, Anders Roxell wrote: >When building allmodconfig leading to the following link error with >CONFIG_QCOM_RPMH=y and CONFIG_QCOM_COMMAN

Re: [PATCH v3] PM: domains: Add support for PM domain on/off notifiers for genpd

2020-10-16 Thread Lina Iyer
mers that we are about to power off. */ + ret = __raw_notifier_call_chain(&genpd->power_notifiers, + GENPD_NOTIFY_PRE_OFF, NULL, -1, + &nr_calls); + ret = notifier_to_errno(ret); + if (ret) + goto busy; Nit: You could enclose this in

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-28 Thread Lina Iyer
On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2020-07-24 09:28:25) On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: >Hi Maulik/Lina, > >On 7/23/2020 11:36 PM, Stanimir Varbanov wrote: >>Hi Rajendra, >> >>After applying 2,

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-28 Thread Lina Iyer
On Tue, Jul 28 2020 at 13:51 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2020-07-28 09:52:12) On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2020-07-24 09:28:25) >> On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: >> >Hi Maulik/Lina, >

Re: [PATCH] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free

2020-07-23 Thread Lina Iyer
f the busy loop we currently have today. Cc: Douglas Anderson Cc: Maulik Shah Cc: Lina Iyer Signed-off-by: Stephen Boyd --- drivers/soc/qcom/rpmh-internal.h | 2 + drivers/soc/qcom/rpmh-rsc.c | 101 --- 2 files changed, 41 insertions(+), 62 deletions(-) diff --git

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-24 Thread Lina Iyer
On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: Hi Maulik/Lina, On 7/23/2020 11:36 PM, Stanimir Varbanov wrote: Hi Rajendra, After applying 2,3 and 4/5 patches on linaro-integration v5.8-rc2 I see below messages on db845: qcom-venus aa0.video-codec: dev_pm_opp_set_rate: failed t

Re: [PATCH] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free

2020-07-24 Thread Lina Iyer
On Fri, Jul 24 2020 at 14:01 -0600, Stephen Boyd wrote: Quoting Doug Anderson (2020-07-24 12:49:56) Hi, On Fri, Jul 24, 2020 at 12:44 PM Stephen Boyd wrote: I think Lina was alluding to this earlier in this thread. I was thinking more of threaded irq handler than a kthread to post the reques

Re: [PATCH] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free

2020-07-24 Thread Lina Iyer
On Fri, Jul 24 2020 at 14:11 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2020-07-24 13:08:41) On Fri, Jul 24 2020 at 14:01 -0600, Stephen Boyd wrote: >Quoting Doug Anderson (2020-07-24 12:49:56) >> Hi, >> >> On Fri, Jul 24, 2020 at 12:44 PM Stephen Boyd wrote: >I th

Re: [PATCH 3/3] PM / Domains: Add support for PM domain on/off notifiers for genpd

2020-09-09 Thread Lina Iyer
-Original Message- Date: Wed, 19 Aug 2020 12:40:57 +0200 From: Ulf Hansson To: "Rafael J . Wysocki" , Kevin Hilman , linux...@vger.kernel.org Cc: Sudeep Holla , Lorenzo Pieralisi , Daniel Lezcano , Lina Iyer , Lukasz Luba , Vincent Guittot , Stephen Boyd , Bjorn Andersson

Re: [PATCH v4 00/10] support wakeup capable GPIOs

2019-04-15 Thread Lina Iyer
On Mon, Apr 15 2019 at 06:43 -0600, Marc Zyngier wrote: On 13/03/2019 21:18, Lina Iyer wrote: Hi all, This series adds support for wakeup capable GPIOs. It is based on Thierry's hiearchical GPIO domains. This approach is based on Stephen's idea [1]. The SoC that is used for this deve

Re: [PATCH v2 0/8] qcom: support wakeup capable GPIOs

2019-01-30 Thread Lina Iyer
On Mon, Jan 28 2019 at 07:19 -0700, Linus Walleij wrote: On Thu, Jan 24, 2019 at 9:22 PM Lina Iyer wrote: This is a bug fix submission of the v1 posted here [1]. The discussion on how to represent the wakeup-parent interrupt controller is on-going [2] here. The reiew comments in [1], from

Re: [PATCH v2 5/8] drivers: pinctrl: msm: setup GPIO irqchip hierarchy

2019-01-31 Thread Lina Iyer
On Wed, Jan 30 2019 at 15:45 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2019-01-24 12:22:02) To allow GPIOs to wakeup the system from suspend or deep idle, the wakeup capable GPIOs are setup in hierarchy with interrupts from the wakeup-parent irqchip. In older SoC's, the TLMM will han

Re: [RFC][PATCH 3/5] irqchip: Allow QCOM_PDC to be loadable as a perment module

2020-06-16 Thread Lina Iyer
driver hooks explicitly. Thanks to Saravana for his help on pointing out the IRQCHIP_DECLARE issue and guidance on a solution. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Lina Iyer Cc: Saravana Kannan Cc

Re: [PATCH v3 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-20 Thread Lina Iyer
On Mon, Feb 19 2018 at 20:31 +, Rob Herring wrote: On Fri, Feb 16, 2018 at 03:46:14PM -0700, Lina Iyer wrote: From: Mahesh Sivasubramanian +The devicetree representation of the command DB driver should be: Need to state this is a child of /reserved-memory Yes, ofcourse. Will fix

Re: [PATCH v2 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-02-20 Thread Lina Iyer
Hi Evan, Thanks for your review. On Fri, Feb 16 2018 at 23:51 +, Evan Green wrote: Hello Lina, On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: Sleep and wake requests are sent when the application processor subsystem of the SoC is entering deep sleep states like in suspend. These

Re: [PATCH v2 07/10] drivers: qcom: rpmh: cache sleep/wake state requests

2018-02-22 Thread Lina Iyer
On Wed, Feb 21 2018 at 22:07 +, Evan Green wrote: Hi Lina, On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: [...] +static struct cache_req *cache_rpm_request(struct rpmh_client *rc, + enum rpmh_state state

Re: [PATCH v2 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-02-22 Thread Lina Iyer
On Wed, Feb 21 2018 at 23:25 +, Evan Green wrote: Hello Lina, On Thu, Feb 15, 2018 at 9:35 AM, Lina Iyer wrote: Platform drivers need make a lot of resource state requests at the same time, say, at the start or end of an usecase. It can be quite inefficient to send each request separately

[PATCH v2 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-02-15 Thread Lina Iyer
. rpmh_write_batch() is a blocking call that can be used to send multiple RPMH command sets. Each RPMH command set is set asynchronously and the API blocks until all the command sets are complete and receive their tx_done callbacks. Signed-off-by: Lina Iyer --- drivers/soc/qcom/rpmh.c | 150

[PATCH v2 06/10] drivers: qcom: rpmh-rsc: allow invalidation of sleep/wake TCS

2018-02-15 Thread Lina Iyer
Allow sleep and wake commands to be cleared from the respective TCSes, so that they can be re-populated. Signed-off-by: Lina Iyer --- drivers/soc/qcom/rpmh-internal.h | 1 + drivers/soc/qcom/rpmh-rsc.c | 46 2 files changed, 47 insertions(+) diff

[PATCH v2 00/10] drivers/qcom: add RPMH communication support

2018-02-15 Thread Lina Iyer
e consider reviewing this patchset. v1: https://www.spinics.net/lists/devicetree/msg210980.html Lina Iyer (10): drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE dri

[PATCH v2 10/10] drivers: qcom: rpmh-rsc: allow active requests from wake TCS

2018-02-15 Thread Lina Iyer
the wake TCS is being repurposed to send active request, hence the sleep and wake TCSes be invalidated before the active request is sent. Signed-off-by: Lina Iyer --- drivers/soc/qcom/rpmh-rsc.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom

[PATCH v2 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-02-15 Thread Lina Iyer
Log sent RPMH requests and interrupt responses in FTRACE. Cc: Steven Rostedt Signed-off-by: Lina Iyer --- drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/rpmh-rsc.c | 6 +++ drivers/soc/qcom/trace-rpmh.h | 89 +++ 3 files changed, 96 insertions

[PATCH v2 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously

2018-02-15 Thread Lina Iyer
in the context of the controller's thread and frees the allocated memory. This API allows RPMH requests from atomic contexts as well. Signed-off-by: Lina Iyer --- drivers/soc/qcom/rpmh.c | 52 + include/soc/qcom/rpmh.h | 8 2 files ch

[PATCH v2 07/10] drivers: qcom: rpmh: cache sleep/wake state requests

2018-02-15 Thread Lina Iyer
PM activity and may be called from the system PM drivers when the system is entering suspend or deeper sleep modes during cpuidle. Also allow invalidating the cached requests, so they may be re-populated again. Signed-off-by: Lina Iyer --- drivers/soc/qcom/rpmh.c | 213

[PATCH v2 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-02-15 Thread Lina Iyer
Add device binding documentation for Qualcomm Technology Inc's RPMH RSC driver. The hardware block is used for communicating resource state requests for shared resources. Cc: devicet...@vger.kernel.org Signed-off-by: Lina Iyer --- .../devicetree/bindings/arm/msm/rpmh-rsc.txt

[PATCH v2 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-02-15 Thread Lina Iyer
are dedicated for each type of requests. Control TCS are used to provide specific information to the controller. Signed-off-by: Lina Iyer --- drivers/soc/qcom/Kconfig| 10 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/rpmh-internal.h| 86

[PATCH v2 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-02-15 Thread Lina Iyer
used to send active state requests. Signed-off-by: Lina Iyer --- drivers/soc/qcom/Makefile| 4 +- drivers/soc/qcom/rpmh-internal.h | 2 + drivers/soc/qcom/rpmh-rsc.c | 7 ++ drivers/soc/qcom/rpmh.c | 257 +++ include/soc/qcom/rpmh.h

[PATCH v2 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-02-15 Thread Lina Iyer
at the time of writing. The TCS are triggered by the firmware after the last of the CPUs has executed its WFI. Since these requests may come in different batches of requests, it is job of this controller driver to find arrange the requests into the available TCSes. Signed-off-by: Lina Iyer

Re: [PATCH v2 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-15 Thread Lina Iyer
On Wed, Feb 14 2018 at 19:34 +, Bjorn Andersson wrote: On Thu 08 Feb 11:51 PST 2018, Lina Iyer wrote: From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory

Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-15 Thread Lina Iyer
On Mon, Feb 12 2018 at 13:40 +, Thomas Gleixner wrote: On Fri, 9 Feb 2018, Lina Iyer wrote: +enum pdc_irq_config_bits { + PDC_POLARITY_LOW= 0, + PDC_FALLING_EDGE= 2, + PDC_POLARITY_HIGH = 4, + PDC_RISING_EDGE = 6, + PDC_DUAL_EDGE

Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-15 Thread Lina Iyer
On Thu, Feb 15 2018 at 20:24 +, Thomas Gleixner wrote: On Thu, 15 Feb 2018, Lina Iyer wrote: On Mon, Feb 12 2018 at 13:40 +, Thomas Gleixner wrote: > On Fri, 9 Feb 2018, Lina Iyer wrote: > > +enum pdc_irq_config_bits { > > + PDC_POLARITY_LOW= 0, > > +

Re: [PATCH v2 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-02-15 Thread Lina Iyer
On Thu, Feb 15 2018 at 19:57 +, Steven Rostedt wrote: On Thu, 15 Feb 2018 10:35:00 -0700 Lina Iyer wrote: @@ -298,6 +303,7 @@ static void __tcs_buffer_write(struct rsc_drv *drv, int m, int n, write_tcs_reg(drv, RSC_DRV_CMD_MSGID, m, n + i, msgid

Re: [PATCH v2 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-02-15 Thread Lina Iyer
Hi Steve, On Thu, Feb 15 2018 at 17:35 +, Lina Iyer wrote: Log sent RPMH requests and interrupt responses in FTRACE. Cc: Steven Rostedt Signed-off-by: Lina Iyer --- drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/rpmh-rsc.c | 6 +++ drivers/soc/qcom/trace-rpmh.h | 89

Re: [PATCH v2 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-02-15 Thread Lina Iyer
On Thu, Feb 15 2018 at 20:51 +, Steven Rostedt wrote: On Thu, 15 Feb 2018 20:41:18 + Lina Iyer wrote: >--- a/drivers/soc/qcom/Makefile >+++ b/drivers/soc/qcom/Makefile >@@ -1,4 +1,5 @@ > # SPDX-License-Identifier: GPL-2.0 >+CFLAGS_trace-rpmh.o := -I$(src) I did this he

[PATCH v7 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-15 Thread Lina Iyer
.com/linux-kernel@vger.kernel.org/msg1600634.html v3: https://lkml.org/lkml/2018/2/6/595 v4: https://www.spinics.net/lists/linux-arm-msm/msg32906.html v5: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1605500.html v6: https://lkml.org/lkml/2018/2/9/545 Lina Iyer (2): drivers: ir

[PATCH v7 2/2] dt-bindings/interrupt-controller: pdc: describe PDC device binding

2018-02-15 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH v7 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-15 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 311 + 3 files changed, 321 insertions(+) create mode 1

[PATCH v2 1/2] drivers: qcom: add command DB driver

2018-02-08 Thread Lina Iyer
SoC and the platform are made available in the shared memory. Drivers can query this information using predefined strings. Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- drivers/soc/qcom/Kconfig | 9 ++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/cmd-db.c | 321

[PATCH v2 0/2] drivers/qcom: add Command DB support

2018-02-08 Thread Lina Iyer
available for Linux. A pre-defined string is used as a key into an entry in the database. Generally, platform drivers query the database only at init to get the information they need. [v1]: https://www.spinics.net/lists/linux-arm-msm/msg32462.html Lina Iyer (2): drivers: qcom: add command DB

[PATCH v2 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-08 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory. Cc: devicet...@vger.kernel.org Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer

Re: [PATCH v2 1/2] drivers: qcom: add command DB driver

2018-02-08 Thread Lina Iyer
On Thu, Feb 08 2018 at 20:48 +, Jordan Crouse wrote: On Thu, Feb 08, 2018 at 12:51:53PM -0700, Lina Iyer wrote: From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in

[PATCH v5 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-08 Thread Lina Iyer
kernel.org/msg1600634.html v3: https://lkml.org/lkml/2018/2/6/595 v4: https://www.spinics.net/lists/linux-arm-msm/msg32906.html Lina Iyer (2): drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs dt-bindings/interrupt-controller: pdc: descibe PDC device binding .../bindings/interrupt-

[PATCH v5 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-08 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH v5 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-08 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 312 + 3 files changed, 322 insertions(+) create mode 1

[PATCH v6 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-09 Thread Lina Iyer
//www.mail-archive.com/linux-kernel@vger.kernel.org/msg1600634.html v3: https://lkml.org/lkml/2018/2/6/595 v4: https://www.spinics.net/lists/linux-arm-msm/msg32906.html Lina Iyer (2): drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs dt-bindings/interrupt-controller: pdc: d

[PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-09 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 314 + 3 files changed, 324 insertions(+) create mode 1

[PATCH v6 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-09 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-02 Thread Lina Iyer
From: Archana Sathyakumar Log key PDC pin configuration in FTRACE. Cc: Steven Rostedt Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/qcom-pdc.c | 7 ++ include/trace/events/pdc.h | 55 ++ 2 files changed, 62

[PATCH RFC v2 0/3] irqchip: qcom: add support for PDC interrupt controller

2018-02-02 Thread Lina Iyer
his series adds support for the PDC's interrupt controller. Please consider reviewing these patches. RFC v1: https://patchwork.kernel.org/patch/10180857/ Lina Iyer (3): drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs dt-bindings/interrupt-controller: pdc: descibe PDC

[PATCH RFC v2 2/3] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-02 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH RFC v2 1/3] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-02 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 326 + 3 files changed, 336 insertions(+) create mode 1

Re: [PATCH RFC v2 1/3] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-02 Thread Lina Iyer
On Fri, Feb 02 2018 at 16:21 +, Marc Zyngier wrote: Hi Lina, On 02/02/18 14:21, Lina Iyer wrote: From : Archana Sathyakumar The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an interrupt controller along with other domain control functions to handle interrupt related

Re: [PATCH RFC v2 1/3] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-02 Thread Lina Iyer
All valid comments. Will fix them all in the next rev. Thanks Thomas. -- Lina On Fri, Feb 02 2018 at 15:37 +, Thomas Gleixner wrote: On Fri, 2 Feb 2018, Lina Iyer wrote: +static inline void pdc_enable_intr(struct irq_data *d, bool on) +{ + int pin_out = d->hwirq; + u32 in

Re: [PATCH RFC v2 2/3] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-02 Thread Lina Iyer
On Fri, Feb 02 2018 at 16:28 +, Marc Zyngier wrote: On 02/02/18 14:21, Lina Iyer wrote: From: Archana Sathyakumar Add device binding documentation for the PDC Interrupt controller on QCOM SoC's like the SDM845. The interrupt-controller can be used to sense edge low interrupts and w

Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-02 Thread Lina Iyer
On Fri, Feb 02 2018 at 16:32 +, Steven Rostedt wrote: On Fri, 2 Feb 2018 07:22:00 -0700 Lina Iyer wrote: Hi Lina, This looks really good. I have one nit below. From: Archana Sathyakumar Log key PDC pin configuration in FTRACE. Cc: Steven Rostedt Signed-off-by: Archana Sathyakumar

Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-02 Thread Lina Iyer
On Fri, Feb 02 2018 at 15:57 +, Thomas Gleixner wrote: On Fri, 2 Feb 2018, Lina Iyer wrote: +++ b/include/trace/events/pdc.h @@ -0,0 +1,55 @@ +/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify

Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-05 Thread Lina Iyer
On Fri, Feb 02 2018 at 23:02 +, Lina Iyer wrote: On Fri, Feb 02 2018 at 15:57 +, Thomas Gleixner wrote: On Fri, 2 Feb 2018, Lina Iyer wrote: +++ b/include/trace/events/pdc.h @@ -0,0 +1,55 @@ +/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. + * + * This program is

Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE

2018-02-05 Thread Lina Iyer
Hi Steve, On Fri, Feb 02 2018 at 14:22 +, Lina Iyer wrote: From: Archana Sathyakumar Log key PDC pin configuration in FTRACE. Cc: Steven Rostedt Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/qcom-pdc.c | 7 ++ include/trace/events/pdc.h | 55

[PATCH v3 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-16 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory. Cc: devicet...@vger.kernel.org Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer

[PATCH v3 0/2] drivers/qcom: add Command DB support

2018-02-16 Thread Lina Iyer
drivers query the database only at init to get the information they need. [v1]: https://www.spinics.net/lists/linux-arm-msm/msg32462.html [v2]: https://lkml.org/lkml/2018/2/8/588 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs .../devicetree

[PATCH v3 1/2] drivers: qcom: add command DB driver

2018-02-16 Thread Lina Iyer
SoC and the platform are made available in the shared memory. Drivers can query this information using predefined strings. Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 ++ drivers/soc/qcom/Makefile | 1

Re: [PATCH v2 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-02-16 Thread Lina Iyer
Thanks Evan for your review. On Fri, Feb 16 2018 at 21:30 +, Evan Green wrote: Hi Lina, On Thu, Feb 15, 2018 at 9:34 AM, Lina Iyer wrote: + +/** + * tcs_response: Response object for a request Can you embed the acronym definition, ie: tcs_response: Responses for a Trigger Command Set

Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-12 Thread Lina Iyer
On Mon, Feb 12 2018 at 13:40 +, Thomas Gleixner wrote: On Fri, 9 Feb 2018, Lina Iyer wrote: +/* + * GIC does not handle falling edge or active low. To allow falling edge and + * active low interrupts to be handled at GIC, PDC has an inverter that inverts + * falling edge into a rising edge

[PATCH v4 2/2] dt-bindings: introduce Command DB for QCOM SoCs

2018-02-26 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB provides information on shared resources like clocks, regulators etc., probed at boot by the remote subsytem and made available in shared memory. Cc: devicet...@vger.kernel.org Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- Changes

[PATCH v4 0/2] drivers/qcom: add Command DB support

2018-02-26 Thread Lina Iyer
init to get the information they need. [v1]: https://www.spinics.net/lists/linux-arm-msm/msg32462.html [v2]: https://lkml.org/lkml/2018/2/8/588 [v3]: https://lkml.org/lkml/2018/2/16/842 Lina Iyer (2): drivers: qcom: add command DB driver dt-bindings: introduce Command DB for QCOM SoCs

[PATCH v4 1/2] drivers: qcom: add command DB driver

2018-02-26 Thread Lina Iyer
SoC and the platform are made available in the shared memory. Drivers can query this information using predefined strings. Signed-off-by: Mahesh Sivasubramanian Signed-off-by: Lina Iyer --- drivers/of/platform.c | 1 + drivers/soc/qcom/Kconfig | 9 ++ drivers/soc/qcom/Makefile | 1

[PATCH v3 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-06 Thread Lina Iyer
interrupt controller. Please consider reviewing these patches. RFC v1: https://patchwork.kernel.org/patch/10180857/ RFC v2: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1600634.html Lina Iyer (2): drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs dt-bindings

[PATCH v3 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-06 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH v3 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-06 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 302 + 3 files changed, 312 insertions(+) create mode 1

Re: [PATCH v3 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-06 Thread Lina Iyer
On Tue, Feb 06 2018 at 20:34 +, Marc Zyngier wrote: On Tue, 06 Feb 2018 18:09:04 +, Lina Iyer wrote: +#define PDC_MAX_IRQS 126 From v2: "Is that an absolute, architectural maximum? Or should it come from the DT (being the sum of all ranges that are provided by thi

[PATCH v4 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-07 Thread Lina Iyer
ff-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- .../bindings/interrupt-controller/qcom,pdc.txt | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt diff --git a/Documentation/devicetree/bin

[PATCH v4 0/2] irqchip: qcom: add support for PDC interrupt controller

2018-02-07 Thread Lina Iyer
kernel.org/msg1600634.html v3: https://lkml.org/lkml/2018/2/6/595 Lina Iyer (2): drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs dt-bindings/interrupt-controller: pdc: descibe PDC device binding .../bindings/interrupt-controller/qcom,pdc.txt | 80 ++ drivers/irqch

[PATCH v4 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-07 Thread Lina Iyer
GIC may wake up the processor. Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/Kconfig| 9 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/qcom-pdc.c | 311 + 3 files changed, 321 insertions(+) create mode 1

Re: [PATCH v4 2/2] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-02-07 Thread Lina Iyer
On Wed, Feb 07 2018 at 16:43 +, Bjorn Andersson wrote: On Wed 07 Feb 07:49 PST 2018, Lina Iyer wrote: diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt [..] +Example: [..] + wake

Re: [PATCH v4 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-07 Thread Lina Iyer
On Wed, Feb 07 2018 at 16:43 +, Marc Zyngier wrote: On 07/02/18 15:49, Lina Iyer wrote: From : Archana Sathyakumar The Power Domain Controller (PDC) on QTI SoCs like SDM845 houses an interrupt controller along with other domain control functions to handle interrupt related functions like

Re: [PATCH v2 00/17] Make rpmsg a framework

2016-09-12 Thread Lina Iyer
Hi Bjorn, On Thu, Sep 01 2016 at 16:28 -0600, Bjorn Andersson wrote: This series splits the virtio rpmsg bus driver into a rpmsg bus and a virtio backend/wireformat. As we discussed the Qualcomm SMD implementation a couple of years back people suggested that I should make it "a rpmsg thingie".

Re: [PATCH v2 00/17] Make rpmsg a framework

2016-09-12 Thread Lina Iyer
On Mon, Sep 12 2016 at 10:52 -0600, Lina Iyer wrote: Hi Bjorn, On Thu, Sep 01 2016 at 16:28 -0600, Bjorn Andersson wrote: This series splits the virtio rpmsg bus driver into a rpmsg bus and a virtio backend/wireformat. As we discussed the Qualcomm SMD implementation a couple of years back

<    1   2   3   4   5   6