xen/arm: Disable the Cortex-a53-edac
cover xen/arm: Disable the Cortex-a53-edac
From: "Edgar E. Iglesias" <[email protected]>
The Cortex-A53 EDAC (Error Detection And Correction) Linux driver uses the implementation defined CPUMERRSR register.
Xen traps but does not yet handle accesses to this reg so dom0 panics on an undefined instruction at boot.
For Xen-4.8, this patchs disables the A53 EDAC module by removing it from the device tree.
For Xen-4.9 we may want to allow dom0 to access these regs.
Comments welcome!
Best regards,
Edgar
Edgar E. Iglesias (1):
xen/arm: Disable the Cortex-a53-edac
xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)
Signature · 7 lines
2.5.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 1/1 xen/arm: Disable the Cortex-a53-edac
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
@@ -1188,6 +1188,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,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,cortex-a53-edac" ),DT_MATCH_COMPATIBLE ("arm,armv8-pmuv3" ),DT_MATCH_PATH ("/cpus" ), DT_MATCH_TYPE("memory"),
Signature · 7 lines
2.5.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 7 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Signed-off-by Edgar E. Iglesias <[email protected]>
This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Thanks,
Alistair
Quoted 20 lines
--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +1
-1@@ -1188,6 +1188,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,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,cortex-a53-edac" ),DT_MATCH_COMPATIBLE ("arm,armv8-pmuv3" ),DT_MATCH_PATH ("/cpus" ), DT_MATCH_TYPE("memory"), --2.5.0
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Stefano Stabellini
Reviewed-byQuoted 8 lines · Alistair Francis
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Quoted 6 lines
Quoted 1 line
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Acked-by Alistair Francis <[email protected]>
Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "skip_matches" array to remove it from dom0's device tree.
Quoted 20 lines
Quoted 20 lines
--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +1
-1@@ -1188,6 +1188,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,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,cortex-a53-edac" ),DT_MATCH_COMPATIBLE ("arm,armv8-pmuv3" ),DT_MATCH_PATH ("/cpus" ), DT_MATCH_TYPE("memory"), --2.5.0
Quoted 5 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 14 lines · Stefano Stabellini
Quoted 13 lines · Alistair Francis
Quoted 7 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Quoted 9 lines
Quoted 1 line
Acked-by Alistair Francis <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "
skip_matches" array to remove it from dom0's device tree.
Sure.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 19 lines · Wei Liu
Quoted 18 lines · Stefano Stabellini
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Quoted 6 lines
Quoted 1 line
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Acked-by Alistair Francis <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>
Quoted 7 lines
Quoted 5 lines
Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "
skip_matches" array to remove it from dom0's device tree.Sure.
Hi Wei,
Just a friendly reminder:
This is still missing from master, staging and 4.8.0-rc2.
Best regards,
Edgar
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 26 lines · Edgar E. Iglesias
Quoted 25 lines · Wei Liu
Quoted 23 lines · Stefano Stabellini
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Quoted 6 lines
Quoted 1 line
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Acked-by Alistair Francis <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "
skip_matches" array to remove it from dom0's device tree.
Quoted 8 lines
Quoted 1 line
Sure.
Hi Wei,
Just a friendly reminder:
This is still missing from master, staging and 4.8.0-rc2.
I thought Stefano would do it.
I will apply this shortly. Thanks for the heads-up.
Wei.
Quoted 2 lines
Best regards,
Edgar
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 32 lines · Wei Liu
Quoted 31 lines · Edgar E. Iglesias
Quoted 19 lines · Wei Liu
Quoted 18 lines · Stefano Stabellini
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Quoted 6 lines
Quoted 1 line
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Acked-by Alistair Francis <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>Quoted 7 lines
Quoted 5 lines
Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "
skip_matches" array to remove it from dom0's device tree.Sure.
Hi Wei,
Quoted 8 lines
Quoted 3 lines
Just a friendly reminder:
This is still missing from master, staging and 4.8.0-rc2.I thought Stefano would do it.
I will apply this shortly. Thanks for the heads-up.
Now applied.
Wei.
Quoted 4 lines
Wei.
Quoted 2 lines
Best regards,
Edgar
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 37 lines · Wei Liu
Quoted 36 lines · Wei Liu
Quoted 34 lines · Edgar E. Iglesias
Quoted 19 lines · Wei Liu
Quoted 18 lines · Stefano Stabellini
Quoted 8 lines · Alistair Francis
Quoted 6 lines · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
Disable the Cortex-a53-edac. Xen currently does not yet handle reads/writes to the implementation defined CPUMERRSR register.
Quoted 6 lines
Quoted 1 line
Signed-off-by Edgar E. Iglesias <[email protected]>This solution looks fine to me and everything boots on ZynqMP as expected with this patch.
Acked-by Alistair Francis <[email protected]>Reviewed-by Stefano Stabellini <[email protected]>Quoted 7 lines
Quoted 5 lines
Wei, can we have this in 4.8? See the 0/1 email for an explanation of why this change is needed. The patch just adds the troublesome cortex-a15-pmu to the "
skip_matches" array to remove it from dom0's device tree.Sure.
Hi Wei,
Just a friendly reminder:
This is still missing from master, staging and 4.8.0-rc2.
Quoted 6 lines
Quoted 4 lines
I thought Stefano would do it.
I will apply this shortly. Thanks for the heads-up.
Now applied.
Thanks Wei. They day I acked it, it was the day you asked not to commit, then I forgot about it :-)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel