Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3601286ioo; Wed, 25 May 2022 04:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynRO2JNBnr/Owmk5pZRr/V2WA2EW0SNEzKXtHcjEyD+DYWhjQ8FQo4Zvn87h3JWIvh9kUe X-Received: by 2002:a17:907:1b1a:b0:6fe:f31e:28e8 with SMTP id mp26-20020a1709071b1a00b006fef31e28e8mr11322335ejc.146.1653477742848; Wed, 25 May 2022 04:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653477742; cv=none; d=google.com; s=arc-20160816; b=nESMdaJ7opIcWPDvoXD6izIwZCojmBpj7Xr5ywRoolpq1ZszbDBduzG11iZuhT0rxk GWHq+Wf9xbNNBRrVsdM1MklyWZ1vevaOhMiIW8Yz6H4txsha3A9BdPpTP6BRgOZEl4xM EDabnv7mzW2ehJLfZl0GSFDij0ri8WukKf7Bq7gE6vv2kJb0EFnPFduH2IBpxbcA5k/K V0MkduasXL6amoWYthKI9nGlZjC/+SbkBgxZ/hzScWN7lbwddLfy0hzdq1Jay6W+Zuko Dlm7/r6ck8JAfhzBhfgtMn+ZC/54MmzcEiZ+QkdtgFIirPnB8N3QuWOWQsCeShOrWAEv B3gw== 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=yVRiK2dJrmcSAHiytdAhpWrONM5oxs4ddUK16F5sTK4=; b=bbBpEjxYkSUW7/dldsfNLQ3XD9F161dqDxP2uNoi93fnBGxeB3Xu2+QVih+DOFNHzF N7F8hu+iuWedYtP8hzY5p66QcduUVHQb6IcgAF748EtjzMJzvW8+hlSID6iWH41YzbLK dhtAjrC2rQHcgneRdSWJQM9RPjtz/UiSCxcWrFvA2eu3FyUdxg1Pp1Zawz+rJI73iKnT PawwUksJsJo6Dn9vbbTRnaUQhUE/HfC/wK4TzOqRGWfkLmid8OrifDrZ0q+RPM4TaYEl AmCIccCQ7E3EqP6dM4TY42bnmpOaEnRUpnXQmg18t3wVfOeh1wpsI3alxbgv7hNRbZFP r0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=B0Dbcapu; 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 cw19-20020a170906479300b006fe1c07f388si17510281ejc.827.2022.05.25.04.21.50; Wed, 25 May 2022 04:22:22 -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=B0Dbcapu; 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 S240596AbiEXS7l (ORCPT + 99 others); Tue, 24 May 2022 14:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240558AbiEXS72 (ORCPT ); Tue, 24 May 2022 14:59:28 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA6B65BE5E; Tue, 24 May 2022 11:59:27 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24OInDQI005894; Tue, 24 May 2022 18:59:24 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=yVRiK2dJrmcSAHiytdAhpWrONM5oxs4ddUK16F5sTK4=; b=B0Dbcapu8kFQREkVaHMctS11dpT9J3ibqwWbmHaMoWVYO5FbYPrN15CK9RdX5pCq2mX9 Qm2i9RHxKf+CGw70rfx0iUVovAjLGXgA3xrH/KKlocNr+e+jo8pjvwC9N6Nrz8Fh2N9O 6fyyVZ0WirkQOc3Sfen7JVqPw1r2An/AZ6c0sHRHG/6qO2zne4FQ8GLCzeB2zOnpNxlq Dq5rg0O10d6CtFyndb+yEVB3Nbp+Ke/Tx3WUUipMBYuw5mq4444j7XvVD9UesmlL7MN5 P0v5XpsW1+dIMnCKt9fegr6iZu6llhX9zVCFRxkZSyD5CA6A0yiRWsGLpPecz6Wt1ldn bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g94yr0542-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 18:59:23 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24OIq8l8016218; Tue, 24 May 2022 18:59:23 GMT Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g94yr053q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 18:59:23 +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 24OIqwIC007752; Tue, 24 May 2022 18:59:22 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03wdc.us.ibm.com with ESMTP id 3g93v8rh6t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 18:59:22 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24OIxLmj13763036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 May 2022 18:59:21 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64CBDBE05B; Tue, 24 May 2022 18:59:21 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 28323BE053; Tue, 24 May 2022 18:59:19 +0000 (GMT) Received: from li-c92d2ccc-254b-11b2-a85c-a700b5bfb098.ibm.com.com (unknown [9.163.3.233]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 24 May 2022 18:59:19 +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, pbonzini@redhat.com, corbet@lwn.net, jgg@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v8 03/22] s390/sclp: detect the AENI facility Date: Tue, 24 May 2022 14:58:48 -0400 Message-Id: <20220524185907.140285-4-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220524185907.140285-1-mjrosato@linux.ibm.com> References: <20220524185907.140285-1-mjrosato@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: WfHfrSo-DO0S7UdgM7jTsO5yXrunQkhf X-Proofpoint-GUID: LqcqdvM4bIko-JekqW3_etcK5-SOWWHr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-24_09,2022-05-23_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 bulkscore=0 mlxlogscore=848 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2205240090 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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 be14644fe113..ff359df62154 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -89,6 +89,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