Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp956822iof; Mon, 6 Jun 2022 16:39:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ6BMG6Fs4oPCIQrcbA2L8DGaC90HSW5ghq6D0WC3/0L3pa+wnS+dPyhZVmCr8eMhAshDE X-Received: by 2002:a17:90b:4f4a:b0:1e6:9bc5:277c with SMTP id pj10-20020a17090b4f4a00b001e69bc5277cmr25238263pjb.43.1654558786425; Mon, 06 Jun 2022 16:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654558786; cv=none; d=google.com; s=arc-20160816; b=V612V6tg1TaXPyvxI3LUwGzBGHlXfYb1zmptofxNdAxGAZtZ3PXfbOQcej7FjRLQNt NXvlcrSlag1a1ARYxhsPh41+6+uPMEqw0uoCz5Bt81vNqZj6HmOlZ569yUuQ3cYTWKOL lJzCnwXoUe+pwvFFV2ulNvsOVAaJg5g+7sSzLIF2/N2kvgZihk3+8CQrUBbuPsxbpMIa +fuHmDvokmlG3MhxPy2dlOjW6AayA4whMznvn4olrADZ6b4GPLvaLBjMR28T5alSlH4s czzsOXBb94QVCLp6VVgjbJZxCHyz9esp3V8mHNUFT03SHzvDXth/4lPJn6+8TEWIFx75 CReQ== 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=PuPKtO9bhcev4EeB6YIWhpxp/dt37oee4O9zuXNdZ80=; b=CKkfKghyErz/gIltocUUyQPAKMTXzzcfY5Tx54pVTk+LG9s9eB+RM0Un308rGttRpX 9EYS6abBkpvc+VS8n1Pkn8gtgELjYT/9aFNhDCmhWc3nFfIM8blP4nPniYaT2ZeUuxGu tKScT5Gu5orP0pcHT8IEJamJXt6VOd+bdJmDfYw3frM7UEx0UmBsoVCIHBO9bVjiGmO/ gNQvacLLdDJ5/JKUgYAzuqOFBYSQpnzsMMayCtGwmFP/RZy9Ae0FRUvvAehDqxxjYzen SIuI8NRMQWDhNgCt/rvn4KYEClm242qKM/DLgMsNUzZbS7gkBZknqrvkH5ftjP1v+YZ3 jjUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OuQ1uQBm; 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 h131-20020a636c89000000b003f5f32a50adsi22041193pgc.705.2022.06.06.16.39.08; Mon, 06 Jun 2022 16:39:46 -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=OuQ1uQBm; 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 S233633AbiFFUeQ (ORCPT + 99 others); Mon, 6 Jun 2022 16:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbiFFUdt (ORCPT ); Mon, 6 Jun 2022 16:33:49 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEDB284A1C; Mon, 6 Jun 2022 13:33:45 -0700 (PDT) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 256KTnoY019076; Mon, 6 Jun 2022 20:33:45 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=PuPKtO9bhcev4EeB6YIWhpxp/dt37oee4O9zuXNdZ80=; b=OuQ1uQBmTlgn3D6dDT+pxVtV1YeZbgkww7VRxTJ04ehBulwgspoO/a6XXFHUMq3og5kQ a6RsMQSlKH/dxThsJEK/vl8xyvlo5LPps12HD313oehJsErnCIBJtcUqKVBV3+bHc9Rp 4+6hXBDYOy4dSLQoTkV+fwOhR408rPRVrdO52PkQgGoUt4s2tJ+05/HP6M6OgrvHj6kq sgQYksH81MntwdGyR3rX5caOc0dQFILpYrfW9ltwY717/uuLaQvOUjV8CRsECIOaX7vd hPumtTHuHppSCD4B/INT0s42pLJXgA0EgKHI/O/1w+FCxHbWLGsXENa0S5LzMSYtF7Yy FQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghrb30dnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:45 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 256KU4Ih020083; Mon, 6 Jun 2022 20:33:44 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ghrb30dnc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:44 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 256KKxno005883; Mon, 6 Jun 2022 20:33:43 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma03dal.us.ibm.com with ESMTP id 3gfy1akstr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Jun 2022 20:33:43 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 256KXh8B38535656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Jun 2022 20:33:43 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E65312805E; Mon, 6 Jun 2022 20:33:42 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 61CC528059; Mon, 6 Jun 2022 20:33:37 +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:37 +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 01/21] s390/sclp: detect the zPCI load/store interpretation facility Date: Mon, 6 Jun 2022 16:33:05 -0400 Message-Id: <20220606203325.110625-2-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-GUID: w24popoVRGSiU-IuTtllBRWQFvCkWPXV X-Proofpoint-ORIG-GUID: KKvtKldLEErYx5CPp7rFt_DmJ_4jYdTl 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 mlxlogscore=974 suspectscore=0 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 spamscore=0 phishscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 mlxscore=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 zPCI Load/Store 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 236b34b75ddb..68ef0ddf6400 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_iplcc : 1; + unsigned char has_zpci_lsi : 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 dd313ff57df3..d5671c03d5cc 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_zpci_lsi = !!(sccb->fac118 & 0x01); if (sccb->fac85 & 0x02) S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP; if (sccb->fac91 & 0x40) -- 2.27.0