Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp246426imu; Tue, 15 Jan 2019 21:04:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4w+jwOVhPIRu09NmxBuwcgpXzx46dVYzaAw1fEXFBrWFu8WoUcQrI4KM1N37ROqS/bVpQa X-Received: by 2002:a62:55c4:: with SMTP id j187mr7764033pfb.129.1547615049147; Tue, 15 Jan 2019 21:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547615049; cv=none; d=google.com; s=arc-20160816; b=bL1NYw3N3U/tlwPvlJFoisnkiCxDdIaqPSrzkw2dEP6B/4AKn6vDoDbIyj0Wc1sGBj mAV0tBQ2yxQJTi9If0zr+RT6Pl/abbVqSq5hz8XUch+uztQpPq0Z950cnxXz77IqzsJM jUoDzEv+gyzvYeQf8Wr+s2+jbvyYptIRq0sE+NfAol8l42JETb+A0LO+bu2pH40Hv/9G Wlhsgm7irQ1+Jfm8IYZMXYRSzyFBoNRBbKiJ6KhQDaX30t1LbB9hGz0VqgOSG0Cs9v5Z IfQG+6Imui+ARWGtd/PPJPfi3C//uQHILFqT+POmUjBfxtarG3Pljw5abSLU0QP3oIsT 10LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=2c7x20uiXzYKGowjWvqMKuBju6IRqHakAjbN2q/+8bs=; b=TzTlBHyQ4il5vPI5LM0E1QS7B3B0Vr8pXZHVjCXQN4Qhij1WwN6+1s+dZbZEp5PgMg S47J5+rlWsf0tX9+sJUJHvLs9DHdmL++W7ej6iOre6Zc3etSImfsZdlJZGX7tcvXDvZO 1UZf8ntDWQiD7/wSLJIFvs6xsi+F/2RcCxRvd3UPFGLxIFr9sfjCy78YNMuTrFRRqEi9 UEsf0DYRgvOlbTn7OfRnGi67piuMw2p8461xZ7nv62yi8iy1KB5rPrvmnOKPVG3ApvmE HgGAbIDDpTBuLCF7/ZbIbiv9Iy6TdLaY9KSImGgSwejE3o8rKxddOAHG9GR3LNi6kR4j wA8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si2277239pgq.545.2019.01.15.21.03.49; Tue, 15 Jan 2019 21:04:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388440AbfAORhi (ORCPT + 99 others); Tue, 15 Jan 2019 12:37:38 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50574 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730674AbfAORhh (ORCPT ); Tue, 15 Jan 2019 12:37:37 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0FHZ1f4093912 for ; Tue, 15 Jan 2019 12:37:36 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2q1huvh416-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 Jan 2019 12:37:36 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 15 Jan 2019 17:37:34 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 15 Jan 2019 17:37:31 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0FHbUcx61866184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Jan 2019 17:37:30 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AC077AE051; Tue, 15 Jan 2019 17:37:30 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6020FAE045; Tue, 15 Jan 2019 17:37:30 +0000 (GMT) Received: from morel-ThinkPad-W530.boeblingen.de.ibm.com (unknown [9.152.224.140]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 15 Jan 2019 17:37:30 +0000 (GMT) From: Pierre Morel To: gerald.schaefer@de.ibm.com Cc: joro@8bytes.org, linux-s390@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, alex.williamson@redhat.com, shameerali.kolothum.thodi@huawei.com, walling@linux.ibm.com Subject: [PATCH v1] iommu/s390: Declare s390 iommu reserved regions Date: Tue, 15 Jan 2019 18:37:29 +0100 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 19011517-0028-0000-0000-000003399946 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011517-0029-0000-0000-000023F6BD26 Message-Id: <1547573850-9459-1-git-send-email-pmorel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-15_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=376 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901150145 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The s390 iommu can only allow DMA transactions between the zPCI device entries start_dma and end_dma. Let's declare the regions before start_dma and after end_dma as reserved regions using the appropriate callback in iommu_ops. The reserved region may later be retrieved from sysfs or from the vfio iommu internal interface. This seems to me related with the work Shameer has started on vfio_iommu_type1 so I add Alex and Shameer to the CC list. Pierre Morel (1): iommu/s390: Declare s390 iommu reserved regions drivers/iommu/s390-iommu.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.7.4