Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp361710ybv; Fri, 7 Feb 2020 00:36:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyMdSEKYvovz9/VtFfROCxasIWgSMe3e0rC9aa6M5Ma6VsRfkzfwheYWmtgPBmMPDxn4/+V X-Received: by 2002:aca:44c1:: with SMTP id r184mr1264779oia.151.1581064579386; Fri, 07 Feb 2020 00:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581064579; cv=none; d=google.com; s=arc-20160816; b=chGkMkmc888C5hgW2inYmtH4hs6hTN0qVqPOyhs/b2adC+U96uc4VPwCiOUHg6df8a OENygqHhqXqvsOqGHwBk0dKy3UChhF1uYyrJVjgizN6M+I4CP7TEcN7/Rkv8FEzApGFw 2RDSaSMs925EaYrfrn5HBoTJ/4cWbYt78uh7tTmkgzMZyeI9IJKr5gOJbUFftEBbbcbp 7uPPWmYcj9TIqqWK4rmZDwm2OsoxhOlZqo5aAUv8b5PiUPMgPi72Vs5xmNq26/xOvKdq 0MbIQ85eIlP06GHnjYrTAxY63H3eR0xrNk07NCureleVF0sZLNk/mgJdzLoPMqhgLXGN +f9w== 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=hXWVZ6oSwC7pNQrHxmaSfz6HN+UgtHEL8vkKF8UU45A=; b=Z84j+EBqAzRlSeYAkZqT7EztKBC+SDfyNruj4rwuWMZdGxjURuwYZi/Rap/gOgajN3 zNrAFZhyjlzFim+AVpB4SrDMibu7JTez8Jpmgsi/r6HzkaDWNRRsNhdlpO6SOw2c1TaZ Gst3ZDedMSB0tJ+aS1wrOpwlHwI1Xyc5tqePGg2FjzHFhXphwCaceQ+wezlRZxEvzGmk EeQLe+ykPrQVv+obnKh34A88poL0UR8rUdfkVcnzl/WgUcBOn2OQyRdsEFn0ORJPfjWb pwWWYjF+z/oTXoz6x4sSiV+PPWItxnGdBbc+97Jz842KAjkYQeWQaPMgRYmj8nJwDMG9 +g3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=i85HRCam; 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 y22si1236873oti.269.2020.02.07.00.36.06; Fri, 07 Feb 2020 00:36:19 -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=i85HRCam; 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 S1726674AbgBGIfL (ORCPT + 99 others); Fri, 7 Feb 2020 03:35:11 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40260 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726451AbgBGIfK (ORCPT ); Fri, 7 Feb 2020 03:35:10 -0500 X-UUID: 0256c2ddcaf640b682504a0c78776d0e-20200207 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=hXWVZ6oSwC7pNQrHxmaSfz6HN+UgtHEL8vkKF8UU45A=; b=i85HRCamkErv65eH5EQ5F4f1Uyu2I6hSbtMVf1IKSu6XRS4JO8CFSpiWBCpjm38ZVuFL54Kde34iD7s3cj6qzxmqwA3i4CVcGqwzMg+6BXlW+FBT8Z5xZygfBb9KjSJJ/74B2zVpNAx5s6efEp8nlntQPFoFjvVOWUxZzLqDDUU=; X-UUID: 0256c2ddcaf640b682504a0c78776d0e-20200207 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 455714423; Fri, 07 Feb 2020 16:35:07 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Feb 2020 16:35:53 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkcas08.mediatek.inc (172.21.101.126) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Feb 2020 16:35:28 +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; Fri, 7 Feb 2020 16:35:28 +0800 Message-ID: <1581064499.590.0.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: Fri, 7 Feb 2020 16:34:59 +0800 In-Reply-To: <20200207152348.1.Ie0633018fc787dda6e869cae23df76ae30f2a686@changeid> References: <20200206140140.GA18465@art_vandelay> <20200207152348.1.Ie0633018fc787dda6e869cae23df76ae30f2a686@changeid> 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 SGksIEV2YW46DQoNCk9uIEZyaSwgMjAyMC0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