Re: [PATCH v7 2/7] OPP: Add helpers for reading the binding properties

2020-05-04 Thread Sibi Sankar
if (ret < 0) { - /* "opp-hz" is optional for devices like power domains. */ - if (!opp_table->is_genpd) { - dev_err(dev, "%s: opp-hz not found\n", __func__); - goto free_opp; - } + if

Re: [PATCH v7 5/7] OPP: Add sanity checks in _read_opp_key()

2020-05-04 Thread Sibi Sankar
ation. Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v7: New patch. ... -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.

Re: [PATCH v7 7/7] cpufreq: dt: Add support for interconnect bandwidth scaling

2020-05-04 Thread Sibi Sankar
Hey Georgi, On 2020-04-24 21:24, Georgi Djakov wrote: In addition to clocks and regulators, some devices can scale the bandwidth of their on-chip interconnect - for example between CPU and DDR memory. Add support for that, so that platforms which support it can make use of it. Signed-off-by:

Re: [PATCH v7 6/7] OPP: Update the bandwidth on OPP frequency changes

2020-05-04 Thread Sibi Sankar
both. Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v7: * Addressed review comments from Viresh. v2: https://lore.kernel.org/r/20190423132823.7915-5-georgi.dja...@linaro.org drivers/opp/core.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/driver

Re: [PATCH v7 3/7] interconnect: Add of_icc_get_by_index() helper function

2020-05-04 Thread Sibi Sankar
On 2020-04-24 21:24, Georgi Djakov wrote: This is the same as the traditional of_icc_get() function, but the difference is that it takes index as an argument, instead of name. Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v7: * Addressed review comments from Sibi. * Re-based

Re: [PATCH v7 4/7] OPP: Add support for parsing interconnect bandwidth

2020-05-04 Thread Sibi Sankar
Hey Georgi, Apart from the Matthias's comments ran into a few issues during testing. On 2020-04-24 21:24, Georgi Djakov wrote: The OPP bindings now support bandwidth values, so add support to parse it from device tree and store it into the new dev_pm_opp_icc_bw struct, which is part of the de

Re: [PATCH v4 04/12] OPP: Add and export helper to update voltage

2020-05-05 Thread Sibi Sankar
Hey Viresh, Thanks for taking time to review the series. On 2020-05-05 10:15, Viresh Kumar wrote: On 05-05-20, 01:52, Sibi Sankar wrote: Add and export 'dev_pm_opp_update_voltage' to update the voltage of an opp for a given frequency. This will be useful to update the opps with vol

Re: [PATCH v4 10/12] OPP: Add support for setting interconnect-tags

2020-05-05 Thread Sibi Sankar
On 2020-05-05 10:26, Viresh Kumar wrote: On 05-05-20, 01:52, Sibi Sankar wrote: Add support for setting tags on icc paths associated with the opp_table. Signed-off-by: Sibi Sankar --- drivers/opp/of.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) Maybe

Re: [PATCH v4 06/12] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-05-05 Thread Sibi Sankar
On 2020-05-05 10:20, Viresh Kumar wrote: On 05-05-20, 01:52, Sibi Sankar wrote: Add support to parse optional OPP table attached to the cpu node when the OPP bandwidth values are populated. This allows for scaling of DDR/L3 bandwidth levels with frequency change. Signed-off-by: Sibi Sankar

Re: [PATCH v4 07/12] OPP: Add and export helper to get icc path count

2020-05-05 Thread Sibi Sankar
On 2020-05-05 03:33, Saravana Kannan wrote: On Mon, May 4, 2020 at 1:24 PM Sibi Sankar wrote: Add and export 'dev_pm_opp_get_path_count' to get the icc path count associated with the device. This is not related to OPP. You should add this helper function to ICC framework? yes it

Re: [PATCH v5 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-06-01 Thread Sibi Sankar
On 2020-06-01 16:31, Viresh Kumar wrote: On 29-05-20, 17:00, Sibi Sankar wrote: > > +static int qcom_cpufreq_update_opp(struct device *cpu_dev, > > +unsigned long freq_khz, > > +unsigned long volt) > > +{

[PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop

2020-06-02 Thread Sibi Sankar
uot;) Cc: sta...@vger.kernel.org Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5.c b/drivers/remoteproc/qcom_q6v5.c index 111a442c993c4..fd6fd36268d93 100644 --- a/drivers/remoteproc/qcom_q6v5.c +++ b/drive

[PATCH 2/2] remoteproc: qcom_q6v5_mss: Remove redundant running state

2020-06-02 Thread Sibi Sankar
Remove the redundant running state, as an equivalent is maintained in the common q6v5 resource handling helpers. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc

Re: [PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop

2020-06-02 Thread Sibi Sankar
Evan, Thanks for taking time to review the series. On 2020-06-02 23:14, Evan Green wrote: On Tue, Jun 2, 2020 at 9:33 AM Sibi Sankar wrote: Sometimes the stop triggers a watchdog rather than a stop-ack. Update the running state to false on requesting stop to skip the watchdog instead. Error

Re: [PATCH V1 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-03 Thread Sibi Sankar
Hey Pradeep, Thanks for the patch. On 2020-06-03 14:39, Pradeep P V K wrote: Interconnect bandwidth scaling support is now added as a part of OPP [1]. So, make sure interconnect driver is ready before handling interconnect scaling. This change is based on [1] [Patch v8] Introduce OPP bandwidth

Re: [PATCH V1 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-04 Thread Sibi Sankar
On 2020-06-04 16:43, p...@codeaurora.org wrote: Hi Sibi, Thanks for the review!! On 2020-06-03 17:22, Sibi Sankar wrote: Hey Pradeep, Thanks for the patch. On 2020-06-03 14:39, Pradeep P V K wrote: Interconnect bandwidth scaling support is now added as a part of OPP [1]. So, make sure

Re: [PATCH] wireless: ath10k: Return early in ath10k_qmi_event_server_exit() to avoid hard crash on reboot

2020-06-04 Thread Sibi Sankar
On 2020-06-03 15:37, govi...@codeaurora.org wrote: Hi Mani, On 2020-06-03 05:57, Manivannan Sadhasivam wrote: On Tue, Jun 02, 2020 at 01:04:26PM -0700, Brian Norris wrote: On Tue, Jun 2, 2020 at 12:40 PM John Stultz wrote: > On Tue, Jun 2, 2020 at 12:16 PM Brian Norris wrote: > > On Mon, Ju

Re: [PATCH V2 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-04 Thread Sibi Sankar
On 2020-06-04 22:39, Matthias Kaehlcke wrote: On Thu, Jun 04, 2020 at 04:44:42PM +0530, Pradeep P V K wrote: Interconnect bandwidth scaling support is now added as a part of OPP [1]. So, make sure interconnect driver is ready before handling interconnect scaling. This change is based on [1] [Pa

Re: [PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop

2020-06-04 Thread Sibi Sankar
On 2020-06-04 04:03, Evan Green wrote: On Tue, Jun 2, 2020 at 10:29 PM Sibi Sankar wrote: Evan, Thanks for taking time to review the series. On 2020-06-02 23:14, Evan Green wrote: > On Tue, Jun 2, 2020 at 9:33 AM Sibi Sankar > wrote: >> >> Sometimes the stop triggers a wa

Re: [PATCH V3 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support

2020-06-05 Thread Sibi Sankar
that's what we are actually doing Reviewed-by: Sibi Sankar + ret = dev_pm_opp_of_find_icc_paths(&pdev->dev, NULL); + if (ret) + goto bus_clk_disable; + msm_host->opp_table = dev_pm_opp_set_clkname(&pdev->dev, "core");

[PATCH v6 2/5] cpufreq: blacklist SC7180 in cpufreq-dt-platdev

2020-06-05 Thread Sibi Sankar
Add SC7180 to cpufreq-dt-platdev blacklist since the actual scaling is handled by the 'qcom-cpufreq-hw' driver. Reviewed-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Signed-off-by: Sibi Sankar --- v6: * No change v5: * Picked up R-b from Amit v4: * Updated commit message

[PATCH v6 3/5] OPP: Add and export helper to set bandwidth

2020-06-05 Thread Sibi Sankar
Add and export 'dev_pm_opp_set_bw' to set the bandwidth levels associated with an OPP. Signed-off-by: Sibi Sankar --- v6: * Pass NULL to _set_opp_bw v5: https://lkml.org/lkml/2020/5/27/7 * Rework the patch based on ^^ v4: https://patchwork.kernel.org/patch/11019737/ * Pass dev

[PATCH v6 0/5] DDR/L3 Scaling support on SDM845 and SC7180 SoCs

2020-06-05 Thread Sibi Sankar
ps://lore.kernel.org/lkml/20190410102429.r6j6brm5kspmqxc3@vireshk-i7/ https://lore.kernel.org/lkml/20190410112516.gnh77jcwawvld6et@vireshk-i7/ * Dropped cpufreq-map passive governor Sibi Sankar (5): cpufreq: blacklist SDM845 in cpufreq-dt-platdev cpufreq: blacklist SC7180 in cpufreq-dt-platdev O

[PATCH v6 1/5] cpufreq: blacklist SDM845 in cpufreq-dt-platdev

2020-06-05 Thread Sibi Sankar
Add SDM845 to cpufreq-dt-platdev blacklist since the actual scaling is handled by the 'qcom-cpufreq-hw' driver. Reviewed-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Signed-off-by: Sibi Sankar --- v6: * No change v5: * Picked up R-b from Amit v4: * Updated commit message

[PATCH v6 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-06-05 Thread Sibi Sankar
Add support to parse optional OPP table attached to the cpu node when the OPP bandwidth values are populated. This allows for scaling of DDR/L3 bandwidth levels with frequency change. Signed-off-by: Sibi Sankar --- v6: * Add global flag to distinguish between voltage update and opp add. Use

[PATCH v6 5/5] cpufreq: qcom: Disable fast switch when scaling DDR/L3

2020-06-05 Thread Sibi Sankar
Disable fast switch when the opp-tables required for scaling DDR/L3 are populated. Signed-off-by: Sibi Sankar --- v6: * No change v5: * Drop dev_pm_opp_get_path_count [Saravana] drivers/cpufreq/qcom-cpufreq-hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH v6] iommu/arm-smmu-qcom: Request direct mapping for modem device

2020-05-15 Thread Sibi Sankar
Hey Will, On 2020-05-11 23:25, Sibi Sankar wrote: The modem remote processor has two access paths to DDR. One path is directly connected to DDR and another path goes through an SMMU. The SMMU path is configured to be a direct mapping because it's used by various peripherals in the

Re: R: [RFC PATCH v3 0/2] Add Krait Cache Scaling support

2020-09-03 Thread Sibi Sankar
On 2020-09-03 12:23, Viresh Kumar wrote: On 31-08-20, 09:41, ansuels...@gmail.com wrote: On 31-08-20, Sibi wrote: > On 2020-08-24 16:10, Viresh Kumar wrote: > > +Vincent/Saravana/Sibi > > > > On 21-08-20, 16:00, Ansuel Smith wrote: > >> This adds Krait Cache scaling support using the cpufreq not

Re: [PATCH] soc: qcom: initialize local variable

2020-08-25 Thread Sibi Sankar
an earlier loop. However req is a stack variable and its initial value is undefined. So initialize req to 0. Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Tom, Thanks for the patch. Reviewed-by: Sibi Sankar Signed-off-by: Tom Rix --- driver

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-17 Thread Sibi Sankar
On 2020-08-17 14:14, Ulf Hansson wrote: On Thu, 13 Aug 2020 at 19:26, Sibi Sankar wrote: On 2020-08-13 18:04, Ulf Hansson wrote: > On Wed, 12 Aug 2020 at 19:03, Sibi Sankar wrote: >> >> Uffe, >> Thanks for taking time to review the >> series! >> >>

Re: [RFC PATCH v3 0/2] Add Krait Cache Scaling support

2020-08-30 Thread Sibi Sankar
On 2020-08-24 16:10, Viresh Kumar wrote: +Vincent/Saravana/Sibi On 21-08-20, 16:00, Ansuel Smith wrote: This adds Krait Cache scaling support using the cpufreq notifier. I have some doubt about where this should be actually placed (clk or cpufreq)? Also the original idea was to create a dedica

Re: [PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-13 Thread Sibi Sankar
On 2020-08-13 18:04, Ulf Hansson wrote: On Wed, 12 Aug 2020 at 19:03, Sibi Sankar wrote: Uffe, Thanks for taking time to review the series! On 2020-08-12 15:15, Ulf Hansson wrote: > On Tue, 11 Aug 2020 at 21:03, Sibi Sankar wrote: >> >> This is for power domains which needs

[PATCH 2/2] arm64: dts: qcom: sc7180: Add DDR/L3 votes for the pro variant

2020-10-15 Thread Sibi Sankar
Add DDR/L3 bandwidth votes for the pro variant of SC7180 SoC, as it support frequencies upto 2.5 GHz. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom

[PATCH] arm64: dts: qcom: sc7180-trogdor: Fixup modem memory region

2020-10-15 Thread Sibi Sankar
The modem firmware memory requirements vary between 32M/140M on no-lte/lte skus respectively, so fixup the modem memory region to reflect the requirements. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sc7180-trogdor-lte-sku.dtsi | 4 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi

[PATCH 1/2] arm64: dts: qcom: sc7180-lite: Tweak DDR/L3 scaling on SC7180-lite

2020-10-15 Thread Sibi Sankar
Tweak the DDR/L3 bandwidth votes on the lite variant of the SC7180 SoC since the gold cores only support frequencies upto 2.1 GHz. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sc7180-lite.dtsi | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 arch/arm64/boot

[PATCH v2 1/2] PM / Domains: Add GENPD_FLAG_NO_SUSPEND/RESUME flags

2020-08-21 Thread Sibi Sankar
starting its sleep sequence. The application processor powers off these power domains only if the co-processor has crashed or powered off and remains unaltered during system suspend/resume. Signed-off-by: Sibi Sankar --- V2: * Add more info in commit msg and description [Uffe/Kevin/Stephen

[PATCH v2 2/2] soc: qcom: aoss: Use both GENPD_FLAG_NO_SUSPEND/RESUME flags

2020-08-21 Thread Sibi Sankar
model this behavior. Signed-off-by: Sibi Sankar --- V2: * Use the renamed flags * Drop R-b/T-b drivers/soc/qcom/qcom_aoss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index ed2c687c16b31..da763ac6bca2f 100644 --- a/drivers/soc

Re: [PATCH v2] arm64: dts: qcom: sdm845: Add cpu OPP tables

2020-07-09 Thread Sibi Sankar
On 2020-07-09 19:59, Bjorn Andersson wrote: On Wed 08 Jul 19:22 PDT 2020, Steev Klimaszewski wrote: On 7/2/20 3:46 PM, Sibi Sankar wrote: > Add OPP tables required to scale DDR/L3 per freq-domain on SDM845 SoCs. > > Signed-off-by: Sibi Sankar > --- Hi Sibi, Bjorn asked me

Re: [PATCH 1/2] arm64: dts: qcom: sc7180-lite: Tweak DDR/L3 scaling on SC7180-lite

2020-11-10 Thread Sibi Sankar
On 2020-10-17 04:29, Doug Anderson wrote: Hi, On Thu, Oct 15, 2020 at 10:53 AM Sibi Sankar wrote: Tweak the DDR/L3 bandwidth votes on the lite variant of the SC7180 SoC since the gold cores only support frequencies upto 2.1 GHz. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom

Re: [PATCH 1/2] soc: qcom: aoss: Expose send for generic usecase

2020-11-11 Thread Sibi Sankar
Hey Chris, Thanks for the patch. On 2020-11-03 08:49, Chris Lew wrote: Not all upcoming usecases will have an interface to allow the aoss driver to hook onto. Expose the send api and create a get function to enable drivers to send their own messages to aoss. Signed-off-by: Chris Lew --- drive

[PATCH 2/2] remoteproc: qcom_q6v5_mss: map/unmap MBA region before/after use

2020-11-03 Thread Sibi Sankar
The application processor accessing the MBA region after assigning it to the remote Q6 would lead to an XPU violation. Fix this by un-mapping the MBA region post firmware copy and MBA text log dumps. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 37

[PATCH 1/2] remoteproc: qcom_q6v5_mss: Replace ioremap with memremap

2020-11-03 Thread Sibi Sankar
Fix the sparse warnings reported by the kernel test bot by replacing ioremap calls with memremap. Reported-by: kernel test robot Signed-off-by: Sibi Sankar --- I'll send out the patches to convert ioremap to memremap on other qc remoteproc drivers once I get a chance to test them. dr

Re: [PATCH 1/6] interconnect: Introduce xlate_extended() callback

2020-07-27 Thread Sibi Sankar
, but the phandle arguments could contain an additional data, such as tag information. Let's create another callback xlate_extended() for the cases where providers want also populate the tagging data. Signed-off-by: Georgi Djakov Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar --

Re: [PATCH 3/6] interconnect: qcom: sdm845: Replace xlate with xlate_extended

2020-07-27 Thread Sibi Sankar
On 2020-07-23 18:39, Georgi Djakov wrote: Use the qcom_icc_xlate_extended() in order to parse tags, that are specified as an additional arguments to the path endpoints in DT. Signed-off-by: Georgi Djakov Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar --- drivers/interconnect/qcom

Re: [PATCH 4/6] arm64: dts: qcom: sdm845: Increase the number of interconnect cells

2020-07-27 Thread Sibi Sankar
On 2020-07-23 18:39, Georgi Djakov wrote: Increase the number of interconnect-cells, as now we can include the tag information. The consumers can specify the path tag as an additional argument to the endpoints. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar https://patchwork.kernel.org

Re: [PATCH 2/6] interconnect: qcom: Implement xlate_extended() to parse tags

2020-07-27 Thread Sibi Sankar
_GPL(qcom_icc_set); +struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void *data) +{ + struct icc_node_data *ndata; + struct icc_node *node; + + if (!spec) + return ERR_PTR(-EINVAL); + you could probably skip ^^ check Tested-by: Sibi Sa

[PATCH v2 1/2] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-21 Thread Sibi Sankar
Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed-off-by: Sibi Sankar --- v2: * Use request_firmware_direct [Bjorn] * Use Bjorn's template to show if debug policy is present * Add size che

[PATCH v2 0/2] Add modem debug features

2020-07-21 Thread Sibi Sankar
size check to prevent memcpy out of bounds [Bjorn] * Don't dump logs in mba_reclaim path [Bjorn] * Move has_mba_logs check to q6v5_dump_mba_logs [Bjorn] * SDM845 mss was incorrectly marked to support mba logs * Drop patch 3 where mba text logs are added to imem for now Sibi Sankar (2):

[PATCH v2 2/2] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-21 Thread Sibi Sankar
On SC7180 the MBA firmware stores the bootup text logs in a 4K segment at the beginning of the MBA region. Add support to extract the logs which will be useful to debug mba boot/authentication issues. Signed-off-by: Sibi Sankar --- V2: * Don't dump logs in mba_reclaim path [Bjorn] *

Re: [PATCH] interconnect: Do not skip aggregation for disabled paths

2020-07-21 Thread Sibi Sankar
data. This outdated data may actually keep the path still enabled and prevent the device from going into lower power states. Reported-by: Atul Dhudase Fixes: 7d374b209083 ("interconnect: Add helpers for enabling/disabling a path") Signed-off-by: Georgi Djakov --- Reviewed-by: Sib

Re: [PATCH v1 2/4] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-14 Thread Sibi Sankar
On 2020-07-14 22:48, Mathieu Poirier wrote: On Thu, Jul 09, 2020 at 01:31:54PM -0700, Rishabh Bhatnagar wrote: From: Sibi Sankar In order to land inline coredump support for mss, the dump_segment function would need to support granularities less than the segment size. This is achieved by

Re: [PATCH v1 2/4] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-16 Thread Sibi Sankar
On 2020-07-14 22:48, Mathieu Poirier wrote: On Thu, Jul 09, 2020 at 01:31:54PM -0700, Rishabh Bhatnagar wrote: From: Sibi Sankar In order to land inline coredump support for mss, the dump_segment function would need to support granularities less than the segment size. This is achieved by

Re: [PATCH v7 3/4] remoteproc: Add inline coredump functionality

2020-07-16 Thread Sibi Sankar
function. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 11 ++- drivers/remoteproc/remoteproc_coredump.c | 160 +++ include/linux/remoteproc.h | 21 +++- 3 files changed, 166 insertions(+), 26

Re: [PATCH v3 1/7] dt-bindings: interconnect: single yaml file for RPMh interconnect drivers

2020-07-28 Thread Sibi Sankar
On 2020-07-28 08:08, Jonathan Marek wrote: These two bindings are almost identical, so combine them into one. This will make it easier to add the sm8150 and sm8250 interconnect bindings. Signed-off-by: Jonathan Marek Reviewed-by: Sibi Sankar --- .../{qcom,sdm845.yaml => qcom,rpmh.y

Re: [PATCH v3 2/7] dt-bindings: interconnect: Add Qualcomm SM8150 DT bindings

2020-07-28 Thread Sibi Sankar
On 2020-07-28 08:08, Jonathan Marek wrote: The Qualcomm SM8150 platform has several bus fabrics that could be controlled and tuned dynamically according to the bandwidth demand. Signed-off-by: Jonathan Marek Reviewed-by: Rob Herring Reviewed-by: Sibi Sankar --- .../bindings/interconnect

Re: [PATCH v3 3/7] dt-bindings: interconnect: Add Qualcomm SM8250 DT bindings

2020-07-28 Thread Sibi Sankar
On 2020-07-28 08:08, Jonathan Marek wrote: The Qualcomm SM8250 platform has several bus fabrics that could be controlled and tuned dynamically according to the bandwidth demand. Signed-off-by: Jonathan Marek Reviewed-by: Rob Herring Reviewed-by: Sibi Sankar --- .../bindings/interconnect

Re: [PATCH v3 4/7] interconnect: qcom: Add SM8150 interconnect provider driver

2020-07-28 Thread Sibi Sankar
and generated from downstream dts. Signed-off-by: Jonathan Marek Reviewed-by: Sibi Sankar --- drivers/interconnect/qcom/Kconfig | 10 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/sm8150.c | 635 + drivers/interconnect/qcom/sm8150.h

Re: [PATCH v3 5/7] interconnect: qcom: Add SM8250 interconnect provider driver

2020-07-28 Thread Sibi Sankar
and generated from downstream dts. Signed-off-by: Jonathan Marek Reviewed-by: Sibi Sankar --- drivers/interconnect/qcom/Kconfig | 10 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/sm8250.c | 651 + drivers/interconnect/qcom/sm8250.h

Re: [PATCH v3 6/7] arm64: dts: qcom: sm8150: add interconnect nodes

2020-07-28 Thread Sibi Sankar
;; + #interconnect-cells = <1>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + aggre2_noc: interconnect@170 { + compatible = "qcom,sm8150-aggre2-noc"; + re

Re: [PATCH v3 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-28 Thread Sibi Sankar
On 2020-07-28 08:08, Jonathan Marek wrote: Add the interconnect dts nodes for sm8250. Signed-off-by: Jonathan Marek Reviewed-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom

Re: [PATCH v2 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. On 2020-07-13 21:11, Jonathan Marek wrote: Add the interconnect dts nodes for sm8250. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 1 f

Re: [PATCH v2 6/7] arm64: dts: qcom: sm8150: add interconnect nodes

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. On 2020-07-13 21:11, Jonathan Marek wrote: Add the interconnect dts nodes for sm8150. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 82 1 f

Re: [PATCH v2 4/7] interconnect: qcom: Add SM8150 interconnect provider driver

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! On 2020-07-13 21:11, Jonathan Marek wrote: Add driver for the Qualcomm interconnect buses found in SM8150 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-sl

Re: [PATCH v2 5/7] interconnect: qcom: Add SM8250 interconnect provider driver

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! On 2020-07-13 21:11, Jonathan Marek wrote: Add driver for the Qualcomm interconnect buses found in SM8250 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-sl

Re: [PATCH v2 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-24 Thread Sibi Sankar
On 2020-07-24 20:06, Jonathan Marek wrote: On 7/24/20 10:13 AM, Sibi Sankar wrote: Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. Thanks for the suggestions, I was unsure what to use for the sizes. The reg field is unused by the upstream

Re: [PATCH v2 1/2] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-21 Thread Sibi Sankar
On 2020-07-22 09:24, Bjorn Andersson wrote: On Tue 21 Jul 04:29 PDT 2020, Sibi Sankar wrote: Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed-off-by: Sibi Sankar --- v2: * Use

[PATCH v3 0/3] Add modem debug features

2020-07-22 Thread Sibi Sankar
t mba logs * Drop patch 3 where mba text logs are added to imem Sibi Sankar (3): remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load remoteproc: qcom_q6v5_mss: Validate modem blob firmware size before load remoteproc: qcom_q6v5_mss: Add modem debug policy support drivers/

[PATCH v3 1/3] remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load

2020-07-22 Thread Sibi Sankar
sysfs_kf_write+0x58/0x80 kernfs_fop_write+0x140/0x230 vfs_write+0xc4/0x208 ksys_write+0x74/0xf8 __arm64_sys_write+0x24/0x30 ... Fixes: 051fb70fd4ea4 ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5") Cc: sta...@vger.kernel.org Signed-off-by: Sibi Sankar --- drivers/

[PATCH v3 3/3] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-22 Thread Sibi Sankar
Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed-off-by: Sibi Sankar --- v3: * Fix dp_fw leak and create a separate func for dp load [Bjorn] * Reset dp_size on mba_reclaim v2: * Use

[PATCH v3 2/3] remoteproc: qcom_q6v5_mss: Validate modem blob firmware size before load

2020-07-22 Thread Sibi Sankar
r for the self-authenticating Hexagon v5") Cc: sta...@vger.kernel.org Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index 4e7

Re: [PATCH] arm64: dts: qcom: sc7180: Add missing properties for Wifi node

2020-07-10 Thread Sibi Sankar
On 2020-07-11 09:07, Rakesh Pillai wrote: -Original Message- From: Doug Anderson Sent: Friday, July 10, 2020 1:36 AM To: Rakesh Pillai Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS ; Evan Green ; Andy Gross ; Bjorn Andersson ; Rob Herring ; linux- arm-msm ; LKML ; Sibi

[PATCH] remoteproc: qcom_q6v5_mss: Monitor MSS_STATUS for boot completion

2020-07-16 Thread Sibi Sankar
On secure devices there exists a race condition which could lock the MSS CONFIG AHB bus thus preventing access to BOOT_STATUS register during SSR. Switch to polling the MSS_STATUS register with an additional 10 us delay to reliably track boot completion. Signed-off-by: Sibi Sankar --- drivers

[PATCH 3/3] remoteproc: qcom_q6v5_mss: Update MBA log info

2020-07-16 Thread Sibi Sankar
Update MBA text logs location/size in IMEM to aid tools extract them after ramdump collection. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c index

[PATCH 1/3] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-16 Thread Sibi Sankar
Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 2/3] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-16 Thread Sibi Sankar
On SC7180 the MBA firmware stores the bootup text logs in a 4K segment at the beginning of the MBA region. Add support to extract the logs which will be useful to debug mba boot/authentication issues. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 41

[PATCH 0/3] Add modem debug features

2020-07-16 Thread Sibi Sankar
The series adds support for the following modem debug features: * Modem debug policy which enables coredumps/live debug on secure devices * MBA text logs extraction on SC7180 SoCs Sibi Sankar (3): remoteproc: qcom_q6v5_mss: Add modem debug policy support remoteproc: qcom_q6v5_mss: Add MBA

Re: [PATCH 2/3] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-16 Thread Sibi Sankar
On 2020-07-16 19:13, Manivannan Sadhasivam wrote: Hi Sibi, On Thu, Jul 16, 2020 at 06:06:29PM +0530, Sibi Sankar wrote: On SC7180 the MBA firmware stores the bootup text logs in a 4K segment at the beginning of the MBA region. Add support to extract the logs which will be useful to debug mba

[PATCH] arm64: dts: qcom: sc7180: Move the fixed-perm property to SoC dtsi

2020-07-16 Thread Sibi Sankar
ned-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 1 - arch/arm64/boot/dts/qcom/sc7180.dtsi| 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts index 860fc4658b8b1..26cc4913d3ddc 10

Re: [PATCH 1/3] remoteproc: qcom_q6v5_mss: Add modem debug policy support

2020-07-16 Thread Sibi Sankar
Hey Bjorn, Thanks for taking time to review the series. On 2020-07-17 10:11, Bjorn Andersson wrote: On Thu 16 Jul 05:36 PDT 2020, Sibi Sankar wrote: Add modem debug policy support which will enable coredumps and live debug support when the msadp firmware is present on secure devices. Signed

Re: [PATCH 2/3] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-16 Thread Sibi Sankar
On 2020-07-17 10:27, Bjorn Andersson wrote: On Thu 16 Jul 05:36 PDT 2020, Sibi Sankar wrote: On SC7180 the MBA firmware stores the bootup text logs in a 4K segment at the beginning of the MBA region. Add support to extract the logs which will be useful to debug mba boot/authentication issues

Re: [PATCH 3/3] remoteproc: qcom_q6v5_mss: Update MBA log info

2020-07-16 Thread Sibi Sankar
On 2020-07-17 10:29, Bjorn Andersson wrote: On Thu 16 Jul 05:36 PDT 2020, Sibi Sankar wrote: Update MBA text logs location/size in IMEM to aid tools extract them after ramdump collection. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 3 +++ 1 file changed, 3 insertions

Re: [PATCH v8 4/5] remoteproc: Add inline coredump functionality

2020-07-17 Thread Sibi Sankar
undergoing recovery at the same time. This patch adds inline coredump functionality that avoids extra memory usage. This requires recovery to be halted until data is read by userspace and free function is called. Signed-off-by: Rishabh Bhatnagar Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar

Re: [PATCH v8 3/5] remoteproc: Pass size and offset as arguments to segment dump function

2020-07-17 Thread Sibi Sankar
ded in the next patch. Signed-off-by: Rishabh Bhatnagar Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 10 +- drivers/remoteproc/remoteproc_coredump.c | 5 +++-- include/linux/remoteproc.h | 5 +++-- 3 files changed, 11

Re: [PATCH v2 1/2] PM / Domains: Add GENPD_FLAG_NO_SUSPEND/RESUME flags

2020-09-10 Thread Sibi Sankar
On 2020-08-25 23:23, Bjorn Andersson wrote: On Tue 25 Aug 02:20 CDT 2020, Stephen Boyd wrote: Quoting Bjorn Andersson (2020-08-24 09:42:12) > On Fri 21 Aug 14:41 PDT 2020, Stephen Boyd wrote: [..] > > I find it odd that this is modeled as a power domain instead of some > > Qualcomm specific me

Re: [PATCH v2 1/2] PM / Domains: Add GENPD_FLAG_NO_SUSPEND/RESUME flags

2020-09-21 Thread Sibi Sankar
On 2020-09-22 01:26, Stephen Boyd wrote: Quoting Rafael J. Wysocki (2020-09-21 09:18:17) On Fri, Aug 21, 2020 at 10:49 PM Sibi Sankar wrote: > > Add GENPD_FLAG_NO_SUSPEND/RESUME flags to instruct genpd to keep the > status of the PM domain unaltered during suspend/resume respective

[PATCH] soc: qcom: pdr: Fixup array type of get_domain_list_resp message

2020-09-14 Thread Sibi Sankar
), db(27), tl(160), i(1), el(1) failed to decode incoming message PDR: tms/servreg get domain list txn wait failed: -14 PDR: service lookup for tms/servreg failed: -14 Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Rishabh Bhatnagar Signed-of

[PATCH] remoteproc: Fixup coredump debugfs disable request

2020-09-15 Thread Sibi Sankar
Currently the coredump debugfs entry takes in "disable" to set the coredump state to "disabled". Let's just accept the expected state instead. Fixes: 3afdc59e43904 ("remoteproc: Add coredump debugfs entry") Signed-off-by: Sibi Sankar --- drivers/remoteproc/

Re: [PATCH v2] remoteproc: qcom_q6v5: Assign mpss region to Q6 before MBA boot

2020-09-17 Thread Sibi Sankar
Stephen, Thanks for taking time to review the series. On 2020-09-16 22:47, Stephen Boyd wrote: Quoting Sibi Sankar (2020-09-16 07:52:52) On secure devices which support warm reset, the MBA firmware requires access to the modem region to clear them out. Hence provide Q6 access to this region

[PATCH v3] remoteproc: qcom_q6v5: Assign mpss region to Q6 before MBA boot

2020-09-17 Thread Sibi Sankar
On secure devices which support warm reset, the MBA firmware requires access to the modem region to clear them out. Hence provide Q6 access to this region before MBA boot. This will be a nop during a modem SSR. Signed-off-by: Sibi Sankar --- V3: * Fixup comment style [Stephen] V2: * Fixup

[PATCH] remoteproc: qcom_q6v5_mss: Replace mask based tracking with size

2020-07-01 Thread Sibi Sankar
In order to land inline coredump support for mss, the dump_segment function would need to support granularities less than the segment size. This is achieved by replacing mask based tracking with size. Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 15 +++ 1 file

[RESEND v1] soc: qcom: pdr: Reorder the PD state indication ack

2020-07-01 Thread Sibi Sankar
start helpers") Reported-by: Rishabh Bhatnagar Signed-off-by: Sibi Sankar --- I couldn't find the previous patch on patchworks. Resending the patch since it would need to land on stable trees as well drivers/soc/qcom/pdr_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 de

Re: [PATCH v6 1/3] remoteproc: Move coredump functionality to a new file

2020-07-01 Thread Sibi Sankar
Reviewed-by: Mathieu Poirier Reviewed-by: Sibi Sankar Tested-by: Sibi Sankar --- drivers/remoteproc/Makefile | 1 + drivers/remoteproc/remoteproc_core.c | 191 - drivers/remoteproc/remoteproc_coredump.c | 204

Re: [PATCH v6 2/3] remoteproc: Add inline coredump functionality

2020-07-01 Thread Sibi Sankar
memset(dest, 0xff, segment->size); + memset(dest, 0xff, cp_size); } https://patchwork.kernel.org/patch/11637157/ To deal with chunk sizes lesser than the segment size I've sent a patch. With ^^ you would need to the following as well on top of that: qproc->current_du

Re: [PATCH v6 3/3] remoteproc: Add coredump debugfs entry

2020-07-01 Thread Sibi Sankar
oc *rproc = filp->private_data; + const char *buf = rproc_coredump_str[rproc->dump_conf]; Nit: It would be nice to have a line feed after the string. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar + + return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); +} + +/* + *

[PATCH] soc: qcom: apr: Fixup the error displayed on lookup failure

2020-09-15 Thread Sibi Sankar
APR client incorrectly prints out "ret" variable on pdr_add_lookup failure, it should be printing the error value returned by the lookup instead. Fixes: 8347356626028 ("soc: qcom: apr: Add avs/audio tracking functionality") Signed-off-by: Sibi Sankar --- drivers/soc/qcom/

[PATCH] remoteproc: qcom_q6v5: Assign mpss region to Q6 before MBA cold boot

2020-09-15 Thread Sibi Sankar
On secure devices which support warm reset, the modem subsystem requires access to the mpss region to clear them out. Hence assign the mpss region to Q6 before MBA cold boot. This will be a nop during a modem SSR. Signed-off-by: Sibi Sankar --- I didn't want to add any new flags for warm

Re: [PATCH] remoteproc: Fixup coredump debugfs disable request

2020-09-15 Thread Sibi Sankar
Hey Bjorn, Thanks for taking time to review the patch. On 2020-09-15 20:48, Bjorn Andersson wrote: On Tue 15 Sep 07:34 UTC 2020, Sibi Sankar wrote: Currently the coredump debugfs entry takes in "disable" to set the coredump state to "disabled". Let's just accept t

[PATCH v2] remoteproc: qcom_q6v5: Assign mpss region to Q6 before MBA boot

2020-09-16 Thread Sibi Sankar
On secure devices which support warm reset, the MBA firmware requires access to the modem region to clear them out. Hence provide Q6 access to this region before MBA boot. This will be a nop during a modem SSR. Signed-off-by: Sibi Sankar --- V2: * Fixup comments as suggested by Bjorn

[PATCH v2] remoteproc: Fixup coredump debugfs disable request

2020-09-16 Thread Sibi Sankar
Fix the discrepancy observed between accepted input and read back value while disabling remoteproc coredump through the coredump debugfs entry. Fixes: 3afdc59e4390 ("remoteproc: Add coredump debugfs entry") Cc: sta...@vger.kernel.org Signed-off-by: Sibi Sankar --- V2: * Fixup comm

Re: [PATCH v9 2/4] soc: qcom: Add AOSS QMP driver

2019-06-12 Thread Sibi Sankar
system as a set of power-domains. Tested-by: Sibi Sankar Reviewed-by: Sibi Sankar Reviewed-by: Douglas Anderson Reviewed-by: Vinod Koul Tested-by: Sai Prakash Ranjan Signed-off-by: Bjorn Andersson --- Changes since v8: - ret => time_left - static const the clk_init_data drivers/

<    1   2   3   4   5   6   >