Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7869789ybi; Thu, 6 Jun 2019 02:54:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxEQXTkZoH54+ZtHWqt2ob7CSypyuwb3C0CdwuJXkUIZnmEmsOYfuoGapD/kcTxoFB5nfg X-Received: by 2002:a62:6143:: with SMTP id v64mr15670288pfb.42.1559814895643; Thu, 06 Jun 2019 02:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559814895; cv=none; d=google.com; s=arc-20160816; b=XTFEeThifDnsF15fgsDRpADCH5W0Pye9rBaKIZ2GSmReQ0DlwugHd8uNJpYm5dIbAp BctJpwz0t2U8qbpexB4lA2ZQ+Yo01e0USnqJLbxOk7DRBoz7wcjG58tvQdGF12xh2DrT r7cv0y6KwVdFx+NZTBC+e24zMhRHc6O3HyMAOt9l6Gnk5j5sPz5jrWoyldJPEn9fBkzX kpUVwon9453fyY+BcfwBF5UDYX/VwfAH1bOvM9/ERZ8o90GaqF+mKMGRx3zq6cBj8Ti3 FHuDZUzSpB3A6SrlTlpReJifFUrdrMNcJwV+rIRqifPwss6RREXYhFjZaFdT3oSiA+CJ lyAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :nodisclaimer:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=4JZlSiz+JY1dHgj+22zaOKvssBfFHl8ggVgLHnpAPlU=; b=Z/Si+31kSb1KZZc/5iToawhQqzrNT4YexGG7SKobArJPtcbyIBd2pDDhaiCDmPHuR6 bdyzgiS8kdZ4eXH9I1MPcuycbrEILZHq3+x70LT3DeeBb128q8+ZnbjRMPuGPeaPN4lC 3akl4UhRJ++P1HrK8DqC5kDKTbFarAY1Y+gBh2/bEzZ5KE0P9yPK16PyBsH00fQXgOvB 3R+Mtnamx9XCDpkGGwdGvq6GSaKuGcBhcLpNp1zF4mIu57c7pfpyCphbdmQmpTIlP65q zqG9ujUwyCWaX9ehY5o+gm5aJa+5kHX9RQtb5qiKUcn/TZbXDIiuowMNTRuUyiUOqJ8I gQXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=6XBo5BA5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si1475989pjw.16.2019.06.06.02.54.39; Thu, 06 Jun 2019 02:54:55 -0700 (PDT) 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; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=6XBo5BA5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728236AbfFFJxM (ORCPT + 99 others); Thu, 6 Jun 2019 05:53:12 -0400 Received: from mail-eopbgr30072.outbound.protection.outlook.com ([40.107.3.72]:61314 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728156AbfFFJxL (ORCPT ); Thu, 6 Jun 2019 05:53:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4JZlSiz+JY1dHgj+22zaOKvssBfFHl8ggVgLHnpAPlU=; b=6XBo5BA5LfedW4jVw3yEsXzCOOwxIyZY9YyVYydpOrkjjFhUxji1eSEtI4NWtxVSj01f9WuZjUg5eNzWwbfuUXwLa1tGrojlRnyvKQZY4aNSsMaIwACXIq5g+qvquw5DKl7cI31OBT7F9hzQcC7gNrN+bODZ921o8ncVdK2TB28= Received: from VI1PR08MB5488.eurprd08.prod.outlook.com (52.133.246.150) by VI1PR08MB4285.eurprd08.prod.outlook.com (20.179.25.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12; Thu, 6 Jun 2019 09:53:05 +0000 Received: from VI1PR08MB5488.eurprd08.prod.outlook.com ([fe80::e9f4:59c8:9be1:910b]) by VI1PR08MB5488.eurprd08.prod.outlook.com ([fe80::e9f4:59c8:9be1:910b%4]) with mapi id 15.20.1965.011; Thu, 6 Jun 2019 09:53:05 +0000 From: "Lowry Li (Arm Technology China)" To: Liviu Dudau , "james qian wang (Arm Technology China)" , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , Brian Starkey CC: "Julien Yin (Arm Technology China)" , "Jonathan Chai (Arm Technology China)" , Ayan Halder , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , nd Subject: [PATCH v2 1/2] drm/komeda: Adds SMMU support Thread-Topic: [PATCH v2 1/2] drm/komeda: Adds SMMU support Thread-Index: AQHVHE2jgCxyyug5F0W/iN7/994R9A== Date: Thu, 6 Jun 2019 09:53:05 +0000 Message-ID: <1559814765-18455-2-git-send-email-lowry.li@arm.com> References: <1559814765-18455-1-git-send-email-lowry.li@arm.com> In-Reply-To: <1559814765-18455-1-git-send-email-lowry.li@arm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK2PR02CA0169.apcprd02.prod.outlook.com (2603:1096:201:1f::29) To VI1PR08MB5488.eurprd08.prod.outlook.com (2603:10a6:803:137::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Lowry.Li@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e17603c3-d4ef-4a4c-577d-08d6ea64c5c1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR08MB4285; x-ms-traffictypediagnostic: VI1PR08MB4285: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:313; x-forefront-prvs: 00603B7EEF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(136003)(396003)(346002)(189003)(199004)(52116002)(6486002)(66066001)(2201001)(4326008)(386003)(6436002)(6116002)(86362001)(3846002)(446003)(76176011)(102836004)(8676002)(2616005)(55236004)(99286004)(476003)(305945005)(7736002)(25786009)(14454004)(53936002)(6512007)(486006)(316002)(68736007)(6636002)(186003)(6506007)(36756003)(50226002)(110136005)(2906002)(71200400001)(71190400001)(2501003)(26005)(11346002)(5660300002)(8936002)(81156014)(72206003)(256004)(81166006)(14444005)(5024004)(66556008)(64756008)(66446008)(66476007)(73956011)(478600001)(54906003)(66946007)(473944003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR08MB4285;H:VI1PR08MB5488.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: i6E4MGIGtrM7w9gTN2pvNQ4hX/lhr6XlZxF1etMadUXGTZ4KWUMqkheTt0GRcl33xz9vMmdjWO/HlE48ISITmCzihTsPgYyF4sgb9Lmeb6OC6Rvwmp/SUtAV99Nq3QKJ8Dzsbe217ctTO97OaQR9THUTTR71UDn/RoOWA6Np9qbgfmF29LC0az3H5Dfm4PP5NMcF4MUIJja29+kXO02H21ObUmLbTn7qaEQha7jjBnsGmueaXS9ti9IZPm2+t3OoHOrWf9GBKrbLldNQAqVTY4CHzCqcAr6dvuOp3PtymnlhL4HpZy+B9yzkeltnSFla3aSejr/fuVWC3R3kqvCCfUjdS8fo+7Sek3fcDjDExEqE35cBZmYe/35uLCcBQVzEmBXw/UoMWFKhgvFZIFATjuVr+h2teh4m1vkyW2+Hlto= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: e17603c3-d4ef-4a4c-577d-08d6ea64c5c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2019 09:53:05.7417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Lowry.Li@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4285 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogIkxvd3J5IExpIChBcm0gVGVjaG5vbG9neSBDaGluYSkiIDxMb3dyeS5MaUBhcm0uY29t Pg0KDQpBZGRzIGlvbW11X2Nvbm5lY3QgYW5kIGRpc2Nvbm5lY3QgZm9yIFNNTVUgc3VwcG9ydCwg YW5kIGNvbmZpZ3VyZXMNClRCVSB0cmFuc2xhdGlvbiBvbmNlIFNNTVUgaGFzIGJlZW4gYXR0YWNo ZWQgdG8gdGhlIGRpc3BsYXkgZGV2aWNlLg0KDQpTaWduZWQtb2ZmLWJ5OiBMb3dyeSBMaSAoQXJt IFRlY2hub2xvZ3kgQ2hpbmEpIDxsb3dyeS5saUBhcm0uY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