All of lore.kernel.org
 help / color / mirror / Atom feed
* Couple of issues with amdgpu on my WX4100
@ 2021-01-02 22:42 ` Maxim Levitsky
  0 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-02 22:42 UTC (permalink / raw)
  To: amd-gfx; +Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson

[-- Attachment #1: Type: text/plain, Size: 4923 bytes --]

Hi!

I am using this card for about a year and I would like first to say thanks
for open source driver that you made for it, for the big navi
and for the threadripper which brought back fun to the computing.

I bought that card primary to use as a host GPU in VFIO enabled multi-seat
system I am building, and recently I was able (with a minor issue I managed to 
solve, more about it later) to pass that GPU to both linux and windows guest 
mostly flawlessly.
 
I do have experience in kernel development, and debugging so I am willing
to test patches, etc. Any help is welcome!
 
So these are the issues:
 
1.(the biggest issue): The amdgpu driver often crashes when plugging an input.

I tested this now on purpose with 'amdgpu.dc=1' by slowly plugging and unplugging 
an input connector while I wait for the output to stabilize between each cycle, 
and still the issue reproduced after a dozen (or so) tries.
(It only happens when I plug the connector, and never happens when I unplug it)

Then I unloaded the amdgpu driver and loaded it again with dc=0.
This does sort of work but takes a lot of time. The dmesg output is attached 
(amdgpu_dc1_plug_bug.txt)
 
I did try to increase the number of tries in dm_helpers_read_local_edid, to 
something silly like 1000, but no luck.
 
I also tried to remove the code below the
'Abort detection for non-DP connectors if we have no EDID'
Also no luck.


This bug pretty much makes it impossible to use the card daily as is
since I do connect/disconnect monitors often, especially due to VFIO usage.
 
2. I found out that running without the new DC framework (amdgpu.dc=0) solves
issue 1 completely (but costs HDMI sound - HDMI sound only works with amdgpu.dc=1)

I am using this card like that for about at least half an year and haven't had 
a single connector plug/unplug related crash.

Issue 2 however is that in this mode (I haven't tried to reproduce this
with amdgpu.dc=1 yet), sometimes when I unbind the amdgpu driver 
the amdgpu complains about a leaked connector and crashes a bit later on. 
I haven't yet tracked the combination of things needed
to trigger this, but it did happen to me about 3 times already.
 
I did put a WARN_ON(1) to __drm_connector_put_safe, to see who
is the caller that triggers the delayed work that frees the connector when it is
too late.

I attached a backtrace with the above WARN_ON and the crash (connector_leak_bug.txt)
I also attached the script 'amdgpu_unbind' for the reference that I use to unbind
the amdgpu driver.
 
3. When doing VFIO passthrough of this card, I found out that it doesn't
suffer that much from the reset bug. As long as I shut down the guest
in clean manner, I can start it again). The vendor_reset module however
makes the reset work even when I shut down the guest right in the middle
of a 3D app running and I tested it many times.
 
_However_ this only works if I never load the amdgpu linux driver. 
Otherwise a windows guest still boots but all 3D apps in it crash very early.

I tried both the stock drivers that windows auto installs and latest AMD 
workstation drivers from AMD site.

Linux guests do work.
 
I found out that amdgpu driver resizes the device bars (I have TRX40 platform,
so I don't know if this platform supports the AMD Smart Memory or not,
but according to lspci the device does support resizable BARs).

If I patch the amdgpu's bar resize out, then, the windows guest _does_ work
regardless if I loaded amdgpu prior or not. Linux guests also still work.
I haven't measured the performance impact of this.

For debugging this, I did try to hide the PCI_EXT_CAP_ID_REBAR capability 
from the VM, but it made no difference. 

I suspect that once the GPU is resetted, the bars
revert to their original sizes, but VFIO uses the sizes that are cached
by the kernel, so that the guest thinks that the bars are of one size
while they are of an another. I don't have an idea though why this
does work with a Linux guest.

I had attached the pci config with amdgpu running, once with my patch that
stops it from resizing the bars, and once without that patch for reference.
(amdgpu_pciconfig_noresize.txt, amdgpu_pciconfig_resize.txt)


4. I found out that amdgpu runtime PM sometimes breaks the card if last
output is disconnected from it. I didn't debug it much as I just disabled
it with amdgpu.runpm=0) I will do more debug on this later.
 

Please let me know if you have any questions,
Don't hesitate to ask me for more information.

My setup:
3 outputs, all HDMI, converted with DP->HDMI adapters, of which 2 are 1080P
monitors, and 1 is a 1080P TV. The issues I describe above are reproducible
on all the outputs.


I am running 5.10.0 kernel with few patches and kvm-queue branch 
merged for my day to day work on KVM.
 
You can find the exact kernel I use and its .config on
https://gitlab.com/maximlevitsky/linux/-/commits/kernel-starship-5.10
 

Best regards,
	Maxim Levitsky


[-- Attachment #2: amdgpu_dc1_plug_bug.txt --]
[-- Type: text/plain, Size: 56626 bytes --]


[10598.978981] rfkill: input handler disabled
[10715.442823] [drm:dc_link_detect_helper [amdgpu]] *ERROR* No EDID read.
[10715.856769] ------------[ cut here ]------------
[10715.857056] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:922 dc_commit_state+0x834/0x9e0 [amdgpu]
[10715.857594] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10715.857634]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10715.862606] CPU: 43 PID: 65533 Comm: Xorg Tainted: P           O      5.10.0.stable #1
[10715.862964] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10715.863452] RIP: 0010:dc_commit_state+0x834/0x9e0 [amdgpu]
[10715.863701] Code: e8 31 b7 00 00 48 8b 75 90 48 89 f7 e8 e5 8b ba dd e9 49 fa ff ff 31 d2 e9 52 f9 ff ff 80 b8 78 03 00 00 00 0f 84 2a fe ff ff <0f> 0b e9 23 fe ff ff 4d 8b 87 78 03 00 00 41 8b b0 b0 02 00 00 85
[10715.864516] RSP: 0018:ffffc90002d17830 EFLAGS: 00010202
[10715.864752] RAX: ffff88813b40cc00 RBX: 0000000000000000 RCX: 000000000000002b
[10715.865080] RDX: 00000000000014ab RSI: 0000000000000e75 RDI: 0000243ac0ad3d5a
[10715.865406] RBP: ffffc90002d178a8 R08: ffffc90002d177ec R09: 00000000000003e8
[10715.865720] R10: 0000000000000002 R11: 7fffffffffffffff R12: ffff88838b101ec8
[10715.866048] R13: ffff88838b1001b8 R14: ffff88838b100000 R15: ffff88812fd40000
[10715.866374] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10715.866726] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10715.866997] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10715.867306] Call Trace:
[10715.867489]  amdgpu_dm_atomic_commit_tail+0x529/0x2420 [amdgpu]
[10715.867755]  ? ttm_bo_move_accel_cleanup+0x1fa/0x3e0 [ttm]
[10715.868048]  ? amdgpu_move_blit+0xce/0x210 [amdgpu]
[10715.868300]  ? amdgpu_bo_move+0xa4/0x2b0 [amdgpu]
[10715.868533]  ? ttm_bo_handle_move_mem+0xb4/0x480 [ttm]
[10715.868767]  ? ttm_bo_validate+0x137/0x150 [ttm]
[10715.869010]  ? amdgpu_bo_pin_restricted+0x286/0x2c0 [amdgpu]
[10715.869325]  ? dm_plane_helper_prepare_fb+0x198/0x250 [amdgpu]
[10715.869590]  ? _cond_resched+0x1a/0x50
[10715.869781]  ? wait_for_completion_timeout+0x3a/0xf0
[10715.870006]  ? _cond_resched+0x1a/0x50
[10715.870205]  commit_tail+0x96/0x130 [drm_kms_helper]
[10715.870435]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10715.870753]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10715.870997]  drm_atomic_commit+0x44/0x50 [drm]
[10715.871206]  drm_atomic_helper_set_config+0x7c/0xc0 [drm_kms_helper]
[10715.871509]  drm_mode_setcrtc+0x205/0x7d0 [drm]
[10715.871751]  ? amdgpu_cs_wait_ioctl+0xd8/0x170 [amdgpu]
[10715.872006]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[10715.872229]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10715.872450]  drm_ioctl+0x238/0x400 [drm]
[10715.872639]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[10715.872882]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10715.873109]  __x64_sys_ioctl+0x8e/0xc0
[10715.873281]  do_syscall_64+0x32/0x80
[10715.873451]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10715.873707] RIP: 0033:0x7f4cc4c9f3bb
[10715.873876] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10715.874693] RSP: 002b:00007ffe21215c88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10715.875025] RAX: ffffffffffffffda RBX: 00007ffe21215cc0 RCX: 00007f4cc4c9f3bb
[10715.875354] RDX: 00007ffe21215cc0 RSI: 00000000c06864a2 RDI: 000000000000000e
[10715.875687] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000563001ee9c50
[10715.876001] R10: 0000000000000000 R11: 0000000000000246 R12: 0000563001edafe0
[10715.876335] R13: 000000000000000e R14: 0000563001d39708 R15: 0000000000000001
[10715.876667] ---[ end trace 7d33d4a249341320 ]---
[10726.363616] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10736.603244] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10746.842492] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[10746.843059] ------------[ cut here ]------------
[10746.843395] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7272 amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10746.844110] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10746.844173]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10746.849803] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10746.850218] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10746.850810] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10746.851157] Code: a0 fd ff ff 01 c7 85 9c fd ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff <0f> 0b e9 af f9 ff ff 0f 0b 0f 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6
[10746.852076] RSP: 0018:ffffc90002d17900 EFLAGS: 00010002
[10746.852357] RAX: 0000000000000002 RBX: 0000000000000757 RCX: ffff8881094ae918
[10746.852710] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10746.853079] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10746.853436] R10: ffff8882622e0000 R11: 0000000000000000 R12: 0000000000000293
[10746.853813] R13: ffff8881094ae800 R14: ffff888330a64400 R15: ffff88829dcd1000
[10746.854194] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10746.854571] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10746.854866] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10746.855233] Call Trace:
[10746.855374]  ? irq_work_queue+0x2a/0x40
[10746.855574]  ? vprintk_emit+0x136/0x220
[10746.855791]  commit_tail+0x96/0x130 [drm_kms_helper]
[10746.856081]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10746.856502]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10746.856812]  drm_atomic_commit+0x44/0x50 [drm]
[10746.857059]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10746.857440]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10746.857727]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.858018]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10746.858268]  drm_ioctl+0x238/0x400 [drm]
[10746.858506]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.858825]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10746.859068]  __x64_sys_ioctl+0x8e/0xc0
[10746.859281]  do_syscall_64+0x32/0x80
[10746.859466]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10746.859736] RIP: 0033:0x7f4cc4c9f3bb
[10746.859950] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10746.860858] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10746.861248] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10746.861613] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10746.861960] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10746.862330] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10746.862707] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10746.863061] ---[ end trace 7d33d4a249341321 ]---
[10746.863325] ------------[ cut here ]------------
[10746.863669] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6873 amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10746.864343] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10746.864388]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10746.869968] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10746.870387] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10746.870982] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10746.871304] Code: ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff 0f 0b e9 af f9 ff ff 0f 0b <0f> 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6 8e 2d 01 00 00 48 c7 c6 e0
[10746.872210] RSP: 0018:ffffc90002d17900 EFLAGS: 00010086
[10746.872473] RAX: 0000000000000001 RBX: 0000000000000757 RCX: ffff8881094ae918
[10746.872856] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10746.873211] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10746.873555] R10: ffff8882622e0000 R11: 0000000000000000 R12: 0000000000000293
[10746.873937] R13: ffff8881094ae800 R14: ffff888330a64400 R15: ffff88829dcd1000
[10746.874293] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10746.874707] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10746.875014] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10746.875360] Call Trace:
[10746.875517]  ? irq_work_queue+0x2a/0x40
[10746.875724]  ? vprintk_emit+0x136/0x220
[10746.875933]  commit_tail+0x96/0x130 [drm_kms_helper]
[10746.876224]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10746.876632]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10746.876937]  drm_atomic_commit+0x44/0x50 [drm]
[10746.877178]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10746.877577]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10746.877842]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.878125]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10746.878371]  drm_ioctl+0x238/0x400 [drm]
[10746.878594]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.878939]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10746.879182]  __x64_sys_ioctl+0x8e/0xc0
[10746.879386]  do_syscall_64+0x32/0x80
[10746.879592]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10746.879853] RIP: 0033:0x7f4cc4c9f3bb
[10746.880077] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10746.880971] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10746.881363] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10746.881725] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10746.882092] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10746.882444] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10746.882810] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10746.883177] ---[ end trace 7d33d4a249341322 ]---
[10757.082126] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10767.321464] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10777.560811] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:66:DP-1] flip_done timed out
[10787.800345] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[10798.039770] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-5] flip_done timed out
[10798.040328] ------------[ cut here ]------------
[10798.040689] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7272 amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10798.041378] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10798.041441]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10798.047068] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10798.047456] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10798.048059] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10798.048428] Code: a0 fd ff ff 01 c7 85 9c fd ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff <0f> 0b e9 af f9 ff ff 0f 0b 0f 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6
[10798.049320] RSP: 0018:ffffc90002d17900 EFLAGS: 00010002
[10798.049611] RAX: 0000000000000002 RBX: 0000000000001357 RCX: ffff8881094ae918
[10798.049980] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10798.050338] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10798.050705] R10: ffff888330b20000 R11: 0000000000000000 R12: 0000000000000293
[10798.051063] R13: ffff8881094ae800 R14: ffff888330a67000 R15: ffff88829dcd1000
[10798.051429] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10798.051849] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10798.052145] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10798.052512] Call Trace:
[10798.052657]  ? irq_work_queue+0x2a/0x40
[10798.052858]  ? vprintk_emit+0x136/0x220
[10798.053101]  commit_tail+0x96/0x130 [drm_kms_helper]
[10798.053350]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10798.053774]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10798.054056]  drm_atomic_commit+0x44/0x50 [drm]
[10798.054309]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10798.054668]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10798.054976]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.055250]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10798.055512]  drm_ioctl+0x238/0x400 [drm]
[10798.055732]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.055982]  ? __fget_files+0x5f/0x90
[10798.056200]  ? __fget_light+0x32/0x80
[10798.056471]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10798.056709]  __x64_sys_ioctl+0x8e/0xc0
[10798.056930]  do_syscall_64+0x32/0x80
[10798.057119]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10798.057390] RIP: 0033:0x7f4cc4c9f3bb
[10798.057601] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10798.058508] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10798.058906] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10798.059280] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10798.059643] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10798.060005] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10798.060375] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10798.060719] ---[ end trace 7d33d4a249341323 ]---
[10798.060981] ------------[ cut here ]------------
[10798.061315] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6873 amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10798.061989] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10798.062034]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10798.067637] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10798.068057] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10798.068672] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10798.068999] Code: ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff 0f 0b e9 af f9 ff ff 0f 0b <0f> 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6 8e 2d 01 00 00 48 c7 c6 e0
[10798.069931] RSP: 0018:ffffc90002d17900 EFLAGS: 00010086
[10798.070189] RAX: 0000000000000001 RBX: 0000000000001357 RCX: ffff8881094ae918
[10798.070552] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10798.070928] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10798.071296] R10: ffff888330b20000 R11: 0000000000000000 R12: 0000000000000293
[10798.071662] R13: ffff8881094ae800 R14: ffff888330a67000 R15: ffff88829dcd1000
[10798.072026] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10798.072443] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10798.072764] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10798.073123] Call Trace:
[10798.073298]  ? irq_work_queue+0x2a/0x40
[10798.073507]  ? vprintk_emit+0x136/0x220
[10798.073720]  commit_tail+0x96/0x130 [drm_kms_helper]
[10798.074010]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10798.074427]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10798.074750]  drm_atomic_commit+0x44/0x50 [drm]
[10798.074985]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10798.075390]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10798.075664]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.075958]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10798.076204]  drm_ioctl+0x238/0x400 [drm]
[10798.076438]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.076692]  ? __fget_files+0x5f/0x90
[10798.076887]  ? __fget_light+0x32/0x80
[10798.077153]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10798.077416]  __x64_sys_ioctl+0x8e/0xc0
[10798.077629]  do_syscall_64+0x32/0x80
[10798.077810]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10798.078096] RIP: 0033:0x7f4cc4c9f3bb
[10798.078285] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10798.079190] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10798.079559] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10798.079932] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10798.080309] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10798.080654] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10798.081032] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10798.081403] ---[ end trace 7d33d4a249341324 ]---
[10808.279207] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[11021.349388] rfkill: input handler enabled
[11023.081715] traps: gsettings-helpe[66645] trap int3 ip:7f9258393937 sp:7fffe88d6710 error:0 in libglib-2.0.so.0.6400.6[7f9258356000+86000]
[11031.498746] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[11041.738152] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-5] flip_done timed out
[11051.977680] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:66:DP-1] flip_done timed out
[11062.728976] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[11082.734855] [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than 20secs aborting
[11082.735293] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing C242 (len 62, WS 0, PS 0) @ 0xC25E
[11082.941161] Console: switching to colour dummy device 80x25
[11082.958249] amdgpu 0000:4c:00.0: amdgpu: amdgpu: finishing device.
[11083.088132] ------------[ cut here ]------------
[11083.088368] WARNING: CPU: 34 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.088861] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.088900]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.094279] CPU: 34 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.094648] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.095119] RIP: 0010:drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.095380] Code: e8 2f 45 01 e1 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 2c 80 ff ff eb 10 48 8b 70 48 48 c7
[11083.096223] RSP: 0018:ffffc9000391bcc0 EFLAGS: 00010283
[11083.096454] RAX: ffff8882598002a8 RBX: ffff8882598002e0 RCX: 0000000000000000
[11083.096776] RDX: ffff8881d7bd6018 RSI: ffffc9000391bc08 RDI: ffffc9000391bc88
[11083.097108] RBP: ffffc9000391bd18 R08: 0000000000000022 R09: ffff8881013f67c0
[11083.097431] R10: 00000000000001e3 R11: 0000000000000000 R12: ffff888259800010
[11083.097753] R13: ffff8882598002e8 R14: ffffffffa38b1060 R15: 0000000000000000
[11083.098084] FS:  00007fa8d49d7740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[11083.098446] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.098713] CR2: 00005555fb72e108 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.099039] Call Trace:
[11083.099214]  amdgpu_dm_fini+0x77/0x180 [amdgpu]
[11083.099476]  dm_hw_fini+0x23/0x30 [amdgpu]
[11083.099705]  amdgpu_device_fini+0x1cc/0x476 [amdgpu]
[11083.099988]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[11083.100256]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[11083.100468]  pci_device_remove+0x39/0xb0
[11083.100664]  __device_release_driver+0x17e/0x240
[11083.100881]  driver_detach+0xce/0x110
[11083.101068]  bus_remove_driver+0x5c/0xe0
[11083.101248]  driver_unregister+0x31/0x50
[11083.101431]  pci_unregister_driver+0x39/0x90
[11083.101678]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.101877]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.102126]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.102361]  ? __context_tracking_exit+0xe/0x90
[11083.102565]  __x64_sys_delete_module+0x12/0x20
[11083.102780]  do_syscall_64+0x32/0x80
[11083.102950]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.103187] RIP: 0033:0x7fa8d4b0736b
[11083.103368] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.104190] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.104532] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.104859] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.105169] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.105493] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.105819] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.106130] ---[ end trace 7d33d4a249341325 ]---
[11083.106361] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-1 leaked!
[11083.106716] ------------[ cut here ]------------
[11083.106956] WARNING: CPU: 34 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:538 drm_mode_config_cleanup+0x2b2/0x2d0 [drm]
[11083.107439] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.107458]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.112827] CPU: 34 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.113196] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.113637] RIP: 0010:drm_mode_config_cleanup+0x2b2/0x2d0 [drm]
[11083.113917] Code: 70 48 48 c7 c7 be 2a 55 a0 e8 da f8 ff ff 48 8d 7d a8 e8 51 91 ff ff 48 85 c0 75 e2 48 8d 7d a8 e8 f3 90 ff ff e9 ff fd ff ff <0f> 0b e9 f1 fe ff ff 0f 0b eb 9d e8 0e a6 39 e1 66 66 2e 0f 1f 84
[11083.114705] RSP: 0018:ffffc9000391bcc0 EFLAGS: 00010216
[11083.114963] RAX: ffff88810f97be08 RBX: ffff88810362aa80 RCX: 0000000080080006
[11083.115272] RDX: 0000000080080007 RSI: 0000000080080006 RDI: ffff8882598003c0
[11083.115596] RBP: ffffc9000391bd18 R08: 0000000000000001 R09: ffffffff812e534a
[11083.115938] R10: 0000000000000001 R11: ffff888447a52210 R12: ffff888259800010
[11083.116247] R13: ffff8882598003e8 R14: ffff888259800280 R15: 0000000000000000
[11083.116572] FS:  00007fa8d49d7740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[11083.116937] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.117189] CR2: 00005555fb72e108 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.117511] Call Trace:
[11083.117680]  amdgpu_dm_fini+0x77/0x180 [amdgpu]
[11083.117930]  dm_hw_fini+0x23/0x30 [amdgpu]
[11083.118178]  amdgpu_device_fini+0x1cc/0x476 [amdgpu]
[11083.118433]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[11083.118715]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[11083.118942]  pci_device_remove+0x39/0xb0
[11083.119125]  __device_release_driver+0x17e/0x240
[11083.119348]  driver_detach+0xce/0x110
[11083.119517]  bus_remove_driver+0x5c/0xe0
[11083.119698]  driver_unregister+0x31/0x50
[11083.119911]  pci_unregister_driver+0x39/0x90
[11083.120149]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.120343]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.120604]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.120826]  ? __context_tracking_exit+0xe/0x90
[11083.121048]  __x64_sys_delete_module+0x12/0x20
[11083.121249]  do_syscall_64+0x32/0x80
[11083.121418]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.121660] RIP: 0033:0x7fa8d4b0736b
[11083.121828] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.122627] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.122987] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.123295] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.123617] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.123950] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.124273] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.124594] ---[ end trace 7d33d4a249341326 ]---
[11083.124803] [leaked fb] framebuffer[122]:
[11083.124804] [leaked fb] 	allocated by = Xorg
[11083.124805] [leaked fb] 	refcount=1
[11083.124806] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124806] [leaked fb] 	modifier=0x0
[11083.124807] [leaked fb] 	size=1920x1080
[11083.124808] [leaked fb] 	layers:
[11083.124809] [leaked fb] 		size[0]=1920x1080
[11083.124811] [leaked fb] 		pitch[0]=7680
[11083.124811] [leaked fb] 		offset[0]=0
[11083.124812] [leaked fb] 		obj[0]:
[11083.124813] [leaked fb] 			name=0
[11083.124813] [leaked fb] 			refcount=9
[11083.124814] [leaked fb] 			start=001043b4
[11083.124814] [leaked fb] 			size=8847360
[11083.124815] [leaked fb] 			imported=no
[11083.124816] [leaked fb] framebuffer[120]:
[11083.124816] [leaked fb] 	allocated by = Xorg
[11083.124817] [leaked fb] 	refcount=1
[11083.124817] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124818] [leaked fb] 	modifier=0x0
[11083.124818] [leaked fb] 	size=1920x1080
[11083.124818] [leaked fb] 	layers:
[11083.124819] [leaked fb] 		size[0]=1920x1080
[11083.124819] [leaked fb] 		pitch[0]=7680
[11083.124820] [leaked fb] 		offset[0]=0
[11083.124820] [leaked fb] 		obj[0]:
[11083.124821] [leaked fb] 			name=0
[11083.124821] [leaked fb] 			refcount=9
[11083.124822] [leaked fb] 			start=001056d8
[11083.124824] [leaked fb] 			size=8847360
[11083.124826] [leaked fb] 			imported=no
[11083.124826] [leaked fb] framebuffer[119]:
[11083.124827] [leaked fb] 	allocated by = Xorg
[11083.124827] [leaked fb] 	refcount=1
[11083.124828] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124828] [leaked fb] 	modifier=0x0
[11083.124828] [leaked fb] 	size=1920x1080
[11083.124829] [leaked fb] 	layers:
[11083.124829] [leaked fb] 		size[0]=1920x1080
[11083.124829] [leaked fb] 		pitch[0]=7680
[11083.124830] [leaked fb] 		offset[0]=0
[11083.124830] [leaked fb] 		obj[0]:
[11083.124831] [leaked fb] 			name=0
[11083.124831] [leaked fb] 			refcount=8
[11083.124831] [leaked fb] 			start=001043b4
[11083.124832] [leaked fb] 			size=8847360
[11083.124832] [leaked fb] 			imported=no
[11083.124833] [leaked fb] framebuffer[116]:
[11083.124833] [leaked fb] 	allocated by = Xorg
[11083.124833] [leaked fb] 	refcount=1
[11083.124834] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124834] [leaked fb] 	modifier=0x0
[11083.124835] [leaked fb] 	size=1920x1080
[11083.124835] [leaked fb] 	layers:
[11083.124835] [leaked fb] 		size[0]=1920x1080
[11083.124836] [leaked fb] 		pitch[0]=7680
[11083.124836] [leaked fb] 		offset[0]=0
[11083.124837] [leaked fb] 		obj[0]:
[11083.124837] [leaked fb] 			name=0
[11083.124837] [leaked fb] 			refcount=8
[11083.124838] [leaked fb] 			start=001056d8
[11083.124838] [leaked fb] 			size=8847360
[11083.124839] [leaked fb] 			imported=no
[11083.124839] [leaked fb] framebuffer[118]:
[11083.124840] [leaked fb] 	allocated by = Xorg
[11083.124840] [leaked fb] 	refcount=1
[11083.124841] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124842] [leaked fb] 	modifier=0x0
[11083.124844] [leaked fb] 	size=1920x1080
[11083.124844] [leaked fb] 	layers:
[11083.124845] [leaked fb] 		size[0]=1920x1080
[11083.124845] [leaked fb] 		pitch[0]=7680
[11083.124846] [leaked fb] 		offset[0]=0
[11083.124846] [leaked fb] 		obj[0]:
[11083.124846] [leaked fb] 			name=0
[11083.124847] [leaked fb] 			refcount=7
[11083.124847] [leaked fb] 			start=001043b4
[11083.124847] [leaked fb] 			size=8847360
[11083.124848] [leaked fb] 			imported=no
[11083.124848] [leaked fb] framebuffer[117]:
[11083.124849] [leaked fb] 	allocated by = Xorg
[11083.124849] [leaked fb] 	refcount=1
[11083.124850] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124850] [leaked fb] 	modifier=0x0
[11083.124850] [leaked fb] 	size=1920x1080
[11083.124851] [leaked fb] 	layers:
[11083.124851] [leaked fb] 		size[0]=1920x1080
[11083.124852] [leaked fb] 		pitch[0]=7680
[11083.124852] [leaked fb] 		offset[0]=0
[11083.124852] [leaked fb] 		obj[0]:
[11083.124853] [leaked fb] 			name=0
[11083.124853] [leaked fb] 			refcount=6
[11083.124853] [leaked fb] 			start=001043b4
[11083.124854] [leaked fb] 			size=8847360
[11083.124854] [leaked fb] 			imported=no
[11083.124855] [leaked fb] framebuffer[110]:
[11083.124855] [leaked fb] 	allocated by = Xorg
[11083.124856] [leaked fb] 	refcount=1
[11083.124856] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124856] [leaked fb] 	modifier=0x0
[11083.124857] [leaked fb] 	size=1920x1080
[11083.124857] [leaked fb] 	layers:
[11083.124858] [leaked fb] 		size[0]=1920x1080
[11083.124858] [leaked fb] 		pitch[0]=7680
[11083.124858] [leaked fb] 		offset[0]=0
[11083.124859] [leaked fb] 		obj[0]:
[11083.124859] [leaked fb] 			name=0
[11083.124859] [leaked fb] 			refcount=7
[11083.124860] [leaked fb] 			start=001056d8
[11083.124860] [leaked fb] 			size=8847360
[11083.124861] [leaked fb] 			imported=no
[11083.124862] [leaked fb] framebuffer[113]:
[11083.124862] [leaked fb] 	allocated by = Xorg
[11083.124865] [leaked fb] 	refcount=1
[11083.124865] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124866] [leaked fb] 	modifier=0x0
[11083.124866] [leaked fb] 	size=1920x1080
[11083.124866] [leaked fb] 	layers:
[11083.124867] [leaked fb] 		size[0]=1920x1080
[11083.124867] [leaked fb] 		pitch[0]=7680
[11083.124868] [leaked fb] 		offset[0]=0
[11083.124868] [leaked fb] 		obj[0]:
[11083.124868] [leaked fb] 			name=0
[11083.124869] [leaked fb] 			refcount=5
[11083.124869] [leaked fb] 			start=001043b4
[11083.124869] [leaked fb] 			size=8847360
[11083.124870] [leaked fb] 			imported=no
[11083.124870] [leaked fb] framebuffer[106]:
[11083.124871] [leaked fb] 	allocated by = Xorg
[11083.124871] [leaked fb] 	refcount=1
[11083.124872] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124872] [leaked fb] 	modifier=0x0
[11083.124872] [leaked fb] 	size=1920x1080
[11083.124873] [leaked fb] 	layers:
[11083.124873] [leaked fb] 		size[0]=1920x1080
[11083.124873] [leaked fb] 		pitch[0]=7680
[11083.124874] [leaked fb] 		offset[0]=0
[11083.124874] [leaked fb] 		obj[0]:
[11083.124875] [leaked fb] 			name=0
[11083.124875] [leaked fb] 			refcount=6
[11083.124875] [leaked fb] 			start=001056d8
[11083.124876] [leaked fb] 			size=8847360
[11083.124876] [leaked fb] 			imported=no
[11083.124877] [leaked fb] framebuffer[108]:
[11083.124877] [leaked fb] 	allocated by = Xorg
[11083.124877] [leaked fb] 	refcount=1
[11083.124878] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124878] [leaked fb] 	modifier=0x0
[11083.124879] [leaked fb] 	size=1920x1080
[11083.124881] [leaked fb] 	layers:
[11083.124882] [leaked fb] 		size[0]=1920x1080
[11083.124882] [leaked fb] 		pitch[0]=7680
[11083.124883] [leaked fb] 		offset[0]=0
[11083.124883] [leaked fb] 		obj[0]:
[11083.124883] [leaked fb] 			name=0
[11083.124884] [leaked fb] 			refcount=4
[11083.124884] [leaked fb] 			start=001043b4
[11083.124884] [leaked fb] 			size=8847360
[11083.124885] [leaked fb] 			imported=no
[11083.124885] [leaked fb] framebuffer[96]:
[11083.124886] [leaked fb] 	allocated by = Xorg
[11083.124886] [leaked fb] 	refcount=1
[11083.124887] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124887] [leaked fb] 	modifier=0x0
[11083.124887] [leaked fb] 	size=1920x1080
[11083.124888] [leaked fb] 	layers:
[11083.124888] [leaked fb] 		size[0]=1920x1080
[11083.124889] [leaked fb] 		pitch[0]=7680
[11083.124889] [leaked fb] 		offset[0]=0
[11083.124889] [leaked fb] 		obj[0]:
[11083.124890] [leaked fb] 			name=0
[11083.124890] [leaked fb] 			refcount=3
[11083.124890] [leaked fb] 			start=001043b4
[11083.124891] [leaked fb] 			size=8847360
[11083.124891] [leaked fb] 			imported=no
[11083.124892] [leaked fb] framebuffer[104]:
[11083.124892] [leaked fb] 	allocated by = Xorg
[11083.124892] [leaked fb] 	refcount=1
[11083.124893] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124893] [leaked fb] 	modifier=0x0
[11083.124894] [leaked fb] 	size=1920x1080
[11083.124894] [leaked fb] 	layers:
[11083.124895] [leaked fb] 		size[0]=1920x1080
[11083.124896] [leaked fb] 		pitch[0]=7680
[11083.124896] [leaked fb] 		offset[0]=0
[11083.124898] [leaked fb] 		obj[0]:
[11083.124899] [leaked fb] 			name=0
[11083.124899] [leaked fb] 			refcount=5
[11083.124899] [leaked fb] 			start=001056d8
[11083.124900] [leaked fb] 			size=8847360
[11083.124900] [leaked fb] 			imported=no
[11083.124901] [leaked fb] framebuffer[102]:
[11083.124901] [leaked fb] 	allocated by = Xorg
[11083.124901] [leaked fb] 	refcount=1
[11083.124902] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124902] [leaked fb] 	modifier=0x0
[11083.124903] [leaked fb] 	size=1920x1080
[11083.124903] [leaked fb] 	layers:
[11083.124903] [leaked fb] 		size[0]=1920x1080
[11083.124904] [leaked fb] 		pitch[0]=7680
[11083.124904] [leaked fb] 		offset[0]=0
[11083.124905] [leaked fb] 		obj[0]:
[11083.124905] [leaked fb] 			name=0
[11083.124905] [leaked fb] 			refcount=4
[11083.124906] [leaked fb] 			start=001056d8
[11083.124906] [leaked fb] 			size=8847360
[11083.124907] [leaked fb] 			imported=no
[11083.124907] [leaked fb] framebuffer[89]:
[11083.124907] [leaked fb] 	allocated by = Xorg
[11083.124908] [leaked fb] 	refcount=1
[11083.124908] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124909] [leaked fb] 	modifier=0x0
[11083.124909] [leaked fb] 	size=1920x1080
[11083.124909] [leaked fb] 	layers:
[11083.124910] [leaked fb] 		size[0]=1920x1080
[11083.124910] [leaked fb] 		pitch[0]=7680
[11083.124912] [leaked fb] 		offset[0]=0
[11083.124914] [leaked fb] 		obj[0]:
[11083.124914] [leaked fb] 			name=0
[11083.124915] [leaked fb] 			refcount=3
[11083.124915] [leaked fb] 			start=001056d8
[11083.124915] [leaked fb] 			size=8847360
[11083.124916] [leaked fb] 			imported=no
[11083.124916] [leaked fb] framebuffer[98]:
[11083.124917] [leaked fb] 	allocated by = Xorg
[11083.124917] [leaked fb] 	refcount=1
[11083.124918] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124918] [leaked fb] 	modifier=0x0
[11083.124918] [leaked fb] 	size=1920x1080
[11083.124919] [leaked fb] 	layers:
[11083.124919] [leaked fb] 		size[0]=1920x1080
[11083.124919] [leaked fb] 		pitch[0]=7680
[11083.124920] [leaked fb] 		offset[0]=0
[11083.124920] [leaked fb] 		obj[0]:
[11083.124921] [leaked fb] 			name=0
[11083.124921] [leaked fb] 			refcount=2
[11083.124921] [leaked fb] 			start=001043b4
[11083.124922] [leaked fb] 			size=8847360
[11083.124922] [leaked fb] 			imported=no
[11083.124923] [leaked fb] framebuffer[97]:
[11083.124923] [leaked fb] 	allocated by = Xorg
[11083.124923] [leaked fb] 	refcount=1
[11083.124924] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124924] [leaked fb] 	modifier=0x0
[11083.124925] [leaked fb] 	size=1920x1080
[11083.124925] [leaked fb] 	layers:
[11083.124925] [leaked fb] 		size[0]=1920x1080
[11083.124927] [leaked fb] 		pitch[0]=7680
[11083.124927] [leaked fb] 		offset[0]=0
[11083.124929] [leaked fb] 		obj[0]:
[11083.124930] [leaked fb] 			name=0
[11083.124930] [leaked fb] 			refcount=1
[11083.124930] [leaked fb] 			start=001043b4
[11083.124931] [leaked fb] 			size=8847360
[11083.124931] [leaked fb] 			imported=no
[11083.124935] [leaked fb] framebuffer[93]:
[11083.124935] [leaked fb] 	allocated by = Xorg
[11083.124936] [leaked fb] 	refcount=1
[11083.124936] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124937] [leaked fb] 	modifier=0x0
[11083.124937] [leaked fb] 	size=1920x1080
[11083.124937] [leaked fb] 	layers:
[11083.124938] [leaked fb] 		size[0]=1920x1080
[11083.124938] [leaked fb] 		pitch[0]=7680
[11083.124939] [leaked fb] 		offset[0]=0
[11083.124939] [leaked fb] 		obj[0]:
[11083.124940] [leaked fb] 			name=0
[11083.124940] [leaked fb] 			refcount=2
[11083.124940] [leaked fb] 			start=001056d8
[11083.124941] [leaked fb] 			size=8847360
[11083.124942] [leaked fb] 			imported=no
[11083.124944] [leaked fb] framebuffer[90]:
[11083.124944] [leaked fb] 	allocated by = Xorg
[11083.124944] [leaked fb] 	refcount=1
[11083.124945] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124945] [leaked fb] 	modifier=0x0
[11083.124946] [leaked fb] 	size=1920x1080
[11083.124946] [leaked fb] 	layers:
[11083.124946] [leaked fb] 		size[0]=1920x1080
[11083.124947] [leaked fb] 		pitch[0]=7680
[11083.124947] [leaked fb] 		offset[0]=0
[11083.124947] [leaked fb] 		obj[0]:
[11083.124948] [leaked fb] 			name=0
[11083.124948] [leaked fb] 			refcount=1
[11083.124949] [leaked fb] 			start=001056d8
[11083.124949] [leaked fb] 			size=8847360
[11083.124949] [leaked fb] 			imported=no
[11083.124952] [leaked fb] framebuffer[94]:
[11083.124952] [leaked fb] 	allocated by = Xorg
[11083.124952] [leaked fb] 	refcount=18
[11083.124953] [leaked fb] 	format=AR24 little-endian (0x34325241)
[11083.124953] [leaked fb] 	modifier=0x0
[11083.124954] [leaked fb] 	size=128x128
[11083.124954] [leaked fb] 	layers:
[11083.124955] [leaked fb] 		size[0]=128x128
[11083.124955] [leaked fb] 		pitch[0]=512
[11083.124955] [leaked fb] 		offset[0]=0
[11083.124956] [leaked fb] 		obj[0]:
[11083.124956] [leaked fb] 			name=0
[11083.124957] [leaked fb] 			refcount=1
[11083.124957] [leaked fb] 			start=00101072
[11083.124957] [leaked fb] 			size=65536
[11083.124958] [leaked fb] 			imported=no
[11083.269438] [TTM] Finalizing pool allocator
[11083.269646] [TTM] Finalizing DMA pool allocator
[11083.271281] [TTM] Zone  kernel: Used memory at exit: 0 KiB
[11083.271529] [TTM] Zone   dma32: Used memory at exit: 0 KiB
[11083.271790] [drm] amdgpu: ttm finalized
[11083.272109] ------------[ cut here ]------------
[11083.272341] WARNING: CPU: 2 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.272820] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.272847]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.278195] CPU: 2 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.278559] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.279021] RIP: 0010:drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.279282] Code: e8 2f 45 01 e1 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 2c 80 ff ff eb 10 48 8b 70 48 48 c7
[11083.280118] RSP: 0018:ffffc9000391bcb8 EFLAGS: 00010283
[11083.280365] RAX: ffff8882598002a8 RBX: ffff8882f9fdd640 RCX: 0000000000000000
[11083.280672] RDX: ffff8881d7bd6018 RSI: 0000000000000044 RDI: ffff889fce8a9980
[11083.281005] RBP: ffffc9000391bd10 R08: ffff889fce8a9980 R09: 0000000000000000
[11083.281313] R10: 0000000000000000 R11: ffff88810140024a R12: ffff888259800010
[11083.281634] R13: ffff8882598002e8 R14: dead000000000122 R15: dead000000000100
[11083.281969] FS:  00007fa8d49d7740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[11083.282316] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.282584] CR2: 0000564739132200 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.282913] Call Trace:
[11083.283038]  ? kfree+0x36e/0x3b0
[11083.283197]  drm_mode_config_init_release+0xe/0x10 [drm]
[11083.283453]  drm_managed_release+0x9a/0x100 [drm]
[11083.283670]  devm_drm_dev_init_release+0x4a/0x70 [drm]
[11083.283913]  devm_action_release+0xf/0x20
[11083.284112]  release_nodes+0x1a2/0x1f0
[11083.284285]  devres_release_all+0x3f/0x50
[11083.284470]  __device_release_driver+0x18e/0x240
[11083.284696]  driver_detach+0xce/0x110
[11083.284874]  bus_remove_driver+0x5c/0xe0
[11083.285056]  driver_unregister+0x31/0x50
[11083.285253]  pci_unregister_driver+0x39/0x90
[11083.285487]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.285694]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.285963]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.286184]  ? __context_tracking_exit+0xe/0x90
[11083.286408]  __x64_sys_delete_module+0x12/0x20
[11083.286610]  do_syscall_64+0x32/0x80
[11083.286795]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.287028] RIP: 0033:0x7fa8d4b0736b
[11083.287195] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.288025] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.288366] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.288674] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.289024] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.289350] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.289661] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.290011] ---[ end trace 7d33d4a249341327 ]---
[11083.290226] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-1 leaked!
[11094.643167] [drm] amdgpu kernel modesetting enabled.
[11094.643556] [drm] initializing kernel modesetting (POLARIS11 0x1002:0x67E3 0x103C:0x0B0D 0x00).
[11094.643957] amdgpu 0000:4c:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[11094.644354] [drm] register mmio base: 0xB9000000
[11094.644568] [drm] register mmio size: 262144
[11094.644792] [drm] add ip block number 0 <vi_common>
[11094.645015] [drm] add ip block number 1 <gmc_v8_0>
[11094.645237] [drm] add ip block number 2 <tonga_ih>
[11094.645475] [drm] add ip block number 3 <gfx_v8_0>
[11094.645697] [drm] add ip block number 4 <sdma_v3_0>
[11094.645936] [drm] add ip block number 5 <powerplay>
[11094.646164] [drm] add ip block number 6 <dce_v11_0>
[11094.646404] [drm] add ip block number 7 <uvd_v6_0>
[11094.646626] [drm] add ip block number 8 <vce_v3_0>
[11094.646858] amdgpu 0000:4c:00.0: amdgpu: Fetched VBIOS from VFCT
[11094.647144] amdgpu: ATOM BIOS: 113-D0150101-100
[11094.647378] [drm] UVD is enabled in VM mode
[11094.647589] [drm] UVD ENC is enabled in VM mode
[11094.647800] [drm] VCE enabled in VM mode
[11094.647994] amdgpu 0000:4c:00.0: amdgpu: PCI CONFIG reset
[11094.648261] amdgpu 0000:4c:00.0: amdgpu: GPU pci config reset
[11094.648633] [drm] GPU posting now...
[11095.105348] [drm] vm size is 512 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[11095.105760] amdgpu 0000:4c:00.0: amdgpu: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[11095.106182] amdgpu 0000:4c:00.0: amdgpu: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[11095.106571] [drm] Detected VRAM RAM=4096M, BAR=4096M
[11095.106816] [drm] RAM width 128bits GDDR5
[11095.107086] [TTM] Zone  kernel: Available graphics memory: 65888882 KiB
[11095.107390] [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[11095.107694] [TTM] Initializing pool allocator
[11095.107906] [TTM] Initializing DMA pool allocator
[11095.108182] [drm] amdgpu: 4096M of VRAM memory ready
[11095.108425] [drm] amdgpu: 4096M of GTT memory ready.
[11095.108681] [drm] GART: num cpu pages 65536, num gpu pages 65536
[11095.111348] [drm] PCIE GART of 256M enabled (table at 0x000000F400000000).
[11095.111910] [drm] Chained IB support enabled!
[11095.112893] amdgpu: hwmgr_sw_init smu backed is polaris10_smu
[11095.113198] [drm] AMDGPU Display Connectors
[11095.113393] [drm] Connector 0:
[11095.113541] [drm]   DP-1
[11095.113685] [drm]   HPD5
[11095.113813] [drm]   DDC: 0x4868 0x4868 0x4869 0x4869 0x486a 0x486a 0x486b 0x486b
[11095.114158] [drm]   Encoders:
[11095.114304] [drm]     DFP1: INTERNAL_UNIPHY1
[11095.114501] [drm] Connector 1:
[11095.114646] [drm]   DP-2
[11095.114786] [drm]   HPD4
[11095.114913] [drm]   DDC: 0x486c 0x486c 0x486d 0x486d 0x486e 0x486e 0x486f 0x486f
[11095.115246] [drm]   Encoders:
[11095.115392] [drm]     DFP2: INTERNAL_UNIPHY1
[11095.115589] [drm] Connector 2:
[11095.115734] [drm]   DP-3
[11095.115875] [drm]   HPD3
[11095.116001] [drm]   DDC: 0x4870 0x4870 0x4871 0x4871 0x4872 0x4872 0x4873 0x4873
[11095.116332] [drm]   Encoders:
[11095.116492] [drm]     DFP3: INTERNAL_UNIPHY
[11095.116685] [drm] Connector 3:
[11095.116830] [drm]   DP-4
[11095.116971] [drm]   HPD2
[11095.117097] [drm]   DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877
[11095.117429] [drm]   Encoders:
[11095.117587] [drm]     DFP4: INTERNAL_UNIPHY
[11095.117829] [drm] Found UVD firmware Version: 1.130 Family ID: 16
[11095.120265] [drm] Found VCE firmware Version: 53.26 Binary ID: 3
[11095.161886] [drm] UVD and UVD ENC initialized successfully.
[11095.262804] [drm] VCE initialized successfully.
[11095.263007] amdgpu 0000:4c:00.0: amdgpu: SE 2, SH per SE 1, CU per SH 8, active_cu_number 16
[11095.386657] [drm] fb mappable at 0x26700530000
[11095.386887] [drm] vram apper at 0x26700000000
[11095.387137] [drm] size 8294400
[11095.387301] [drm] fb depth is 24
[11095.387478] [drm]    pitch is 7680
[11095.387715] fbcon: amdgpudrmfb (fb0) is primary device
[11095.529825] Console: switching to colour frame buffer device 240x67
[11095.658835] amdgpu 0000:4c:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[11095.669377] [drm] Initialized amdgpu 3.40.0 20150101 for 0000:4c:00.0 on minor 0
[11097.392574] traps: gsettings-helpe[67134] trap int3 ip:7f1764334937 sp:7ffc84094040 error:0 in libglib-2.0.so.0.6400.6[7f17642f7000+86000]
[11098.735668] rfkill: input handler disabled

[-- Attachment #3: amdgpu_pciconfig_noresize.txt --]
[-- Type: text/plain, Size: 18104 bytes --]

4c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon Pro WX 4100] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 0b0d
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 274
	Region 0: Memory at 3cba0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at 3cbb0000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 5000 [size=256]
	Region 5: Memory at b9000000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at b9040000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
		LnkCap:	Port #1, Speed 8GT/s, Width x8, ASPM L1, Exit Latency L1 <1us
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x8 (ok)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR+
			 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt+, EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
			 AtomicOpsCtl: ReqEn+
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
			 EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest+
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Resizable BAR <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable+, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Capabilities: [320 v1] Latency Tolerance Reporting
		Max snoop latency: 1048576ns
		Max no snoop latency: 1048576ns
	Capabilities: [328 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 1
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [370 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=170us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=32768ns
		L1SubCtl2: T_PwrOn=170us
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
00: 02 10 e3 67 07 04 10 00 00 00 00 03 10 00 80 00
10: 0c 00 00 a0 cb 03 00 00 0c 00 00 b0 cb 03 00 00
20: 01 50 00 00 00 00 00 b9 00 00 00 00 3c 10 0d 0b
30: 00 00 04 b9 48 00 00 00 00 00 00 00 ff 01 00 00
40: 00 00 00 00 00 00 00 00 09 50 08 00 3c 10 0d 0b
50: 01 58 03 f6 08 00 00 00 10 a0 12 00 a1 8f 00 00
60: 3f 29 09 00 83 08 40 01 40 00 81 10 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 80 09 70 00
80: 40 00 00 00 0e 00 00 00 03 00 3f 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 05 00 81 00 00 00 e0 fe 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
100: 0b 00 01 15 01 00 01 01 00 00 00 00 00 00 00 00
110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 01 00 02 20 00 00 00 00 00 00 00 00 30 20 46 00
160: 00 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 15 00 01 27 00 f0 01 00 20 08 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 19 00 01 2b 00 00 00 00 00 00 00 00 00 34 00 34
280: 00 34 00 34 00 34 00 34 00 34 00 34 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 0f 00 01 2c 20 00 00 80 00 00 00 00 00 00 00 00
2c0: 13 00 01 2d 00 00 00 01 20 00 00 00 00 00 00 00
2d0: 1b 00 01 32 06 10 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 18 00 81 32 01 10 01 10 0e 00 01 37 00 01 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 1e 00 01 00 1f 00 89 00 00 00 01 60 89 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


[-- Attachment #4: amdgpu_pciconfig_resize.txt --]
[-- Type: text/plain, Size: 18102 bytes --]

4c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon Pro WX 4100] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 0b0d
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 274
	Region 0: Memory at 26700000000 (64-bit, prefetchable) [size=4G]
	Region 2: Memory at 26680000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 5000 [size=256]
	Region 5: Memory at b9000000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at b9040000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
		LnkCap:	Port #1, Speed 8GT/s, Width x8, ASPM L1, Exit Latency L1 <1us
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x8 (ok)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR+
			 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt+, EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
			 AtomicOpsCtl: ReqEn+
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
			 EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest+
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Resizable BAR <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable+, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Capabilities: [320 v1] Latency Tolerance Reporting
		Max snoop latency: 1048576ns
		Max no snoop latency: 1048576ns
	Capabilities: [328 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 1
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [370 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=170us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=32768ns
		L1SubCtl2: T_PwrOn=170us
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
00: 02 10 e3 67 07 04 10 00 00 00 00 03 10 00 80 00
10: 0c 00 00 00 67 02 00 00 0c 00 00 80 66 02 00 00
20: 01 50 00 00 00 00 00 b9 00 00 00 00 3c 10 0d 0b
30: 00 00 04 b9 48 00 00 00 00 00 00 00 ff 01 00 00
40: 00 00 00 00 00 00 00 00 09 50 08 00 3c 10 0d 0b
50: 01 58 03 f6 08 00 00 00 10 a0 12 00 a1 8f 00 00
60: 3f 29 09 00 83 08 40 01 40 00 81 10 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 80 09 70 00
80: 40 00 00 00 0e 00 00 00 03 00 3f 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 05 00 81 00 00 00 e0 fe 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
100: 0b 00 01 15 01 00 01 01 00 00 00 00 00 00 00 00
110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 01 00 02 20 00 00 00 00 00 00 00 00 30 20 46 00
160: 00 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 15 00 01 27 00 f0 01 00 20 0c 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 19 00 01 2b 00 00 00 00 00 00 00 00 00 34 00 34
280: 00 34 00 34 00 34 00 34 00 34 00 34 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 0f 00 01 2c 20 00 00 80 00 00 00 00 00 00 00 00
2c0: 13 00 01 2d 00 00 00 01 20 00 00 00 00 00 00 00
2d0: 1b 00 01 32 06 10 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 18 00 81 32 01 10 01 10 0e 00 01 37 00 01 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 1e 00 01 00 1f 00 89 00 00 00 01 60 89 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


[-- Attachment #5: connector_leak_bug.txt --]
[-- Type: text/plain, Size: 31294 bytes --]

unloading AMDGPU...
[13950.607776] Console: switching to colour dummy device 80x25
[13950.625321] amdgpu 0000:4c:00.0: amdgpu: amdgpu: finishing device.
[13950.893672] ------------[ cut here ]------------
[13950.893896] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.894366] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.894401]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.899562] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.899923] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.900371] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.900647] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.901460] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010046
[13950.901697] RAX: 0000000000000001 RBX: ffff888a7d480010 RCX: 0000000000000000
[13950.902023] RDX: ffff888a7d4802b8 RSI: ffff88822b4c2478 RDI: ffff88822b4c2478
[13950.902330] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: ffffffffa178c3d4
[13950.902657] R10: 0000000000000000 R11: ffff88826b8241c8 R12: ffff88822b4c2000
[13950.902986] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.903294] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.903657] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.903913] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.904239] Call Trace:
[13950.904379]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.904650]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.904886]  ? kfree+0x36e/0x3b0
[13950.905110]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.905409]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.905699]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.906000]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.906291]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.906527]  pci_device_remove+0x39/0xb0
[13950.906712]  __device_release_driver+0x17e/0x240
[13950.906920]  driver_detach+0xce/0x110
[13950.907114]  bus_remove_driver+0x5c/0xe0
[13950.907300]  driver_unregister+0x31/0x50
[13950.907481]  pci_unregister_driver+0x39/0x90
[13950.907773]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.907970]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.908240]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.908461]  ? __context_tracking_exit+0xe/0x90
[13950.908669]  __x64_sys_delete_module+0x12/0x20
[13950.908890]  do_syscall_64+0x32/0x80
[13950.909061]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.909323] RIP: 0033:0x7f794cf0136b
[13950.909493] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.910299] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.910626] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.910959] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.911265] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.911592] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.911923] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.912233] ---[ end trace d35dc89f290a6166 ]---
[13950.912615] ------------[ cut here ]------------
[13950.912964] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.913592] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.913757]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.919419] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.920035] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.920505] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.920962] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.922021] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010086
[13950.922326] RAX: ffff88822b4c2400 RBX: ffff888a7d480010 RCX: ffff88822b4c2478
[13950.922794] RDX: ffff888a7d4802b8 RSI: ffff88810785a478 RDI: ffff88810785a478
[13950.923244] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: 0000000000b71b00
[13950.923708] R10: 0000000000000001 R11: 0000000002e51e80 R12: ffff88810785a000
[13950.924160] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.924625] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.925244] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.925552] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.926007] Call Trace:
[13950.926179]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.926637]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.926937]  ? kfree+0x36e/0x3b0
[13950.927279]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.927762]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.928255]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.928738]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.929217]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.929664]  pci_device_remove+0x39/0xb0
[13950.929971]  __device_release_driver+0x17e/0x240
[13950.930420]  driver_detach+0xce/0x110
[13950.930728]  bus_remove_driver+0x5c/0xe0
[13950.931038]  driver_unregister+0x31/0x50
[13950.931345]  pci_unregister_driver+0x39/0x90
[13950.931689]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.932137]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.932587]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.932894]  ? __context_tracking_exit+0xe/0x90
[13950.933198]  __x64_sys_delete_module+0x12/0x20
[13950.933501]  do_syscall_64+0x32/0x80
[13950.933806]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.934111] RIP: 0033:0x7f794cf0136b
[13950.934412] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.935320] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.935779] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.936230] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.936696] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.937148] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.937612] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.938064] ---[ end trace d35dc89f290a6167 ]---
[13950.938376] ------------[ cut here ]------------
[13950.938675] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.939274] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.939583]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.944942] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.945341] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.945800] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.946091] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.946940] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010086
[13950.947189] RAX: ffff88810785a400 RBX: ffff888a7d480010 RCX: ffff88810785a478
[13950.947522] RDX: ffff888a7d4802b8 RSI: ffff88810785c478 RDI: ffff88810785c478
[13950.947860] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: 0000000000b71b00
[13950.948206] R10: 0000000000000001 R11: 0000000002e51e80 R12: ffff88810785c000
[13950.948542] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.948901] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.949301] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.949579] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.949909] Call Trace:
[13950.950039]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.950305]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.950574]  ? kfree+0x36e/0x3b0
[13950.950768]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.951053]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.951316]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.951596]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.951894]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.952130]  pci_device_remove+0x39/0xb0
[13950.952341]  __device_release_driver+0x17e/0x240
[13950.952567]  driver_detach+0xce/0x110
[13950.952739]  bus_remove_driver+0x5c/0xe0
[13950.952940]  driver_unregister+0x31/0x50
[13950.953129]  pci_unregister_driver+0x39/0x90
[13950.953366]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.953585]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.953856]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.954114]  ? __context_tracking_exit+0xe/0x90
[13950.954341]  __x64_sys_delete_module+0x12/0x20
[13950.954569]  do_syscall_64+0x32/0x80
[13950.954741]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.954974] RIP: 0033:0x7f794cf0136b
[13950.955157] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.956016] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.956392] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.956752] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.957081] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.957411] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.957751] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.958103] ---[ end trace d35dc89f290a6168 ]---
[13950.958480] ------------[ cut here ]------------
[13950.958803] WARNING: CPU: 2 PID: 625553 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x281/0x2d0 [drm]
[13950.959558] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.959870]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.965056] CPU: 2 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.965519] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.965978] RIP: 0010:drm_mode_config_cleanup+0x281/0x2d0 [drm]
[13950.966275] Code: e8 24 65 fa e0 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 21 80 ff ff eb 10 48 8b 70 48 48 c7
[13950.967188] RSP: 0018:ffffc9000391fcd8 EFLAGS: 00010283
[13950.967493] RAX: ffff888a7d4802a8 RBX: ffff888a7d4802e0 RCX: 0000000000000000
[13950.967808] RDX: ffff88810785f018 RSI: ffffc9000391fc20 RDI: ffffc9000391fca0
[13950.968261] RBP: ffffc9000391fd30 R08: 0000000000000002 R09: 0000000000000010
[13950.968709] R10: 0000000000000f93 R11: fffffffffffb68cb R12: ffff888a7d480010
[13950.969018] R13: ffff888a7d4802c0 R14: ffff888a7d496e20 R15: 0000000000000000
[13950.969479] FS:  00007f794cdd1740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13950.969930] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.970232] CR2: 00007faa8ccf6000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.970696] Call Trace:
[13950.970844]  ? kfree+0x36e/0x3b0
[13950.971041]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.971524]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.972017]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.972497]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.972984]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.973438]  pci_device_remove+0x39/0xb0
[13950.973743]  __device_release_driver+0x17e/0x240
[13950.974050]  driver_detach+0xce/0x110
[13950.974353]  bus_remove_driver+0x5c/0xe0
[13950.974665]  driver_unregister+0x31/0x50
[13950.974975]  pci_unregister_driver+0x39/0x90
[13950.975321]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.975772]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.976081]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.976530]  ? __context_tracking_exit+0xe/0x90
[13950.976837]  __x64_sys_delete_module+0x12/0x20
[13950.977140]  do_syscall_64+0x32/0x80
[13950.977448]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.977755] RIP: 0033:0x7f794cf0136b
[13950.978057] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.978968] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.979428] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.979879] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.980185] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.980647] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.980953] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.981399] ---[ end trace d35dc89f290a6169 ]---
[13950.981711] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-3 leaked!
[13950.982778] [TTM] Finalizing pool allocator
[13950.983234] [TTM] Finalizing DMA pool allocator
[13950.985280] [TTM] Zone  kernel: Used memory at exit: 0 KiB
[13950.985731] [TTM] Zone   dma32: Used memory at exit: 0 KiB
[13950.986037] [drm] amdgpu: ttm finalized
[13950.986810] ------------[ cut here ]------------
[13950.987127] WARNING: CPU: 2 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.987877] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.988188]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.993528] CPU: 2 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.993901] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.994372] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.994630] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.995495] RSP: 0018:ffffc9000391fc68 EFLAGS: 00010046
[13950.995752] RAX: 0000000000000001 RBX: ffff888a7d480010 RCX: 0000000000000000
[13950.996115] RDX: ffff888a7d4802b8 RSI: ffff88810785f478 RDI: ffff88810785f478
[13950.996465] RBP: ffffc9000391fc70 R08: ffff888a7d4802a8 R09: 0000000000000000
[13950.996803] R10: 00000000000002ec R11: ffffffff823b6860 R12: ffff88810785f000
[13950.997152] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.997491] FS:  00007f794cdd1740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13950.997893] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.998192] CR2: 00007faa8ccf6000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.998539] Call Trace:
[13950.998676]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.998945]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.999190]  ? kfree+0x36e/0x3b0
[13950.999385]  drm_mode_config_init_release+0xe/0x10 [drm]
[13950.999652]  drm_managed_release+0x9a/0x100 [drm]
[13950.999908]  devm_drm_dev_init_release+0x4a/0x70 [drm]
[13951.000137]  devm_action_release+0xf/0x20
[13951.000323]  release_nodes+0x1a2/0x1f0
[13951.000523]  devres_release_all+0x3f/0x50
[13951.000731]  __device_release_driver+0x18e/0x240
[13951.000960]  driver_detach+0xce/0x110
[13951.001156]  bus_remove_driver+0x5c/0xe0
[13951.001349]  driver_unregister+0x31/0x50
[13951.001536]  pci_unregister_driver+0x39/0x90
[13951.001802]  amdgpu_exit+0x15/0x29 [amdgpu]
[13951.002012]  __do_sys_delete_module.constprop.0+0x186/0x270
[13951.002307]  ? exit_to_user_mode_prepare+0xe5/0x110
[13951.002529]  ? __context_tracking_exit+0xe/0x90
[13951.002779]  __x64_sys_delete_module+0x12/0x20
[13951.003008]  do_syscall_64+0x32/0x80
[13951.003191]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13951.003446] RIP: 0033:0x7f794cf0136b
[13951.003637] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13951.004537] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13951.004899] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13951.005244] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13951.005610] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13951.005935] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13951.006293] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13951.006627] ---[ end trace d35dc89f290a616a ]---
[13951.006870] BUG: kernel NULL pointer dereference, address: 0000000000000000
[13951.007320] #PF: supervisor read access in kernel mode
[13951.007626] #PF: error_code(0x0000) - not-present page
[13951.007933] PGD 0 P4D 0 
[13951.008239] Oops: 0000 [#1] SMP
[13951.008687] CPU: 2 PID: 623988 Comm: kworker/2:0 Tainted: P        W  O      5.10.0.stable #12
[13951.009154] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13951.009771] Workqueue: events drm_connector_free_work_fn [drm]
[13951.010226] RIP: 0010:ida_free+0x99/0x130
[13951.010529] Code: 89 c4 a8 01 74 24 83 fb 3e 77 25 49 d1 ec 49 0f a3 dc 73 1c 49 0f b3 dc 4d 85 e4 75 7e 31 f6 48 8d 7d a8 e8 39 18 01 00 eb 63 <48> 0f a3 18 72 39 48 8b 7d a8 4c 89 ee e8 35 69 39 00 44 89 f6 48
[13951.011440] RSP: 0018:ffffc900044bfd98 EFLAGS: 00010046
[13951.011743] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffc900044bfd98
[13951.012205] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffc900044bfd98
[13951.012654] RBP: ffffc900044bfdf0 R08: 0000000000000000 R09: ffffffffa172cd63
[13951.013122] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[13951.013575] R13: 0000000000000202 R14: 0000000000000002 R15: ffff88810785f048
[13951.014044] FS:  0000000000000000(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13951.014496] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13951.014805] CR2: 0000000000000000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13951.015269] Call Trace:
[13951.015422]  drm_connector_cleanup+0x14c/0x270 [drm]
[13951.015749]  amdgpu_connector_destroy+0x43/0x60 [amdgpu]
[13951.016206]  drm_connector_free_work_fn+0x71/0x90 [drm]
[13951.016655]  process_one_work+0x1de/0x380
[13951.016961]  worker_thread+0x50/0x3e0
[13951.017269]  kthread+0x12c/0x150
[13951.017571]  ? rescuer_thread+0x3d0/0x3d0
[13951.017877]  ? kthread_create_worker_on_cpu+0x70/0x70
[13951.018178]  ret_from_fork+0x1f/0x30
[13951.018483] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13951.018790]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13951.023972] CR2: 0000000000000000
[13951.024137] ---[ end trace d35dc89f290a616b ]---
[13951.034261] RIP: 0010:ida_free+0x99/0x130
[13951.034462] Code: 89 c4 a8 01 74 24 83 fb 3e 77 25 49 d1 ec 49 0f a3 dc 73 1c 49 0f b3 dc 4d 85 e4 75 7e 31 f6 48 8d 7d a8 e8 39 18 01 00 eb 63 <48> 0f a3 18 72 39 48 8b 7d a8 4c 89 ee e8 35 69 39 00 44 89 f6 48
[13951.035311] RSP: 0018:ffffc900044bfd98 EFLAGS: 00010046
[13951.035560] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffc900044bfd98
[13951.035897] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffc900044bfd98
[13951.036257] RBP: ffffc900044bfdf0 R08: 0000000000000000 R09: ffffffffa172cd63
[13951.036613] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[13951.036934] R13: 0000000000000202 R14: 0000000000000002 R15: ffff88810785f048
[13951.037415] FS:  0000000000000000(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13951.037798] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13951.038084] CR2: 0000000000000000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13987.174583] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 36s!
[13987.174965] Showing busy workqueues and worker pools:
[13987.175203] workqueue events: flags=0x0
[13987.175392]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[13987.175711]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[13987.176064]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[13987.176613] workqueue mm_percpu_wq: flags=0x8
[13987.176830]   pwq 26: cpus=13 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[13987.177181]     pending: vmstat_update
[13987.177369]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[13987.177665]     pending: vmstat_update
[13987.178030] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=36s workers=3 idle: 624729 624151
[14017.380861] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 66s!
[14017.381244] Showing busy workqueues and worker pools:
[14017.381481] workqueue events: flags=0x0
[14017.381685]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14017.381987]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14017.382336]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14017.382879] workqueue mm_percpu_wq: flags=0x8
[14017.383081]   pwq 26: cpus=13 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14017.383401]     pending: vmstat_update
[14017.383582]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14017.383893]     pending: vmstat_update
[14017.384247] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=66s workers=3 idle: 624729 624151
[14047.587254] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 96s!
[14047.587639] Showing busy workqueues and worker pools:
[14047.587875] workqueue events: flags=0x0
[14047.588057]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14047.588376]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14047.588726]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14047.589342] workqueue mm_percpu_wq: flags=0x8
[14047.589558]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14047.589981]     pending: vmstat_update
[14047.590357] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=96s workers=3 idle: 624729 624151
[14077.793420] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 126s!
[14077.793812] Showing busy workqueues and worker pools:
[14077.794063] workqueue events: flags=0x0
[14077.794243]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14077.794547]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14077.794927]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14077.795563] workqueue mm_percpu_wq: flags=0x8
[14077.795767]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14077.796092]     pending: vmstat_update
[14077.796386] workqueue kcryptd/254:0: flags=0x2a
[14077.796656] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=126s workers=3 idle: 624729 624151
[14107.999701] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 157s!
[14108.000094] Showing busy workqueues and worker pools:
[14108.000329] workqueue events: flags=0x0
[14108.000509]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14108.000809]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14108.001183]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14108.001731] workqueue mm_percpu_wq: flags

[-- Attachment #6: amdgpu_unbind --]
[-- Type: application/x-shellscript, Size: 483 bytes --]

[-- Attachment #7: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Couple of issues with amdgpu on my WX4100
@ 2021-01-02 22:42 ` Maxim Levitsky
  0 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-02 22:42 UTC (permalink / raw)
  To: amd-gfx; +Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson

[-- Attachment #1: Type: text/plain, Size: 4923 bytes --]

Hi!

I am using this card for about a year and I would like first to say thanks
for open source driver that you made for it, for the big navi
and for the threadripper which brought back fun to the computing.

I bought that card primary to use as a host GPU in VFIO enabled multi-seat
system I am building, and recently I was able (with a minor issue I managed to 
solve, more about it later) to pass that GPU to both linux and windows guest 
mostly flawlessly.
 
I do have experience in kernel development, and debugging so I am willing
to test patches, etc. Any help is welcome!
 
So these are the issues:
 
1.(the biggest issue): The amdgpu driver often crashes when plugging an input.

I tested this now on purpose with 'amdgpu.dc=1' by slowly plugging and unplugging 
an input connector while I wait for the output to stabilize between each cycle, 
and still the issue reproduced after a dozen (or so) tries.
(It only happens when I plug the connector, and never happens when I unplug it)

Then I unloaded the amdgpu driver and loaded it again with dc=0.
This does sort of work but takes a lot of time. The dmesg output is attached 
(amdgpu_dc1_plug_bug.txt)
 
I did try to increase the number of tries in dm_helpers_read_local_edid, to 
something silly like 1000, but no luck.
 
I also tried to remove the code below the
'Abort detection for non-DP connectors if we have no EDID'
Also no luck.


This bug pretty much makes it impossible to use the card daily as is
since I do connect/disconnect monitors often, especially due to VFIO usage.
 
2. I found out that running without the new DC framework (amdgpu.dc=0) solves
issue 1 completely (but costs HDMI sound - HDMI sound only works with amdgpu.dc=1)

I am using this card like that for about at least half an year and haven't had 
a single connector plug/unplug related crash.

Issue 2 however is that in this mode (I haven't tried to reproduce this
with amdgpu.dc=1 yet), sometimes when I unbind the amdgpu driver 
the amdgpu complains about a leaked connector and crashes a bit later on. 
I haven't yet tracked the combination of things needed
to trigger this, but it did happen to me about 3 times already.
 
I did put a WARN_ON(1) to __drm_connector_put_safe, to see who
is the caller that triggers the delayed work that frees the connector when it is
too late.

I attached a backtrace with the above WARN_ON and the crash (connector_leak_bug.txt)
I also attached the script 'amdgpu_unbind' for the reference that I use to unbind
the amdgpu driver.
 
3. When doing VFIO passthrough of this card, I found out that it doesn't
suffer that much from the reset bug. As long as I shut down the guest
in clean manner, I can start it again). The vendor_reset module however
makes the reset work even when I shut down the guest right in the middle
of a 3D app running and I tested it many times.
 
_However_ this only works if I never load the amdgpu linux driver. 
Otherwise a windows guest still boots but all 3D apps in it crash very early.

I tried both the stock drivers that windows auto installs and latest AMD 
workstation drivers from AMD site.

Linux guests do work.
 
I found out that amdgpu driver resizes the device bars (I have TRX40 platform,
so I don't know if this platform supports the AMD Smart Memory or not,
but according to lspci the device does support resizable BARs).

If I patch the amdgpu's bar resize out, then, the windows guest _does_ work
regardless if I loaded amdgpu prior or not. Linux guests also still work.
I haven't measured the performance impact of this.

For debugging this, I did try to hide the PCI_EXT_CAP_ID_REBAR capability 
from the VM, but it made no difference. 

I suspect that once the GPU is resetted, the bars
revert to their original sizes, but VFIO uses the sizes that are cached
by the kernel, so that the guest thinks that the bars are of one size
while they are of an another. I don't have an idea though why this
does work with a Linux guest.

I had attached the pci config with amdgpu running, once with my patch that
stops it from resizing the bars, and once without that patch for reference.
(amdgpu_pciconfig_noresize.txt, amdgpu_pciconfig_resize.txt)


4. I found out that amdgpu runtime PM sometimes breaks the card if last
output is disconnected from it. I didn't debug it much as I just disabled
it with amdgpu.runpm=0) I will do more debug on this later.
 

Please let me know if you have any questions,
Don't hesitate to ask me for more information.

My setup:
3 outputs, all HDMI, converted with DP->HDMI adapters, of which 2 are 1080P
monitors, and 1 is a 1080P TV. The issues I describe above are reproducible
on all the outputs.


I am running 5.10.0 kernel with few patches and kvm-queue branch 
merged for my day to day work on KVM.
 
You can find the exact kernel I use and its .config on
https://gitlab.com/maximlevitsky/linux/-/commits/kernel-starship-5.10
 

Best regards,
	Maxim Levitsky


[-- Attachment #2: amdgpu_dc1_plug_bug.txt --]
[-- Type: text/plain, Size: 56626 bytes --]


[10598.978981] rfkill: input handler disabled
[10715.442823] [drm:dc_link_detect_helper [amdgpu]] *ERROR* No EDID read.
[10715.856769] ------------[ cut here ]------------
[10715.857056] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:922 dc_commit_state+0x834/0x9e0 [amdgpu]
[10715.857594] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10715.857634]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10715.862606] CPU: 43 PID: 65533 Comm: Xorg Tainted: P           O      5.10.0.stable #1
[10715.862964] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10715.863452] RIP: 0010:dc_commit_state+0x834/0x9e0 [amdgpu]
[10715.863701] Code: e8 31 b7 00 00 48 8b 75 90 48 89 f7 e8 e5 8b ba dd e9 49 fa ff ff 31 d2 e9 52 f9 ff ff 80 b8 78 03 00 00 00 0f 84 2a fe ff ff <0f> 0b e9 23 fe ff ff 4d 8b 87 78 03 00 00 41 8b b0 b0 02 00 00 85
[10715.864516] RSP: 0018:ffffc90002d17830 EFLAGS: 00010202
[10715.864752] RAX: ffff88813b40cc00 RBX: 0000000000000000 RCX: 000000000000002b
[10715.865080] RDX: 00000000000014ab RSI: 0000000000000e75 RDI: 0000243ac0ad3d5a
[10715.865406] RBP: ffffc90002d178a8 R08: ffffc90002d177ec R09: 00000000000003e8
[10715.865720] R10: 0000000000000002 R11: 7fffffffffffffff R12: ffff88838b101ec8
[10715.866048] R13: ffff88838b1001b8 R14: ffff88838b100000 R15: ffff88812fd40000
[10715.866374] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10715.866726] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10715.866997] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10715.867306] Call Trace:
[10715.867489]  amdgpu_dm_atomic_commit_tail+0x529/0x2420 [amdgpu]
[10715.867755]  ? ttm_bo_move_accel_cleanup+0x1fa/0x3e0 [ttm]
[10715.868048]  ? amdgpu_move_blit+0xce/0x210 [amdgpu]
[10715.868300]  ? amdgpu_bo_move+0xa4/0x2b0 [amdgpu]
[10715.868533]  ? ttm_bo_handle_move_mem+0xb4/0x480 [ttm]
[10715.868767]  ? ttm_bo_validate+0x137/0x150 [ttm]
[10715.869010]  ? amdgpu_bo_pin_restricted+0x286/0x2c0 [amdgpu]
[10715.869325]  ? dm_plane_helper_prepare_fb+0x198/0x250 [amdgpu]
[10715.869590]  ? _cond_resched+0x1a/0x50
[10715.869781]  ? wait_for_completion_timeout+0x3a/0xf0
[10715.870006]  ? _cond_resched+0x1a/0x50
[10715.870205]  commit_tail+0x96/0x130 [drm_kms_helper]
[10715.870435]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10715.870753]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10715.870997]  drm_atomic_commit+0x44/0x50 [drm]
[10715.871206]  drm_atomic_helper_set_config+0x7c/0xc0 [drm_kms_helper]
[10715.871509]  drm_mode_setcrtc+0x205/0x7d0 [drm]
[10715.871751]  ? amdgpu_cs_wait_ioctl+0xd8/0x170 [amdgpu]
[10715.872006]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[10715.872229]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10715.872450]  drm_ioctl+0x238/0x400 [drm]
[10715.872639]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[10715.872882]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10715.873109]  __x64_sys_ioctl+0x8e/0xc0
[10715.873281]  do_syscall_64+0x32/0x80
[10715.873451]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10715.873707] RIP: 0033:0x7f4cc4c9f3bb
[10715.873876] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10715.874693] RSP: 002b:00007ffe21215c88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10715.875025] RAX: ffffffffffffffda RBX: 00007ffe21215cc0 RCX: 00007f4cc4c9f3bb
[10715.875354] RDX: 00007ffe21215cc0 RSI: 00000000c06864a2 RDI: 000000000000000e
[10715.875687] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 0000563001ee9c50
[10715.876001] R10: 0000000000000000 R11: 0000000000000246 R12: 0000563001edafe0
[10715.876335] R13: 000000000000000e R14: 0000563001d39708 R15: 0000000000000001
[10715.876667] ---[ end trace 7d33d4a249341320 ]---
[10726.363616] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10736.603244] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10746.842492] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[10746.843059] ------------[ cut here ]------------
[10746.843395] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7272 amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10746.844110] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10746.844173]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10746.849803] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10746.850218] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10746.850810] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10746.851157] Code: a0 fd ff ff 01 c7 85 9c fd ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff <0f> 0b e9 af f9 ff ff 0f 0b 0f 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6
[10746.852076] RSP: 0018:ffffc90002d17900 EFLAGS: 00010002
[10746.852357] RAX: 0000000000000002 RBX: 0000000000000757 RCX: ffff8881094ae918
[10746.852710] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10746.853079] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10746.853436] R10: ffff8882622e0000 R11: 0000000000000000 R12: 0000000000000293
[10746.853813] R13: ffff8881094ae800 R14: ffff888330a64400 R15: ffff88829dcd1000
[10746.854194] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10746.854571] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10746.854866] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10746.855233] Call Trace:
[10746.855374]  ? irq_work_queue+0x2a/0x40
[10746.855574]  ? vprintk_emit+0x136/0x220
[10746.855791]  commit_tail+0x96/0x130 [drm_kms_helper]
[10746.856081]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10746.856502]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10746.856812]  drm_atomic_commit+0x44/0x50 [drm]
[10746.857059]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10746.857440]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10746.857727]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.858018]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10746.858268]  drm_ioctl+0x238/0x400 [drm]
[10746.858506]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.858825]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10746.859068]  __x64_sys_ioctl+0x8e/0xc0
[10746.859281]  do_syscall_64+0x32/0x80
[10746.859466]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10746.859736] RIP: 0033:0x7f4cc4c9f3bb
[10746.859950] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10746.860858] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10746.861248] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10746.861613] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10746.861960] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10746.862330] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10746.862707] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10746.863061] ---[ end trace 7d33d4a249341321 ]---
[10746.863325] ------------[ cut here ]------------
[10746.863669] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6873 amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10746.864343] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10746.864388]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10746.869968] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10746.870387] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10746.870982] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10746.871304] Code: ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff 0f 0b e9 af f9 ff ff 0f 0b <0f> 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6 8e 2d 01 00 00 48 c7 c6 e0
[10746.872210] RSP: 0018:ffffc90002d17900 EFLAGS: 00010086
[10746.872473] RAX: 0000000000000001 RBX: 0000000000000757 RCX: ffff8881094ae918
[10746.872856] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10746.873211] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10746.873555] R10: ffff8882622e0000 R11: 0000000000000000 R12: 0000000000000293
[10746.873937] R13: ffff8881094ae800 R14: ffff888330a64400 R15: ffff88829dcd1000
[10746.874293] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10746.874707] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10746.875014] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10746.875360] Call Trace:
[10746.875517]  ? irq_work_queue+0x2a/0x40
[10746.875724]  ? vprintk_emit+0x136/0x220
[10746.875933]  commit_tail+0x96/0x130 [drm_kms_helper]
[10746.876224]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10746.876632]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10746.876937]  drm_atomic_commit+0x44/0x50 [drm]
[10746.877178]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10746.877577]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10746.877842]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.878125]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10746.878371]  drm_ioctl+0x238/0x400 [drm]
[10746.878594]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10746.878939]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10746.879182]  __x64_sys_ioctl+0x8e/0xc0
[10746.879386]  do_syscall_64+0x32/0x80
[10746.879592]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10746.879853] RIP: 0033:0x7f4cc4c9f3bb
[10746.880077] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10746.880971] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10746.881363] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10746.881725] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10746.882092] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10746.882444] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10746.882810] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10746.883177] ---[ end trace 7d33d4a249341322 ]---
[10757.082126] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10767.321464] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[10777.560811] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:66:DP-1] flip_done timed out
[10787.800345] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[10798.039770] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-5] flip_done timed out
[10798.040328] ------------[ cut here ]------------
[10798.040689] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7272 amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10798.041378] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10798.041441]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10798.047068] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10798.047456] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10798.048059] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x238a/0x2420 [amdgpu]
[10798.048428] Code: a0 fd ff ff 01 c7 85 9c fd ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff <0f> 0b e9 af f9 ff ff 0f 0b 0f 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6
[10798.049320] RSP: 0018:ffffc90002d17900 EFLAGS: 00010002
[10798.049611] RAX: 0000000000000002 RBX: 0000000000001357 RCX: ffff8881094ae918
[10798.049980] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10798.050338] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10798.050705] R10: ffff888330b20000 R11: 0000000000000000 R12: 0000000000000293
[10798.051063] R13: ffff8881094ae800 R14: ffff888330a67000 R15: ffff88829dcd1000
[10798.051429] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10798.051849] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10798.052145] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10798.052512] Call Trace:
[10798.052657]  ? irq_work_queue+0x2a/0x40
[10798.052858]  ? vprintk_emit+0x136/0x220
[10798.053101]  commit_tail+0x96/0x130 [drm_kms_helper]
[10798.053350]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10798.053774]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10798.054056]  drm_atomic_commit+0x44/0x50 [drm]
[10798.054309]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10798.054668]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10798.054976]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.055250]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10798.055512]  drm_ioctl+0x238/0x400 [drm]
[10798.055732]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.055982]  ? __fget_files+0x5f/0x90
[10798.056200]  ? __fget_light+0x32/0x80
[10798.056471]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10798.056709]  __x64_sys_ioctl+0x8e/0xc0
[10798.056930]  do_syscall_64+0x32/0x80
[10798.057119]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10798.057390] RIP: 0033:0x7f4cc4c9f3bb
[10798.057601] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10798.058508] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10798.058906] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10798.059280] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10798.059643] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10798.060005] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10798.060375] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10798.060719] ---[ end trace 7d33d4a249341323 ]---
[10798.060981] ------------[ cut here ]------------
[10798.061315] WARNING: CPU: 43 PID: 65533 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6873 amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10798.061989] Modules linked in: amdgpu mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt hid_logitech_hidpp
[10798.062034]  hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[10798.067637] CPU: 43 PID: 65533 Comm: Xorg Tainted: P        W  O      5.10.0.stable #1
[10798.068057] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[10798.068672] RIP: 0010:amdgpu_dm_atomic_commit_tail+0x2393/0x2420 [amdgpu]
[10798.068999] Code: ff ff 37 00 00 00 c7 85 a4 fd ff ff 20 00 00 00 e8 22 09 13 00 e9 f4 fa ff ff 0f 0b e9 5f f9 ff ff 0f 0b e9 af f9 ff ff 0f 0b <0f> 0b e9 c6 f9 ff ff 49 8b 06 41 0f b6 8e 2d 01 00 00 48 c7 c6 e0
[10798.069931] RSP: 0018:ffffc90002d17900 EFLAGS: 00010086
[10798.070189] RAX: 0000000000000001 RBX: 0000000000001357 RCX: ffff8881094ae918
[10798.070552] RDX: 0000000000000001 RSI: 0000000000000293 RDI: ffff888259800188
[10798.070928] RBP: ffffc90002d17c00 R08: 0000000000000005 R09: ffffc90002d17854
[10798.071296] R10: ffff888330b20000 R11: 0000000000000000 R12: 0000000000000293
[10798.071662] R13: ffff8881094ae800 R14: ffff888330a67000 R15: ffff88829dcd1000
[10798.072026] FS:  00007f4cc4813ec0(0000) GS:ffff889fceac0000(0000) knlGS:0000000000000000
[10798.072443] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10798.072764] CR2: 00005630007797c8 CR3: 0000000133ca5000 CR4: 0000000000350ee0
[10798.073123] Call Trace:
[10798.073298]  ? irq_work_queue+0x2a/0x40
[10798.073507]  ? vprintk_emit+0x136/0x220
[10798.073720]  commit_tail+0x96/0x130 [drm_kms_helper]
[10798.074010]  drm_atomic_helper_commit+0x123/0x150 [drm_kms_helper]
[10798.074427]  amdgpu_dm_atomic_commit+0x11/0x20 [amdgpu]
[10798.074750]  drm_atomic_commit+0x44/0x50 [drm]
[10798.074985]  drm_atomic_helper_legacy_gamma_set+0x127/0x190 [drm_kms_helper]
[10798.075390]  drm_mode_gamma_set_ioctl+0x1b5/0x2b0 [drm]
[10798.075664]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.075958]  drm_ioctl_kernel+0xac/0xf0 [drm]
[10798.076204]  drm_ioctl+0x238/0x400 [drm]
[10798.076438]  ? drm_color_lut_check+0xb0/0xb0 [drm]
[10798.076692]  ? __fget_files+0x5f/0x90
[10798.076887]  ? __fget_light+0x32/0x80
[10798.077153]  amdgpu_drm_ioctl+0x4e/0x80 [amdgpu]
[10798.077416]  __x64_sys_ioctl+0x8e/0xc0
[10798.077629]  do_syscall_64+0x32/0x80
[10798.077810]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[10798.078096] RIP: 0033:0x7f4cc4c9f3bb
[10798.078285] Code: 0f 1e fa 48 8b 05 dd aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ad aa 0c 00 f7 d8 64 89 01 48
[10798.079190] RSP: 002b:00007ffe21216418 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[10798.079559] RAX: ffffffffffffffda RBX: 00007ffe21216450 RCX: 00007f4cc4c9f3bb
[10798.079932] RDX: 00007ffe21216450 RSI: 00000000c02064a5 RDI: 000000000000000e
[10798.080309] RBP: 00000000c02064a5 R08: 0000563001edabd0 R09: 0000563001edadd0
[10798.080654] R10: 0000563001eda9d0 R11: 0000000000000246 R12: 0000000000000000
[10798.081032] R13: 000000000000000e R14: 0000563001d0d3f0 R15: 000056300077d740
[10798.081403] ---[ end trace 7d33d4a249341324 ]---
[10808.279207] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[11021.349388] rfkill: input handler enabled
[11023.081715] traps: gsettings-helpe[66645] trap int3 ip:7f9258393937 sp:7fffe88d6710 error:0 in libglib-2.0.so.0.6400.6[7f9258356000+86000]
[11031.498746] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:52:crtc-0] flip_done timed out
[11041.738152] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:50:plane-5] flip_done timed out
[11051.977680] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:66:DP-1] flip_done timed out
[11062.728976] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:48:plane-4] flip_done timed out
[11082.734855] [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than 20secs aborting
[11082.735293] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing C242 (len 62, WS 0, PS 0) @ 0xC25E
[11082.941161] Console: switching to colour dummy device 80x25
[11082.958249] amdgpu 0000:4c:00.0: amdgpu: amdgpu: finishing device.
[11083.088132] ------------[ cut here ]------------
[11083.088368] WARNING: CPU: 34 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.088861] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.088900]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.094279] CPU: 34 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.094648] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.095119] RIP: 0010:drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.095380] Code: e8 2f 45 01 e1 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 2c 80 ff ff eb 10 48 8b 70 48 48 c7
[11083.096223] RSP: 0018:ffffc9000391bcc0 EFLAGS: 00010283
[11083.096454] RAX: ffff8882598002a8 RBX: ffff8882598002e0 RCX: 0000000000000000
[11083.096776] RDX: ffff8881d7bd6018 RSI: ffffc9000391bc08 RDI: ffffc9000391bc88
[11083.097108] RBP: ffffc9000391bd18 R08: 0000000000000022 R09: ffff8881013f67c0
[11083.097431] R10: 00000000000001e3 R11: 0000000000000000 R12: ffff888259800010
[11083.097753] R13: ffff8882598002e8 R14: ffffffffa38b1060 R15: 0000000000000000
[11083.098084] FS:  00007fa8d49d7740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[11083.098446] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.098713] CR2: 00005555fb72e108 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.099039] Call Trace:
[11083.099214]  amdgpu_dm_fini+0x77/0x180 [amdgpu]
[11083.099476]  dm_hw_fini+0x23/0x30 [amdgpu]
[11083.099705]  amdgpu_device_fini+0x1cc/0x476 [amdgpu]
[11083.099988]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[11083.100256]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[11083.100468]  pci_device_remove+0x39/0xb0
[11083.100664]  __device_release_driver+0x17e/0x240
[11083.100881]  driver_detach+0xce/0x110
[11083.101068]  bus_remove_driver+0x5c/0xe0
[11083.101248]  driver_unregister+0x31/0x50
[11083.101431]  pci_unregister_driver+0x39/0x90
[11083.101678]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.101877]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.102126]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.102361]  ? __context_tracking_exit+0xe/0x90
[11083.102565]  __x64_sys_delete_module+0x12/0x20
[11083.102780]  do_syscall_64+0x32/0x80
[11083.102950]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.103187] RIP: 0033:0x7fa8d4b0736b
[11083.103368] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.104190] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.104532] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.104859] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.105169] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.105493] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.105819] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.106130] ---[ end trace 7d33d4a249341325 ]---
[11083.106361] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-1 leaked!
[11083.106716] ------------[ cut here ]------------
[11083.106956] WARNING: CPU: 34 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:538 drm_mode_config_cleanup+0x2b2/0x2d0 [drm]
[11083.107439] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.107458]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.112827] CPU: 34 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.113196] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.113637] RIP: 0010:drm_mode_config_cleanup+0x2b2/0x2d0 [drm]
[11083.113917] Code: 70 48 48 c7 c7 be 2a 55 a0 e8 da f8 ff ff 48 8d 7d a8 e8 51 91 ff ff 48 85 c0 75 e2 48 8d 7d a8 e8 f3 90 ff ff e9 ff fd ff ff <0f> 0b e9 f1 fe ff ff 0f 0b eb 9d e8 0e a6 39 e1 66 66 2e 0f 1f 84
[11083.114705] RSP: 0018:ffffc9000391bcc0 EFLAGS: 00010216
[11083.114963] RAX: ffff88810f97be08 RBX: ffff88810362aa80 RCX: 0000000080080006
[11083.115272] RDX: 0000000080080007 RSI: 0000000080080006 RDI: ffff8882598003c0
[11083.115596] RBP: ffffc9000391bd18 R08: 0000000000000001 R09: ffffffff812e534a
[11083.115938] R10: 0000000000000001 R11: ffff888447a52210 R12: ffff888259800010
[11083.116247] R13: ffff8882598003e8 R14: ffff888259800280 R15: 0000000000000000
[11083.116572] FS:  00007fa8d49d7740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[11083.116937] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.117189] CR2: 00005555fb72e108 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.117511] Call Trace:
[11083.117680]  amdgpu_dm_fini+0x77/0x180 [amdgpu]
[11083.117930]  dm_hw_fini+0x23/0x30 [amdgpu]
[11083.118178]  amdgpu_device_fini+0x1cc/0x476 [amdgpu]
[11083.118433]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[11083.118715]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[11083.118942]  pci_device_remove+0x39/0xb0
[11083.119125]  __device_release_driver+0x17e/0x240
[11083.119348]  driver_detach+0xce/0x110
[11083.119517]  bus_remove_driver+0x5c/0xe0
[11083.119698]  driver_unregister+0x31/0x50
[11083.119911]  pci_unregister_driver+0x39/0x90
[11083.120149]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.120343]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.120604]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.120826]  ? __context_tracking_exit+0xe/0x90
[11083.121048]  __x64_sys_delete_module+0x12/0x20
[11083.121249]  do_syscall_64+0x32/0x80
[11083.121418]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.121660] RIP: 0033:0x7fa8d4b0736b
[11083.121828] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.122627] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.122987] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.123295] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.123617] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.123950] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.124273] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.124594] ---[ end trace 7d33d4a249341326 ]---
[11083.124803] [leaked fb] framebuffer[122]:
[11083.124804] [leaked fb] 	allocated by = Xorg
[11083.124805] [leaked fb] 	refcount=1
[11083.124806] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124806] [leaked fb] 	modifier=0x0
[11083.124807] [leaked fb] 	size=1920x1080
[11083.124808] [leaked fb] 	layers:
[11083.124809] [leaked fb] 		size[0]=1920x1080
[11083.124811] [leaked fb] 		pitch[0]=7680
[11083.124811] [leaked fb] 		offset[0]=0
[11083.124812] [leaked fb] 		obj[0]:
[11083.124813] [leaked fb] 			name=0
[11083.124813] [leaked fb] 			refcount=9
[11083.124814] [leaked fb] 			start=001043b4
[11083.124814] [leaked fb] 			size=8847360
[11083.124815] [leaked fb] 			imported=no
[11083.124816] [leaked fb] framebuffer[120]:
[11083.124816] [leaked fb] 	allocated by = Xorg
[11083.124817] [leaked fb] 	refcount=1
[11083.124817] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124818] [leaked fb] 	modifier=0x0
[11083.124818] [leaked fb] 	size=1920x1080
[11083.124818] [leaked fb] 	layers:
[11083.124819] [leaked fb] 		size[0]=1920x1080
[11083.124819] [leaked fb] 		pitch[0]=7680
[11083.124820] [leaked fb] 		offset[0]=0
[11083.124820] [leaked fb] 		obj[0]:
[11083.124821] [leaked fb] 			name=0
[11083.124821] [leaked fb] 			refcount=9
[11083.124822] [leaked fb] 			start=001056d8
[11083.124824] [leaked fb] 			size=8847360
[11083.124826] [leaked fb] 			imported=no
[11083.124826] [leaked fb] framebuffer[119]:
[11083.124827] [leaked fb] 	allocated by = Xorg
[11083.124827] [leaked fb] 	refcount=1
[11083.124828] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124828] [leaked fb] 	modifier=0x0
[11083.124828] [leaked fb] 	size=1920x1080
[11083.124829] [leaked fb] 	layers:
[11083.124829] [leaked fb] 		size[0]=1920x1080
[11083.124829] [leaked fb] 		pitch[0]=7680
[11083.124830] [leaked fb] 		offset[0]=0
[11083.124830] [leaked fb] 		obj[0]:
[11083.124831] [leaked fb] 			name=0
[11083.124831] [leaked fb] 			refcount=8
[11083.124831] [leaked fb] 			start=001043b4
[11083.124832] [leaked fb] 			size=8847360
[11083.124832] [leaked fb] 			imported=no
[11083.124833] [leaked fb] framebuffer[116]:
[11083.124833] [leaked fb] 	allocated by = Xorg
[11083.124833] [leaked fb] 	refcount=1
[11083.124834] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124834] [leaked fb] 	modifier=0x0
[11083.124835] [leaked fb] 	size=1920x1080
[11083.124835] [leaked fb] 	layers:
[11083.124835] [leaked fb] 		size[0]=1920x1080
[11083.124836] [leaked fb] 		pitch[0]=7680
[11083.124836] [leaked fb] 		offset[0]=0
[11083.124837] [leaked fb] 		obj[0]:
[11083.124837] [leaked fb] 			name=0
[11083.124837] [leaked fb] 			refcount=8
[11083.124838] [leaked fb] 			start=001056d8
[11083.124838] [leaked fb] 			size=8847360
[11083.124839] [leaked fb] 			imported=no
[11083.124839] [leaked fb] framebuffer[118]:
[11083.124840] [leaked fb] 	allocated by = Xorg
[11083.124840] [leaked fb] 	refcount=1
[11083.124841] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124842] [leaked fb] 	modifier=0x0
[11083.124844] [leaked fb] 	size=1920x1080
[11083.124844] [leaked fb] 	layers:
[11083.124845] [leaked fb] 		size[0]=1920x1080
[11083.124845] [leaked fb] 		pitch[0]=7680
[11083.124846] [leaked fb] 		offset[0]=0
[11083.124846] [leaked fb] 		obj[0]:
[11083.124846] [leaked fb] 			name=0
[11083.124847] [leaked fb] 			refcount=7
[11083.124847] [leaked fb] 			start=001043b4
[11083.124847] [leaked fb] 			size=8847360
[11083.124848] [leaked fb] 			imported=no
[11083.124848] [leaked fb] framebuffer[117]:
[11083.124849] [leaked fb] 	allocated by = Xorg
[11083.124849] [leaked fb] 	refcount=1
[11083.124850] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124850] [leaked fb] 	modifier=0x0
[11083.124850] [leaked fb] 	size=1920x1080
[11083.124851] [leaked fb] 	layers:
[11083.124851] [leaked fb] 		size[0]=1920x1080
[11083.124852] [leaked fb] 		pitch[0]=7680
[11083.124852] [leaked fb] 		offset[0]=0
[11083.124852] [leaked fb] 		obj[0]:
[11083.124853] [leaked fb] 			name=0
[11083.124853] [leaked fb] 			refcount=6
[11083.124853] [leaked fb] 			start=001043b4
[11083.124854] [leaked fb] 			size=8847360
[11083.124854] [leaked fb] 			imported=no
[11083.124855] [leaked fb] framebuffer[110]:
[11083.124855] [leaked fb] 	allocated by = Xorg
[11083.124856] [leaked fb] 	refcount=1
[11083.124856] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124856] [leaked fb] 	modifier=0x0
[11083.124857] [leaked fb] 	size=1920x1080
[11083.124857] [leaked fb] 	layers:
[11083.124858] [leaked fb] 		size[0]=1920x1080
[11083.124858] [leaked fb] 		pitch[0]=7680
[11083.124858] [leaked fb] 		offset[0]=0
[11083.124859] [leaked fb] 		obj[0]:
[11083.124859] [leaked fb] 			name=0
[11083.124859] [leaked fb] 			refcount=7
[11083.124860] [leaked fb] 			start=001056d8
[11083.124860] [leaked fb] 			size=8847360
[11083.124861] [leaked fb] 			imported=no
[11083.124862] [leaked fb] framebuffer[113]:
[11083.124862] [leaked fb] 	allocated by = Xorg
[11083.124865] [leaked fb] 	refcount=1
[11083.124865] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124866] [leaked fb] 	modifier=0x0
[11083.124866] [leaked fb] 	size=1920x1080
[11083.124866] [leaked fb] 	layers:
[11083.124867] [leaked fb] 		size[0]=1920x1080
[11083.124867] [leaked fb] 		pitch[0]=7680
[11083.124868] [leaked fb] 		offset[0]=0
[11083.124868] [leaked fb] 		obj[0]:
[11083.124868] [leaked fb] 			name=0
[11083.124869] [leaked fb] 			refcount=5
[11083.124869] [leaked fb] 			start=001043b4
[11083.124869] [leaked fb] 			size=8847360
[11083.124870] [leaked fb] 			imported=no
[11083.124870] [leaked fb] framebuffer[106]:
[11083.124871] [leaked fb] 	allocated by = Xorg
[11083.124871] [leaked fb] 	refcount=1
[11083.124872] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124872] [leaked fb] 	modifier=0x0
[11083.124872] [leaked fb] 	size=1920x1080
[11083.124873] [leaked fb] 	layers:
[11083.124873] [leaked fb] 		size[0]=1920x1080
[11083.124873] [leaked fb] 		pitch[0]=7680
[11083.124874] [leaked fb] 		offset[0]=0
[11083.124874] [leaked fb] 		obj[0]:
[11083.124875] [leaked fb] 			name=0
[11083.124875] [leaked fb] 			refcount=6
[11083.124875] [leaked fb] 			start=001056d8
[11083.124876] [leaked fb] 			size=8847360
[11083.124876] [leaked fb] 			imported=no
[11083.124877] [leaked fb] framebuffer[108]:
[11083.124877] [leaked fb] 	allocated by = Xorg
[11083.124877] [leaked fb] 	refcount=1
[11083.124878] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124878] [leaked fb] 	modifier=0x0
[11083.124879] [leaked fb] 	size=1920x1080
[11083.124881] [leaked fb] 	layers:
[11083.124882] [leaked fb] 		size[0]=1920x1080
[11083.124882] [leaked fb] 		pitch[0]=7680
[11083.124883] [leaked fb] 		offset[0]=0
[11083.124883] [leaked fb] 		obj[0]:
[11083.124883] [leaked fb] 			name=0
[11083.124884] [leaked fb] 			refcount=4
[11083.124884] [leaked fb] 			start=001043b4
[11083.124884] [leaked fb] 			size=8847360
[11083.124885] [leaked fb] 			imported=no
[11083.124885] [leaked fb] framebuffer[96]:
[11083.124886] [leaked fb] 	allocated by = Xorg
[11083.124886] [leaked fb] 	refcount=1
[11083.124887] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124887] [leaked fb] 	modifier=0x0
[11083.124887] [leaked fb] 	size=1920x1080
[11083.124888] [leaked fb] 	layers:
[11083.124888] [leaked fb] 		size[0]=1920x1080
[11083.124889] [leaked fb] 		pitch[0]=7680
[11083.124889] [leaked fb] 		offset[0]=0
[11083.124889] [leaked fb] 		obj[0]:
[11083.124890] [leaked fb] 			name=0
[11083.124890] [leaked fb] 			refcount=3
[11083.124890] [leaked fb] 			start=001043b4
[11083.124891] [leaked fb] 			size=8847360
[11083.124891] [leaked fb] 			imported=no
[11083.124892] [leaked fb] framebuffer[104]:
[11083.124892] [leaked fb] 	allocated by = Xorg
[11083.124892] [leaked fb] 	refcount=1
[11083.124893] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124893] [leaked fb] 	modifier=0x0
[11083.124894] [leaked fb] 	size=1920x1080
[11083.124894] [leaked fb] 	layers:
[11083.124895] [leaked fb] 		size[0]=1920x1080
[11083.124896] [leaked fb] 		pitch[0]=7680
[11083.124896] [leaked fb] 		offset[0]=0
[11083.124898] [leaked fb] 		obj[0]:
[11083.124899] [leaked fb] 			name=0
[11083.124899] [leaked fb] 			refcount=5
[11083.124899] [leaked fb] 			start=001056d8
[11083.124900] [leaked fb] 			size=8847360
[11083.124900] [leaked fb] 			imported=no
[11083.124901] [leaked fb] framebuffer[102]:
[11083.124901] [leaked fb] 	allocated by = Xorg
[11083.124901] [leaked fb] 	refcount=1
[11083.124902] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124902] [leaked fb] 	modifier=0x0
[11083.124903] [leaked fb] 	size=1920x1080
[11083.124903] [leaked fb] 	layers:
[11083.124903] [leaked fb] 		size[0]=1920x1080
[11083.124904] [leaked fb] 		pitch[0]=7680
[11083.124904] [leaked fb] 		offset[0]=0
[11083.124905] [leaked fb] 		obj[0]:
[11083.124905] [leaked fb] 			name=0
[11083.124905] [leaked fb] 			refcount=4
[11083.124906] [leaked fb] 			start=001056d8
[11083.124906] [leaked fb] 			size=8847360
[11083.124907] [leaked fb] 			imported=no
[11083.124907] [leaked fb] framebuffer[89]:
[11083.124907] [leaked fb] 	allocated by = Xorg
[11083.124908] [leaked fb] 	refcount=1
[11083.124908] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124909] [leaked fb] 	modifier=0x0
[11083.124909] [leaked fb] 	size=1920x1080
[11083.124909] [leaked fb] 	layers:
[11083.124910] [leaked fb] 		size[0]=1920x1080
[11083.124910] [leaked fb] 		pitch[0]=7680
[11083.124912] [leaked fb] 		offset[0]=0
[11083.124914] [leaked fb] 		obj[0]:
[11083.124914] [leaked fb] 			name=0
[11083.124915] [leaked fb] 			refcount=3
[11083.124915] [leaked fb] 			start=001056d8
[11083.124915] [leaked fb] 			size=8847360
[11083.124916] [leaked fb] 			imported=no
[11083.124916] [leaked fb] framebuffer[98]:
[11083.124917] [leaked fb] 	allocated by = Xorg
[11083.124917] [leaked fb] 	refcount=1
[11083.124918] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124918] [leaked fb] 	modifier=0x0
[11083.124918] [leaked fb] 	size=1920x1080
[11083.124919] [leaked fb] 	layers:
[11083.124919] [leaked fb] 		size[0]=1920x1080
[11083.124919] [leaked fb] 		pitch[0]=7680
[11083.124920] [leaked fb] 		offset[0]=0
[11083.124920] [leaked fb] 		obj[0]:
[11083.124921] [leaked fb] 			name=0
[11083.124921] [leaked fb] 			refcount=2
[11083.124921] [leaked fb] 			start=001043b4
[11083.124922] [leaked fb] 			size=8847360
[11083.124922] [leaked fb] 			imported=no
[11083.124923] [leaked fb] framebuffer[97]:
[11083.124923] [leaked fb] 	allocated by = Xorg
[11083.124923] [leaked fb] 	refcount=1
[11083.124924] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124924] [leaked fb] 	modifier=0x0
[11083.124925] [leaked fb] 	size=1920x1080
[11083.124925] [leaked fb] 	layers:
[11083.124925] [leaked fb] 		size[0]=1920x1080
[11083.124927] [leaked fb] 		pitch[0]=7680
[11083.124927] [leaked fb] 		offset[0]=0
[11083.124929] [leaked fb] 		obj[0]:
[11083.124930] [leaked fb] 			name=0
[11083.124930] [leaked fb] 			refcount=1
[11083.124930] [leaked fb] 			start=001043b4
[11083.124931] [leaked fb] 			size=8847360
[11083.124931] [leaked fb] 			imported=no
[11083.124935] [leaked fb] framebuffer[93]:
[11083.124935] [leaked fb] 	allocated by = Xorg
[11083.124936] [leaked fb] 	refcount=1
[11083.124936] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124937] [leaked fb] 	modifier=0x0
[11083.124937] [leaked fb] 	size=1920x1080
[11083.124937] [leaked fb] 	layers:
[11083.124938] [leaked fb] 		size[0]=1920x1080
[11083.124938] [leaked fb] 		pitch[0]=7680
[11083.124939] [leaked fb] 		offset[0]=0
[11083.124939] [leaked fb] 		obj[0]:
[11083.124940] [leaked fb] 			name=0
[11083.124940] [leaked fb] 			refcount=2
[11083.124940] [leaked fb] 			start=001056d8
[11083.124941] [leaked fb] 			size=8847360
[11083.124942] [leaked fb] 			imported=no
[11083.124944] [leaked fb] framebuffer[90]:
[11083.124944] [leaked fb] 	allocated by = Xorg
[11083.124944] [leaked fb] 	refcount=1
[11083.124945] [leaked fb] 	format=XR24 little-endian (0x34325258)
[11083.124945] [leaked fb] 	modifier=0x0
[11083.124946] [leaked fb] 	size=1920x1080
[11083.124946] [leaked fb] 	layers:
[11083.124946] [leaked fb] 		size[0]=1920x1080
[11083.124947] [leaked fb] 		pitch[0]=7680
[11083.124947] [leaked fb] 		offset[0]=0
[11083.124947] [leaked fb] 		obj[0]:
[11083.124948] [leaked fb] 			name=0
[11083.124948] [leaked fb] 			refcount=1
[11083.124949] [leaked fb] 			start=001056d8
[11083.124949] [leaked fb] 			size=8847360
[11083.124949] [leaked fb] 			imported=no
[11083.124952] [leaked fb] framebuffer[94]:
[11083.124952] [leaked fb] 	allocated by = Xorg
[11083.124952] [leaked fb] 	refcount=18
[11083.124953] [leaked fb] 	format=AR24 little-endian (0x34325241)
[11083.124953] [leaked fb] 	modifier=0x0
[11083.124954] [leaked fb] 	size=128x128
[11083.124954] [leaked fb] 	layers:
[11083.124955] [leaked fb] 		size[0]=128x128
[11083.124955] [leaked fb] 		pitch[0]=512
[11083.124955] [leaked fb] 		offset[0]=0
[11083.124956] [leaked fb] 		obj[0]:
[11083.124956] [leaked fb] 			name=0
[11083.124957] [leaked fb] 			refcount=1
[11083.124957] [leaked fb] 			start=00101072
[11083.124957] [leaked fb] 			size=65536
[11083.124958] [leaked fb] 			imported=no
[11083.269438] [TTM] Finalizing pool allocator
[11083.269646] [TTM] Finalizing DMA pool allocator
[11083.271281] [TTM] Zone  kernel: Used memory at exit: 0 KiB
[11083.271529] [TTM] Zone   dma32: Used memory at exit: 0 KiB
[11083.271790] [drm] amdgpu: ttm finalized
[11083.272109] ------------[ cut here ]------------
[11083.272341] WARNING: CPU: 2 PID: 66726 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.272820] Modules linked in: amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd hfsplus cdrom ntfs msdos xfs vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm kvm_amd snd_hda_codec_hdmi mac80211 kvm libarc4 uvcvideo snd_hda_intel snd_usb_audio videobuf2_vmalloc snd_intel_dspcfg videobuf2_memops snd_usbmidi_lib snd_hda_codec irqbypass videobuf2_v4l2 snd_hwdep videobuf2_common snd_hda_core btusb iwlwifi videodev snd_seq xpad btrtl snd_rawmidi rapl btbcm btintel snd_seq_device input_leds nvidia(PO) joydev ff_memless mc bluetooth pcspkr snd_pcm cfg80211 snd_timer ecdh_generic ecc snd rfkill i2c_nvidia_gpu bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt
[11083.272847]  hid_logitech_hidpp hid_logitech_dj wacom sd_mod hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci libahci crc32_pclmul crc32c_intel libata igb i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[11083.278195] CPU: 2 PID: 66726 Comm: modprobe Tainted: P        W  O      5.10.0.stable #1
[11083.278559] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[11083.279021] RIP: 0010:drm_mode_config_cleanup+0x276/0x2d0 [drm]
[11083.279282] Code: e8 2f 45 01 e1 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 2c 80 ff ff eb 10 48 8b 70 48 48 c7
[11083.280118] RSP: 0018:ffffc9000391bcb8 EFLAGS: 00010283
[11083.280365] RAX: ffff8882598002a8 RBX: ffff8882f9fdd640 RCX: 0000000000000000
[11083.280672] RDX: ffff8881d7bd6018 RSI: 0000000000000044 RDI: ffff889fce8a9980
[11083.281005] RBP: ffffc9000391bd10 R08: ffff889fce8a9980 R09: 0000000000000000
[11083.281313] R10: 0000000000000000 R11: ffff88810140024a R12: ffff888259800010
[11083.281634] R13: ffff8882598002e8 R14: dead000000000122 R15: dead000000000100
[11083.281969] FS:  00007fa8d49d7740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[11083.282316] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[11083.282584] CR2: 0000564739132200 CR3: 00000002f9bda000 CR4: 0000000000350ee0
[11083.282913] Call Trace:
[11083.283038]  ? kfree+0x36e/0x3b0
[11083.283197]  drm_mode_config_init_release+0xe/0x10 [drm]
[11083.283453]  drm_managed_release+0x9a/0x100 [drm]
[11083.283670]  devm_drm_dev_init_release+0x4a/0x70 [drm]
[11083.283913]  devm_action_release+0xf/0x20
[11083.284112]  release_nodes+0x1a2/0x1f0
[11083.284285]  devres_release_all+0x3f/0x50
[11083.284470]  __device_release_driver+0x18e/0x240
[11083.284696]  driver_detach+0xce/0x110
[11083.284874]  bus_remove_driver+0x5c/0xe0
[11083.285056]  driver_unregister+0x31/0x50
[11083.285253]  pci_unregister_driver+0x39/0x90
[11083.285487]  amdgpu_exit+0x15/0x29 [amdgpu]
[11083.285694]  __do_sys_delete_module.constprop.0+0x186/0x270
[11083.285963]  ? exit_to_user_mode_prepare+0xe5/0x110
[11083.286184]  ? __context_tracking_exit+0xe/0x90
[11083.286408]  __x64_sys_delete_module+0x12/0x20
[11083.286610]  do_syscall_64+0x32/0x80
[11083.286795]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[11083.287028] RIP: 0033:0x7fa8d4b0736b
[11083.287195] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[11083.288025] RSP: 002b:00007ffee4b0e3d8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[11083.288366] RAX: ffffffffffffffda RBX: 00005647fd95bf80 RCX: 00007fa8d4b0736b
[11083.288674] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 00005647fd95bfe8
[11083.289024] RBP: 00005647fd95bf80 R08: 1999999999999999 R09: 0000000000000000
[11083.289350] R10: 00007fa8d4b7bac0 R11: 0000000000000206 R12: 0000000000000000
[11083.289661] R13: 00005647fd95bfe8 R14: 0000000000000000 R15: 00005647fd95c3c0
[11083.290011] ---[ end trace 7d33d4a249341327 ]---
[11083.290226] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-1 leaked!
[11094.643167] [drm] amdgpu kernel modesetting enabled.
[11094.643556] [drm] initializing kernel modesetting (POLARIS11 0x1002:0x67E3 0x103C:0x0B0D 0x00).
[11094.643957] amdgpu 0000:4c:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[11094.644354] [drm] register mmio base: 0xB9000000
[11094.644568] [drm] register mmio size: 262144
[11094.644792] [drm] add ip block number 0 <vi_common>
[11094.645015] [drm] add ip block number 1 <gmc_v8_0>
[11094.645237] [drm] add ip block number 2 <tonga_ih>
[11094.645475] [drm] add ip block number 3 <gfx_v8_0>
[11094.645697] [drm] add ip block number 4 <sdma_v3_0>
[11094.645936] [drm] add ip block number 5 <powerplay>
[11094.646164] [drm] add ip block number 6 <dce_v11_0>
[11094.646404] [drm] add ip block number 7 <uvd_v6_0>
[11094.646626] [drm] add ip block number 8 <vce_v3_0>
[11094.646858] amdgpu 0000:4c:00.0: amdgpu: Fetched VBIOS from VFCT
[11094.647144] amdgpu: ATOM BIOS: 113-D0150101-100
[11094.647378] [drm] UVD is enabled in VM mode
[11094.647589] [drm] UVD ENC is enabled in VM mode
[11094.647800] [drm] VCE enabled in VM mode
[11094.647994] amdgpu 0000:4c:00.0: amdgpu: PCI CONFIG reset
[11094.648261] amdgpu 0000:4c:00.0: amdgpu: GPU pci config reset
[11094.648633] [drm] GPU posting now...
[11095.105348] [drm] vm size is 512 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
[11095.105760] amdgpu 0000:4c:00.0: amdgpu: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
[11095.106182] amdgpu 0000:4c:00.0: amdgpu: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[11095.106571] [drm] Detected VRAM RAM=4096M, BAR=4096M
[11095.106816] [drm] RAM width 128bits GDDR5
[11095.107086] [TTM] Zone  kernel: Available graphics memory: 65888882 KiB
[11095.107390] [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[11095.107694] [TTM] Initializing pool allocator
[11095.107906] [TTM] Initializing DMA pool allocator
[11095.108182] [drm] amdgpu: 4096M of VRAM memory ready
[11095.108425] [drm] amdgpu: 4096M of GTT memory ready.
[11095.108681] [drm] GART: num cpu pages 65536, num gpu pages 65536
[11095.111348] [drm] PCIE GART of 256M enabled (table at 0x000000F400000000).
[11095.111910] [drm] Chained IB support enabled!
[11095.112893] amdgpu: hwmgr_sw_init smu backed is polaris10_smu
[11095.113198] [drm] AMDGPU Display Connectors
[11095.113393] [drm] Connector 0:
[11095.113541] [drm]   DP-1
[11095.113685] [drm]   HPD5
[11095.113813] [drm]   DDC: 0x4868 0x4868 0x4869 0x4869 0x486a 0x486a 0x486b 0x486b
[11095.114158] [drm]   Encoders:
[11095.114304] [drm]     DFP1: INTERNAL_UNIPHY1
[11095.114501] [drm] Connector 1:
[11095.114646] [drm]   DP-2
[11095.114786] [drm]   HPD4
[11095.114913] [drm]   DDC: 0x486c 0x486c 0x486d 0x486d 0x486e 0x486e 0x486f 0x486f
[11095.115246] [drm]   Encoders:
[11095.115392] [drm]     DFP2: INTERNAL_UNIPHY1
[11095.115589] [drm] Connector 2:
[11095.115734] [drm]   DP-3
[11095.115875] [drm]   HPD3
[11095.116001] [drm]   DDC: 0x4870 0x4870 0x4871 0x4871 0x4872 0x4872 0x4873 0x4873
[11095.116332] [drm]   Encoders:
[11095.116492] [drm]     DFP3: INTERNAL_UNIPHY
[11095.116685] [drm] Connector 3:
[11095.116830] [drm]   DP-4
[11095.116971] [drm]   HPD2
[11095.117097] [drm]   DDC: 0x4874 0x4874 0x4875 0x4875 0x4876 0x4876 0x4877 0x4877
[11095.117429] [drm]   Encoders:
[11095.117587] [drm]     DFP4: INTERNAL_UNIPHY
[11095.117829] [drm] Found UVD firmware Version: 1.130 Family ID: 16
[11095.120265] [drm] Found VCE firmware Version: 53.26 Binary ID: 3
[11095.161886] [drm] UVD and UVD ENC initialized successfully.
[11095.262804] [drm] VCE initialized successfully.
[11095.263007] amdgpu 0000:4c:00.0: amdgpu: SE 2, SH per SE 1, CU per SH 8, active_cu_number 16
[11095.386657] [drm] fb mappable at 0x26700530000
[11095.386887] [drm] vram apper at 0x26700000000
[11095.387137] [drm] size 8294400
[11095.387301] [drm] fb depth is 24
[11095.387478] [drm]    pitch is 7680
[11095.387715] fbcon: amdgpudrmfb (fb0) is primary device
[11095.529825] Console: switching to colour frame buffer device 240x67
[11095.658835] amdgpu 0000:4c:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[11095.669377] [drm] Initialized amdgpu 3.40.0 20150101 for 0000:4c:00.0 on minor 0
[11097.392574] traps: gsettings-helpe[67134] trap int3 ip:7f1764334937 sp:7ffc84094040 error:0 in libglib-2.0.so.0.6400.6[7f17642f7000+86000]
[11098.735668] rfkill: input handler disabled

[-- Attachment #3: amdgpu_pciconfig_noresize.txt --]
[-- Type: text/plain, Size: 18104 bytes --]

4c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon Pro WX 4100] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 0b0d
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 274
	Region 0: Memory at 3cba0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at 3cbb0000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 5000 [size=256]
	Region 5: Memory at b9000000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at b9040000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
		LnkCap:	Port #1, Speed 8GT/s, Width x8, ASPM L1, Exit Latency L1 <1us
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x8 (ok)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR+
			 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt+, EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
			 AtomicOpsCtl: ReqEn+
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
			 EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest+
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Resizable BAR <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable+, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Capabilities: [320 v1] Latency Tolerance Reporting
		Max snoop latency: 1048576ns
		Max no snoop latency: 1048576ns
	Capabilities: [328 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 1
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [370 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=170us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=32768ns
		L1SubCtl2: T_PwrOn=170us
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
00: 02 10 e3 67 07 04 10 00 00 00 00 03 10 00 80 00
10: 0c 00 00 a0 cb 03 00 00 0c 00 00 b0 cb 03 00 00
20: 01 50 00 00 00 00 00 b9 00 00 00 00 3c 10 0d 0b
30: 00 00 04 b9 48 00 00 00 00 00 00 00 ff 01 00 00
40: 00 00 00 00 00 00 00 00 09 50 08 00 3c 10 0d 0b
50: 01 58 03 f6 08 00 00 00 10 a0 12 00 a1 8f 00 00
60: 3f 29 09 00 83 08 40 01 40 00 81 10 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 80 09 70 00
80: 40 00 00 00 0e 00 00 00 03 00 3f 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 05 00 81 00 00 00 e0 fe 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
100: 0b 00 01 15 01 00 01 01 00 00 00 00 00 00 00 00
110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 01 00 02 20 00 00 00 00 00 00 00 00 30 20 46 00
160: 00 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 15 00 01 27 00 f0 01 00 20 08 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 19 00 01 2b 00 00 00 00 00 00 00 00 00 34 00 34
280: 00 34 00 34 00 34 00 34 00 34 00 34 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 0f 00 01 2c 20 00 00 80 00 00 00 00 00 00 00 00
2c0: 13 00 01 2d 00 00 00 01 20 00 00 00 00 00 00 00
2d0: 1b 00 01 32 06 10 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 18 00 81 32 01 10 01 10 0e 00 01 37 00 01 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 1e 00 01 00 1f 00 89 00 00 00 01 60 89 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


[-- Attachment #4: amdgpu_pciconfig_resize.txt --]
[-- Type: text/plain, Size: 18102 bytes --]

4c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon Pro WX 4100] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 0b0d
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 274
	Region 0: Memory at 26700000000 (64-bit, prefetchable) [size=4G]
	Region 2: Memory at 26680000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 5000 [size=256]
	Region 5: Memory at b9000000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at b9040000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
		LnkCap:	Port #1, Speed 8GT/s, Width x8, ASPM L1, Exit Latency L1 <1us
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x8 (ok)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR+
			 10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt+, EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit+ 64bit+ 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
			 AtomicOpsCtl: ReqEn+
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
			 EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest+
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Resizable BAR <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable+, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Capabilities: [320 v1] Latency Tolerance Reporting
		Max snoop latency: 1048576ns
		Max no snoop latency: 1048576ns
	Capabilities: [328 v1] Alternative Routing-ID Interpretation (ARI)
		ARICap:	MFVC- ACS-, Next Function: 1
		ARICtl:	MFVC- ACS-, Function Group: 0
	Capabilities: [370 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=170us
		L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
			   T_CommonMode=0us LTR1.2_Threshold=32768ns
		L1SubCtl2: T_PwrOn=170us
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
00: 02 10 e3 67 07 04 10 00 00 00 00 03 10 00 80 00
10: 0c 00 00 00 67 02 00 00 0c 00 00 80 66 02 00 00
20: 01 50 00 00 00 00 00 b9 00 00 00 00 3c 10 0d 0b
30: 00 00 04 b9 48 00 00 00 00 00 00 00 ff 01 00 00
40: 00 00 00 00 00 00 00 00 09 50 08 00 3c 10 0d 0b
50: 01 58 03 f6 08 00 00 00 10 a0 12 00 a1 8f 00 00
60: 3f 29 09 00 83 08 40 01 40 00 81 10 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 80 09 70 00
80: 40 00 00 00 0e 00 00 00 03 00 3f 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 05 00 81 00 00 00 e0 fe 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
100: 0b 00 01 15 01 00 01 01 00 00 00 00 00 00 00 00
110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 01 00 02 20 00 00 00 00 00 00 00 00 30 20 46 00
160: 00 00 00 00 00 00 00 00 a0 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 15 00 01 27 00 f0 01 00 20 0c 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 19 00 01 2b 00 00 00 00 00 00 00 00 00 34 00 34
280: 00 34 00 34 00 34 00 34 00 34 00 34 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 0f 00 01 2c 20 00 00 80 00 00 00 00 00 00 00 00
2c0: 13 00 01 2d 00 00 00 01 20 00 00 00 00 00 00 00
2d0: 1b 00 01 32 06 10 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 18 00 81 32 01 10 01 10 0e 00 01 37 00 01 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 1e 00 01 00 1f 00 89 00 00 00 01 60 89 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


[-- Attachment #5: connector_leak_bug.txt --]
[-- Type: text/plain, Size: 31294 bytes --]

unloading AMDGPU...
[13950.607776] Console: switching to colour dummy device 80x25
[13950.625321] amdgpu 0000:4c:00.0: amdgpu: amdgpu: finishing device.
[13950.893672] ------------[ cut here ]------------
[13950.893896] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.894366] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.894401]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.899562] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.899923] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.900371] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.900647] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.901460] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010046
[13950.901697] RAX: 0000000000000001 RBX: ffff888a7d480010 RCX: 0000000000000000
[13950.902023] RDX: ffff888a7d4802b8 RSI: ffff88822b4c2478 RDI: ffff88822b4c2478
[13950.902330] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: ffffffffa178c3d4
[13950.902657] R10: 0000000000000000 R11: ffff88826b8241c8 R12: ffff88822b4c2000
[13950.902986] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.903294] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.903657] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.903913] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.904239] Call Trace:
[13950.904379]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.904650]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.904886]  ? kfree+0x36e/0x3b0
[13950.905110]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.905409]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.905699]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.906000]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.906291]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.906527]  pci_device_remove+0x39/0xb0
[13950.906712]  __device_release_driver+0x17e/0x240
[13950.906920]  driver_detach+0xce/0x110
[13950.907114]  bus_remove_driver+0x5c/0xe0
[13950.907300]  driver_unregister+0x31/0x50
[13950.907481]  pci_unregister_driver+0x39/0x90
[13950.907773]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.907970]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.908240]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.908461]  ? __context_tracking_exit+0xe/0x90
[13950.908669]  __x64_sys_delete_module+0x12/0x20
[13950.908890]  do_syscall_64+0x32/0x80
[13950.909061]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.909323] RIP: 0033:0x7f794cf0136b
[13950.909493] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.910299] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.910626] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.910959] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.911265] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.911592] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.911923] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.912233] ---[ end trace d35dc89f290a6166 ]---
[13950.912615] ------------[ cut here ]------------
[13950.912964] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.913592] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.913757]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.919419] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.920035] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.920505] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.920962] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.922021] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010086
[13950.922326] RAX: ffff88822b4c2400 RBX: ffff888a7d480010 RCX: ffff88822b4c2478
[13950.922794] RDX: ffff888a7d4802b8 RSI: ffff88810785a478 RDI: ffff88810785a478
[13950.923244] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: 0000000000b71b00
[13950.923708] R10: 0000000000000001 R11: 0000000002e51e80 R12: ffff88810785a000
[13950.924160] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.924625] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.925244] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.925552] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.926007] Call Trace:
[13950.926179]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.926637]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.926937]  ? kfree+0x36e/0x3b0
[13950.927279]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.927762]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.928255]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.928738]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.929217]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.929664]  pci_device_remove+0x39/0xb0
[13950.929971]  __device_release_driver+0x17e/0x240
[13950.930420]  driver_detach+0xce/0x110
[13950.930728]  bus_remove_driver+0x5c/0xe0
[13950.931038]  driver_unregister+0x31/0x50
[13950.931345]  pci_unregister_driver+0x39/0x90
[13950.931689]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.932137]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.932587]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.932894]  ? __context_tracking_exit+0xe/0x90
[13950.933198]  __x64_sys_delete_module+0x12/0x20
[13950.933501]  do_syscall_64+0x32/0x80
[13950.933806]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.934111] RIP: 0033:0x7f794cf0136b
[13950.934412] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.935320] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.935779] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.936230] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.936696] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.937148] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.937612] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.938064] ---[ end trace d35dc89f290a6167 ]---
[13950.938376] ------------[ cut here ]------------
[13950.938675] WARNING: CPU: 34 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.939274] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.939583]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.944942] CPU: 34 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.945341] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.945800] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.946091] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.946940] RSP: 0018:ffffc9000391fc88 EFLAGS: 00010086
[13950.947189] RAX: ffff88810785a400 RBX: ffff888a7d480010 RCX: ffff88810785a478
[13950.947522] RDX: ffff888a7d4802b8 RSI: ffff88810785c478 RDI: ffff88810785c478
[13950.947860] RBP: ffffc9000391fc90 R08: ffff888a7d4802a8 R09: 0000000000b71b00
[13950.948206] R10: 0000000000000001 R11: 0000000002e51e80 R12: ffff88810785c000
[13950.948542] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.948901] FS:  00007f794cdd1740(0000) GS:ffff889fce880000(0000) knlGS:0000000000000000
[13950.949301] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.949579] CR2: 00007f7fb11916a8 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.949909] Call Trace:
[13950.950039]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.950305]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.950574]  ? kfree+0x36e/0x3b0
[13950.950768]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.951053]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.951316]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.951596]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.951894]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.952130]  pci_device_remove+0x39/0xb0
[13950.952341]  __device_release_driver+0x17e/0x240
[13950.952567]  driver_detach+0xce/0x110
[13950.952739]  bus_remove_driver+0x5c/0xe0
[13950.952940]  driver_unregister+0x31/0x50
[13950.953129]  pci_unregister_driver+0x39/0x90
[13950.953366]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.953585]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.953856]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.954114]  ? __context_tracking_exit+0xe/0x90
[13950.954341]  __x64_sys_delete_module+0x12/0x20
[13950.954569]  do_syscall_64+0x32/0x80
[13950.954741]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.954974] RIP: 0033:0x7f794cf0136b
[13950.955157] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.956016] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.956392] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.956752] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.957081] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.957411] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.957751] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.958103] ---[ end trace d35dc89f290a6168 ]---
[13950.958480] ------------[ cut here ]------------
[13950.958803] WARNING: CPU: 2 PID: 625553 at drivers/gpu/drm/drm_mode_config.c:504 drm_mode_config_cleanup+0x281/0x2d0 [drm]
[13950.959558] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.959870]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.965056] CPU: 2 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.965519] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.965978] RIP: 0010:drm_mode_config_cleanup+0x281/0x2d0 [drm]
[13950.966275] Code: e8 24 65 fa e0 49 8b 04 24 4c 39 e0 75 5f 48 8b 45 d8 65 48 2b 04 25 28 00 00 00 75 54 48 83 c4 38 5b 41 5c 41 5d 41 5e 5d c3 <0f> 0b 48 8d 75 a8 4c 89 e7 e8 21 80 ff ff eb 10 48 8b 70 48 48 c7
[13950.967188] RSP: 0018:ffffc9000391fcd8 EFLAGS: 00010283
[13950.967493] RAX: ffff888a7d4802a8 RBX: ffff888a7d4802e0 RCX: 0000000000000000
[13950.967808] RDX: ffff88810785f018 RSI: ffffc9000391fc20 RDI: ffffc9000391fca0
[13950.968261] RBP: ffffc9000391fd30 R08: 0000000000000002 R09: 0000000000000010
[13950.968709] R10: 0000000000000f93 R11: fffffffffffb68cb R12: ffff888a7d480010
[13950.969018] R13: ffff888a7d4802c0 R14: ffff888a7d496e20 R15: 0000000000000000
[13950.969479] FS:  00007f794cdd1740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13950.969930] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.970232] CR2: 00007faa8ccf6000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.970696] Call Trace:
[13950.970844]  ? kfree+0x36e/0x3b0
[13950.971041]  ? dce_v11_0_sw_fini+0xad/0xe0 [amdgpu]
[13950.971524]  dce_v11_0_sw_fini+0xce/0xe0 [amdgpu]
[13950.972017]  amdgpu_device_fini+0x2af/0x476 [amdgpu]
[13950.972497]  amdgpu_driver_unload_kms+0x43/0x70 [amdgpu]
[13950.972984]  amdgpu_pci_remove+0x3b/0x60 [amdgpu]
[13950.973438]  pci_device_remove+0x39/0xb0
[13950.973743]  __device_release_driver+0x17e/0x240
[13950.974050]  driver_detach+0xce/0x110
[13950.974353]  bus_remove_driver+0x5c/0xe0
[13950.974665]  driver_unregister+0x31/0x50
[13950.974975]  pci_unregister_driver+0x39/0x90
[13950.975321]  amdgpu_exit+0x15/0x29 [amdgpu]
[13950.975772]  __do_sys_delete_module.constprop.0+0x186/0x270
[13950.976081]  ? exit_to_user_mode_prepare+0xe5/0x110
[13950.976530]  ? __context_tracking_exit+0xe/0x90
[13950.976837]  __x64_sys_delete_module+0x12/0x20
[13950.977140]  do_syscall_64+0x32/0x80
[13950.977448]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13950.977755] RIP: 0033:0x7f794cf0136b
[13950.978057] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13950.978968] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13950.979428] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13950.979879] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13950.980185] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13950.980647] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13950.980953] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13950.981399] ---[ end trace d35dc89f290a6169 ]---
[13950.981711] [drm:drm_mode_config_cleanup [drm]] *ERROR* connector DP-3 leaked!
[13950.982778] [TTM] Finalizing pool allocator
[13950.983234] [TTM] Finalizing DMA pool allocator
[13950.985280] [TTM] Zone  kernel: Used memory at exit: 0 KiB
[13950.985731] [TTM] Zone   dma32: Used memory at exit: 0 KiB
[13950.986037] [drm] amdgpu: ttm finalized
[13950.986810] ------------[ cut here ]------------
[13950.987127] WARNING: CPU: 2 PID: 625553 at drivers/gpu/drm/drm_connector.c:682 __drm_connector_put_safe+0x3c/0x80 [drm]
[13950.987877] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13950.988188]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13950.993528] CPU: 2 PID: 625553 Comm: modprobe Tainted: P        W  O      5.10.0.stable #12
[13950.993901] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13950.994372] RIP: 0010:__drm_connector_put_safe+0x3c/0x80 [drm]
[13950.994630] Code: f0 0f c1 47 38 83 f8 01 74 0a 85 c0 7e 3c 48 8b 5d f8 c9 c3 48 81 c7 78 04 00 00 48 8d 93 a8 02 00 00 48 89 fe e8 c4 0e f6 e0 <0f> 0b 48 8b 35 ab fd e8 e1 48 8d 93 b0 02 00 00 bf 40 00 00 00 e8
[13950.995495] RSP: 0018:ffffc9000391fc68 EFLAGS: 00010046
[13950.995752] RAX: 0000000000000001 RBX: ffff888a7d480010 RCX: 0000000000000000
[13950.996115] RDX: ffff888a7d4802b8 RSI: ffff88810785f478 RDI: ffff88810785f478
[13950.996465] RBP: ffffc9000391fc70 R08: ffff888a7d4802a8 R09: 0000000000000000
[13950.996803] R10: 00000000000002ec R11: ffffffff823b6860 R12: ffff88810785f000
[13950.997152] R13: 0000000000000202 R14: ffff888a7d480290 R15: ffff888a7d480010
[13950.997491] FS:  00007f794cdd1740(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13950.997893] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13950.998192] CR2: 00007faa8ccf6000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13950.998539] Call Trace:
[13950.998676]  drm_connector_list_iter_next+0x7c/0xb0 [drm]
[13950.998945]  drm_mode_config_cleanup+0x7d/0x2d0 [drm]
[13950.999190]  ? kfree+0x36e/0x3b0
[13950.999385]  drm_mode_config_init_release+0xe/0x10 [drm]
[13950.999652]  drm_managed_release+0x9a/0x100 [drm]
[13950.999908]  devm_drm_dev_init_release+0x4a/0x70 [drm]
[13951.000137]  devm_action_release+0xf/0x20
[13951.000323]  release_nodes+0x1a2/0x1f0
[13951.000523]  devres_release_all+0x3f/0x50
[13951.000731]  __device_release_driver+0x18e/0x240
[13951.000960]  driver_detach+0xce/0x110
[13951.001156]  bus_remove_driver+0x5c/0xe0
[13951.001349]  driver_unregister+0x31/0x50
[13951.001536]  pci_unregister_driver+0x39/0x90
[13951.001802]  amdgpu_exit+0x15/0x29 [amdgpu]
[13951.002012]  __do_sys_delete_module.constprop.0+0x186/0x270
[13951.002307]  ? exit_to_user_mode_prepare+0xe5/0x110
[13951.002529]  ? __context_tracking_exit+0xe/0x90
[13951.002779]  __x64_sys_delete_module+0x12/0x20
[13951.003008]  do_syscall_64+0x32/0x80
[13951.003191]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[13951.003446] RIP: 0033:0x7f794cf0136b
[13951.003637] Code: 73 01 c3 48 8b 0d 2d 0b 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fd 0a 0c 00 f7 d8 64 89 01 48
[13951.004537] RSP: 002b:00007ffeddd46308 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[13951.004899] RAX: ffffffffffffffda RBX: 0000561abdb54f80 RCX: 00007f794cf0136b
[13951.005244] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000561abdb54fe8
[13951.005610] RBP: 0000561abdb54f80 R08: 1999999999999999 R09: 0000000000000000
[13951.005935] R10: 00007f794cf75ac0 R11: 0000000000000206 R12: 0000000000000000
[13951.006293] R13: 0000561abdb54fe8 R14: 0000000000000000 R15: 0000561abdb553c0
[13951.006627] ---[ end trace d35dc89f290a616a ]---
[13951.006870] BUG: kernel NULL pointer dereference, address: 0000000000000000
[13951.007320] #PF: supervisor read access in kernel mode
[13951.007626] #PF: error_code(0x0000) - not-present page
[13951.007933] PGD 0 P4D 0 
[13951.008239] Oops: 0000 [#1] SMP
[13951.008687] CPU: 2 PID: 623988 Comm: kworker/2:0 Tainted: P        W  O      5.10.0.stable #12
[13951.009154] Hardware name: Gigabyte Technology Co., Ltd. TRX40 DESIGNARE/TRX40 DESIGNARE, BIOS F4c 03/05/2020
[13951.009771] Workqueue: events drm_connector_free_work_fn [drm]
[13951.010226] RIP: 0010:ida_free+0x99/0x130
[13951.010529] Code: 89 c4 a8 01 74 24 83 fb 3e 77 25 49 d1 ec 49 0f a3 dc 73 1c 49 0f b3 dc 4d 85 e4 75 7e 31 f6 48 8d 7d a8 e8 39 18 01 00 eb 63 <48> 0f a3 18 72 39 48 8b 7d a8 4c 89 ee e8 35 69 39 00 44 89 f6 48
[13951.011440] RSP: 0018:ffffc900044bfd98 EFLAGS: 00010046
[13951.011743] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffc900044bfd98
[13951.012205] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffc900044bfd98
[13951.012654] RBP: ffffc900044bfdf0 R08: 0000000000000000 R09: ffffffffa172cd63
[13951.013122] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[13951.013575] R13: 0000000000000202 R14: 0000000000000002 R15: ffff88810785f048
[13951.014044] FS:  0000000000000000(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13951.014496] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13951.014805] CR2: 0000000000000000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13951.015269] Call Trace:
[13951.015422]  drm_connector_cleanup+0x14c/0x270 [drm]
[13951.015749]  amdgpu_connector_destroy+0x43/0x60 [amdgpu]
[13951.016206]  drm_connector_free_work_fn+0x71/0x90 [drm]
[13951.016655]  process_one_work+0x1de/0x380
[13951.016961]  worker_thread+0x50/0x3e0
[13951.017269]  kthread+0x12c/0x150
[13951.017571]  ? rescuer_thread+0x3d0/0x3d0
[13951.017877]  ? kthread_create_worker_on_cpu+0x70/0x70
[13951.018178]  ret_from_fork+0x1f/0x30
[13951.018483] Modules linked in: hid_logitech_hidpp hid_logitech_dj amdgpu(-) mfd_core gpu_sched ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops vfio_pci vfio_virqfd vfio_iommu_type1 vfio rfcomm xt_MASQUERADE xt_conntrack ipt_REJECT iptable_mangle iptable_nat nf_nat ebtable_filter ebtables ip6table_filter ip6_tables tun bridge ccm pmbus pmbus_core ee1004 jc42 cmac bnep sunrpc vfat fat wmi_bmof nvidia_uvm(PO) iwlmvm snd_hda_codec_hdmi mac80211 snd_hda_intel uvcvideo snd_intel_dspcfg libarc4 videobuf2_vmalloc snd_hda_codec videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_hda_core btusb snd_usbmidi_lib videobuf2_common btrtl snd_seq snd_hwdep btbcm iwlwifi btintel videodev snd_rawmidi snd_pcm kvm_amd snd_seq_device xpad nvidia(PO) joydev input_leds mc snd_timer bluetooth ff_memless kvm cfg80211 ecdh_generic irqbypass ecc snd rfkill i2c_nvidia_gpu rapl pcspkr bfq thunderbolt zenpower i2c_piix4 rtc_cmos tpm_crb tpm_tis tpm_tis_core wmi tpm button binfmt_misc dm_crypt sd_mod
[13951.018790]  hid_generic usbhid hid uas usb_storage ext4 mbcache jbd2 ahci crc32_pclmul libahci crc32c_intel igb libata i2c_algo_bit ccp xhci_pci rng_core nvme xhci_hcd nvme_core t10_pi dm_mirror dm_region_hash dm_log fuse vendor_reset(O) nbd usbmon it87 hwmon_vid i2c_dev i2c_core ipv6 autofs4 [last unloaded: mfd_core]
[13951.023972] CR2: 0000000000000000
[13951.024137] ---[ end trace d35dc89f290a616b ]---
[13951.034261] RIP: 0010:ida_free+0x99/0x130
[13951.034462] Code: 89 c4 a8 01 74 24 83 fb 3e 77 25 49 d1 ec 49 0f a3 dc 73 1c 49 0f b3 dc 4d 85 e4 75 7e 31 f6 48 8d 7d a8 e8 39 18 01 00 eb 63 <48> 0f a3 18 72 39 48 8b 7d a8 4c 89 ee e8 35 69 39 00 44 89 f6 48
[13951.035311] RSP: 0018:ffffc900044bfd98 EFLAGS: 00010046
[13951.035560] RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffc900044bfd98
[13951.035897] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffc900044bfd98
[13951.036257] RBP: ffffc900044bfdf0 R08: 0000000000000000 R09: ffffffffa172cd63
[13951.036613] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
[13951.036934] R13: 0000000000000202 R14: 0000000000000002 R15: ffff88810785f048
[13951.037415] FS:  0000000000000000(0000) GS:ffff889fce080000(0000) knlGS:0000000000000000
[13951.037798] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13951.038084] CR2: 0000000000000000 CR3: 0000000123db6000 CR4: 0000000000350ee0
[13987.174583] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 36s!
[13987.174965] Showing busy workqueues and worker pools:
[13987.175203] workqueue events: flags=0x0
[13987.175392]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[13987.175711]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[13987.176064]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[13987.176613] workqueue mm_percpu_wq: flags=0x8
[13987.176830]   pwq 26: cpus=13 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[13987.177181]     pending: vmstat_update
[13987.177369]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[13987.177665]     pending: vmstat_update
[13987.178030] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=36s workers=3 idle: 624729 624151
[14017.380861] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 66s!
[14017.381244] Showing busy workqueues and worker pools:
[14017.381481] workqueue events: flags=0x0
[14017.381685]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14017.381987]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14017.382336]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14017.382879] workqueue mm_percpu_wq: flags=0x8
[14017.383081]   pwq 26: cpus=13 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14017.383401]     pending: vmstat_update
[14017.383582]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14017.383893]     pending: vmstat_update
[14017.384247] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=66s workers=3 idle: 624729 624151
[14047.587254] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 96s!
[14047.587639] Showing busy workqueues and worker pools:
[14047.587875] workqueue events: flags=0x0
[14047.588057]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14047.588376]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14047.588726]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14047.589342] workqueue mm_percpu_wq: flags=0x8
[14047.589558]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14047.589981]     pending: vmstat_update
[14047.590357] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=96s workers=3 idle: 624729 624151
[14077.793420] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 126s!
[14077.793812] Showing busy workqueues and worker pools:
[14077.794063] workqueue events: flags=0x0
[14077.794243]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14077.794547]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14077.794927]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14077.795563] workqueue mm_percpu_wq: flags=0x8
[14077.795767]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
[14077.796092]     pending: vmstat_update
[14077.796386] workqueue kcryptd/254:0: flags=0x2a
[14077.796656] pool 4: cpus=2 node=0 flags=0x0 nice=0 hung=126s workers=3 idle: 624729 624151
[14107.999701] BUG: workqueue lockup - pool cpus=2 node=0 flags=0x0 nice=0 stuck for 157s!
[14108.000094] Showing busy workqueues and worker pools:
[14108.000329] workqueue events: flags=0x0
[14108.000509]   pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=5/256 refcnt=7
[14108.000809]     in-flight: 623988:drm_connector_free_work_fn [drm] BAR(625553)
[14108.001183]     pending: kfree_rcu_monitor, kfree_rcu_work, free_work, iwl_mvm_tcm_work [iwlmvm]
[14108.001731] workqueue mm_percpu_wq: flags

[-- Attachment #6: amdgpu_unbind --]
[-- Type: application/x-shellscript, Size: 483 bytes --]

[-- Attachment #7: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-02 22:42 ` Maxim Levitsky
@ 2021-01-04 11:34   ` Christian König
  -1 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 11:34 UTC (permalink / raw)
  To: Maxim Levitsky, amd-gfx
  Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson


[-- Attachment #1.1: Type: text/plain, Size: 6764 bytes --]

Hi Maxim,

I can't help with the display related stuff. Probably best approach to 
get this fixes would be to open up a bug tracker for this on FDO.

But I'm the one who implemented the resizeable BAR support and your 
analysis of the problem sounds about correct to me.

The reason why this works on Linux is most likely because we restore the 
BAR size on resume (and maybe during initial boot as well).

See this patch for reference:

commit d3252ace0bc652a1a244455556b6a549f969bf99
Author: Christian König <ckoenig.leichtzumerken@gmail.com>
Date:   Fri Jun 29 19:54:55 2018 -0500

     PCI: Restore resized BAR state on resume

     Resize BARs after resume to the expected size again.

     BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
     Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
     Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
     Signed-off-by: Christian König <christian.koenig@amd.com>
     Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
     CC: stable@vger.kernel.org      # v4.15+


It should be trivial to add this to the reset module as well. Most 
likely even completely vendor independent since I'm not sure what a bus 
reset will do to this configuration and restoring it all the time should 
be the most defensive approach.

Let me know if you got any more questions on this.

Regards,
Christian.

Am 02.01.21 um 23:42 schrieb Maxim Levitsky:
> Hi!
>
> I am using this card for about a year and I would like first to say thanks
> for open source driver that you made for it, for the big navi
> and for the threadripper which brought back fun to the computing.
>
> I bought that card primary to use as a host GPU in VFIO enabled multi-seat
> system I am building, and recently I was able (with a minor issue I managed to
> solve, more about it later) to pass that GPU to both linux and windows guest
> mostly flawlessly.
>   
> I do have experience in kernel development, and debugging so I am willing
> to test patches, etc. Any help is welcome!
>   
> So these are the issues:
>   
> 1.(the biggest issue): The amdgpu driver often crashes when plugging an input.
>
> I tested this now on purpose with 'amdgpu.dc=1' by slowly plugging and unplugging
> an input connector while I wait for the output to stabilize between each cycle,
> and still the issue reproduced after a dozen (or so) tries.
> (It only happens when I plug the connector, and never happens when I unplug it)
>
> Then I unloaded the amdgpu driver and loaded it again with dc=0.
> This does sort of work but takes a lot of time. The dmesg output is attached
> (amdgpu_dc1_plug_bug.txt)
>   
> I did try to increase the number of tries in dm_helpers_read_local_edid, to
> something silly like 1000, but no luck.
>   
> I also tried to remove the code below the
> 'Abort detection for non-DP connectors if we have no EDID'
> Also no luck.
>
>
> This bug pretty much makes it impossible to use the card daily as is
> since I do connect/disconnect monitors often, especially due to VFIO usage.
>   
> 2. I found out that running without the new DC framework (amdgpu.dc=0) solves
> issue 1 completely (but costs HDMI sound - HDMI sound only works with amdgpu.dc=1)
>
> I am using this card like that for about at least half an year and haven't had
> a single connector plug/unplug related crash.
>
> Issue 2 however is that in this mode (I haven't tried to reproduce this
> with amdgpu.dc=1 yet), sometimes when I unbind the amdgpu driver
> the amdgpu complains about a leaked connector and crashes a bit later on.
> I haven't yet tracked the combination of things needed
> to trigger this, but it did happen to me about 3 times already.
>   
> I did put a WARN_ON(1) to __drm_connector_put_safe, to see who
> is the caller that triggers the delayed work that frees the connector when it is
> too late.
>
> I attached a backtrace with the above WARN_ON and the crash (connector_leak_bug.txt)
> I also attached the script 'amdgpu_unbind' for the reference that I use to unbind
> the amdgpu driver.
>   
> 3. When doing VFIO passthrough of this card, I found out that it doesn't
> suffer that much from the reset bug. As long as I shut down the guest
> in clean manner, I can start it again). The vendor_reset module however
> makes the reset work even when I shut down the guest right in the middle
> of a 3D app running and I tested it many times.
>   
> _However_ this only works if I never load the amdgpu linux driver.
> Otherwise a windows guest still boots but all 3D apps in it crash very early.
>
> I tried both the stock drivers that windows auto installs and latest AMD
> workstation drivers from AMD site.
>
> Linux guests do work.
>   
> I found out that amdgpu driver resizes the device bars (I have TRX40 platform,
> so I don't know if this platform supports the AMD Smart Memory or not,
> but according to lspci the device does support resizable BARs).
>
> If I patch the amdgpu's bar resize out, then, the windows guest _does_ work
> regardless if I loaded amdgpu prior or not. Linux guests also still work.
> I haven't measured the performance impact of this.
>
> For debugging this, I did try to hide the PCI_EXT_CAP_ID_REBAR capability
> from the VM, but it made no difference.
>
> I suspect that once the GPU is resetted, the bars
> revert to their original sizes, but VFIO uses the sizes that are cached
> by the kernel, so that the guest thinks that the bars are of one size
> while they are of an another. I don't have an idea though why this
> does work with a Linux guest.
>
> I had attached the pci config with amdgpu running, once with my patch that
> stops it from resizing the bars, and once without that patch for reference.
> (amdgpu_pciconfig_noresize.txt, amdgpu_pciconfig_resize.txt)
>
>
> 4. I found out that amdgpu runtime PM sometimes breaks the card if last
> output is disconnected from it. I didn't debug it much as I just disabled
> it with amdgpu.runpm=0) I will do more debug on this later.
>   
>
> Please let me know if you have any questions,
> Don't hesitate to ask me for more information.
>
> My setup:
> 3 outputs, all HDMI, converted with DP->HDMI adapters, of which 2 are 1080P
> monitors, and 1 is a 1080P TV. The issues I describe above are reproducible
> on all the outputs.
>
>
> I am running 5.10.0 kernel with few patches and kvm-queue branch
> merged for my day to day work on KVM.
>   
> You can find the exact kernel I use and its .config on
> https://gitlab.com/maximlevitsky/linux/-/commits/kernel-starship-5.10
>   
>
> Best regards,
> 	Maxim Levitsky
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[-- Attachment #1.2: Type: text/html, Size: 8275 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 11:34   ` Christian König
  0 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 11:34 UTC (permalink / raw)
  To: Maxim Levitsky, amd-gfx
  Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson


[-- Attachment #1.1: Type: text/plain, Size: 6764 bytes --]

Hi Maxim,

I can't help with the display related stuff. Probably best approach to 
get this fixes would be to open up a bug tracker for this on FDO.

But I'm the one who implemented the resizeable BAR support and your 
analysis of the problem sounds about correct to me.

The reason why this works on Linux is most likely because we restore the 
BAR size on resume (and maybe during initial boot as well).

See this patch for reference:

commit d3252ace0bc652a1a244455556b6a549f969bf99
Author: Christian König <ckoenig.leichtzumerken@gmail.com>
Date:   Fri Jun 29 19:54:55 2018 -0500

     PCI: Restore resized BAR state on resume

     Resize BARs after resume to the expected size again.

     BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
     Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
     Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
     Signed-off-by: Christian König <christian.koenig@amd.com>
     Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
     CC: stable@vger.kernel.org      # v4.15+


It should be trivial to add this to the reset module as well. Most 
likely even completely vendor independent since I'm not sure what a bus 
reset will do to this configuration and restoring it all the time should 
be the most defensive approach.

Let me know if you got any more questions on this.

Regards,
Christian.

Am 02.01.21 um 23:42 schrieb Maxim Levitsky:
> Hi!
>
> I am using this card for about a year and I would like first to say thanks
> for open source driver that you made for it, for the big navi
> and for the threadripper which brought back fun to the computing.
>
> I bought that card primary to use as a host GPU in VFIO enabled multi-seat
> system I am building, and recently I was able (with a minor issue I managed to
> solve, more about it later) to pass that GPU to both linux and windows guest
> mostly flawlessly.
>   
> I do have experience in kernel development, and debugging so I am willing
> to test patches, etc. Any help is welcome!
>   
> So these are the issues:
>   
> 1.(the biggest issue): The amdgpu driver often crashes when plugging an input.
>
> I tested this now on purpose with 'amdgpu.dc=1' by slowly plugging and unplugging
> an input connector while I wait for the output to stabilize between each cycle,
> and still the issue reproduced after a dozen (or so) tries.
> (It only happens when I plug the connector, and never happens when I unplug it)
>
> Then I unloaded the amdgpu driver and loaded it again with dc=0.
> This does sort of work but takes a lot of time. The dmesg output is attached
> (amdgpu_dc1_plug_bug.txt)
>   
> I did try to increase the number of tries in dm_helpers_read_local_edid, to
> something silly like 1000, but no luck.
>   
> I also tried to remove the code below the
> 'Abort detection for non-DP connectors if we have no EDID'
> Also no luck.
>
>
> This bug pretty much makes it impossible to use the card daily as is
> since I do connect/disconnect monitors often, especially due to VFIO usage.
>   
> 2. I found out that running without the new DC framework (amdgpu.dc=0) solves
> issue 1 completely (but costs HDMI sound - HDMI sound only works with amdgpu.dc=1)
>
> I am using this card like that for about at least half an year and haven't had
> a single connector plug/unplug related crash.
>
> Issue 2 however is that in this mode (I haven't tried to reproduce this
> with amdgpu.dc=1 yet), sometimes when I unbind the amdgpu driver
> the amdgpu complains about a leaked connector and crashes a bit later on.
> I haven't yet tracked the combination of things needed
> to trigger this, but it did happen to me about 3 times already.
>   
> I did put a WARN_ON(1) to __drm_connector_put_safe, to see who
> is the caller that triggers the delayed work that frees the connector when it is
> too late.
>
> I attached a backtrace with the above WARN_ON and the crash (connector_leak_bug.txt)
> I also attached the script 'amdgpu_unbind' for the reference that I use to unbind
> the amdgpu driver.
>   
> 3. When doing VFIO passthrough of this card, I found out that it doesn't
> suffer that much from the reset bug. As long as I shut down the guest
> in clean manner, I can start it again). The vendor_reset module however
> makes the reset work even when I shut down the guest right in the middle
> of a 3D app running and I tested it many times.
>   
> _However_ this only works if I never load the amdgpu linux driver.
> Otherwise a windows guest still boots but all 3D apps in it crash very early.
>
> I tried both the stock drivers that windows auto installs and latest AMD
> workstation drivers from AMD site.
>
> Linux guests do work.
>   
> I found out that amdgpu driver resizes the device bars (I have TRX40 platform,
> so I don't know if this platform supports the AMD Smart Memory or not,
> but according to lspci the device does support resizable BARs).
>
> If I patch the amdgpu's bar resize out, then, the windows guest _does_ work
> regardless if I loaded amdgpu prior or not. Linux guests also still work.
> I haven't measured the performance impact of this.
>
> For debugging this, I did try to hide the PCI_EXT_CAP_ID_REBAR capability
> from the VM, but it made no difference.
>
> I suspect that once the GPU is resetted, the bars
> revert to their original sizes, but VFIO uses the sizes that are cached
> by the kernel, so that the guest thinks that the bars are of one size
> while they are of an another. I don't have an idea though why this
> does work with a Linux guest.
>
> I had attached the pci config with amdgpu running, once with my patch that
> stops it from resizing the bars, and once without that patch for reference.
> (amdgpu_pciconfig_noresize.txt, amdgpu_pciconfig_resize.txt)
>
>
> 4. I found out that amdgpu runtime PM sometimes breaks the card if last
> output is disconnected from it. I didn't debug it much as I just disabled
> it with amdgpu.runpm=0) I will do more debug on this later.
>   
>
> Please let me know if you have any questions,
> Don't hesitate to ask me for more information.
>
> My setup:
> 3 outputs, all HDMI, converted with DP->HDMI adapters, of which 2 are 1080P
> monitors, and 1 is a 1080P TV. The issues I describe above are reproducible
> on all the outputs.
>
>
> I am running 5.10.0 kernel with few patches and kvm-queue branch
> merged for my day to day work on KVM.
>   
> You can find the exact kernel I use and its .config on
> https://gitlab.com/maximlevitsky/linux/-/commits/kernel-starship-5.10
>   
>
> Best regards,
> 	Maxim Levitsky
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[-- Attachment #1.2: Type: text/html, Size: 8275 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 11:34   ` Christian König
@ 2021-01-04 16:45     ` Alex Williamson
  -1 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 16:45 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 12:34:34 +0100
Christian König <christian.koenig@amd.com> wrote:

> Hi Maxim,
> 
> I can't help with the display related stuff. Probably best approach to 
> get this fixes would be to open up a bug tracker for this on FDO.
> 
> But I'm the one who implemented the resizeable BAR support and your 
> analysis of the problem sounds about correct to me.
> 
> The reason why this works on Linux is most likely because we restore the 
> BAR size on resume (and maybe during initial boot as well).
> 
> See this patch for reference:
> 
> commit d3252ace0bc652a1a244455556b6a549f969bf99
> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> Date:   Fri Jun 29 19:54:55 2018 -0500
> 
>      PCI: Restore resized BAR state on resume
> 
>      Resize BARs after resume to the expected size again.
> 
>      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
>      Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>      Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>      Signed-off-by: Christian König <christian.koenig@amd.com>
>      Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>      CC: stable@vger.kernel.org      # v4.15+
> 
> 
> It should be trivial to add this to the reset module as well. Most 
> likely even completely vendor independent since I'm not sure what a bus 
> reset will do to this configuration and restoring it all the time should 
> be the most defensive approach.

Hmm, this should already be used by the bus/slot reset path:

pci_bus_restore_locked()/pci_slot_restore_locked()
 pci_dev_restore()
  pci_restore_state()
   pci_restore_rebar_state()

VFIO support for resizeable BARs has been on my todo list, but I don't
have access to any systems that have both a capable device and >4G
decoding enabled in the BIOS.  If we have a consistent view of the BAR
size after the BARs are expanded, I'm not sure why it doesn't just
work.  FWIW, QEMU currently hides the REBAR capability to the guest
because the kernel driver doesn't support emulation through config
space (ie. it's read-only, which the spec doesn't support).

AIUI, resource allocation can fail when enabling REBAR support, which
is a problem if the failure occurs on the host but not the guest since
we have no means via the hardware protocol to expose such a condition.
Therefore the model I was considering for vfio-pci would be to simply
pre-enable REBAR at the max size.  It might be sufficiently safe to
test BAR expansion on initialization and then allow user control, but
I'm concerned that resource availability could change while already in
use by the user.  Thanks,

Alex

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 16:45     ` Alex Williamson
  0 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 16:45 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 12:34:34 +0100
Christian König <christian.koenig@amd.com> wrote:

> Hi Maxim,
> 
> I can't help with the display related stuff. Probably best approach to 
> get this fixes would be to open up a bug tracker for this on FDO.
> 
> But I'm the one who implemented the resizeable BAR support and your 
> analysis of the problem sounds about correct to me.
> 
> The reason why this works on Linux is most likely because we restore the 
> BAR size on resume (and maybe during initial boot as well).
> 
> See this patch for reference:
> 
> commit d3252ace0bc652a1a244455556b6a549f969bf99
> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> Date:   Fri Jun 29 19:54:55 2018 -0500
> 
>      PCI: Restore resized BAR state on resume
> 
>      Resize BARs after resume to the expected size again.
> 
>      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
>      Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>      Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>      Signed-off-by: Christian König <christian.koenig@amd.com>
>      Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>      CC: stable@vger.kernel.org      # v4.15+
> 
> 
> It should be trivial to add this to the reset module as well. Most 
> likely even completely vendor independent since I'm not sure what a bus 
> reset will do to this configuration and restoring it all the time should 
> be the most defensive approach.

Hmm, this should already be used by the bus/slot reset path:

pci_bus_restore_locked()/pci_slot_restore_locked()
 pci_dev_restore()
  pci_restore_state()
   pci_restore_rebar_state()

VFIO support for resizeable BARs has been on my todo list, but I don't
have access to any systems that have both a capable device and >4G
decoding enabled in the BIOS.  If we have a consistent view of the BAR
size after the BARs are expanded, I'm not sure why it doesn't just
work.  FWIW, QEMU currently hides the REBAR capability to the guest
because the kernel driver doesn't support emulation through config
space (ie. it's read-only, which the spec doesn't support).

AIUI, resource allocation can fail when enabling REBAR support, which
is a problem if the failure occurs on the host but not the guest since
we have no means via the hardware protocol to expose such a condition.
Therefore the model I was considering for vfio-pci would be to simply
pre-enable REBAR at the max size.  It might be sufficiently safe to
test BAR expansion on initialization and then allow user control, but
I'm concerned that resource availability could change while already in
use by the user.  Thanks,

Alex

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 16:45     ` Alex Williamson
@ 2021-01-04 17:39       ` Christian König
  -1 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 17:39 UTC (permalink / raw)
  To: Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

Am 04.01.21 um 17:45 schrieb Alex Williamson:
> On Mon, 4 Jan 2021 12:34:34 +0100
> Christian König <christian.koenig@amd.com> wrote:
>
>> Hi Maxim,
>>
>> I can't help with the display related stuff. Probably best approach to
>> get this fixes would be to open up a bug tracker for this on FDO.
>>
>> But I'm the one who implemented the resizeable BAR support and your
>> analysis of the problem sounds about correct to me.
>>
>> The reason why this works on Linux is most likely because we restore the
>> BAR size on resume (and maybe during initial boot as well).
>>
>> See this patch for reference:
>>
>> commit d3252ace0bc652a1a244455556b6a549f969bf99
>> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
>> Date:   Fri Jun 29 19:54:55 2018 -0500
>>
>>       PCI: Restore resized BAR state on resume
>>
>>       Resize BARs after resume to the expected size again.
>>
>>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C942176d2e6aa4a4f3a4208d8b0d032bd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637453755549960615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3rsR%2Fx4uTpjtXFNqlJyFBteMmZMjWf3Neci7lUlkh88%3D&amp;reserved=0
>>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>>       Signed-off-by: Christian König <christian.koenig@amd.com>
>>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>       CC: stable@vger.kernel.org      # v4.15+
>>
>>
>> It should be trivial to add this to the reset module as well. Most
>> likely even completely vendor independent since I'm not sure what a bus
>> reset will do to this configuration and restoring it all the time should
>> be the most defensive approach.
> Hmm, this should already be used by the bus/slot reset path:
>
> pci_bus_restore_locked()/pci_slot_restore_locked()
>   pci_dev_restore()
>    pci_restore_state()
>     pci_restore_rebar_state()
>
> VFIO support for resizeable BARs has been on my todo list, but I don't
> have access to any systems that have both a capable device and >4G
> decoding enabled in the BIOS.  If we have a consistent view of the BAR
> size after the BARs are expanded, I'm not sure why it doesn't just
> work.  FWIW, QEMU currently hides the REBAR capability to the guest
> because the kernel driver doesn't support emulation through config
> space (ie. it's read-only, which the spec doesn't support).

In this case the guest shouldn't be able to change the config at all and 
I have no idea what's going wrong here.

> AIUI, resource allocation can fail when enabling REBAR support, which
> is a problem if the failure occurs on the host but not the guest since
> we have no means via the hardware protocol to expose such a condition.
> Therefore the model I was considering for vfio-pci would be to simply
> pre-enable REBAR at the max size.

That's a rather bad idea. See our GPUs for example return way more than 
they actually need.

E.g. a Polaris usually returns 4GiB even when only 2GiB are installed, 
because 4GiB is just the maximum amount of RAM you can put together with 
the ASIC on a board.

Some devices even return a mask of all 1 even when they need only 2MiB, 
resulting in nearly 1TiB of wasted address space with this approach.

Regards,
Christian.

>    It might be sufficiently safe to
> test BAR expansion on initialization and then allow user control, but
> I'm concerned that resource availability could change while already in
> use by the user.  Thanks,
>
> Alex
>

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 17:39       ` Christian König
  0 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 17:39 UTC (permalink / raw)
  To: Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

Am 04.01.21 um 17:45 schrieb Alex Williamson:
> On Mon, 4 Jan 2021 12:34:34 +0100
> Christian König <christian.koenig@amd.com> wrote:
>
>> Hi Maxim,
>>
>> I can't help with the display related stuff. Probably best approach to
>> get this fixes would be to open up a bug tracker for this on FDO.
>>
>> But I'm the one who implemented the resizeable BAR support and your
>> analysis of the problem sounds about correct to me.
>>
>> The reason why this works on Linux is most likely because we restore the
>> BAR size on resume (and maybe during initial boot as well).
>>
>> See this patch for reference:
>>
>> commit d3252ace0bc652a1a244455556b6a549f969bf99
>> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
>> Date:   Fri Jun 29 19:54:55 2018 -0500
>>
>>       PCI: Restore resized BAR state on resume
>>
>>       Resize BARs after resume to the expected size again.
>>
>>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C942176d2e6aa4a4f3a4208d8b0d032bd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637453755549960615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3rsR%2Fx4uTpjtXFNqlJyFBteMmZMjWf3Neci7lUlkh88%3D&amp;reserved=0
>>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>>       Signed-off-by: Christian König <christian.koenig@amd.com>
>>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>       CC: stable@vger.kernel.org      # v4.15+
>>
>>
>> It should be trivial to add this to the reset module as well. Most
>> likely even completely vendor independent since I'm not sure what a bus
>> reset will do to this configuration and restoring it all the time should
>> be the most defensive approach.
> Hmm, this should already be used by the bus/slot reset path:
>
> pci_bus_restore_locked()/pci_slot_restore_locked()
>   pci_dev_restore()
>    pci_restore_state()
>     pci_restore_rebar_state()
>
> VFIO support for resizeable BARs has been on my todo list, but I don't
> have access to any systems that have both a capable device and >4G
> decoding enabled in the BIOS.  If we have a consistent view of the BAR
> size after the BARs are expanded, I'm not sure why it doesn't just
> work.  FWIW, QEMU currently hides the REBAR capability to the guest
> because the kernel driver doesn't support emulation through config
> space (ie. it's read-only, which the spec doesn't support).

In this case the guest shouldn't be able to change the config at all and 
I have no idea what's going wrong here.

> AIUI, resource allocation can fail when enabling REBAR support, which
> is a problem if the failure occurs on the host but not the guest since
> we have no means via the hardware protocol to expose such a condition.
> Therefore the model I was considering for vfio-pci would be to simply
> pre-enable REBAR at the max size.

That's a rather bad idea. See our GPUs for example return way more than 
they actually need.

E.g. a Polaris usually returns 4GiB even when only 2GiB are installed, 
because 4GiB is just the maximum amount of RAM you can put together with 
the ASIC on a board.

Some devices even return a mask of all 1 even when they need only 2MiB, 
resulting in nearly 1TiB of wasted address space with this approach.

Regards,
Christian.

>    It might be sufficiently safe to
> test BAR expansion on initialization and then allow user control, but
> I'm concerned that resource availability could change while already in
> use by the user.  Thanks,
>
> Alex
>

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 17:39       ` Christian König
@ 2021-01-04 18:43         ` Alex Williamson
  -1 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 18:43 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 18:39:33 +0100
Christian König <christian.koenig@amd.com> wrote:

> Am 04.01.21 um 17:45 schrieb Alex Williamson:
> > On Mon, 4 Jan 2021 12:34:34 +0100
> > Christian König <christian.koenig@amd.com> wrote:
> >  
> >> Hi Maxim,
> >>
> >> I can't help with the display related stuff. Probably best approach to
> >> get this fixes would be to open up a bug tracker for this on FDO.
> >>
> >> But I'm the one who implemented the resizeable BAR support and your
> >> analysis of the problem sounds about correct to me.
> >>
> >> The reason why this works on Linux is most likely because we restore the
> >> BAR size on resume (and maybe during initial boot as well).
> >>
> >> See this patch for reference:
> >>
> >> commit d3252ace0bc652a1a244455556b6a549f969bf99
> >> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> >> Date:   Fri Jun 29 19:54:55 2018 -0500
> >>
> >>       PCI: Restore resized BAR state on resume
> >>
> >>       Resize BARs after resume to the expected size again.
> >>
> >>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C942176d2e6aa4a4f3a4208d8b0d032bd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637453755549960615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3rsR%2Fx4uTpjtXFNqlJyFBteMmZMjWf3Neci7lUlkh88%3D&amp;reserved=0
> >>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
> >>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
> >>       Signed-off-by: Christian König <christian.koenig@amd.com>
> >>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> >>       CC: stable@vger.kernel.org      # v4.15+
> >>
> >>
> >> It should be trivial to add this to the reset module as well. Most
> >> likely even completely vendor independent since I'm not sure what a bus
> >> reset will do to this configuration and restoring it all the time should
> >> be the most defensive approach.  
> > Hmm, this should already be used by the bus/slot reset path:
> >
> > pci_bus_restore_locked()/pci_slot_restore_locked()
> >   pci_dev_restore()
> >    pci_restore_state()
> >     pci_restore_rebar_state()
> >
> > VFIO support for resizeable BARs has been on my todo list, but I don't
> > have access to any systems that have both a capable device and >4G
> > decoding enabled in the BIOS.  If we have a consistent view of the BAR
> > size after the BARs are expanded, I'm not sure why it doesn't just
> > work.  FWIW, QEMU currently hides the REBAR capability to the guest
> > because the kernel driver doesn't support emulation through config
> > space (ie. it's read-only, which the spec doesn't support).  
> 
> In this case the guest shouldn't be able to change the config at all and 
> I have no idea what's going wrong here.
> 
> > AIUI, resource allocation can fail when enabling REBAR support, which
> > is a problem if the failure occurs on the host but not the guest since
> > we have no means via the hardware protocol to expose such a condition.
> > Therefore the model I was considering for vfio-pci would be to simply
> > pre-enable REBAR at the max size.  
> 
> That's a rather bad idea. See our GPUs for example return way more than 
> they actually need.
> 
> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed, 
> because 4GiB is just the maximum amount of RAM you can put together with 
> the ASIC on a board.

Would the driver fail or misbehave if the BAR is sized larger than the
amount of memory on the card or is memory size determined independently
of BAR size?
 
> Some devices even return a mask of all 1 even when they need only 2MiB, 
> resulting in nearly 1TiB of wasted address space with this approach.

Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
REBAR capability, but I guess we really can't make any assumptions
about the breadth of SKUs that ASIC might support (or sanity of the
designers).

We could probe to determine the maximum size the host can support and
potentially emulate the capability to remove sizes that we can't
allocate, but without any ability for the device to reject a size
advertised as supported via the capability protocol it makes me nervous
how we can guarantee the resources are available when the user
re-configures the device.  That might mean we'd need to reserve the
resources, up to what the host can support, regardless of what the
device can actually use.  I'm not sure how else to know how much to
reserve without device specific code in vfio-pci.  Thanks,

Alex

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 18:43         ` Alex Williamson
  0 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 18:43 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 18:39:33 +0100
Christian König <christian.koenig@amd.com> wrote:

> Am 04.01.21 um 17:45 schrieb Alex Williamson:
> > On Mon, 4 Jan 2021 12:34:34 +0100
> > Christian König <christian.koenig@amd.com> wrote:
> >  
> >> Hi Maxim,
> >>
> >> I can't help with the display related stuff. Probably best approach to
> >> get this fixes would be to open up a bug tracker for this on FDO.
> >>
> >> But I'm the one who implemented the resizeable BAR support and your
> >> analysis of the problem sounds about correct to me.
> >>
> >> The reason why this works on Linux is most likely because we restore the
> >> BAR size on resume (and maybe during initial boot as well).
> >>
> >> See this patch for reference:
> >>
> >> commit d3252ace0bc652a1a244455556b6a549f969bf99
> >> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> >> Date:   Fri Jun 29 19:54:55 2018 -0500
> >>
> >>       PCI: Restore resized BAR state on resume
> >>
> >>       Resize BARs after resume to the expected size again.
> >>
> >>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C942176d2e6aa4a4f3a4208d8b0d032bd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637453755549960615%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3rsR%2Fx4uTpjtXFNqlJyFBteMmZMjWf3Neci7lUlkh88%3D&amp;reserved=0
> >>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
> >>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
> >>       Signed-off-by: Christian König <christian.koenig@amd.com>
> >>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> >>       CC: stable@vger.kernel.org      # v4.15+
> >>
> >>
> >> It should be trivial to add this to the reset module as well. Most
> >> likely even completely vendor independent since I'm not sure what a bus
> >> reset will do to this configuration and restoring it all the time should
> >> be the most defensive approach.  
> > Hmm, this should already be used by the bus/slot reset path:
> >
> > pci_bus_restore_locked()/pci_slot_restore_locked()
> >   pci_dev_restore()
> >    pci_restore_state()
> >     pci_restore_rebar_state()
> >
> > VFIO support for resizeable BARs has been on my todo list, but I don't
> > have access to any systems that have both a capable device and >4G
> > decoding enabled in the BIOS.  If we have a consistent view of the BAR
> > size after the BARs are expanded, I'm not sure why it doesn't just
> > work.  FWIW, QEMU currently hides the REBAR capability to the guest
> > because the kernel driver doesn't support emulation through config
> > space (ie. it's read-only, which the spec doesn't support).  
> 
> In this case the guest shouldn't be able to change the config at all and 
> I have no idea what's going wrong here.
> 
> > AIUI, resource allocation can fail when enabling REBAR support, which
> > is a problem if the failure occurs on the host but not the guest since
> > we have no means via the hardware protocol to expose such a condition.
> > Therefore the model I was considering for vfio-pci would be to simply
> > pre-enable REBAR at the max size.  
> 
> That's a rather bad idea. See our GPUs for example return way more than 
> they actually need.
> 
> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed, 
> because 4GiB is just the maximum amount of RAM you can put together with 
> the ASIC on a board.

Would the driver fail or misbehave if the BAR is sized larger than the
amount of memory on the card or is memory size determined independently
of BAR size?
 
> Some devices even return a mask of all 1 even when they need only 2MiB, 
> resulting in nearly 1TiB of wasted address space with this approach.

Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
REBAR capability, but I guess we really can't make any assumptions
about the breadth of SKUs that ASIC might support (or sanity of the
designers).

We could probe to determine the maximum size the host can support and
potentially emulate the capability to remove sizes that we can't
allocate, but without any ability for the device to reject a size
advertised as supported via the capability protocol it makes me nervous
how we can guarantee the resources are available when the user
re-configures the device.  That might mean we'd need to reserve the
resources, up to what the host can support, regardless of what the
device can actually use.  I'm not sure how else to know how much to
reserve without device specific code in vfio-pci.  Thanks,

Alex

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 18:43         ` Alex Williamson
@ 2021-01-04 20:13           ` Christian König
  -1 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 20:13 UTC (permalink / raw)
  To: Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

Am 04.01.21 um 19:43 schrieb Alex Williamson:
> On Mon, 4 Jan 2021 18:39:33 +0100
> Christian König <christian.koenig@amd.com> wrote:
>
>> Am 04.01.21 um 17:45 schrieb Alex Williamson:
>>> On Mon, 4 Jan 2021 12:34:34 +0100
>>> Christian König <christian.koenig@amd.com> wrote:
>>>   
>>> [SNIP]
>> That's a rather bad idea. See our GPUs for example return way more than
>> they actually need.
>>
>> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed,
>> because 4GiB is just the maximum amount of RAM you can put together with
>> the ASIC on a board.
> Would the driver fail or misbehave if the BAR is sized larger than the
> amount of memory on the card or is memory size determined independently
> of BAR size?

Uff, good question. I have no idea.

At least the Linux driver should behave well, but no idea about the 
Windows driver stack.

>> Some devices even return a mask of all 1 even when they need only 2MiB,
>> resulting in nearly 1TiB of wasted address space with this approach.
> Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
> REBAR capability, but I guess we really can't make any assumptions
> about the breadth of SKUs that ASIC might support (or sanity of the
> designers).

It's a standard feature for FPGAs these days since how much BAR you need 
depends on what you load on it, and that in turn usually only happens 
after the OS is already started and you fire up your development 
environment.

> We could probe to determine the maximum size the host can support and
> potentially emulate the capability to remove sizes that we can't
> allocate, but without any ability for the device to reject a size
> advertised as supported via the capability protocol it makes me nervous
> how we can guarantee the resources are available when the user
> re-configures the device.  That might mean we'd need to reserve the
> resources, up to what the host can support, regardless of what the
> device can actually use.  I'm not sure how else to know how much to
> reserve without device specific code in vfio-pci.  Thanks,

Well in the FPGA case I outlined above you don't really know how much 
BAR you need until the setup is completed.

E.g. you could need one BAR with just 2MiB and another with 128GB, or 
two with 64GB or.... That's the reason why somebody came up with the 
REBAR standard in the first place.

I think I can summarize that static resizing might work for some devices 
like our GPUs, but it doesn't solve the problem in general.

Regards,
Christian.

>
> Alex
>

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 20:13           ` Christian König
  0 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-04 20:13 UTC (permalink / raw)
  To: Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

Am 04.01.21 um 19:43 schrieb Alex Williamson:
> On Mon, 4 Jan 2021 18:39:33 +0100
> Christian König <christian.koenig@amd.com> wrote:
>
>> Am 04.01.21 um 17:45 schrieb Alex Williamson:
>>> On Mon, 4 Jan 2021 12:34:34 +0100
>>> Christian König <christian.koenig@amd.com> wrote:
>>>   
>>> [SNIP]
>> That's a rather bad idea. See our GPUs for example return way more than
>> they actually need.
>>
>> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed,
>> because 4GiB is just the maximum amount of RAM you can put together with
>> the ASIC on a board.
> Would the driver fail or misbehave if the BAR is sized larger than the
> amount of memory on the card or is memory size determined independently
> of BAR size?

Uff, good question. I have no idea.

At least the Linux driver should behave well, but no idea about the 
Windows driver stack.

>> Some devices even return a mask of all 1 even when they need only 2MiB,
>> resulting in nearly 1TiB of wasted address space with this approach.
> Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
> REBAR capability, but I guess we really can't make any assumptions
> about the breadth of SKUs that ASIC might support (or sanity of the
> designers).

It's a standard feature for FPGAs these days since how much BAR you need 
depends on what you load on it, and that in turn usually only happens 
after the OS is already started and you fire up your development 
environment.

> We could probe to determine the maximum size the host can support and
> potentially emulate the capability to remove sizes that we can't
> allocate, but without any ability for the device to reject a size
> advertised as supported via the capability protocol it makes me nervous
> how we can guarantee the resources are available when the user
> re-configures the device.  That might mean we'd need to reserve the
> resources, up to what the host can support, regardless of what the
> device can actually use.  I'm not sure how else to know how much to
> reserve without device specific code in vfio-pci.  Thanks,

Well in the FPGA case I outlined above you don't really know how much 
BAR you need until the setup is completed.

E.g. you could need one BAR with just 2MiB and another with 128GB, or 
two with 64GB or.... That's the reason why somebody came up with the 
REBAR standard in the first place.

I think I can summarize that static resizing might work for some devices 
like our GPUs, but it doesn't solve the problem in general.

Regards,
Christian.

>
> Alex
>

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 20:13           ` Christian König
@ 2021-01-04 21:45             ` Alex Williamson
  -1 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 21:45 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 21:13:53 +0100
Christian König <christian.koenig@amd.com> wrote:

> Am 04.01.21 um 19:43 schrieb Alex Williamson:
> > On Mon, 4 Jan 2021 18:39:33 +0100
> > Christian König <christian.koenig@amd.com> wrote:
> >  
> >> Am 04.01.21 um 17:45 schrieb Alex Williamson:  
> >>> On Mon, 4 Jan 2021 12:34:34 +0100
> >>> Christian König <christian.koenig@amd.com> wrote:
> >>>   
> >>> [SNIP]  
> >> That's a rather bad idea. See our GPUs for example return way more than
> >> they actually need.
> >>
> >> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed,
> >> because 4GiB is just the maximum amount of RAM you can put together with
> >> the ASIC on a board.  
> > Would the driver fail or misbehave if the BAR is sized larger than the
> > amount of memory on the card or is memory size determined independently
> > of BAR size?  
> 
> Uff, good question. I have no idea.
> 
> At least the Linux driver should behave well, but no idea about the 
> Windows driver stack.
> 
> >> Some devices even return a mask of all 1 even when they need only 2MiB,
> >> resulting in nearly 1TiB of wasted address space with this approach.  
> > Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
> > REBAR capability, but I guess we really can't make any assumptions
> > about the breadth of SKUs that ASIC might support (or sanity of the
> > designers).  
> 
> It's a standard feature for FPGAs these days since how much BAR you need 
> depends on what you load on it, and that in turn usually only happens 
> after the OS is already started and you fire up your development 
> environment.
> 
> > We could probe to determine the maximum size the host can support and
> > potentially emulate the capability to remove sizes that we can't
> > allocate, but without any ability for the device to reject a size
> > advertised as supported via the capability protocol it makes me nervous
> > how we can guarantee the resources are available when the user
> > re-configures the device.  That might mean we'd need to reserve the
> > resources, up to what the host can support, regardless of what the
> > device can actually use.  I'm not sure how else to know how much to
> > reserve without device specific code in vfio-pci.  Thanks,  
> 
> Well in the FPGA case I outlined above you don't really know how much 
> BAR you need until the setup is completed.
> 
> E.g. you could need one BAR with just 2MiB and another with 128GB, or 
> two with 64GB or.... That's the reason why somebody came up with the 
> REBAR standard in the first place.

Yes, I suppose without a full bus-reset and soft-hotplug event,
resizable BARs are the best way to reconfigure a device based on FPGA
programming.  Anyway, thanks for the insights here.

> I think I can summarize that static resizing might work for some devices 
> like our GPUs, but it doesn't solve the problem in general.

Yup, I don't have a good approach for the general case for a VM yet.  We
could add a sysfs or side channel mechanism to preconfigure a BAR size,
but once we're dealing with a VM interacting with the REBAR capability
itself, it's far too easy for the guest to create a configuration that
the host might not have bus resources to support, especially if there
are multiple resizable BARs under a bridge.  Thanks,

Alex

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-04 21:45             ` Alex Williamson
  0 siblings, 0 replies; 20+ messages in thread
From: Alex Williamson @ 2021-01-04 21:45 UTC (permalink / raw)
  To: Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx, Maxim Levitsky

On Mon, 4 Jan 2021 21:13:53 +0100
Christian König <christian.koenig@amd.com> wrote:

> Am 04.01.21 um 19:43 schrieb Alex Williamson:
> > On Mon, 4 Jan 2021 18:39:33 +0100
> > Christian König <christian.koenig@amd.com> wrote:
> >  
> >> Am 04.01.21 um 17:45 schrieb Alex Williamson:  
> >>> On Mon, 4 Jan 2021 12:34:34 +0100
> >>> Christian König <christian.koenig@amd.com> wrote:
> >>>   
> >>> [SNIP]  
> >> That's a rather bad idea. See our GPUs for example return way more than
> >> they actually need.
> >>
> >> E.g. a Polaris usually returns 4GiB even when only 2GiB are installed,
> >> because 4GiB is just the maximum amount of RAM you can put together with
> >> the ASIC on a board.  
> > Would the driver fail or misbehave if the BAR is sized larger than the
> > amount of memory on the card or is memory size determined independently
> > of BAR size?  
> 
> Uff, good question. I have no idea.
> 
> At least the Linux driver should behave well, but no idea about the 
> Windows driver stack.
> 
> >> Some devices even return a mask of all 1 even when they need only 2MiB,
> >> resulting in nearly 1TiB of wasted address space with this approach.  
> > Ugh.  I'm afraid to ask why a device with a 2MiB BAR would implement a
> > REBAR capability, but I guess we really can't make any assumptions
> > about the breadth of SKUs that ASIC might support (or sanity of the
> > designers).  
> 
> It's a standard feature for FPGAs these days since how much BAR you need 
> depends on what you load on it, and that in turn usually only happens 
> after the OS is already started and you fire up your development 
> environment.
> 
> > We could probe to determine the maximum size the host can support and
> > potentially emulate the capability to remove sizes that we can't
> > allocate, but without any ability for the device to reject a size
> > advertised as supported via the capability protocol it makes me nervous
> > how we can guarantee the resources are available when the user
> > re-configures the device.  That might mean we'd need to reserve the
> > resources, up to what the host can support, regardless of what the
> > device can actually use.  I'm not sure how else to know how much to
> > reserve without device specific code in vfio-pci.  Thanks,  
> 
> Well in the FPGA case I outlined above you don't really know how much 
> BAR you need until the setup is completed.
> 
> E.g. you could need one BAR with just 2MiB and another with 128GB, or 
> two with 64GB or.... That's the reason why somebody came up with the 
> REBAR standard in the first place.

Yes, I suppose without a full bus-reset and soft-hotplug event,
resizable BARs are the best way to reconfigure a device based on FPGA
programming.  Anyway, thanks for the insights here.

> I think I can summarize that static resizing might work for some devices 
> like our GPUs, but it doesn't solve the problem in general.

Yup, I don't have a good approach for the general case for a VM yet.  We
could add a sysfs or side channel mechanism to preconfigure a BAR size,
but once we're dealing with a VM interacting with the REBAR capability
itself, it's far too easy for the guest to create a configuration that
the host might not have bus resources to support, especially if there
are multiple resizable BARs under a bridge.  Thanks,

Alex

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 16:45     ` Alex Williamson
@ 2021-01-06 20:21       ` Maxim Levitsky
  -1 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-06 20:21 UTC (permalink / raw)
  To: Alex Williamson, Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx

On Mon, 2021-01-04 at 09:45 -0700, Alex Williamson wrote:
> On Mon, 4 Jan 2021 12:34:34 +0100
> Christian König <christian.koenig@amd.com> wrote:
> 
> > Hi Maxim,
> > 
> > I can't help with the display related stuff. Probably best approach to 
> > get this fixes would be to open up a bug tracker for this on FDO.
> > 
> > But I'm the one who implemented the resizeable BAR support and your 
> > analysis of the problem sounds about correct to me.
> > 
> > The reason why this works on Linux is most likely because we restore the 
> > BAR size on resume (and maybe during initial boot as well).
> > 
> > See this patch for reference:
> > 
> > commit d3252ace0bc652a1a244455556b6a549f969bf99
> > Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> > Date:   Fri Jun 29 19:54:55 2018 -0500
> > 
> >      PCI: Restore resized BAR state on resume
> > 
> >      Resize BARs after resume to the expected size again.
> > 
> >      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
> >      Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
> >      Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
> >      Signed-off-by: Christian König <christian.koenig@amd.com>
> >      Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> >      CC: stable@vger.kernel.org      # v4.15+
> > 
Hi!
Thanks for the feedback!
 
So I went over qemu code and indeed the qemu (as opposed to the kernel
where I tried to hide the PCI_EXT_CAP_ID_REBAR) indeed does hide this
pci capability from the guest.
 
However exactly as Alex mentioned the kernel does indeed restore
the rebar state, and even with that code patched out I found out that
rebar state persists across the reset that the vendor_reset module 
does (BACO I think).
 
Therefore the Linux guest sees the full 4G bar and happily uses it, 
while the windows guest's driver apparently has a bug when the bar
is that large.
 
I patched the amdgpu to resize the bar to various other sizes, and
the windows driver apparently works up to a 2GB bar.
 
So pretty much other than a bug in the windows driver, and fact
that VFIO doesn't support resizable bars there is nothing wrong here.
 
Since my system does support above 4G decoding and I do have a nice
vfio friendly device that does support a resizable bar, I do volunteer
to add support for this to VFIO as time and resources permit.
 
Also it would be nice if it was either possible to make amdgpu 
(or the whole system) optionally avoid resizing bars when a 
kernel command line / module param is given,
or even better let the amdgpu resize the bar to its original
size when it is unloaded which IMHO is the best solution 
for this problem.
 
I think I can prepare a patch to make amdgpu restore 
the bar size on unload if you think that
this is the right solution.

> > 
> > It should be trivial to add this to the reset module as well. Most 
> > likely even completely vendor independent since I'm not sure what a bus 
> > reset will do to this configuration and restoring it all the time should 
> > be the most defensive approach.

> 
> Hmm, this should already be used by the bus/slot reset path:
> 
> pci_bus_restore_locked()/pci_slot_restore_locked()
>  pci_dev_restore()
>   pci_restore_state()
>    pci_restore_rebar_state()
> 
> VFIO support for resizeable BARs has been on my todo list, but I don't
> have access to any systems that have both a capable device and >4G
> decoding enabled in the BIOS.  If we have a consistent view of the BAR
> size after the BARs are expanded, I'm not sure why it doesn't just
> work.  FWIW, QEMU currently hides the REBAR capability to the guest
> because the kernel driver doesn't support emulation through config
> space (ie. it's read-only, which the spec doesn't support).
> 
> AIUI, resource allocation can fail when enabling REBAR support, which
> is a problem if the failure occurs on the host but not the guest since
> we have no means via the hardware protocol to expose such a condition.
> Therefore the model I was considering for vfio-pci would be to simply
> pre-enable REBAR at the max size.  It might be sufficiently safe to
> test BAR expansion on initialization and then allow user control, but
> I'm concerned that resource availability could change while already in
> use by the user.  Thanks,

As mentioned in other replies in this thread and what my first
thought about this, this will indeed will break on devices which
don't accurately report the maximum bar size that they actually need.
Even the spec itself says that it is vendor specific to determine the
optimal bar size.

We can also allow guest to resize the bar and if that fails,
expose the error via a virtual AER message on the root port
where the device is attached? 

I personally don't know if this is possible/worth it.


Best regards,
	Maxim Levitsky

> 
> Alex


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-06 20:21       ` Maxim Levitsky
  0 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-06 20:21 UTC (permalink / raw)
  To: Alex Williamson, Christian König
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx

On Mon, 2021-01-04 at 09:45 -0700, Alex Williamson wrote:
> On Mon, 4 Jan 2021 12:34:34 +0100
> Christian König <christian.koenig@amd.com> wrote:
> 
> > Hi Maxim,
> > 
> > I can't help with the display related stuff. Probably best approach to 
> > get this fixes would be to open up a bug tracker for this on FDO.
> > 
> > But I'm the one who implemented the resizeable BAR support and your 
> > analysis of the problem sounds about correct to me.
> > 
> > The reason why this works on Linux is most likely because we restore the 
> > BAR size on resume (and maybe during initial boot as well).
> > 
> > See this patch for reference:
> > 
> > commit d3252ace0bc652a1a244455556b6a549f969bf99
> > Author: Christian König <ckoenig.leichtzumerken@gmail.com>
> > Date:   Fri Jun 29 19:54:55 2018 -0500
> > 
> >      PCI: Restore resized BAR state on resume
> > 
> >      Resize BARs after resume to the expected size again.
> > 
> >      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199959
> >      Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
> >      Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
> >      Signed-off-by: Christian König <christian.koenig@amd.com>
> >      Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> >      CC: stable@vger.kernel.org      # v4.15+
> > 
Hi!
Thanks for the feedback!
 
So I went over qemu code and indeed the qemu (as opposed to the kernel
where I tried to hide the PCI_EXT_CAP_ID_REBAR) indeed does hide this
pci capability from the guest.
 
However exactly as Alex mentioned the kernel does indeed restore
the rebar state, and even with that code patched out I found out that
rebar state persists across the reset that the vendor_reset module 
does (BACO I think).
 
Therefore the Linux guest sees the full 4G bar and happily uses it, 
while the windows guest's driver apparently has a bug when the bar
is that large.
 
I patched the amdgpu to resize the bar to various other sizes, and
the windows driver apparently works up to a 2GB bar.
 
So pretty much other than a bug in the windows driver, and fact
that VFIO doesn't support resizable bars there is nothing wrong here.
 
Since my system does support above 4G decoding and I do have a nice
vfio friendly device that does support a resizable bar, I do volunteer
to add support for this to VFIO as time and resources permit.
 
Also it would be nice if it was either possible to make amdgpu 
(or the whole system) optionally avoid resizing bars when a 
kernel command line / module param is given,
or even better let the amdgpu resize the bar to its original
size when it is unloaded which IMHO is the best solution 
for this problem.
 
I think I can prepare a patch to make amdgpu restore 
the bar size on unload if you think that
this is the right solution.

> > 
> > It should be trivial to add this to the reset module as well. Most 
> > likely even completely vendor independent since I'm not sure what a bus 
> > reset will do to this configuration and restoring it all the time should 
> > be the most defensive approach.

> 
> Hmm, this should already be used by the bus/slot reset path:
> 
> pci_bus_restore_locked()/pci_slot_restore_locked()
>  pci_dev_restore()
>   pci_restore_state()
>    pci_restore_rebar_state()
> 
> VFIO support for resizeable BARs has been on my todo list, but I don't
> have access to any systems that have both a capable device and >4G
> decoding enabled in the BIOS.  If we have a consistent view of the BAR
> size after the BARs are expanded, I'm not sure why it doesn't just
> work.  FWIW, QEMU currently hides the REBAR capability to the guest
> because the kernel driver doesn't support emulation through config
> space (ie. it's read-only, which the spec doesn't support).
> 
> AIUI, resource allocation can fail when enabling REBAR support, which
> is a problem if the failure occurs on the host but not the guest since
> we have no means via the hardware protocol to expose such a condition.
> Therefore the model I was considering for vfio-pci would be to simply
> pre-enable REBAR at the max size.  It might be sufficiently safe to
> test BAR expansion on initialization and then allow user control, but
> I'm concerned that resource availability could change while already in
> use by the user.  Thanks,

As mentioned in other replies in this thread and what my first
thought about this, this will indeed will break on devices which
don't accurately report the maximum bar size that they actually need.
Even the spec itself says that it is vendor specific to determine the
optimal bar size.

We can also allow guest to resize the bar and if that fails,
expose the error via a virtual AER message on the root port
where the device is attached? 

I personally don't know if this is possible/worth it.


Best regards,
	Maxim Levitsky

> 
> Alex


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-04 11:34   ` Christian König
@ 2021-01-06 21:27     ` Maxim Levitsky
  -1 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-06 21:27 UTC (permalink / raw)
  To: Christian König, amd-gfx
  Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson

On Mon, 2021-01-04 at 12:34 +0100, Christian König wrote:
> Hi Maxim,
> 
> I can't help with the display related stuff. Probably best approach to get this fixes would be to open up a bug tracker for this on FDO.

Done, bugs are opened
https://gitlab.freedesktop.org/drm/amd/-/issues/1429
https://gitlab.freedesktop.org/drm/amd/-/issues/1430

About the EDID issue, there do seem to be few open bugs about it,
but what differs in my case I think is that EDID failure happens
only once in a while, rather that always, and it seems to bring
the whole device down.

Best regards,
	Maxim Levitsky

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-06 21:27     ` Maxim Levitsky
  0 siblings, 0 replies; 20+ messages in thread
From: Maxim Levitsky @ 2021-01-06 21:27 UTC (permalink / raw)
  To: Christian König, amd-gfx
  Cc: David Airlie, Alex Deucher, dri-devel, Alex Williamson

On Mon, 2021-01-04 at 12:34 +0100, Christian König wrote:
> Hi Maxim,
> 
> I can't help with the display related stuff. Probably best approach to get this fixes would be to open up a bug tracker for this on FDO.

Done, bugs are opened
https://gitlab.freedesktop.org/drm/amd/-/issues/1429
https://gitlab.freedesktop.org/drm/amd/-/issues/1430

About the EDID issue, there do seem to be few open bugs about it,
but what differs in my case I think is that EDID failure happens
only once in a while, rather that always, and it seems to bring
the whole device down.

Best regards,
	Maxim Levitsky

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
  2021-01-06 20:21       ` Maxim Levitsky
@ 2021-01-15 11:29         ` Christian König
  -1 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-15 11:29 UTC (permalink / raw)
  To: Maxim Levitsky, Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx

Am 06.01.21 um 21:21 schrieb Maxim Levitsky:
> On Mon, 2021-01-04 at 09:45 -0700, Alex Williamson wrote:
>> On Mon, 4 Jan 2021 12:34:34 +0100
>> Christian König <christian.koenig@amd.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> I can't help with the display related stuff. Probably best approach to
>>> get this fixes would be to open up a bug tracker for this on FDO.
>>>
>>> But I'm the one who implemented the resizeable BAR support and your
>>> analysis of the problem sounds about correct to me.
>>>
>>> The reason why this works on Linux is most likely because we restore the
>>> BAR size on resume (and maybe during initial boot as well).
>>>
>>> See this patch for reference:
>>>
>>> commit d3252ace0bc652a1a244455556b6a549f969bf99
>>> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
>>> Date:   Fri Jun 29 19:54:55 2018 -0500
>>>
>>>       PCI: Restore resized BAR state on resume
>>>
>>>       Resize BARs after resume to the expected size again.
>>>
>>>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C04878f8babc64386353908d8b280a23b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637455612845286179%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=iRk9S4IgfQHZgVf1m1n%2F9LpOQzO41pLoc7EWmzH%2Fym4%3D&amp;reserved=0
>>>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>>>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>>>       Signed-off-by: Christian König <christian.koenig@amd.com>
>>>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>       CC: stable@vger.kernel.org      # v4.15+
>>>
> Hi!
> Thanks for the feedback!
>   
> So I went over qemu code and indeed the qemu (as opposed to the kernel
> where I tried to hide the PCI_EXT_CAP_ID_REBAR) indeed does hide this
> pci capability from the guest.
>   
> However exactly as Alex mentioned the kernel does indeed restore
> the rebar state, and even with that code patched out I found out that
> rebar state persists across the reset that the vendor_reset module
> does (BACO I think).
>   
> Therefore the Linux guest sees the full 4G bar and happily uses it,
> while the windows guest's driver apparently has a bug when the bar
> is that large.
>   
> I patched the amdgpu to resize the bar to various other sizes, and
> the windows driver apparently works up to a 2GB bar.
>   
> So pretty much other than a bug in the windows driver, and fact
> that VFIO doesn't support resizable bars there is nothing wrong here.
>   
> Since my system does support above 4G decoding and I do have a nice
> vfio friendly device that does support a resizable bar, I do volunteer
> to add support for this to VFIO as time and resources permit.
>   
> Also it would be nice if it was either possible to make amdgpu
> (or the whole system) optionally avoid resizing bars when a
> kernel command line / module param is given,
> or even better let the amdgpu resize the bar to its original
> size when it is unloaded which IMHO is the best solution
> for this problem.
>   
> I think I can prepare a patch to make amdgpu restore
> the bar size on unload if you think that
> this is the right solution.

Coming back to this topic now, sorry been a bit busy over the last few days.

Basically I don't think that amdgpu should do anything when it quits.

What you should rather do is to resize the BAR to the default value of 
the BIOS when you trigger the device reset.

>>> It should be trivial to add this to the reset module as well. Most
>>> likely even completely vendor independent since I'm not sure what a bus
>>> reset will do to this configuration and restoring it all the time should
>>> be the most defensive approach.
>> Hmm, this should already be used by the bus/slot reset path:
>>
>> pci_bus_restore_locked()/pci_slot_restore_locked()
>>   pci_dev_restore()
>>    pci_restore_state()
>>     pci_restore_rebar_state()
>>
>> VFIO support for resizeable BARs has been on my todo list, but I don't
>> have access to any systems that have both a capable device and >4G
>> decoding enabled in the BIOS.  If we have a consistent view of the BAR
>> size after the BARs are expanded, I'm not sure why it doesn't just
>> work.  FWIW, QEMU currently hides the REBAR capability to the guest
>> because the kernel driver doesn't support emulation through config
>> space (ie. it's read-only, which the spec doesn't support).
>>
>> AIUI, resource allocation can fail when enabling REBAR support, which
>> is a problem if the failure occurs on the host but not the guest since
>> we have no means via the hardware protocol to expose such a condition.
>> Therefore the model I was considering for vfio-pci would be to simply
>> pre-enable REBAR at the max size.  It might be sufficiently safe to
>> test BAR expansion on initialization and then allow user control, but
>> I'm concerned that resource availability could change while already in
>> use by the user.  Thanks,
> As mentioned in other replies in this thread and what my first
> thought about this, this will indeed will break on devices which
> don't accurately report the maximum bar size that they actually need.
> Even the spec itself says that it is vendor specific to determine the
> optimal bar size.
>
> We can also allow guest to resize the bar and if that fails,
> expose the error via a virtual AER message on the root port
> where the device is attached?

Sounds like it might work in theory, but I'm not an expert for KVM.

Regards,
Christian.

>
> I personally don't know if this is possible/worth it.
>
>
> Best regards,
> 	Maxim Levitsky
>
>> Alex
>

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: Couple of issues with amdgpu on my WX4100
@ 2021-01-15 11:29         ` Christian König
  0 siblings, 0 replies; 20+ messages in thread
From: Christian König @ 2021-01-15 11:29 UTC (permalink / raw)
  To: Maxim Levitsky, Alex Williamson
  Cc: David Airlie, Alex Deucher, dri-devel, amd-gfx

Am 06.01.21 um 21:21 schrieb Maxim Levitsky:
> On Mon, 2021-01-04 at 09:45 -0700, Alex Williamson wrote:
>> On Mon, 4 Jan 2021 12:34:34 +0100
>> Christian König <christian.koenig@amd.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> I can't help with the display related stuff. Probably best approach to
>>> get this fixes would be to open up a bug tracker for this on FDO.
>>>
>>> But I'm the one who implemented the resizeable BAR support and your
>>> analysis of the problem sounds about correct to me.
>>>
>>> The reason why this works on Linux is most likely because we restore the
>>> BAR size on resume (and maybe during initial boot as well).
>>>
>>> See this patch for reference:
>>>
>>> commit d3252ace0bc652a1a244455556b6a549f969bf99
>>> Author: Christian König <ckoenig.leichtzumerken@gmail.com>
>>> Date:   Fri Jun 29 19:54:55 2018 -0500
>>>
>>>       PCI: Restore resized BAR state on resume
>>>
>>>       Resize BARs after resume to the expected size again.
>>>
>>>       BugLink: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.kernel.org%2Fshow_bug.cgi%3Fid%3D199959&amp;data=04%7C01%7Cchristian.koenig%40amd.com%7C04878f8babc64386353908d8b280a23b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637455612845286179%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=iRk9S4IgfQHZgVf1m1n%2F9LpOQzO41pLoc7EWmzH%2Fym4%3D&amp;reserved=0
>>>       Fixes: d6895ad39f3b ("drm/amdgpu: resize VRAM BAR for CPU access v6")
>>>       Fixes: 276b738deb5b ("PCI: Add resizable BAR infrastructure")
>>>       Signed-off-by: Christian König <christian.koenig@amd.com>
>>>       Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>>>       CC: stable@vger.kernel.org      # v4.15+
>>>
> Hi!
> Thanks for the feedback!
>   
> So I went over qemu code and indeed the qemu (as opposed to the kernel
> where I tried to hide the PCI_EXT_CAP_ID_REBAR) indeed does hide this
> pci capability from the guest.
>   
> However exactly as Alex mentioned the kernel does indeed restore
> the rebar state, and even with that code patched out I found out that
> rebar state persists across the reset that the vendor_reset module
> does (BACO I think).
>   
> Therefore the Linux guest sees the full 4G bar and happily uses it,
> while the windows guest's driver apparently has a bug when the bar
> is that large.
>   
> I patched the amdgpu to resize the bar to various other sizes, and
> the windows driver apparently works up to a 2GB bar.
>   
> So pretty much other than a bug in the windows driver, and fact
> that VFIO doesn't support resizable bars there is nothing wrong here.
>   
> Since my system does support above 4G decoding and I do have a nice
> vfio friendly device that does support a resizable bar, I do volunteer
> to add support for this to VFIO as time and resources permit.
>   
> Also it would be nice if it was either possible to make amdgpu
> (or the whole system) optionally avoid resizing bars when a
> kernel command line / module param is given,
> or even better let the amdgpu resize the bar to its original
> size when it is unloaded which IMHO is the best solution
> for this problem.
>   
> I think I can prepare a patch to make amdgpu restore
> the bar size on unload if you think that
> this is the right solution.

Coming back to this topic now, sorry been a bit busy over the last few days.

Basically I don't think that amdgpu should do anything when it quits.

What you should rather do is to resize the BAR to the default value of 
the BIOS when you trigger the device reset.

>>> It should be trivial to add this to the reset module as well. Most
>>> likely even completely vendor independent since I'm not sure what a bus
>>> reset will do to this configuration and restoring it all the time should
>>> be the most defensive approach.
>> Hmm, this should already be used by the bus/slot reset path:
>>
>> pci_bus_restore_locked()/pci_slot_restore_locked()
>>   pci_dev_restore()
>>    pci_restore_state()
>>     pci_restore_rebar_state()
>>
>> VFIO support for resizeable BARs has been on my todo list, but I don't
>> have access to any systems that have both a capable device and >4G
>> decoding enabled in the BIOS.  If we have a consistent view of the BAR
>> size after the BARs are expanded, I'm not sure why it doesn't just
>> work.  FWIW, QEMU currently hides the REBAR capability to the guest
>> because the kernel driver doesn't support emulation through config
>> space (ie. it's read-only, which the spec doesn't support).
>>
>> AIUI, resource allocation can fail when enabling REBAR support, which
>> is a problem if the failure occurs on the host but not the guest since
>> we have no means via the hardware protocol to expose such a condition.
>> Therefore the model I was considering for vfio-pci would be to simply
>> pre-enable REBAR at the max size.  It might be sufficiently safe to
>> test BAR expansion on initialization and then allow user control, but
>> I'm concerned that resource availability could change while already in
>> use by the user.  Thanks,
> As mentioned in other replies in this thread and what my first
> thought about this, this will indeed will break on devices which
> don't accurately report the maximum bar size that they actually need.
> Even the spec itself says that it is vendor specific to determine the
> optimal bar size.
>
> We can also allow guest to resize the bar and if that fails,
> expose the error via a virtual AER message on the root port
> where the device is attached?

Sounds like it might work in theory, but I'm not an expert for KVM.

Regards,
Christian.

>
> I personally don't know if this is possible/worth it.
>
>
> Best regards,
> 	Maxim Levitsky
>
>> Alex
>

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-01-15 11:29 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-02 22:42 Couple of issues with amdgpu on my WX4100 Maxim Levitsky
2021-01-02 22:42 ` Maxim Levitsky
2021-01-04 11:34 ` Christian König
2021-01-04 11:34   ` Christian König
2021-01-04 16:45   ` Alex Williamson
2021-01-04 16:45     ` Alex Williamson
2021-01-04 17:39     ` Christian König
2021-01-04 17:39       ` Christian König
2021-01-04 18:43       ` Alex Williamson
2021-01-04 18:43         ` Alex Williamson
2021-01-04 20:13         ` Christian König
2021-01-04 20:13           ` Christian König
2021-01-04 21:45           ` Alex Williamson
2021-01-04 21:45             ` Alex Williamson
2021-01-06 20:21     ` Maxim Levitsky
2021-01-06 20:21       ` Maxim Levitsky
2021-01-15 11:29       ` Christian König
2021-01-15 11:29         ` Christian König
2021-01-06 21:27   ` Maxim Levitsky
2021-01-06 21:27     ` Maxim Levitsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.