Commit 88c511d
committed
drm/amd/gfx11: move the gfx mutex into the caller
Otherwise we can fail to drop the software mutex when
we fail to take the hardware mutex.
Fixes: 76acba7 ("drm/amdgpu/gfx11: add a mutex for the gfx semaphore")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 186fb12 commit 88c511d
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4747 | 4747 | | |
4748 | 4748 | | |
4749 | 4749 | | |
4750 | | - | |
4751 | | - | |
4752 | 4750 | | |
4753 | 4751 | | |
4754 | 4752 | | |
| |||
4769 | 4767 | | |
4770 | 4768 | | |
4771 | 4769 | | |
4772 | | - | |
4773 | | - | |
4774 | 4770 | | |
4775 | 4771 | | |
4776 | 4772 | | |
| |||
4818 | 4814 | | |
4819 | 4815 | | |
4820 | 4816 | | |
| 4817 | + | |
4821 | 4818 | | |
4822 | 4819 | | |
| 4820 | + | |
4823 | 4821 | | |
4824 | 4822 | | |
4825 | 4823 | | |
| |||
4834 | 4832 | | |
4835 | 4833 | | |
4836 | 4834 | | |
| 4835 | + | |
4837 | 4836 | | |
4838 | 4837 | | |
4839 | 4838 | | |
| |||
0 commit comments