Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4354538pxk; Wed, 30 Sep 2020 00:14:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxt97FHvGr+Jm2UH4gRHWn4kxZSGhTBChB4Bpt2+0+L8yqr+CVKzO/a3m9w081tF94BXUS X-Received: by 2002:a17:906:14d3:: with SMTP id y19mr1366985ejc.453.1601450090245; Wed, 30 Sep 2020 00:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601450090; cv=none; d=google.com; s=arc-20160816; b=uOiwAtnNzDIr6odBmO26+QFpt+ErQIKQ25ppNSVKzE8Y9eslUKbA8NDRJHhzPa4nGo eW/blvQGcD0V65joWL08zSldVC6d9bpwgBmp4ilmgwHKwtX6w87HNo0tLYPFIOywUvMi xuyCV6jG6bU0mZJHmnq+vguqlJ7COpLCNN63p0z4F4zabiYispdngc6+IypZ4IC66NIG tASXdW3B4E8KKhcxT6H4ANuyaDh2VRZDywKsLh9fnlJwvJbqkIU0Nmmqmc6XcJRltV2f FhadF7ae8OT7MwhahX/F/SHSsUXqZ5gpoJLUv4s3wv5e1/yNVmvGtF/tJ9PvThaouuxV n1Qw== 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=Ui4GWpIpEZeEo5yFuSRb2UvikryR+dwUjLl+SOuaZaI=; b=Rs1q1reRelkw22IOCOWtA0Eg/z2q3TlZLeqNyRKOa25+AvEQfvRVJtVcuWr9NZ2jlb OpRyUE9sg4hoUDFRNNqfVqkdok01HsZvhW7u5sUQs+uKmK3fYcG2rRriW8R7GlvVVcC0 L8rD7QSaTb4GSVy2Pz/SwjLr52t0GK7WOUAxiKPeCK5+1GlHq9gU1XjiNFWhm6DW66oc ZG518Nhvg/kXEF41NorHVcOoau+irrpRXqMaEGtB6NBjnAB9Hcr0DyxNeA6GgbcNpWFa 746DYa5N3cctEkTGeogJwKrpqpQXccInhAN6IxQmkWsCX5NWdeBhxd2svM89mbsGeXvJ G0wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MU8xJXcQ; 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 i12si584021ejk.740.2020.09.30.00.14.27; Wed, 30 Sep 2020 00:14:50 -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=MU8xJXcQ; 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 S1728547AbgI3HKy (ORCPT + 99 others); Wed, 30 Sep 2020 03:10:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41797 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728289AbgI3HKx (ORCPT ); Wed, 30 Sep 2020 03:10:53 -0400 X-UUID: 738073c326bb4aebba436f60e779267f-20200930 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=Ui4GWpIpEZeEo5yFuSRb2UvikryR+dwUjLl+SOuaZaI=; b=MU8xJXcQDmw6SBf2HliXfHXco5FDrdUA6A65X1N1qV3ZNUmuNXwh25qepKf294MhaPIZMDSgy+hsPXz8N/XqXtvYY+lG6HcUGnfXJEYda4/omcxiuTnf3ZWwyIAW9UwhYb1TEELYfMvBCJZAaRS2lSbbxKebWlqUUd8N++v4Xis=; X-UUID: 738073c326bb4aebba436f60e779267f-20200930 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 906972227; Wed, 30 Sep 2020 15:10:52 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 15:10:52 +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; Wed, 30 Sep 2020 15:10:50 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Rob Herring , Robin Murphy , Krzysztof Kozlowski , Will Deacon CC: Evan Green , Tomasz Figa , , , , , , , , , Nicolas Boichat , , , , Greg Kroah-Hartman , Subject: [PATCH v3 19/24] iommu/mediatek: Support up to 34bit iova in tlb flush Date: Wed, 30 Sep 2020 15:06:42 +0800 Message-ID: <20200930070647.10188-20-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200930070647.10188-1-yong.wu@mediatek.com> References: <20200930070647.10188-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SWYgdGhlIGlvdmEgaXMgMzRiaXQsIHRoZSBpb3ZhWzMyXVszM10gaXMgdGhlIGJpdDAvMSBpbiB0 aGUgdGxiIGZsdXNoDQpyZWdpc3Rlci4gQWRkIGEgbmV3IG1hY3JvIGZvciB0aGlzL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