Zhenyu Wang
72aabfb862
drm/i915/gvt: Add mutual lock for ppgtt mm LRU list
...
This adds mutex to guard against update of global ppgtt mm LRU list.
To resolve error found as below warning.
[73130.012162] ------------[ cut here ]------------
[73130.012168] list_add corruption. prev->next should be next (ffff995f970cca50), but was 0000000000000000. (prev=ffff995f0dc5bdf8).
[73130.012181] WARNING: CPU: 3 PID: 82 at lib/list_debug.c:28 __list_add_valid+0x4d/0x70
[73130.012183] Modules linked in: btrfs(E) xor(E) zstd_decompress(E) zstd_compress(E) raid6_pq(E) dm_mod(E) kvmgt(E) fuse(E) xt_addrtype(E) nft_compat(E) xt_conntrack(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) libcrc32c(E) br_netfilter(E) bridge(E) stp(E) llc(E) overlay(E) devlink(E) nf_tables(E) nfnetlink(E) loop(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) crct10dif_pclmul(E) crc32_pclmul(E) ghash_clmulni_intel(E) mei_me(E) aesni_intel(E) aes_x86_64(E) crypto_simd(E) cryptd(E) glue_helper(E) intel_cstate(E) intel_uncore(E) mei(E) intel_pch_thermal(E) intel_rapl_perf(E) pcspkr(E) iTCO_wdt(E) iTCO_vendor_support(E) idma64(E) sg(E) virt_dma(E) acpi_pad(E) evdev(E) binfmt_misc(E) ip_tables(E) x_tables(E) ipv6(E) autofs4(E) hid_generic(E) usbhid(E) hid(E) ext4(E) crc32c_generic(E) crc16(E) mbcache(E) jbd2(E) fscrypto(E) xhci_pci(E) sdhci_pci(E) cqhci(E) intel_lpss_pci(E) intel_lpss(E) crc32c_intel(E) xhci_hcd(E) sdhci(E) i2c_i801(E) e1000e(E) mmc_core(E)
[73130.012218] ptp(E) pps_core(E) usbcore(E) mfd_core(E) sd_mod(E) fan(E) thermal(E)
[73130.012227] CPU: 3 PID: 82 Comm: gvt workload 0 Tainted: G W E 5.0.0-rc7-staging-190226+ #282
[73130.012228] Hardware name: /NUC6i5SYB, BIOS SYSKLi35.86A.0039.2016.0316.1747 03/16/2016
[73130.012232] RIP: 0010:__list_add_valid+0x4d/0x70
[73130.012234] Code: c3 48 89 d1 48 c7 c7 e0 82 91 bb 48 89 c2 e8 44 8a cc ff 0f 0b 31 c0 c3 48 89 c1 4c 89 c6 48 c7 c7 30 83 91 bb e8 2d 8a cc ff <0f> 0b 31 c0 c3 48 89 f2 4c 89 c1 48 89 fe 48 c7 c7 80 83 91 bb e8
[73130.012236] RSP: 0018:ffffa4924107fdd0 EFLAGS: 00010286
[73130.012238] RAX: 0000000000000000 RBX: ffff995d8a5ccf00 RCX: 0000000000000006
[73130.012240] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff995faad96680
[73130.012241] RBP: 0000000000000000 R08: 0000000000213a28 R09: 0000000000000084
[73130.012243] R10: 0000000000000000 R11: ffffa4924107fc70 R12: ffff995d8a5ccf78
[73130.012245] R13: ffff995f970c8000 R14: ffff995f0dc5bdf8 R15: ffff995f970cca50
[73130.012247] FS: 0000000000000000(0000) GS:ffff995faad80000(0000) knlGS:0000000000000000
[73130.012249] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[73130.012250] CR2: 00000222e1891000 CR3: 0000000116848002 CR4: 00000000003626e0
[73130.012252] Call Trace:
[73130.012258] intel_vgpu_pin_mm+0x7a/0xa0
[73130.012262] workload_thread+0x683/0x12a0
[73130.012266] ? do_wait_intr_irq+0xb0/0xb0
[73130.012269] ? finish_wait+0x80/0x80
[73130.012271] ? intel_vgpu_clean_workloads+0x110/0x110
[73130.012274] kthread+0x116/0x130
[73130.012276] ? kthread_bind+0x30/0x30
[73130.012280] ret_from_fork+0x35/0x40
[73130.012285] WARNING: CPU: 3 PID: 82 at lib/list_debug.c:28 __list_add_valid+0x4d/0x70
[73130.012286] ---[ end trace 458a2e792eec21c0 ]---
v2:
- simplify lock handling
Reviewed-by: Xiong Zhang <xiong.y.zhang@intel.com>
Cc: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2019-03-04 14:45:28 +08:00
..
2019-03-04 14:45:28 +08:00
2018-12-28 12:11:47 -08:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-02-06 11:41:40 -08:00
2018-12-04 12:23:22 +00:00
2018-12-05 13:50:11 +02:00
2018-12-12 12:27:44 +02:00
2018-11-20 12:49:24 +02:00
2018-03-09 22:21:41 +00:00
2018-03-09 22:21:41 +00:00
2018-08-17 11:22:15 +02:00
2018-12-04 12:23:22 +00:00
2018-10-03 14:27:16 +01:00
2018-06-20 15:59:34 +02:00
2018-07-09 13:55:41 +01:00
2019-01-04 12:56:09 -08:00
2018-02-09 22:29:02 +00:00
2018-11-20 10:09:27 +02:00
2018-11-06 17:17:50 +02:00
2018-02-16 14:12:48 +00:00
2018-07-26 12:31:02 +01:00
2018-07-06 18:22:37 +01:00
2018-02-21 20:57:22 +00:00
2018-07-11 13:56:16 +01:00
2018-09-20 16:43:17 +01:00
2017-12-07 23:26:55 +00:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-10-18 10:10:12 +01:00
2017-11-30 10:11:49 +02:00
2017-10-07 10:11:41 +01:00
2018-12-12 12:27:44 +02:00
2018-11-23 13:55:19 +00:00
2019-01-03 18:57:57 -08:00
2018-11-09 10:49:39 -08:00
2017-12-22 11:12:15 +00:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-11-19 13:19:04 +02:00
2018-09-27 12:05:31 +01:00
2018-12-03 14:55:41 -08:00
2019-01-03 18:57:57 -08:00
2018-08-15 17:39:07 -07:00
2018-06-05 16:45:01 +01:00
2018-06-07 10:24:50 +08:00
2019-01-03 18:57:57 -08:00
2018-03-08 10:07:18 +00:00
2018-12-03 15:54:49 +02:00
2018-11-27 13:03:18 +00:00
2018-10-01 20:34:24 +01:00
2018-10-01 20:34:24 +01:00
2018-10-01 20:34:24 +01:00
2018-07-16 11:23:45 +01:00
2017-09-29 12:30:17 +01:00
2018-12-04 12:13:48 +00:00
2018-12-04 12:13:48 +00:00
2018-09-26 13:32:03 +01:00
2018-12-03 18:18:20 +02:00
2018-05-02 23:57:18 +01:00
2018-11-16 08:38:21 +00:00
2017-11-02 11:10:55 +01:00
2018-06-11 14:03:47 +01:00
2018-11-29 22:00:49 +02:00
2018-06-05 21:11:20 +01:00
2018-06-05 16:57:01 +03:00
2018-11-20 13:14:08 +02:00
2018-08-28 18:49:33 +03:00
2018-12-03 15:55:27 +02:00
2018-06-14 15:59:09 +03:00
2018-11-28 21:51:51 +02:00
2018-11-28 21:51:50 +02:00
2018-11-15 16:02:47 +02:00
2018-12-03 14:55:39 -08:00
2018-12-03 14:34:08 +00:00
2018-11-13 16:37:16 -08:00
2018-10-15 16:01:50 +03:00
2018-11-15 16:36:58 -08:00
2018-10-17 09:36:43 +03:00
2018-10-15 16:01:49 +03:00
2018-11-20 14:14:18 -08:00
2018-12-03 15:54:16 +02:00
2018-12-03 14:55:41 -08:00
2018-12-03 14:55:41 -08:00
2019-01-01 15:55:29 -08:00
2018-11-29 12:23:54 -08:00
2018-06-18 14:46:04 +03:00
2018-10-17 18:23:59 -07:00
2018-11-12 17:07:12 +02:00
2018-12-04 09:32:57 +00:00
2018-10-05 15:19:08 +02:00
2018-12-03 15:53:42 +02:00
2018-10-16 09:00:58 -07:00
2018-12-03 15:54:16 +02:00
2018-12-03 15:55:01 +02:00
2018-11-13 17:20:32 +02:00
2018-12-03 15:52:47 +02:00
2018-10-15 16:01:49 +03:00
2018-12-12 12:27:44 +02:00
2018-12-03 14:55:41 -08:00
2018-12-03 14:55:39 -08:00
2017-09-25 16:54:09 +03:00
2018-05-24 16:05:19 +03:00
2018-03-15 10:00:03 +00:00
2018-07-24 09:55:12 +01:00
2018-01-03 14:02:10 +00:00
2018-07-24 09:55:12 +01:00
2018-03-28 20:35:17 +01:00
2018-11-16 15:35:36 +00:00
2017-12-06 14:41:47 +00:00
2018-10-23 09:42:25 +01:00
2018-07-24 09:55:12 +01:00
2018-06-12 15:44:47 +01:00
2018-10-23 09:42:25 +01:00
2018-10-23 09:42:25 +01:00
2018-08-28 13:41:27 +01:00
2018-10-22 12:36:49 +01:00
2018-10-04 07:29:47 +01:00
2018-07-10 16:46:09 +01:00
2018-08-07 12:43:00 +01:00
2018-10-29 16:14:58 +01:00
2018-11-29 12:29:54 -08:00
2018-11-12 17:07:12 +02:00
2018-03-23 17:03:24 +00:00
2018-03-02 09:04:45 +00:00
2018-10-18 10:20:08 +01:00
2018-06-28 22:51:33 +01:00
2018-12-03 14:55:39 -08:00
2018-11-06 17:18:01 +02:00
2018-08-01 17:03:31 +01:00
2018-12-25 11:48:26 -08:00
2018-07-27 11:30:42 +01:00
2018-11-13 15:22:27 +02:00
2018-10-15 16:01:49 +03:00
2018-08-15 23:25:43 +01:00
2018-08-15 23:25:43 +01:00
2018-10-30 11:52:54 +00:00
2018-11-30 09:46:31 +00:00
2018-11-08 17:09:18 -08:00
2018-10-31 23:44:55 +02:00
2018-08-27 10:00:03 -04:00
2018-11-28 21:51:51 +02:00
2018-11-30 09:58:02 -08:00
2018-10-18 13:40:13 +03:00
2018-12-25 11:48:26 -08:00
2018-12-12 12:27:44 +02:00
2018-11-29 12:23:54 -08:00
2018-10-23 18:26:15 +03:00
2017-10-11 08:56:56 +01:00
2018-11-28 21:51:51 +02:00
2018-10-15 16:01:49 +03:00
2018-07-27 16:03:41 +01:00
2018-10-04 07:29:47 +01:00
2018-10-17 09:08:00 +01:00
2018-03-23 17:03:24 +00:00
2018-10-22 14:40:43 -07:00
2018-08-15 13:41:05 -07:00
2018-11-15 16:22:17 +02:00
2018-11-29 12:31:36 -08:00
2018-07-27 16:07:45 +01:00
2018-03-14 15:35:37 +02:00
2018-12-05 13:50:24 +02:00
2018-12-05 13:50:24 +02:00
2018-12-22 00:25:54 +09:00
2018-08-20 12:13:09 +03:00
2018-12-04 12:23:19 +00:00
2018-07-06 10:54:05 +03:00
2018-11-13 17:20:32 +02:00