From patchwork Thu Apr 4 05:56:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mahesh J Salgaonkar X-Patchwork-Id: 1919614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=OVRLPj7Y; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V99qc08Rjz1yYn for ; Thu, 4 Apr 2024 16:57:00 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=OVRLPj7Y; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4V99qb6Bwvz3dX3 for ; Thu, 4 Apr 2024 16:56:59 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=OVRLPj7Y; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=mahesh@linux.ibm.com; receiver=lists.ozlabs.org) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4V99q43kPvz3dS4 for ; Thu, 4 Apr 2024 16:56:32 +1100 (AEDT) Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4345tSie019605 for ; Thu, 4 Apr 2024 05:56:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=TYIO1ylPKankv400GYXGwPM/IYDxusbf+KoEFqBebM0=; b=OVRLPj7YbgSSIdjk2b7v5oE0ZA4mqkOb+G8mI3C4+3878y+V7gGWuKbNwkd5rynijPFc 4sdhopD7cJGFi7QxEpWqCcZSb4Qhk3/UtU/+f0SUZCpBLRK5LuDA5kzy7TK9BIrYABlR rjIfH5yWSaTLS5vxrr68GE9q2/o8ES5HnwjiDQPNmEPxND/q1TR4ExZ5haP7O9Wt0daa L1cmC2yamboK14kXWLFy8pBvJdVRbjM30b1KDgj/tLVRzUT6v+j885dCiHkXy2fVd8Vv 5O3UlVEunMUXvdnRpDC3vhHAMrWDOWUSmv0aKN0XiKY8vDXaHxwsxYn9Lh8uNzucUc4k Fg== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x9pfu003v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 04 Apr 2024 05:56:29 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43443B37022449 for ; Thu, 4 Apr 2024 05:56:29 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3x9eq0aaxr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 04 Apr 2024 05:56:28 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4345uNm048103732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 4 Apr 2024 05:56:25 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 435262004B; Thu, 4 Apr 2024 05:56:23 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6ED9220040; Thu, 4 Apr 2024 05:56:22 +0000 (GMT) Received: from jupiter.in.ibm.com (unknown [9.109.248.226]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 4 Apr 2024 05:56:22 +0000 (GMT) From: Mahesh Salgaonkar To: skiboot list Date: Thu, 4 Apr 2024 11:26:18 +0530 Message-ID: <20240404055618.1439108-4-mahesh@linux.ibm.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240404055618.1439108-1-mahesh@linux.ibm.com> References: <20240404055618.1439108-1-mahesh@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: jT-oA8Pu6th6Tri--2uKyoNSssHCFzd7 X-Proofpoint-GUID: jT-oA8Pu6th6Tri--2uKyoNSssHCFzd7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-04_02,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 spamscore=0 phishscore=0 mlxscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404040037 Subject: [Skiboot] [PATCH 4/4] external/mambo: skiboot.tcl add Power11 config X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Reza Arbab Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Setup skiboot.tcl with Power11 config to be boot on Power11 mambo. Signed-off-by: Mahesh Salgaonkar --- external/mambo/skiboot.tcl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 6c0eb5a0d0..cce84d2058 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -175,6 +175,34 @@ if { $default_config == "P10" } { } } +if { $default_config == "P11" } { + # PVR configured for POWER11 DD2.0, LPAR-per-thread + myconf config processor/initial/SIM_CTRL 0x0c1dd60000000000 + if { $mconf(threads) == 8 } { + # Big-core mode. + myconf config processor/initial/PVR 0x00820200 + myconf config processor/initial/SIM_CTRL1 0xc0400c0400040a40 + puts "Set P11 big-core mode" + } else { + # Small-core mode. + myconf config processor/initial/PVR 0x00821200 + myconf config processor/initial/SIM_CTRL1 0xc0400c0401040a40 + if { $mconf(threads) != 1 && $mconf(threads) != 2 && $mconf(threads) != 4 } { + puts "ERROR: Bad threads configuration" + exit + } + if { $mconf(threads) != 4 && $mconf(cpus) != 1 } { + puts "ERROR: Bad threads, cpus configuration" + exit + } + + puts "Set P11 small-core mode" + } + + if { $mconf(numa) } { + myconf config memory_region_id_shift 44 + } +} if { $mconf(numa) } { myconf config memory_regions $mconf(cpus)