From patchwork Wed Jan 24 14:35:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 125668 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp456949ljf; Wed, 24 Jan 2018 06:37:35 -0800 (PST) X-Google-Smtp-Source: AH8x2273YmboTHnhqVdkoLuVWKYSjHWA8woXVgy8JS7f2QiNJ9qY2ssjfwcftUiFDvFhyIxUZMb0 X-Received: by 10.36.92.212 with SMTP id q203mr8528362itb.120.1516804654985; Wed, 24 Jan 2018 06:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516804654; cv=none; d=google.com; s=arc-20160816; b=k4bRa6XZ2x16rgswlKtsmseOT7wcPZFKw7w63hZHMUg7x51VCdbCjWN09DKVkcWinq 5dYTeBM09DS+DPC41tpLhbGsvNZMDeH+FcfjylHEQ/wVZUKLPmDi/yfQUN+vl2UIoZNF ERrogGbYUucy0GgqGY4DqGOB8Q3fazQwHmvZkHSybywD3qAQ96nXiynZASLEsSrBcSQW XX88PhgjMuRUm4DHkzJCtxxVkCh8b/svoEJENbo2oxIBtPZ52e8FDb7vc00Vxj7+M7vv UboBdaBtUwpssPEw+JkU1PZObUJbtOdhCCmXJDa0+zGMfxPqaIxyl0151M4rvxUdhryD 3dNg== 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=C9/6iIa5D9TArqLmMs1suuaCSvgMrefYsfMpocCRkJ0=; b=ILPHJzctDecZnvI0tTX2fR9f8wr7pU6WQcx7qm+0NQBtbjRLP6N8PEh7Ah1qD1co0D IvNl2XjzKBqBKVuM+tNZnTzIxlvafJ13AmS3VFBaNvXRClpwHk8dDXFJDocnkIAZNi7F WWjthuR4k8CcR0Khu/IV75Oo0Qt0jlJnz8/6ZyP/odbihKbtvOL5BK4YU2rFL5CBntbc jK0ALaxG9dHdP2tUuwRrJ0oTmc41gbvtwAGxi6BY7cfEPO2H4fYJJkhoQ8fVECNc6Qfv 7iP2Apny8fyCXaH+MSF35ID5pLHzxB0kWsJ2+oB4FrD59zmr1s1Nbe3Bz154Hyr8nYs0 ifVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Agf75Crp; 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 65si302745iov.230.2018.01.24.06.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 06:37:34 -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=Agf75Crp; 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 1eeM90-00014J-MW; Wed, 24 Jan 2018 14:35:18 +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 1eeM8z-00013n-36 for xen-devel@lists.xenproject.org; Wed, 24 Jan 2018 14:35:17 +0000 X-Inumbo-ID: c80246c6-0113-11e8-ba59-bc764e045a96 Received: from mail-wm0-x242.google.com (unknown [2a00:1450:400c:c09::242]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id c80246c6-0113-11e8-ba59-bc764e045a96; Wed, 24 Jan 2018 15:35:11 +0100 (CET) Received: by mail-wm0-x242.google.com with SMTP id f71so8870363wmf.0 for ; Wed, 24 Jan 2018 06:35:14 -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=JR90OvA5Y35pIOwyAsJPQRVknZUmkLMt+2kQXOSFWnQ=; b=Agf75CrpAxUQ8LwDfdS+hWw6VDLcvLw5vqJJuUSzhs/J+S0demvl6kQmOPEe5b3a33 Ud6s9wFaQpy03vNhDBKqdw1I2lSScNCn4ecOJSPHcwYSjAnw6szMyU4WN/VU19qRf9i3 4Ub6f7dnLYXlanmbNeJFOAMmsdc31NXTs8n6o= 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=JR90OvA5Y35pIOwyAsJPQRVknZUmkLMt+2kQXOSFWnQ=; b=RklBG/MAo18T3XJ51JmQlzheqgGJfdI3Ne6TupqcI0OLRddE+Ru2gRpTudHSSulZ6o 1i8UcyTEY7i9k4sJ3c/JP7Gu0QEL21lYGHVz+pDlvTTJkgCkzpjpCRh/L6l3cRxceGzj 6Y0ctWC+DJrtQ/QM1cc5NirxbPLzjrCOGidM47J9k0MyN9hkAijwAL34+uphyWiRsSl+ YvabeBGKnTbuR4CkmiLGDLLk6ylc38uRHfWjQ6Q5QHZ9gBAQz33ye2109AGw+Uq18W7k nhh2ligW6HLlhpIN34zRsNwSosQc4pUviTW2Q7yWoqSD85JmkkHzMMccqhURPy51FxRA mFVg== X-Gm-Message-State: AKwxytceN0h5/nc39n3L3UKT5OXmUgM3CNjMQQ3G+Ahg/Ndy1YMUleuY UJ1pf1WvCk7swVFzGr8OKf3cQg== X-Received: by 10.28.49.212 with SMTP id x203mr4916649wmx.28.1516804513852; Wed, 24 Jan 2018 06:35:13 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id l9sm3267923wrb.91.2018.01.24.06.35.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jan 2018 06:35:13 -0800 (PST) From: Andre Przywara To: Stefano Stabellini , Julien Grall Date: Wed, 24 Jan 2018 14:35:11 +0000 Message-Id: <20180124143517.18469-2-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180124143517.18469-1-andre.przywara@linaro.org> References: <20180124143517.18469-1-andre.przywara@linaro.org> Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 1/7] 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,