Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1616874ybm; Thu, 23 May 2019 04:11:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrjwUaDqa92YkhMct2HeW78Ny9gvTKcup7UPROmeU7sRlUBh2L3uDkV+Z455BywqhIEjZL X-Received: by 2002:a62:e205:: with SMTP id a5mr65212907pfi.40.1558609896858; Thu, 23 May 2019 04:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558609896; cv=none; d=google.com; s=arc-20160816; b=qcmjrT39m0tv3q+z8bc6ANGw+b51GmIUt5y4XtCNhjZzLl+CqQ+TKRGCXhS4gcw6jf FrhW6xfq+YucDlAFG+Au6vij6U+sdCPPmOLMljO6jDkcOz3GIOqh/E1hHbhBB0X3D78q QNaYZost70+Y/2UYcB/fePW489xUV0Z3UMdKQ6DAFmNwgCrUgtWkG1VhR3Jl50EV6gi1 0agkfIjUVR4iL2AH9lTNACeBLMwcQ8u1lQ9OgZgu+jABsUAMnJRUg/zq525i/HuqL+Sl hF+a7xTiBDAVOxAjWJ4cimh18ytD8IejwNUbpkxrr86rtYO0cKiBo7dxY+2faLgaxeSK KySA== 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=39T5F2wcnsfC0J7zBBnSmblpeF5L+NLK6DLYspLeVb8=; b=o60Y4l+smCcYgHcUZtYn4Bedy0irvRmoNvAwJ+d4rdL9vMs7X6tezXzuNcSwSfQWoB v/8e1qnKAQlYhdIehTh31rEtB91/LRXsW9lLtcuv4+FZZ5iLmCE1gC6K45f5JDk+dQWR GEF/0XI1CNCWwELhipCmA0PHptPZfmNIxP/rk2IlXNIpRBF0Jb7Mburc8FV5lkkg02pU SN05C/40XSoNLxuF+XGC5BqR4iLg2UhjR/opbPb77era9tKBIrcQN5JAIpt2ZQ3VuP+R 0maLufzgjbe+iLiTc1yrOR9rz7DQJOMx+gV8Y/nqesMn+YM/ypeaFYNlNd6WRELudspn JiCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=k5EaMTIn; 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 f1si30141251pln.23.2019.05.23.04.11.21; Thu, 23 May 2019 04:11:36 -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=k5EaMTIn; 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 S1730415AbfEWLKC (ORCPT + 99 others); Thu, 23 May 2019 07:10:02 -0400 Received: from mail-eopbgr20069.outbound.protection.outlook.com ([40.107.2.69]:16025 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726429AbfEWLKB (ORCPT ); Thu, 23 May 2019 07:10:01 -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=39T5F2wcnsfC0J7zBBnSmblpeF5L+NLK6DLYspLeVb8=; b=k5EaMTInpjiUryTdu6ZUvpBMfXWGpE61PpDmB/KRui9sSsrAX36ctn5cB26SVCqgUCOOsno8CeZMkmkkM+kencKlL+pQIBUguXCrgjXMtLjbHG81tBqaKpA31JGpwbct53FyAkXJOvz+86mc7bPn89JhAPG2HoPW71+0pjmWVMg= Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by AM0SPR01MB0043.eurprd08.prod.outlook.com (20.178.16.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Thu, 23 May 2019 11:09:57 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358%7]) with mapi id 15.20.1922.017; Thu, 23 May 2019 11:09:57 +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" , Ben Davis , "Oscar Zhang (Arm Technology China)" , "Channing Chen (Arm Technology China)" , "james qian wang (Arm Technology China)" Subject: [PATCH v2 1/6] drm/komeda: Attach scaler to drm as private object Thread-Topic: [PATCH v2 1/6] drm/komeda: Attach scaler to drm as private object Thread-Index: AQHVEVgOxJeSeZX9GU+RcpLRWDIdSQ== Date: Thu, 23 May 2019 11:09:57 +0000 Message-ID: <20190523110933.10742-2-james.qian.wang@arm.com> References: <20190523110933.10742-1-james.qian.wang@arm.com> In-Reply-To: <20190523110933.10742-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: HK2PR02CA0191.apcprd02.prod.outlook.com (2603:1096:201:21::27) 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: 6a618328-9262-4db7-91ed-08d6df6f30d0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM0SPR01MB0043; x-ms-traffictypediagnostic: AM0SPR01MB0043: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1850; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(39860400002)(136003)(376002)(396003)(189003)(199004)(36756003)(1076003)(8936002)(103116003)(2616005)(446003)(54906003)(110136005)(4326008)(11346002)(53936002)(25786009)(6486002)(50226002)(256004)(81156014)(66066001)(68736007)(81166006)(486006)(2501003)(5024004)(99286004)(7736002)(386003)(5660300002)(66946007)(71200400001)(186003)(476003)(305945005)(6506007)(2201001)(2906002)(76176011)(55236004)(86362001)(102836004)(3846002)(26005)(6116002)(478600001)(316002)(66476007)(66556008)(73956011)(14454004)(6436002)(66446008)(6512007)(64756008)(52116002)(8676002)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0SPR01MB0043;H:VE1PR08MB5006.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: jPYezOkXaHeZfD0nCSjaRS8tNO/2BLmh+xSo4bYa2UJZRcwhTojGJDGdE6X64QwfNW7uwQgD6rH63jjwepzqnUE1cdmHmpfvrYdO6eUol0V93wae/c9Wj4yE1LXTzlTs012mPwZuY3yIRiwqCjPV4EGLrhAnXgzBbb07CGF+2SdFMn8W7Kr+8mPqLnUzvngVmdLj6pMA++GazdIKAn4oVq0TCfGMhMlVI3CfXn9n8/fOm/EXWHChJaNzu32wzl9AXPOtcUEDzkadxzToWYpSJ1C69TUC69whBXhzu/vSVe54+YbufrzrG5DNdviOtM4PcF2pTDN5PblDm5idZmC3IKKSLty69u77kI+udvtrEHlIgSqSJC3f8xSyyy5Hfk5FLQz9EC+DcvFtWv3X8IxsW/EsaWmo4aRVr7gl8Y3124w= 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: 6a618328-9262-4db7-91ed-08d6df6f30d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 11:09:57.6770 (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: AM0SPR01MB0043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWNjb3JkaW5nIHRvIHRoZSBrb21lZGEgcGlwZWxpbmUgY29uZmlndXJhdGlvbiwgYXR0YWNoIHNj YWxlciB0byBkcm0gYXMNCnByaXZhdGUgb2JqZWN0Lg0KDQp2MjogUmViYXNlDQoNClNpZ25lZC1v ZmYtYnk6IEphbWVzIFFpYW4gV2FuZyAoQXJtIFRlY2hub2xvZ3kgQ2hpbmEpIDxqYW1lcy5xaWFu LndhbmdAYXJtLmNvbT4NCi0tLQ0KIC4uLi9hcm0vZGlzcGxheS9rb21lZGEva29tZWRhX3ByaXZh dGVfb2JqLmMgICB8IDQ5ICsrKysrKysrKysrKysrKysr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