* [PATCH 0/2] Fixup for booting Xen on Thunder-X using Grub @ 2018-02-06 19:56 Julien Grall 2018-02-06 19:56 ` [PATCH 1/2] xen/arm: Extend the number of memory banks supported Julien Grall 2018-02-06 19:56 ` [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall 0 siblings, 2 replies; 4+ messages in thread From: Julien Grall @ 2018-02-06 19:56 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] 4+ messages in thread
* [PATCH 1/2] xen/arm: Extend the number of memory banks supported 2018-02-06 19:56 [PATCH 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall @ 2018-02-06 19:56 ` Julien Grall 2018-02-06 19:56 ` [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall 1 sibling, 0 replies; 4+ messages in thread From: Julien Grall @ 2018-02-06 19:56 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] 4+ messages in thread
* [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X 2018-02-06 19:56 [PATCH 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall 2018-02-06 19:56 ` [PATCH 1/2] xen/arm: Extend the number of memory banks supported Julien Grall @ 2018-02-06 19:56 ` Julien Grall 2018-02-07 12:34 ` Julien Grall 1 sibling, 1 reply; 4+ messages in thread From: Julien Grall @ 2018-02-06 19:56 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> --- 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..f5d7044296 --- /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-88x", + 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] 4+ messages in thread
* Re: [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X 2018-02-06 19:56 ` [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall @ 2018-02-07 12:34 ` Julien Grall 0 siblings, 0 replies; 4+ messages in thread From: Julien Grall @ 2018-02-07 12:34 UTC (permalink / raw) To: xen-devel; +Cc: andre.przywara, sstabellini, ian.jackson, mjaggi Hi, On 06/02/18 19:56, 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> > --- > 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..f5d7044296 > --- /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-88x", The compatible is wrong here, it should be cavium,thunder-88xx. I will resend the series. Cheers, > + 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 > -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-07 12:34 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-06 19:56 [PATCH 0/2] Fixup for booting Xen on Thunder-X using Grub Julien Grall 2018-02-06 19:56 ` [PATCH 1/2] xen/arm: Extend the number of memory banks supported Julien Grall 2018-02-06 19:56 ` [PATCH 2/2] xen/arm: Blacklist SMMU on Thunder-X Julien Grall 2018-02-07 12:34 ` Julien Grall
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).