From nobody Sun Feb 8 09:11:42 2026 Delivered-To: importer@patchew.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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1688729895; cv=none; d=zohomail.com; s=zohoarc; b=fmml4ZTdoA///oZzNKsIMsv8Ns6p1KnzJRwMCRiz0m4sSWmQRaTecb8xkq+Jp76EToeA+1ksBsAEHqHoKOAmQTMdFYbw425mXAbA3ngh4xVY8e0g/93I6AUcKAEBFLUJ43Mbv+mLDLeLbOQYm8cZb3M++FBCwXKvMZ07eYNQOWw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688729895; 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=o9qvuiwNml4DNItsKdRCuXV/BuKgusjYyUeOzlehw/I=; b=XdhwqY5n6d0HEDkJ8oTcEJ3C8IYmYs9ErqWYMbl4+0iipxMHfjLZHZueqeEgArdjebkcT4DzL3yt73QxUBtPtsLInKsMiNfISidDALljciktZf58z/rBDtFu3aZE0lhk5Aazovoj2xNlmGcfLaO6mn/RjBtpxzL3wlBD1AGsgv0= 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) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 168872989553788.96994729339178; Fri, 7 Jul 2023 04:38:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHjiF-00059S-3C; Fri, 07 Jul 2023 07:33:23 -0400 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 1qHji9-0004go-5q; Fri, 07 Jul 2023 07:33:17 -0400 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHji7-0006sp-Fh; Fri, 07 Jul 2023 07:33:16 -0400 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6b8a6ca994eso1611960a34.1; Fri, 07 Jul 2023 04:33:14 -0700 (PDT) Received: from grind.. ([2804:14c:f435:9162::1002]) by smtp.gmail.com with ESMTPSA id g17-20020a9d6c51000000b006b74b37f5e5sm1574859otq.20.2023.07.07.04.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 04:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688729594; x=1691321594; 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=o9qvuiwNml4DNItsKdRCuXV/BuKgusjYyUeOzlehw/I=; b=Al968s/r+qZXPnl0ByIq5i7OiidZc1VRX/AIkfKqTBW81HT5fFqW6M1hx6ASGAAeqE g7yVzjrPcSNhtahtwyh/dJHdAxiLWXXaz1QPpm3Q77ayMLY/poEWH4E9xwFAbQxY4Xtl uNGaft2VnZoFAhI7lJWpDvirfDj3BO4brrV0PPy+rCt9YhfO4nHmO9C0Prm1SPpyAdkD +8gEyQ3JvWJgaoe/u9C31rwVv692CAwpS57le/UWdQdzs5c25v99uwdTjfljaNkPnh8F kzORBYWSSigGp9yNKpAHyydQZp6Z0voUhctuACAkhpRf1dxCPAqAfRrZbuPDNi9VB2Dl qMmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688729594; x=1691321594; 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=o9qvuiwNml4DNItsKdRCuXV/BuKgusjYyUeOzlehw/I=; b=Wy9RyNO/1lNGCUXZOwp5cWJlgpaVbp9c3uzsp/zx7XHA5RhG8s9QThb15khIXteO6w GFXcHhsJEq+RY6B682tug92eU1+Fywg+fuhJucWzKYq8N89korPdPLNZc9mjzVTE1RxX kFf9BClH/slU3IWgSwXTORlF8WRd5UvG6YQX/ocns9pF4zanpno5bbUaTUXqqIhgmzCH a6Kax3p3rWizR/Ht5XVy5LsHVH0ns2WO9qvw/Zam6CPjGWQDCPB5fkyxgPOPf6GaQ1k9 EYnRUaCwACibKd7UT/WRAZHuq2poIbO8UaFenLISDkdGcjsEEG65SVxo1e87NNBOP6lK mR9A== X-Gm-Message-State: ABy/qLZWDuwvauTBk49J/hodI/xUnhqJO+HvzeYPAxYSAlqvcqVSPHrT 3YW1svhomGetKGu2VrH5J4nvjSRot8s= X-Google-Smtp-Source: APBJJlFW/7PgudZeYSbQ/OfvWvaIH6PC07IHJdHPk//jS1YDxL4igZjlBTAy3xjnlI8Ddr/8hOBWHw== X-Received: by 2002:a9d:6516:0:b0:6b8:3a3b:7ba5 with SMTP id i22-20020a9d6516000000b006b83a3b7ba5mr4985118otl.20.1688729593940; Fri, 07 Jul 2023 04:33:13 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, richard.henderson@linaro.org, BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 44/60] ppc440_pcix: Don't use iomem for regs Date: Fri, 7 Jul 2023 08:30:52 -0300 Message-ID: <20230707113108.7145-45-danielhb413@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230707113108.7145-1-danielhb413@gmail.com> References: <20230707113108.7145-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=danielhb413@gmail.com; helo=mail-ot1-x335.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1688729897861100003 From: BALATON Zoltan The iomem memory region is better used for the PCI IO space but currently used for registers. Stop using it for that to allow this to be cleaned up in the next patch. Signed-off-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <3def68f200edd4540393d6b3b03baabe15d649f2.1688586835.git.balato= n@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza --- hw/ppc/ppc440_pcix.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c index f10f93c533..899558b055 100644 --- a/hw/ppc/ppc440_pcix.c +++ b/hw/ppc/ppc440_pcix.c @@ -64,6 +64,7 @@ struct PPC440PCIXState { MemoryRegion container; MemoryRegion iomem; MemoryRegion busmem; + MemoryRegion regs; }; =20 #define PPC440_REG_BASE 0x80000 @@ -507,11 +508,11 @@ static void ppc440_pcix_realize(DeviceState *dev, Err= or **errp) h, "pci-conf-idx", 4); memory_region_init_io(&h->data_mem, OBJECT(s), &pci_host_data_le_ops, h, "pci-conf-data", 4); - memory_region_init_io(&s->iomem, OBJECT(s), &pci_reg_ops, s, - "pci.reg", PPC440_REG_SIZE); + memory_region_init_io(&s->regs, OBJECT(s), &pci_reg_ops, s, "pci-reg", + PPC440_REG_SIZE); memory_region_add_subregion(&s->container, PCIC0_CFGADDR, &h->conf_mem= ); memory_region_add_subregion(&s->container, PCIC0_CFGDATA, &h->data_mem= ); - memory_region_add_subregion(&s->container, PPC440_REG_BASE, &s->iomem); + memory_region_add_subregion(&s->container, PPC440_REG_BASE, &s->regs); sysbus_init_mmio(sbd, &s->container); } =20 --=20 2.41.0