aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorOrson Zhai <[email protected]>2021-03-19 06:15:35 +0000
committerJassi Brar <[email protected]>2021-04-14 01:07:36 +0000
commit9468ab84032f96496e998cfa173cd1d0ac316bcd (patch)
treef0eef478843d37166e380b32c061c0904f6aea86 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentMAINTAINERS: Add DT bindings directory to mailbox (diff)
downloadkernel-9468ab84032f96496e998cfa173cd1d0ac316bcd.tar.gz
kernel-9468ab84032f96496e998cfa173cd1d0ac316bcd.zip
mailbox: sprd: Introduce refcnt when clients requests/free channels
Unisoc mailbox has no way to be enabled/disabled for any single channel. They can only be set to startup or shutdown as a whole device at same time. Add a variable to count references to avoid mailbox FIFO being reset unexpectedly when clients are requesting or freeing channels. Also add a lock to dismiss possible conflicts from register r/w in different startup or shutdown threads. And fix the crash problem when early interrupts come from channel which has not been requested by client yet. Fixes: ca27fc26cd22 ("mailbox: sprd: Add Spreadtrum mailbox driver") Signed-off-by: Orson Zhai <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions