Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#80072 - [linux] 6.5.8 screen is glitchy

Attached to Project: Arch Linux
Opened by Tareque Md Hanif (tmdh) - Tuesday, 24 October 2023, 12:43 GMT
Last edited by Toolybird (Toolybird) - Thursday, 26 October 2023, 21:00 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Linux 6.4.8 started to boot but the screen became glitchy. I could move the cursor, but the display was glitching.

In Linux 6.5.8, I figured out that the mainline kernel works just fine. But only when the patch for drivers/firmware/sysfb.c (which is in the PKGBUILD) is applied on top of mainline kernel, the problem happens.

Attached patch.patch is the problematic patch

Additional info:
* Linux 6.5.8
* AMD RADEON R7 M445
* Intel Core i7-7500u CPU
* Laptop

Attached problematic patch and lspci and lscpu

Thanks
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 26 October 2023, 21:00 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Please move discussion to the support channels as per comments.
Comment by Jelle van der Waa (jelly) - Tuesday, 24 October 2023, 12:47 GMT
Where did you get this patch from? Do you have the original lkml submission link?
Comment by loqs (loqs) - Tuesday, 24 October 2023, 12:51 GMT
"drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set" [1] is an Arch downstream patch for  FS#73720 .

[1] https://github.com/archlinux/linux/commit/5a5dea567a8c6a5e6319a114e4cb1f0d4bf83f5f
Comment by Jelle van der Waa (jelly) - Tuesday, 24 October 2023, 13:26 GMT
Ah, this faintly rings a bell. Afaik the new nvidia driver might resolve this hack (finally)?
Comment by Tareque Md Hanif (tmdh) - Tuesday, 24 October 2023, 13:29 GMT
This is my kernel command line arguments in GRUB:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet resume=UUID=96253e41-7432-4f8b-bb66-cb0e26ef0176 intel_iommu=on i915.enable_gvt=1"

There is no "nvidia-drm.modeset=1".
Comment by loqs (loqs) - Tuesday, 24 October 2023, 15:23 GMT
Without nvidia-drm.modeset=1 the patch does not do anything. Did you use Arch's kernel config to build your kernel?
Comment by Tareque Md Hanif (tmdh) - Tuesday, 24 October 2023, 16:17 GMT
Yes, I cloned the repo from https://gitlab.archlinux.org/archlinux/packaging/packages/linux, and then modified the patch to only include the sysfb.c patch.

Then ran makepkg -si.
Comment by loqs (loqs) - Tuesday, 24 October 2023, 17:22 GMT
Is there a difference in the number of entries in /dev/dri between the two kernels? Same for /sys/devices/platform/simple-framebuffer-*/
Please post the dmesg output for both kernels. How are you telling the two kernel packages apart?
Comment by Toolybird (Toolybird) - Tuesday, 24 October 2023, 20:12 GMT
There is no indication of an Arch packaging issue here (so far). Therefore this belongs in the more appropriate Arch support channels (Forum/IRC/Mailing Lists/Reddit/etc). Unless something of substance comes to light real soon now, this ticket will be closed and the discussion can be moved elsewhere.

Loading...