Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3716898pxb; Fri, 4 Feb 2022 14:58:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoUQiAqoHBC10KuHJ6w5IJ03CJNWWJ7iugJS5X6iPfYaTXX5Kcy//V19ALPLGhNPhoWAFj X-Received: by 2002:a17:903:188:: with SMTP id z8mr5331355plg.61.1644015517482; Fri, 04 Feb 2022 14:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644015517; cv=none; d=google.com; s=arc-20160816; b=WuN4cXyclOLwVdmHmhVV6QGwRpe2kIn6r+5vufJojaQ0oluO256QFYfqiTzoIRaW60 Mfud+LzyCHekqpDWfbQm1cUme3yzWqmyGrYKfXb6kL36caj4NpvLD3bCfDK6zjeIZ1Rp PqncjALBPXFK3ooAosTtTQUp5eokUdXRxGZzps9h4xeZhYAT478y+HE1I7F+WmAXRZOk yLtOf+AnTXwBmYAGMVAzJilmqdwht3epFcAP0/9bb++OYr0pBHm6fni9FU7sUEF3QGar FknSwdyi+mVUdUs7Sz4asCLZQEYQlnPO2FgaPEso1BqU2R5RZnQZixjrorQgaei9qBrk sk8A== 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=Rtp8aoY8IjDkoknKIiXv/jqG9AOPBTMUfzg+ttPtn0Q=; b=VT/H/S2Gn2QkZH1Nr2SVtWyz+daueyLM4fIlQbDfSKgJ1ztnbCdYjAxsaeZv8I/qOh PWgCUYG/j592oEdsCQFsY5AZwAoyNtGSsFllFzuYXY2U1dp8YdCaDL5XqdFRmBiTev/D j0okja9+l8m1K0GWIcC3RobzyWmqzxBf39TRqE7sNhhVUb73avDcHGpIGze5YCUlaUv2 92xoz158QF14Dvf5uK5lYZE8bnij84zkBcQ5ZOvJYCkQf6rJE83kQa52LI7Dn6Ap5i9y TyuA+14E2PFCXpM7jbAUcqZe7eaFPOGmhchH2GSXB/GD0nArVJa97OPPJXK15nPYqkhi kDpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QmWmSFrZ; 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 cp18si2912463plb.122.2022.02.04.14.58.25; Fri, 04 Feb 2022 14:58:37 -0800 (PST) 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=QmWmSFrZ; 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 S242909AbiBDVQX (ORCPT + 99 others); Fri, 4 Feb 2022 16:16:23 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:9264 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242019AbiBDVQF (ORCPT ); Fri, 4 Feb 2022 16:16:05 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 214HpQpS026488; Fri, 4 Feb 2022 21:16:05 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=Rtp8aoY8IjDkoknKIiXv/jqG9AOPBTMUfzg+ttPtn0Q=; b=QmWmSFrZWQwwEFtEVyZ50pC3P2lsThSalEDSY9hbUmLBPhz0fFvGa7AEwm/coOYbugdK Zpe66+bcDDPUkWNmkkOjOV9VYFjdsqEIgish7L1COihi82S8gSMvHScjsS2SVgKfHg9f 8VQRlCwGbu67hNQnLyWt27mGGTZO5y3XzjHb8yQPdS4vgKyq6R9KU//zTxd8zF1t3/2f h/yDf1C8oySaWUhr9uBvq/I/jz0kgP13oRyRKoxidRyKmx3jMvxKp+3JUV0JtoLsrqEp dae1hroK77G2GHGsKllQjWnDQL600jKaQj79Bk0E0sISQqbTOCy9OqV9oDGrhGUzcaam zg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e0qx1ppjy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 21:16:05 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 214KxH89001144; Fri, 4 Feb 2022 21:16:05 GMT Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 3e0qx1ppjr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 21:16:05 +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 214LD5Ui009663; Fri, 4 Feb 2022 21:16:04 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma01dal.us.ibm.com with ESMTP id 3e0r0syem1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Feb 2022 21:16:04 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 214LG1se16646596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Feb 2022 21:16:01 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A77B136060; Fri, 4 Feb 2022 21:16:01 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 98DE8136063; Fri, 4 Feb 2022 21:15:59 +0000 (GMT) Received: from li-c92d2ccc-254b-11b2-a85c-a700b5bfb098.ibm.com.com (unknown [9.211.82.52]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 4 Feb 2022 21:15:59 +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, 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, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Borntraeger Subject: [PATCH v3 09/30] s390/pci: export some routines related to RPCIT processing Date: Fri, 4 Feb 2022 16:15:15 -0500 Message-Id: <20220204211536.321475-10-mjrosato@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220204211536.321475-1-mjrosato@linux.ibm.com> References: <20220204211536.321475-1-mjrosato@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0gXt0S2YqQNiqSo_RPAKPqJV55b3TuZM X-Proofpoint-GUID: NKLqWxNQkvE6YQcb4h5WCcUD1dylgRX_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-04_07,2022-02-03_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 mlxlogscore=994 adultscore=0 mlxscore=0 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202040117 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KVM will re-use dma_walk_cpu_trans to walk the host shadow table and will also need to be able to call zpci_refresh_trans to re-issue a RPCIT. Reviewed-by: Niklas Schnelle Reviewed-by: Pierre Morel Acked-by: Christian Borntraeger Signed-off-by: Matthew Rosato --- arch/s390/pci/pci_dma.c | 1 + arch/s390/pci/pci_insn.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/s390/pci/pci_dma.c b/arch/s390/pci/pci_dma.c index f46833a25526..a81de48d5ea7 100644 --- a/arch/s390/pci/pci_dma.c +++ b/arch/s390/pci/pci_dma.c @@ -116,6 +116,7 @@ unsigned long *dma_walk_cpu_trans(unsigned long *rto, dma_addr_t dma_addr) px = calc_px(dma_addr); return &pto[px]; } +EXPORT_SYMBOL_GPL(dma_walk_cpu_trans); void dma_update_cpu_trans(unsigned long *entry, phys_addr_t page_addr, int flags) { diff --git a/arch/s390/pci/pci_insn.c b/arch/s390/pci/pci_insn.c index 2a47b3936e44..0509554301c7 100644 --- a/arch/s390/pci/pci_insn.c +++ b/arch/s390/pci/pci_insn.c @@ -95,6 +95,7 @@ int zpci_refresh_trans(u64 fn, u64 addr, u64 range) return (cc) ? -EIO : 0; } +EXPORT_SYMBOL_GPL(zpci_refresh_trans); /* Set Interruption Controls */ int zpci_set_irq_ctrl(u16 ctl, u8 isc, union zpci_sic_iib *iib) -- 2.27.0