Commit 23f5e18
drm/amd/display: use pre-allocated temp structure for bounding box
[ Upstream commit afe9555 ]
This mirrors what the driver does for older DCN generations.
Should fix:
BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 449, name: kworker/u64:8
preempt_count: 2, expected: 0
RCU nest depth: 0, expected: 0
Preemption disabled at:
ffffffffc0ce1580>] dc_fpu_begin+0x30/0xd0 [amdgpu]
CPU: 5 PID: 449 Comm: kworker/u64:8 Tainted: G W 6.8.0+ #35
Hardware name: System manufacturer System Product Name/ROG STRIX X570-E GAMING WIFI II, BIOS 4204 02/24/2022
Workqueue: events_unbound async_run_entry_fn
v2: drop extra memcpy
Fixes: 88c6182 ("drm/amd/display: dynamically allocate dml2_configuration_options structures")
Reviewed-by: Harry Wentland <[email protected]>
Tested-by: George Zhang <[email protected]> (v1)
Suggested-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: George Zhang <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Sasha Levin <[email protected]>1 parent 898d200 commit 23f5e18
File tree
3 files changed
+5
-12
lines changed- drivers/gpu/drm/amd/display/dc
- resource
- dcn321
- dcn32
3 files changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
| 1395 | + | |
1395 | 1396 | | |
1396 | 1397 | | |
1397 | 1398 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
2009 | | - | |
| 2009 | + | |
2010 | 2010 | | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
| 2011 | + | |
2014 | 2012 | | |
2015 | 2013 | | |
2016 | 2014 | | |
| |||
2025 | 2023 | | |
2026 | 2024 | | |
2027 | 2025 | | |
2028 | | - | |
2029 | | - | |
2030 | 2026 | | |
2031 | 2027 | | |
2032 | 2028 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1581 | 1581 | | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | | - | |
| 1584 | + | |
1585 | 1585 | | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
| 1586 | + | |
1589 | 1587 | | |
1590 | 1588 | | |
1591 | 1589 | | |
| |||
1600 | 1598 | | |
1601 | 1599 | | |
1602 | 1600 | | |
1603 | | - | |
1604 | | - | |
1605 | 1601 | | |
1606 | 1602 | | |
1607 | 1603 | | |
| |||
0 commit comments