Fangzhi Zuo
8151a6c131
drm/amd/display: Skip Recompute DSC Params if no Stream on Link
[why]
Encounter NULL pointer dereference uner mst + dsc setup.
BUG: kernel NULL pointer dereference, address: 0000000000000008
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP NOPTI
CPU: 4 PID: 917 Comm: sway Not tainted 6.3.9-arch1-1 #1 124dc55df4f5272ccb409f39ef4872fc2b3376a2
Hardware name: LENOVO 20NKS01Y00/20NKS01Y00, BIOS R12ET61W(1.31 ) 07/28/2022
RIP: 0010:drm_dp_atomic_find_time_slots+0x5e/0x260 [drm_display_helper]
Code: 01 00 00 48 8b 85 60 05 00 00 48 63 80 88 00 00 00 3b 43 28 0f 8d 2e 01 00 00 48 8b 53 30 48 8d 04 80 48 8d 04 c2 48 8b 40 18 <48> 8>
RSP: 0018:ffff960cc2df77d8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8afb87e81280 RCX: 0000000000000224
RDX: ffff8afb9ee37c00 RSI: ffff8afb8da1a578 RDI: ffff8afb87e81280
RBP: ffff8afb83d67000 R08: 0000000000000001 R09: ffff8afb9652f850
R10: ffff960cc2df7908 R11: 0000000000000002 R12: 0000000000000000
R13: ffff8afb8d7688a0 R14: ffff8afb8da1a578 R15: 0000000000000224
FS: 00007f4dac35ce00(0000) GS:ffff8afe30b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 000000010ddc6000 CR4: 00000000003506e0
Call Trace:
<TASK>
? __die+0x23/0x70
? page_fault_oops+0x171/0x4e0
? plist_add+0xbe/0x100
? exc_page_fault+0x7c/0x180
? asm_exc_page_fault+0x26/0x30
? drm_dp_atomic_find_time_slots+0x5e/0x260 [drm_display_helper 0e67723696438d8e02b741593dd50d80b44c2026]
? drm_dp_atomic_find_time_slots+0x28/0x260 [drm_display_helper 0e67723696438d8e02b741593dd50d80b44c2026]
compute_mst_dsc_configs_for_link+0x2ff/0xa40 [amdgpu 62e600d2a75e9158e1cd0a243bdc8e6da040c054]
? fill_plane_buffer_attributes+0x419/0x510 [amdgpu 62e600d2a75e9158e1cd0a243bdc8e6da040c054]
compute_mst_dsc_configs_for_state+0x1e1/0x250 [amdgpu 62e600d2a75e9158e1cd0a243bdc8e6da040c054]
amdgpu_dm_atomic_check+0xecd/0x1190 [amdgpu 62e600d2a75e9158e1cd0a243bdc8e6da040c054]
drm_atomic_check_only+0x5c5/0xa40
drm_mode_atomic_ioctl+0x76e/0xbc0
[how]
dsc recompute should be skipped if no mode change detected on the new
request. If detected, keep checking whether the stream is already on
current state or not.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-08-06 11:11:02 -04:00
..
2024-08-06 11:11:02 -04:00
2024-07-05 10:47:28 +02:00
2024-04-25 17:05:48 +03:00
2024-07-03 09:38:23 +02:00
2024-05-30 15:47:55 +02:00
2024-07-05 10:47:28 +02:00
2024-06-17 08:02:48 -03:00
2024-07-03 18:05:12 +03:00
2024-06-26 15:33:25 +02:00
2024-07-05 10:47:28 +02:00
2024-05-27 11:08:31 +02:00
2024-06-10 12:44:39 +02:00
2024-05-27 15:31:18 +03:00
2024-05-02 11:33:17 +02:00
2024-05-13 19:10:57 +02:00
2024-07-16 08:14:29 +00:00
2024-05-23 17:07:13 +02:00
2024-05-27 17:25:49 +03:00
2024-05-27 11:08:31 +02:00
2024-07-05 12:37:22 +02:00
2024-05-27 15:31:36 +03:00
2024-07-05 11:36:25 +02:00
2024-06-06 10:27:44 +02:00
2024-07-03 17:55:29 +02:00
2024-07-02 07:20:34 -07:00
2024-03-20 04:32:55 +01:00
2024-07-05 10:47:28 +02:00
2024-07-12 13:13:15 +10:00
2024-07-12 12:50:30 +10:00
2024-07-05 12:37:22 +02:00
2024-07-04 09:29:55 +01:00
2024-07-10 09:12:42 +02:00
2024-08-06 11:11:00 -04:00
2024-07-05 10:47:28 +02:00
2024-06-27 11:52:04 +02:00
2024-05-22 20:14:47 -04:00
2024-05-02 11:33:18 +02:00
2024-05-28 21:43:46 +03:00
2024-06-28 11:28:26 +02:00
2024-06-10 12:44:41 +02:00
2024-05-02 17:58:23 +02:00
2024-07-05 12:37:22 +02:00
2024-06-18 10:06:35 +02:00
2024-04-10 14:27:00 +03:00
2024-06-10 12:44:32 +02:00
2024-06-25 09:53:13 +02:00
2024-06-10 12:44:39 +02:00
2024-07-15 12:49:52 -03:00
2024-05-02 11:33:32 +02:00
2024-06-20 10:02:41 +02:00
2024-05-27 11:08:31 +02:00
2024-05-02 11:33:22 +02:00
2024-07-05 10:47:28 +02:00
2024-08-06 11:11:01 -04:00
2024-04-25 20:55:49 -07:00
2024-06-17 10:38:18 +03:00
2024-04-15 16:11:26 +02:00
2024-05-28 10:24:37 +02:00
2024-07-10 10:36:47 +02:00
2024-06-12 10:56:57 +03:00
2024-06-10 14:09:42 +02:00
2024-08-06 11:11:01 -04:00
2024-04-22 14:35:52 +10:00
2024-05-02 14:30:31 +10:00
2024-06-18 11:13:30 +02:00
2024-03-11 11:47:07 +02:00
2024-04-15 16:22:50 +03:00
2024-07-10 10:36:47 +02:00
2024-06-24 17:08:33 +03:00
2024-06-12 10:56:57 +03:00
2024-04-22 11:38:11 +03:00
2024-04-17 16:11:28 +03:00
2024-05-08 15:31:58 +03:00
2024-05-23 14:37:24 +03:00
2024-04-17 16:11:17 +03:00
2024-05-02 23:39:21 +02:00
2024-07-05 10:47:28 +02:00
2024-07-12 12:50:30 +10:00
2024-05-15 14:50:46 +02:00
2024-05-02 11:33:32 +02:00
2024-06-28 08:56:26 +10:00
2024-04-19 17:36:49 +02:00
2024-05-29 09:30:44 +02:00
2024-04-02 09:51:30 +02:00
2024-03-11 13:33:50 +01:00
2024-04-17 16:11:17 +03:00
2024-05-10 20:56:12 +03:00
2024-07-03 10:11:03 +02:00
2024-06-10 12:44:39 +02:00
2024-05-17 21:36:19 +02:00
2024-06-06 10:24:13 -04:00
2024-04-11 18:28:58 +03:00
2024-05-28 09:57:28 +02:00
2024-06-18 11:13:30 +02:00
2024-07-05 10:47:28 +02:00
2024-03-13 10:44:14 +02:00
2024-06-27 11:41:58 +02:00
2024-06-24 17:08:53 +03:00
2024-03-28 19:52:22 +01:00
2024-06-06 14:46:15 -04:00
2024-06-18 11:13:30 +02:00
2024-06-10 12:44:39 +02:00
2024-05-23 14:37:24 +03:00
2024-06-24 18:03:18 +02:00
2024-04-18 13:27:56 +03:00
2024-07-05 10:47:28 +02:00
2024-05-02 11:33:32 +02:00