amdgpu_init takes longer than a few milliseconds
Brief summary of the problem:
When booting my system, amdgpu_init
takes more than 1 second, and the GPU might not be ready when X11 starts.
I had to add a dependency on dev-dri-card0.device
(after tagging it in udev to make it visible from systemd) so that it doesn't fail at boot.
It may be linked to #848 (closed) but this one is for amdgpu
and not radeon
.
Hardware description:
- CPU: AMD Ryzen PRO 4750G
- GPU: AMD Ryzen PRO 4750G
- System Memory: 16 GB
- Display(s): 2
- Type of Diplay Connection: DP + HDMI
System infomration:
- Distro name and Version: Debian/unstable (up-to-date)
- Kernel version: 5.10.0-6-amd64
- Custom kernel: None
- AMD package version: None
How to reproduce the issue:
Boot the system with initcall_debug
, and watch for long init.
Attached files:
I used bootgraph.py with the following setup:
GRUB_CMDLINE_LINUX_DEFAULT="initcall_debug log_buf_len=32M trace_buf_size=131072K trace_clock=global trace_options=nooverwrite,funcgraph-abstime,funcgraph-cpu,funcgraph-duration,funcgraph-proc,funcgraph-tail,nofuncgraph-overhead,context-info,graph-time ftrace=function_graph ftrace_graph_max_depth=13 ftrace_graph_filter=do_one_initcall luks=no"
./bootgraph.py -f -fstat -maxdepth 13
Here is the output. I opened the hottest paths. Please tell me if I should include a text file.