From patchwork Fri Sep 30 13:35:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 610939 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1533418pvb; Fri, 30 Sep 2022 06:41:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7osvTZ6p1sABHkP277XuC3XNJngobpniuNLR6DlHT7lIduNLy6h+pRVtNLZmHpE/5z26Yi X-Received: by 2002:ac8:5c8f:0:b0:35c:c6b5:9179 with SMTP id r15-20020ac85c8f000000b0035cc6b59179mr6902441qta.10.1664545319104; Fri, 30 Sep 2022 06:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664545319; cv=none; d=google.com; s=arc-20160816; b=EG8xCdEVTYbCSdiOXCj6ZQxhrl1sVDoe6M4qjChYQbuhhm3x9tgWcyalgaxfzCufMt Z65vBS9OF7u9hMTfi5qJwDz9zkoAUzVwx5Uc58+YM8NntHmnq0kjLNBSdKAn44dNoUk8 67ngov3cm42XwcDdnkG6yW0I5FGu1N6tqZGOj7/nstc31lgPKSPBFVoZUOFMD29f1oT+ tyGPPpXKNL1QRDvbOBR726JG56eh/pqIMkIKAlEzHCJ+pBBtTN1IfR260dLYvqaOXPKI qe0+FBQfkZdi5AoXSha3kRnn7880PIALh/e1d2XnmGnbM3QXjmbD58l/ibSki7fVYgzf JyCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=BI4FnRPteZ9TB6kG7Wp0H8/Z1m3ozSZQ6DVgXaBdi4w=; b=r7/bPq+tpgzXjwYiARr1krBc1I+sY3JTfYOOJHtaKbQvrkypIYKj0oacECc8HnjSXe DmZCk+ax9YpFuFBrH4YLgFS5FL2+nVOYOFfzTYW57e/LYvC6Hog1yEuyf9cACrBc3ARO hooPoh0LZ9Ts7PelZ5YwcElR0meE0bfa6un8kVu7Rexs/lkqM3U1xZC7qVa9bfXvhiJj tHfdG79abXM4SOYnSQqB76APw1ZGSgVwTi+YuxDVyzxxz5tcWPXigh/H1nfMPKEn4r6h eeuHzrtX07mNghlsB218GsZ8gcSCIRu9RPq5rOtho6Qk0p+DUtI2aNUxCbwUpqFh0ebk KJxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yfkFPbUj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 9-20020a0562140d4900b00496b42cd3f4si1071246qvr.456.2022.09.30.06.41.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Sep 2022 06:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yfkFPbUj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeGH8-00033F-JF for patch@linaro.org; Fri, 30 Sep 2022 09:41:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeGAn-0000Cc-TH for qemu-devel@nongnu.org; Fri, 30 Sep 2022 09:35:25 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:34385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeGAj-0006Uw-9d for qemu-devel@nongnu.org; Fri, 30 Sep 2022 09:35:25 -0400 Received: by mail-wm1-x32e.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so4785116wmr.1 for ; Fri, 30 Sep 2022 06:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date; bh=BI4FnRPteZ9TB6kG7Wp0H8/Z1m3ozSZQ6DVgXaBdi4w=; b=yfkFPbUjGcBfhILqmFn2yup3V/CxOqEnuk1CWnpm9IcGvUmXwXUKiBrFrcCchCU+go VxVC2693tIPWsdwsgnKo1mW++gU3yPQ6t0KSAjBcKKxuquA17NnBmiIMpBKBxNEHkaA+ VJg+tG2tIr7j7n00RHORVvZRu3Mi7wkntnl3WIfLJ+oqKx0A4GxNqRgUHT2loRGBjuWa faFlV0ASQRxH4lkYb9jGVrdXNrkMLB+BmFv5puT200RUK1vcqCTVb+vOaOzHiSMkEJxn UJey0U80wtXPaxwvtj6wlJnxgUpNgPjwFpKFo1EGxzZAoGgig1tkaI+YryyZQKbwrEvU wpXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date; bh=BI4FnRPteZ9TB6kG7Wp0H8/Z1m3ozSZQ6DVgXaBdi4w=; b=GqE9xnnLB7ja3nmpgk0yYrwqfCLrT78Uxp8ROeLaVdhtURfFgry1IqDtM4DRdn7Ncu +BdgG/Ccj62F/dhzRQlxXZLcglY/BPkTsYAvbEfjgx7E4A8z3xxkcKutZFSiTJT/wN3q PypC6Dgqs/n4uu9Lh7YMHnJrnWKrQ3G8xcr/7PGxUjBfseOC1IjVJRJMHbi+DhO6GaYS +woeBpQGyoejzIOt/QctUCN/DfH9Q9wKeA81aT/4IggfNoKO35YBCUtXgSpJLQsYnJyr DjrGlIzIvLw9+9hBp11bctmh/5oFJ2pMpOr11/h9qGZ+h9/qyqgE4+ofnSCghbWI/hVm 4cbQ== X-Gm-Message-State: ACrzQf09yTJ5hkATRfNkGHslS2J5cPBzq4xCymvyg7N4eMGRdXHczWSl 3GscWSeT9Dd3/WUIh4oFSkD5pXnwDod1EA== X-Received: by 2002:a05:600c:3c82:b0:3b5:60a6:c80f with SMTP id bg2-20020a05600c3c8200b003b560a6c80fmr5993003wmb.199.1664544919853; Fri, 30 Sep 2022 06:35:19 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id q12-20020adfcd8c000000b0021e4829d359sm1982551wrj.39.2022.09.30.06.35.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 06:35:19 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 07/10] hw/arm/virt: Fix devicetree warning about the GIC node Date: Fri, 30 Sep 2022 14:35:08 +0100 Message-Id: <20220930133511.2112734-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220930133511.2112734-1-peter.maydell@linaro.org> References: <20220930133511.2112734-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Jean-Philippe Brucker The GICv3 bindings requires a #msi-cells property for the ITS node. Fix the corresponding dt-validate warning: interrupt-controller@8000000: msi-controller@8080000: '#msi-cells' is a required property From schema: linux/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml Signed-off-by: Jean-Philippe Brucker Reviewed-by: Peter Maydell Reviewed-by: Eric Auger Message-id: 20220927100347.176606-3-jean-philippe@linaro.org Signed-off-by: Peter Maydell --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index f4ee71cda18..41b88dd1444 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -488,6 +488,7 @@ static void fdt_add_its_gic_node(VirtMachineState *vms) qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "arm,gic-v3-its"); qemu_fdt_setprop(ms->fdt, nodename, "msi-controller", NULL, 0); + qemu_fdt_setprop_cell(ms->fdt, nodename, "#msi-cells", 1); qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", 2, vms->memmap[VIRT_GIC_ITS].base, 2, vms->memmap[VIRT_GIC_ITS].size);