Bug 214417
Summary: | Regression with AMD Ryzen 3 2200G IGPU. Everything freezes within 5 minutes of boot. | ||
---|---|---|---|
Product: | Drivers | Reporter: | pierre.o.tardif |
Component: | Video(Other) | Assignee: | drivers_video-other |
Status: | NEW --- | ||
Severity: | blocking | CC: | alexdeucher, ray.huang |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | From 5.2.0 to 5.14.0 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
dmesg output
possible fix |
Description
pierre.o.tardif
2021-09-15 17:34:24 UTC
СС'ing Huang Rui Please attach your full dmesg output. Does updating to the newest firmware: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/log/amdgpu help? Created attachment 298909 [details]
dmesg output
I attached my dmesg output. Unfortunately, using the latest firmware did not improve the situation. Please make sure your kernel has this patch: commit 7af2a5771e0918cdadb1614c1f81dd67a58e00aa Author: Alex Deucher <alexander.deucher@amd.com> Date: Wed Jan 15 12:26:51 2020 -0500 drm/amdgpu: attempt to enable gfxoff on more raven1 boards (v2) Switch to a blacklist so we can disable specific boards that are problematic. v2: make the blacklist non-raven specific. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> I cloned the stable linux repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git. I tried two kernel versions: - git checkout v5.14.7 - git checkout 7af2a5771e0918cdadb1614c1f81dd67a58e00aa Both exhibit the problem. Any update? (In reply to pierre.o.tardif from comment #7) > Any update? Commit 005440066f929ba0dca8f4e0aebfbf8daac592cc enabled the gfxoff feature which was apparently problematic on your board. Commit 7af2a5771e0918cdadb1614c1f81dd67a58e00aa disables gfxoff again on your board. So it seems to be some other issue I guess. I investigated the problem some more. Commit 005440066f929ba0dca8f4e0aebfbf8daac592cc enabled gfxoff, but it /also/ enabled stutter mode. It changed this line: /* OverDrive(bit 14),gfxoff(bit 15),stutter mode(bit 17) disabled by default*/ uint amdgpu_pp_feature_mask = 0xfffd3fff; to this line: /* OverDrive(bit 14) disabled by default*/ uint amdgpu_pp_feature_mask = 0xffffbfff; Two bits were changed: the gfxoff bit, and the stutter mode bit. I did a `git checkout 005440066f929ba0dca8f4e0aebfbf8daac592cc`, I reset the stutter mode bit, meaning that I changed it to this line: uint amdgpu_pp_feature_mask = 0xfffdbfff; I recompiled the kernel and it works! So indeed the problem seems to not be gfxoff, but stutter mode. I don't know what gfxoff or stutter mode do, but maybe stutter mode should be disabled on my particular setup? What should I do if I want to get this fixed? Should I try to write a patch? Will somebody review my patch if I manage to write one? Created attachment 299287 [details]
possible fix
This patch should fix it.
I confirm that the patch does work! |