linux/drivers/gpu/drm/amd
Sebastian Andrzej Siewior 8b75c9b45b drm/amdgpu: Replace in_task() in gfx_v8_0_parse_sq_irq()
gfx_v8_0_parse_sq_irq() is using in_task() to distinguish if it is
invoked from a workqueue worker or directly from the interrupt handler.

The usage of in_interrupt() in drivers is phased out and Linus clearly
requested that code which changes behaviour depending on context should
either be separated or the context be conveyed in an argument passed by the
caller, which usually knows the context.

gfx_v8_0_parse_sq_irq() is invoked directly either from a worker or from
the interrupt service routine. The worker is only bypassed if the worker
is already busy.

Add an argument `from_wq' to gfx_v8_0_parse_sq_irq() which is true if
invoked from the worker.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-03-23 23:28:08 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: Replace in_task() in gfx_v8_0_parse_sq_irq() 2021-03-23 23:28:08 -04:00
amdkfd drm/amdkfd: Fix UBSAN shift-out-of-bounds warning 2021-03-23 23:00:57 -04:00
display drm/amd/display: remove duplicate include in amdgpu_dm.c 2021-03-23 23:27:31 -04:00
include drm/amd/pm: add new data in metrics table 2021-03-23 23:00:28 -04:00
pm drm/amdgpu/smu8: return an error rather than 50% if busy query fails 2021-03-23 23:27:53 -04:00