Received: by 2002:a19:690d:0:0:0:0:0 with SMTP id e13csp5571188lfc; Mon, 15 Feb 2021 04:19:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJznn91h8m0g0wGQEDwCpNjALuyaDmxCI4j8gAzDDnZl5eqjb/SoEJqj5mENCoCyO3vX6dTj X-Received: by 2002:a5b:b8b:: with SMTP id l11mr22057612ybq.205.1613391553816; Mon, 15 Feb 2021 04:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613391553; cv=none; d=google.com; s=arc-20160816; b=w9JYHyMlkRc4zwEv0Jth0MKBva5EpHrwaESffNU9yxZ/t+PI1syVcIbWdAmA2i3iyB cbk6hox7bWfHFCf62orl0cci1591CBfSdQwAmxisB8EnvkT7pn0DOH2wamyghxBv8/G5 f2Zunuqf0aYQ+IczUan/wUqtXuRYeyuJjo92wlDUBd3Wmby0yIZ+pVnNL1hQjuGz5oWO ZlY0GjSglwoAtQztKZSfhbuTrGR5/Y1Qu8gTo2z+fWtJLqbFk6HnPY26Nw54uwJGqOsx 5Bzo2DHq5T9O1MEBWDx3vqhTxG1EHrdYYRlaLDQ7DU0Ri9rBJnxQVDe+sTqN77pnTpY1 IDSA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=iwbLtj3VUQ0qqMg2i/fx1xZ9o3PmMX3bpIRHaYIIRvI=; b=RNgprUykdgOC9rqqORqva28IwNBn28/evF18JBwOgZVPJdQYK9VwbMflz0rzpIizAv dLHRs7OZ6AXJ/lr8LbwFUH/HLEM+27YDr0Kvwpxo4mAiOORq6wvu4C8XiQPt2kzMxmKk BCxS80uCon/Oe4uvmXdPUCIumCxG+vUGWWhtBkzhfqa7uLk+arqH7wMAtuPSTHPzUPjg KC5k1oCexRXc5tdOkYH6ChhFb6j66TRU6KsSz9Rn3uuQGsbYg7UCSubIuUgFI5uZiLYA grgbr3Qzo7QknqTddSJ0BvdnrfJf5Di1JnAvI1Iuf9nAOO/ZkMUw/ZM9yyF/yK7Ab45K s2Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="pKf/S86Q"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k135si14278019ybf.249.2021.02.15.04.19.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Feb 2021 04:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="pKf/S86Q"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amsat.org Received: from localhost ([::1]:51182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBcqM-0005kc-Mk for alex.bennee@linaro.org; Mon, 15 Feb 2021 07:19:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBcbo-0006kY-VI; Mon, 15 Feb 2021 07:04:09 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:33353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBcbn-0000PV-Em; Mon, 15 Feb 2021 07:04:08 -0500 Received: by mail-wm1-x32a.google.com with SMTP id a16so4162039wmm.0; Mon, 15 Feb 2021 04:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iwbLtj3VUQ0qqMg2i/fx1xZ9o3PmMX3bpIRHaYIIRvI=; b=pKf/S86Qju/GXmEaNteI4/96esc6igZJdhHm+UiBMovkPQL8eoqtg7jCoXDYUIRHpN EyBuLYQ0CJ1Tz72a6WcbURSGA/iiy0F+M3D2wza1mUC7U3LPTcYEHzEdL2LtkH+HuzNL UOLM3o/II+7hKdC3+XYZXkc7nAQq2N4v7TIAM1DB3cl+WOEA1Lo5UNMofVovGAYQ8s7Z EL5rs1/BYFGHp1c1tTELuqFDoyWQtnZOq3j3BJCBhivJuHeUKUey3zxzVWobUP9jVglx Vz9utkO9KchrhlzXVa/5IThskhgmvUiXF2p2Wqn1zpqmH52PRlI0TWlwpsvLUCblpYNt Lrcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iwbLtj3VUQ0qqMg2i/fx1xZ9o3PmMX3bpIRHaYIIRvI=; b=hww26yIRf6hgl1t2mP51OyYu6rN0gEN7FgRPGJt2l2iPdjIZlpY5OwYB/FchOG9Kyf 5/D3kolXWDUtNtmIiMDhQQ6HpuExoGUh/1/RI5eciBigQlwpDMabtGIm+5CAO+/XejeZ H9kh9O1rPyx34O82BMeEnLMkVH6Ghr3pqx+9VNle5Ik1AZOB5QpL8LOSG9QFPuO1aeWk QFo6QG36HpB9KDoJ0Y2XgOZ5dJD+Z4c/9dYn1P3ivcbNZDXuhH1Fkcx0bGp//s/p7DxD aGF11r0kBiGUZazlcHgLYWtQIY+ZCm5xmUDeEmTh4uH14atKAstI0IcPZTIi6FxXZRwy vfsw== X-Gm-Message-State: AOAM530jteYnirwYj+k337kdZrFnl/gIshVIJb+J6aD9Q2GXxQjK8nOu mcK1B167h4OxfmEkjAjbgC27kG/wmZ8= X-Received: by 2002:a7b:c952:: with SMTP id i18mr13932442wml.5.1613390645404; Mon, 15 Feb 2021 04:04:05 -0800 (PST) Received: from [192.168.1.36] (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id i3sm22185080wrr.19.2021.02.15.04.04.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Feb 2021 04:04:04 -0800 (PST) Subject: Re: [PATCH v2 08/24] hw/arm/mps2-tz: Condition IRQ splitting on number of CPUs, not board type To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20210215115138.20465-1-peter.maydell@linaro.org> <20210215115138.20465-9-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Mon, 15 Feb 2021 13:04:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210215115138.20465-9-peter.maydell@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: xkHU25KqovkP On 2/15/21 12:51 PM, Peter Maydell wrote: > In the mps2-tz board code, we handle devices whose interrupt lines > must be wired to all CPUs by creating IRQ splitter devices for the > AN521, because it has 2 CPUs, but wiring the device IRQ directly to > the SSE/IoTKit input for the AN505, which has only 1 CPU. > > We can avoid making an explicit check on the board type constant by > instead creating and using the IRQ splitters for any board with more > than 1 CPU. This avoids having to add extra cases to the > conditionals every time we add new boards. > > Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé > --- > This removes the only current user of mmc->fpga_type, but we're > going to want it again later in the series. > Reviewed-by: Philippe Mathieu-Daudé > --- > hw/arm/mps2-tz.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-)