Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1003322iof; Mon, 6 Jun 2022 17:51:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDD9zNJTjx6SlYV0NiGjSH8GbFYQ094rDa7vETd3uN0DJW1AZXh8mHcpaMT3WIkBbCsC2V X-Received: by 2002:a17:907:3e8b:b0:6fe:f848:f5b with SMTP id hs11-20020a1709073e8b00b006fef8480f5bmr24086618ejc.374.1654563107171; Mon, 06 Jun 2022 17:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654563107; cv=none; d=google.com; s=arc-20160816; b=eiCn9edfmTw9DFWj37qCNErVXFpPGatVNsi7aUl6r8c4icOZO2KbKbcMjfXL3vXXeS wyohqTKM+mIy3jCTxBsIJaAQy3OhcEjaXY61HE0zojal2SmNFasyvlLg8p+JCt2yV2q5 d2AZdhTdHf623HF2JO+NJZI28WkjDAd4JljwzsgdOnPcdxfCJi7VcaH/JQC+3JGBsiwv 6tWgVeYJ4SnjC8j5WpBm6H7E/mtf7QGLIogmpuUChS8Z6wc+YNtC8EtRaQLWiTdsEjq+ IHnSIXuZJNBL83gkeDIlxxzxVdiH6XGvdBqPmSRIsXVmwAqvTNFKnlxbGyxqJ+z9Lpx7 JjFQ== 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=M5wVyMqNrXXYC/xkhTsm16iXp07KxtU+tLGGG32oR5Y=; b=Xa5O6IbHgGkCgfUflHHNawwTMQrwo5aUXGHw1KJ6LJsPJkzMSBj5/42PuQuel0tgcx SAyZw+iND9icglN+QbO2ZYz+v+VvFk5cCfx2QpPthyCoojdX2/z7yZzevpSCrjUNwUVu 6C00PwOfQSBGdEniz4kxDdIYG8GwCrgW4lYmCqhkjH843TqLszQTLDtO4/MfcgnJkgMu 1U78IIh85nnABD4HAijiHqFbVZpqvuQWeF/WgaMIfWGXpnz0AfkHdwltZerpK0H8TyDF P8THvqAZqWWLHnv+siRkXNBNS4WP9Mf7fduiA3PeRVjMUQ/LvvqeScOxYBe0sGmprmGF ZeUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qlIGOqYN; 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 y2-20020a50f1c2000000b0042bdec87b25si496248edl.291.2022.06.06.17.51.21; Mon, 06 Jun 2022 17:51:47 -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=qlIGOqYN; 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 S233902AbiFFUeb (ORCPT + 99 others); Mon, 6 Jun 2022 16:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233908AbiFFUeQ (ORCPT ); Mon, 6 Jun 2022 16:34:16 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEC4F8CCE0; Mon, 6 Jun 2022 13:33:56 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 256KXV3c001721; Mon, 6 Jun 2022 20:33:54 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=M5wVyMqNrXXYC/xkhTsm16iXp07KxtU+tLGGG32oR5Y=; b=qlIGOqYNHJTPPb/UzJDT/JzPvDPjGUO7HfQqSJ3ad792TGmgQe67uqZTuee8ZB5FcNHf TcSdPjf/zt6AbuxoO3tEk1oBmSHd8FNhgrJ2kPfWveQJBCraqmw+/PVy6lFTiLrB+90p kb1rXIE+gLnIBhurM58q7nAfqvQ2c//HwSTmCx4irKIlZ/Un29eMQId6tXfQ6OvntxuM GKXAtAQpY9nZPkg8TkWclRI4A81AzXtWyRgE3sU82AHHTbXGHJHFaLb3z6RyIF/WZgmO nhOJEfXWIwC8mtE1iaFVnROA/7tQByGea6mrh1VnKTb6+jXSlU1hXvOWTWReTaQad8BG qA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghqj1h831-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:53 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 256KXr10003213; Mon, 6 Jun 2022 20:33:53 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghqj1h82s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:53 +0000 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 256KKVY1024184; Mon, 6 Jun 2022 20:33:52 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma01dal.us.ibm.com with ESMTP id 3gfy19utp4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:52 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 256KXpGq3408154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Jun 2022 20:33:51 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 07D0228058; Mon, 6 Jun 2022 20:33:51 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 747392805C; Mon, 6 Jun 2022 20:33:43 +0000 (GMT) Received: from li-c92d2ccc-254b-11b2-a85c-a700b5bfb098.ibm.com.com (unknown [9.163.20.188]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 6 Jun 2022 20:33:43 +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 v9 02/21] s390/sclp: detect the AISII facility Date: Mon, 6 Jun 2022 16:33:06 -0400 Message-Id: <20220606203325.110625-3-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220606203325.110625-1-mjrosato@linux.ibm.com> References: <20220606203325.110625-1-mjrosato@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 8D5xTnVS5ULLdxakjbDI_uHud76rdyWm X-Proofpoint-GUID: HfJTVjEJD-ywBmH3Y8x5vSXKKiaT0Vt- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-06_06,2022-06-03_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 adultscore=0 suspectscore=0 mlxlogscore=749 phishscore=0 impostorscore=0 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206060081 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 Interruption Source ID 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 68ef0ddf6400..d05fbffa7692 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_iplcc : 1; unsigned char has_zpci_lsi : 1; + unsigned char has_aisii : 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 d5671c03d5cc..39c9bd7e1c26 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_aisii = !!(sccb->fac118 & 0x40); sclp.has_zpci_lsi = !!(sccb->fac118 & 0x01); if (sccb->fac85 & 0x02) S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP; -- 2.27.0