Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4353975pxk; Wed, 30 Sep 2020 00:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCeRg8NW/+kJQinSnb+3FQegtzs5KyN+D1Gm5JsnO39Iw8pxxDbvI64+2R6dhXUVyZ0o7U X-Received: by 2002:a17:906:6a82:: with SMTP id p2mr1404860ejr.3.1601450023724; Wed, 30 Sep 2020 00:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601450023; cv=none; d=google.com; s=arc-20160816; b=N7SA3AzbStGum0DEuOKNZDTUMvZOTQnFQVP65S/kZopjJDnJGRfveCG4KdF9DdbgZf qFKNAn/yxMaak7qJ8DYZn3Ug+RDBHXe9ldFpoEwoZ9KYeyi50S57bvkNBHBHEd1IK5rz zG2pTTOejYla5I45Qb70vwvg1F1F6c+9NH5qWo2IoUYSrewkQYhM6E/qhzVirhDG71uU yokDGmJuulP7ZLdBMAs9+A4779q8EvoA+xIN7fXvjiaYoKmMhmM9QJLE/G6zGJYNxTOe RfoZjbN2AhK0i9TxkcpA+K8tIHPSHll1N5gabvmvGiJtB4of5+v5edEJrq6Cw33LK11g iJLw== 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=RN7yNo4ETUlOANbm4Eff3Fq+AJYXRAfhO0hzi8naKds=; b=ordCmjjBxM+VG/TDLVvbj6HQxHQIz9n46tXoJfWaOA0V3Fjr/afRK59ZFvKcrZoe6x E+lOaj3I2IMI/ZAzUYbiy0vxRd69kXq4mGuM05ZiSLVV1vjc+TcY4c9tasq9RUUbQPt2 Bpz9r2QZXXE4zx9VGvMULTuzaUya9FLa8E+cLwYEBLPwzIzLPyxn8hjhRPl7kCqArkQZ Yzi0tDzC5ckPQWX61KjtpRlptgZKtTe5+18623Zc2VdGDTbBZTyjFXB/1yRXFITfED/M UHTSxbmmyDxcKeIvQJmh2W/4AW9J9QDbpSymKT9lT8at7ERF4b92dncncqxivenePkzn SA4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=guNz0oC9; 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 y10si448651eds.17.2020.09.30.00.13.21; Wed, 30 Sep 2020 00:13:43 -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=guNz0oC9; 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 S1728885AbgI3HLd (ORCPT + 99 others); Wed, 30 Sep 2020 03:11:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52104 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728471AbgI3HLd (ORCPT ); Wed, 30 Sep 2020 03:11:33 -0400 X-UUID: ab3229e0b4214613b6daf4916edb86c9-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=RN7yNo4ETUlOANbm4Eff3Fq+AJYXRAfhO0hzi8naKds=; b=guNz0oC9n9eYPF5cOWsHDxO5PSDEW+0EalhUopRYtTAgYzyVr92KONpsE2HMhGl7YQTzILZTYWx+p18+vCMRin7gkTYIBppVdgpI99ZVOudg8PXcQ7V/AACBtdtPt7kFUvH6Oo3/YN9LcfOOn6rWYojQ+LV23MCUj6SMxJhekso=; X-UUID: ab3229e0b4214613b6daf4916edb86c9-20200930 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.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 123339322; Wed, 30 Sep 2020 15:11:30 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 15:11:27 +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:11:28 +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 23/24] iommu/mediatek: Add mt8192 support Date: Wed, 30 Sep 2020 15:06:46 +0800 Message-ID: <20200930070647.10188-24-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 QWRkIG10ODE5MiBpb21tdSBzdXBwb3J0Lg0KDQpGb3IgbXVsdGkgZG9tYWluLCBBZGQgMU0gZ2Fw IGZvciB0aGUgdmRlYyBkb21haW4gc2l6ZS4gVGhhdCBpcyBiZWNhdXNlDQp2ZGVjIEhXIGhhcyBh IG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