Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1340950/?format=api
{ "id": 1340950, "url": "http://patchwork.ozlabs.org/api/patches/1340950/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/patch/20200804173223.36280-10-svaidy@linux.ibm.com/", "project": { "id": 44, "url": "http://patchwork.ozlabs.org/api/projects/44/?format=api", "name": "skiboot firmware development", "link_name": "skiboot", "list_id": "skiboot.lists.ozlabs.org", "list_email": "skiboot@lists.ozlabs.org", "web_url": "http://github.com/open-power/skiboot", "scm_url": "http://github.com/open-power/skiboot", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20200804173223.36280-10-svaidy@linux.ibm.com>", "list_archive_url": null, "date": "2020-08-04T17:32:21", "name": "[v6,09/11] Add POWER9 Cumulus processor PVR type", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "3ad5cc4bede97f1ed446ab7511d6567429289426", "submitter": { "id": 76774, "url": "http://patchwork.ozlabs.org/api/people/76774/?format=api", "name": "Vaidyanathan Srinivasan", "email": "svaidy@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/skiboot/patch/20200804173223.36280-10-svaidy@linux.ibm.com/mbox/", "series": [ { "id": 194127, "url": "http://patchwork.ozlabs.org/api/series/194127/?format=api", "web_url": "http://patchwork.ozlabs.org/project/skiboot/list/?series=194127", "date": "2020-08-04T17:32:14", "name": "Initial fused-core support for POWER9", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/194127/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1340950/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/1340950/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "skiboot@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "skiboot@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4BLhkY0pXKz9sRR\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 5 Aug 2020 03:36:21 +1000 (AEST)", "from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4BLhkX6pMCzDqdP\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 5 Aug 2020 03:36:20 +1000 (AEST)", "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4BLhfq2b3HzDqXP\n for <skiboot@lists.ozlabs.org>; Wed, 5 Aug 2020 03:33:07 +1000 (AEST)", "from pps.filterd (m0098410.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 074HWxrT045788; Tue, 4 Aug 2020 13:33:04 -0400", "from pps.reinject (localhost [127.0.0.1])\n by mx0a-001b2d01.pphosted.com with ESMTP id 32q87n83vu-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 04 Aug 2020 13:33:03 -0400", "from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1])\n by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 074HX2bK045972;\n Tue, 4 Aug 2020 13:33:02 -0400", "from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com\n [169.51.49.102])\n by mx0a-001b2d01.pphosted.com with ESMTP id 32q87n83ne-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 04 Aug 2020 13:33:02 -0400", "from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1])\n by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 074HQoMY006440;\n Tue, 4 Aug 2020 17:32:44 GMT", "from b06cxnps4076.portsmouth.uk.ibm.com\n (d06relay13.portsmouth.uk.ibm.com [9.149.109.198])\n by ppma06ams.nl.ibm.com with ESMTP id 32mynh3hvn-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 04 Aug 2020 17:32:43 +0000", "from b06wcsmtp001.portsmouth.uk.ibm.com\n (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160])\n by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 074HWfl122348222\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Tue, 4 Aug 2020 17:32:41 GMT", "from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 961B6A4064;\n Tue, 4 Aug 2020 17:32:41 +0000 (GMT)", "from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 5BB59A4054;\n Tue, 4 Aug 2020 17:32:40 +0000 (GMT)", "from drishya.in.ibm.com (unknown [9.102.1.52])\n by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP;\n Tue, 4 Aug 2020 17:32:40 +0000 (GMT)" ], "Authentication-Results": [ "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=linux.ibm.com", "lists.ozlabs.org; spf=pass (sender SPF authorized)\n smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1;\n helo=mx0a-001b2d01.pphosted.com; envelope-from=svaidy@linux.ibm.com;\n receiver=<UNKNOWN>)", "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com" ], "From": "Vaidyanathan Srinivasan <svaidy@linux.ibm.com>", "To": "\"Oliver O'Halloran\" <oohall@gmail.com>", "Date": "Tue, 4 Aug 2020 23:02:21 +0530", "Message-Id": "<20200804173223.36280-10-svaidy@linux.ibm.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20200804173223.36280-1-svaidy@linux.ibm.com>", "References": "<20200804173223.36280-1-svaidy@linux.ibm.com>", "MIME-Version": "1.0", "X-TM-AS-GCONF": "00", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687\n definitions=2020-08-04_04:2020-08-03,\n 2020-08-04 signatures=0", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n mlxscore=0 phishscore=0\n mlxlogscore=999 spamscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0\n clxscore=1015 malwarescore=0 impostorscore=0 priorityscore=1501\n adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n engine=8.12.0-2006250000 definitions=main-2008040130", "Subject": "[Skiboot] [PATCH v6 09/11] Add POWER9 Cumulus processor PVR type", "X-BeenThere": "skiboot@lists.ozlabs.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Mailing list for skiboot development <skiboot.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/skiboot>,\n <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/skiboot/>", "List-Post": "<mailto:skiboot@lists.ozlabs.org>", "List-Help": "<mailto:skiboot-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/skiboot>,\n <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe>", "Cc": "skiboot@lists.ozlabs.org, Michael Neuling <mikey@neuling.org>,\n Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org", "Sender": "\"Skiboot\"\n <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>" }, "content": "From: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>\n\nAdd PVR checks and feature mapping for POWER9 Cumulus chip.\n\nSigned-off-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com>\nSigned-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>\n---\n core/cpufeatures.c | 19 +++++++++++++++++++\n include/processor.h | 15 +++++++++++++++\n 2 files changed, 34 insertions(+)", "diff": "diff --git a/core/cpufeatures.c b/core/cpufeatures.c\nindex f31850ab..2e33d8ad 100644\n--- a/core/cpufeatures.c\n+++ b/core/cpufeatures.c\n@@ -942,6 +942,25 @@ void dt_add_cpufeatures(struct dt_node *root)\n \t\t\tdefault:\n \t\t\t\tassert(0);\n \t\t\t}\n+\t\t} else if (is_power9c(version) &&\n+ (PVR_VERS_MAJ(version) == 1)) {\n+ /* P9C DD1.x */\n+\t\t\tswitch (PVR_VERS_MIN(version)) {\n+ case 1:\n+\t\t\t\t/* Cumulus DD1.1 => Nimbus DD2.1 */\n+\t\t\t\tcpu_feature_cpu = CPU_P9_DD2_0_1;\n+\t\t\t\tbreak;\n+\t\t\tcase 2:\n+\t\t\t\t/* Cumulus DD1.2 */\n+\t\t\t\tcpu_feature_cpu = CPU_P9_DD2_2;\n+\t\t\t\tbreak;\n+\t\t\tcase 3:\n+\t\t\t\t/* Cumulus DD1.3 */\n+\t\t\t\tcpu_feature_cpu = CPU_P9_DD2_3;\n+\t\t\t\tbreak;\n+\t\t\tdefault:\n+\t\t\t\tassert(0);\n+\t\t\t}\n \t\t} else {\n \t\t\tassert(0);\n \t\t}\ndiff --git a/include/processor.h b/include/processor.h\nindex ddec6c04..70e749f1 100644\n--- a/include/processor.h\n+++ b/include/processor.h\n@@ -248,6 +248,21 @@ static inline bool is_fused_core(uint32_t version)\n \t}\n }\n \n+static inline bool is_power9c(uint32_t version) \n+{\n+\n+\tif (PVR_TYPE(version) != PVR_TYPE_P9)\n+\t\treturn false;\n+\t/*\n+\t * Bit 13 tells us:\n+\t * 0 = Scale out (aka Nimbus)\n+\t * 1 = Scale up (aka Cumulus)\n+\t */\n+\tif (!((version >> 13) & 1))\n+\t\treturn false;\n+\treturn true;\n+}\n+\n #ifndef __TEST__\n \n /* POWER9 and above only */\n", "prefixes": [ "v6", "09/11" ] }