From patchwork Mon Mar 5 16:03:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 130702 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp2855996lja; Mon, 5 Mar 2018 08:08:59 -0800 (PST) X-Google-Smtp-Source: AG47ELvIeIoezuhevKNbOKN7PF+lIv+2sBHklsooxoA4/K7UoZ4MJZTw2bWwg2lVvAgOzr6oPNp2 X-Received: by 10.36.219.137 with SMTP id c131mr14107658itg.129.1520266039454; Mon, 05 Mar 2018 08:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520266039; cv=none; d=google.com; s=arc-20160816; b=r1/ciW8dFJsji9v8iFxvfX0lMxG+7nelOCKMdo3VScxWCXE4Xe/NYaRu1+4TngTdQS YwOC6yCjJkoKKaxzFdP9aQomvOw2oxMXHcYxhBgMNzVJ8M4urUFf73tjzZeiGShe/9nZ tUAWQFduzahdXN5bD2ZOQNLXkxgbkyVjbMrYgjTl8G2lAYnzHup0TnUsl+Fg7qxinwhB 3V5DGKt0k4YzjxHys0wXMHhNTBNhTXP4Mm77eE9l4f+MuktiXSLrUcBG48Pww90lR9zZ KR1lwPktryvB9g2O2t5Zu3QGvV4YST9vFz6Bq6eW9daIWOekqhqDZ99km6XGoM9QZ81l C3aw== 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:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=1f7ezM4P+nfARriWe0t8a6e6Hc8NH4EFTRc1tg0kA8k=; b=cdosoq/he5M7SzR3IXc8hJte/z1XFPDUOMqdfvEhywWXeq4ByZPUG9lAk0JWo4FT4a TOqKq3VekBmt+s6rJ2y4ZyGJfM7eVkSCX/0DrMtfhU+NXXEdpqPlofVr1Ai3pf/Qyhpc /fAOjsJtCybrZGAxqAJKT1O+l3Tq/lCqBxiso3+Yn9fhGFjkdedPNFTW06ETCi2Du1/h QCiryyIkIQOhjEBO8a2xd3/NK0UdSw/Vy3TvrZGM5WW8NLJC+JQB1sPbD+6M7MDGdHil Ga6MCdvRyflkAGarw0WA6DcFEXtE4Lma/6kz6yL1xbh2Kq7FflRcgJHROGXdU1mLlh56 I88g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NgEvz33q; 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 j130si9041058ioe.163.2018.03.05.08.07.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Mar 2018 08:07:19 -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=NgEvz33q; 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 1essbC-00075M-7e; Mon, 05 Mar 2018 16:04:26 +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 1essbB-000759-C7 for xen-devel@lists.xenproject.org; Mon, 05 Mar 2018 16:04:25 +0000 X-Inumbo-ID: b8145568-208e-11e8-ba59-bc764e045a96 Received: from mail-wr0-x241.google.com (unknown [2a00:1450:400c:c0c::241]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id b8145568-208e-11e8-ba59-bc764e045a96; Mon, 05 Mar 2018 17:03:18 +0100 (CET) Received: by mail-wr0-x241.google.com with SMTP id k9so17802949wre.9 for ; Mon, 05 Mar 2018 08:04:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A1CJzkhaY0MdOZRenjj2/2cHAJzmJOCvtf9fbzzOBh0=; b=NgEvz33q/H80RRhG8W2v/JkAMDKASoiY4cUiWAovauCq5WdAH5Z47VYSqB73U8JdPX 9UDnGblvnA8SLSw6Ph4QyakzCAj/8PUusOrO031T6MNIZUEhu9Wc1H7UqK/Fto9udcKR OcK/GQsTe3it37pP2D0MeNKpt7uDYwO9eBVPw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A1CJzkhaY0MdOZRenjj2/2cHAJzmJOCvtf9fbzzOBh0=; b=VdqlStCfJtkHywRKoq9EYqj4klpkruR7ZWlWZ2JTUcdzQnfk+Tg5C8MJxIajc10K3w LieHdbwSAnt8xJ8pXzu+hWFFpEY9fDqg8pNZqBbSXIdXyvU+LpX0/I4e9HH7Z3OjdY/L NtXV/MJt1eMGC+8f0KPmKQ8RDR+QRaGkXZN+akFE2NnxwrXyF4ftvrUJ1Jt3Rvjmin04 GfsY87iTGWJiTP+vX3sPYh+3sBMaPTcjV0HhclVEGCzEtVEKAF8xX0TUc7uByNjdp8yS b7bBHCD0ZBrB28QLvh5TTDd0njZFam8vyUW+JX3EYQ+RsajNQSiKVMNs4kaBuleLW/yh MYiw== X-Gm-Message-State: APf1xPCaP955Awabvzv54lLHWvQ8fvWD9T9ap+QkZcpCNe2fkqfWNKRA vVSWGSeRYKy1m6gUjOYjE5w8nQ== X-Received: by 10.223.187.199 with SMTP id z7mr13605576wrg.58.1520265863356; Mon, 05 Mar 2018 08:04:23 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id y6sm6574381wmy.14.2018.03.05.08.04.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Mar 2018 08:04:22 -0800 (PST) From: Andre Przywara To: Julien Grall , Stefano Stabellini Date: Mon, 5 Mar 2018 16:03:19 +0000 Message-Id: <20180305160415.16760-2-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180305160415.16760-1-andre.przywara@linaro.org> References: <20180305160415.16760-1-andre.przywara@linaro.org> Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 01/57] 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. Since those properties are optional, and in the case of the stride only needed to cover for broken platforms, we don't need to describe them if they don't differ from the default values. This will always be the case for our 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 Reviewed-by: Julien Grall Acked-by: Wei Liu --- Changelog RFC ... v1: - improve commit message 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 86f59c0d80..906fd0dcdf 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -525,14 +525,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,