diff options
author | Holger Hoffstätte <holger@applied-asynchrony.com> | 2021-03-05 12:39:21 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-03-10 16:12:44 -0500 |
commit | 15e8b95d5f7509e0b09289be8c422c459c9f0412 (patch) | |
tree | b90a38aa32a902428d20b2790085226e8a00621f /drivers/gpu/drm/amd/display/dc/dc.h | |
parent | 7a46f05e5e163c00e41892e671294286e53fe15c (diff) | |
download | linux-stable-15e8b95d5f7509e0b09289be8c422c459c9f0412.tar.gz linux-stable-15e8b95d5f7509e0b09289be8c422c459c9f0412.tar.bz2 linux-stable-15e8b95d5f7509e0b09289be8c422c459c9f0412.zip |
drm/amd/display: Fix nested FPU context in dcn21_validate_bandwidth()
Commit 41401ac67791 added FPU wrappers to dcn21_validate_bandwidth(),
which was correct. Unfortunately a nested function alredy contained
DC_FP_START()/DC_FP_END() calls, which results in nested FPU context
enter/exit and complaints by kernel_fpu_begin_mask().
This can be observed e.g. with 5.10.20, which backported 41401ac67791
and now emits the following warning on boot:
WARNING: CPU: 6 PID: 858 at arch/x86/kernel/fpu/core.c:129 kernel_fpu_begin_mask+0xa5/0xc0
Call Trace:
dcn21_calculate_wm+0x47/0xa90 [amdgpu]
dcn21_validate_bandwidth_fp+0x15d/0x2b0 [amdgpu]
dcn21_validate_bandwidth+0x29/0x40 [amdgpu]
dc_validate_global_state+0x3c7/0x4c0 [amdgpu]
The warning is emitted due to the additional DC_FP_START/END calls in
patch_bounding_box(), which is inlined into dcn21_calculate_wm(),
its only caller. Removing the calls brings the code in line with
dcn20 and makes the warning disappear.
Fixes: 41401ac67791 ("drm/amd/display: Add FPU wrappers to dcn21_validate_bandwidth()")
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
0 files changed, 0 insertions, 0 deletions