Skip to contentSkip to conversation

xen/arm: domain_build: Add PSCI 1.0 compatibility

PATCH Superseded Dirk Behme 2 participants 2 messages Apr 20, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 xen/arm: domain_build: Add PSCI 1.0 compatibility

Add PSCI 1.0 compatibility strings to make Xen behave correctly with device trees having

compatible = "arm,psci-1.0";

---
 xen/arch/arm/domain_build.c | 2 ++
 1 file changed, 2 insertions(+)
xen/arch/arm/domain_build.c +2 -0
index aba714c..f65bc46 100644
@@ -666,6 +666,7 @@ static int make_psci_node(void *fdt, const struct dt_device_node *parent)
 {
     int res;
     const char compat[] =
+        "arm,psci-1.0""\0"
         "arm,psci-0.2""\0"
         "arm,psci";
 
@@ -1190,6 +1191,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
         DT_MATCH_COMPATIBLE("multiboot,module"),
         DT_MATCH_COMPATIBLE("arm,psci"),
         DT_MATCH_COMPATIBLE("arm,psci-0.2"),
+        DT_MATCH_COMPATIBLE("arm,psci-1.0"),
         DT_MATCH_COMPATIBLE("arm,cortex-a7-pmu"),
         DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"),
         DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"),
Signature · 7 lines
2.8.0


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

Hello Dirk,

Quoted 4 lines · Dirk Behme

Add PSCI 1.0 compatibility strings to make Xen behave correctly with device trees having

compatible = "arm,psci-1.0";

You need to explain in the commit message what is the correct behavior. I.e Xen needs to blacklist any PSCI 1.0 node as it will be recreated for DOM0.

Quoted 10 lines
---
  xen/arch/arm/domain_build.c | 2 ++
  1 file changed, 2 insertions(+)
xen/arch/arm/domain_build.c +0 -0
index aba714c..f65bc46 100644

xen/arch/arm/domain_build.c static int make_psci_node(void *fdt, const struct dt_device_node *parent) · line 669

Quoted 4 lines
xen/arch/arm/domain_build.c +1 -0
@@ -666,6 +666,7 @@ static int make_psci_node(void *fdt, const struct dt_device_node *parent)
  {
      int res;
      const char compat[] =
+        "arm,psci-1.0""\0"

DOM0 will use the virtual PSCI implementation in Xen (see arch/arm/vpsci.c). This implementation only supports v0.1 and v0.2.

xen/arch/arm/domain_build.c static int handle_node(struct domain *d, struct kernel_info *kinfo, · line 1197

Quoted 12 lines
xen/arch/arm/domain_build.c +1 -0
          "arm,psci-0.2""\0"
          "arm,psci";
 
@@ -1190,6 +1191,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
          DT_MATCH_COMPATIBLE("multiboot,module"),
          DT_MATCH_COMPATIBLE("arm,psci"),
          DT_MATCH_COMPATIBLE("arm,psci-0.2"),
+        DT_MATCH_COMPATIBLE("arm,psci-1.0"),
          DT_MATCH_COMPATIBLE("arm,cortex-a7-pmu"),
          DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"),
          DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"),

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel