gpu: nvgpu: add infra for manual mode submits in KMD

Added infrastructure for enabling parsing Control-Fifo's
ring buffers(i.e. send/receive).

Initialization of these buffers are handled as part of
nvgpu_nvs_buffer_alloc() call itself.

A follow-up change shall implement the methods defined here
as part of the existing NVS worker thread.

The changes adhered to the design laid out in the header
nvsched/include/nvs/nvs-control-interface.h.

Jira NVGPU-8619

Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Change-Id: I2050e6fb681eba80e01cf547ada37a955e58315a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2764518
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Debarshi Dutta
2022-08-26 10:58:18 +05:30
committed by mobile promotions
parent 17dc483a6b
commit 562c4f6ea3
9 changed files with 555 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ enum nvs_event {
NVS_EV_CREATE_SCHED,
NVS_EV_CREATE_DOMAIN,
NVS_EV_REMOVE_DOMAIN,
NVS_EV_CTRL_QUEUE,
NVS_EV_MAX = 0xffffffff /* Force to 32 bit enum size. */
};