All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/arm: p2m: configure pa_range_info table to support 42 bit PA systems.
@ 2019-03-15  8:34 Vishnu Pajjuri OS
  2019-03-15 11:21 ` Julien Grall
  0 siblings, 1 reply; 9+ messages in thread
From: Vishnu Pajjuri OS @ 2019-03-15  8:34 UTC (permalink / raw)
  To: xen-devel
  Cc: Open Source Submission, Stefano Stabellini, Julien Grall,
	Vishnu Pajjuri OS, Feng Kan OS

Current pa_range_info table's configuration prevents 42 bit PA systems
from booting DOM0. This patch modifies t0sz=22 and root_order=3
to expose 42-bit IPA (Intermediate Physical Address).

It is required for hardware which is having peripherals above 40 bits.

Signed-off-by: Vishnu <vishnu@os.amperecomputing.com>
Signed-off-by: Feng Kan <fengkan@os.amperecomputing.com>
---
 xen/arch/arm/p2m.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
index c38bd7e16e..c8e7598d81 100644
--- a/xen/arch/arm/p2m.c
+++ b/xen/arch/arm/p2m.c
@@ -1992,10 +1992,13 @@ void __init setup_virt_paging(void)
     } pa_range_info[] = {
         /* T0SZ minimum and SL0 maximum from ARM DDI 0487A.b Table D4-5 */
         /*      PA size, t0sz(min), root-order, sl0(max) */
+	/* TODO: 42 bit PA systems allocate 8 pages by default
+	 * for both DOM0 and guests.
+	 */
         [0] = { 32,      32/*32*/,  0,          1 },
         [1] = { 36,      28/*28*/,  0,          1 },
         [2] = { 40,      24/*24*/,  1,          1 },
-        [3] = { 42,      24/*22*/,  1,          1 },
+        [3] = { 42,      22/*22*/,  3,          1 },
         [4] = { 44,      20/*20*/,  0,          2 },
         [5] = { 48,      16/*16*/,  0,          2 },
         [6] = { 0 }, /* Invalid */
--
2.19.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-16 22:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15  8:34 [PATCH] xen/arm: p2m: configure pa_range_info table to support 42 bit PA systems Vishnu Pajjuri OS
2019-03-15 11:21 ` Julien Grall
2019-03-15 23:57   ` Feng Kan OS
2019-03-18 11:05     ` Julien Grall
2019-03-19 16:55       ` Feng Kan OS
2019-04-08 12:07     ` Julien Grall
2019-04-08 12:07       ` [Xen-devel] " Julien Grall
2019-04-16 22:42       ` Stefano Stabellini
2019-04-16 22:42         ` [Xen-devel] " Stefano Stabellini

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.