2022-03-03 15:41:00

by kernel test robot

[permalink] [raw]
Subject: [mm/page_alloc] f92b35cab1: WARNING:at_drivers/gpu/drm/i915/i915_vma.c:#i915_ggtt_pin[i915]



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: f92b35cab13f08aaae219a520415690f330c0691 ("mm/page_alloc: Demote local_lock_irqsave to local_lock")
https://git.kernel.org/cgit/linux/kernel/git/mel/linux.git mm-pcpllist-v1r2

in testcase: kernel-selftests
version: kernel-selftests-x86_64-bea92cb0-1_20220228
with following parameters:

group: group-00
ucode: 0xec

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with 16G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>


kern :warn : [ 42.778236] ------------[ cut here ]------------
kern :warn : [ 42.783553] WARN_ON(lock_is_held(&(&(vma->obj->base.resv)->lock.base)->dep_map))
kern :warn : [ 42.783593] WARNING: CPU: 2 PID: 244 at drivers/gpu/drm/i915/i915_vma.c:1432 i915_ggtt_pin+0x342/0x440 [i915]
kern :warn : [ 42.802549] Modules linked in: btrfs i915(+) blake2b_generic xor raid6_pq zstd_compress libcrc32c sd_mod t10_pi sg ipmi_devintf ipmi_msghandler intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp intel_gtt hp_wmi coretemp sparse_keymap ttm platform_profile crct10dif_pclmul crc32_pclmul rfkill wmi_bmof crc32c_intel ghash_clmulni_intel drm_kms_helper mei_wdt rapl ahci libahci syscopyarea mei_me sysfillrect intel_cstate sysimgblt i2c_i801 libata intel_uncore serio_raw mei i2c_smbus wmi intel_pch_thermal fb_sys_fops video intel_pmc_core tpm_infineon acpi_pad ip_tables
kern :warn : [ 42.854760] CPU: 2 PID: 244 Comm: systemd-udevd Not tainted 5.17.0-rc5-00015-gf92b35cab13f #1
kern :warn : [ 42.863984] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017
kern :warn : [ 42.872942] RIP: 0010:i915_ggtt_pin+0x342/0x440 [i915]
kern :warn : [ 42.879070] Code: e9 59 ff ff ff be 02 00 00 00 4c 89 ff e8 96 e5 8f c1 e9 47 ff ff ff 48 c7 c6 20 86 e3 c0 48 c7 c7 80 82 e3 c0 e8 e2 dc fb c2 <0f> 0b e9 de fd ff ff be 01 00 00 00 4c 89 ff e8 6a e5 8f c1 e9 ba
kern :warn : [ 42.898497] RSP: 0018:ffffc9000119f210 EFLAGS: 00010286
kern :warn : [ 42.904432] RAX: 0000000000000000 RBX: ffff888121a85d80 RCX: 0000000000000000
kern :warn : [ 42.912262] RDX: 0000000000000027 RSI: 0000000000000004 RDI: fffff52000233e34
kern :warn : [ 42.920099] RBP: ffff8881b092a940 R08: 0000000000000001 R09: ffffed106cc64fde
kern :warn : [ 42.927935] R10: ffff888366327eeb R11: ffffed106cc64fdd R12: 00000000b092a940
kern :warn : [ 42.935762] R13: 0000000000000000 R14: 0000000000000020 R15: 0000000000000000
kern :warn : [ 42.943597] FS: 00007f8284824d40(0000) GS:ffff888366300000(0000) knlGS:0000000000000000
kern :warn : [ 42.952381] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern :warn : [ 42.958838] CR2: 0000561067bbc068 CR3: 0000000435cca005 CR4: 00000000003706e0
kern :warn : [ 42.966676] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kern :warn : [ 42.974506] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kern :warn : [ 42.982336] Call Trace:
kern :warn : [ 42.985506] <TASK>
kern :warn : [ 42.988321] ? lock_release+0x4b4/0x680
kern :warn : [ 42.992873] ? lock_release+0x4b4/0x680
kern :warn : [ 42.997428] ? __i915_ggtt_pin+0x1c0/0x1c0 [i915]
kern :warn : [ 43.003121] ? rwlock_bug+0xc0/0xc0
kern :warn : [ 43.007928] ? do_raw_spin_unlock+0x55/0x240
kern :warn : [ 43.012907] ? _raw_spin_unlock+0x1f/0x40
kern :warn : [ 43.017632] ? vma_create+0x97e/0xf80 [i915]
kern :warn : [ 43.022917] ? i915_gem_object_create_region+0x14a/0x300 [i915]
kern :warn : [ 43.029820] intel_gt_init+0x110/0x640 [i915]
kern :warn : [ 43.035159] i915_gem_init+0x294/0x400 [i915]
kern :warn : [ 43.040469] ? intel_modeset_init_nogem+0x5ac/0x900 [i915]
kern :warn : [ 43.046920] i915_driver_probe+0x456/0x11c0 [i915]
kern :warn : [ 43.052673] ? i915_print_iommu_status+0x100/0x100 [i915]
kern :warn : [ 43.059010] ? rcu_read_lock_sched_held+0x5f/0x100
kern :warn : [ 43.064515] ? drm_privacy_screen_get+0x285/0x300
kern :warn : [ 43.069937] i915_pci_probe+0x111/0x380 [i915]
kern :warn : [ 43.075347] ? rwlock_bug+0xc0/0xc0
kern :warn : [ 43.080165] ? i915_pci_remove+0x80/0x80 [i915]
kern :warn : [ 43.085648] ? wait_for_completion+0x2c0/0x2c0
kern :warn : [ 43.090796] ? _raw_spin_unlock_irqrestore+0x2d/0x40
kern :warn : [ 43.096471] ? trace_hardirqs_on+0x41/0x140
kern :warn : [ 43.101367] ? _raw_spin_unlock_irqrestore+0x2d/0x40
kern :warn : [ 43.107041] ? i915_pci_remove+0x80/0x80 [i915]
kern :warn : [ 43.112528] local_pci_probe+0xde/0x180
kern :warn : [ 43.117090] pci_device_probe+0x237/0x680
kern :warn : [ 43.121807] ? kernfs_put+0x29/0x500
kern :warn : [ 43.126087] ? pci_device_remove+0x200/0x200
kern :warn : [ 43.131057] ? kernfs_create_link+0x175/0x240
kern :warn : [ 43.136120] ? sysfs_do_create_link_sd+0x87/0x100
kern :warn : [ 43.142136] really_probe+0x1c5/0xa40
kern :warn : [ 43.147118] __driver_probe_device+0x2ab/0x480
kern :warn : [ 43.152265] ? _raw_spin_unlock_irqrestore+0x2d/0x40
kern :warn : [ 43.157933] driver_probe_device+0x49/0x140
kern :warn : [ 43.162817] __driver_attach+0x16d/0x340
kern :warn : [ 43.167443] ? __device_attach_driver+0x280/0x280
kern :warn : [ 43.172838] bus_for_each_dev+0x120/0x1c0
kern :warn : [ 43.177544] ? lockdep_init_map_type+0x2c3/0x780
kern :warn : [ 43.182857] ? subsys_dev_iter_exit+0x40/0x40
kern :warn : [ 43.187921] bus_add_driver+0x39b/0x580
kern :warn : [ 43.192459] driver_register+0x18f/0x340
kern :warn : [ 43.197088] i915_init+0x59/0x177 [i915]
kern :warn : [ 43.201982] ? 0xffffffffc1158000
kern :warn : [ 43.205993] do_one_initcall+0xbb/0x400
kern :warn : [ 43.210528] ? perf_trace_initcall_level+0x400/0x400
kern :warn : [ 43.216191] ? rcu_read_lock_bh_held+0xc0/0xc0
kern :warn : [ 43.221329] ? kasan_unpoison+0x23/0x80
kern :warn : [ 43.225859] ? __kasan_slab_alloc+0x2c/0x80
kern :warn : [ 43.230740] ? kasan_unpoison+0x23/0x80
kern :warn : [ 43.235283] do_init_module+0x1b1/0x740
kern :warn : [ 43.239827] load_module+0x3483/0x4700
kern :warn : [ 43.244289] ? post_relocation+0x1600/0x1600
kern :warn : [ 43.249260] ? ima_read_file+0x180/0x180
kern :warn : [ 43.253888] ? kernel_read_file+0x286/0x6c0
kern :warn : [ 43.258783] ? __do_sys_finit_module+0x117/0x1c0
kern :warn : [ 43.264100] __do_sys_finit_module+0x117/0x1c0
kern :warn : [ 43.269246] ? __ia32_sys_init_module+0xc0/0xc0
kern :warn : [ 43.274477] ? up_write+0x14d/0x480
kern :warn : [ 43.278674] ? __seccomp_filter+0x15d/0x1080
kern :warn : [ 43.283653] ? rcu_read_lock_bh_held+0xc0/0xc0
kern :warn : [ 43.288798] ? rcu_read_lock_held_common+0xe/0xc0
kern :warn : [ 43.294202] ? rcu_read_lock_sched_held+0x5f/0x100
kern :warn : [ 43.299698] do_syscall_64+0x5c/0x80
kern :warn : [ 43.303981] ? do_syscall_64+0x69/0x80
kern :warn : [ 43.308431] ? trace_hardirqs_on_prepare+0x27/0x180
kern :warn : [ 43.314013] ? do_syscall_64+0x69/0x80
kern :warn : [ 43.318463] ? trace_hardirqs_on_prepare+0x27/0x180
kern :warn : [ 43.324037] ? do_syscall_64+0x69/0x80
kern :warn : [ 43.328490] ? do_syscall_64+0x69/0x80
kern :warn : [ 43.332939] entry_SYSCALL_64_after_hwframe+0x44/0xae
kern :warn : [ 43.338690] RIP: 0033:0x7f828500ef59
kern :warn : [ 43.342966] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
kern :warn : [ 43.362364] RSP: 002b:00007ffccedd4c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
kern :warn : [ 43.370615] RAX: ffffffffffffffda RBX: 000055fd648a3a20 RCX: 00007f828500ef59
kern :warn : [ 43.378445] RDX: 0000000000000000 RSI: 00007f8284f13cad RDI: 0000000000000015
kern :warn : [ 43.386264] RBP: 00007f8284f13cad R08: 0000000000000000 R09: 0000000000000000
kern :warn : [ 43.394083] R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000000
kern :warn : [ 43.401905] R13: 000055fd648af000 R14: 0000000000020000 R15: 000055fd648a3a20
kern :warn : [ 43.409730] </TASK>
kern :warn : [ 43.412617] irq event stamp: 0
kern :warn : [ 43.416369] hardirqs last enabled at (0): [<0000000000000000>] 0x0
kern :warn : [ 43.423323] hardirqs last disabled at (0): [<ffffffff8136d713>] copy_process+0x1453/0x5f80
kern :warn : [ 43.432271] softirqs last enabled at (0): [<ffffffff8136d759>] copy_process+0x1499/0x5f80
kern :warn : [ 43.441223] softirqs last disabled at (0): [<0000000000000000>] 0x0
kern :warn : [ 43.448182] ---[ end trace 0000000000000000 ]---



To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file

# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.



---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation

Thanks,
Oliver Sang


Attachments:
(No filename) (9.80 kB)
config-5.17.0-rc5-00015-gf92b35cab13f (168.51 kB)
job-script (5.97 kB)
kmsg.xz (25.48 kB)
kernel-selftests (9.04 kB)
job.yaml (5.03 kB)
reproduce (204.00 B)
Download all attachments