From nobody Tue Nov 26 04:44:39 2024 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=1710183272; cv=none; d=zohomail.com; s=zohoarc; b=bvsndU/KgyMZ4VuQ0RW8oqKL5f69sNxjQqvxvXlRJOcYyQXLx0DVjOpFiA+fhexZQHqWsbl7TZM0+JXgIcaOjtXK2fIpwM8CwiHNeZIFv6vQ4h/KXQPwmKaa6nFEY80IY1M7ZVvb7qVWZFM5mXmjwfdhNvgnnDyhy/6+BYJ5T+k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1710183272; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=nmMv63TVrq95FfXDjo4ojFa+1yY/QOY9ONxqne1eyHA=; b=FedEWAhbJEUzmc1JV5SBJtfudS7UPkyWak29fdonrketpezN1lo/CxPScizmpbK49ZFHKt3VAht8VGCnvLllN9s+WGdaW4hvVY9G9gdqu7OyK8pOhvMoa/KSFv5H7w1SYqx9+I3NXOg+9OxR7+EUQptTjw3kjabOepLNEwHt0pw= 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 17101832727413.031732751360778; Mon, 11 Mar 2024 11:54:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjklA-00053E-Mn; Mon, 11 Mar 2024 14:52:28 -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 1rjkl0-0004uI-U7; Mon, 11 Mar 2024 14:52:20 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rjkkx-0004yd-47; Mon, 11 Mar 2024 14:52:17 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1d944e8f367so36504795ad.0; Mon, 11 Mar 2024 11:52:12 -0700 (PDT) Received: from wheely.local0.net ([118.208.155.46]) by smtp.gmail.com with ESMTPSA id z2-20020a170903018200b001dd7d00f7afsm4843887plg.18.2024.03.11.11.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 11:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710183131; x=1710787931; darn=nongnu.org; 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=nmMv63TVrq95FfXDjo4ojFa+1yY/QOY9ONxqne1eyHA=; b=fdI3vaP/plDDlRnE8Gjbc0VXjoTzFOftN3FETrEA2G7crI3+tlD/SgsY+lEundBkar 5MWjBLvOCsUf0WBjcDxVDImpuWbAaw/T+Zj9t9bM52osnn19Ap7xC4BeG2KmkeoAYEya izjnXl6UR/DfHmRJbowhuA/VmeD4z3GHQH3+jbrZnwhUI3CsZOga+GLRuWwlwiTKCSBc 9AM2ZVjaFGrdCmyUOSdmLrAadqAXpXAG7fYd72v0QGFzDVO7v8Pjt1YDbTxR/OKZQolY tvKiEOnySiEivU6g0DaQEwbDPTYipqyfDCsGwsfK/2wjtDox3fm/BeuUE3CaVRjHclnd CdTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710183131; x=1710787931; 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=nmMv63TVrq95FfXDjo4ojFa+1yY/QOY9ONxqne1eyHA=; b=m1aEfzUepgmMoQDzoh+bvv1SmlYRnPAYkn++HtDOTFdJfXI37nHeogMVhofp+zuyDc u7d1PNOkfR4GUfBA0+PkbJZtVo3jKXN6op6uBOLo2GxC6LiwdySqT9R7lZYHCUhQdaGo 7BvDnim7up7/fl4J52iaTaON8eiGuhNSeF2gsuhdHN/D4hgcr57132yBRqu1I7SU3jbf dPYTR3iwnr89qCUd7Pmw957EYFfS3inj7o1hj12dK4UpT1PDGaVR4FeeXwBkZqLf/qaY mnqfs8IZSvfgG/J5eqJZgHLNhaRlPjw6nDaxi1otH+EIO5AtV2en50RXe/D8r3RxEWZb SuIA== X-Forwarded-Encrypted: i=1; AJvYcCWclKD2+kOyawohi2H/kqJFf7rLpOad8UnDK89rfU+WVrdoaBYYLFrR+pfKQ4D0nNxnuRmmQixkRPNDv18uMba9jLgr+UQ= X-Gm-Message-State: AOJu0YzFNwcHwaSiRp2vayx7mwmNhrJJWJIliaQSTl72K2KJbW8YDtZS sIdZ+ipZ9yEQw0ZEgZ2jGidJtA62mD0PzzJEUMHei66sXb0j/HGJqzj9IqvKn/Q= X-Google-Smtp-Source: AGHT+IGVzfZQSd6isgkbpEak6b0ZOrB50Pe8S/Ykk/DUzIRfv2pPU3JYpuGVtaTGZTazDgEkGOCszw== X-Received: by 2002:a17:903:1209:b0:1dc:af70:9f78 with SMTP id l9-20020a170903120900b001dcaf709f78mr6227729plh.46.1710183131455; Mon, 11 Mar 2024 11:52:11 -0700 (PDT) From: Nicholas Piggin To: qemu-ppc@nongnu.org Cc: Nicholas Piggin , qemu-devel@nongnu.org, Daniel Henrique Barboza , David Gibson , Harsh Prateek Bora Subject: [PATCH 01/13] ppc: Drop support for POWER9 and POWER10 DD1 chips Date: Tue, 12 Mar 2024 04:51:43 +1000 Message-ID: <20240311185200.2185753-2-npiggin@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240311185200.2185753-1-npiggin@gmail.com> References: <20240311185200.2185753-1-npiggin@gmail.com> MIME-Version: 1.0 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::634; envelope-from=npiggin@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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: 1710183274097100001 Content-Type: text/plain; charset="utf-8" The POWER9 DD1 and POWER10 DD1 chips are not public and are no longer of any use in QEMU. Remove them. Signed-off-by: Nicholas Piggin Reviewed-by: Harsh Prateek Bora --- hw/ppc/spapr_cpu_core.c | 2 -- target/ppc/cpu-models.c | 4 ---- target/ppc/cpu_init.c | 7 ++----- target/ppc/kvm.c | 11 ----------- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 40b7c52f7f..50523ead25 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -394,10 +394,8 @@ static const TypeInfo spapr_cpu_core_type_infos[] =3D { DEFINE_SPAPR_CPU_CORE_TYPE("power8_v2.0"), DEFINE_SPAPR_CPU_CORE_TYPE("power8e_v2.1"), DEFINE_SPAPR_CPU_CORE_TYPE("power8nvl_v1.0"), - DEFINE_SPAPR_CPU_CORE_TYPE("power9_v1.0"), DEFINE_SPAPR_CPU_CORE_TYPE("power9_v2.0"), DEFINE_SPAPR_CPU_CORE_TYPE("power9_v2.2"), - DEFINE_SPAPR_CPU_CORE_TYPE("power10_v1.0"), DEFINE_SPAPR_CPU_CORE_TYPE("power10_v2.0"), #ifdef CONFIG_KVM DEFINE_SPAPR_CPU_CORE_TYPE("host"), diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c index 36e465b390..f2301b43f7 100644 --- a/target/ppc/cpu-models.c +++ b/target/ppc/cpu-models.c @@ -728,14 +728,10 @@ "POWER8 v2.0") POWERPC_DEF("power8nvl_v1.0", CPU_POWERPC_POWER8NVL_v10, POWER= 8, "POWER8NVL v1.0") - POWERPC_DEF("power9_v1.0", CPU_POWERPC_POWER9_DD1, POWER= 9, - "POWER9 v1.0") POWERPC_DEF("power9_v2.0", CPU_POWERPC_POWER9_DD20, POWER= 9, "POWER9 v2.0") POWERPC_DEF("power9_v2.2", CPU_POWERPC_POWER9_DD22, POWER= 9, "POWER9 v2.2") - POWERPC_DEF("power10_v1.0", CPU_POWERPC_POWER10_DD1, POWER= 10, - "POWER10 v1.0") POWERPC_DEF("power10_v2.0", CPU_POWERPC_POWER10_DD20, POWER= 10, "POWER10 v2.0") #endif /* defined (TARGET_PPC64) */ diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 1d3d1db7c3..572cbdf25f 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -6350,10 +6350,7 @@ static bool ppc_pvr_match_power9(PowerPCCPUClass *pc= c, uint32_t pvr, bool best) return false; } =20 - if ((pvr & 0x0f00) =3D=3D 0x100) { - /* DD1.x always matches power9_v1.0 */ - return true; - } else if ((pvr & 0x0f00) =3D=3D 0x200) { + if ((pvr & 0x0f00) =3D=3D 0x200) { if ((pvr & 0xf) < 2) { /* DD2.0, DD2.1 match power9_v2.0 */ if ((pcc->pvr & 0xf) =3D=3D 0) { @@ -6536,7 +6533,7 @@ static bool ppc_pvr_match_power10(PowerPCCPUClass *pc= c, uint32_t pvr, bool best) } =20 if ((pvr & 0x0f00) =3D=3D (pcc->pvr & 0x0f00)) { - /* Major DD version matches to power10_v1.0 and power10_v2.0 */ + /* Major DD version matches power10_v2.0 */ return true; } =20 diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index bcf30a5400..525fbe3892 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -2369,17 +2369,6 @@ static void kvmppc_host_cpu_class_init(ObjectClass *= oc, void *data) =20 #if defined(TARGET_PPC64) pcc->radix_page_info =3D kvmppc_get_radix_page_info(); - - if ((pcc->pvr & 0xffffff00) =3D=3D CPU_POWERPC_POWER9_DD1) { - /* - * POWER9 DD1 has some bugs which make it not really ISA 3.00 - * compliant. More importantly, advertising ISA 3.00 - * architected mode may prevent guests from activating - * necessary DD1 workarounds. - */ - pcc->pcr_supported &=3D ~(PCR_COMPAT_3_00 | PCR_COMPAT_2_07 - | PCR_COMPAT_2_06 | PCR_COMPAT_2_05); - } #endif /* defined(TARGET_PPC64) */ } =20 --=20 2.42.0