From patchwork Thu Sep 3 16:07:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 274662 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8348BC433E2 for ; Thu, 3 Sep 2020 16:11:29 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 352A020716 for ; Thu, 3 Sep 2020 16:11:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="WpunyQDg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 352A020716 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:41922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDrpg-0001Al-5W for qemu-devel@archiver.kernel.org; Thu, 03 Sep 2020 12:11:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDrmS-0007t0-LZ for qemu-devel@nongnu.org; Thu, 03 Sep 2020 12:08:08 -0400 Received: from mout.gmx.net ([212.227.17.21]:49707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDrmQ-0007jo-MP for qemu-devel@nongnu.org; Thu, 03 Sep 2020 12:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599149271; bh=BFlROhqLNa/5mWtTViwWl2vX0zdk1DqFz9BeeEdDis8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=WpunyQDgri3RYc/4qSKpdQY4bRS3uw68N8xX1tzL+btGUxOk5MmM0Xysm/f5N93dR FoYfSgi6SFa2yIHBgrLRcpuhuDSMGg+oiV79BIuTBC0iE+qAmPq4fZ+dUEtt6acei8 mK13MEQQtSp61KB8Okth5A/s4a+BAOIp8t3U8KQo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ls3530.fritz.box ([92.116.138.28]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MHoRK-1kJvmr00c2-00Es4G; Thu, 03 Sep 2020 18:07:51 +0200 From: Helge Deller To: qemu-devel@nongnu.org, peter.maydell@linaro.org Subject: [PULL 04/10] hw/hppa: Change fw_cfg port address Date: Thu, 3 Sep 2020 18:07:40 +0200 Message-Id: <20200903160746.27491-5-deller@gmx.de> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200903160746.27491-1-deller@gmx.de> References: <20200903160746.27491-1-deller@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:k8RO8z8QxZm8GkBRCPgKP7gXE+t3jKLMPBQgksB11Q4eC3e9dbZ Dysz5NBxrupCqBsMgr5NsXR6P2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jQwXS9g4 TgrTV+kdOLjEaaEK6a/JQM0puSWeDiz1dAKlfsidCoFaZxMO17SE2FfSuyG4M07q02CBQGRHb yiE2lEKVQKAQ0uAcnrzBo5Ey272tv6xR1TPgh74vYey3FGPL3nSLZJ16Wi99nGLi1r9VT6cbo Y+tibV8RNT9yU4Yym+qtRaWvGyZVJyZ0EDzSGot2ysP6/X7s74c6zqANuIbwPrUtwmAKUuLz5 riKdlTcdZpwVPA7/NF+WPsTC2kHH8n/lxW9IK65sIYw29lzSHCzlhWVKyBo586VPXpwN3oQdV bnOzCOie5ZrgUvIW7Pwd2xzi7w4XWL40CwcJZTfAtNy48UPipJCQoJIU4rs/E7RYlyHOJc+sS dwFelpiN68xLcm8ao Received-SPF: pass client-ip=212.227.17.21; envelope-from=deller@gmx.de; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/03 12:08:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Helge Deller , Richard Henderson , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Devices on hppa occupy at least 4k starting at the HPA, so MEMORY_HPA+4k is blocked (by Linux) for the memory module. I noticed this when testing the new Linux kernel patch to let the fw_cfg entries show up in Linux under /proc. The Linux kernel driver could not allocate the region for fw_cfg. This new base address seems to not conflict. Signed-off-by: Helge Deller Reviewed-by: Richard Henderson --- hw/hppa/hppa_hardware.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.21.3 diff --git a/hw/hppa/hppa_hardware.h b/hw/hppa/hppa_hardware.h index cdb7fa6240..b2fbbc2eec 100644 --- a/hw/hppa/hppa_hardware.h +++ b/hw/hppa/hppa_hardware.h @@ -38,8 +38,7 @@ #define PORT_PCI_CMD (PCI_HPA + DINO_PCI_ADDR) #define PORT_PCI_DATA (PCI_HPA + DINO_CONFIG_DATA) -/* QEMU fw_cfg interface port */ -#define QEMU_FW_CFG_IO_BASE (MEMORY_HPA + 0x80) +#define QEMU_FW_CFG_IO_BASE 0xfffa0000 #define PORT_SERIAL1 (DINO_UART_HPA + 0x800) #define PORT_SERIAL2 (LASI_UART_HPA + 0x800)