Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp965040iob; Fri, 13 May 2022 17:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRwTMLdvTNHozEdbAi8dgioxOQc5DiCyUjtl61rawfQe0iPMNyeeC1uyOtrIyaPlknQ5iD X-Received: by 2002:a5d:6d0d:0:b0:20c:530c:1681 with SMTP id e13-20020a5d6d0d000000b0020c530c1681mr5947718wrq.214.1652489829338; Fri, 13 May 2022 17:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652489829; cv=none; d=google.com; s=arc-20160816; b=jdpMu/VfqEPHy5VhNy031Wu/V8/+8VIO05BEb+1KkZFe1y5n0ql2XYG5Yu7T1YilVM sduCt+ZXOoVWK1w1FpUzqfIZAbNqigaTIobaj4TS/2Qe9Vrzjwr/PjKD7ObIrPeJ50pc xFO0mq2sTg4ltKrZakgoYCUebwd6DVm2krovLSZUefdVvZ53H4hcE7JQfTt2zh5fCvPQ VUGK2Rwy/MEgADIo+cEDGcJQVcIq6vFYxXmdbgl8+EOZg1Dk4eYxV6UiXtCnjX598dZ6 Q1B7A90+EppL5Fqnwr116RTcEyJNoIFJ63HzOXVzMKW7AGwc/XznSv4UqK/DuMbJNY8G wtPg== 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=H6p70Z1YMgrjJTkx+Yf17li7R+Rru0mRUfffXX/t7wc=; b=RTLQsa6csHjlGdVCk0zOUAFLoQyB/i7+5D3ZbVBLrfuDcaZ/EANuptw8hbzPNToVW+ 63nCT1yZI9mCu64q5nFUMfTc5nDmeNysAIETW25AZOy04AtsmC82r7yY2Z9vhQfv3iIC FQtNMuxn+TFJAK/kscvqe8UOUuvs78CVAT/GjnpZ1aRJ2qW2Yp0YtVGThTXKjxn0XOOj 9xC+ayuDdMxjSqzaD0EkfKQC9b587GP8RcMgqMiKAp5rwNxu7/yiGLD1PH23vaBkWWih vKwOTroTNPch4aFUmEeFg0WhXMOBj6SOH248U5UmD5T7axOwLSw+vLB3eqguxcD53YLZ DhpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=JYGjYe1d; 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 l5-20020a05600002a500b0020adff84efcsi4806829wry.509.2022.05.13.17.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:57:09 -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=JYGjYe1d; 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 CD3F1356233; Fri, 13 May 2022 16:32:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348815AbiEMTPs (ORCPT + 99 others); Fri, 13 May 2022 15:15:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239861AbiEMTPn (ORCPT ); Fri, 13 May 2022 15:15:43 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C4FE11A2B; Fri, 13 May 2022 12:15:42 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24DIpOb2017720; Fri, 13 May 2022 19:15:38 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=H6p70Z1YMgrjJTkx+Yf17li7R+Rru0mRUfffXX/t7wc=; b=JYGjYe1dwxia8my4M1nehHpFQWVNKQM8IElQW3uy4cQD2lx5WCdarw6w90eEeLP1E/57 nlu0Js7gMkjMihF768Ie7PnGNqcPfQP7YHCmfsl0ckKB3gfdrD2YWgc0GlI66tJthvQr A8ZfRcUgjkGkGrobxZM0njh6Y2fMrnM6ixe96qZI+SQ9ApmITfqwBTMx0wa4KkvXULmg u5Srn2wQM2RQs0RPogUir8TU+2YMbVj+JnHJyLnQ+zFG15fIGJydpQ8cJkypKaJ/lrZh 1kuQjAWo/zFWyUCF1Qk2IBfKzOSHMTYJMBY7ZVjFjmySCm128fJqFcMmrvIvijOQPi+3 Dw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g1vypgdeu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 May 2022 19:15:38 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24DJFbQB011436; Fri, 13 May 2022 19:15:37 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g1vypgdej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 May 2022 19:15:37 +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 24DJCX8P005048; Fri, 13 May 2022 19:15:36 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma02dal.us.ibm.com with ESMTP id 3fwgdb7c3r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 May 2022 19:15:36 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24DJFZMc34865604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 May 2022 19:15:35 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C0FD7124054; Fri, 13 May 2022 19:15:35 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4002C124053; Fri, 13 May 2022 19:15:30 +0000 (GMT) Received: from li-c92d2ccc-254b-11b2-a85c-a700b5bfb098.ibm.com.com (unknown [9.211.49.28]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 13 May 2022 19:15:30 +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 v7 02/22] s390/sclp: detect the AISII facility Date: Fri, 13 May 2022 15:14:49 -0400 Message-Id: <20220513191509.272897-3-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220513191509.272897-1-mjrosato@linux.ibm.com> References: <20220513191509.272897-1-mjrosato@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: w09No1jM1ZpuwIbjxNuo6FVwknjlyvR0 X-Proofpoint-GUID: 6RhIZgdcayAvap4lzqYQV6T3NaB9BCRK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-13_11,2022-05-13_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 mlxscore=0 adultscore=0 mlxlogscore=743 suspectscore=0 lowpriorityscore=0 phishscore=0 clxscore=1015 spamscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205130077 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 06c0b5eb8ef5..be14644fe113 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -88,6 +88,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