https://bugzilla.kernel.org/show_bug.cgi?id=214427
Bug ID: 214427 Summary: Amdgpu hangs kernel on boot trying init debugfs Product: Drivers Version: 2.5 Kernel Version: 5.14.4 Hardware: x86-64 OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) Assignee: drivers_video-dri@kernel-bugs.osdl.org Reporter: inferrna@gmail.com Regression: No
Created attachment 298831 --> https://bugzilla.kernel.org/attachment.cgi?id=298831&action=edit Screenshot
Early on kernel 5.10 and before it was just [drm] Initialized amdgpu 3.40.0 20150101 for 0000:05:00.0 on minor 0 [drm:amdgpu_debugfs_init] *ERROR* Failed to init debugfs [drm:amdgpu_pci_probe] *ERROR* Creating debugfs files failed (-1).
but now it became panic. Kernel patched with https://github.com/dolohow/uksm/blob/master/v5.x/uksm-5.14.patch - I'm using it since version 4 without problems.
Panic starts with
RIP: 0010:debugfs_create_file_size+0x2e/0x40
..and see more on the picture
https://bugzilla.kernel.org/show_bug.cgi?id=214427
--- Comment #1 from Ilia (inferrna@gmail.com) --- Created attachment 298833 --> https://bugzilla.kernel.org/attachment.cgi?id=298833&action=edit Kernel config
https://bugzilla.kernel.org/show_bug.cgi?id=214427
--- Comment #2 from Ilia (inferrna@gmail.com) --- Also my GPU is Polaris RX460 (ASUS ROG 4Gb) flashed with bios from RX560. Past 3 years all was working good.
https://bugzilla.kernel.org/show_bug.cgi?id=214427
--- Comment #3 from Ilia (inferrna@gmail.com) --- Created attachment 298835 --> https://bugzilla.kernel.org/attachment.cgi?id=298835&action=edit config patch
It seems like amdgpu strongly requires access to debugfs and panics when CONFIG_DEBUG_FS_ALLOW_NONE is set. Also there is no debugfs-related flag for amdgpu - it seems or amdgpu should depend on CONFIG_DEBUG_FS_ALLOW_ALL, or it should have separate debugfs flag to enable/disable debugfs usage (it is seems very possible as it was working early w/o access to debugfs).
https://bugzilla.kernel.org/show_bug.cgi?id=214427
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #4 from Alex Deucher (alexdeucher@gmail.com) --- Looks like a duplicate of: https://gitlab.freedesktop.org/drm/amd/-/issues/1686
dri-devel@lists.freedesktop.org