From: Daniel Vetter Subject: Re: Linux Plumbers Android+Graphics microconf summary Date: Thu, 10 Oct 2013 23:09:06 +0200 Message-ID: <20131010210905.GB8303@phenom.ffwll.local> References: <5257091E.6050202@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A4FAE5C86 for ; Thu, 10 Oct 2013 14:08:48 -0700 (PDT) Received: by mail-ee0-f44.google.com with SMTP id b47so1451837eek.17 for ; Thu, 10 Oct 2013 14:08:46 -0700 (PDT) Content-Disposition: inline In-Reply-To: <5257091E.6050202@linaro.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: John Stultz Cc: Android Kernel Team , Laurent Pinchart , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Thu, Oct 10, 2013 at 01:07:58PM -0700, John Stultz wrote: > ADF: > > * Rob has reposted his atomic modesetting patches, which helps adress > part of some of the issues Greg tried to resolve with ADF, although > there still is the delta vs full update issue. > http://www.spinics.net/lists/dri-devel/msg46413.html I've read up your excellent lwn write-up and tbh I don't understand why this is an issue - userspace can always opt to emit the full state if it wants to. And drm already keeps all the properties around somewhere (afaik at least) so I don't think drivers have to keep track of that much stuff. So a simple "just write the entire hw state" model should be doable with not that much work. > * The need for KMS helpers to reudce boilerplate seemed to be widely > agreed upon, but I'm not sure if anyone is actually planning to put any > effort. Imo this is simply ongoing stuff done on a as-needed basis. Personally I have some plans to extract more helpers for handling the dp aux transactions and sink detection. I have a bit the impression that part of this due to the helper code in drm_crtc_helper.c which has a lot of driver callbacks and is written with the usual bread of hw found on desktop gpus in mind. I guess for a lot of hardware this is simply the wrong abstraction level and interfacing a bit higher up (e.g. at the level of drm_crtc_helper_set_mode) could be much more appropriate. And of course there's always the option of just rolling your own infrastructure like i915.ko now does. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch