From: Channa <ckadabi@codeaurora.org>
To: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-arm@lists.infradead.org,
linux-kernel@vger.kernel.org, tsoni@codeaurora.org,
sboyd@codeaurora.org, kyan@codeaurora.org
Subject: Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc
Date: Thu, 01 Feb 2018 12:39:09 -0800 [thread overview]
Message-ID: <d2751939f5813c296cdcb7a92d5698bf@codeaurora.org> (raw)
In-Reply-To: <20180201104434.7j27fl2hb4glqd3v@lakrids.cambridge.arm.com>
On 2018-02-01 02:44, Mark Rutland wrote:
> On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote:
>> Documentation for last level cache controller device tree bindings,
>> client bindings usage examples.
>>
>> Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
>> ---
>> .../devicetree/bindings/arm/msm/qcom,llcc.txt | 93
>> ++++++++++++++++++++++
>> 1 file changed, 93 insertions(+)
>> create mode 100644
>> Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>>
>> diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> new file mode 100644
>> index 0000000..d433b0c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> @@ -0,0 +1,93 @@
>> +* LLCC (Last Level Cache Controller)
>> +
>> +Properties:
>> +- compatible:
>> + Usage: required
>> + Value type: <string>
>> + Definition: must be "qcom,llcc-core"
>> +
>> +- reg:
>> + Usage: required
>> + Value Type: <prop-encoded-array>
>> + Definition: must be addresses and sizes of the LLCC registers
>> +
>> +- llcc-bank-off:
>> + Usage: required
>> + Value Type: <u32 array>
>> + Definition: Offsets of llcc banks from llcc base address starting
>> from
>> + LLCC bank0.
>> +
>> +- llcc-broadcast-off:
>> + Usage: required
>> + Value Type: <u32>
>> + Definition: Offset of broadcast register from LLCC bank0 address.
>
> Please could we use "offset" rather than "off" for both of these? That
> way it's obvious these aren't properties for disabling some feature.
>
> How variable are these offsets in practice? Is the memory map not
> fixed?
The offsets depends on the number of LLCC HW blocks. These number of HW
blocks vary from
chipset to chipset and new registers could be added that changes the
offset.
>
>> +
>> +- #cache-cells:
>> + Usage: required
>> + Value Type: <u32>
>> + Definition: Number of cache cells, must be 1
>
> What's this for, and how is it used?
This is to obtain the phandle arguments from client devices. Related to
cache-slices property.
>
>> +
>> +- max-slices:
>> + usage: required
>> + Value Type: <u32>
>> + Definition: Number of cache slices supported by hardware
>> +
>> +- status:
>> + Usage: optional
>> + Value type: <string>
>> + Definition: Property to enable or disable the driver
>
> This is a standard property, so I don't think it needs to be described
> here.
Sure, will remove it.
>
>> +
>> +== llcc amon device ==
>> +
>> +Properties:
>> +-qcom,fg-cnt : The value of fine grained counter of activity monitor
>> + block.
>
> Could you elaborate on this?
This is counter value programmed in the HW to detect live locks.
This parameter is tunable to avoid false positives.
>
>> +
>> +compatible devices:
>> + qcom,sdm845-llcc
>
> Huh? The "qcom,sdm845-llcc" bindings wasn't described above, and it's
> not clear what this means.
>
>> +
>> +Example:
>> +
>> + qcom,system-cache@1300000 {
>> + compatible = "qcom,llcc-core", "syscon", "simple-mfd";
>
> This looks very wrong. Why do you need syscon and simple-mfd?
LLCC HW block has 3 functionalities:
System cache core, ECC & AMON drivers for debugging.
All three drivers use the same register space for configuration, status
etc.
In order to avoid remapping the same address region across multiple
drivers,
I have implemented this driver as a syncon and simple-mfd.
>
>> + reg = <0x1300000 0x50000>;
>> + reg-names = "llcc_base";
>> +
>> + llcc: qcom,sdm845-llcc {
>> + compatible = "qcom,sdm845-llcc";
>
> Why is this a sub-node?
qcom,sdm845-llcc: This core driver as mentioned in the list above.
>
> Why isn't the top-level node just "qcom,sdm845-llcc" ?
>
>> + #cache-cells = <1>;
>> + max-slices = <32>;
>> + };
>> +
>> + qcom,llcc-ecc {
>> + compatible = "qcom,llcc-ecc";
>> + };
qcom,llcc-ecc: Driver #2 for ECC
>> +
>> + qcom,llcc-amon {
>> + compatible = "qcom,llcc-amon";
>> + qcom,fg-cnt = <0x7>;
>> + };
>> +
qcom,llcc-amon: Driver #3 for AMON
>> + };
>> +
>> +== Client ==
>> +
>> +Properties:
>> +- cache-slice-names:
>> + Usage: required
>> + Value type: <stringlist>
>> + Definition: A set of names that identify the usecase names of a
>> client that uses
>> + cache slice. These strings are used to look up the cache slice
>> + entries by name.
>> +
>> +- cache-slices:
>> + Usage: required
>> + Value type: <prop-encoded-array>
>> + Definition: The tuple has phandle to llcc device as the first
>> argument and the
>> + second argument is the usecase id of the client.
>
> What is a "usecase id" ?
Usecase id for use case that wants to use system cache for eg:
video-encode and video-decode
>
> Is this meant to align with #cache-cells? It would be best to keep a
> common prefix (i.e. call that #cache-slice-cells).
Yes. Will update the name.
>
> Thanks,
> Mark.
--
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum,
a Linux Foundation Collaborative Project
WARNING: multiple messages have this Message-ID (diff)
From: ckadabi@codeaurora.org (Channa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc
Date: Thu, 01 Feb 2018 12:39:09 -0800 [thread overview]
Message-ID: <d2751939f5813c296cdcb7a92d5698bf@codeaurora.org> (raw)
In-Reply-To: <20180201104434.7j27fl2hb4glqd3v@lakrids.cambridge.arm.com>
On 2018-02-01 02:44, Mark Rutland wrote:
> On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote:
>> Documentation for last level cache controller device tree bindings,
>> client bindings usage examples.
>>
>> Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
>> ---
>> .../devicetree/bindings/arm/msm/qcom,llcc.txt | 93
>> ++++++++++++++++++++++
>> 1 file changed, 93 insertions(+)
>> create mode 100644
>> Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>>
>> diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> new file mode 100644
>> index 0000000..d433b0c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt
>> @@ -0,0 +1,93 @@
>> +* LLCC (Last Level Cache Controller)
>> +
>> +Properties:
>> +- compatible:
>> + Usage: required
>> + Value type: <string>
>> + Definition: must be "qcom,llcc-core"
>> +
>> +- reg:
>> + Usage: required
>> + Value Type: <prop-encoded-array>
>> + Definition: must be addresses and sizes of the LLCC registers
>> +
>> +- llcc-bank-off:
>> + Usage: required
>> + Value Type: <u32 array>
>> + Definition: Offsets of llcc banks from llcc base address starting
>> from
>> + LLCC bank0.
>> +
>> +- llcc-broadcast-off:
>> + Usage: required
>> + Value Type: <u32>
>> + Definition: Offset of broadcast register from LLCC bank0 address.
>
> Please could we use "offset" rather than "off" for both of these? That
> way it's obvious these aren't properties for disabling some feature.
>
> How variable are these offsets in practice? Is the memory map not
> fixed?
The offsets depends on the number of LLCC HW blocks. These number of HW
blocks vary from
chipset to chipset and new registers could be added that changes the
offset.
>
>> +
>> +- #cache-cells:
>> + Usage: required
>> + Value Type: <u32>
>> + Definition: Number of cache cells, must be 1
>
> What's this for, and how is it used?
This is to obtain the phandle arguments from client devices. Related to
cache-slices property.
>
>> +
>> +- max-slices:
>> + usage: required
>> + Value Type: <u32>
>> + Definition: Number of cache slices supported by hardware
>> +
>> +- status:
>> + Usage: optional
>> + Value type: <string>
>> + Definition: Property to enable or disable the driver
>
> This is a standard property, so I don't think it needs to be described
> here.
Sure, will remove it.
>
>> +
>> +== llcc amon device ==
>> +
>> +Properties:
>> +-qcom,fg-cnt : The value of fine grained counter of activity monitor
>> + block.
>
> Could you elaborate on this?
This is counter value programmed in the HW to detect live locks.
This parameter is tunable to avoid false positives.
>
>> +
>> +compatible devices:
>> + qcom,sdm845-llcc
>
> Huh? The "qcom,sdm845-llcc" bindings wasn't described above, and it's
> not clear what this means.
>
>> +
>> +Example:
>> +
>> + qcom,system-cache at 1300000 {
>> + compatible = "qcom,llcc-core", "syscon", "simple-mfd";
>
> This looks very wrong. Why do you need syscon and simple-mfd?
LLCC HW block has 3 functionalities:
System cache core, ECC & AMON drivers for debugging.
All three drivers use the same register space for configuration, status
etc.
In order to avoid remapping the same address region across multiple
drivers,
I have implemented this driver as a syncon and simple-mfd.
>
>> + reg = <0x1300000 0x50000>;
>> + reg-names = "llcc_base";
>> +
>> + llcc: qcom,sdm845-llcc {
>> + compatible = "qcom,sdm845-llcc";
>
> Why is this a sub-node?
qcom,sdm845-llcc: This core driver as mentioned in the list above.
>
> Why isn't the top-level node just "qcom,sdm845-llcc" ?
>
>> + #cache-cells = <1>;
>> + max-slices = <32>;
>> + };
>> +
>> + qcom,llcc-ecc {
>> + compatible = "qcom,llcc-ecc";
>> + };
qcom,llcc-ecc: Driver #2 for ECC
>> +
>> + qcom,llcc-amon {
>> + compatible = "qcom,llcc-amon";
>> + qcom,fg-cnt = <0x7>;
>> + };
>> +
qcom,llcc-amon: Driver #3 for AMON
>> + };
>> +
>> +== Client ==
>> +
>> +Properties:
>> +- cache-slice-names:
>> + Usage: required
>> + Value type: <stringlist>
>> + Definition: A set of names that identify the usecase names of a
>> client that uses
>> + cache slice. These strings are used to look up the cache slice
>> + entries by name.
>> +
>> +- cache-slices:
>> + Usage: required
>> + Value type: <prop-encoded-array>
>> + Definition: The tuple has phandle to llcc device as the first
>> argument and the
>> + second argument is the usecase id of the client.
>
> What is a "usecase id" ?
Usecase id for use case that wants to use system cache for eg:
video-encode and video-decode
>
> Is this meant to align with #cache-cells? It would be best to keep a
> common prefix (i.e. call that #cache-slice-cells).
Yes. Will update the name.
>
> Thanks,
> Mark.
--
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2018-02-01 20:39 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-25 23:55 [PATCH 0/2] SDM845 System Cache Driver Channagoud Kadabi
2018-01-25 23:55 ` Channagoud Kadabi
2018-01-25 23:55 ` [PATCH 1/2] dt-bindings: Documentation for qcom,llcc Channagoud Kadabi
2018-01-25 23:55 ` Channagoud Kadabi
2018-02-01 10:44 ` Mark Rutland
2018-02-01 10:44 ` Mark Rutland
2018-02-01 20:39 ` Channa [this message]
2018-02-01 20:39 ` Channa
2018-02-02 11:05 ` Mark Rutland
2018-02-02 11:05 ` Mark Rutland
2018-02-06 19:56 ` Channa
2018-02-06 19:56 ` Channa
2018-02-06 19:56 ` Channa
2018-02-13 14:37 ` Mark Rutland
2018-02-13 14:37 ` Mark Rutland
2018-02-13 17:38 ` Channa
2018-02-13 17:38 ` Channa
2018-02-01 10:48 ` Mark Rutland
2018-02-01 10:48 ` Mark Rutland
2018-02-01 20:47 ` Channa
2018-02-01 20:47 ` Channa
2018-02-01 20:47 ` Channa
2018-02-02 11:08 ` Mark Rutland
2018-02-02 11:08 ` Mark Rutland
2018-02-08 16:52 ` Matt Sealey
2018-02-08 16:52 ` Matt Sealey
2018-02-09 0:24 ` Channa
2018-02-09 0:24 ` Channa
2018-02-13 14:33 ` Mark Rutland
2018-02-13 14:33 ` Mark Rutland
2018-01-25 23:55 ` [PATCH 2/2] drivers: soc: Add LLCC driver Channagoud Kadabi
2018-01-25 23:55 ` Channagoud Kadabi
2018-03-19 14:55 ` Jordan Crouse
2018-03-19 14:55 ` Jordan Crouse
2018-03-23 23:57 ` Channa
2018-03-23 23:57 ` Channa
-- strict thread matches above, loose matches on Subject: below --
2018-01-16 22:35 [PATCH 0/2] SDM845 System Cache Driver Channagoud Kadabi
2018-01-16 22:35 ` [PATCH 1/2] dt-bindings: Documentation for qcom,llcc Channagoud Kadabi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2751939f5813c296cdcb7a92d5698bf@codeaurora.org \
--to=ckadabi@codeaurora.org \
--cc=kyan@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-arm@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=sboyd@codeaurora.org \
--cc=tsoni@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.