From patchwork Sun Mar 24 17:25:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaidyanathan Srinivasan X-Patchwork-Id: 1063314 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44S46x6FCJz9sRk for ; Mon, 25 Mar 2019 04:26:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44S46x04DxzDqLY for ; Mon, 25 Mar 2019 04:26:01 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.vnet.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=svaidy@linux.vnet.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Received: from mx0a-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 44S46p3YKvzDqF7 for ; Mon, 25 Mar 2019 04:25:53 +1100 (AEDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2OHNqlm045675 for ; Sun, 24 Mar 2019 13:25:50 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2recw62yxm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 24 Mar 2019 13:25:50 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 24 Mar 2019 17:25:49 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 24 Mar 2019 17:25:46 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2OHPjv951642504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 24 Mar 2019 17:25:45 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 50ED44203F; Sun, 24 Mar 2019 17:25:45 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 46D6142041; Sun, 24 Mar 2019 17:25:44 +0000 (GMT) Received: from drishya.in.ibm.com (unknown [9.199.41.162]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 24 Mar 2019 17:25:44 +0000 (GMT) From: Vaidyanathan Srinivasan To: Stewart Smith Date: Sun, 24 Mar 2019 22:55:35 +0530 X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 19032417-0020-0000-0000-000003270276 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19032417-0021-0000-0000-00002179347B Message-Id: <20190324172543.12625-1-svaidy@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-24_10:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903240134 Subject: [Skiboot] [PATCH v3 0/8] Initial fused-core support for POWER9 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: skiboot@lists.ozlabs.org, Michael Neuling Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" v1: This is based on initial work by Ryan Grimm with additions & cleanups by benh. v2: This includes forward porting to latest upstream and fixing 'make check'. Some notes: - This currently needs a special modified HostBoot - It's missing the "ibm,thread-groups" property to inform Linux about big cores - We need to look at HMI issues, as in some cases TFAC errors get only sent to one half but both half need to rendez-vous, so we need to "trigger" an error in the other half as well. v3: - Drop the HDAT workaround, since the issue is resolved with a fix in hdat layer - Minor nits in comments - Keep naming consistent between fused-core and normal-core - Trim stop state list and add stop2 - stop0,1,2 states were tested for 24hrs on ZZ with fused core chips The above aren't blockers, it should be possible to merge this first. Benjamin Herrenschmidt (7): xive: Set the fused core mode properly chip: Fix pir_to_thread_id for fused cores cpu: Keep track of the "ec_primary" in big core more direct-ctl: Use the EC primary for special wakeups slw: Limit fused cores P9 to STOP0/1/2 cpu: Make cpu_get_core_index() return the fused core number imc: Use pir_to_core_id() rather than cpu_get_core_index() Ryan Grimm (1): Add basic P9 fused core support asm/head.S | 24 ++++++++++-- core/chip.c | 32 +++++++++++++--- core/cpu.c | 61 ++++++++++++++++++++++++------ core/direct-controls.c | 12 +++--- core/fast-reboot.c | 2 +- hdata/test/hdata_to_dt.c | 9 ++++- hw/imc.c | 6 +-- hw/slw.c | 80 ++++++++++++++++++++++++++++++++++++++++ hw/xive.c | 6 ++- include/chip.h | 43 +++++++++++++++++++++ include/cpu.h | 13 +++++++ include/xive.h | 1 + include/xscom.h | 3 ++ 13 files changed, 259 insertions(+), 33 deletions(-)