From patchwork Tue Nov 7 03:04:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 741820 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1421102wrr; Mon, 6 Nov 2023 19:11:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwPj+4PQ+ma7ljr7HlgCJzm4u7rqXGVjHsCHfAbBVw1STBy+HmYHnjFyi0hxWKfVgNTr/Q X-Received: by 2002:a05:622a:14d2:b0:41f:e538:6c31 with SMTP id u18-20020a05622a14d200b0041fe5386c31mr6533614qtx.61.1699326716961; Mon, 06 Nov 2023 19:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699326716; cv=none; d=google.com; s=arc-20160816; b=0B4wMnvqM6gbrcMA2CVj6oHz4YbJC2Fe/4GeohHb8iRh5zNz6+D/pzLzq5YqX9E/+X gIDw5JAOKCuX0iHmQwVvW/qpTF6idDV+VCbiJPJudf3dNzqSHGkyDL7pHgfJ8eR8bPmR hx80gqXpTmwu78t6/3XuUzPHRPj7UVfX+827P4AnFTD7kaOiXobTzjTM4pSUOe+n2scx xAfunCy0EbAxC0cgHRw+d5uH1iO3E34JtMVGtWKS3JpHJcSQJw0n4A57cWg3EFz6VjSB knUe4x2lAPFj1eHfSeZzmN7e1jnjLjTQihPmD03tqIpn9Hp/nadVLMcCZWN6VPFkNgzP bSnQ== 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:cc:to :from:dkim-signature; bh=ExjsDSAVXPHl9Xgq+QdlGUyx4ksBZYfOfahGxiLtgN0=; fh=wDljmxUHXfz9MGj2//jPHYRc53BMWF157v8rVKELrf4=; b=uTIol79H39MjQOO3fMrscnMPwgywN4xZYqn5L4r14hX9I7+o7FOo/dmMsdh6JcOTwL kD8gWm1D/Oe9VA/jW57MK2q9dDNi4+h9/OZ3wKttyqDGcQTNPzcWN5ZYnbSJbr8l1pIm UShAZj8rQn66yb8P4CSYDAvy1XlWfTaJJThpL+A1HQ7rgOZmtBY03lB6gQIlYeSH17tw SgQZPvU0+nT03POQ7UmvrRshW4qWlqf2E7irTcU8XItxuL/wCTVJ1BCHWdJYabwc5A1I BjKW9KVsePCuMRsl3OL/7EwKhukkmSiOU/fDboioyz02cTvI9XP1XsltxhjHXqBTlV7e kZ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ap2hmfpM; 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 y14-20020a05622a120e00b0041986d97925si6463609qtx.299.2023.11.06.19.11.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 19:11:56 -0800 (PST) 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=Ap2hmfpM; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0CV7-0006qF-VU; Mon, 06 Nov 2023 22:11:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0CUx-0006gG-RO for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:11:29 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0CUi-00025J-2v for qemu-devel@nongnu.org; Mon, 06 Nov 2023 22:11:26 -0500 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5b980391d70so3941093a12.0 for ; Mon, 06 Nov 2023 19:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699326671; x=1699931471; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ExjsDSAVXPHl9Xgq+QdlGUyx4ksBZYfOfahGxiLtgN0=; b=Ap2hmfpMBT6PTLYjpOAuZ0A8qBDjB4+T79hH9KKpGHbS8a6VLS3DWKSPt2jlL9u5Hz BggMsW0byngjgEoiwUgEBuOY0rymfRKir6hGJ59XzGpUDpjaOwjYU4CsEqovb5/JVZrU Y8ztXbKu4ruLsYv/X4gkeLwGuhtKE6zbEO/5Y1UHeP+rDL0SesY5u5ZQZjUckszF5AbZ HWOK1vV56IzGo0Rcq4dYMMsju8hEp0SyWlPv2RVZDov03pTgEQy9HsJgOs6gUC2LWyDT FeorEhYLyqByeRNGL/6BfHqw2V0oWVVW7oOeeEFdCvMp4kE48v7Cv1xaYrQjvpCfi7Eq xx6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699326671; x=1699931471; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ExjsDSAVXPHl9Xgq+QdlGUyx4ksBZYfOfahGxiLtgN0=; b=bHmeHBJlr6Xg3dLZUJow0AiWeflxsKt1eZ1AYE0QSoF+f5R2M88vQ6+7d6AuABM6Yu 75HS2SBRIxqNskRIPJptswk/0qO12TxONY85/pfBY15pz7lTFBtyO03yKsp0g9EYSZiw hSdROZFZVBGxurAkRv/SwEkQVY2BxTIcA5Zzmr9menu6AV+94z+2y4tjbDt5iQwOTmbZ WnXr+rveKYJR2gNw/0rg/ECMptxAUecUyR+zB2qWoi33OT2P1NpZlQdfaBdcjB5kHtYQ R75LEC3/i4/TQhkNAwr5Rzphf3FxHBfouk+gX5ASvTYfbAK/vaIMZUkp7kZJ44qIFJRE /dXA== X-Gm-Message-State: AOJu0YzMSgY6o9OPO6MtAnoqne2ZXWn5v3EuQxRzlwZ/zkl+7YWMm5qF uM2h6z5FdINwMgwxZ1PDQDKhImVJcx1VBRaOSCQ= X-Received: by 2002:a17:90b:4004:b0:280:94e8:99f4 with SMTP id ie4-20020a17090b400400b0028094e899f4mr19691876pjb.46.1699326670742; Mon, 06 Nov 2023 19:11:10 -0800 (PST) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id gw13-20020a17090b0a4d00b0026f4bb8b2casm6246253pjb.6.2023.11.06.19.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 19:11:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller Subject: [PULL 83/85] hw/pci-host/astro: Trigger CPU irq on CPU HPA in high memory Date: Mon, 6 Nov 2023 19:04:05 -0800 Message-Id: <20231107030407.8979-84-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107030407.8979-1-richard.henderson@linaro.org> References: <20231107030407.8979-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.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, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+patch=linaro.org@nongnu.org From: Helge Deller The CPU HPA is in the high F-region on PA2.0 CPUs, so use F_EXTEND() to trigger interrupt request at the right CPU HPA address. Note that the cpu_hpa value comes out of the IRT, which doesn't store the higher addresss bits. Signed-off-by: Helge Deller --- hw/pci-host/astro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c index df61386bd9..b19f0917c5 100644 --- a/hw/pci-host/astro.c +++ b/hw/pci-host/astro.c @@ -384,7 +384,7 @@ static void elroy_set_irq(void *opaque, int irq, int level) uint32_t ena = bit & ~old_ilr; s->ilr = old_ilr | bit; if (ena != 0) { - stl_be_phys(&address_space_memory, cpu_hpa, val & 63); + stl_be_phys(&address_space_memory, F_EXTEND(cpu_hpa), val & 63); } } else { s->ilr = old_ilr & ~bit;