From patchwork Mon Jul 19 13:19:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 1507025 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) Authentication-Results: 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=j8OAP6pJ; dkim-atps=neutral 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GT2Yb2j58z9sXL for ; Mon, 19 Jul 2021 23:21:39 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GT2Yb1PjCz3bfL for ; Mon, 19 Jul 2021 23:21:39 +1000 (AEST) 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=j8OAP6pJ; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com; envelope-from=hegdevasant@linux.vnet.ibm.com; receiver=) 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=j8OAP6pJ; dkim-atps=neutral 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 4GT2Xt1lwfz30Jp for ; Mon, 19 Jul 2021 23:21:01 +1000 (AEST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16JD4pVJ142473 for ; Mon, 19 Jul 2021 09:20:59 -0400 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=ToAxjbwMiu+cq00SNBXZsPqP7FyJsC0JFfhHAstEK2Y=; b=j8OAP6pJm8QyDlPT/+xRvOoFiuIzFqudRyJ0Yc0b9oyhCuiQ5eC6pqBNt6ro2KRnBlkw E/e0Ru22HQjOTwP9MnT9Iwc8Lzkz3JAqXDvTjfQ1yye8ev74W1+7NT5nTrmSf8KRSKwS RUJnfEsiEPiVw2g+MrJIgjCsR0SXvK3Eke/FSzEN97iFv2vRsfNAyXAWWwQ1+7/1Bhjk s2VjzLKB9XbijTp8manXiXP/AtjA7N/VtioBPi3pvbWzHK2l3q4MmAMhunwqwnsR0IaY 5gVCi3wVTqREar6HTL/gyrRBJZdyn3vbaPeNQ42eVXHupgX+Nhl5Ta4cW1l9hAFWGWkr aw== Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 39w5x20pds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Jul 2021 09:20:59 -0400 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16JDEGmW008999 for ; Mon, 19 Jul 2021 13:20:57 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma01fra.de.ibm.com with ESMTP id 39upu88cmm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Jul 2021 13:20:57 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16JDIawW21430582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jul 2021 13:18:36 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 430F1A4055; Mon, 19 Jul 2021 13:20:55 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4C982A4040; Mon, 19 Jul 2021 13:20:54 +0000 (GMT) Received: from hegdevasant.in.ibm.com (unknown [9.85.86.230]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 19 Jul 2021 13:20:54 +0000 (GMT) From: Vasant Hegde To: skiboot@lists.ozlabs.org Date: Mon, 19 Jul 2021 18:49:22 +0530 Message-Id: <20210719132012.150948-12-hegdevasant@linux.vnet.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210719132012.150948-1-hegdevasant@linux.vnet.ibm.com> References: <20210719132012.150948-1-hegdevasant@linux.vnet.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 7UcHToyxuaREX7NLy4sd5H3X582h5mpW X-Proofpoint-GUID: 7UcHToyxuaREX7NLy4sd5H3X582h5mpW X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-19_05:2021-07-19, 2021-07-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107190076 Subject: [Skiboot] [PATCH 11/61] external/xscom-utils: Add P10 chip info 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: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Vasant Hegde --- external/xscom-utils/adu_scoms.py | 2 ++ external/xscom-utils/getscom.c | 3 +++ external/xscom-utils/sram.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/external/xscom-utils/adu_scoms.py b/external/xscom-utils/adu_scoms.py index d651b7e9f..e90634190 100755 --- a/external/xscom-utils/adu_scoms.py +++ b/external/xscom-utils/adu_scoms.py @@ -176,6 +176,8 @@ class GetSCom(object): name = "P9 (Cumulus) processor" elif id == 0xd9: name = "P9P (Axone) processor" + elif id == 0xda: + name = "P10 processor" elif id == 0xe9: name = "Centaur memory buffer" else: diff --git a/external/xscom-utils/getscom.c b/external/xscom-utils/getscom.c index c18a04972..67596e618 100644 --- a/external/xscom-utils/getscom.c +++ b/external/xscom-utils/getscom.c @@ -56,6 +56,9 @@ static void print_chip_info(uint32_t chip_id) case 0xd9: name = "P9P (Axone) processor"; break; + case 0xda: + name = "P10 processor"; + break; case 0xe9: name = "Centaur memory buffer"; break; diff --git a/external/xscom-utils/sram.c b/external/xscom-utils/sram.c index 87df70e10..efe08d8e7 100644 --- a/external/xscom-utils/sram.c +++ b/external/xscom-utils/sram.c @@ -28,6 +28,7 @@ #define PVR_TYPE_P8NVL 0x004c /* Naples */ #define PVR_TYPE_P9 0x004e #define PVR_TYPE_P9P 0x004f /* Axone */ +#define PVR_TYPE_P10 0x0080 #ifdef __powerpc__ static uint64_t get_xscom_base(void) @@ -39,6 +40,7 @@ static uint64_t get_xscom_base(void) switch (pvr >> 16) { case PVR_TYPE_P9: case PVR_TYPE_P9P: + case PVR_TYPE_P10: /* P10 OCB_PIB OCC Control Register is same for P9 and P10 */ return OCB_PIB_BASE_P9; case PVR_TYPE_P8E: