Intel Raptor Lake-P support for intel-media-driver in jammy

Bug #2004237 reported by Daniel van Vugt
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
intel-media-driver (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned
intel-media-driver-non-free (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

Requirement for Raptor Lake-P support in media-driver for jammy:

  media-driver >= 22.4.2 (commit 5054a321d7)

[ Test Plan ]

1. Run 'vainfo' and ensure a list of codecs is returned.

2. Play an mp4 file using 'mpv' and verify it prints "vaapi" in the terminal.

[ Where problems could occur ]

Video hardware decoding on Intel CPU/GPUs is affected so worst case would be for hardware video decoding/encoding to stop working on existing Intel systems.

--

not needed after all:
  gmmlib >= 22.1.3 (commit c70167bee6)

description: updated
summary: - Intel Raptor Lake-P support
+ Intel Raptor Lake-P support for intel-media-driver
description: updated
tags: added: upgrade-software-version
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Intel Raptor Lake-P support for intel-media-driver
tags: added: jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in intel-gmmlib (Ubuntu):
status: New → Confirmed
Changed in intel-media-driver (Ubuntu):
status: New → Confirmed
Changed in intel-media-driver-non-free (Ubuntu):
status: New → Confirmed
summary: - Intel Raptor Lake-P support for intel-media-driver
+ Intel Raptor Lake-P support for intel-media-driver in jammy
Timo Aaltonen (tjaalton)
Changed in intel-gmmlib (Ubuntu Kinetic):
status: New → Fix Released
Changed in intel-gmmlib (Ubuntu):
status: Confirmed → Fix Released
Changed in intel-media-driver (Ubuntu Kinetic):
status: New → Fix Released
Changed in intel-media-driver (Ubuntu):
status: Confirmed → Fix Released
Changed in intel-media-driver-non-free (Ubuntu Kinetic):
status: New → Fix Released
Changed in intel-media-driver-non-free (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The quick way to test this is:

  vainfo

and if you want to test it harder then try:

  mpv somevideofile.mp4

and mpv will log that it's using VA-API.

Timo Aaltonen (tjaalton)
Changed in intel-gmmlib (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Timo Aaltonen (tjaalton)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

https://launchpad.net/~tjaalton/+archive/ubuntu/ppa

test if the single commit backports are enough

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

The only issue with single commit backports is that they need to be manually tested on RPL-P hardware. I don't have such hardware and suspect it hasn't been released yet. Whereas taking the whole version we could just verify it is the correct version.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The folks asking for this backport have the hardware, so they should test these.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm also curious what fixes and hardware IDs we might be missing by cherry picking.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in intel-media-driver (Ubuntu Jammy):
status: New → Confirmed
Changed in intel-media-driver-non-free (Ubuntu Jammy):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 2000223

Revision history for this message
Hector CAO (hectorcao) wrote (last edit ):
Download full text (10.6 KiB)

I did the test on a Raptorlake laptop

Here is the description of the system on that the test was done:

ubuntu@ubuntu-Latitude-7440:~$ inxi -G -display
Graphics:
  Device-1: Intel vendor: Dell driver: i915 v: kernel ports: active: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 0000:00:02.0 chip-ID: 8086:a7a0
    class-ID: 0300
  Display: server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: gnome-shell v: 42.5 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 tty: 207x115
  Monitor-1: eDP-1 model: AU Optronics built: 2022 res: 2560x1600 dpi: 216
    gamma: 1.2 size: 301x188mm (11.9x7.4") diag: 355mm (14") ratio: 16:10
    modes: 2560x1600
  Message: GL data unavailable in console. Try -G --display

Now, without installing anything, let's check if intel-media-driver works properly with libva:

ubuntu@ubuntu-Latitude-7440:~$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

It is not working !
Next step, i install only intel-media-driver from https://ppa.launchpadcontent.net/tjaalton/ppa/ubuntu:

ubuntu@ubuntu-Latitude-7440:~$ apt policy libigdgmm12
libigdgmm12:
  Installed: 22.1.2+ds1-1
  Candidate: 22.1.2+ds1-1ubuntu0.1~ppa1
  Version table:
     22.1.2+ds1-1ubuntu0.1~ppa1 500
        500 https://ppa.launchpadcontent.net/tjaalton/ppa/ubuntu jammy/main amd64 Packages
 *** 22.1.2+ds1-1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

ubuntu@ubuntu-Latitude-7440:~$ apt policy intel-media-va-driver
intel-media-va-driver:
  Installed: 22.3.1+dfsg1-1ubuntu0.1~ppa1
  Candidate: 22.3.1+dfsg1-1ubuntu1
  Version table:
     22.3.1+dfsg1-1ubuntu1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
 *** 22.3.1+dfsg1-1ubuntu0.1~ppa1 500
        500 https://ppa.launchpadcontent.net/tjaalton/ppa/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     22.3.1+dfsg1-1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

Now vainfo works !

ubuntu@ubuntu-Latitude-7440:~$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone : VAEntrypointVideoProc
      VAProfileNone : VAEntrypointStats
      VAProfileMPEG2Simple : VAEntrypointVLD
      VAProfileMPEG2Main : VAEntrypointVLD
  ...

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

thanks for testing, so you didn't need the gmmlib update after all?

Timo Aaltonen (tjaalton)
description: updated
Changed in intel-media-driver (Ubuntu Jammy):
status: Confirmed → In Progress
Changed in intel-media-driver-non-free (Ubuntu Jammy):
status: Confirmed → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote :

This mention of version numbers in the test plan makes no sense. Please clear up the test plan so it's understandable.

Changed in intel-media-driver-non-free (Ubuntu Jammy):
status: In Progress → Incomplete
description: updated
Revision history for this message
Hector CAO (hectorcao) wrote :

@tjaalton : i did not need it to make things work, i might miss anything ?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Indeed gmmlib commit c70167bee6 looks useless. We don't need it.

no longer affects: intel-gmmlib (Ubuntu)
no longer affects: intel-gmmlib (Ubuntu Jammy)
no longer affects: intel-gmmlib (Ubuntu Kinetic)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Ok thanks, so this should be ready for sru review now. The queue still has both media-driver uploads.

description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Timo, can we do a version sync of those packages before 22.04.3? I'm still nervous we'll be missing features at some stage and these packages really should be part of HWE.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

They should first be added to the hwe stack exception, before that I don't think anyone would be willing to review them. I don't mind if they are added, it's probably due.

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Daniel, or anyone else affected,

Accepted intel-media-driver into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/intel-media-driver/22.3.1+dfsg1-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in intel-media-driver (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in intel-media-driver-non-free (Ubuntu Jammy):
status: Incomplete → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Daniel, or anyone else affected,

Accepted intel-media-driver-non-free into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/intel-media-driver-non-free/22.3.1+ds1-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Hector CAO (hectorcao) wrote :
Download full text (4.3 KiB)

bug fixed on Jammy with intel-media-va-driver-non-free package in proposed,

ubuntu@ubuntu-Latitude-7440:~$ sudo apt policy intel-media-va-driver-non-free
intel-media-va-driver-non-free:
  Installed: 22.3.1+ds1-1ubuntu0.1
  Candidate: 22.3.1+ds1-1ubuntu0.1
  Version table:
 *** 22.3.1+ds1-1ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/multiverse amd64 Packages
        100 /var/lib/dpkg/status
     22.3.1+ds1-1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages

ubuntu@ubuntu-Latitude-7440:~$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone : VAEntrypointVideoProc
      VAProfileNone : VAEntrypointStats
      VAProfileMPEG2Simple : VAEntrypointVLD
      VAProfileMPEG2Simple : VAEntrypointEncSlice
      VAProfileMPEG2Main : VAEntrypointVLD
      VAProfileMPEG2Main : VAEntrypointEncSlice
      VAProfileH264Main : VAEntrypointVLD
      VAProfileH264Main : VAEntrypointEncSlice
      VAProfileH264Main : VAEntrypointFEI
      VAProfileH264Main : VAEntrypointEncSliceLP
      VAProfileH264High : VAEntrypointVLD
      VAProfileH264High : VAEntrypointEncSlice
      VAProfileH264High : VAEntrypointFEI
      VAProfileH264High : VAEntrypointEncSliceLP
      VAProfileVC1Simple : VAEntrypointVLD
      VAProfileVC1Main : VAEntrypointVLD
      VAProfileVC1Advanced : VAEntrypointVLD
      VAProfileJPEGBaseline : VAEntrypointVLD
      VAProfileJPEGBaseline : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3 : VAEntrypointVLD
      VAProfileHEVCMain : VAEntrypointVLD
      VAProfileHEVCMain : VAEntrypointEncSlice
      VAProfileHEVCMain : VAEntrypointFEI
      VAProfileHEVCMain : VAEntrypointEncSliceLP
      VAProfileHEVCMain10 : VAEntrypointVLD
      VAProfileHEVCMain10 : VAEntrypointEncSlice
      VAProfileHEVCMain10 : VAEntrypointEncSliceLP
      VAProfileVP9Profile0 : VAEntrypointVLD
      VAProfileVP9Profile0 : VAEntrypointEncSliceLP
      VAProfileVP9Profile1 : VAEntrypointVLD
      VAProfileVP9Profile1 : VAEntrypointEncSliceLP
      VAProfileVP9Profile2 : VAEntrypointVLD
      VAProfileVP9Profile2 : VAEntrypointEncSliceLP
      VAProfileVP9Profile3 : VAEntrypointVLD
      VAProfileVP9Profile3 ...

Read more...

Revision history for this message
Hector CAO (hectorcao) wrote :
Download full text (3.4 KiB)

It also works for the free version of intel media driver

ubuntu@ubuntu-Latitude-7440:~$ sudo apt policy intel-media-va-driver
intel-media-va-driver:
  Installed: 22.3.1+dfsg1-1ubuntu2
  Candidate: 22.3.1+dfsg1-1ubuntu2
  Version table:
 *** 22.3.1+dfsg1-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     22.3.1+dfsg1-1ubuntu1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
     22.3.1+dfsg1-1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

ubuntu@ubuntu-Latitude-7440:~$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone : VAEntrypointVideoProc
      VAProfileNone : VAEntrypointStats
      VAProfileMPEG2Simple : VAEntrypointVLD
      VAProfileMPEG2Main : VAEntrypointVLD
      VAProfileH264Main : VAEntrypointVLD
      VAProfileH264Main : VAEntrypointEncSliceLP
      VAProfileH264High : VAEntrypointVLD
      VAProfileH264High : VAEntrypointEncSliceLP
      VAProfileJPEGBaseline : VAEntrypointVLD
      VAProfileJPEGBaseline : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3 : VAEntrypointVLD
      VAProfileHEVCMain : VAEntrypointVLD
      VAProfileHEVCMain : VAEntrypointEncSliceLP
      VAProfileHEVCMain10 : VAEntrypointVLD
      VAProfileHEVCMain10 : VAEntrypointEncSliceLP
      VAProfileVP9Profile0 : VAEntrypointVLD
      VAProfileVP9Profile0 : VAEntrypointEncSliceLP
      VAProfileVP9Profile1 : VAEntrypointVLD
      VAProfileVP9Profile1 : VAEntrypointEncSliceLP
      VAProfileVP9Profile2 : VAEntrypointVLD
      VAProfileVP9Profile2 : VAEntrypointEncSliceLP
      VAProfileVP9Profile3 : VAEntrypointVLD
      VAProfileVP9Profile3 : VAEntrypointEncSliceLP
      VAProfileHEVCMain12 : VAEntrypointVLD
      VAProfileHEVCMain422_10 : VAEntrypointVLD
      VAProfileHEVCMain422_12 : VAEntrypointVLD
      VAProfileHEVCMain444 : VAEntrypointVLD
      VAProfileHEVCMain444 : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10 : VAEntrypointVLD
      VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12 : VAEntrypointVLD
      VAProfileHEVCSccMain : VAEntrypointVLD
      VAProfileHEVCSccMain : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10 : VAEntrypointVLD
      VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP
      VAProfile...

Read more...

Timo Aaltonen (tjaalton)
tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I verified the test results and am satisfied that they show the executed planned test case, and that the results are correct.

The package built correctly in all architectures and Ubuntu releases it was meant for.

There are no DEP8 regressions.

There is no SRU freeze ongoing at the moment.

There is no halted phasing on a previous update.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package intel-media-driver-non-free - 22.3.1+ds1-1ubuntu0.1

---------------
intel-media-driver-non-free (22.3.1+ds1-1ubuntu0.1) jammy; urgency=medium

  * 0001-Upstream-RPLP-upstream.patch: Add support for RPL-P. (LP:
    #2004237)

 -- Timo Aaltonen <email address hidden> Mon, 13 Feb 2023 18:00:58 +0200

Changed in intel-media-driver-non-free (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for intel-media-driver-non-free has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package intel-media-driver - 22.3.1+dfsg1-1ubuntu2

---------------
intel-media-driver (22.3.1+dfsg1-1ubuntu2) jammy; urgency=medium

  * 0001-Upstream-RPLP-upstream.patch: Add support for RPL-P. (LP:
    #2004237)

 -- Timo Aaltonen <email address hidden> Wed, 12 Apr 2023 11:42:30 +0300

Changed in intel-media-driver (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.