mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: channel MISRA fix for Rule 17.7
Check return value of below function and add void to ignore the return value update_gp_get Rename nvgpu_get_gp_free_count -> nvgpu_channel_update_gpfifo_get_and_get_free_count nvgpu_gp_free_count -> nvgpu_channel_get_gpfifo_free_count JIRA NVGPU-3388 Change-Id: I6e2265882c1f34e3bb47eaeac7a2c5a9fbe9b4eb Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2115784 Reviewed-by: Thomas Fleury <tfleury@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
766dfb2cb1
commit
334f855ac4
@@ -504,8 +504,10 @@ static int nvgpu_submit_channel_gpfifo(struct nvgpu_channel *c,
|
||||
* values first and then read from HW. If no space, return EAGAIN
|
||||
* and let userpace decide to re-try request or not.
|
||||
*/
|
||||
if (nvgpu_gp_free_count(c) < num_entries + extra_entries) {
|
||||
if (nvgpu_get_gp_free_count(c) < num_entries + extra_entries) {
|
||||
if (nvgpu_channel_get_gpfifo_free_count(c) <
|
||||
num_entries + extra_entries) {
|
||||
if (nvgpu_channel_update_gpfifo_get_and_get_free_count(c) <
|
||||
num_entries + extra_entries) {
|
||||
err = -EAGAIN;
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user