Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 May 2018 12:14:27 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r333230 - head/sys/dev/pci
Message-ID:  <2195289.fHIjn0Ke9p@ralph.baldwin.cx>
In-Reply-To: <201805032251.w43MpihV067395@repo.freebsd.org>
References:  <201805032251.w43MpihV067395@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, May 03, 2018 10:51:44 PM Peter Grehan wrote:
> Author: grehan
> Date: Thu May  3 22:51:44 2018
> New Revision: 333230
> URL: https://svnweb.freebsd.org/changeset/base/333230
> 
> Log:
>   Allow PCI VGA devices to be detached.
>   
>   GPUs often have a VGA PCI class code and are probed/attached
>   by the VGA driver. Allow them to be detached so they can
>   be presented as passthru devices to VM guests.
>   
>   Submitted by:	mmacy
>   Reviewed by:	jhb, imp, rgrimes
>   MFC after:	3 weeks
>   Differential Revision:	https://reviews.freebsd.org/D15269

I forgout about this earlier, sorry.  We probably should also
explicitly release any resources cached in sc->vga_bios and
sc->vga_bars.  In theory they should be clear by the time
bus_generic_detach finishes, but perhaps we should walk the
resources and whine if they aren't released and then release
them.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2195289.fHIjn0Ke9p>