Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp425884imp; Thu, 21 Feb 2019 04:20:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ47Rb7T3WqmJ/Igvm9BrcBeK1dM0pBNr8zyb39LEB4Eu8nVLPfEocl6Eh7eVZk1mgTdVKM X-Received: by 2002:a17:902:8344:: with SMTP id z4mr22395853pln.77.1550751653495; Thu, 21 Feb 2019 04:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550751653; cv=none; d=google.com; s=arc-20160816; b=zbSSfUPxCa1quE2F2BX4CyuyzS8KkM8A4KHPudXaD2sL22LNLGZB4xF9792AYTx3o/ B7h7NG3pup/LZJid7j5vU2IweKt/mZ4SpA2jXMXCvyeiYQLdkLabHEELGJyGl/hYawP9 DA4vT4J7RjPFrBLkdOR98Sq/0vW6luL9S+cDQt+YwOptWGHhXqgRcpoaDjfcddH0JASY s295hqXZm8YgIyF2H0jjbe4FTi8k2Ok7TEZfHM4CZDkoAicP2+vdubZM2FB/X4k3FgBv bJsl6oa7mN+oWj+bkTukINQRdyEMCOKeoNZz0zykhrsBeqz2RVdqi98NuTgR2SK9IW/E 4vGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=oD3AQrEAuqIqs/JNzkQTOonBnjczKUPTolwL93v+HpI=; b=rsskJtahJZz//jj4HJ1CPSzhW4MemAeWQ+GY7jOKQHFbA6A0jTGLRPiPbwNe7qo5l8 s4Zjyzg7FeWZajfwRBWSwSWWrfBPttR+HHPM2WhJfA2/rlyS4YSvTW63zp5+jlH4j6xl JqBvEkwbSROFLdwjAsrkuVEtI+RGu/buouZsWErQrgjmShnDmHhkrJ4+jA0y+Bp4HVG9 E0uKFht05JbcMfAYFANE6ckNoU7JNxMGUUh9FyPunbn3tNIgoXVxDse7P1HkVfLxeWVu 6N9uxPK9TCcM/HNa+yHvypVlgmD9sG1fKDwneH80hCntpvdzSkHqES5Q793tRbC4Ufmb aqQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=RrorxX0A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck9si8804833plb.196.2019.02.21.04.20.38; Thu, 21 Feb 2019 04:20:53 -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=fail header.i=@ffwll.ch header.s=google header.b=RrorxX0A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbfBUMUQ (ORCPT + 99 others); Thu, 21 Feb 2019 07:20:16 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38407 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfBUMUQ (ORCPT ); Thu, 21 Feb 2019 07:20:16 -0500 Received: by mail-ed1-f67.google.com with SMTP id h58so22921224edb.5 for ; Thu, 21 Feb 2019 04:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=oD3AQrEAuqIqs/JNzkQTOonBnjczKUPTolwL93v+HpI=; b=RrorxX0A2R0B0oHAWpYEro6sKoiuhdDBEjq6+mmDZuk50ab5XE0kD1bFR0MxzQiHzD IoAy1HFxkkSK5Wh925vdJ20ZVE3Rn/3jKMkwnEA53j3Bk72xF5voqDVI6QXcLKV5qHU5 Vw1unX48l8p/stG9HonA29RpahSjfVxkRrKV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=oD3AQrEAuqIqs/JNzkQTOonBnjczKUPTolwL93v+HpI=; b=r4GVPEfymTjdNG2CUr5I06h+Vig5Exx/kyPKNzXurDeyFHHE8oxcEOP4xb8AJODXLC ohS76Fw6U/0TZ8PHiA4kP001+5No/AvBkR8lki05W4OiOT/B8SO4nkJIx4yUdxmOqFcg mylzrSXsdO7HesDpVZYFTNGEvNsohOUo5XxmIvfev7VeHc2OllUsax5lO2ItCz3O594Q AQ/i49fGUit6vItPiL89Q7D+58nk6HS+uYz66+2cq3XPeyWSvjo4D1vZsmjitQkTZtos RZandb0kJNiGiaZ22Gpxbe7QIk1RPj5f5iaASs4Tf0WAKZPfnvvE3e7xT01ZAc6rA+oc an8g== X-Gm-Message-State: AHQUAuZuMsXHYZOzeU3rcNlyN/nrSnB1epzHfyMyWgnWCEDqLTOd7GlE i/zcGnSkrZBnCVIyhp13lPdpsQ== X-Received: by 2002:aa7:c50b:: with SMTP id o11mr1476542edq.14.1550751614206; Thu, 21 Feb 2019 04:20:14 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id c25sm4147469ejx.59.2019.02.21.04.20.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 04:20:13 -0800 (PST) Date: Thu, 21 Feb 2019 13:20:11 +0100 From: Daniel Vetter To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, daniel@ffwll.ch, Dave Airlie , David Airlie , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , open list Subject: Re: [PATCH v2 2/2] drm/qxl: kick out vgacon Message-ID: <20190221122011.GP2665@phenom.ffwll.local> Mail-Followup-To: Gerd Hoffmann , dri-devel@lists.freedesktop.org, Dave Airlie , David Airlie , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , open list References: <20190221113534.20764-1-kraxel@redhat.com> <20190221113534.20764-3-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221113534.20764-3-kraxel@redhat.com> X-Operating-System: Linux phenom 4.19.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 21, 2019 at 12:35:34PM +0100, Gerd Hoffmann wrote: > Problem: qxl switches from native mode back into vga compatibility mode > when it notices someone is accessing vga registers. And vgacon does > exactly that before fbcon takes over. So make sure we kick out vgacon > early enough that it wouldn't disturb us. > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_drv.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c > index bb81e310eb..08446561aa 100644 > --- a/drivers/gpu/drm/qxl/qxl_drv.c > +++ b/drivers/gpu/drm/qxl/qxl_drv.c > @@ -95,6 +95,7 @@ qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) > goto modeset_cleanup; > > drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "qxl"); > + drm_fb_helper_kick_out_vgacon(); I was thinking of checking whether pdev is a VGA class device and whether it decodes vga access, and in that case automatically calling kick_out_vgacon from remove_conflicting_pci_framebuffer. Since that's what drivers want anyway, and those who don't can open code it. Or is there an issue with that? -Daniel > drm_fbdev_generic_setup(&qdev->ddev, 32); > return 0; > > -- > 2.9.3 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch