Re: Correct libva driver for Intel Comet Lake

From: Kevin Oberman <rkoberman_at_gmail.com>
Date: Sat, 26 Jun 2021 04:20:58 UTC
On Wed, Jun 23, 2021 at 12:07 AM Jan Beich <jbeich@freebsd.org> wrote:

> Kevin Oberman <rkoberman@gmail.com> writes:
>
> > The Intel page on libva-media-driver states that it supports all i915
> > processors broadwell or newer. Comet Lake is 10th Gen, so much newer than
> > Broadwell, but it also lists supported processors and Comet Lake is not
> on
> > the list.
>
> What PCI ID does it have? For 0x9B?? use libva-intel-media-driver.
>
> > Any ideas on whether I should install it? If Comet Lake is not supported,
> > will it fall back to the libva-intel-hybrid-driver?
>
> libva-intel-hybrid-driver can only be used via libva-intel-driver which
> doesn't support 0x9B?? but maybe try the following:
>
> diff --git a/multimedia/libva-intel-driver/Makefile
> b/multimedia/libva-intel-driver/Makefile
> index e29648b6f2dd..edba9fbbfe3c 100644
> --- a/multimedia/libva-intel-driver/Makefile
> +++ b/multimedia/libva-intel-driver/Makefile
> @@ -1,5 +1,6 @@
>  PORTNAME=      libva-intel-driver
>  DISTVERSION=   2.4.1
> +PORTREVISION=  1
>  CATEGORIES=    multimedia
>
>  MAINTAINER=    jbeich@FreeBSD.org
> diff --git a/multimedia/libva-intel-driver/files/patch-cml-pciids
> b/multimedia/libva-intel-driver/files/patch-cml-pciids
> new file mode 100644
> index 000000000000..b5dc3784f458
> --- /dev/null
> +++ b/multimedia/libva-intel-driver/files/patch-cml-pciids
> @@ -0,0 +1,30 @@
> +--- src/i965_pciids.h.orig     2020-06-01 01:17:45 UTC
> ++++ src/i965_pciids.h
> +@@ -207,6 +207,27 @@ CHIPSET(0x3E98, cfl, cfl,       "Intel(R) Coffee
> Lake"
> + CHIPSET(0x3E99, cfl, cfl,       "Intel(R) Coffee Lake")
> + CHIPSET(0x3E9A, cfl, cfl,       "Intel(R) Coffee Lake")
> + CHIPSET(0x3E9B, cfl, cfl,       "Intel(R) Coffee Lake")
> ++CHIPSET(0x9B21, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BAA, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BAB, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BAC, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BA0, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BA5, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BA8, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BA4, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BA2, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9B41, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BCA, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BCB, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BCC, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC0, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC5, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC8, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC4, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC2, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BC6, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BE6, cfl, cfl,       "Intel(R) Comet Lake")
> ++CHIPSET(0x9BF6, cfl, cfl,       "Intel(R) Comet Lake")
> + CHIPSET(0x5A40, cnl, cnl,       "Intel(R) CannonLake")
> + CHIPSET(0x5A41, cnl, cnl,       "Intel(R) CannonLake")
> + CHIPSET(0x5A42, cnl, cnl,       "Intel(R) CannonLake")
>
Thanks, Jan!

My Comet Lake is 0x9b41, so it looks like intel-media-driver should work
with it. That leads me to wonder how I can determine which VA driver is
actually in use. I'm guessing it might be "VDPAU driver: va_gl", but I am
unsure what that means other than that VA is there (which I also know from
video performance). I now have all three Intel VA drivers installed. and
added the patch to include Comet Lake cards into libva-intel-driver.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683