* [PATCH 0/2] Add LLCC support for SC7180 @ 2019-10-18 13:57 Sai Prakash Ranjan 2019-10-18 13:57 ` [PATCH 1/2] soc: qcom: llcc: Add configuration data " Sai Prakash Ranjan 2019-10-18 13:57 ` [PATCH 2/2] dt-bindings: msm: Add LLCC " Sai Prakash Ranjan 0 siblings, 2 replies; 7+ messages in thread From: Sai Prakash Ranjan @ 2019-10-18 13:57 UTC (permalink / raw) To: Rob Herring, Mark Rutland, devicetree, Andy Gross, Bjorn Andersson, Stephen Boyd Cc: linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Sai Prakash Ranjan LLCC behaviour is controlled by the configuration data set in the llcc-qcom driver, add the same for SC7180 SoC. Also add the compatible for SC7180. The patch is based on linux-next where llcc driver has been made generic and not sdm845 specific. Sai Prakash Ranjan (1): dt-bindings: msm: Add LLCC for SC7180 Vivek Gautam (1): soc: qcom: llcc: Add configuration data for SC7180 .../devicetree/bindings/arm/msm/qcom,llcc.txt | 4 +++- drivers/soc/qcom/llcc-qcom.c | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] soc: qcom: llcc: Add configuration data for SC7180 2019-10-18 13:57 [PATCH 0/2] Add LLCC support for SC7180 Sai Prakash Ranjan @ 2019-10-18 13:57 ` Sai Prakash Ranjan 2019-10-18 14:31 ` Stephen Boyd 2019-10-18 13:57 ` [PATCH 2/2] dt-bindings: msm: Add LLCC " Sai Prakash Ranjan 1 sibling, 1 reply; 7+ messages in thread From: Sai Prakash Ranjan @ 2019-10-18 13:57 UTC (permalink / raw) To: Rob Herring, Mark Rutland, devicetree, Andy Gross, Bjorn Andersson, Stephen Boyd Cc: linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Vivek Gautam, Sai Prakash Ranjan From: Vivek Gautam <vivek.gautam@codeaurora.org> Add llcc configuration data for SC7180 SoC which controls llcc behaviour. Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> --- drivers/soc/qcom/llcc-qcom.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c index 4bd982a294ce..4acb52f8536b 100644 --- a/drivers/soc/qcom/llcc-qcom.c +++ b/drivers/soc/qcom/llcc-qcom.c @@ -91,6 +91,13 @@ struct qcom_llcc_config { int size; }; +static struct llcc_slice_config sc7180_data[] = { + { LLCC_CPUSS, 1, 256, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 1 }, + { LLCC_MDM, 8, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, + { LLCC_GPUHTW, 11, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, + { LLCC_GPU, 12, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, +}; + static struct llcc_slice_config sdm845_data[] = { { LLCC_CPUSS, 1, 2816, 1, 0, 0xffc, 0x2, 0, 0, 1, 1, 1 }, { LLCC_VIDSC0, 2, 512, 2, 1, 0x0, 0x0f0, 0, 0, 1, 1, 0 }, @@ -112,6 +119,11 @@ static struct llcc_slice_config sdm845_data[] = { { LLCC_AUDHW, 22, 1024, 1, 1, 0xffc, 0x2, 0, 0, 1, 1, 0 }, }; +static const struct qcom_llcc_config sc7180_cfg = { + .sct_data = sc7180_data, + .size = ARRAY_SIZE(sc7180_data), +}; + static const struct qcom_llcc_config sdm845_cfg = { .sct_data = sdm845_data, .size = ARRAY_SIZE(sdm845_data), @@ -485,6 +497,7 @@ static int qcom_llcc_probe(struct platform_device *pdev) } static const struct of_device_id qcom_llcc_of_match[] = { + { .compatible = "qcom,sc7180-llcc", .data = &sc7180_cfg }, { .compatible = "qcom,sdm845-llcc", .data = &sdm845_cfg }, { } }; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] soc: qcom: llcc: Add configuration data for SC7180 2019-10-18 13:57 ` [PATCH 1/2] soc: qcom: llcc: Add configuration data " Sai Prakash Ranjan @ 2019-10-18 14:31 ` Stephen Boyd 2019-10-18 15:25 ` Sai Prakash Ranjan 0 siblings, 1 reply; 7+ messages in thread From: Stephen Boyd @ 2019-10-18 14:31 UTC (permalink / raw) To: Andy Gross, Bjorn Andersson, Mark Rutland, Rob Herring, Sai Prakash Ranjan, devicetree Cc: linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Vivek Gautam, Sai Prakash Ranjan Quoting Sai Prakash Ranjan (2019-10-18 06:57:08) > diff --git a/drivers/soc/qcom/llcc-qcom.c b/drivers/soc/qcom/llcc-qcom.c > index 4bd982a294ce..4acb52f8536b 100644 > --- a/drivers/soc/qcom/llcc-qcom.c > +++ b/drivers/soc/qcom/llcc-qcom.c > @@ -91,6 +91,13 @@ struct qcom_llcc_config { > int size; > }; > > +static struct llcc_slice_config sc7180_data[] = { const? > + { LLCC_CPUSS, 1, 256, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 1 }, > + { LLCC_MDM, 8, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, > + { LLCC_GPUHTW, 11, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, > + { LLCC_GPU, 12, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, > +}; > + > static struct llcc_slice_config sdm845_data[] = { This one should be const too I guess but it's not part of this patch. > { LLCC_CPUSS, 1, 2816, 1, 0, 0xffc, 0x2, 0, 0, 1, 1, 1 }, > { LLCC_VIDSC0, 2, 512, 2, 1, 0x0, 0x0f0, 0, 0, 1, 1, 0 }, > @@ -112,6 +119,11 @@ static struct llcc_slice_config sdm845_data[] = { > { LLCC_AUDHW, 22, 1024, 1, 1, 0xffc, 0x2, 0, 0, 1, 1, 0 }, > }; > > +static const struct qcom_llcc_config sc7180_cfg = { > + .sct_data = sc7180_data, > + .size = ARRAY_SIZE(sc7180_data), > +}; > + > static const struct qcom_llcc_config sdm845_cfg = { > .sct_data = sdm845_data, > .size = ARRAY_SIZE(sdm845_data), Otherwise looks OK to me. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] soc: qcom: llcc: Add configuration data for SC7180 2019-10-18 14:31 ` Stephen Boyd @ 2019-10-18 15:25 ` Sai Prakash Ranjan 0 siblings, 0 replies; 7+ messages in thread From: Sai Prakash Ranjan @ 2019-10-18 15:25 UTC (permalink / raw) To: Stephen Boyd Cc: Andy Gross, Bjorn Andersson, Mark Rutland, Rob Herring, devicetree, linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Vivek Gautam, linux-arm-msm-owner On 2019-10-18 20:01, Stephen Boyd wrote: > Quoting Sai Prakash Ranjan (2019-10-18 06:57:08) >> diff --git a/drivers/soc/qcom/llcc-qcom.c >> b/drivers/soc/qcom/llcc-qcom.c >> index 4bd982a294ce..4acb52f8536b 100644 >> --- a/drivers/soc/qcom/llcc-qcom.c >> +++ b/drivers/soc/qcom/llcc-qcom.c >> @@ -91,6 +91,13 @@ struct qcom_llcc_config { >> int size; >> }; >> >> +static struct llcc_slice_config sc7180_data[] = { > > const? > Will do in next version. >> + { LLCC_CPUSS, 1, 256, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 1 }, >> + { LLCC_MDM, 8, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, >> + { LLCC_GPUHTW, 11, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, >> + { LLCC_GPU, 12, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, >> +}; >> + >> static struct llcc_slice_config sdm845_data[] = { > > This one should be const too I guess but it's not part of this patch. > Will change this as well. >> { LLCC_CPUSS, 1, 2816, 1, 0, 0xffc, 0x2, 0, 0, 1, 1, 1 >> }, >> { LLCC_VIDSC0, 2, 512, 2, 1, 0x0, 0x0f0, 0, 0, 1, 1, 0 >> }, >> @@ -112,6 +119,11 @@ static struct llcc_slice_config sdm845_data[] = >> { >> { LLCC_AUDHW, 22, 1024, 1, 1, 0xffc, 0x2, 0, 0, 1, 1, 0 >> }, >> }; >> >> +static const struct qcom_llcc_config sc7180_cfg = { >> + .sct_data = sc7180_data, >> + .size = ARRAY_SIZE(sc7180_data), >> +}; >> + >> static const struct qcom_llcc_config sdm845_cfg = { >> .sct_data = sdm845_data, >> .size = ARRAY_SIZE(sdm845_data), > > Otherwise looks OK to me. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] dt-bindings: msm: Add LLCC for SC7180 2019-10-18 13:57 [PATCH 0/2] Add LLCC support for SC7180 Sai Prakash Ranjan 2019-10-18 13:57 ` [PATCH 1/2] soc: qcom: llcc: Add configuration data " Sai Prakash Ranjan @ 2019-10-18 13:57 ` Sai Prakash Ranjan 2019-10-18 14:32 ` Stephen Boyd 1 sibling, 1 reply; 7+ messages in thread From: Sai Prakash Ranjan @ 2019-10-18 13:57 UTC (permalink / raw) To: Rob Herring, Mark Rutland, devicetree, Andy Gross, Bjorn Andersson, Stephen Boyd Cc: linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Sai Prakash Ranjan Add LLCC compatible for SC7180 SoC. Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> --- Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt index eaee06b2d8f2..f263aa539d47 100644 --- a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt @@ -11,7 +11,9 @@ Properties: - compatible: Usage: required Value type: <string> - Definition: must be "qcom,sdm845-llcc" + Definition: must be one of: + "qcom,sc7180-llcc", + "qcom,sdm845-llcc" - reg: Usage: required -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: msm: Add LLCC for SC7180 2019-10-18 13:57 ` [PATCH 2/2] dt-bindings: msm: Add LLCC " Sai Prakash Ranjan @ 2019-10-18 14:32 ` Stephen Boyd 2019-10-18 15:27 ` Sai Prakash Ranjan 0 siblings, 1 reply; 7+ messages in thread From: Stephen Boyd @ 2019-10-18 14:32 UTC (permalink / raw) To: Andy Gross, Bjorn Andersson, Mark Rutland, Rob Herring, Sai Prakash Ranjan, devicetree Cc: linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, Sai Prakash Ranjan Quoting Sai Prakash Ranjan (2019-10-18 06:57:09) > Add LLCC compatible for SC7180 SoC. > > Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> > --- > Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Can you convert this binding to YAML? Would be useful to make sure it's used properly. > > diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > index eaee06b2d8f2..f263aa539d47 100644 > --- a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt > @@ -11,7 +11,9 @@ Properties: > - compatible: > Usage: required > Value type: <string> > - Definition: must be "qcom,sdm845-llcc" > + Definition: must be one of: > + "qcom,sc7180-llcc", > + "qcom,sdm845-llcc" > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: msm: Add LLCC for SC7180 2019-10-18 14:32 ` Stephen Boyd @ 2019-10-18 15:27 ` Sai Prakash Ranjan 0 siblings, 0 replies; 7+ messages in thread From: Sai Prakash Ranjan @ 2019-10-18 15:27 UTC (permalink / raw) To: Stephen Boyd Cc: Andy Gross, Bjorn Andersson, Mark Rutland, Rob Herring, devicetree, linux-arm-msm, linux-kernel, Rajendra Nayak, Rishabh Bhatnagar, Doug Anderson, devicetree-owner On 2019-10-18 20:02, Stephen Boyd wrote: > Quoting Sai Prakash Ranjan (2019-10-18 06:57:09) >> Add LLCC compatible for SC7180 SoC. >> >> Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> >> --- >> Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) > > Can you convert this binding to YAML? Would be useful to make sure it's > used properly. > Ok will do in next version. >> >> diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt >> b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt >> index eaee06b2d8f2..f263aa539d47 100644 >> --- a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt >> +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt >> @@ -11,7 +11,9 @@ Properties: >> - compatible: >> Usage: required >> Value type: <string> >> - Definition: must be "qcom,sdm845-llcc" >> + Definition: must be one of: >> + "qcom,sc7180-llcc", >> + "qcom,sdm845-llcc" >> -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-10-18 15:27 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-10-18 13:57 [PATCH 0/2] Add LLCC support for SC7180 Sai Prakash Ranjan 2019-10-18 13:57 ` [PATCH 1/2] soc: qcom: llcc: Add configuration data " Sai Prakash Ranjan 2019-10-18 14:31 ` Stephen Boyd 2019-10-18 15:25 ` Sai Prakash Ranjan 2019-10-18 13:57 ` [PATCH 2/2] dt-bindings: msm: Add LLCC " Sai Prakash Ranjan 2019-10-18 14:32 ` Stephen Boyd 2019-10-18 15:27 ` Sai Prakash Ranjan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).