Skip to contentSkip to conversation

xen/arm: domain_build: Add PSCI 1.0 compatibility

PATCH In review Dirk Behme 4 participants 5 messages Apr 21, 2016 – Apr 22, 2016

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

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

Xen needs to blacklist any PSCI node as it will be recreated for DOM0. Up to now, this was done only for arm,psci and arm,psci-0.2 compatible nodes. Add PSCI 1.0 compatibility to make device tree nodes with

compatible = "arm,psci-1.0";

blacklisted, too

---
 xen/arch/arm/domain_build.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index aba714c..00dc07a 100644
@@ -1190,6 +1190,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
Acked-by on v2 1/1
#1 lore raw

(CC Wei for release-ack)

Hello Dirk,

Quoted 9 lines · Dirk Behme

Xen needs to blacklist any PSCI node as it will be recreated for DOM0. Up to now, this was done only for arm,psci and arm,psci-0.2 compatible nodes. Add PSCI 1.0 compatibility to make device tree nodes with

compatible = "arm,psci-1.0";

blacklisted, too

I think this is a bug fix for Xen 4.7. The impact is very limited and will help to boot Xen on platform when only PSCI 1.0 is supported.

The patch should also be backported to Xen 4.6 where the support of PSCI 1.0 has been added for the first time.

Regards,

Quoted 17 lines
---
  xen/arch/arm/domain_build.c | 1 +
  1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index aba714c..00dc07a 100644
@@ -1190,6 +1190,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 · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw
Quoted 11 lines · Julien Grall

(CC Wei for release-ack)

Hello Dirk,

Quoted 6 lines · Dirk Behme

Xen needs to blacklist any PSCI node as it will be recreated for DOM0. Up to now, this was done only for arm,psci and arm,psci-0.2 compatible nodes. Add PSCI 1.0 compatibility to make device tree nodes with

compatible = "arm,psci-1.0";

Quoted 9 lines
Quoted 3 lines

blacklisted, too

I think this is a bug fix for Xen 4.7. The impact is very limited and will help to boot Xen on platform when only PSCI 1.0 is supported.

Quoted 9 lines

The patch should also be backported to Xen 4.6 where the support of PSCI 1.0 has been added for the first time.

Regards,

Quoted 4 lines
---
 xen/arch/arm/domain_build.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 13 lines
xen/arch/arm/domain_build.c +1 -0
index aba714c..00dc07a 100644
@@ -1190,6 +1190,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 · 1 line
Julien Grall

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

#3 lore raw
Quoted 16 lines · Wei Liu
Quoted 15 lines · Julien Grall

(CC Wei for release-ack)

Hello Dirk,

Quoted 9 lines · Dirk Behme

Xen needs to blacklist any PSCI node as it will be recreated for DOM0. Up to now, this was done only for arm,psci and arm,psci-0.2 compatible nodes. Add PSCI 1.0 compatibility to make device tree nodes with

compatible = "arm,psci-1.0";

blacklisted, too

Quoted 7 lines
Quoted 5 lines

I think this is a bug fix for Xen 4.7. The impact is very limited and will help to boot Xen on platform when only PSCI 1.0 is supported.

committed to staging

Quoted 9 lines
Quoted 9 lines

The patch should also be backported to Xen 4.6 where the support of PSCI 1.0 has been added for the first time.

Regards,

Quoted 4 lines
---
 xen/arch/arm/domain_build.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 17 lines
Quoted 5 lines
Quoted 5 lines
xen/arch/arm/domain_build.c +0 -0
index aba714c..00dc07a 100644
@@ -1190,6 +1190,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
Quoted 11 lines
Quoted 8 lines
xen/arch/arm/domain_build.c +1 -0
         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 · 1 line
Julien Grall

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

#4 lore raw
In reply to Julien Grall
Quoted 15 lines · Julien Grall

(CC Wei for release-ack)

Hello Dirk,

Quoted 9 lines · Dirk Behme

Xen needs to blacklist any PSCI node as it will be recreated for DOM0. Up to now, this was done only for arm,psci and arm,psci-0.2 compatible nodes. Add PSCI 1.0 compatibility to make device tree nodes with

compatible = "arm,psci-1.0";

blacklisted, too

Quoted 7 lines

I think this is a bug fix for Xen 4.7. The impact is very limited and will help to boot Xen on platform when only PSCI 1.0 is supported.

The patch should also be backported to Xen 4.6 where the support of PSCI 1.0 has been added for the first time.

Hmmm, I messed up my tig command line. The support of PSCI v1.0 is only in Xen 4.7. So there is no need to backport this patch.

Regards,

Signature · 6 lines
Julien Grall

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