Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i915kms.ko iGVT-g error with CRTC pipe mismatch #361

Open
markshank opened this issue Sep 12, 2022 · 5 comments
Open

i915kms.ko iGVT-g error with CRTC pipe mismatch #361

markshank opened this issue Sep 12, 2022 · 5 comments
Labels
bug Something isn't working hardware Kernel

Comments

@markshank
Copy link
Contributor

When iGVT-g is enabled, there are errors on the serial console about a CRTC pipe state mismatch. This may be related to the artifacts on the ravynOS login screen.

When I started digging into the origin of the errors, I discovered that vmwgfx may be silently suffering from the same malady. So I will be using this issue to document my research into the source of this mismatch. As it may assist with vmwgfx troubleshooting.

Here is an excerpt from the serial console with the errors:

drmn0: [drm] ERROR [CRTC:51:pipe A] mismatch in infoframes.enable 0xfffffe00639720f8V
drmn0: [drm] ERROR mismatch in avi infoframe
drmn0: [drm] ERROR expected:
drmn0: HDMI infoframe: Auxiliary Video Information (AVI), version 2, length 13
drmn0: colorspace: RGB
drmn0: scan mode: No Data
drmn0: colorimetry: No Data
drmn0: picture aspect: No Data
drmn0: active aspect: 14:9 Top
drmn0: itc: No Data
drmn0: extended colorimetry: xvYCC 601
drmn0: quantization range: Default
drmn0: nups: Unknown Non-uniform Scaling
drmn0: video code: 0
drmn0: ycc quantization range: Limited
drmn0: hdmi content type: Graphics
drmn0: pixel repeat: 0
drmn0: bar top 0, bottom 0, left 0, right 0
drmn0: [drm] ERROR found:
pipe state doesn't match!

All these messages come from one or two places in the i915 code. I need to go back find the exact place in the code where they are generated and document that here.

@markshank
Copy link
Contributor Author

./drivers/gpu/drm/i915/display/intel_display.c:

static void __printf(4, 5)
pipe_config_mismatch(bool fastset, const struct intel_crtc *crtc,
		     const char *name, const char *format, ...)
{
...
		drm_err(&i915->drm, "[CRTC:%d:%s] mismatch in %s %pV\n",
			crtc->base.base.id, crtc->base.name, name, &vaf);
static void
pipe_config_infoframe_mismatch(struct drm_i915_private *dev_priv,
			       bool fastset, const char *name,
			       const union hdmi_infoframe *a,
			       const union hdmi_infoframe *b)
{
...
		drm_err(&dev_priv->drm, "mismatch in %s infoframe\n", name);
		drm_err(&dev_priv->drm, "expected:\n");
		hdmi_infoframe_log(KERN_ERR, dev_priv->drm.dev, a);
		drm_err(&dev_priv->drm, "found:\n");
		hdmi_infoframe_log(KERN_ERR, dev_priv->drm.dev, b);

@markshank
Copy link
Contributor Author

@mszoek
Copy link
Collaborator

mszoek commented Sep 17, 2022

Interesting that it was reported in Linux as well. I looked at the patch there. Unfortunately, we do not have bpf/helpers.c anywhere so it either is a different issue or needs a different fix.

@markshank
Copy link
Contributor Author

After further consideration, I believe my errors were coincidental to the Linux reporter's main issue. He was using the GPU for "HW accelerated video encoding/decoding using FFMpeg". It's possible that the inconsistent display pipe was a nonissue.

@markshank
Copy link
Contributor Author

Ubuntu 22.04 reference implementation

I had been using the Ubuntu 22.04 live ISO as my reference implementation and it occurred to me that it probably uses Xorg for graphics. So I installed it onto the virtual disk and tried to boot it up with Wayland. It came up as Xorg with no option for Wayland. I changed /etc/gdm3/custom.conf to force Wayland and it still would only do Xorg most of the time. Occasionally it will boot up with Wayland and here is a screenshot from one of those times.

image

@mszoek mszoek added bug Something isn't working hardware Kernel labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hardware Kernel
Projects
None yet
Development

No branches or pull requests

2 participants