Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp901745pxp; Wed, 16 Mar 2022 20:41:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw21yuOo2yMxWF8tn4/u2GlsG4NPB7ybKu3zg80Oto/qK9MZUwMzJZAcgvIyghglExH7iVg X-Received: by 2002:a17:90b:3909:b0:1c6:4909:1925 with SMTP id ob9-20020a17090b390900b001c649091925mr10700090pjb.202.1647488491101; Wed, 16 Mar 2022 20:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647488491; cv=none; d=google.com; s=arc-20160816; b=ebUpkhqyD9gmpjO3Z5lURcgSKV7/+Yn3ttrDBPs1cHST/s4kwgHKe7L3NmPwzb1FC7 JvBOJp3EOx6UqcwyLvh7JD3Hv4soReWEEoDE+VOvZ/ILocs3ZaorLld/D4WWL7n6nO36 9XU4nJ8UDy6fmUXAM5q02UxQOVTitUvRog4lH+5fLOAugEsIsG1Z3CVz56yN/aX1fCIO +Jw1rdy647q3FSadDmfn5Km1yipPwQM7cDsbEK5kRFijnu84DvFXxpirRVALc86w8sjN 0cs0hfPIYXi9YuRiHtj+/grS6T0NOXvK6Seo3nIfFJ3SvfKV3maIdVu496dQKh2d/IQS 7akA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qqsVARwzBqesyBcvt5ohDoAR+P6eIXDxd+fKBlAfoag=; b=uevyOBDq9GxooAkbBP6BFPeyhBvJ4oLJXKcCoJtBHwyfTM0C0ey1HJI0PWoBtFofmN f7emBrYKCNJ9Nkb4kRtRmLiZncsq08EzdPtI/6YWRgJ4uG4wbSgttGBu38qXIyCKyZST 6KmrQ1TioQc/PG12mx7XXfbWRtv48aTWN49J9z45fzcaPHH/8xNxI10GCDzUdiOXzvOE Wk3uGrnku1lHMgKPFzqVKv3mvUCXbwXtd5i4ZzP8dYdHsIfQI0AyC1VCwre77tIRuf6j v8dPOTkwNa1bnL4XzOIlUhpIlxKl/qs5Fym819K9hxzICIXM2NcCbf9y2Zhzs5QzKWL2 o+7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=h3jpcSW2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z14-20020a63d00e000000b003816043f120si925797pgf.789.2022.03.16.20.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:41:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=h3jpcSW2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E204760CFB; Wed, 16 Mar 2022 20:34:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244211AbiCNTqp (ORCPT + 99 others); Mon, 14 Mar 2022 15:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244173AbiCNTqm (ORCPT ); Mon, 14 Mar 2022 15:46:42 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8113DA67; Mon, 14 Mar 2022 12:45:31 -0700 (PDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22EHZLl3007314; Mon, 14 Mar 2022 19:45:21 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=qqsVARwzBqesyBcvt5ohDoAR+P6eIXDxd+fKBlAfoag=; b=h3jpcSW2K6ChSGjycFGfaFprQTl763YJmIKdZpEJ1dpZZ4sGp1mn5/iRuMPdOND5N0AK MUMd4Rus1gr2cmclqqGmSRRs2OKzNlMkh/+rLl0R7a6Z+HUCbT05OgaPoxj6PMvzc3bc A2nSjrvFxXNpJOZNoGV5t0i2YyuUUzd5hgBSHK+eclcb0kqbMxArpBGl/HMcv+zS3E0u kWWQrfX7uv+wpw9vOrXIor+/PNwcV93fK8uFnLW+LWS2cBW20jKMXMYtA/PCP0j/Wfly ocfKYgupLqfpUb5HI0JIo3TpQWEUf1bR8KblFO8HTpWD/7B2YnkwdKpyeh6NMyZ4Sur/ qQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3et6dcrjk4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:21 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22EJN7GH020194; Mon, 14 Mar 2022 19:45:20 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0b-001b2d01.pphosted.com with ESMTP id 3et6dcrjju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:20 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22EJNui4001669; Mon, 14 Mar 2022 19:45:19 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma03dal.us.ibm.com with ESMTP id 3erk594cc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:19 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22EJjHNB4850502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Mar 2022 19:45:18 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0EE3112064; Mon, 14 Mar 2022 19:45:17 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ECBDC112065; Mon, 14 Mar 2022 19:45:06 +0000 (GMT) Received: from li-c92d2ccc-254b-11b2-a85c-a700b5bfb098.ibm.com.com (unknown [9.211.32.184]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 14 Mar 2022 19:45:06 +0000 (GMT) From: Matthew Rosato To: linux-s390@vger.kernel.org Cc: alex.williamson@redhat.com, cohuck@redhat.com, schnelle@linux.ibm.com, farman@linux.ibm.com, pmorel@linux.ibm.com, borntraeger@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, agordeev@linux.ibm.com, svens@linux.ibm.com, frankja@linux.ibm.com, david@redhat.com, imbrenda@linux.ibm.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, freude@linux.ibm.com, thuth@redhat.com, pasic@linux.ibm.com, joro@8bytes.org, will@kernel.org, pbonzini@redhat.com, corbet@lwn.net, jgg@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-doc@vger.kernel.org Subject: [PATCH v4 01/32] s390/sclp: detect the zPCI load/store interpretation facility Date: Mon, 14 Mar 2022 15:44:20 -0400 Message-Id: <20220314194451.58266-2-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220314194451.58266-1-mjrosato@linux.ibm.com> References: <20220314194451.58266-1-mjrosato@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 2b_-oI8xNQ957O9IbPMfrOju-z-Hyxs2 X-Proofpoint-ORIG-GUID: 0x0Kcd1IhJE5wF4B58wHQYHS4Z1YmQcQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-14_13,2022-03-14_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=899 impostorscore=0 adultscore=0 clxscore=1015 suspectscore=0 mlxscore=0 priorityscore=1501 bulkscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203140116 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Detect the zPCI Load/Store Interpretation facility. Reviewed-by: Eric Farman Reviewed-by: Christian Borntraeger Reviewed-by: Claudio Imbrenda Signed-off-by: Matthew Rosato --- arch/s390/include/asm/sclp.h | 1 + drivers/s390/char/sclp_early.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/s390/include/asm/sclp.h b/arch/s390/include/asm/sclp.h index c68ea35de498..58a4d3d354b7 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -88,6 +88,7 @@ struct sclp_info { unsigned char has_diag318 : 1; unsigned char has_sipl : 1; unsigned char has_dirq : 1; + unsigned char has_zpci_lsi : 1; unsigned int ibc; unsigned int mtid; unsigned int mtid_cp; diff --git a/drivers/s390/char/sclp_early.c b/drivers/s390/char/sclp_early.c index e9943a86c361..b88dd0da1231 100644 --- a/drivers/s390/char/sclp_early.c +++ b/drivers/s390/char/sclp_early.c @@ -45,6 +45,7 @@ static void __init sclp_early_facilities_detect(void) sclp.has_gisaf = !!(sccb->fac118 & 0x08); sclp.has_hvs = !!(sccb->fac119 & 0x80); sclp.has_kss = !!(sccb->fac98 & 0x01); + sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); if (sccb->fac85 & 0x02) S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP; if (sccb->fac91 & 0x40) -- 2.27.0