From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE671606A31A for ; Tue, 1 Dec 2026 07:56:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KYNz/tRh Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYIib-0007QU-1P; Tue, 01 Dec 2026 02:56:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYIiQ-0007Bk-RD for qemu-devel@nongnu.org; Tue, 01 Dec 2026 02:55:56 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYIiM-0000sp-De for qemu-devel@nongnu.org; Tue, 01 Dec 2026 02:55:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796111750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PkJKgy4BfU/9uNxxMW4uFAuVUcU/gbNxnLAgh77ZjWQ=; b=KYNz/tRh4aEB3o+m1CAbwpIpoOZakg9w93Ob/LoYCKExYvCpbrs7dlYpqC7MApKR1jsCDu ocffjyv1Banp+aG68Shc7IEkFvhtivUJQZ3Jf0IG/BC+cK3uZb9pkiSaCAAuP5ezY9fhlU bGA4Nxr/HanFzH0mkxRhtwKOEgwQrl0= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-395-60Wi-UHRMxmugeOELhXhIA-1; Tue, 1 Dec 2026 07:55:42 +0000 X-MC-Unique: 60Wi-UHRMxmugeOELhXhIA-1 X-Mimecast-MFC-AGG-ID: 60Wi-UHRMxmugeOELhXhIA_1796111741 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 72640195FE04; Tue, 1 Dec 2026 07:55:41 +0000 (UTC) Received: from thuth-p1g4.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DE545342; Tue, 1 Dec 2026 07:55:39 +0000 (UTC) From: Thomas Huth To: Harsh Prateek Bora , qemu-ppc@nongnu.org Cc: Nicholas Piggin , Amit Machhiwal , qemu-devel@nongnu.org Subject: [PATCH 1/3] hw/ppc/spapr: Remove obsolete code for the pseries-5.0 machine Date: Tue, 1 Dec 2026 08:55:34 +0100 Message-ID: <20261201075536.40736-2-thuth@redhat.com> In-Reply-To: <20261201075536.40736-1-thuth@redhat.com> References: <20261201075536.40736-1-thuth@redhat.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The pseries-5.0 machine has already been disabled automatically since it is older than 6 years. Remove this dead code now, together with the now unused "pre_5_1_assoc" parts. Signed-off-by: Thomas Huth --- include/hw/pci-host/spapr.h | 3 --- include/hw/ppc/spapr.h | 1 - hw/ppc/spapr.c | 19 ------------------- hw/ppc/spapr_numa.c | 9 +-------- hw/ppc/spapr_pci.c | 2 -- 5 files changed, 1 insertion(+), 33 deletions(-) diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h index 0db87f12815..3c9344fc611 100644 --- a/include/hw/pci-host/spapr.h +++ b/include/hw/pci-host/spapr.h @@ -81,9 +81,6 @@ struct SpaprPhbState { uint32_t numa_node; bool pcie_ecs; /* Allow access to PCIe extended config space? */ - - /* Fields for migration compatibility hacks */ - bool pre_5_1_assoc; }; #define SPAPR_PCI_MEM_WIN_BUS_OFFSET 0x80000000ULL diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 98a9099b8ab..4db3a267bac 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -143,7 +143,6 @@ struct SpaprCapabilities { struct SpaprMachineClass { MachineClass parent_class; - bool pre_5_1_assoc_refpoints; bool pre_5_2_numa_associativity; bool pre_6_2_numa_affinity; SpaprResizeHpt resize_hpt_default; diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 54e3cc3cbe4..2c203622657 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -4999,25 +4999,6 @@ static void spapr_machine_5_1_class_options(MachineClass *mc) DEFINE_SPAPR_MACHINE(5, 1); -/* - * pseries-5.0 - */ -static void spapr_machine_5_0_class_options(MachineClass *mc) -{ - SpaprMachineClass *smc = SPAPR_MACHINE_CLASS(mc); - static GlobalProperty compat[] = { - { TYPE_SPAPR_PCI_HOST_BRIDGE, "pre-5.1-associativity", "on" }, - }; - - spapr_machine_5_1_class_options(mc); - compat_props_add(mc->compat_props, hw_compat_5_0, hw_compat_5_0_len); - compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat)); - mc->numa_mem_supported = true; - smc->pre_5_1_assoc_refpoints = true; -} - -DEFINE_SPAPR_MACHINE(5, 0); - static void spapr_machine_register_types(void) { type_register_static(&spapr_machine_info); diff --git a/hw/ppc/spapr_numa.c b/hw/ppc/spapr_numa.c index ea6762d3d2b..faa35f12275 100644 --- a/hw/ppc/spapr_numa.c +++ b/hw/ppc/spapr_numa.c @@ -283,9 +283,7 @@ static void spapr_numa_FORM1_affinity_init(SpaprMachineState *spapr, spapr->FORM1_assoc_array[i][0] = cpu_to_be32(FORM1_DIST_REF_POINTS); for (j = 1; j < FORM1_DIST_REF_POINTS; j++) { - uint32_t gpu_assoc = smc->pre_5_1_assoc_refpoints ? - SPAPR_GPU_NUMA_ID : cpu_to_be32(i); - spapr->FORM1_assoc_array[i][j] = gpu_assoc; + spapr->FORM1_assoc_array[i][j] = cpu_to_be32(i); } spapr->FORM1_assoc_array[i][FORM1_DIST_REF_POINTS] = cpu_to_be32(i); @@ -471,11 +469,6 @@ static void spapr_numa_FORM1_write_rtas_dt(SpaprMachineState *spapr, memcpy(refpoints, legacy_refpoints, sizeof(legacy_refpoints)); memcpy(maxdomains, legacy_maxdomains, sizeof(legacy_maxdomains)); - - /* pseries-5.0 and older reference-points array is {0x4, 0x4} */ - if (smc->pre_5_1_assoc_refpoints) { - nr_refpoints = 2; - } } _FDT(fdt_setprop(fdt, rtas, "ibm,associativity-reference-points", diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index ea323fa0989..fd7eac90277 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -2042,8 +2042,6 @@ static const Property spapr_phb_properties[] = { DEFINE_PROP_UINT32("numa_node", SpaprPhbState, numa_node, -1), DEFINE_PROP_BOOL("pcie-extended-configuration-space", SpaprPhbState, pcie_ecs, true), - DEFINE_PROP_BOOL("pre-5.1-associativity", SpaprPhbState, - pre_5_1_assoc, false), }; static const VMStateDescription vmstate_spapr_pci_lsi = { -- 2.56.1