[PATCH v4 0/5] Add QCS404 interconnect provider driver

2019-06-13 Thread Georgi Djakov
kernel.org/lkml/20190405035446.31886-1-georgi.dja...@linaro.org/ Bjorn Andersson (1): interconnect: qcom: Add QCS404 interconnect provider driver Georgi Djakov (4): dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings soc: qcom: smd-rpm: Create RPM interconnect proxy child device int

[PATCH v4 2/5] soc: qcom: smd-rpm: Create RPM interconnect proxy child device

2019-06-13 Thread Georgi Djakov
ed by the RPM. Signed-off-by: Georgi Djakov --- v4: - Return error if platform_device_register_data() fails - Remove platform_set_drvdata() on the child device. v3: - New patch. drivers/soc/qcom/smd-rpm.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH v4 4/5] interconnect: qcom: Add QCS404 interconnect provider driver

2019-06-13 Thread Georgi Djakov
Andersson Signed-off-by: Georgi Djakov --- v4: - Select INTERCONNECT_QCOM_SMD_RPM from this driver. - Move the DT header to the dt-bindings patch. - Move this patch later in the series. v3: - Convert the #defines into enum. (Bjorn) - Move the rpm-smd part into a separate interconnect proxy driver. v2

[PATCH v4 3/5] interconnect: qcom: Add interconnect SMD over SMD driver

2019-06-13 Thread Georgi Djakov
On some Qualcomm SoCs, there is a remote processor, which controls some of the Network-On-Chip interconnect resources. Other CPUs express their needs by communicating with this processor. Add a driver to handle communication with this remote processor. Signed-off-by: Georgi Djakov --- v4

[PATCH v4 1/5] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings

2019-06-13 Thread Georgi Djakov
The Qualcomm QCS404 platform has several buses that could be controlled and tuned according to the bandwidth demand. Reviewed-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- v4: - Add the DT header into this patch. - Pick Bjorn's r-b. v3: - Add a reg property and move the interco

[PATCH v4 5/5] arm64: dts: qcs404: Add interconnect provider DT nodes

2019-06-13 Thread Georgi Djakov
Add the DT nodes for the network-on-chip interconnect buses found on qcs404-based platforms. Reviewed-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- v4: - Insert the NoC DT nodes after rng@ to keep the nodes sorted by address. - Pick Bjorn's r-b. v3: - Update according to th

Re: [PATCH 5/5] drm/msm/mdp5: Use the interconnect API

2019-05-29 Thread Georgi Djakov
On 5/8/19 23:42, Rob Clark wrote: > From: Georgi Djakov > Let's put some text in the commit message: The interconnect API provides an interface for consumer drivers to express their bandwidth needs in the SoC. This data is aggregated and the on-chip interconnect hardware is config

[PATCH v2 0/4] Add QCS404 interconnect provider driver

2019-04-15 Thread Georgi Djakov
...@linaro.org/ Bjorn Andersson (1): interconnect: qcom: Add QCS404 interconnect provider driver Georgi Djakov (3): dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings arm64: dts: qcs404: Add interconnect provider DT nodes dt-bindings: interconnect: qcs404: Introduce qcom,qos DT property

[PATCH v2 1/4] dt-bindings: interconnect: Add Qualcomm QCS404 DT bindings

2019-04-15 Thread Georgi Djakov
The Qualcomm QCS404 platform has several buses that could be controlled and tuned according to the bandwidth demand. Signed-off-by: Georgi Djakov --- v2: - No changes. .../bindings/interconnect/qcom,qcs404.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644

[PATCH v2 4/4] dt-bindings: interconnect: qcs404: Introduce qcom,qos DT property

2019-04-15 Thread Georgi Djakov
ot;bypass" and "regulator". Depending on the mode, there are a few additional knobs that could be configured. Introduce the qcom,qos property, so that we describe this relation in DT and allow the interconnect provider drivers can make use of it. Signed-off-by: Georgi Djakov --- v2: - New

[PATCH v2 2/4] interconnect: qcom: Add QCS404 interconnect provider driver

2019-04-15 Thread Georgi Djakov
: Georgi Djakov --- v2: - Use the clk_bulk API. (Bjorn) - Move the port IDs into the provider file. (Bjorn) - Use ARRAY_SIZE in the macro to automagically count the num_links. (Bjorn) - Improve code readability. (Bjorn) drivers/interconnect/qcom/Kconfig | 8 + drivers/interconnect

[PATCH v2 3/4] arm64: dts: qcs404: Add interconnect provider DT nodes

2019-04-15 Thread Georgi Djakov
Add the DT nodes for the network-on-chip interconnect buses found on qcs404-based platforms. Signed-off-by: Georgi Djakov --- v2: - No changes. arch/arm64/boot/dts/qcom/qcs404.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404

[PATCH] arm64: dts: msm8916: Add interconnect provider DT nodes

2020-06-17 Thread Georgi Djakov
Add nodes for the network-on-chip interconnect buses present on MSM8916-based platforms. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 28 +++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64

[PATCH v2] interconnect: Add helpers for enabling/disabling a path

2020-05-07 Thread Georgi Djakov
bering the bandwidth values and handle this in the framework instead. With this patch the users can call icc_disable() and icc_enable() to lower their bandwidth request to zero and then restore it back to it's previous value. Suggested-by: Evan Green Suggested-by: Bjorn Andersson Signed

Re: [PATCH] interconnect: Add helpers for enabling/disabling a path

2020-05-07 Thread Georgi Djakov
On 5/4/20 11:57, Akash Asthana wrote: > Hi Georgi, > > On 4/28/2020 2:46 PM, Georgi Djakov wrote: >> There is a repeated pattern in multiple drivers where they want to switch >> the bandwidth between zero and some other value. This is happening often >> in the suspend/

[PATCH v8 01/10] dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings

2020-05-12 Thread Georgi Djakov
. opp-avg-kBps is an optional property that can be used in Bandwidth OPP tables. Signed-off-by: Saravana Kannan Reviewed-by: Sibi Sankar Reviewed-by: Rob Herring Signed-off-by: Georgi Djakov --- v8: * Picked reviewed-by tags. * Changes on wording. Documentation/devicetree/bindings/opp/opp.txt

[PATCH v8 00/10] Introduce OPP bandwidth bindings

2020-05-12 Thread Georgi Djakov
.com [7] https://lore.kernel.org/r/20190726231558.175130-1-sarava...@google.com [8] https://lore.kernel.org/r/20190807223111.230846-1-sarava...@google.com [9] https://lore.kernel.org/r/20191207002424.201796-1-sarava...@google.com Georgi Djakov (6): interconnect: Add of_icc_get_by_index() he

[PATCH v8 02/10] OPP: Add helpers for reading the binding properties

2020-05-12 Thread Georgi Djakov
: Georgi Djakov --- v8: * Keep the existing behavior: goto free_opp only if !is_genpd * Picked reviewed-by tags. drivers/opp/core.c | 15 +-- drivers/opp/of.c | 45 +++-- drivers/opp/opp.h | 1 + 3 files changed, 41 insertions(+), 20 deletions

[PATCH v8 08/10] cpufreq: dt: Validate all interconnect paths

2020-05-12 Thread Georgi Djakov
Currently when we check for the available resources, we assume that there is only one interconnect path, but in fact it could be more than one. Do some validation to determine the number of paths and verify if each one of them is available. Signed-off-by: Georgi Djakov --- v8: * New patch

[PATCH v8 09/10] dt-bindings: interconnect: Add interconnect-tags bindings

2020-05-12 Thread Georgi Djakov
From: Sibi Sankar Add interconnect-tags bindings to enable passing of optional tag information to the interconnect framework. Signed-off-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v8: * New patch, picked from here: https://lore.kernel.org/r/20200504202243.5476-10-si...@codeaurora.org

[PATCH v8 07/10] cpufreq: dt: Add support for interconnect bandwidth scaling

2020-05-12 Thread Georgi Djakov
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. Reviewed-by: Matthias Kaehlcke Signed-off-by: Georgi Djakov --- v8

[PATCH v8 05/10] OPP: Add sanity checks in _read_opp_key()

2020-05-12 Thread Georgi Djakov
Sibi Sankar Signed-off-by: Georgi Djakov --- v8: * Picked reviewed-by tags. drivers/opp/of.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index d139ad8c8f4f..3a64f2aa0f86 100644 --- a/drivers/opp/of.c +++ b/driver

[PATCH v8 06/10] OPP: Update the bandwidth on OPP frequency changes

2020-05-12 Thread Georgi Djakov
If the OPP bandwidth values are populated, we want to switch also the interconnect bandwidth in addition to frequency and voltage. Reviewed-by: Matthias Kaehlcke Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v8: * Picked reviewed-by tags. drivers/opp/core.c | 13 - 1

[PATCH v8 10/10] OPP: Add support for setting interconnect-tags

2020-05-12 Thread Georgi Djakov
From: Sibi Sankar Add support for setting tags on icc paths associated with the opp_table. Signed-off-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v8: * New patch, picked from here: https://lore.kernel.org/r/20200504202243.5476-11-si...@codeaurora.org drivers/opp/of.c | 24

[PATCH v8 04/10] OPP: Add support for parsing interconnect bandwidth

2020-05-12 Thread Georgi Djakov
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 dev_pm_opp. Signed-off-by: Georgi Djakov --- v8: * Drop bandwidth requests and free memory in _opp_table_kref_release. * Take into

[PATCH v8 03/10] interconnect: Add of_icc_get_by_index() helper function

2020-05-12 Thread Georgi Djakov
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: Matthias Kaehlcke Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v8: * Dropped unneeded initializations. * Picked reviewed-by tags

[PATCH] PCI: qcom: Disable power management for uPD720201 USB3 controller

2020-06-15 Thread Georgi Djakov
leaning up Then the USB devices are not functional anymore. Let's disable the PM of the controller for now, as this will at least keep USB devices working even after suspend and resume. Signed-off-by: Georgi Djakov --- drivers/pci/controller/dwc/pcie-qcom.c | 8 1 file change

[PATCH] arm64: defconfig: Enable the PM8xxx RTC driver

2020-06-16 Thread Georgi Djakov
Enable the driver for the real time clock found in the PMICs on various Qualcomm platforms. Signed-off-by: Georgi Djakov --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 883e8bace3ed

Re: [PATCH v8 3/3] mailbox: qcom: Add support for APCS clock controller

2017-06-27 Thread Georgi Djakov
Hi Bjorn, On 06/23/2017 08:45 PM, Bjorn Andersson wrote: > On Fri 23 Jun 09:15 PDT 2017, Georgi Djakov wrote: > >> +static int msm8916_register_clk(struct device *dev, void __iomem *base) >> +{ > [..] >> +regmap = devm_regmap_init_mmio(dev, base, &a53cc_reg

Re: [PATCH v8 1/3] clk: qcom: Add A53 PLL support

2017-06-27 Thread Georgi Djakov
On 06/27/2017 12:48 PM, Riku Voipio wrote: > On 26 June 2017 at 22:40, Rob Herring wrote: >> On Fri, Jun 23, 2017 at 07:15:31PM +0300, Georgi Djakov wrote: >>> The CPUs on Qualcomm MSM8916-based platforms are clocked by two PLLs, >>> a primary (A53) CPU PLL and a second

Re: [PATCH v8 3/3] mailbox: qcom: Add support for APCS clock controller

2017-06-27 Thread Georgi Djakov
Hi Stephen, On 06/27/2017 01:47 AM, Stephen Boyd wrote: > On 06/23, Georgi Djakov wrote: >> diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c >> b/drivers/mailbox/qcom-apcs-ipc-mailbox.c >> index 9924c6d7f05d..da363c6580da 100644 >> --- a/drivers/mailbox/qcom-

[PATCH v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-06-27 Thread Georgi Djakov
Add driver for the Qualcomm interconnect controllers found in msm8916 based platforms. This patch contains only a small part of the topology to make reviewing easier. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile

[PATCH v1 3/3] dt-bindings: Interconnect device-tree bindings draft

2017-06-27 Thread Georgi Djakov
The interconnect API is not yet using DT bindings for expressing the relations between the API consumers and providers. This is posted a separate patch as it needs further discussions on how to represent this with DT. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt

[PATCH v1 0/3] Introduce on-chip interconnect API

2017-06-27 Thread Georgi Djakov
t ports as arguments). * Removed public declarations of some structs. * Now passing prev/next nodes to the vendor driver. * Properly remove requests on _put(). * Added refcounting. * Updated documentation. * Changed struct interconnect_path to use array instead of linked list. Georgi Djakov (3):

[PATCH v1 1/3] interconnect: Add generic interconnect controller API

2017-06-27 Thread Georgi Djakov
topology node according to the requested data flow path, physical links and constraints. The topology could be complicated and multi-tiered and is SoC specific. Signed-off-by: Georgi Djakov --- Documentation/interconnect/interconnect.rst | 71 ++ drivers/Kconfig | 2

[PATCH v2] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-13 Thread Georgi Djakov
just return this rate. Reported-by: Archit Taneja Fixes: 00f64b58874e ("clk: qcom: Add support for SMD-RPM Clocks") Signed-off-by: Georgi Djakov --- drivers/clk/qcom/clk-smd-rpm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk

Re: [PATCH v2] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-14 Thread Georgi Djakov
On 07/14/2017 12:56 AM, Stephen Boyd wrote: > On 07/13, Georgi Djakov wrote: >> As there is no way to actually query the hardware for the current clock >> rate, now racalc_rate() just returns the last rate that was previously >> set. But if the rate was not set yet, we ret

Re: [PATCH v1 1/3] interconnect: Add generic interconnect controller API

2017-06-30 Thread Georgi Djakov
Hi Vincent, On 06/28/2017 08:45 PM, Vincent Guittot wrote: > Hi Georgi, > > On 27 June 2017 at 19:49, Georgi Djakov wrote: > > [snip] > >> + >> +static int interconnect_aggregate(struct interconnect_node *node, >> +

Re: [PATCH v1 3/3] dt-bindings: Interconnect device-tree bindings draft

2017-06-30 Thread Georgi Djakov
Hi Rob, On 06/30/2017 12:32 AM, Rob Herring wrote: > On Tue, Jun 27, 2017 at 08:49:03PM +0300, Georgi Djakov wrote: >> The interconnect API is not yet using DT bindings for expressing >> the relations between the API consumers and providers. This is >> posted a separate patc

[PATCH v3] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-17 Thread Georgi Djakov
need to remove recalc_rate ops and then the core framework will handle this automagically. The round_rate() is unused, so remove it as well. Reported-by: Archit Taneja Fixes: 00f64b58874e ("clk: qcom: Add support for SMD-RPM Clocks") Signed-off-by: Georgi Djakov --- drivers/clk/qcom/clk

[PATCH] arm64: defconfig: enable missing HWSPINLOCK

2017-07-19 Thread Georgi Djakov
ing shared memory based communication to request regulators are failing to boot and mount rootfs. Fix this by explicitly enabling HWSPINLOCK in defconfig. Signed-off-by: Georgi Djakov --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defcon

[PATCH v2 0/2] Introduce on-chip interconnect API

2017-07-20 Thread Georgi Djakov
ng prev/next nodes to the vendor driver. * Properly remove requests on _put(). * Added refcounting. * Updated documentation. * Changed struct interconnect_path to use array instead of linked list. Georgi Djakov (2): interconnect: Add generic on-chip interconnect API interconnect: Add Qualco

[PATCH v2 2/2] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-07-20 Thread Georgi Djakov
Add driver for the Qualcomm interconnect buses found in msm8916 based platforms. This patch contains only a partial topology to make reviewing easier. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile

[PATCH v2 1/2] interconnect: Add generic on-chip interconnect API

2017-07-20 Thread Georgi Djakov
according to the requested data flow path, physical links and constraints. The topology could be complicated and multi-tiered and is SoC specific. Signed-off-by: Georgi Djakov --- Documentation/interconnect/interconnect.rst | 93 +++ drivers/Kconfig | 2

[PATCH 1/4] arm64: dts: qcom: msm8916: Add msm8916 A53 PLL DT node

2018-02-05 Thread Georgi Djakov
Add a device tree node for the A53 PLL, which exists on msm8916 platforms. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index

[PATCH 3/4] arm64: dts: qcom: msm8916: Add clock properties to the APCS node

2018-02-05 Thread Georgi Djakov
There are clock controller registers in the APCS block, which purpose is to control the main CPU mux and divider. Add the clock properties as part of the APCS device-tree node. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 2/4] arm64: dts: qcom: msm8916: Probe the APCS mailbox driver

2018-02-05 Thread Georgi Djakov
The APCS block was exposed until now as a syscon, but now we have a proper driver for this block. Add the compatible string of the new driver to probe and register the mailbox functionality. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 7 --- 1 file changed, 4

[PATCH 4/4] arm64: dts: qcom: msm8916: Add CPU frequency scaling support

2018-02-05 Thread Georgi Djakov
Add a CPU OPP table to allow CPU frequency scaling on msm8916 platforms. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-22 Thread Georgi Djakov
On 22.12.17 г. 2:49, Stephen Boyd wrote: > On 12/05, Georgi Djakov wrote: >> This patchset adds support for the A53 CPU clock on MSM8916 platforms >> and allows scaling of the CPU frequency on msm8916 based platforms. > > Ok. I will apply just the clk ones? Patches 3,4, an

Re: [PATCH v10 6/6] clk: qcom: Add APCS clock controller support

2017-12-05 Thread Georgi Djakov
On 12/05/2017 08:01 AM, Bjorn Andersson wrote: > On Fri 01 Dec 09:02 PST 2017, Georgi Djakov wrote: > [..] >> diff --git a/drivers/clk/qcom/apcs-msm8916.c >> b/drivers/clk/qcom/apcs-msm8916.c >> new file mode 100644 >> index ..f71039ff2347 >> ---

[PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-05 Thread Georgi Djakov
pplied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. Georgi Djakov (6): mailbox: qcom: Convert APCS IPC driver to use regmap mailbox: qcom: Create APCS child device for clock controller clk: qcom: Add A53 PLL support clk: qcom: Add regmap mux-div clock

[PATCH v11 3/6] clk: qcom: Add A53 PLL support

2017-12-05 Thread Georgi Djakov
range of frequencies above 1GHz. Signed-off-by: Georgi Djakov Acked-by: Bjorn Andersson --- .../devicetree/bindings/clock/qcom,a53pll.txt | 22 + drivers/clk/qcom/Kconfig | 10 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom

[PATCH v11 5/6] dt-bindings: mailbox: qcom: Document the APCS clock binding

2017-12-05 Thread Georgi Djakov
Update the binding documentation for APCS to mention that the APCS hardware block also expose a clock controller functionality. The APCS clock controller is a mux and half-integer divider. It has the main CPU PLL as an input and provides the clock for the application CPU. Signed-off-by: Georgi

[PATCH v11 4/6] clk: qcom: Add regmap mux-div clocks support

2017-12-05 Thread Georgi Djakov
Add support for hardware that can switch both parent clock and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

[PATCH v11 6/6] clk: qcom: Add APCS clock controller support

2017-12-05 Thread Georgi Djakov
the same time. This is required for enabling CPU frequency scaling on MSM8916-based platforms. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Kconfig| 11 +++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/apcs-msm8916.c | 149 3

[PATCH v11 2/6] mailbox: qcom: Create APCS child device for clock controller

2017-12-05 Thread Georgi Djakov
as parent. Signed-off-by: Georgi Djakov Acked-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index ab344bc6fa63..57bde0dfd12f

[PATCH v11 1/6] mailbox: qcom: Convert APCS IPC driver to use regmap

2017-12-05 Thread Georgi Djakov
This hardware block provides more functionalities that just IPC. Convert it to regmap to allow other child platform devices to use the same regmap. Signed-off-by: Georgi Djakov Acked-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 24 +++- 1 file changed

Re: [PATCH v3 1/3] interconnect: Add generic on-chip interconnect API

2017-12-12 Thread Georgi Djakov
Hi Amit, On 12/08/2017 08:38 PM, Amit Kucheria wrote: > On Fri, Sep 8, 2017 at 10:48 PM, Georgi Djakov > wrote: >> This patch introduce a new API to get requirements and configure the >> interconnect buses across the entire chipset to fit with the current demand. >&g

Re: [PATCH] clk: qcom: msm8916: Fix bimc gpu clock ops

2017-08-24 Thread Georgi Djakov
On 08/24/2017 01:55 AM, Stephen Boyd wrote: > On 08/18, Georgi Djakov wrote: >> The clock bimc_gpu_clk_src is incorrectly set to use the shared rcg2 >> ops, which are for RCGs with child branches controlled by different >> CPUs. >> >> The result of the incorrect

[PATCH] clk: qcom: Remove unused RCG ops

2017-08-24 Thread Georgi Djakov
The RCGs ops for shared branches are not used now, so remove it. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/clk-rcg.h | 3 -- drivers/clk/qcom/clk-rcg2.c | 79 - 2 files changed, 82 deletions(-) diff --git a/drivers/clk/qcom/clk-rcg.h b

[PATCH v3 1/3] interconnect: Add generic on-chip interconnect API

2017-09-08 Thread Georgi Djakov
according to the requested data flow path, physical links and constraints. The topology could be complicated and multi-tiered and is SoC specific. Signed-off-by: Georgi Djakov --- Documentation/interconnect/interconnect.rst | 93 +++ drivers/Kconfig | 2

[PATCH v3 0/3] Introduce on-chip interconnect API

2017-09-08 Thread Georgi Djakov
ents). * Removed public declarations of some structs. * Now passing prev/next nodes to the vendor driver. * Properly remove requests on _put(). * Added refcounting. * Updated documentation. * Changed struct interconnect_path to use array instead of linked list. Georgi Djakov (3): interconnec

[RFC v3 2/3] interconnect: Add basic event tracing

2017-09-08 Thread Georgi Djakov
Add basic tracepoints in interconnect_set() so we can trace the performance and the operations which configure the hardware. Signed-off-by: Georgi Djakov Cc: Steven Rostedt Cc: Ingo Molnar --- drivers/interconnect/interconnect.c | 7 ++ include/trace/events/interconnect.h | 45

[PATCH v3 3/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-09-08 Thread Georgi Djakov
Add driver for the Qualcomm interconnect buses found in msm8916 based platforms. This patch contains only a partial topology to make reviewing easier. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile

Re: [RFC v3 2/3] interconnect: Add basic event tracing

2017-09-08 Thread Georgi Djakov
On 8.09.17 г. 21:13, Steven Rostedt wrote: > On Fri, 8 Sep 2017 20:18:29 +0300 > Georgi Djakov wrote: > >> diff --git a/include/trace/events/interconnect.h >> b/include/trace/events/interconnect.h >> new file mode 100644 >> index ..c4a72163873c

[PATCH] clk: qcom: msm8916: Fix bimc gpu clock ops

2017-08-18 Thread Georgi Djakov
2 ops. Fixes: a2e8272f3f89 ("clk: qcom: Add MSM8916 gpu clocks") Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index 2cfe7000fc60..3410ee68d4

[PATCH v8 2/3] clk: qcom: Add regmap mux-div clocks support

2017-06-23 Thread Georgi Djakov
Add support for hardware that can switch both parent clock and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

[PATCH v8 3/3] mailbox: qcom: Add support for APCS clock controller

2017-06-23 Thread Georgi Djakov
the same time. This is required for enabling CPU frequency scaling on MSM8916-based platforms. Signed-off-by: Georgi Djakov --- .../bindings/mailbox/qcom,apcs-kpss-global.txt | 5 + drivers/mailbox/qcom-apcs-ipc-mailbox.c| 122 + 2 files changed, 127

[PATCH v8 0/3] Add support for Qualcomm A53 CPU clock

2017-06-23 Thread Georgi Djakov
. Changes since v1 (https://lkml.org/lkml/2015/6/12/193) * Drop SR2 PLL patch, as it is already applied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. Georgi Djakov (3): clk: qcom: Add A53 PLL support clk: qcom: Add regmap mux-div clocks support

[PATCH v8 1/3] clk: qcom: Add A53 PLL support

2017-06-23 Thread Georgi Djakov
range of frequencies above 1GHz. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53pll.txt | 22 + drivers/clk/qcom/Kconfig | 9 +++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/a53-pll.c

[RFC v1 0/3] Introduce on-chip interconnect API

2017-05-15 Thread Georgi Djakov
w takes (src and dst ports as arguments). * Removed public declarations of some structs. * Now passing prev/next nodes to the vendor driver. * Properly remove requests on _put(). * Added refcounting. * Updated documentation. * Changed struct interconnect_path to use array instead of linked list. Georgi

[RFC v1 3/3] dt-binding: Interconnect device-tree bindings draft

2017-05-15 Thread Georgi Djakov
The interconnect API is not yet using DT bindings for expressing the relations between the API consumers and providers. This is posted a separate patch as it needs further discussions on how to represent this with DT. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt

[RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-05-15 Thread Georgi Djakov
Add driver for the Qualcomm interconnect controllers found in msm8916 based platforms. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile| 1 + drivers/interconnect/qcom/Kconfig| 12

[RFC v1 1/3] interconnect: Add generic interconnect controller API

2017-05-15 Thread Georgi Djakov
topology node according to the requested data flow path, physical links and constraints. The topology could be complicated and multi-tiered and is SoC specific. Signed-off-by: Georgi Djakov --- Documentation/interconnect/interconnect.txt | 65 ++ drivers/Kconfig | 2

Re: [RFC v1 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-05-16 Thread Georgi Djakov
On 05/15/2017 07:01 PM, Geert Uytterhoeven wrote: > Hi Georgi, > > On Mon, May 15, 2017 at 5:35 PM, Georgi Djakov > wrote: >> --- /dev/null >> +++ b/drivers/interconnect/qcom/interconnect_msm8916.c > >> +struct qcom_interconnect_node { >>

[RFC v2 2/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-06-12 Thread Georgi Djakov
Add driver for the Qualcomm interconnect controllers found in msm8916 based platforms. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile| 1 + drivers/interconnect/qcom/Kconfig| 12

[RFC v2 3/3] dt-binding: Interconnect device-tree bindings draft

2017-06-12 Thread Georgi Djakov
The interconnect API is not yet using DT bindings for expressing the relations between the API consumers and providers. This is posted a separate patch as it needs further discussions on how to represent this with DT. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/interconnect.txt

[RFC v2 0/3] Introduce on-chip interconnect API

2017-06-12 Thread Georgi Djakov
ed refcounting. * Updated documentation. * Changed struct interconnect_path to use array instead of linked list. Georgi Djakov (3): interconnect: Add generic interconnect controller API interconnect: Add Qualcomm msm8916 interconnect provider driver dt-binding: Interconnect device-tree bin

[RFC v2 1/3] interconnect: Add generic interconnect controller API

2017-06-12 Thread Georgi Djakov
topology node according to the requested data flow path, physical links and constraints. The topology could be complicated and multi-tiered and is SoC specific. Signed-off-by: Georgi Djakov --- Documentation/interconnect/interconnect.txt | 65 + drivers/Kconfig | 2

Re: [RFC v2 1/3] interconnect: Add generic interconnect controller API

2017-06-13 Thread Georgi Djakov
On 06/13/2017 04:42 PM, Greg KH wrote: > On Mon, Jun 12, 2017 at 05:13:57PM +0300, Georgi Djakov wrote: >> This patch introduce a new API to get the requirement and configure the >> interconnect buses across the entire chipset to fit with the current demand. >> >>

[PATCH v9 5/7] clk: qcom: Add regmap mux-div clocks support

2017-09-21 Thread Georgi Djakov
Add support for hardware that can switch both parent clock and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

[PATCH v9 7/7] clk: qcom: Add APCS clock controller support

2017-09-21 Thread Georgi Djakov
the same time. This is required for enabling CPU frequency scaling on MSM8916-based platforms. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Kconfig| 11 +++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/apcs-msm8916.c | 172 3

[PATCH v9 6/7] dt-bindings: clock: Document qcom,apcs binding

2017-09-21 Thread Georgi Djakov
Add device-tree binding documentation for the Qualcom APCS clock controller. This clock controller is a mux and half-integer divider and provides the clock for the application CPU. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,apcs.txt| 27 ++ 1

[PATCH v9 3/7] mailbox: qcom: Move the apcs struct into a separate header

2017-09-21 Thread Georgi Djakov
Move the structure shared by the APCS IPC device and its subdevices into a separate header file. Signed-off-by: Georgi Djakov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 +-- include/linux/mailbox/qcom-apcs.h | 34 + 2 files changed, 35

[PATCH v9 0/7] Add support for Qualcomm A53 CPU clock

2017-09-21 Thread Georgi Djakov
Drop gpll0_vote patch. * Switch to the new clk_hw_* APIs. * Rebase to the current clk-next. Changes since v1 (https://lkml.org/lkml/2015/6/12/193) * Drop SR2 PLL patch, as it is already applied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. G

[PATCH v9 4/7] clk: qcom: Add A53 PLL support

2017-09-21 Thread Georgi Djakov
range of frequencies above 1GHz. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53pll.txt | 22 + drivers/clk/qcom/Kconfig | 10 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/a53-pll.c

[PATCH v9 2/7] mailbox: qcom: Populate APCS child platform devices

2017-09-21 Thread Georgi Djakov
Register the child platform devices to probe their drivers. Signed-off-by: Georgi Djakov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index ab344bc6fa63

[PATCH v9 1/7] mailbox: qcom: Convert APCS IPC driver to use regmap

2017-09-21 Thread Georgi Djakov
This hardware block provides more functionalities that just IPC. Convert it to regmap to allow other child platform devices to use the same regmap. Signed-off-by: Georgi Djakov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 24 +++- 1 file changed, 19 insertions(+), 5

[PATCH] clk: qcom: clk-smd-rpm: Fix the initial rate of branches

2017-07-04 Thread Georgi Djakov
can do better and return that rate instead of a bogus one. Reported-by: Archit Taneja Signed-off-by: Georgi Djakov --- drivers/clk/qcom/clk-smd-rpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index

[PATCH v10 4/6] clk: qcom: Add regmap mux-div clocks support

2017-12-01 Thread Georgi Djakov
Add support for hardware that can switch both parent clock and divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Makefile

[PATCH v10 6/6] clk: qcom: Add APCS clock controller support

2017-12-01 Thread Georgi Djakov
the same time. This is required for enabling CPU frequency scaling on MSM8916-based platforms. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/Kconfig| 11 +++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/apcs-msm8916.c | 149 3

[PATCH v10 1/6] mailbox: qcom: Convert APCS IPC driver to use regmap

2017-12-01 Thread Georgi Djakov
This hardware block provides more functionalities that just IPC. Convert it to regmap to allow other child platform devices to use the same regmap. Signed-off-by: Georgi Djakov Acked-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 24 +++- 1 file changed

[PATCH v10 5/6] dt-bindings: mailbox: qcom: Document the APCS clock binding

2017-12-01 Thread Georgi Djakov
Update the binding documentation for APCS to mention that the APCS hardware block also expose a clock controller functionality. The APCS clock controller is a mux and half-integer divider. It has the main CPU PLL as an input and provides the clock for the application CPU. Signed-off-by: Georgi

[PATCH v10 3/6] clk: qcom: Add A53 PLL support

2017-12-01 Thread Georgi Djakov
range of frequencies above 1GHz. Signed-off-by: Georgi Djakov Acked-by: Rob Herring --- .../devicetree/bindings/clock/qcom,a53pll.txt | 22 + drivers/clk/qcom/Kconfig | 10 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/a53

[PATCH v10 2/6] mailbox: qcom: Create APCS child device for clock controller

2017-12-01 Thread Georgi Djakov
as parent. Signed-off-by: Georgi Djakov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index ab344bc6fa63..57bde0dfd12f 100644 --- a/drivers/mailbox

[PATCH v10 0/6] Add support for Qualcomm A53 CPU clock

2017-12-01 Thread Georgi Djakov
clk_hw_* APIs. * Rebase to the current clk-next. Changes since v1 (https://lkml.org/lkml/2015/6/12/193) * Drop SR2 PLL patch, as it is already applied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. Georgi Djakov (6): mailbox: qcom: Convert APCS IPC d

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-07 Thread Georgi Djakov
Hi Amit, On 12/06/2017 07:51 AM, Amit Kucheria wrote: > On Tue, Dec 5, 2017 at 9:16 PM, Georgi Djakov > wrote: >> This patchset adds support for the A53 CPU clock on MSM8916 platforms >> and allows scaling of the CPU frequency on msm8916 based platforms. > > Though

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2017-12-07 Thread Georgi Djakov
On 12/06/2017 11:08 PM, Rob Herring wrote: > On Tue, Dec 05, 2017 at 05:46:55PM +0200, Georgi Djakov wrote: >> This patchset adds support for the A53 CPU clock on MSM8916 platforms >> and allows scaling of the CPU frequency on msm8916 based platforms. >> >> Changes since

Re: [PATCH v3 1/3] interconnect: Add generic on-chip interconnect API

2017-10-20 Thread Georgi Djakov
Hi, On 09/08/2017 08:18 PM, Georgi Djakov wrote: > This patch introduce a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current demand. > > The API is using a consumer/provider-based model, where the providers are > t

[RESEND/PATCH v6 3/3] clk: qcom: Add A53 clock driver

2016-10-19 Thread Georgi Djakov
CPU frequency scaling on platforms like MSM8916. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53cc.txt | 22 +++ drivers/clk/qcom/Kconfig | 8 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/a53cc.c

<    4   5   6   7   8   9   10   >