From patchwork Thu Feb 25 09:22:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1444201 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=MAyruxG6; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DmS6n0sJzz9s1l for ; Thu, 25 Feb 2021 20:24:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 80D54812B7; Thu, 25 Feb 2021 10:24:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MAyruxG6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 297A5816A7; Thu, 25 Feb 2021 10:23:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AB6AF80F00 for ; Thu, 25 Feb 2021 10:23:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-ed1-x534.google.com with SMTP id s8so5935394edd.5 for ; Thu, 25 Feb 2021 01:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=brq90tN74kRsnjK01Vv1A2HvG5MDxcmOKGtaXg8LJcI=; b=MAyruxG6H+8T+TZK186KqIE/RkETzT2m8AwjJtC0U3OfyAtCmpLkQCjohDiKKNOOzi 8smAj6Xv77aJgDWyCvIZ1M7HLKawdrlWu+mrXcpaVuHOi5APjgpOY+S0ttx9F8kzxmfL V4kVzPZE5zPRhJ9qDPFqdgdwp1g/koG7hXbiipzJTKK5BkhYwlvNzo4l+hkGhr/hcwqb 1yZH30/PHOLeS9FuFjYXeA6oBnpeKqfX25ygWaEK9AR/OFzyu6TtXEFzMXXt/0stjsQg N37m3/WKsS/Rf0zy+Y8wYTuefQCNyFlpXnaFZJawz9UqS/u83fCkoxvBqXDgzknnQz4T s+TQ== 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=brq90tN74kRsnjK01Vv1A2HvG5MDxcmOKGtaXg8LJcI=; b=a3v9LQMYjT9m8jmXlI6axdLmIxRLSq0G814WZ2wzNo82q+6PDSrHDhQOb8YP1S3bpw WJZ8jkbNWmZeKn+/P4tddHM4vzGXHACM18JVCvd/Zn6V7cAlA+kbyr4x3q5PNN4Hz52C DhkMbwyuHN+t7/EA20AqZ1BRO2q5eMWxp2wiqigo0r7A2YD+YbuU6zWpIcmPFRRf9C1B Uk1eehCO8+6YICQEqYg4jNLMvEblwDfTvfGEKfR/F5lG0CgUXU1oUpe/HgDKJANJTPA/ bfTzfMGlJaRsyLnkwYEU2AOTjNL7BKPN3jMlzEu2CP3v4FbaqhGi1pxNyF3FjnLTCDQY s9BQ== X-Gm-Message-State: AOAM531LqtcUEhohcW2KNYuTSiRBAzTsd7wUVgRqJzqF75NAyLhwov8M uhk/gnjQPrgxu5mEHHX43N0= X-Google-Smtp-Source: ABdhPJzIAfa1C54o+lKBfu7ZM20ltGv7ifuC3gmbJWCBAQcZn/LGflr9kSjRU9y225XD4+opmYbclA== X-Received: by 2002:aa7:d296:: with SMTP id w22mr1941960edq.264.1614245028449; Thu, 25 Feb 2021 01:23:48 -0800 (PST) Received: from pek-vx-bsp2.wrs.com (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180]) by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.23.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Feb 2021 01:23:48 -0800 (PST) From: Bin Meng To: Simon Glass , Alexander Graf , Priyanka Jain Cc: U-Boot Mailing List , Tom Rini Subject: [PATCH v3 05/38] ppc: qemu: Fix CONFIG_SYS_PCI_MAP_END Date: Thu, 25 Feb 2021 17:22:26 +0800 Message-Id: <1614244979-48216-6-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614244979-48216-1-git-send-email-bmeng.cn@gmail.com> References: <1614244979-48216-1-git-send-email-bmeng.cn@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean CONFIG_SYS_PCI_MAP_END currently points to 0xe8000000, which means the upper end of the virtual address mapped to PCI bus address ends at 0xe8000000. But this is wrong as the CCSBAR was already mapped at 0xe0000000 with a 1 MiB size. Fixes: fa08d3951777 ("PPC 85xx: Add qemu-ppce500 machine") Signed-off-by: Bin Meng Reviewed-by: Priyanka Jain --- (no changes since v1) include/configs/qemu-ppce500.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/qemu-ppce500.h b/include/configs/qemu-ppce500.h index ee6ef18..f13e4ea 100644 --- a/include/configs/qemu-ppce500.h +++ b/include/configs/qemu-ppce500.h @@ -35,7 +35,7 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void); /* Virtual address range for PCI region maps */ #define CONFIG_SYS_PCI_MAP_START 0x80000000 -#define CONFIG_SYS_PCI_MAP_END 0xe8000000 +#define CONFIG_SYS_PCI_MAP_END 0xe0000000 /* Virtual address to a temporary map if we need it (max 128MB) */ #define CONFIG_SYS_TMPVIRT 0xe8000000