gpu: nvgpu: modify queue implementation

Modify queue implementation to handle wraparound cases.
Introduce additional error checks for queue public APIs.
Modify the visibility of certain functions which need not
be public.

JIRA NVGPU-6908

Change-Id: Ibe5d2f8520d4ba0991c19d77e976f9dc8d45a452
Signed-off-by: ajesh <akv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2536318
(cherry picked from commit 736043d13aa1a35ac21146bf93ebe8b4b081ccea)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2548583
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
ajesh
2021-05-28 11:59:16 +03:00
committed by mobile promotions
parent 966938d3e6
commit 07d9b4cdb7
4 changed files with 43 additions and 30 deletions

View File

@@ -637,9 +637,7 @@ nvgpu_posix_register_io
nvgpu_pte_words
nvgpu_queue_alloc
nvgpu_queue_free
nvgpu_queue_in
nvgpu_queue_in_locked
nvgpu_queue_out
nvgpu_queue_out_locked
nvgpu_queue_out_get_fault_injection
nvgpu_queue_available

View File

@@ -654,9 +654,7 @@ nvgpu_posix_register_io
nvgpu_pte_words
nvgpu_queue_alloc
nvgpu_queue_free
nvgpu_queue_in
nvgpu_queue_in_locked
nvgpu_queue_out
nvgpu_queue_out_locked
nvgpu_queue_out_get_fault_injection
nvgpu_queue_available