From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: Re: [PATCH] qxl: add a connector property to denote hotplug should rescan modes. Date: Fri, 1 Nov 2013 13:53:57 +1000 Message-ID: References: <1381453500-5155-1-git-send-email-airlied@gmail.com> <20131011082132.GF8303@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 23CBBEEB8B for ; Thu, 31 Oct 2013 20:53:59 -0700 (PDT) Received: by mail-lb0-f182.google.com with SMTP id w6so3150717lbh.27 for ; Thu, 31 Oct 2013 20:53:57 -0700 (PDT) In-Reply-To: <20131011082132.GF8303@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: Daniel Vetter Cc: dri-devel List-Id: dri-devel@lists.freedesktop.org On Fri, Oct 11, 2013 at 6:21 PM, Daniel Vetter wrote: > On Fri, Oct 11, 2013 at 11:05:00AM +1000, Dave Airlie wrote: >> From: Dave Airlie >> >> So GNOME userspace has an issue with when it rescans for modes on hotplug >> events, if the monitor has no EDID it assumes that nothing has changed on >> EDID as with real hw we'd never have new modes without a new EDID, and they >> kind off rely on the behaviour now, however with virtual GPUs we would >> like to rescan the modes and get a new preferred mode on hotplug events >> to handle dynamic guest resizing (where you resize the host window and the >> guest resizes with it). >> >> This is a simple property we can make userspace watch for to trigger new >> behaviour based on it, and can be used to replaced EDID hacks in virtual >> drivers. >> >> Signed-off-by: Dave Airlie > > There's the related problem that we kinda don't tell userspace which > connectors exactly changed when sending out a hotplug event. We could > solve both issues with a hotplug_sequence counter that increments on any > change. Probably more work though ;-) Its kinda orthogonal problem though, I don't mind reprobing its more for the case where userspace does nothing when we have no EDID I need to fix. Dave.