amd issues
https://gitlab.freedesktop.org/drm/amd/-/issues
2022-07-22T15:47:54Z
https://gitlab.freedesktop.org/drm/amd/-/issues/2048
RX 580: igt@amdgpu/amd_cs_nop@fork-compute0: FAIL - kernel NULL pointer deref...
2022-07-22T15:47:54Z
Tales Aparecida
RX 580: igt@amdgpu/amd_cs_nop@fork-compute0: FAIL - kernel NULL pointer dereference, address: 00000000000000f8
## Brief summary of the problem:
When running the IGT test `igt@amdgpu/amd_cs_nop`, I get a `NULL pointer dereference` warning in the subtest `fork-compute0`:
```
[ 198.057729] [IGT] amd_cs_nop: executing
[ 198.075303] [IGT] amd_cs_n...
## Brief summary of the problem:
When running the IGT test `igt@amdgpu/amd_cs_nop`, I get a `NULL pointer dereference` warning in the subtest `fork-compute0`:
```
[ 198.057729] [IGT] amd_cs_nop: executing
[ 198.075303] [IGT] amd_cs_nop: starting subtest nop-compute0
[ 219.571666] [IGT] amd_cs_nop: exiting, ret=0
[ 219.588352] Console: switching to colour frame buffer device 240x67
[ 219.628425] Console: switching to colour dummy device 80x25
[ 219.628448] [IGT] amd_cs_nop: executing
[ 219.636282] [IGT] amd_cs_nop: starting subtest nop-gfx0
[ 241.137581] [IGT] amd_cs_nop: exiting, ret=0
[ 241.154315] Console: switching to colour frame buffer device 240x67
[ 241.196900] Console: switching to colour dummy device 80x25
[ 241.196923] [IGT] amd_cs_nop: executing
[ 241.204025] [IGT] amd_cs_nop: starting subtest sync-compute0
[ 262.703511] [IGT] amd_cs_nop: exiting, ret=0
[ 262.720316] Console: switching to colour frame buffer device 240x67
[ 262.768742] Console: switching to colour dummy device 80x25
[ 262.768780] [IGT] amd_cs_nop: executing
[ 262.774916] [IGT] amd_cs_nop: starting subtest sync-gfx0
[ 284.286297] [IGT] amd_cs_nop: exiting, ret=0
[ 284.303027] Console: switching to colour frame buffer device 240x67
[ 284.352408] Console: switching to colour dummy device 80x25
[ 284.352451] [IGT] amd_cs_nop: executing
[ 284.359565] [IGT] amd_cs_nop: starting subtest fork-compute0
[ 284.361097] BUG: kernel NULL pointer dereference, address: 00000000000000f8
[ 284.361109] #PF: supervisor read access in kernel mode
[ 284.361115] #PF: error_code(0x0000) - not-present page
[ 284.361121] PGD 13cd96067 P4D 13cd96067 PUD 10d17e067 PMD 0
[ 284.361131] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 284.361138] CPU: 11 PID: 2608 Comm: amd_cs_nop Not tainted 5.16.0-e68e+ #53 379b6e43c5ec0dc27b291be75619e080240e9dae
[ 284.361150] Hardware name: Gigabyte Technology Co., Ltd. B450 AORUS M/B450 AORUS M, BIOS F50 11/27/2019
[ 284.361157] RIP: 0010:ttm_eu_fence_buffer_objects+0x82/0xb0 [ttm]
[ 284.361177] Code: 8d b8 10 08 00 00 e8 6d 44 4a d0 48 8b bb f8 00 00 00 e8 21 f2 49 d0 48 8b 6d 00 4c 39 e5 74 1c 48 8b 5d 10 8b 45 18 4c 89 ee <48> 8b bb f8 00 00 00 85 c0 75 9a e8 0e c0 0d d0 eb 98 5b 5d 41 5c
[ 284.361188] RSP: 0018:ffffb66800eafab8 EFLAGS: 00010283
[ 284.361195] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 284.361201] RDX: 0000000000000000 RSI: ffff98325903cf40 RDI: 0000000000000000
[ 284.361207] RBP: ffffb66800cafc30 R08: 0000000000000000 R09: 0000000000000000
[ 284.361212] R10: 0000000000000000 R11: 0000000000000000 R12: ffffb66800eafbf0
[ 284.361217] R13: ffff98325903cf40 R14: 0000000000000000 R15: ffffb66800eafb38
[ 284.361223] FS: 00007f7af2cc3a80(0000) GS:ffff98354ecc0000(0000) knlGS:0000000000000000
[ 284.361231] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 284.361237] CR2: 00000000000000f8 CR3: 0000000140144000 CR4: 00000000003506e0
[ 284.361243] Call Trace:
[ 284.361248] <TASK>
[ 284.361255] amdgpu_cs_ioctl+0x1d2f/0x2030 [amdgpu 0f9ac45183286e110256740e1ec76d36751472cc]
[ 284.361765] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu 0f9ac45183286e110256740e1ec76d36751472cc]
[ 284.362264] drm_ioctl_kernel+0xcc/0x170
[ 284.362277] drm_ioctl+0x23a/0x420
[ 284.362285] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu 0f9ac45183286e110256740e1ec76d36751472cc]
[ 284.362821] amdgpu_drm_ioctl+0x4a/0x80 [amdgpu 0f9ac45183286e110256740e1ec76d36751472cc]
[ 284.363297] __x64_sys_ioctl+0x94/0xd0
[ 284.363309] do_syscall_64+0x5b/0x90
[ 284.363321] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363330] ? do_syscall_64+0x67/0x90
[ 284.363337] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363344] ? do_syscall_64+0x67/0x90
[ 284.363351] ? exit_to_user_mode_prepare+0x8d/0x190
[ 284.363361] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363367] ? do_syscall_64+0x67/0x90
[ 284.363374] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363381] ? do_syscall_64+0x67/0x90
[ 284.363388] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363394] ? do_syscall_64+0x67/0x90
[ 284.363402] ? syscall_exit_to_user_mode+0x23/0x50
[ 284.363408] ? do_syscall_64+0x67/0x90
[ 284.363415] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 284.363424] RIP: 0033:0x7f7af47772fb
[ 284.363431] Code: 0f 1e fa 48 8b 05 8d 9b 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 5d 9b 0c 00 f7 d8 64 89 01 48
[ 284.363442] RSP: 002b:00007fff7422a738 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 284.363450] RAX: ffffffffffffffda RBX: 00007fff7422a840 RCX: 00007f7af47772fb
[ 284.363458] RDX: 00007fff7422a840 RSI: 00000000c0186444 RDI: 0000000000000006
[ 284.363466] RBP: 00000000c0186444 R08: 00007fff7422a7b0 R09: 0000000001ce4730
[ 284.363473] R10: 0000000000000001 R11: 0000000000000246 R12: 0000000001ce4738
[ 284.363481] R13: 0000000000000006 R14: 00007fff7422a780 R15: 00007fff7422aa10
[ 284.363489] </TASK>
[ 284.363493] Modules linked in: veth xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay ccm amdgpu bnep iwlmvm btusb btrtl btbcm btintel bluetooth joydev mousedev usbhid ecdh_generic mac80211 libarc4 iwlwifi qrtr intel_rapl_msr intel_rapl_common kvm_amd vfat kvm fat cfg80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec r8169 snd_hwdep snd_hda_core ppdev irqbypass snd_pcm crct10dif_pclmul crc32_pclmul gigabyte_wmi realtek wmi_bmof ghash_clmulni_intel mdio_devres drm_ttm_helper aesni_intel snd_timer libphy ttm crypto_simd ccp snd cryptd rfkill rapl parport_pc gpu_sched sp5100_tco k10temp soundcore rng_core i2c_piix4 parport pcspkr wmi gpio_amdpt pinctrl_amd mac_hid gpio_generic acpi_cpufreq squashfs uinput dm_multipath loop dm_mod fuse crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2
[ 284.363598] xhci_pci crc32c_intel xhci_pci_renesas
[ 284.363640] CR2: 00000000000000f8
[ 284.363645] ---[ end trace 1ef27147e3d61ac0 ]---
[ 284.363649] RIP: 0010:ttm_eu_fence_buffer_objects+0x82/0xb0 [ttm]
[ 284.363665] Code: 8d b8 10 08 00 00 e8 6d 44 4a d0 48 8b bb f8 00 00 00 e8 21 f2 49 d0 48 8b 6d 00 4c 39 e5 74 1c 48 8b 5d 10 8b 45 18 4c 89 ee <48> 8b bb f8 00 00 00 85 c0 75 9a e8 0e c0 0d d0 eb 98 5b 5d 41 5c
[ 284.363676] RSP: 0018:ffffb66800eafab8 EFLAGS: 00010283
[ 284.363682] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 284.363687] RDX: 0000000000000000 RSI: ffff98325903cf40 RDI: 0000000000000000
[ 284.363692] RBP: ffffb66800cafc30 R08: 0000000000000000 R09: 0000000000000000
[ 284.363698] R10: 0000000000000000 R11: 0000000000000000 R12: ffffb66800eafbf0
[ 284.363703] R13: ffff98325903cf40 R14: 0000000000000000 R15: ffffb66800eafb38
[ 284.363708] FS: 00007f7af2cc3a80(0000) GS:ffff98354ecc0000(0000) knlGS:0000000000000000
[ 284.363716] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 284.363721] CR2: 00000000000000f8 CR3: 0000000140144000 CR4: 00000000003506e0
[ 318.715342] kauditd_printk_skb: 4 callbacks suppressed
[ 318.715347] audit: type=1334 audit(1654868466.983:152): prog-id=32 op=LOAD
[ 318.715612] audit: type=1334 audit(1654868466.983:153): prog-id=33 op=LOAD
[ 318.715779] audit: type=1334 audit(1654868466.983:154): prog-id=34 op=LOAD
[ 318.764815] audit: type=1130 audit(1654868467.033:155): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 348.798117] audit: type=1131 audit(1654868497.066:156): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 348.860532] audit: type=1334 audit(1654868497.130:157): prog-id=0 op=UNLOAD
[ 348.860551] audit: type=1334 audit(1654868497.130:158): prog-id=0 op=UNLOAD
[ 348.860559] audit: type=1334 audit(1654868497.130:159): prog-id=0 op=UNLOAD
[ 904.113616] audit: type=1130 audit(1654869052.383:160): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 904.113640] audit: type=1131 audit(1654869052.383:161): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
```
A `git bisect` points to [e68efb27](https://gitlab.freedesktop.org/agd5f/linux/-/commit/e68efb27647f2106d6b545667f35b2ea39746b57) as the first problematic commit in the [amd-staging-drm-next](https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next) branch.
Beyond failing the test, I usually can't even reboot the machine, locked in "failed to unmount /home" loops.
## Hardware description:
- CPU: AMD Ryzen 5 1600 Six-Core Processor
- GPU: 07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)
- System Memory: 16GB
- Display(s): AOC G2260VWQ6
- Type of Display Connection: HDMI
## System information:
- Distro name and Version: IGT's container registry.freedesktop.org/drm/igt-gpu-tools/igt:master
- Kernel version: 5.16
- Custom kernel: Self-compiled Kernel from e68efb27 onwards (amd-staging-drm-next) with two patches to enable compilation using GCC12: [82880283](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/tools/objtool/check.c?id=82880283d7fcd0a1d20964a56d6d1a5cc0df0713) and [52a9dab6](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/tools/lib/subcmd/subcmd-util.h?id=52a9dab6d892763b2a8334a568bd4e2c1a6fde66)
- AMD official driver version: N/A
## How to reproduce the issue:
```
docker run -v $HOME/results:/tmp/results --privileged registry.freedesktop.org/drm/igt-gpu-tools/igt:master igt_runner -s -t "amdgpu/amd_cs_nop" -o /tmp/results/
```
## Attached files:
[dmesg.2022-06-10-40-00.log](/uploads/27cc75d88c99013d3a068454a4b7a6a3/dmesg.2022-06-10-40-00.log)
https://gitlab.freedesktop.org/drm/amd/-/issues/2016
RX 5700 XT (GFX10 NAVI 10): igt@amdgpu/amd_color@crtc-lut-accuracy - Test ass...
2023-04-12T16:30:18Z
MaĆra Canal
mairacanal@riseup.net
RX 5700 XT (GFX10 NAVI 10): igt@amdgpu/amd_color@crtc-lut-accuracy - Test assertion failure
## Brief summary of the problem:
When running the IGT test `igt@amdgpu/amd_color@crtc-lut-accuracy`, the subtest crtc-lut-accuracy fails with the following output:
```
IGT-Version: 1.26-g70cfef35 (x86_64) (Linux: 5.18.0-rc7-DEFAULT-DCN...
## Brief summary of the problem:
When running the IGT test `igt@amdgpu/amd_color@crtc-lut-accuracy`, the subtest crtc-lut-accuracy fails with the following output:
```
IGT-Version: 1.26-g70cfef35 (x86_64) (Linux: 5.18.0-rc7-DEFAULT-DCN-DISPLAY+ x86_64)
Starting subtest: crtc-linear-degamma
Subtest crtc-linear-degamma: SUCCESS (0,193s)
Starting subtest: crtc-linear-regamma
Subtest crtc-linear-regamma: SUCCESS (0,210s)
Starting subtest: crtc-lut-accuracy
Testing color (1,00, 1,00, 1,00) ...
(amd_color:10023) igt_debugfs-CRITICAL: Test assertion failure function igt_assert_crc_equal, file ../lib/igt_debugfs.c:491:
(amd_color:10023) igt_debugfs-CRITICAL: Failed assertion: !mismatch || igt_skip_crc_compare
Stack trace:
#0 ../lib/igt_core.c:1756 __igt_fail_assert()
#1 ../lib/igt_debugfs.c:492 igt_assert_crc_equal()
#2 ../tests/amdgpu/amd_color.c:349 __igt_unique____real_main378()
#3 ../tests/amdgpu/amd_color.c:378 main()
#4 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main()
#5 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
#6 ../sysdeps/x86_64/start.S:117 _start()
Subtest crtc-lut-accuracy failed.
**** DEBUG ****
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "CRTC_H" to 0x40/64
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "FB_ID" to 0x7b/123
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "CRTC_ID" to 0x4d/77
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "COLOR_ENCODING" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane A.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: A.1, fb 0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "pixel blend mode" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.1: Setting property "alpha" to 0xffff/65535
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: A.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane A.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe B: Setting property "CTM" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe B: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe B: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe B: Setting property "MODE_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe B: Setting property "ACTIVE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: B.0, fb 0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "COLOR_ENCODING" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: B.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane B.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe C: Setting property "CTM" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe C: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe C: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe C: Setting property "MODE_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe C: Setting property "ACTIVE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: C.0, fb 0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "COLOR_ENCODING" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: C.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane C.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe D: Setting property "CTM" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe D: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe D: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe D: Setting property "MODE_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe D: Setting property "ACTIVE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: D.0, fb 0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "COLOR_ENCODING" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: D.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane D.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe E: Setting property "CTM" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe E: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe E: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe E: Setting property "MODE_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe E: Setting property "ACTIVE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: E.0, fb 0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "COLOR_ENCODING" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: E.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane E.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe F: Setting property "CTM" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe F: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe F: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe F: Setting property "MODE_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe F: Setting property "ACTIVE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: F.0, fb 0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "rotation" to 0x1/1
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "COLOR_ENCODING" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.0: Setting property "COLOR_RANGE" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: populating plane data: F.2, fb 0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "SRC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "SRC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "SRC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "SRC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "CRTC_X" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "CRTC_Y" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "CRTC_W" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "CRTC_H" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "FB_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: plane F.2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: DP-1: preparing atomic, pipe: None
(amd_color:10023) igt_kms-DEBUG: DP-1: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: DP-1: Setting property "HDR_OUTPUT_METADATA" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: DP-2: preparing atomic, pipe: None
(amd_color:10023) igt_kms-DEBUG: DP-2: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: DP-2: Setting property "HDR_OUTPUT_METADATA" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: DP-3: preparing atomic, pipe: None
(amd_color:10023) igt_kms-DEBUG: DP-3: Setting property "CRTC_ID" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: DP-3: Setting property "HDR_OUTPUT_METADATA" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: HDMI-A-1: preparing atomic, pipe: A
(amd_color:10023) igt_kms-DEBUG: HDMI-A-1: Setting property "CRTC_ID" to 0x4d/77
(amd_color:10023) igt_kms-DEBUG: HDMI-A-1: Setting property "HDR_OUTPUT_METADATA" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: }
(amd_color:10023) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(amd_color:10023) INFO: Testing color (1,00, 1,00, 1,00) ...
(amd_color:10023) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
(amd_color:10023) igt_kms-DEBUG: display: commit {
(amd_color:10023) igt_kms-DEBUG: Pipe A: Setting property "GAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: Pipe A: Setting property "DEGAMMA_LUT" to 0x0/0
(amd_color:10023) igt_kms-DEBUG: display: }
(amd_color:10023) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(amd_color:10023) igt_kms-DEBUG: display: commit {
(amd_color:10023) igt_kms-DEBUG: Pipe A: Setting property "GAMMA_LUT" to 0x7d/125
(amd_color:10023) igt_kms-DEBUG: Pipe A: Setting property "DEGAMMA_LUT" to 0x7c/124
(amd_color:10023) igt_kms-DEBUG: display: }
(amd_color:10023) igt_debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(amd_color:10023) igt_debugfs-DEBUG: CRC mismatch at index 1: 0xc6e8 != 0xbb6
(amd_color:10023) igt_debugfs-CRITICAL: Test assertion failure function igt_assert_crc_equal, file ../lib/igt_debugfs.c:491:
(amd_color:10023) igt_debugfs-CRITICAL: Failed assertion: !mismatch || igt_skip_crc_compare
(amd_color:10023) igt_core-INFO: Stack trace:
(amd_color:10023) igt_core-INFO: #0 ../lib/igt_core.c:1756 __igt_fail_assert()
(amd_color:10023) igt_core-INFO: #1 ../lib/igt_debugfs.c:492 igt_assert_crc_equal()
(amd_color:10023) igt_core-INFO: #2 ../tests/amdgpu/amd_color.c:349 __igt_unique____real_main378()
(amd_color:10023) igt_core-INFO: #3 ../tests/amdgpu/amd_color.c:378 main()
(amd_color:10023) igt_core-INFO: #4 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main()
(amd_color:10023) igt_core-INFO: #5 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
(amd_color:10023) igt_core-INFO: #6 ../sysdeps/x86_64/start.S:117 _start()
**** END ****
Subtest crtc-lut-accuracy: FAIL (0,162s)
```
## Hardware description:
- CPU: Intel i5-4460 (4) @ 3.400GHz
- GPU: AMD RX 5700 XT
- System Memory: 7.5G
- Display(s): 1
- Type of Display Connection: HDMI
## System information:
- Distro name and Version: Archcraft
- Kernel version: 5.18.0-rc7
- Custom kernel: self-compiled kernel from mainline
- AMD official driver version: N/A
## How to reproduce the issue:
You may reproduce the problem by running the following command:
```
build/tests/amdgpu/amd_color
```
## Attached files:
### Log files (for system lockups / game freezes / crashes)
- [dmesg.log](/uploads/8e54285693cdb44645672c555429843e/dmesg.log)
https://gitlab.freedesktop.org/drm/amd/-/issues/1546
RX 5700 XT (GFX10 NAVI 10): igt@amdgpu/amd_bypass@8bpc-bypass-mode - BUG: ker...
2024-01-11T08:18:51Z
Martin Roukala
RX 5700 XT (GFX10 NAVI 10): igt@amdgpu/amd_bypass@8bpc-bypass-mode - BUG: kernel NULL pointer dereference, address: 0000000000000000
## Brief summary of the problem:
[ 24.507617] [3419/3436] amdgpu/amd_bypass (8bpc-bypass-mode)
[ 34.481978] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 34.491956] #PF: supervisor instruction fet...
## Brief summary of the problem:
[ 24.507617] [3419/3436] amdgpu/amd_bypass (8bpc-bypass-mode)
[ 34.481978] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 34.491956] #PF: supervisor instruction fetch in kernel mode
[ 34.500276] #PF: error_code(0x0010) - not-present page
[ 34.508090] PGD 101be1067 P4D 101be1067 PUD 107ac8067 PMD 0
[ 34.516414] Oops: 0010 [#1] SMP NOPTI
[ 34.522739] CPU: 10 PID: 998 Comm: amd_bypass Not tainted 5.11.6-CI #55
[ 34.532336] Hardware name: Gigabyte Technology Co., Ltd. B550 AORUS ELITE/B550 AORUS ELITE, BIOS F2 07/07/2020
[ 34.547890] RIP: 0010:0x0
[ 34.553165] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[ 34.562723] RSP: 0018:ffffa5104165bb68 EFLAGS: 00010246
[ 34.570950] RAX: 0000000000000000 RBX: 0000000000000020 RCX: ffffa5104165bbfe
[ 34.583382] RDX: ffff9d990583da00 RSI: ffffa5104165bb70 RDI: ffff9d9903df39d8
[ 34.596256] RBP: 0000000000000001 R08: 0000000000000001 R09: 000000000000011a
[ 34.608715] R10: ffffa5104165ba80 R11: ffffa5104165ba84 R12: ffff9d9903df3d98
[ 34.621208] R13: ffffa5104165bbfe R14: 0000000000000000 R15: ffff9d9903df39d8
[ 34.633855] FS: 00007f19999dbf40(0000) GS:ffff9da01ec80000(0000) knlGS:0000000000000000
[ 34.647238] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 34.655977] CR2: ffffffffffffffd6 CR3: 0000000107a28000 CR4: 0000000000350ee0
[ 34.668428] Call Trace:
[ 34.673531] drm_dp_dpcd_access+0x6b/0x110
[ 34.680307] drm_dp_dpcd_read+0xb1/0xf0
[ 34.687588] drm_dp_start_crc+0x30/0xb0
[ 34.694089] amdgpu_dm_crtc_set_crc_source+0x246/0x390
[ 34.701893] crtc_crc_open+0x163/0x1f0
[ 34.708305] full_proxy_open+0x168/0x1e0
[ 34.714877] ? open_proxy_open+0xf0/0xf0
[ 34.721476] do_dentry_open+0x146/0x350
[ 34.727986] path_openat+0xb31/0xfc0
[ 34.734220] do_filp_open+0x83/0x130
[ 34.740461] ? getname_flags.part.0+0x24/0x1a0
[ 34.748646] ? kmem_cache_alloc+0xd5/0x1d0
[ 34.755407] do_sys_openat2+0x92/0x150
[ 34.761828] __x64_sys_openat+0x4f/0x90
[ 34.768341] do_syscall_64+0x33/0x40
[ 34.774601] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 34.782318] RIP: 0033:0x7f199b49d2a6
[ 34.788575] Code: c0 f6 c2 40 75 4e 89 d0 45 31 d2 25 00 00 41 00 3d 00 00 41 00 74 3d 64 8b 04 25 18 00 00 00 85 c0 75 61 b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 9e 00 00 00 48 8b 4c 24 38 64 48 33 0c 25
[ 34.815309] RSP: 002b:00007fff43e35490 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
[ 34.828540] RAX: ffffffffffffffda RBX: 00000000012002b0 RCX: 00007f199b49d2a6
[ 34.841008] RDX: 0000000000000000 RSI: 00007fff43e35520 RDI: 0000000000000006
[ 34.853510] RBP: 00007fff43e35520 R08: 0000000000000000 R09: 0000000000000000
[ 34.866142] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000012208a0
[ 34.878599] R13: 00007f1999971ffe R14: 0000000000000000 R15: 0000000000000000
[ 34.891419] Modules linked in:
[ 34.897117] CR2: 0000000000000000
[ 34.903099] ---[ end trace 14ddbdbe9b4c8b81 ]---
[ 34.910391] RIP: 0010:0x0
[ 34.915675] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
[ 34.925232] RSP: 0018:ffffa5104165bb68 EFLAGS: 00010246
[ 34.933343] RAX: 0000000000000000 RBX: 0000000000000020 RCX: ffffa5104165bbfe
[ 34.945803] RDX: ffff9d990583da00 RSI: ffffa5104165bb70 RDI: ffff9d9903df39d8
[ 34.958584] RBP: 0000000000000001 R08: 0000000000000001 R09: 000000000000011a
[ 34.971029] R10: ffffa5104165ba80 R11: ffffa5104165ba84 R12: ffff9d9903df3d98
[ 34.983453] R13: ffffa5104165bbfe R14: 0000000000000000 R15: ffff9d9903df39d8
[ 34.996107] FS: 00007f19999dbf40(0000) GS:ffff9da01ec80000(0000) knlGS:0000000000000000
[ 35.010234] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 35.018649] CR2: ffffffffffffffd6 CR3: 0000000107a28000 CR4: 0000000000350ee0
## Hardware description:
- CPU: AMD Ryzen 9 3900XT 12-Core Processor
- GPU: GFX10, RX 5700 XT
- System Memory: 32 GB
- Display(s): 1
- Type of Display Connection: HDMI (Full HD)
## System information:
- Distro name and Version: IGT's container registry.freedesktop.org/drm/igt-gpu-tools/igt:master
- Kernel version: v5.6.11
- Custom kernel: self-compiled kernel, with one additional unrelated patch to the init process
- AMD package version: No package
## How to reproduce the issue:
# docker run --privileged registry.freedesktop.org/drm/igt-gpu-tools/igt:master igt_runner -t amdgpu/amd_bypass@8bpc-bypass-mode -o results/
## Attached files:
- [Boot dmesg](/uploads/903e6b65ba1f4851fc3dac2612214d82/gfx10_dmesg)
https://gitlab.freedesktop.org/drm/amd/-/issues/1545
RX 5700 XT (GFX10 NAVI 10): igt@kms_color@pipe-invalid-degamma-lut-sizes - re...
2023-05-25T04:02:02Z
Martin Roukala
RX 5700 XT (GFX10 NAVI 10): igt@kms_color@pipe-invalid-degamma-lut-sizes - refcount_t: underflow; use-after-free.
## Brief summary of the problem:
When running the IGT test `igt@kms_color@pipe-invalid-degamma-lut-sizes`, I get the following `refcount_t: underflow; use-after-free` warning:
[ 21.800751] [3318/3436] kms_color (pipe-invalid-dega...
## Brief summary of the problem:
When running the IGT test `igt@kms_color@pipe-invalid-degamma-lut-sizes`, I get the following `refcount_t: underflow; use-after-free` warning:
[ 21.800751] [3318/3436] kms_color (pipe-invalid-degamma-lut-sizes)
[ 21.921468] ------------[ cut here ]------------
[ 21.929832] refcount_t: underflow; use-after-free.
[ 21.937301] WARNING: CPU: 21 PID: 887 at lib/refcount.c:28 refcount_warn_saturate+0xa6/0xf0
[ 21.950988] Modules linked in:
[ 21.956771] CPU: 21 PID: 887 Comm: kms_color Not tainted 5.11.6-CI #55
[ 21.966355] Hardware name: Gigabyte Technology Co., Ltd. B550 AORUS ELITE/B550 AORUS ELITE, BIOS F2 07/07/2020
[ 21.981985] RIP: 0010:refcount_warn_saturate+0xa6/0xf0
[ 21.989802] Code: 05 db 83 c3 03 01 e8 83 6f 87 00 0f 0b c3 80 3d c9 83 c3 03 00 75 95 48 c7 c7 a0 09 39 9f c6 05 b9 83 c3 03 01 e8 64 6f 87 00 <0f> 0b c3 80 3d a8 83 c3 03 00 0f 85 72 ff ff ff 48 c7 c7 f8 09 39
[ 22.016821] RSP: 0018:ffff99bd422d7c90 EFLAGS: 00010286
[ 22.024714] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 22.037193] RDX: ffff93a91ef668d0 RSI: ffff93a91ef578f0 RDI: ffff93a91ef578f0
[ 22.050494] RBP: ffff93a217ea0048 R08: ffffffff9f72f4a8 R09: 0000000000009ffb
[ 22.062967] R10: 00000000ffffe000 R11: 3fffffffffffffff R12: 0000000000000000
[ 22.075789] R13: ffff93a217ea0000 R14: 00000000ffffffff R15: 0000000000000006
[ 22.088259] FS: 0000000000000000(0000) GS:ffff93a91ef40000(0000) knlGS:0000000000000000
[ 22.101978] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 22.110409] CR2: 00007feccbc30fc0 CR3: 000000044140a000 CR4: 0000000000350ee0
[ 22.122870] Call Trace:
[ 22.127946] dc_resource_state_destruct+0x49/0x70
[ 22.135826] dc_release_state+0x21/0x40
[ 22.142336] dm_atomic_destroy_state+0x17/0x20
[ 22.149451] drm_atomic_state_default_clear+0x223/0x2d0
[ 22.157360] __drm_atomic_state_free+0x51/0x90
[ 22.164485] drm_client_modeset_commit_atomic+0x1ef/0x220
[ 22.172767] drm_client_modeset_commit_locked+0x51/0x150
[ 22.180827] drm_client_modeset_commit+0x1f/0x40
[ 22.188817] drm_fb_helper_lastclose+0x3e/0x80
[ 22.195939] amdgpu_driver_lastclose_kms+0x5/0x10
[ 22.203320] drm_release+0xd4/0x110
[ 22.209879] __fput+0x87/0x230
[ 22.215594] task_work_run+0x57/0x90
[ 22.221851] do_exit+0x35e/0xa20
[ 22.227768] do_group_exit+0x2e/0x90
[ 22.234815] __x64_sys_exit_group+0xf/0x10
[ 22.241591] do_syscall_64+0x33/0x40
[ 22.247837] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 22.255587] RIP: 0033:0x7feccd50b416
[ 22.261849] Code: Unable to access opcode bytes at RIP 0x7feccd50b3ec.
[ 22.271347] RSP: 002b:00007ffc20037e28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[ 22.284260] RAX: ffffffffffffffda RBX: 00007feccd601470 RCX: 00007feccd50b416
[ 22.296721] RDX: 0000000000000062 RSI: 000000000000003c RDI: 0000000000000062
[ 22.309395] RBP: 0000000000000062 R08: 00000000000000e7 R09: ffffffffffffff80
[ 22.321874] R10: 00007feccc48e84e R11: 0000000000000246 R12: 00007feccd601470
[ 22.334358] R13: 0000000000000004 R14: 00007feccd604e68 R15: 0000000000000000
[ 22.346805] ---[ end trace 80680f8111d9e4b0 ]---
## Hardware description:
- CPU: AMD Ryzen 9 3900XT 12-Core Processor
- GPU: GFX10, RX 5700 XT
- System Memory: 32 GB
- Display(s): 1
- Type of Display Connection: HDMI (Full HD)
## System information:
- Distro name and Version: IGT's container registry.freedesktop.org/drm/igt-gpu-tools/igt:master
- Kernel version: v5.6.11
- Custom kernel: self-compiled kernel, with one additional unrelated patch to the init process
- AMD package version: No package
## How to reproduce the issue:
You may reproduce the problem by running the following command:
# docker run --privileged registry.freedesktop.org/drm/igt-gpu-tools/igt:master igt_runner -t kms_color@pipe-invalid-degamma-lut-sizes -o results/
## Attached files:
- [Boot dmesg](/uploads/903e6b65ba1f4851fc3dac2612214d82/gfx10_dmesg)
https://gitlab.freedesktop.org/drm/amd/-/issues/1544
KABINI (GFX7 APU): igt@kms_flip@flip-vs-rmfb(-interruptible) - BUG: kernel NU...
2023-05-25T04:02:03Z
Martin Roukala
KABINI (GFX7 APU): igt@kms_flip@flip-vs-rmfb(-interruptible) - BUG: kernel NULL pointer dereference, address: 0000000000000048
## Brief summary of the problem:
When running the IGT test `igt@kms_flip@flip-vs-rmfb` or `igt@kms_flip@flip-vs-rmfb-interruptible`, I get the following NULL pointer dereference:
[ 966.629353] [0837/3436] kms_flip (flip-vs-rmfb)
...
## Brief summary of the problem:
When running the IGT test `igt@kms_flip@flip-vs-rmfb` or `igt@kms_flip@flip-vs-rmfb-interruptible`, I get the following NULL pointer dereference:
[ 966.629353] [0837/3436] kms_flip (flip-vs-rmfb)
[ 984.180968] BUG: kernel NULL pointer dereference, address: 0000000000000048
[ 984.185000] #PF: supervisor read access in kernel mode
[ 984.188993] #PF: error_code(0x0000) - not-present page
[ 984.192989] PGD 10a8dc067 P4D 10a8dc067 PUD 102f5a067 PMD 0
[ 984.196991] Oops: 0000 [#1] SMP NOPTI
[ 984.200987] CPU: 0 PID: 1656 Comm: kworker/0:0 Not tainted 5.11.6-CI-dirty #56
[ 984.208971] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 905S3G/906S3G/915S3G/NP905S3G-K03SE, BIOS P09RBV.078.131017.FL 10/17/2013
[ 984.216960] Workqueue: events amdgpu_display_flip_work_func
[ 984.220963] RIP: 0010:dce_v8_0_page_flip+0x3b/0xc0
[ 984.224964] Code: 89 fd 53 48 8b 9c f7 90 63 00 00 48 8b 83 80 00 00 00 4c 8b a8 a8 00 00 00 8b 83 f8 03 00 00 8d b0 12 1a 00 00 e8 d5 e4 fb ff <49> 8b 45 48 31 d2 8b bb f8 03 00 00 0f b6 48 06 41 8b 45 58 8d b7
[ 984.236943] RSP: 0018:ffffab044331fe30 EFLAGS: 00010086
[ 984.240940] RAX: 0000000000000000 RBX: ffffa419c0920000 RCX: 0000000000000000
[ 984.248917] RDX: 0000000000000000 RSI: 0000000000001a12 RDI: ffffa419c1280000
[ 984.256897] RBP: ffffa419c1280000 R08: ffffa419c004c6b0 R09: ffffa419caaad7ec
[ 984.264878] R10: 0000000000000018 R11: 0000000000000018 R12: 0000000f01800000
[ 984.272859] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa419c3278e00
[ 984.280841] FS: 0000000000000000(0000) GS:ffffa419fb400000(0000) knlGS:0000000000000000
[ 984.288820] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 984.292814] CR2: 0000000000000048 CR3: 00000001097ec000 CR4: 00000000000406f0
[ 984.300794] Call Trace:
[ 984.304790] amdgpu_display_flip_work_func+0x1b0/0x280
[ 984.308788] process_one_work+0x1cf/0x360
[ 984.312784] worker_thread+0x48/0x3c0
[ 984.316778] ? rescuer_thread+0x3b0/0x3b0
[ 984.320773] kthread+0x116/0x130
[ 984.324769] ? kthread_create_worker_on_cpu+0x60/0x60
[ 984.328767] ret_from_fork+0x22/+1035.917s: Setting up the boot configuration
[ 984.332764] Modules linked in:
[ 984.336756] CR2: 0000000000000048
[ 984.340750] ---[ end trace 3bcba26a43e55762 ]---
[ 984.344744] RIP: 0010:dce_v8_0_page_flip+0x3b/0xc0
[ 984.348742] Code: 89 fd 53 48 8b 9c f7 90 63 00 00 48 8b 83 80 00 00 00 4c 8b a8 a8 00 00 00 8b 83 f8 03 00 00 8d b0 12 1a 00 00 e8 d5 e4 fb ff <49> 8b 45 48 31 d2 8b bb f8 03 00 00 0f b6 48 06 41 8b 45 58 8d b7
[ 984.360721] RSP: 0018:ffffab044331fe30 EFLAGS: 00010086
[ 984.364715] RAX: 0000000000000000 RBX: ffffa419c0920000 RCX: 0000000000000000
[ 984.372693] RDX: 0000000000000000 RSI: 0000000000001a12 RDI: ffffa419c1280000
[ 984.380673] RBP: ffffa419c1280000 R08: ffffa419c004c6b0 R09: ffffa419caaad7ec
[ 984.388654] R10: 0000000000000018 R11: 0000000000000018 R12: 0000000f01800000
[ 984.396632] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa419c3278e00
[ 984.404612] FS: 0000000000000000(0000) GS:ffffa419fb400000(0000) knlGS:0000000000000000
[ 984.412591] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 984.416587] CR2: 0000000000000048 CR3: 00000001097ec000 CR4: 00000000000406f0
## Hardware description:
- CPU: AMD Quad-Core Processor (up to 1.4GHz) (family: 0x16, model: 0x0, stepping: 0x1)
- GPU: KABINI, GFX 7 APU
- System Memory: 4G
- Display(s): 1
- Type of Diplay Connection: LVDS
## System information:
- Distro name and Version: IGT's container `registry.freedesktop.org/drm/igt-gpu-tools/igt:master`
- Kernel version: v5.11.6
- Custom kernel: Self compiled v5.11.6, with an unrelated patch to init to wait for a USB-based serial console to be up
- AMD package version: No package
## How to reproduce the issue:
The following command will reproduce the issue, provided you are running a kernel with the same bug:
# docker run --privileged registry.freedesktop.org/drm/igt-gpu-tools/igt:master igt_runner -t kms_flip@flip-vs-rmfb -o results/
## Attached files:
* [Boot dmesg](/uploads/7d6e513f613a3f6d5fb0882a3698f69a/gfx7_dmesg)
https://gitlab.freedesktop.org/drm/amd/-/issues/1048
igt@amdgpu/amd_basic@userptr - dmesg-warn - DEBUG_LOCKS_WARN_ON(lock->magic !...
2021-07-13T18:53:18Z
LAKSHMINARAYANA VUDUM
igt@amdgpu/amd_basic@userptr - dmesg-warn - DEBUG_LOCKS_WARN_ON(lock->magic != lock)
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7586/fi-kbl-8809g/igt@amdgpu_amd_basic@userptr.html
````
<4> [180.914698] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
<4> [180.914703] WARNING: CPU: 2 PID: 4066 at kernel/locking/mutex.c:941 _...
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7586/fi-kbl-8809g/igt@amdgpu_amd_basic@userptr.html
````
<4> [180.914698] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
<4> [180.914703] WARNING: CPU: 2 PID: 4066 at kernel/locking/mutex.c:941 __mutex_lock+0x66c/0x9c0
<4> [180.914704] Modules linked in: vgem snd_hda_codec_realtek snd_hda_codec_generic amdgpu mei_hdcp x86_pkg_temp_thermal coretemp snd_hda_codec_hdmi crct10dif_pclmul crc32_pclmul snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core ghash_clmulni_intel btusb btrtl btbcm btintel bluetooth igb e1000e snd_pcm ptp gpu_sched pps_core ttm ecdh_generic ecc prime_numbers mei_me mei intel_lpss_pci pinctrl_sunrisepoint pinctrl_intel [last unloaded: i915]
<4> [180.914714] CPU: 2 PID: 4066 Comm: amd_basic Tainted: G U 5.5.0-rc2-CI-CI_DRM_7586+ #1
<4> [180.914731] Hardware name: Intel Corporation NUC8i7HVK/NUC8i7HVB, BIOS HNKBLi70.86A.0047.2018.0718.1706 07/18/2018
<4> [180.914733] RIP: 0010:__mutex_lock+0x66c/0x9c0
<4> [180.914735] Code: c0 0f 84 1e fa ff ff 44 8b 05 50 2d d4 00 45 85 c0 0f 85 0e fa ff ff 48 c7 c6 f1 c9 2c 82 48 c7 c7 0a b5 2b 82 e8 a4 9f 6a ff <0f> 0b e9 f4 f9 ff ff 41 f6 c5 04 0f 84 79 fc ff ff 4c 89 ea 83 e2
<4> [180.914736] RSP: 0018:ffffc900003e3a30 EFLAGS: 00010282
<4> [180.914737] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
<4> [180.914738] RDX: 0000000080000001 RSI: 0000000000000000 RDI: ffffffff8112e35c
<4> [180.914739] RBP: ffffc900003e3ae0 R08: 0000000000000000 R09: 000000000003ae40
<4> [180.914740] R10: ffffc900003e3b00 R11: 0000000000000fe2 R12: 0000000000000000
<4> [180.914762] R13: 0000000000000002 R14: ffff88824f8be5c0 R15: 0000000000000000
<4> [180.914763] FS: 00007f8eafbae500(0000) GS:ffff888276b00000(0000) knlGS:0000000000000000
<4> [180.914764] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [180.914765] CR2: 00007f8eafbe2000 CR3: 0000000274974002 CR4: 00000000003606e0
<4> [180.914766] Call Trace:
<4> [180.914769] ? __module_address+0x23/0xe0
<4> [180.914794] ? amdgpu_cs_ioctl+0x14ea/0x1ee0 [amdgpu]
<4> [180.914797] ? rcu_read_lock_sched_held+0x4d/0x80
<4> [180.914799] ? dma_fence_init+0x10c/0x140
<4> [180.914822] ? amdgpu_cs_ioctl+0x14ea/0x1ee0 [amdgpu]
<4> [180.914859] amdgpu_cs_ioctl+0x14ea/0x1ee0 [amdgpu]
<4> [180.914885] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
<4> [180.914888] drm_ioctl_kernel+0xa7/0xf0
<4> [180.914890] drm_ioctl+0x2e1/0x390
<4> [180.914911] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
<4> [180.914913] ? __pm_runtime_resume+0x4f/0x80
<4> [180.914915] ? _raw_spin_unlock_irqrestore+0x47/0x60
<4> [180.914917] ? lockdep_hardirqs_on+0xe3/0x1c0
<4> [180.914918] ? _raw_spin_unlock_irqrestore+0x34/0x60
<4> [180.914937] amdgpu_drm_ioctl+0x44/0x80 [amdgpu]
<4> [180.914939] do_vfs_ioctl+0x9c/0x730
<4> [180.914942] ? __do_page_fault+0x2da/0x4f0
<4> [180.914944] ksys_ioctl+0x35/0x60
<4> [180.914946] __x64_sys_ioctl+0x11/0x20
<4> [180.914948] do_syscall_64+0x4f/0x220
<4> [180.914949] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [180.914950] RIP: 0033:0x7f8eaee2c5d7
<4> [180.914952] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
<4> [180.914953] RSP: 002b:00007fffbf5f7df8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [180.914954] RAX: ffffffffffffffda RBX: 000056376c025d00 RCX: 00007f8eaee2c5d7
<4> [180.914955] RDX: 00007fffbf5f7f20 RSI: 00000000c0186444 RDI: 0000000000000006
<4> [180.914956] RBP: 00007fffbf5f7f20 R08: 000056376c025d08 R09: 0000000000000002
<4> [180.914957] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c0186444
<4> [180.914958] R13: 0000000000000006 R14: 00007fffbf5f7e40 R15: 000056376c025230
<4> [180.914961] irq event stamp: 41311
<4> [180.914963] hardirqs last enabled at (41311): [<ffffffff81247a6d>] __slab_alloc.isra.83.constprop.88+0x4d/0x70
<4> [180.914965] hardirqs last disabled at (41310): [<ffffffff81247a39>] __slab_alloc.isra.83.constprop.88+0x19/0x70
<4> [180.914967] softirqs last enabled at (41220): [<ffffffff81e00385>] __do_softirq+0x385/0x47f
<4> [180.914968] softirqs last disabled at (40297): [<ffffffff810b932a>] irq_exit+0xba/0xc0
<4> [180.914969] ---[ end trace 7ccbaa7c67fd9538 ]---
````