Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp841655pxp; Wed, 16 Mar 2022 18:45:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlsp0mXJd8fYPeU7hFhefpz6ykqhsoTlUY+OVDh2iAVKu10mCwITPbmPgZRlRTA1oG67UU X-Received: by 2002:a17:907:a08c:b0:6dd:8798:3431 with SMTP id hu12-20020a170907a08c00b006dd87983431mr2274437ejc.732.1647481543548; Wed, 16 Mar 2022 18:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647481543; cv=none; d=google.com; s=arc-20160816; b=pUuftr/Srq1yDYa2pG2SaEHHzQLnMD+1RwT4H5UEWV7pnxMbG2kHdU2QqZe6N4NVIa c5odlH+UYu/EJgx7xLCydXimwDKQNLW2Xx/UcUK2jYamoi4WN3WXvBEZaZvVwwxJgjV2 bgq9zDMT4LNRiexaRJi+sJsR6DXxqqeLlenrytjtxQ1rXJPZM8USWk42w+efPSulIwsZ k7vfLORpkttpi96GY6a5jdx1TTiT5NrQwnoppS5kvJcxvYA7QgA/ntMFHrN5cHN3Dx6X j/GBUarGVBY/KiTb0BEm8UZeitFm8rj4LWwqFPcyz/9IlCSGMFjiItYKoEYXCrJTZ4DW IRGA== 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=n1nLl74XPlYJotGlgTzMIMN6FGGU2TFWaA4eTx5Ggx8=; b=s2minHvUQw+GoRaQZk0ifpmN8/6pwfnl0qLxtHAxEVgSfw02dpubK32GWNx+JscvzC xVqmkBuCadZgb9FkKmxY0UgN3ANxQ37Ti01aa3FBN9PGXbxe5gWtfVmyfHnEUfZim2a7 VGSqCKp1NEWRCsLUH3ZfOKAA2GoWb+lRKl+gE+bk/HcWPv18cYiipjiX4nn+MsNHYEIl ohNE0fsVaIFdFzkTZO//yPwFrVuG/0xNl33GT+jbIBnvHQEjVz3dkx3s7/SfXvUJabXG lTSMPdKVesdMaBLmV94tBZB3/6lZmfCmtoWw8wwF0a5I7c8F3LqeJ6XbFcdHyA1F9hHJ eQwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gwU9uGyr; 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 hr4-20020a1709073f8400b006d62d9d91b7si2483299ejc.608.2022.03.16.18.45.17; Wed, 16 Mar 2022 18:45:43 -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=gwU9uGyr; 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 S244241AbiCNTrB (ORCPT + 99 others); Mon, 14 Mar 2022 15:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244173AbiCNTq7 (ORCPT ); Mon, 14 Mar 2022 15:46:59 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0DA13DDDE; Mon, 14 Mar 2022 12:45:48 -0700 (PDT) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22EHmNLG006419; Mon, 14 Mar 2022 19:45:43 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=n1nLl74XPlYJotGlgTzMIMN6FGGU2TFWaA4eTx5Ggx8=; b=gwU9uGyrCn74Cb1ZjYX3PvmT4vwoD/gH4rpJOmXqg5rcBCD3lmeBMp3B6/IHboQu5Ao1 vgF1r+QQ6ydGK7tKGRPfUW7CT5A3PcHLNu6EkmdqN6x0hbFZT6vyYI2EeZB+upCTkF+1 a5uXO1U+6IFv+1PYVhbic26TtFYRAjTZU29wwWgM6lWLbiqi/9dFPaO+UuyTm3p0Nz+k PzUv7wUInNZipJmFH99c20skwGL25/BbWvTdTSJdhfdP5ePhKAbp7z+f8+ad1MfPyTYj 3s1wefJ8IlPM4UxUmrH4QudEl7M9E6nrb/BBaaOV0bcWHbXh9bzjtQfAaASvdg7GPOrE Kw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6aj0tav-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:43 +0000 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22EJGHlI021486; Mon, 14 Mar 2022 19:45:42 GMT Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6aj0tah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:42 +0000 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22EJO3tB028362; Mon, 14 Mar 2022 19:45:40 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma03wdc.us.ibm.com with ESMTP id 3erk58r8n3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:40 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22EJjdAr16318800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Mar 2022 19:45:39 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C86C11206E; Mon, 14 Mar 2022 19:45:39 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F393D112061; Mon, 14 Mar 2022 19:45:28 +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:28 +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 03/32] s390/sclp: detect the AENI facility Date: Mon, 14 Mar 2022 15:44:22 -0400 Message-Id: <20220314194451.58266-4-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: Cmk3sA4GKDyMcixm3xV6a1ySDUU5g2xh X-Proofpoint-ORIG-GUID: E4tX06Iskk2eooW954w98t6p5ygtYTIc 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 lowpriorityscore=0 malwarescore=0 impostorscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=842 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 mlxscore=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_H5,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 Event Notification 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 8b56ac5ae496..8c2e142000d4 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -90,6 +90,7 @@ struct sclp_info { unsigned char has_dirq : 1; unsigned char has_zpci_lsi : 1; unsigned char has_aisii : 1; + unsigned char has_aeni : 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 29fee179e197..e9af01b4c97a 100644 --- a/drivers/s390/char/sclp_early.c +++ b/drivers/s390/char/sclp_early.c @@ -46,6 +46,7 @@ static void __init sclp_early_facilities_detect(void) sclp.has_hvs = !!(sccb->fac119 & 0x80); sclp.has_kss = !!(sccb->fac98 & 0x01); sclp.has_aisii = !!(sccb->fac118 & 0x40); + sclp.has_aeni = !!(sccb->fac118 & 0x20); sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); if (sccb->fac85 & 0x02) S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP; -- 2.27.0