From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Subject: Re: [PATCH] drm: add capability DRM_CAP_ASYNC_UPDATE Date: Thu, 20 Dec 2018 18:16:52 +0100 Message-ID: References: <20181123215326.14274-1-helen.koike@collabora.com> <20181127133418.GT9144@intel.com> <6aa39654-6949-88b3-b949-b338d915ffd2@collabora.com> <0a0a35bf-69e4-8dcd-46fc-7053081480d5@collabora.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-CA Sender: linux-kernel-owner@vger.kernel.org To: Daniel Vetter , Alex Deucher Cc: dnicoara@chromium.org, =?UTF-8?Q?St=c3=a9phane_Marchesin?= , Sean Paul , Alexandros Frantzis , David Airlie , Linux Kernel Mailing List , dri-devel , Tomasz Figa , Gustavo Padovan , Helen Koike , kernel@collabora.com, "Kazlauskas, Nicholas" List-Id: dri-devel@lists.freedesktop.org On 2018-12-20 6:09 p.m., Daniel Vetter wrote: > On Thu, Dec 20, 2018 at 6:03 PM Alex Deucher wrote: >> On Thu, Dec 20, 2018 at 11:54 AM Daniel Vetter wrote: > >>> Not sure about the gamma thing since we had opposite bugs on i915 >>> about gamma not being vsynced and tearing terribly. Cursor is special >>> since it tends to be too small to notice tearing. >> >> Our cursor hw (and possibly gamma as well Nicholas? Harry?) is double >> buffered, so we can update it any time for the most part and the >> changes won't take affect until the next vupdate period. > > Hm, I guess we could make the gamma update optionally async, and let > drivers deal. The issue is that the current async helper stuff won't > cope with gamma updates (it's aimed at plane updates only, not at crtc > property updates). Or we get userspace to do proper atomic updates. Or > we do some faking in the kernel, e.g. waiting with the gamma update > until the next atomic update happens. But that kinda breaks > ->atomic_check. Would it be possible to merge gamma changes into a pending commit, if there is one, and create a new commit otherwise? Otherwise the atomic API just moves this same problem to be solved by userspace. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer