From nobody Fri Oct 10 09:45:47 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1579660652; cv=none; d=zohomail.com; s=zohoarc; b=NwzTfHn7jgyfAtvjaYd8HcqucdcfVrQVOAMIKeUO2CJW+9dX/Uq5QjPo0gP4vmjYRAkDLsFwwGbAfI2S7S4gvQD3CEH0fEi6fZGWqJSoVMtgshCarjqknD1jnDwH3ZMLNK83P7t8bP5TqJ06A/iR3PJbIX+MDG9A5+wpREqcRXI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579660652; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LyaUkwCB5pGZjL9QvGR1TmTQePhraVEHq9yGAmQ9nZc=; b=HDgEGOTj5tA/eKC+Blo8VURjXsJ51LU0k5B6Yfei/hV4NxSp5RNj/I+7PVe/CznJqR2oXTGOda8ylyIMeuaeo54spg8IqrNjWG1ZbUEfiqtXVaqkoS3s97cXo8ego7agbC2Rh2U4wCmjylYpXmphCLWrh6v/m8anKInbHLWRGIg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1579660652089696.3955034327746; Tue, 21 Jan 2020 18:37:32 -0800 (PST) Received: from localhost ([::1]:35342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu5ta-00065e-Ha for importer@patchew.org; Tue, 21 Jan 2020 21:37:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44027) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu5pl-0001Ab-Kx for qemu-devel@nongnu.org; Tue, 21 Jan 2020 21:33:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu5pk-0001zT-I2 for qemu-devel@nongnu.org; Tue, 21 Jan 2020 21:33:33 -0500 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]:39760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iu5pk-0001z6-C4 for qemu-devel@nongnu.org; Tue, 21 Jan 2020 21:33:32 -0500 Received: by mail-pj1-x1042.google.com with SMTP id e11so2635043pjt.4 for ; Tue, 21 Jan 2020 18:33:32 -0800 (PST) Received: from localhost.localdomain (rrcs-173-198-77-92.west.biz.rr.com. [173.198.77.92]) by smtp.gmail.com with ESMTPSA id t1sm42935209pgq.23.2020.01.21.18.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 18:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LyaUkwCB5pGZjL9QvGR1TmTQePhraVEHq9yGAmQ9nZc=; b=jS8WIY5jn7QUqtD1vMXlFlqB3+ZWDYdnTQRfESwZiWps9NsmsD69Lo0aoSB0LfNzT3 MfgW57GQOcbF2U+gC02A8P1YzSc82dUg5eYmeuUNYpdeva5JnBUglrYdoBuSjyyXSrnq aF8Qbx5HdymNeaEQCMHQsaPnonqfjulv0GPDv5yX1svDUhGekcHIVTKsFufyREckTGgn fnz83kH9nCrpeRk2mz8DBsj1RtlrsL8tlTxfWj7yQXp1aRwBuR/r4lcp6elPKJN9xZzX j0ujs4p+noDICBTlHFfYv9MsHlhbsGmYhvRo0+1Wh63VEfbJ3qHQN+R8svfEUfvowcyt BF4Q== 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:mime-version:content-transfer-encoding; bh=LyaUkwCB5pGZjL9QvGR1TmTQePhraVEHq9yGAmQ9nZc=; b=lHzSKPRXCOk68gKUT09I2s3YicgLQAlPf3vqId+fIeVCIsDcZL9YQ54eJhAEZYPF/9 uR0vQYVWc8x3PQD0VRCfgiL1gYwxuYGRvXWjytaXcnVbS2usW356kdffVyGpgTdrqcjq hvbDrWxJd2mbZ4GmmtIFNFrtF9Oh98azO8LGlDTuzTKJkl7+fYWsB+WfemrXsAd/vc8s OtgxUG4HrJ1yXYVxmLKu2SZ+0sJG/MHEd2tqMrKbmFpT0hEp+ajWBRE4uilw0EMxqhqq ucOy19Yy+adXQ4b9tg+nYxdSBG8/kaPmrz/Ot7ZC3D1m+UgCa90TtTXpSXfIluqtC3Uh f8nA== X-Gm-Message-State: APjAAAVFX7vmKwPR7U/+I9bdrbKOyAqzTd24u6zFCX56Ya44yTFxRvHP vPlGelTrTl6QGd1E2OamsCrxMXIlB0M= X-Google-Smtp-Source: APXvYqw+jGSupeP23ec0Ay5SkGgrtiTM0Ndc/qAHRqChBXgY//X5a5Kc7eUVdBZX4xX1s0bOKBmXjQ== X-Received: by 2002:a17:902:b40b:: with SMTP id x11mr8833755plr.268.1579660411022; Tue, 21 Jan 2020 18:33:31 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 10/11] hw/hppa/machine: Map the PDC memory region with higher priority Date: Tue, 21 Jan 2020 16:32:55 -1000 Message-Id: <20200122023256.27556-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200122023256.27556-1-richard.henderson@linaro.org> References: <20200122023256.27556-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1042 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: peter.maydell@linaro.org, Helge Deller , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Philippe Mathieu-Daud=C3=A9 The region in range [0xf0000000 - 0xf1000000] is the PDC area (Processor Dependent Code), where the firmware is loaded. This region has higher priority than the main memory. When the machine has more than 3840MB of RAM, there is an overlap. Since the PDC is closer to the CPU in the bus hierarchy, it gets accessed first, and the CPU does not have access to the RAM in this range. To model the same behavior and keep a simple memory layout, reduce the priority of the RAM region. The PDC region ends overlapping the RAM. Acked-by: Helge Deller Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20200109000525.24744-4-f4bug@amsat.org> Signed-off-by: Richard Henderson --- hw/hppa/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index 57cb4e0f34..2d62a248b8 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -100,7 +100,7 @@ static void machine_hppa_init(MachineState *machine) ram_region =3D g_new(MemoryRegion, 1); memory_region_allocate_system_memory(ram_region, OBJECT(machine), "ram", ram_size); - memory_region_add_subregion(addr_space, 0, ram_region); + memory_region_add_subregion_overlap(addr_space, 0, ram_region, -1); =20 /* Init Lasi chip */ lasi_init(addr_space); --=20 2.20.1