diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2014-09-22 07:56:58 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:25 -0400 |
commit | c4a4366dc38f84dc0e7303d57aab6a5414637d3d (patch) | |
tree | 0fd90434f506cb117ef6704fae00fdc14cd6989e /drivers/gpu/nvgpu | |
parent | e7f8e1bffb48eb650860d3aee326c77d31cc0860 (diff) |
gk20a: Unlock mutex upon queue full.
Unlock mutex upon queue full then return -EAGAIN.
Bug 1551294
Change-Id: I2a06a99028f98e6602a4cc27d15015bfe1db4eda
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/501235
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Tested-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index 9d52c943..f0ce3c9a 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -1760,6 +1760,7 @@ static int pmu_queue_open_write(struct pmu_gk20a *pmu, | |||
1760 | 1760 | ||
1761 | if (!pmu_queue_has_room(pmu, queue, size, &rewind)) { | 1761 | if (!pmu_queue_has_room(pmu, queue, size, &rewind)) { |
1762 | gk20a_err(dev_from_gk20a(gk20a_from_pmu(pmu)), "queue full"); | 1762 | gk20a_err(dev_from_gk20a(gk20a_from_pmu(pmu)), "queue full"); |
1763 | pmu_queue_unlock(pmu, queue); | ||
1763 | return -EAGAIN; | 1764 | return -EAGAIN; |
1764 | } | 1765 | } |
1765 | 1766 | ||