硬件:Dell Inspiron 15-3576,Intel Core i5-8250U/UHD620+AMD Radeon 520(核心为Hainan,GCN1.0/Southern Island)
lspci | grep AMD
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Jet PRO [Radeon R5 M230 / R7 M260DX / Radeon 520 Mobile] (rev c3)
内核:5.4.2-arch1-1
已按照wiki配置好AMDGPU,并参考半年后再次折腾了一天,AMDGPU终于可以用了。 在Kernel cmdline中添加了 amdgpu.runpm=0(但显然还是翻车了)。
症状:通过
DRI_PRIME=1 hmcl
调用独立显卡尝试运行HMCL,游戏一段时间后画面卡死,遂从游戏中切出后使用
sudo killall java -s SIGKILL
杀死进程,此时查看dmesg:
sudo dmesg | grep amdgpu
[ 1.235373] [drm] amdgpu kernel modesetting enabled.
[ 1.235738] amdgpu 0000:01:00.0: remove_conflicting_pci_framebuffers: bar 0: 0xc0000000 -> 0xcfffffff
[ 1.235739] amdgpu 0000:01:00.0: remove_conflicting_pci_framebuffers: bar 2: 0xd0000000 -> 0xd003ffff
[ 1.235761] amdgpu 0000:01:00.0: enabling device (0000 -> 0003)
[ 1.235898] amdgpu 0000:01:00.0: kfd not supported on this ASIC
[ 1.268861] amdgpu 0000:01:00.0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[ 1.268862] amdgpu 0000:01:00.0: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[ 1.269147] [drm] amdgpu: 2048M of VRAM memory ready
[ 1.269149] [drm] amdgpu: 3072M of GTT memory ready.
[ 1.269924] amdgpu 0000:01:00.0: PCIE GART of 256M enabled (table at 0x000000F400000000).
[ 1.270678] [drm] amdgpu: dpm initialized
[ 1.847087] [drm] Initialized amdgpu 3.35.0 20150101 for 0000:01:00.0 on minor 0
[ 1872.862390] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=237115, emitted seq=237117
[ 1872.862439] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process java pid 1796 thread java:cs0 pid 1897
[ 1937.925741] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=237115, emitted seq=237117
[ 1937.925798] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process pid 0 thread pid 0
然后独显就gg了……
同时看了一眼radeontop,游戏进程已经被kill的情况下依然显示Shader Interpolator 100.00% 占用……
以前在用Manjaro的时候也会有类似的死机问题,amdgpu出现死机时还有自己操作的机会,如果用的是radeon的话键盘都没反应只能长按电源键强关(
BTW,Intel+AMD双显卡使用DRI_PRIME=1来切换是正确食用方式吗(
最近编辑记录 Kevin.MX (2020-11-17 14:08:24)