Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1114195ybt; Fri, 10 Jul 2020 23:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMVyHbp9pKOI9wbWAoFnCWY45ZhkxrppxY6M2bz+aVE1RE/qFu4oeiE+be/gGFyqRmfd0p X-Received: by 2002:aa7:d754:: with SMTP id a20mr21638621eds.375.1594450311426; Fri, 10 Jul 2020 23:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594450311; cv=none; d=google.com; s=arc-20160816; b=RB/avjP6vkME6EIJUz8WEHw5vDeRSI+4FVR5Qh03VcqsHY0yRG5YXkAdprYQbLqjfV VRgLKMGWAaGlA8gtb7za5tkXRfZvLP3CnRknFWXPHzaCWB/BkqW23eN5ehlI4PtXJubq TCjqrm5NVmeQnIpmJTM5Lpbj0px5KrRaNbGOWBq6RoffKKMN/dsLN45mZvMcgObY015B u5yQsgfSo4cZ4HKh6azelOOGZBqDovDqSjyrJQWBhP7Nv7nHJSm6M4Fev7N6gt9jojmi 4xoFE4tSrTq4ogJ0qY9Cctyp0nxNOZuwhqADEJK7TgjQRf5dTJXeVgDU0WgC7Bnwxuv2 rh1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dIm9QvJA4EDLMqFKpW7/RJwYmqQVAH3p/C0RPnf4QwE=; b=Z4NVSILijUfjeIkXG5R7ZTwEplOqtdy1emzPYWTUBv1/XERj6UKLgt/l15u294yaVW ONQpn+owV9d5snkEbcVvT2JHkL1/lNw2dJyVombS0bUSyKLaL15DVnlkaSw6DZUijsnj +98UjtxGBMRMulib+QB7qCbCAxC+grcf+vD3a0yGFz0SiKPbd0FjyWPdBqhuyx7ykwtP NpSjcu2ER1iLIWoPWXgg+AmGg7jvFvGIjI1aCUb9tCuCpsoR1Ig+2CXBLX76MNG3xhdm 6hzwc/leVUaa2Y8O6hHufdDikfwTPGabCasu2AqPC5c0WZfiJzcyA1oCutQdUmBHtkpY MzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=G9rruAgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci6si5404453ejc.202.2020.07.10.23.51.29; Fri, 10 Jul 2020 23:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=G9rruAgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbgGKGun (ORCPT + 99 others); Sat, 11 Jul 2020 02:50:43 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57635 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726963AbgGKGun (ORCPT ); Sat, 11 Jul 2020 02:50:43 -0400 X-UUID: 611b96dc5baf4b4eb1ff4fb9afb2de9e-20200711 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=dIm9QvJA4EDLMqFKpW7/RJwYmqQVAH3p/C0RPnf4QwE=; b=G9rruAgCEt3Y4HNjPz42vEmiqDVG6Ef0lxlgZxa6HjN3Uy8CxcAhbsJP5cCvx4uqVKUQftBvlm13d9xXD9DnRK5JG3921mWVMPuilJmV9A9h86hHGG3DBPLk2oUnddTNBz6izhYMg1jWHffEshfM2k0YEA8hBcwfLNYi2hRBuY8=; X-UUID: 611b96dc5baf4b4eb1ff4fb9afb2de9e-20200711 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1840359348; Sat, 11 Jul 2020 14:50:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Jul 2020 14:50:36 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Jul 2020 14:50:35 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy CC: Will Deacon , Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH 06/21] iommu/io-pgtable-arm-v7s: Use ias to check the valid iova in unmap Date: Sat, 11 Jul 2020 14:48:31 +0800 Message-ID: <20200711064846.16007-7-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200711064846.16007-1-yong.wu@mediatek.com> References: <20200711064846.16007-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QXMgdGl0bGUuDQoNClNpZ25lZC1vZmYtYnk6IFlvbmcgV3UgPHlvbmcud3VAbWVkaWF0ZWsuY29t Pg0KLS0tDQogZHJpdmVycy9pb21tdS9pby1wZ3RhYmxlLWFybS12N3MuYyB8IDIgKy0NCiAxIGZp bGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24oLSkNCg0KZGlmZiAtLWdpdCBh L2RyaXZlcnMvaW9tbXUvaW8tcGd0YWJsZS1hcm0tdjdzLmMgYi9kcml2ZXJzL2lvbW11L2lvLXBn dGFibGUtYXJtLXY3cy5jDQppbmRleCA0MjcyZmU0ZTE3ZjQuLjAxZjJhODg3NjgwOCAxMDA2NDQN Ci0tLSBhL2RyaXZlcnMvaW9tbXUvaW8tcGd0YWJsZS1hcm0tdjdzLmMNCisrKyBiL2RyaXZlcnMv aW9tbXUvaW8tcGd0YWJsZS1hcm0tdjdzLmMNCkBAIC03MTcsNyArNzE3LDcgQEAgc3RhdGljIHNp emVfdCBhcm1fdjdzX3VubWFwKHN0cnVjdCBpb19wZ3RhYmxlX29wcyAqb3BzLCB1bnNpZ25lZCBs b25nIGlvdmEsDQogew0KIAlzdHJ1Y3QgYXJtX3Y3c19pb19wZ3RhYmxlICpkYXRhID0gaW9fcGd0 YWJsZV9vcHNfdG9fZGF0YShvcHMpOw0KIA0KLQlpZiAoV0FSTl9PTih1cHBlcl8zMl9iaXRzKGlv dmEpKSkNCisJaWYgKFdBUk5fT04oaW92YSA+PSAoMVVMTCA8PCBkYXRhLT5pb3AuY2ZnLmlhcykp KQ0KIAkJcmV0dXJuIDA7DQogDQogCXJldHVybiBfX2FybV92N3NfdW5tYXAoZGF0YSwgZ2F0aGVy LCBpb3ZhLCBzaXplLCAxLCBkYXRhLT5wZ2QpOw0KLS0gDQoyLjE4LjANCg==