Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3242930ybv; Sun, 9 Feb 2020 18:53:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxjeD7yW+PkvbccYBWu5Cj60u5ql+I8VgB5Ajn/13ikKf6Gyklws+KxdIaBrM7ZfDjYKAju X-Received: by 2002:aca:190a:: with SMTP id l10mr9761132oii.56.1581303217276; Sun, 09 Feb 2020 18:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581303217; cv=none; d=google.com; s=arc-20160816; b=q7SCuTfqnGsDhEI1I9+VSwWcjKn83ZEAx0f+MjC5ewNUaOPRhT7L8FdGLb9TcyfRrJ wYm3nRCbg1BPsdvDC8d9ZfO8/SoXW7R9NYvzeLhNPZixQRU6jC5vBH6oYal1Q2O1Vpuc SKnR7bZbjtrtCR7jXn2ug3vWBj117h2/79g5QlR3hcKiMtGwMlNfIlOuYh+q11/3l2oZ 54AFosRWD0TE1p325WQa8GmJrkFDFFTiqHcoLIE6xtPflN4ylpRfszwuEskXUgrKTwb2 50LZug6lR8sVksclD3AdS2nFdoSPWmgoP5qvhhePhKR0TvvyWsLs9kKI2Rerv1rXWxTQ Y0gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=W9H3gUT21gGxakLPlN7C+OdzFLN/Tl44T7eG40NyIp0=; b=DkIAykZZTHIDVU8Y+P3bezhqx2NGWOEoE8TEzf9jDXw6/1QwGZ+0YaCvNSV0LjKXDF 31s5bbfZaimdc0xcjtj+OA8NXcFGN7Z7yk6BPIsSijMpwpS9e9JEgDs2axLYKo6GJ0ZR bzb3PPUIpeRrLSP1iZxJlHFQsW7T14672SQMbj2+u/n41jx2aC74J/CCK8opRuCleKts oVxJ8+0DJuJmXuHTRP9d65+iiDI1H3GOgzciGfD2bwsDPloZhSfzO7X70EoF2dClBZm2 wENVAOGYGQSmfIoEp/SJWuNMNEbzwIojL11xs0MsapSFPsBHqnGRLpliEQXAwsjKnXF4 oM4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Lae74vM2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si7513278oie.56.2020.02.09.18.53.24; Sun, 09 Feb 2020 18:53:37 -0800 (PST) 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=@mediatek.com header.s=dk header.b=Lae74vM2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbgBJCxO (ORCPT + 99 others); Sun, 9 Feb 2020 21:53:14 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:38691 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726910AbgBJCxO (ORCPT ); Sun, 9 Feb 2020 21:53:14 -0500 X-UUID: 669d501fcfcc4530a26b11203217b0ac-20200210 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=W9H3gUT21gGxakLPlN7C+OdzFLN/Tl44T7eG40NyIp0=; b=Lae74vM2lIGTQnPzJo/fh/ko34RNSZ4n9XoVN6pkcEpVpsT8Ii2WMVvVkuXVdCpP9TvwJ+CWzxE2MbQJML09lHlOdQvbVglMlbQAJ7F4sD/CvODLq3Rk+MxiTpMuIMSb5vg2EWrkxHetweCevm8ifcFM4eJoclnBBGmRgkvvK8E=; X-UUID: 669d501fcfcc4530a26b11203217b0ac-20200210 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 77091319; Mon, 10 Feb 2020 10:53:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Feb 2020 10:52:25 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Feb 2020 10:52:18 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 10 Feb 2020 10:53:24 +0800 Message-ID: <1581303187.951.2.camel@mtksdaap41> Subject: Re: [PATCH] drm/mediatek: Find the cursor plane instead of hard coding it From: CK Hu To: Evan Benn CC: , Philipp Zabel , , Matthias Brugger , , David Airlie , Date: Mon, 10 Feb 2020 10:53:07 +0800 In-Reply-To: <1581064499.590.0.camel@mtksdaap41> References: <20200206140140.GA18465@art_vandelay> <20200207152348.1.Ie0633018fc787dda6e869cae23df76ae30f2a686@changeid> <1581064499.590.0.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEV2YW46DQoNCk9uIEZyaSwgMjAyM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