dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH v4 1/2] drm: move i915_kick_out_vgacon to vgaarb
Date: Thu, 28 Feb 2019 10:57:12 +0100	[thread overview]
Message-ID: <20190228095712.GJ2665@phenom.ffwll.local> (raw)
In-Reply-To: <20190225083409.mkkxll5gafltudze@sirius.home.kraxel.org>

On Mon, Feb 25, 2019 at 09:34:09AM +0100, Gerd Hoffmann wrote:
> On Fri, Feb 22, 2019 at 06:20:11PM +0100, Daniel Vetter wrote:
> > On Fri, Feb 22, 2019 at 12:03 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
> > >
> > >   Hi,
> > >
> > > > > -   /*
> > > > > -    * WARNING: Apparently we must kick fbdev drivers before vgacon,
> > > > > -    * otherwise the vga fbdev driver falls over.
> > > > > -    */
> > > > >     ret = i915_kick_out_firmware_fb(dev_priv);
> > > >
> > > > This needs to be replaced with a call to
> > > > drm_fb_helper_remove_conflicting_pci_framebuffers, because the above
> > > > wrapper hasn't been converted yet. Otherwise you end up removing the
> > > > vgacon unbind from i915.
> > >
> > > Ah, little but important difference I didn't notice on the first look.
> > > That wrapper calls the non-pci version.  But seems it isn't that easy
> > > to switch over because the framebuffer is in stolen memory instead of a
> > > pci bar ...
> > 
> > stolen memory is where the fb physically resides. the pci bar is how
> > you access it (as long as you take all the pci bars). From a quick
> > look i915 and pci version of remove_conflicting_fb matched.
> 
> Well, it is
> 
> 	ap->ranges[0].base = ggtt->gmadr.start;
> 	ap->ranges[0].size = ggtt->mappable_end;
> 
> vs.
> 
> 	ap->ranges[0].base = pci_resource_start(pdev, res_id);
> 	ap->ranges[0].size = pci_resource_len(pdev, res_id);
> 
> So not obvious that they are the same.  At least to me, maybe it is a
> different story for someone knowing the i915 driver better.

It's one of the pci bars, so amounts to the same. But yeah not obvious if
you don't know that.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2019-02-28  9:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22  7:16 [PATCH v4 0/2] drm & vgaarb: handle vgacon removal in vgaarb Gerd Hoffmann
2019-02-22  7:16 ` [PATCH v4 1/2] drm: move i915_kick_out_vgacon to vgaarb Gerd Hoffmann
2019-02-22  9:50   ` Daniel Vetter
2019-02-22 11:03     ` Gerd Hoffmann
2019-02-22 17:20       ` Daniel Vetter
2019-02-25  8:34         ` Gerd Hoffmann
2019-02-28  9:57           ` Daniel Vetter [this message]
2019-02-28 13:30             ` Gerd Hoffmann
2019-02-22  7:16 ` [PATCH v4 2/2] drm/qxl: remove conflicting framebuffers earlier Gerd Hoffmann
2019-02-22  9:51   ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190228095712.GJ2665@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kraxel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox