Skip to contentSkip to conversation

Add system-cache-controller to the list of generic node names

PATCH In review Sai Prakash Ranjan 2 participants 5 messages Sep 29, 2021 – Oct 1, 2021 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add system-cache-controller to the list of generic node names

System Cache Controller (Last Level Cache Controller/LLCC) does not have a cache-level associated with it as enforced by the already existing 'cache-controller' node name, so add system-cache-controller to the list of generic node names as decided on the lkml in [1][2] and already being used in the dts for sometime now.

[1] https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org/
[2] https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org/

Cc Stephen Boyd <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Rajendra Nayak <[email protected]>
---
 source/chapter2-devicetree-basics.rst | 1 +
 1 file changed, 1 insertion(+)
source/chapter2-devicetree-basics.rst +1 -0
index 40be22192b2f..c06c5063c68b 100644
@@ -276,6 +276,7 @@ name should be one of the following choices:
    * sram-controller
    * ssi-controller
    * syscon
+   * system-cache-controller
    * temperature-sensor
    * timer
    * touchscreen
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

A message that is not in the archive (sent off-list or not yet received): 20210929052613.8589-1-saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org

#2 lore raw
Quoted 23 lines · Sai Prakash Ranjan

System Cache Controller (Last Level Cache Controller/LLCC) does not have a cache-level associated with it as enforced by the already existing 'cache-controller' node name, so add system-cache-controller to the list of generic node names as decided on the lkml in [1][2] and already being used in the dts for sometime now.

[1] https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org/
[2] https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org/

Cc Stephen Boyd <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Rajendra Nayak <[email protected]>
---
 source/chapter2-devicetree-basics.rst | 1 +
 1 file changed, 1 insertion(+)
source/chapter2-devicetree-basics.rst +0 -0
index 40be22192b2f..c06c5063c68b 100644

source/chapter2-devicetree-basics.rst name should be one of the following choices: · line 279

Quoted 4 lines
source/chapter2-devicetree-basics.rst +1 -0
@@ -276,6 +276,7 @@ name should be one of the following choices:
    * sram-controller
    * ssi-controller
    * syscon
+   * system-cache-controller

I don't want to encourage others to use this over 'cache-controller' and the standard binding.

Rob

A message that is not in the archive (sent off-list or not yet received): CAL_JsqLzDejj99C6CPuW+19cgwdDVkctppL_SFeWnAG5LUkscw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 20 lines · Rob Herring
Quoted 18 lines · Sai Prakash Ranjan

System Cache Controller (Last Level Cache Controller/LLCC) does not have a cache-level associated with it as enforced by the already existing 'cache-controller' node name, so add system-cache-controller to the list of generic node names as decided on the lkml in [1][2] and already being used in the dts for sometime now.

[1] https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org/
[2] https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org/

Cc Stephen Boyd <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Rajendra Nayak <[email protected]>
---
 source/chapter2-devicetree-basics.rst | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

source/chapter2-devicetree-basics.rst name should be one of the following choices: · line 279

Quoted 9 lines
source/chapter2-devicetree-basics.rst +1 -0
index 40be22192b2f..c06c5063c68b 100644
@@ -276,6 +276,7 @@ name should be one of the following choices:
    * sram-controller
    * ssi-controller
    * syscon
+   * system-cache-controller

I don't want to encourage others to use this over 'cache-controller' and the standard binding.

Right, but why would others use this over cache-controller? This is supposed to be used only for last level cache controllers where there is no cache-level associated with it like in the system cache controller/LLCC found in QTI SoCs. Also you had acked the corresponding change in the DT binding for LLCC [1].

[1] https://lore.kernel.org/lkml/20191203172235.GA18507@bogus/

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

A message that is not in the archive (sent off-list or not yet received): d9894ca86ed9a56ebf118a91bfe1b91d-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org

#6 lore raw
Quoted 39 lines · Sai Prakash Ranjan
Quoted 22 lines · Rob Herring
Quoted 20 lines · Sai Prakash Ranjan

System Cache Controller (Last Level Cache Controller/LLCC) does not have a cache-level associated with it as enforced by the already existing 'cache-controller' node name, so add system-cache-controller to the list of generic node names as decided on the lkml in [1][2] and already being used in the dts for sometime now.

[1]
https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org/
[2]
https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org/

Cc Stephen Boyd <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Rajendra Nayak <[email protected]>
---
 source/chapter2-devicetree-basics.rst | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

source/chapter2-devicetree-basics.rst name should be one of the following choices: · line 279

Quoted 10 lines
source/chapter2-devicetree-basics.rst +1 -0
index 40be22192b2f..c06c5063c68b 100644
@@ -276,6 +276,7 @@ name should be one of the following choices:
    * sram-controller
    * ssi-controller
    * syscon
+   * system-cache-controller

I don't want to encourage others to use this over 'cache-controller' and the standard binding.

Quoted 6 lines

Right, but why would others use this over cache-controller? This is supposed
to be used only for last level cache controllers where there is no cache-level
associated with it like in the system cache controller/LLCC found in QTI SoCs.

I don't agree there's never a level.

Using the cache binding will be necessary if you want to populate the kernel's cache info. If your caches have MPAM support, they are going to need to follow the cache binding as well.

Quoted 2 lines

Also you had acked the corresponding change in the DT binding for LLCC [1].

Yes, but that doesn't mean it belongs in the spec. Maybe when we have more than 1 case that will change, but for now I don't think it should be in the spec.

Rob

A message that is not in the archive (sent off-list or not yet received): CAL_Jsq+vkpigu3P+dkAVXT7nypnJA_R8LBPGgj9wERcCW6P36w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
Quoted 41 lines · Rob Herring
Quoted 39 lines · Sai Prakash Ranjan
Quoted 36 lines · Rob Herring
Quoted 26 lines · Sai Prakash Ranjan

System Cache Controller (Last Level Cache Controller/LLCC) does not have a cache-level associated with it as enforced by the already existing 'cache-controller' node name, so add system-cache-controller to the list of generic node names as decided on the lkml in [1][2] and already being used in the dts for sometime now.

[1]
https://lore.kernel.org/lkml/5dcd8588.1c69fb81.2528a.3460-ATjtLOhZ0NVl57MIdRCFDg@public.gmane.org/
[2]
https://lore.kernel.org/lkml/cover.1573814758.git.saiprakash.ranjan-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org/

Cc Stephen Boyd <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Rajendra Nayak <[email protected]>
---
 source/chapter2-devicetree-basics.rst | 1 +
 1 file changed, 1 insertion(+)
source/chapter2-devicetree-basics.rst +0 -0
index 40be22192b2f..c06c5063c68b 100644

source/chapter2-devicetree-basics.rst name should be one of the following choices: · line 279

Quoted 4 lines
source/chapter2-devicetree-basics.rst +1 -0
@@ -276,6 +276,7 @@ name should be one of the following choices:
    * sram-controller
    * ssi-controller
    * syscon
+   * system-cache-controller

I don't want to encourage others to use this over 'cache-controller' and the standard binding.

Quoted 9 lines
Quoted 6 lines

Right, but why would others use this over cache-controller? This is supposed
to be used only for last level cache controllers where there is no cache-level
associated with it like in the system cache controller/LLCC found in QTI SoCs.

I don't agree there's never a level.

More like it isn't used for now.

Quoted 11 lines

Using the cache binding will be necessary if you want to populate the kernel's cache info. If your caches have MPAM support, they are going to need to follow the cache binding as well.

Quoted 2 lines

Also you had acked the corresponding change in the DT binding for LLCC [1].

Yes, but that doesn't mean it belongs in the spec. Maybe when we have more than 1 case that will change, but for now I don't think it should be in the spec.

All right, will drop this change for now.

Thanks,
Sai

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation