From: Dmitry Osipenko Subject: Re: [PATCH] drm/tegra: Add zpos property for cursor planes Date: Thu, 11 Jun 2020 14:27:45 +0300 Message-ID: <6e4dfca3-3f0f-0094-47eb-f267243ae7d1@gmail.com> References: <20200610113059.2164132-1-thierry.reding@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Daniel Stone Cc: Thierry Reding , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dri-devel , Jon Hunter List-Id: linux-tegra@vger.kernel.org 11.06.2020 11:17, Daniel Stone пишет: > Hi Dmitry, > > On Thu, 11 Jun 2020 at 08:54, Dmitry Osipenko wrote: >> 10.06.2020 14:30, Thierry Reding пишет: >>> From: Thierry Reding >>> As of commit 4dc55525b095 ("drm: plane: Verify that no or all planes >>> have a zpos property") a warning is emitted if there's a mix of planes >>> with and without a zpos property. >> >> What problem does it solve? > > Well, it fixes the WARN_ON, which asserts that either no planes have > the zpos property attached, or all planes have the zpos property > attached. When only _some_ planes have the property, the property is > pretty much useless: zpos exists to guarantee to userspace the > relative ordering between planes, defined by the value of the > property. If not all planes have the property, then userspace cannot > reason about the ordering, since some of the planes have undefined > ordering. Hello Daniel, So it's a kernel warning, thank you for the clarification! I'm running only older Tegras that have a black-n-white cursor plane, but this is not supported by the upstream kernel. No wonder that I haven't seen the warning, this made me curious what this patch is about :)