All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fixup for booting Xen on Thunder-X using Grub
@ 2018-02-14 15:30 Julien Grall
  2018-02-14 15:30 ` [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported Julien Grall
  2018-02-14 15:30 ` [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall
  0 siblings, 2 replies; 5+ messages in thread
From: Julien Grall @ 2018-02-14 15:30 UTC (permalink / raw)
  To: xen-devel; +Cc: andre.przywara, Julien Grall, sstabellini, ian.jackson, mjaggi

Hi all,

This small series will help to boot Xen on Thunder-X using Grub. This part
of my work to use Thunder-X in Osstest

Cheers,

Julien Grall (2):
  xen/arm: Extend the number of memory banks supported
  xen/arm: Blacklist SMMU on Thunder-X

 xen/arch/arm/platforms/Makefile   |  1 +
 xen/arch/arm/platforms/thunderx.c | 39 +++++++++++++++++++++++++++++++++++++++
 xen/include/asm-arm/setup.h       |  2 +-
 3 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 xen/arch/arm/platforms/thunderx.c

-- 
2.11.0


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

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

* [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported
  2018-02-14 15:30 [PATCH v2 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall
@ 2018-02-14 15:30 ` Julien Grall
  2018-02-14 18:33   ` Stefano Stabellini
  2018-02-14 15:30 ` [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall
  1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2018-02-14 15:30 UTC (permalink / raw)
  To: xen-devel; +Cc: andre.przywara, Julien Grall, sstabellini, ian.jackson, mjaggi

When booting using Grub on Thunder-X, the number of memory available is
greater than 64. Bump the number to 128, so we can take advantage of all
the memory.

Signed-off-by: Julien Grall <julien.grall@arm.com>

---

    Note that I wasn't able to boot without this patch, because EFI stub
    is printing an error when the number of region exceed 64. This will
    result to fragment in bit more the memory (sounds like print
    allocate memory) and will fail to get the memory on retry.
---
 xen/include/asm-arm/setup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h
index 7ff2c34dab..0cc3330807 100644
--- a/xen/include/asm-arm/setup.h
+++ b/xen/include/asm-arm/setup.h
@@ -6,7 +6,7 @@
 #define MIN_FDT_ALIGN 8
 #define MAX_FDT_SIZE SZ_2M
 
-#define NR_MEM_BANKS 64
+#define NR_MEM_BANKS 128
 
 #define MAX_MODULES 5 /* Current maximum useful modules */
 
-- 
2.11.0


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

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

* [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X
  2018-02-14 15:30 [PATCH v2 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall
  2018-02-14 15:30 ` [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported Julien Grall
@ 2018-02-14 15:30 ` Julien Grall
  2018-02-14 18:34   ` Stefano Stabellini
  1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2018-02-14 15:30 UTC (permalink / raw)
  To: xen-devel; +Cc: andre.przywara, Julien Grall, sstabellini, ian.jackson, mjaggi

Xen does not yet support Cavium SMMU because it requires some
workaround. For the time being, blacklist them.

Signed-off-by: Julien Grall <julien.grall@arm.com>

---
    Changes in v2:
        - Fix compatible string
---
 xen/arch/arm/platforms/Makefile   |  1 +
 xen/arch/arm/platforms/thunderx.c | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 xen/arch/arm/platforms/thunderx.c

diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
index 53a47e48d2..80e555cc14 100644
--- a/xen/arch/arm/platforms/Makefile
+++ b/xen/arch/arm/platforms/Makefile
@@ -6,5 +6,6 @@ obj-$(CONFIG_ARM_32) += omap5.o
 obj-$(CONFIG_ARM_32) += rcar2.o
 obj-$(CONFIG_ARM_64) += seattle.o
 obj-y += sunxi.o
+obj-$(CONFIG_ARM_64) += thunderx.o
 obj-$(CONFIG_ARM_64) += xgene-storm.o
 obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
diff --git a/xen/arch/arm/platforms/thunderx.c b/xen/arch/arm/platforms/thunderx.c
new file mode 100644
index 0000000000..9b32a29c6b
--- /dev/null
+++ b/xen/arch/arm/platforms/thunderx.c
@@ -0,0 +1,39 @@
+/*
+ * xen/arch/arm/platforms/thunderx.c
+ *
+ * Cavium Thunder-X specific settings
+ *
+ * Copyright (c) 2018 ARM Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; under version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <asm/platform.h>
+
+static const char * const thunderx_dt_compat[] __initconst =
+{
+    "cavium,thunder-88xx",
+    NULL
+};
+
+static const struct dt_device_match thunderx_blacklist_dev[] __initconst =
+{
+    /* Cavium has its own SMMU which is not yet supported. */
+    DT_MATCH_COMPATIBLE("cavium,smmu-v2"),
+    { /* sentinel */ },
+};
+
+PLATFORM_START(thunderx, "THUNDERX")
+    .compatible = thunderx_dt_compat,
+    .blacklist_dev = thunderx_blacklist_dev,
+PLATFORM_END
-- 
2.11.0


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

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

* Re: [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported
  2018-02-14 15:30 ` [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported Julien Grall
@ 2018-02-14 18:33   ` Stefano Stabellini
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Stabellini @ 2018-02-14 18:33 UTC (permalink / raw)
  To: Julien Grall; +Cc: andre.przywara, mjaggi, sstabellini, ian.jackson, xen-devel

On Wed, 14 Feb 2018, Julien Grall wrote:
> When booting using Grub on Thunder-X, the number of memory available is
> greater than 64. Bump the number to 128, so we can take advantage of all
> the memory.
> 
> Signed-off-by: Julien Grall <julien.grall@arm.com>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
> 
>     Note that I wasn't able to boot without this patch, because EFI stub
>     is printing an error when the number of region exceed 64. This will
>     result to fragment in bit more the memory (sounds like print
>     allocate memory) and will fail to get the memory on retry.
> ---
>  xen/include/asm-arm/setup.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h
> index 7ff2c34dab..0cc3330807 100644
> --- a/xen/include/asm-arm/setup.h
> +++ b/xen/include/asm-arm/setup.h
> @@ -6,7 +6,7 @@
>  #define MIN_FDT_ALIGN 8
>  #define MAX_FDT_SIZE SZ_2M
>  
> -#define NR_MEM_BANKS 64
> +#define NR_MEM_BANKS 128
>  
>  #define MAX_MODULES 5 /* Current maximum useful modules */
>  
> -- 
> 2.11.0
> 

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

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

* Re: [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X
  2018-02-14 15:30 ` [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall
@ 2018-02-14 18:34   ` Stefano Stabellini
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Stabellini @ 2018-02-14 18:34 UTC (permalink / raw)
  To: Julien Grall; +Cc: andre.przywara, mjaggi, sstabellini, ian.jackson, xen-devel

On Wed, 14 Feb 2018, Julien Grall wrote:
> Xen does not yet support Cavium SMMU because it requires some
> workaround. For the time being, blacklist them.
> 
> Signed-off-by: Julien Grall <julien.grall@arm.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>     Changes in v2:
>         - Fix compatible string
> ---
>  xen/arch/arm/platforms/Makefile   |  1 +
>  xen/arch/arm/platforms/thunderx.c | 39 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 40 insertions(+)
>  create mode 100644 xen/arch/arm/platforms/thunderx.c
> 
> diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
> index 53a47e48d2..80e555cc14 100644
> --- a/xen/arch/arm/platforms/Makefile
> +++ b/xen/arch/arm/platforms/Makefile
> @@ -6,5 +6,6 @@ obj-$(CONFIG_ARM_32) += omap5.o
>  obj-$(CONFIG_ARM_32) += rcar2.o
>  obj-$(CONFIG_ARM_64) += seattle.o
>  obj-y += sunxi.o
> +obj-$(CONFIG_ARM_64) += thunderx.o
>  obj-$(CONFIG_ARM_64) += xgene-storm.o
>  obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
> diff --git a/xen/arch/arm/platforms/thunderx.c b/xen/arch/arm/platforms/thunderx.c
> new file mode 100644
> index 0000000000..9b32a29c6b
> --- /dev/null
> +++ b/xen/arch/arm/platforms/thunderx.c
> @@ -0,0 +1,39 @@
> +/*
> + * xen/arch/arm/platforms/thunderx.c
> + *
> + * Cavium Thunder-X specific settings
> + *
> + * Copyright (c) 2018 ARM Ltd.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; under version 2 of the License.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; If not, see <http://www.gnu.org/licenses/>.
> + */
> +
> +#include <asm/platform.h>
> +
> +static const char * const thunderx_dt_compat[] __initconst =
> +{
> +    "cavium,thunder-88xx",
> +    NULL
> +};
> +
> +static const struct dt_device_match thunderx_blacklist_dev[] __initconst =
> +{
> +    /* Cavium has its own SMMU which is not yet supported. */
> +    DT_MATCH_COMPATIBLE("cavium,smmu-v2"),
> +    { /* sentinel */ },
> +};
> +
> +PLATFORM_START(thunderx, "THUNDERX")
> +    .compatible = thunderx_dt_compat,
> +    .blacklist_dev = thunderx_blacklist_dev,
> +PLATFORM_END
> -- 
> 2.11.0
> 

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

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

end of thread, other threads:[~2018-02-14 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 15:30 [PATCH v2 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall
2018-02-14 15:30 ` [PATCH v2 1/2] xen/arm: Extend the number of memory banks supported Julien Grall
2018-02-14 18:33   ` Stefano Stabellini
2018-02-14 15:30 ` [PATCH v2 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall
2018-02-14 18:34   ` 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.