Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1897090yba; Mon, 15 Apr 2019 00:10:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzW3azRI2AHBokX5MRL2vYVspXALsMhc8svrwikRixcnI4nnA4HrXYarNeWivlDqtJ6LEyM X-Received: by 2002:aa7:884b:: with SMTP id k11mr73623941pfo.49.1555312204546; Mon, 15 Apr 2019 00:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555312204; cv=none; d=google.com; s=arc-20160816; b=G4IE+QwXSaPhj1Lzs8g6KStAcjyPHfASqJxmp2qRQSUDAxcwAGqVssjtwsbZPnerOn H8+DRhoPuPaVWB6ffjL2ETy1dTKbf/mCA0YpbzjFihUBJ3Ryus5+Zox03aSO53Vrzc2W +Gtcb+0/kV4RinwjaU7H4kIkJvVJEd2Oe2OPYgKCX5brbPB4DdWz4wps3j+hqluD4UeM jr9CLJWOFZibXNPnFlf9fNeCA7XUTR3/DgwTlhDPXhAA6GpnYXe3z8mJUIztzWcq4JsX iyQhdeofZh0rLuRgFmIRIM+qm4h+kUWs80ZuqT9TGdmpepVOUF9thuSZMAs0A57aQN0I tAiw== 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=HdO1jXCt8pMlZLgiQ1fU6agKEaJh+48odQxyBGK8qYk=; b=uF6zFvkJErw2TypFys+heWs2zYhIxm109snc3Ua8aQHmxrY19GjjRjYlvjFW0ytjDj QNkswTgO65R5h/hXXkMPJxYE4sfds/UOBedTgzzqUeJRbhuqAd3LiJQTWOs1eHghodkc Gf28J1rGLGhtly+MUNW8OHmNBYql+GfyX9nEplGadlnG1U6Q5nIGlPHhQZ4ynfMZieht 1eMFa8IeEYxjOqkRdF+23oR5Hk+bDfXO6gNTmMkOCCd0RoSukd2Hf8zacbbDH8YKssw1 dnZdIAqdFCmNbg74HXNiLOzyIO1nORkzkAPwNWJgn1qicGt1LW8YEzALU7Yj+Y2FLmdm vaLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=gZZ58Sqj; 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 h10si27171805pll.251.2019.04.15.00.09.48; Mon, 15 Apr 2019 00:10:04 -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=selector1-arm-com header.b=gZZ58Sqj; 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 S1726293AbfDOHJI (ORCPT + 99 others); Mon, 15 Apr 2019 03:09:08 -0400 Received: from mail-eopbgr140073.outbound.protection.outlook.com ([40.107.14.73]:6942 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbfDOHJI (ORCPT ); Mon, 15 Apr 2019 03:09:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HdO1jXCt8pMlZLgiQ1fU6agKEaJh+48odQxyBGK8qYk=; b=gZZ58SqjV6u+IvDI/1Gg3kujcj91qIo1qtLp/AB6zttS+FJJky+FtMxQ+XnIcJbW4kOO9gKVWQFpSE7Mo+TBOp7oJsoE+E36i2mdG6DT35Mg+PZJ2mFH9IeIKUglahdd8uNT01f8Xh3R8ZxET17QHIvdphVrEKtkm2ibdOKhHOM= Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4765.eurprd08.prod.outlook.com (10.255.113.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.19; Mon, 15 Apr 2019 07:09:04 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::6ca6:1d85:8903:90d7]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::6ca6:1d85:8903:90d7%5]) with mapi id 15.20.1792.018; Mon, 15 Apr 2019 07:09:04 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau , "airlied@linux.ie" , Brian Starkey , "maarten.lankhorst@linux.intel.com" , "sean@poorly.run" CC: "Jonathan Chai (Arm Technology China)" , "Julien Yin (Arm Technology China)" , "thomas Sun (Arm Technology China)" , "Lowry Li (Arm Technology China)" , Ayan Halder , "Tiannan Zhu (Arm Technology China)" , "Yiqi Kang (Arm Technology China)" , nd , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "james qian wang (Arm Technology China)" Subject: [PATCH v1 1/6] drm/komeda: Attach scaler to drm as private object Thread-Topic: [PATCH v1 1/6] drm/komeda: Attach scaler to drm as private object Thread-Index: AQHU81ocfDJ0fbJ8LU2n0DClmIk0YA== Date: Mon, 15 Apr 2019 07:09:04 +0000 Message-ID: <20190415070828.24075-2-james.qian.wang@arm.com> References: <20190415070828.24075-1-james.qian.wang@arm.com> In-Reply-To: <20190415070828.24075-1-james.qian.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK0P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::23) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6783ece-5f58-42b0-14a0-08d6c1713e59 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:VE1PR08MB4765; x-ms-traffictypediagnostic: VE1PR08MB4765: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 000800954F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(136003)(39860400002)(376002)(346002)(199004)(189003)(186003)(14454004)(5024004)(446003)(81156014)(486006)(66066001)(8676002)(26005)(5660300002)(6436002)(1076003)(103116003)(6512007)(76176011)(36756003)(476003)(2616005)(7736002)(4326008)(81166006)(11346002)(305945005)(2906002)(25786009)(71200400001)(71190400001)(68736007)(86362001)(2201001)(50226002)(102836004)(110136005)(97736004)(386003)(6506007)(55236004)(54906003)(256004)(8936002)(52116002)(106356001)(105586002)(2501003)(6486002)(53936002)(3846002)(478600001)(99286004)(316002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4765;H:VE1PR08MB5006.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: zmqcqUWuW0HPKFYjHnoMxyrdiwgGEs7phMEwWszYiRPYYxR7FDKkDjno7wncGpm7kD9AzHyIseYqkmsaJOG0wXUAybLo1V6+FY8/HBJzr5lbjQ1s1A4hBDrebmA54823JJEoa9bGwXW0cTUe6Jz4cEhBjRqtn+jscOrFtJjWIyZyb8QryfdJ+yZoZU3XMkgN8w7SS5iOu0TML9bD8qEAV/tkXlPZ3sm8fnUWiLYpcMlEMXclYTmH84w3kjVzSnU3FKwPUF0ZfiTnURPfLa2K0sRwM1gzVLiZmd1nVJB8x6v4nt6lBFrSlU1TPcxDCBOMi497ZSaCGDNtUsOFCQz4sfrw2HNrHA+hXoUMdSlYFDq1O3mT3DTJO2eAYE7Cqb/oCEx+pKIUpKyiVamNvPMzKkNYV4qZg5uKyBS44sNe1Kg= 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: e6783ece-5f58-42b0-14a0-08d6c1713e59 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2019 07:09:04.4567 (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-Transport-CrossTenantHeadersStamped: VE1PR08MB4765 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWNjb3JkaW5nIHRvIHRoZSBrb21lZGEgcGlwZWxpbmUgY29uZmlndXJhdGlvbiwgYXR0YWNoIHNj YWxlciB0byBkcm0gYXMNCnByaXZhdGUgb2JqZWN0Lg0KDQpTaWduZWQtb2ZmLWJ5OiBKYW1lcyBR aWFuIFdhbmcgKEFybSBUZWNobm9sb2d5IENoaW5hKSA8amFtZXMucWlhbi53YW5nQGFybS5jb20+ DQotLS0NCiAuLi4vYXJtL2Rpc3BsYXkva29tZWRhL2tvbWVkYV9wcml2YXRlX29iai5jICAgfCA0 OSArKysrKysrKysrKysrKysrKysrDQogMSBmaWxlIGNoYW5nZWQsIDQ5IGluc2VydGlvbnMoKykN Cg0KZGlmZiAtLWdpdCBhL2RyaXZlcnMvZ3B1L2RybS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