Huang Rui
bf67014d6b
drm/amdgpu: introduce new amdgpu_fence object to indicate the job embedded fence
The job embedded fence donesn't initialize the flags at
dma_fence_init(). Then we will go a wrong way in
amdgpu_fence_get_timeline_name callback and trigger a null pointer panic
once we enabled the trace event here. So introduce new amdgpu_fence
object to indicate the job embedded fence.
[ 156.131790] BUG: kernel NULL pointer dereference, address: 00000000000002a0
[ 156.131804] #PF: supervisor read access in kernel mode
[ 156.131811] #PF: error_code(0x0000) - not-present page
[ 156.131817] PGD 0 P4D 0
[ 156.131824] Oops: 0000 [#1] PREEMPT SMP PTI
[ 156.131832] CPU: 6 PID: 1404 Comm: sdma0 Tainted: G OE 5.16.0-rc1-custom #1
[ 156.131842] Hardware name: Gigabyte Technology Co., Ltd. Z170XP-SLI/Z170XP-SLI-CF, BIOS F20 11/04/2016
[ 156.131848] RIP: 0010:strlen+0x0/0x20
[ 156.131859] Code: 89 c0 c3 0f 1f 80 00 00 00 00 48 01 fe eb 0f 0f b6 07 38 d0 74 10 48 83 c7 01 84 c0 74 05 48 39 f7 75 ec 31 c0 c3 48 89 f8 c3 <80> 3f 00 74 10 48 89 f8 48 83 c0 01 80 38 00 75 f7 48 29 f8 c3 31
[ 156.131872] RSP: 0018:ffff9bd0018dbcf8 EFLAGS: 00010206
[ 156.131880] RAX: 00000000000002a0 RBX: ffff8d0305ef01b0 RCX: 000000000000000b
[ 156.131888] RDX: ffff8d03772ab924 RSI: ffff8d0305ef01b0 RDI: 00000000000002a0
[ 156.131895] RBP: ffff9bd0018dbd60 R08: ffff8d03002094d0 R09: 0000000000000000
[ 156.131901] R10: 000000000000005e R11: 0000000000000065 R12: ffff8d03002094d0
[ 156.131907] R13: 000000000000001f R14: 0000000000070018 R15: 0000000000000007
[ 156.131914] FS: 0000000000000000(0000) GS:ffff8d062ed80000(0000) knlGS:0000000000000000
[ 156.131923] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 156.131929] CR2: 00000000000002a0 CR3: 000000001120a005 CR4: 00000000003706e0
[ 156.131937] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 156.131942] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 156.131949] Call Trace:
[ 156.131953] <TASK>
[ 156.131957] ? trace_event_raw_event_dma_fence+0xcc/0x200
[ 156.131973] ? ring_buffer_unlock_commit+0x23/0x130
[ 156.131982] dma_fence_init+0x92/0xb0
[ 156.131993] amdgpu_fence_emit+0x10d/0x2b0 [amdgpu]
[ 156.132302] amdgpu_ib_schedule+0x2f9/0x580 [amdgpu]
[ 156.132586] amdgpu_job_run+0xed/0x220 [amdgpu]
v2: fix mismatch warning between the prototype and function name (Ray, kernel test robot)
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-12-17 12:47:28 -05:00
..
2021-12-17 12:47:28 -05:00
2021-08-16 12:18:46 +02:00
2021-11-04 08:21:47 -07:00
2021-11-19 12:00:14 +01:00
2021-12-14 09:18:28 +01:00
2021-08-10 20:00:58 +02:00
2021-10-12 11:17:41 +02:00
2021-11-04 08:21:47 -07:00
2021-10-25 14:53:08 +02:00
2021-08-10 20:13:25 +02:00
2021-10-04 09:34:55 -04:00
2021-10-04 12:06:14 +02:00
2021-07-30 14:52:00 +10:00
2021-11-23 10:56:12 -08:00
2021-08-10 20:14:01 +02:00
2021-12-14 04:11:10 -05:00
2021-11-05 19:08:44 +01:00
2021-08-11 15:49:15 +02:00
2021-10-21 11:08:09 +02:00
2021-12-03 10:58:13 -08:00
2021-09-07 22:50:17 +02:00
2021-11-03 17:00:52 -07:00
2021-09-14 09:25:30 +02:00
2021-09-25 08:20:48 -07:00
2021-09-23 09:26:09 +02:00
2021-12-09 11:26:44 -08:00
2021-11-05 13:50:15 +10:00
2021-11-18 23:55:52 +01:00
2021-11-04 08:21:47 -07:00
2021-11-05 13:50:15 +10:00
2021-09-20 14:34:37 +01:00
2021-07-31 20:52:01 +02:00
2021-09-15 08:21:32 +02:00
2021-10-28 14:59:38 +10:00
2021-11-11 08:14:19 +10:00
2021-10-13 07:44:04 +10:00
2021-10-28 14:59:38 +10:00
2021-11-17 08:21:03 +01:00
2021-10-22 11:09:45 +02:00
2021-10-07 05:42:18 +03:00
2021-10-07 05:42:17 +03:00
2021-09-09 14:58:27 +02:00
2021-11-16 08:51:39 +01:00
2021-11-04 08:21:47 -07:00
2021-08-10 20:13:49 +02:00
2021-10-15 16:48:51 -07:00
2021-12-13 11:25:06 +01:00
2021-12-10 11:29:53 -08:00
2021-06-24 15:40:11 +02:00
2021-11-05 11:15:14 +01:00
2021-10-11 21:21:14 +01:00
2021-09-23 09:26:09 +02:00
2021-11-29 15:18:09 +01:00
2021-08-12 21:41:10 +02:00
2021-08-10 20:14:01 +02:00
2021-11-29 11:46:32 +01:00
2021-08-08 20:27:52 +02:00
2021-11-12 12:11:07 -08:00
2021-11-23 13:41:55 -06:00
2021-08-09 02:28:05 +03:00
2021-05-11 14:13:33 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-05 12:08:15 +02:00
2021-09-24 19:25:23 +02:00
2021-08-02 10:19:43 +02:00
2021-10-04 11:47:24 +02:00
2021-10-04 09:34:57 -04:00
2021-10-11 21:46:58 +02:00
2021-05-16 22:01:14 +02:00
2021-10-04 09:34:57 -04:00
2021-08-20 12:35:59 +02:00
2021-08-02 10:19:43 +02:00
2021-06-10 19:14:47 +02:00
2021-07-20 20:14:42 +02:00
2021-08-11 08:47:08 +10:00
2021-09-20 18:45:35 +03:00
2021-11-09 10:11:53 -08:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-10-28 14:59:38 +10:00
2021-05-25 11:42:09 +01:00
2021-12-09 13:22:31 +01:00
2021-08-02 10:19:43 +02:00
2021-10-04 12:04:19 +02:00
2021-10-28 17:20:45 +10:00
2021-10-04 09:34:57 -04:00
2021-08-08 20:26:16 +02:00
2021-11-15 10:26:53 +01:00
2021-10-25 14:53:08 +02:00
2021-12-03 10:58:13 -08:00
2021-06-02 11:07:25 +02:00
2021-08-23 13:54:55 +02:00
2021-10-07 14:49:11 +02:00
2021-08-02 10:19:43 +02:00
2021-05-17 21:19:48 +02:00
2021-08-17 13:56:03 -04:00
2021-08-28 19:00:20 +02:00
2021-08-10 20:14:01 +02:00
2021-08-18 14:33:47 +02:00
2021-10-01 15:55:47 +02:00
2021-08-10 20:14:01 +02:00
2021-05-17 21:19:48 +02:00
2021-07-23 20:17:59 +02:00
2021-09-24 19:25:33 +02:00
2021-11-09 10:02:50 -08:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-11-11 08:14:19 +10:00
2021-09-14 10:39:01 +02:00
2021-11-12 09:23:16 +10:00
2021-07-13 06:38:37 -07:00
2021-05-17 21:19:48 +02:00
2021-10-07 12:24:44 +02:00
2021-08-02 10:19:43 +02:00
2021-11-12 12:11:07 -08:00
2021-08-19 09:02:55 +09:00
2021-09-28 12:29:13 +02:00
2021-10-07 05:42:13 +03:00
2021-08-02 10:19:43 +02:00
2021-08-08 20:14:08 +02:00
2021-12-08 17:19:48 +01:00
2021-08-20 12:35:59 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00
2021-11-05 18:52:47 +01:00
2021-08-26 11:19:08 +02:00