Re: [PATCH 4/6] interconnect: qcom: Add SM8250 interconnect provider driver

From: Georgi Djakov
Date: Mon Jul 13 2020 - 10:19:16 EST


On 7/13/20 16:47, Jonathan Marek wrote:
> On 7/13/20 9:30 AM, Georgi Djakov wrote:
>> Hi Jonathan,
>>
>> Thanks for posting these patches!
>>
>> On 7/1/20 16:42, 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-slave pairs.
>>>
>>> Based on SC7180 driver and generated from downstream dts.
>>>
>>> Signed-off-by: Jonathan Marek <jonathan@xxxxxxxx>
>>> ---
>> [..]
>>> +
>>> +static const struct of_device_id qnoc_of_match[] = {
>>> +ÂÂÂ { .compatible = "qcom,sm8250-aggre1-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_aggre1_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-aggre2-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_aggre2_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-compute-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_compute_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-config-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_config_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-dc-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_dc_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-gem-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_gem_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-ipa-virt",
>>> +ÂÂÂÂÂ .data = &sm8250_ipa_virt},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-mc-virt",
>>> +ÂÂÂÂÂ .data = &sm8250_mc_virt},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-mmss-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_mmss_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-npu-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_npu_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-system-noc",
>>> +ÂÂÂÂÂ .data = &sm8250_system_noc},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-gem-noc-display",
>>> +ÂÂÂÂÂ .data = &sm8250_gem_noc_display},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-mc-virt-display",
>>> +ÂÂÂÂÂ .data = &sm8250_mc_virt_display},
>>> +ÂÂÂ { .compatible = "qcom,sm8250-mmss-noc-display",
>>> +ÂÂÂÂÂ .data = &sm8250_mmss_noc_display},
>>> +ÂÂÂ { }
>>
>> My main concern here are the display RSC nodes. We should not add the nodes
>> for voting on the display RSC, but use the "qcom,bcm-voters" property in DT
>> to list both "hlos" and "disp" as bcm voters for gem-noc, mc-virt and
>> mmss-noc.
>>
>
> Would it be OK to just drop the display RSC parts from this series then? Not
> sure if anything needs it to work, but I'm not using it currently.

This would be perfect! Let's start without the display bits. Reviewing and
testing the display part would be also a bit tricky for me.

> Though if you can provide details for a solution, I could implement it
> (qcom_icc_provider needs to have a list of voters, but I'm not sure how to deal
> with everything else).

Yes, exactly. The idea is to add voters to each qcom_icc_desc and then "get"
the voters and commit for each of them. But i think there is a patch for this
already, let me check about whether its going upstream anytime soon.

Thanks,
Georgi