Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp978388pxp; Wed, 16 Mar 2022 23:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTGABmBBvOxJJ7bdBG74DNMnbaoFelk6Rg+rp/PIxym5T/f7sls+GoJCn/dJo4tJUzL3ZF X-Received: by 2002:a65:4c82:0:b0:380:3aee:6948 with SMTP id m2-20020a654c82000000b003803aee6948mr2416123pgt.527.1647497782853; Wed, 16 Mar 2022 23:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647497782; cv=none; d=google.com; s=arc-20160816; b=ndYYWj1HCKqwU3EmLg2wFHqmBY0i3FxdafO4rceyDVnnz5u14BRN45IYDFxyYjvBrg C28UITYPW6CZ725lwx1rz2l2fWB16ZVVTypd+yb5Yi+A9ndqdHyTyaiYrqboNIYlz651 RM3EcNuHDKwp0VgeupY1R2wc6N5PBqjWRTXa3ix3YxHR4I8Tw5cnvplhL9Ttxqyw5YjK A4CuzvTJk01leLjqWc09oQ5h9NKQIcenDqeJNb4BeO8hmiSnCHPo55hKgS7efsgRcJT9 Tl9m4ViLLBK+z/FHwaC/jTeIBVLqZqp6o5tBKo7U3udemdXESa+YT38iTuHKj2/rqvTP WBEQ== 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=LMq7njowqA8v5X20SIrmHd3Chwof6fHngwJR2/PDXXM=; b=dNuJ6gmA599LnZPIUwn76zST8xjriTeUssI3dlvrNP2Dz/hyAft5R0AL618u0tVD9q biQItYHGgvoDgRsRLx96Xn+BpmoxJxaNxVtTXWbc66Rc6N2wXVZZ9PG6Oxa5Jj2wY7aG 8O787BQHqtNpP3U9U4+s423r2N2h+b6GfR5sTWZ9uQO+qO6wpidelvYOeQuhT1/eeIcC Bm94KhXXFJ/k0j2nfGvvW/UcT3PMEvs+m1sejVfiSdiq3UxAtOIytnlY1p8MEuUDSnN9 WJ9bA9bh6OyWJ80YimJUTsXbSILkIN91vtenMCwiVMy2Vq1ay4IZ4TrXQjiOl8r0po/J Pk2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gPWjE2av; 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 m74-20020a633f4d000000b003816043ef24si1105414pga.281.2022.03.16.23.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:16:22 -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=gPWjE2av; 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 BFFAB21C710; Wed, 16 Mar 2022 22:00:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244243AbiCNTrE (ORCPT + 99 others); Mon, 14 Mar 2022 15:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244256AbiCNTrC (ORCPT ); Mon, 14 Mar 2022 15:47:02 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CE173DDEA; Mon, 14 Mar 2022 12:45:51 -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 22EHbO4O003327; Mon, 14 Mar 2022 19:45:32 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=LMq7njowqA8v5X20SIrmHd3Chwof6fHngwJR2/PDXXM=; b=gPWjE2av599fahQtuCKUzWU64+n14v3Bw5V07xmYE7FjZpIgRcgPW2/ZbXtJzxrrgutn 1mIOhzBTilcZKzGEkfClWXYXv1uDjWa1OTNjxtVUAFJZ8JFOm98LzNLpXXgUt0JxAmf+ pFcBP7AH1DNwY6A1QZpbINZtxw4twKZlKgyRUdWGH1M14jpByhEiwI9XzzAF5iPKPQOX OipwqmLqhXpA4N+ElgM9lR8mQzs8WjA1Y/LC4GWUtZqWda4HyW4VOOBHu9B/DFvLI3Pc A69qUPmqmbPSN3R3aTEMhBlGdOmIdhGNpAjljAR3VmjVO64b9VVjQ31X2ZCuwn/X99m8 fw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6d7rn0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:31 +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 22EJcFil020848; Mon, 14 Mar 2022 19:45:31 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 3et6d7rn0e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:31 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22EJNoKI027368; Mon, 14 Mar 2022 19:45:30 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma02dal.us.ibm.com with ESMTP id 3etaj6gnth-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Mar 2022 19:45:30 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22EJjSUH33489244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Mar 2022 19:45:28 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3017F112061; Mon, 14 Mar 2022 19:45:28 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 92B41112069; Mon, 14 Mar 2022 19:45:18 +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:18 +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 02/32] s390/sclp: detect the AISII facility Date: Mon, 14 Mar 2022 15:44:21 -0400 Message-Id: <20220314194451.58266-3-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: CIjzVxs24x50TmmpiYEaE4_8WTp0CuyK X-Proofpoint-ORIG-GUID: 8eUR6cUSMtZvDgmpT6Ovr3XPsMnm6F4J 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=746 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=-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 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 58a4d3d354b7..8b56ac5ae496 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_sipl : 1; unsigned char has_dirq : 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 b88dd0da1231..29fee179e197 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