Bug 210303

Summary: Ryzen 3 PRO 4350G GPU Failed to updateMST allocation table
Product: Drivers Reporter: mkkot (marcin2006)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: IA-64   
OS: Linux   
Kernel Version: 5.9.9 Subsystem:
Regression: No Bisected commit-id:
Attachments: two stack traces
xrandr
glxgears info
xorg log (not from the time when it happened)
lsmod
lspci
dmesg
DDC proble of monitor and TV

Description mkkot 2020-11-22 17:11:34 UTC
Created attachment 293765 [details]
two stack traces

Hello,
I own:
- AMD Ryzen 3 PRO 4350G with Radeon Graphics (I'm using integrated GPU)
- TV connected via HDMI
- monitor connected via DisplayPort

No daisy chaining is used.

I'm using amdgpu module with Xorg modesetting driver (but issue happens on ati and amdgpu too).

During the evening I tend to disable my displayport monitor output and enable HDMI output to TV to watch some movie. After watching the movie I want to re-enable monitor output and this is where the trouble begins.

Usually I'm using xfce4-display-settings but
`xrandr --output DP-2 --auto --primary`
causes the same issue.

The issue is that the monitor (often, not always) stays black. And picture on TV freezes (often, not always). Sometimes I'm able to restore system functionality via SysRq and switching to different TTY, sometimes I need a hard reset.

I was able to get some stack traces when this happens (from journactl). In the attachment you will find two. During the second one I used xrandr command to switch. Music that was playing started to loop every 0.5 second, screen got bright blue and it lasted for few seconds. Then everything got back to normal except of the fact that there were small green squares following my cursor.

The interesting fact is that when I run xrandr, my displayport outputs get often (not always) changed. So if the monitor was DP-2, it becomes DP-3.

xorg-server: 1.20.9.r21.g5c400cae1-2
kernel: 5.9.9-arch1-1 64 bit
distro: Archlinux
mesa: 20.2.2-2
xrandr 1.5.1
Comment 1 mkkot 2020-11-22 17:12:17 UTC
Created attachment 293767 [details]
xrandr
Comment 2 mkkot 2020-11-22 17:13:12 UTC
Created attachment 293769 [details]
glxgears info
Comment 3 mkkot 2020-11-22 17:17:02 UTC
Created attachment 293771 [details]
xorg log (not from the time when it happened)
Comment 4 mkkot 2020-11-22 17:18:14 UTC
Created attachment 293773 [details]
lsmod
Comment 5 mkkot 2020-11-22 17:18:42 UTC
Created attachment 293775 [details]
lspci
Comment 6 mkkot 2020-11-22 17:23:19 UTC
Xorg configuration files have nothing to do with this problem, but currently I have:
/etc/X11/xorg.conf.d/10-monitor.conf 
Section "Monitor"
 Identifier "HDMI-1"
 Option	"Primary"	"False"
 Option	"Enable"	"False"
EndSection

During debugging the issue I disabled some of the amdgpu module functionalities:

amdgpu.dc=1 amdgpu.dpm=0 amdgpu.aspm=0 amdgpu.runpm=0 amdgpu.bapm=0

But this seems to have no influence on this problem.
Comment 7 mkkot 2020-11-22 17:23:52 UTC
Created attachment 293777 [details]
dmesg
Comment 8 mkkot 2020-11-22 17:25:58 UTC
Created attachment 293779 [details]
DDC proble of monitor and TV