diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2023-09-21 16:15:16 +0200 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-10-09 16:48:08 -0400 |
| commit | 2091ac690301fd7b4f64b08f16c251fbb0d95042 (patch) | |
| tree | e9871a2a1e8799e9c69ceb616d45c1db758da247 /tools/perf/scripts/python | |
| parent | 941e8036a450bc7ae8517ceb6dbd9135046f4ad8 (diff) | |
drm/amd/display: Move the memory allocation out of dcn20_validate_bandwidth_fp().
dcn20_validate_bandwidth_fp() is invoked while FPU access has been
enabled. FPU access requires disabling preemption even on PREEMPT_RT.
It is not possible to allocate memory with disabled preemption even with
GFP_ATOMIC on PREEMPT_RT.
Move the memory allocation before FPU access is enabled.
To preserve previous "clean" state of "pipes" add a memset() before the
second invocation of dcn20_validate_bandwidth_internal() where the
variable is used.
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions