From patchwork Fri Feb 9 14:38:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 127829 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp679697ljc; Fri, 9 Feb 2018 06:42:04 -0800 (PST) X-Google-Smtp-Source: AH8x224VhXp2LLshW8t7mHc1HiWy2X6XaJYHthRwAbBRDv581l2gsV5Pw7U1YO7g66zv0vppC03r X-Received: by 10.107.7.69 with SMTP id 66mr3357698ioh.216.1518187324565; Fri, 09 Feb 2018 06:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518187324; cv=none; d=google.com; s=arc-20160816; b=lxvWDKINj44P5aXsncbFeqjX5cW4fTQiuuE68chuuqEhDDEkQ39M8itIoG9+P9NmoF eT3NER4FKL+KfRDtC7zqRlu9xsTUI7zVuh1FgjjA4CA21QDzbNFTyXCWTj26TGZFHbmS 8oTfPtXYA2taOQKzBaBHcKRnGBTvTz7UBM18/jmfN8kMnnwb/7NJDJOIOjRLeJYzhiK/ 5bmhFOfp9gAU9QgOVxt+nAdLbNC3dUjAJWbL7ImRCr9pidrtU2tvCYwM7dS9sQ7vAxWR ql6JmJLZyvdHNcf7MyodW8FFVbTZVWyEDhCGHfwJMY/yDnD+GlDET6Fov97RgjqroKLQ 5lvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=C9/6iIa5D9TArqLmMs1suuaCSvgMrefYsfMpocCRkJ0=; b=GCN2kWpg2AXPFWqetjfLyIKNcKzqxd4yDv7Xs4K/qZYP9PG6opBoZAmxC9iRUd05Yu WZNRGeuKwZyWJQgUEudO+nvLnEUB2zD67HHHfcgSWQJ1/gN+DucT8e6zpduc0hnXr1SZ 0kxne5G1Pis9wjLv+hHcMN0AIa9i7LINFaoOC6zIfk1zYuW0bdJzkhxmaU8AZtvDs8V5 NW+Ctq0IOZJyaoIzCiOQ1RhDNgzszHFUdnrKexS81EfVd4kfTrmF6i/pn7MVfxkEPcxJ 9lPsPmaeetdDEm3bj1V0WvJqirFkB+vNozGtpVaeyfo9r9appWdTjVoLyQ75WqT0Oo/b k3Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Qcp+dlqi; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id j131si1703992ioj.178.2018.02.09.06.42.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 06:42:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Qcp+dlqi; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek9qA-0007xv-2a; Fri, 09 Feb 2018 14:39:50 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ek9q8-0007xL-L3 for xen-devel@lists.xenproject.org; Fri, 09 Feb 2018 14:39:48 +0000 X-Inumbo-ID: 0232fc81-0da7-11e8-ba59-bc764e045a96 Received: from mail-wm0-x244.google.com (unknown [2a00:1450:400c:c09::244]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 0232fc81-0da7-11e8-ba59-bc764e045a96; Fri, 09 Feb 2018 15:39:19 +0100 (CET) Received: by mail-wm0-x244.google.com with SMTP id g1so15780079wmg.2 for ; Fri, 09 Feb 2018 06:39:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=JR90OvA5Y35pIOwyAsJPQRVknZUmkLMt+2kQXOSFWnQ=; b=Qcp+dlqisw7DxjuPA9rBtR7BQqzK2Oe3MvtN3+xfuUiZydJ5Em0jZ12kORo0aX/guB 7TQrHtdCWGpHDgUl6Mb7zlm6/yfJivsun3W7qnCsn6YEwbaJ9hnV2FtHy0EwkcDm3FTO eku6TpWSLo61e6o9KvbqqbK0/K2X3jb5un9nM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=JR90OvA5Y35pIOwyAsJPQRVknZUmkLMt+2kQXOSFWnQ=; b=NFxGDntKaETadkeoVle5wcC7lH2+6Sdak9DDufz8ICchUrGneCsP9DhJOd6M/SrhFj lN8fX1Zcs/14Zn3cxmmC0MpLZ8PPbrgxB4weokHbAPwLORUHVRXOEp7WX7LL+0mZ+cJ5 z0V/Aka3ztEY/IPQ7lDVr0dzLvdEWHFSjFf60VOEb0lltY3fEUpCDG0jV7+6v1zsQbQ2 kWXEesunikNIRGTsdS1D5wjgoHFDF/uYO6JvyyuEndX+KK0hVt7raR1kOpM2pkZReBIU tP8IEZyNcDkJFehZe5QqThuXWqdUN47OncMtNinLEPJYpqpcd2Hw8NujVZ8bUaexNbEj WRWA== X-Gm-Message-State: APf1xPBZObcyaGROFjjV/EUmIjQN5IAUoC3sIF2b4FuwtKKLlPdwzbXr luWBlr7xpLmufqdX6RmOqlZLEA== X-Received: by 10.28.156.67 with SMTP id f64mr2396574wme.11.1518187186030; Fri, 09 Feb 2018 06:39:46 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id b35sm2552229wra.13.2018.02.09.06.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Feb 2018 06:39:45 -0800 (PST) From: Andre Przywara To: Stefano Stabellini , Julien Grall , xen-devel@lists.xenproject.org Date: Fri, 9 Feb 2018 14:38:49 +0000 Message-Id: <20180209143937.28866-2-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180209143937.28866-1-andre.przywara@linaro.org> References: <20180209143937.28866-1-andre.przywara@linaro.org> Subject: [Xen-devel] [RFC PATCH 01/49] tools: ARM: vGICv3: avoid inserting optional DT properties X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" When creating a GICv3 devicetree node, we currently insert the redistributor-stride and #redistributor-regions properties, with fixed values which are actually the architected ones. But those properties are optional and only needed to cover for broken platforms, where the values differ from the architected one. This will never be the case for the constructed DomU memory map. So we drop those properties altogether and provide a clean and architected GICv3 DT node for DomUs. Signed-off-by: Andre Przywara --- tools/libxl/libxl_arm.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 3e46554301..b5bba3cd33 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -524,14 +524,6 @@ static int make_gicv3_node(libxl__gc *gc, void *fdt) res = fdt_property(fdt, "interrupt-controller", NULL, 0); if (res) return res; - res = fdt_property_cell(fdt, "redistributor-stride", - GUEST_GICV3_RDIST_STRIDE); - if (res) return res; - - res = fdt_property_cell(fdt, "#redistributor-regions", - GUEST_GICV3_RDIST_REGIONS); - if (res) return res; - res = fdt_property_regs(gc, fdt, ROOT_ADDRESS_CELLS, ROOT_SIZE_CELLS, 2, gicd_base, gicd_size,