intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
969 stars 345 forks source link

[Bug]: media-driver on kernel 6.2-rc6 and DG2 hardware fails execbuffer ioctl #1602

Closed airlied closed 1 year ago

airlied commented 1 year ago

Which component impacted?

Decode

Is it regression? Good in old configuration?

No, this issue exist a long time

What happened?

With kernel 6.2.0-rc6 and latest media-driver on a DG2 system (tested on a380 and a770), av1 decode fails, digging in I found execbuffer was failing due to

i915_gem_execbuffer.c:eb_capture_stage is where it fails

                if (i915_gem_context_is_recoverable(eb->gem_context) &&
                    (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0)))
                        return -EINVAL;

I assume this is media-driver doing something it shouldn't.

What's the usage scenario when you are seeing the problem?

Playback

What impacted?

No response

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None

Jexu commented 1 year ago

This should be incompatible issue of i915 error capture and recoverable ctx involved by i915 change. Suppose media driver has disabled i915 error capure temporarily. @Dylan-debug can you comment and share the commit.

nyanmisaka commented 1 year ago

This was fixed in the latest tag is intel-media-23.1.0 https://github.com/intel/media-driver/commit/6b210dd1ec8b568f8760c80d31d5cf3ac86c501a.

22.6.5 and 22.6.6 are two broken versions for using DG2 with upstream kernel.

intel-mediadev commented 1 year ago

Auto Created VSMGWL-61132 for further analysis.

airlied commented 1 year ago

yes indeed updating to master seems to have fixed it, not sure why I dropped back to an earlier release, I was debugging something else.