From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [RFC 00/24] Allow Xen to boot with a raw Device Tree Date: Fri, 16 Aug 2013 22:05:32 +0100 Message-ID: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com Cc: xen-devel@lists.xen.org, Julien Grall , andre.przywara@linaro.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org Hi, This is the first patch series to allow Xen to boot with a raw device tree, ie without any specific modification for Xen. Few months ago, the patch series "Support multiple ARM platform in XEN", has added a tree structure to handle easier the device tree. Each node can carry metadata to specify if the node can be pass-through to Dom0. Therefore, this patch series take advantage of the "new" Device Tree API and get a rid of the FDT API that is currently used to build Dom0 dts and in some drivers. There is few items that was not added in this series: * Set the correct number of CPUs for Dom0 by editing CPUs node * Remove and create the GIC node * Remove and create the timer node I hope to add support for previous items in the next patch series. At the beginning of the mail, I a bit lied about Xen is able to raw DTS :). The latter, still need to carry Xen and Linux command line until U-Boot/Grub will support multiboot2 protocol. I have noticed that U-boot has some fdt commands to change on the fly the device tree. I think we can use this solution as a workaround for the beginning. I will send an email later to explain the procedure. Cheers. Julien Grall (24): xen/char: dt-uart: Allow the user to give a path to the node xen: Introduce __initconst to store initial const data xen/dts: Don't check the number of address and size cells in process_cpu_node xen/dts: Constify device_tree_flattened xen/arm: Move __PSCI* from traps.c to the header xen: Add new string functions xen: Use the right string comparison function in device tree xen/dts: Don't add a fake property "name" in the device tree xen/dts: Add new helpers to use the device tree xen/dts: Remove device_get_reg call in process_memory_node xen/dts: Remove device_get_reg call in process_cpu_node xen/dts: Remove device_get_reg call in process_multiboot_node xen/dts: Check the CPU ID is not greater than NR_CPUS xen/video: hdlcd: Convert the driver to the new device tree API xen/arm: Use dt_device_match to avoid multiple if conditions xen/arm: Build DOM0 FDT by browsing the device tree structure xen/arm: Mark each device used by Xen as disabled in DOM0 FDT xen/arm: Don't map disabled device in DOM0 xen/arm: Create a fake PSCI node in dom0 device tree xen/arm: Add new platform specific callback device_is_blacklist xen/arm: vexpress: Blacklist a list of board specific devices xen/arm: exynos5: Blacklist MCT device xen/dts: Clean up the exported API for device tree xen/arm: Check if the device is available before using it xen/arch/arm/device.c | 3 + xen/arch/arm/domain_build.c | 313 ++++++++++++++++++------------------- xen/arch/arm/platform.c | 10 ++ xen/arch/arm/platforms/exynos5.c | 11 ++ xen/arch/arm/platforms/vexpress.c | 17 ++ xen/arch/arm/setup.c | 6 +- xen/arch/arm/time.c | 11 +- xen/arch/arm/traps.c | 5 - xen/common/device_tree.c | 273 ++++++++++++++++---------------- xen/common/string.c | 15 ++ xen/drivers/char/dt-uart.c | 16 +- xen/drivers/video/arm_hdlcd.c | 58 ++++--- xen/include/asm-arm/platform.h | 7 + xen/include/asm-arm/psci.h | 5 + xen/include/xen/device_tree.h | 156 +++++++++++++++--- xen/include/xen/init.h | 1 + xen/include/xen/string.h | 14 ++ 17 files changed, 565 insertions(+), 356 deletions(-) -- 1.7.10.4