Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2022 19:06:40 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 3f78a234e458 - main - graphics/gpu-firmware-kmod: optionize firmware vendors
Message-ID:  <20221205190640.7fccd5ecc7acbb331274abcb@bidouilliste.com>
In-Reply-To: <Y44vP9uXFJAWg9pF@hades.panopticon>
References:  <202211291718.2ATHISXL015063@gitrepo.freebsd.org> <20221130111151.bbdc3e3b221207cb541daccd@bidouilliste.com> <Y43zhE8pmAYLLTpu@hades.panopticon> <20221205151109.e86a24dd8a15bb2ae5d55756@bidouilliste.com> <Y44vP9uXFJAWg9pF@hades.panopticon>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Dec 2022 20:49:51 +0300
Dmitry Marakasov <amdmi3@amdmi3.ru> wrote:

> * Emmanuel Vadot (manu@bidouilliste.com) wrote:
> 
> > > This is not true because drm-kmod unconditionally pulls
> > > gpu-firmware-kmod which unconditionally pulls all the firmwares.
> > 
> >  drm-kmod meta-port is made for two reasons :
> >  - Users don't know what hardware they have so a simple pkg install
> > drm-kmod will install everything.
> >  - Downstream distribution that wants to include everything a user can
> > have.
> > 
> >  If you know what hardware you have it's better to directly install
> > drm-510-kmod and gpu-firmware-<vendor>-kmod-<model> packages.
> 
> I've just realized that drm-kmod is a metaport too and I can just
> drop both metaports. So the change committed does no longer make
> any use for me, may be as well useless in general.

 Please revert then.

 Cheers,

> > > >  It's a bit unlikely that one user will need only all
> > > > the radeon/amd/intel firmwares.
> > > 
> > > Well in fact there should be an option for each individual firmware,
> > > but I was lazy. 
> > 
> >  No there shouldn't be an option for each firmware, each firmware is a
> > separate flavor of the main vendor port and this result in a dedicated
> > package for one GPU. (There is one cavehat for AMD, see below).
> > 
> > > Another valid case is that I have no idea which specific
> > > intel firmware I need, I just don't want nvidia/amd garbage.
> > 
> >  Yes this is one problem, I've pondered writing a fwget script to put in
> > base that will solve this issue, will probably do it one day.
> >  For intel it's kinda easy, just install drm-510-kmod, kldload i915kms
> > and look in dmesg what firmware the driver says it couldn't load. DRM
> > will work for intel without firmware, you just can't suspend/resume.
> >  For AMD depending on the GPUs sometimes it will work without a
> > firmware, sometime it will not, meaning that you will lose the screen
> > and will need to use serial/ssh (unless it bricks the machine but if
> > that does it this is a bug that should be solved). Some generations of
> > AMD gpu needs two firmware packages, this is because AMD reuse some IP
> > (most of the time it's the VCN, the unit for video decoding/encoding)
> > that is re-used.
> 
> -- 
> Dmitry Marakasov   .
> amdmi3@amdmi3.ru  ..:  https://github.com/AMDmi3  https://amdmi3.ru/
> 


-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@FreeBSD.org>



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