diff options
| author | Rodrigo Siqueira <[email protected]> | 2021-07-27 00:52:47 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-08-06 01:17:59 +0000 |
| commit | 2d8471dc371f36fd6ba3b5a4716b39555169df3d (patch) | |
| tree | cbb6b48333aab9b8d55ba1e287f3f0edf7f37798 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm/amd/display: Add control mechanism for FPU (diff) | |
| download | kernel-2d8471dc371f36fd6ba3b5a4716b39555169df3d.tar.gz kernel-2d8471dc371f36fd6ba3b5a4716b39555169df3d.zip | |
drm/amd/display: Add control mechanism for FPU utilization
DC invokes DC_FPU_START/END in multiple parts of the code; this can
create a situation where we invoke this FPU operation in a nested way or
exit too early. For avoiding this situation, this commit adds a
mechanism where dc_fpu_begin/end manages the access to
kernel_fpu_begin/end.
Change since V3:
- Rebase
Change since V2:
- Christian: Do not use this_cpu_* between get/put_cpu_ptr().
Change since V1:
- Use a better variable names
- Use get_cpu_ptr and put_cpu_ptr to better balance preemption enable
and disable
Cc: Harry Wentland <[email protected]>
Cc: Anson Jacob <[email protected]>
Cc: Christian König <[email protected]>
Cc: Hersen Wu <[email protected]>
Cc: Aric Cyr <[email protected]>
Cc: Jun Lei <[email protected]>
Cc: Dmytro Laktyushkin <[email protected]>
Cc: Qingqing Zhuo <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
