Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp296195pxv; Wed, 14 Jul 2021 04:18:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8CxAqPYgPvvxpc2L9j38z//z7c4pYChSVGYAKolqvI0zC0HbqFWxat5UzC/53itHzirIE X-Received: by 2002:a05:6402:2714:: with SMTP id y20mr12950618edd.190.1626261522975; Wed, 14 Jul 2021 04:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626261522; cv=none; d=google.com; s=arc-20160816; b=VyRHnAYA105hDGliJkM/lPzJgvssRAK1fNrKlwtAXIdUW6op141JphxryI7zRHxSns Dy3kQbPvY4BRW5Ebhu8PAofHm1+nZyWFJp4TX3DK75/g5BzxXpquqvfR4cwmYXPoO8Ze E6VlINEVH2CPcgzwoTAPbf5hAZvEDIlAWQ/uldT29++vZXiymZniQCjMtgZ3mjYK2oTE y2mU0q1v5WO9f440IZDpy3SDFPmkxuCG/66hRimf7mvzyeaDJeOwJIxYdB2WdjQSpyGj UQ07nS62EWY36ywIg5ZlyMxwCT4Mm2Wi1N17vbmEt5rsZDCSwKNmSn6bcYT3Yj9lm8VF dN7w== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=Q6LzrYoLA5I8zE2H4Wb3+h6SVEZjseCiEm0eHzHqVVY=; b=QTMQre/cKWWbJ1ASf6qFe23S52Kcvk68rewIkEDGX8Rmut7Y/JXGTOGw1ej2uSEaDa tr7ATvBaKdApumeFjuG4DTc0DZdQ+ajpaQz8IixcKxUwcD6wQZRmPn7mdOaDOR/7Wtqg P1KsLPstesvHT8gSVIYpNvSJai+pgvyddOUoefPIPF3AQNwquiQkQ0ROYl7SRFCghUtu 3SD5cQPGzHLBz5Sr7sQFttC+x1WaTAwt4BlduB9PrjN6madDkerb1tZcZ2+ySS+L1ckF YQRf+ccAilReY+CLDYRKNzWz/s4qOISQEzOxNW3ZjhGTvsi8K4OWwV7aMU1LYOG69r5X fU+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Y1vmKf1J; 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 ch10si2320574edb.145.2021.07.14.04.18.19; Wed, 14 Jul 2021 04:18:42 -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=Y1vmKf1J; 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 S239107AbhGNLUS (ORCPT + 99 others); Wed, 14 Jul 2021 07:20:18 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:44579 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232161AbhGNLUR (ORCPT ); Wed, 14 Jul 2021 07:20:17 -0400 X-UUID: 37b55c57c3454cd8b103485dbf769f8b-20210714 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Q6LzrYoLA5I8zE2H4Wb3+h6SVEZjseCiEm0eHzHqVVY=; b=Y1vmKf1JjW7fRct618pV5oa5Z4kb7hgjD2TkcFjjj+p9/1ijs5I3S///bHnVdVC6E+/uh2bQgRjZwz9zBBWjc1A0gdm55I+yH1AmUv0OD9WlpoMtFWZcXajNzBTq+rTYerQnF/NKoW7HZIHuWMiF6mOIwa7HpXBtE7zudMjUugo=; X-UUID: 37b55c57c3454cd8b103485dbf769f8b-20210714 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1517682039; Wed, 14 Jul 2021 19:17:19 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Jul 2021 19:17:15 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 14 Jul 2021 19:17:13 +0800 Message-ID: <1626261434.14352.14.camel@mhfsdcap03> Subject: Re: [PATCH v6 06/11] drm/mediatek: Add pm runtime support for ovl and rdma From: Yong Wu To: Dafna Hirschfeld CC: Matthias Brugger , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , David Airlie , "Mauro Carvalho Chehab" , Evan Green , Robin Murphy , Tomasz Figa , "Will Deacon" , , , , , , , , Nicolas Boichat , Matthias Kaehlcke , , , , , , , Daniel Vetter , Chun-Kuang Hu , Philipp Zabel , Xia Jiang , Tiffany Lin , Hsin-Yi Wang , "Eizan Miyamoto" , , Yongqiang Niu , CK Hu , Date: Wed, 14 Jul 2021 19:17:14 +0800 In-Reply-To: <61aa5aa9-5bd2-e99c-02ef-f5d13526eb43@collabora.com> References: <20210714025626.5528-1-yong.wu@mediatek.com> <20210714025626.5528-7-yong.wu@mediatek.com> <61aa5aa9-5bd2-e99c-02ef-f5d13526eb43@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 71B93BC55DBF796D54EF11802D7AD481B3722F9B783DF86A1B40DE94AAC8E5FC2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIxLTA3LTE0IGF0IDEwOjQ0ICswMjAwLCBEYWZuYSBIaXJzY2hmZWxkIHdyb3Rl Og0KPiANCj4gT24gMTQuMDcuMjEgMDQ6NTYsIFlvbmcgV3Ugd3JvdGU6DQo+ID4gRnJvbTogWW9u Z3FpYW5nIE5pdSA8eW9uZ3FpYW5nLm5pdUBtZWRpYXRlay5jb20+DQo+ID4gDQo+ID4gUHJlcGFy ZSBmb3Igc21pIGNsZWFuaW5nIHVwICJtZWRpYXRlayxsYXJiIi4NCj4gPiANCj4gPiBEaXNwbGF5 IHVzZSB0aGUgZGlzcHN5cyBkZXZpY2UgdG8gY2FsbCBwbV9ydW10aW1lX2dldF9zeW5jIGJlZm9y ZS4NCj4gPiBUaGlzIHBhdGNoIGFkZCBwbV9ydW50aW1lX3h4IHdpdGggb3ZsIGFuZCByZG1hIGRl dmljZSB3aG9zZSBub2RlcyBoYXMNCj4gPiAiaW9tbXVzIiBwcm9wZXJ0eSwgdGhlbiBkaXNwbGF5 IGNvdWxkIGhlbHAgcG1fcnVudGltZV9nZXQgZm9yIHNtaSB2aWENCj4gPiBvdmwgb3IgcmRtYSBk ZXZpY2UuDQo+ID4gDQo+ID4gQ0M6IENLIEh1IDxjay5odUBtZWRpYXRlay5jb20+DQo+ID4gU2ln bmVkLW9mZi1ieTogWW9uZ3FpYW5nIE5pdSA8eW9uZ3FpYW5nLm5pdUBtZWRpYXRlay5jb20+DQo+ ID4gU2lnbmVkLW9mZi1ieTogWW9uZyBXdSA8eW9uZy53dUBtZWRpYXRlay5jb20+DQo+ID4gKFlv bmc6IFVzZSBwbV9ydW50aW1lX3Jlc3VtZV9hbmRfZ2V0IGluc3RlYWQgb2Y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