From nobody Mon Feb 9 19:53:23 2026 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=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579781977; cv=none; d=zohomail.com; s=zohoarc; b=Z5nxHgFDDAT8b3DjmIn72D7yoOi/oO8OGp4OOI0Hwz7hLavq9eErq7NFMr9/HLhDkZhfLRU4tlXHjFqQs9gwtGcbE0LryTBCgXTueP41iZwVjrrREiuYEt8M0ZqULgGuWfWyk2vSGHr3fWWkmSTTiq6NKQSDXvth3Y0r4VK9RxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579781977; h=Content-Type:Content-Transfer-Encoding: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=WV1vSk+tjh6xNbYHYgEON0N9FleWECMsdzY10U96mGg=; b=C7mjZpJ5dSsL4ICTdi5aDdhR4tkrG8vDPCwp1eq7f4JYYFGpVp5+sOpYqX4Gmi9ADpiBeTKwh+QB2V+YYDXRtcORTk+M40VeDfensDdVWh5caVzWLXGPPDj9LSezkNH1CmfxwpxBDmUaOZPOOr0A4BCkM5Imh3e03hcLS75vtjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1579781977352515.8778090875101; Thu, 23 Jan 2020 04:19:37 -0800 (PST) Received: from localhost ([::1]:56050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iubSQ-0000Lq-Pp for importer@patchew.org; Thu, 23 Jan 2020 07:19:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35712) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuasV-0006P7-C1 for qemu-devel@nongnu.org; Thu, 23 Jan 2020 06:42:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iuasU-0004Zd-6d for qemu-devel@nongnu.org; Thu, 23 Jan 2020 06:42:27 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:34772 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iuasU-0004Z1-2c for qemu-devel@nongnu.org; Thu, 23 Jan 2020 06:42:26 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-sRfegIcVM1KC6sMe8XyPZQ-1; Thu, 23 Jan 2020 06:42:24 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F211100550E for ; Thu, 23 Jan 2020 11:42:23 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.37.153.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0761D100032E for ; Thu, 23 Jan 2020 11:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579779745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WV1vSk+tjh6xNbYHYgEON0N9FleWECMsdzY10U96mGg=; b=PyE4bL+JfWMe+njYV21gcszdcnTAv/xjZyJQmACRrVTJRYzYuttf2qxkuBjKSvpfbAyupU IONZOERWCm8QPEz3DWp1PCrZE+qjFa2lZDQNd8HZNP6/29JY77w0drS4ZFpM+Sb4k5Wke2 sMUvNOA6xiQDkjtR5nzYc+XDHj/+5u4= From: Igor Mammedov To: qemu-devel@nongnu.org Subject: [PATCH REPOST v3 41/80] hw/hppa/machine: Map the PDC memory region with higher priority Date: Thu, 23 Jan 2020 12:38:06 +0100 Message-Id: <1579779525-20065-42-git-send-email-imammedo@redhat.com> In-Reply-To: <1579779525-20065-1-git-send-email-imammedo@redhat.com> References: <1579779525-20065-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: sRfegIcVM1KC6sMe8XyPZQ-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.61 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Acked-by: Helge Deller Signed-off-by: Igor Mammedov --- 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 119ae4d..810e671 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -98,7 +98,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 Dino (PCI host bus chip). */ pci_bus =3D dino_init(addr_space, &rtc_irq, &serial_irq); --=20 2.7.4