Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3543259pxp; Tue, 15 Mar 2022 00:13:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZNAjU6NqWofO8BYezc/cJk+6KfceX2TjIMqkkBTNtvWWKYbk+OgktqEhsAz4YNZFa4VuN X-Received: by 2002:a17:906:c107:b0:6da:bd9c:4779 with SMTP id do7-20020a170906c10700b006dabd9c4779mr21464696ejc.715.1647328409492; Tue, 15 Mar 2022 00:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647328409; cv=none; d=google.com; s=arc-20160816; b=0DU81NXqh4+kSD95qcdeUySJ8cGDIk8Dr19TtjgjPCelTyfI2jBBfWwlZ/q8jtIYbE CIVL9+lank5FYdcS3+fCv3Oes3mbMDe3CBx2q4mXkZmieSGCQ3nNMLMldOBMxY4VliTy 9qFRQcdstmXtFQV8ZTVtYzFaJtnYmVPJN2LA+CYnlpyCbRTkZCaJJ5HhPhmBA21Nk6XB hRrXmVvgLwy86tQnL8CspDKcLwyp1gx2RLQXsamiujtomiIx+2tiGt3iH41vGr2maUEW 8B7gxYDrYNCY28CcMLWm07YCiF2KsDDVGxS+U/5GWQDdCgHvc1uTIdcW+f7XtNViCE6D lM0Q== 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=tHpyg0lf5dv+bNJqi732xFzvwsPLsdw4+g52/oHOOkw=; b=gLHyu7aLTWDLapwMAtwqQWADE2z3W+twEhzHDy7evA9C4HJw2WdvZAb6/ewI1Ym0IU 238i6ZwnXmaXTA88xQ27QsiPU3YXlQRKdlSMOZiXTsrNJfoG1MQtlBYEaXb0z/uDolJH pMvBcLvhwVvcSQAiEL48q15/FJD3MUOq+ckxJcqKZXTAm9LScZwGzGO3SOPb+twI2mej 0ZZyHuFKT8OzEOsY0eBX5WP2x4CEFobvdBd/dY6szYRmnU+8WPl9Bz9GkTE3vENPRmHg BRjrnaa28rDdVcR9v43knGcto3pb5e54KlVXTv4vYuhdRjODDyGb7oYZNhVgXQ2QSEWf pmQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=H0EtEVUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a05640200d800b00415c65e7425si13842739edu.426.2022.03.15.00.13.02; Tue, 15 Mar 2022 00:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=H0EtEVUS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244260AbiCNTrO (ORCPT + 99 others); Mon, 14 Mar 2022 15:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244280AbiCNTrJ (ORCPT ); Mon, 14 Mar 2022 15:47:09 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3B5D3DA79; Mon, 14 Mar 2022 12:45:58 -0700 (PDT) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22EHMVBT003427; Mon, 14 Mar 2022 19:45:50 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=tHpyg0lf5dv+bNJqi732xFzvwsPLsdw4+g52/oHOOkw=; b=H0EtEVUSwPPruc0byg7vw8iUzkHHwFXgeOC7/QypoQeRycJ4HNsldrxIVpzEX/Sj3w2T w8/YC3WGsegWsnIMWHhk5eRlmANDgNqa1gTG3VS1bALDweBesZo0ZDvVDJyuxgs/7QML AYpdTati3dzYlrPiIEPJpYq2aUYJ2gq3dU+13uNkPBkdnE33ndS5LXVoGihRbBl1EAMM 2wEc8kYPoRGv4E+vLFEJ8nIrRR0IS7mAP00KWO8yW3Eo0007iXLwQIkV3fgXtfxlagHc Zd04uVDvgy6LdG/3Y18psXTAzVYay9QB3iVjzl+neUCkLS82ZBp0zIAIRfzXb/OtdADK SA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6d7rn7d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:50 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22EJIslO002981; Mon, 14 Mar 2022 19:45:50 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6d7rn75-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:50 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22EJN9qr005084; Mon, 14 Mar 2022 19:45:49 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma05wdc.us.ibm.com with ESMTP id 3erk59ra28-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:49 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22EJjm7649676640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Mar 2022 19:45:48 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0F765112065; Mon, 14 Mar 2022 19:45:48 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D8125112064; Mon, 14 Mar 2022 19:45:39 +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:39 +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 04/32] s390/sclp: detect the AISI facility Date: Mon, 14 Mar 2022 15:44:23 -0400 Message-Id: <20220314194451.58266-5-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: fLNr14K33AkXqdo1RUh2J-iCOXnBYl-g X-Proofpoint-ORIG-GUID: 0ZON3t_RRAmwtnpL0OdDqYZVXwJt_-HP 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 mlxscore=0 priorityscore=1501 phishscore=0 impostorscore=0 adultscore=0 mlxlogscore=748 malwarescore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203140116 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Adapter Interruption Suppression 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 8c2e142000d4..33b174007848 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -91,6 +91,7 @@ struct sclp_info { unsigned char has_zpci_lsi : 1; unsigned char has_aisii : 1; unsigned char has_aeni : 1; + unsigned char has_aisi : 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 e9af01b4c97a..c13e55cc4a5d 100644 --- a/drivers/s390/char/sclp_early.c +++ b/drivers/s390/char/sclp_early.c @@ -47,6 +47,7 @@ static void __init sclp_early_facilities_detect(void) sclp.has_kss = !!(sccb->fac98 & 0x01); sclp.has_aisii = !!(sccb->fac118 & 0x40); sclp.has_aeni = !!(sccb->fac118 & 0x20); + sclp.has_aisi = !!(sccb->fac118 & 0x10); sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); if (sccb->fac85 & 0x02) S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP; -- 2.27.0