gpu: nvgpu: move usermode to hal/fifo

Moved the following HALs from fifo to usermode
- fifo.ring_channel_doorbell -> usermode.ring_doorbell
- fifo.doorbell_token -> usermode.doorbell_token
- fifo.usermode_base -> usermode.base

Created the following HAL
- usermode.setup_hw

Jira NVGPU-2978

Change-Id: I856ea24c126fa22d2f3fe860d4b14087c6d7330b
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2094813
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-04-10 14:13:46 -07:00
committed by mobile promotions
parent 1e3cac3bc8
commit 3c4d6c95df
25 changed files with 271 additions and 158 deletions

View File

@@ -512,7 +512,7 @@ static int nvgpu_channel_alloc_usermode_buffers(struct channel_gk20a *c,
goto unmap_free_gpfifo;
}
args->work_submit_token = g->ops.fifo.doorbell_token(c);
args->work_submit_token = g->ops.usermode.doorbell_token(c);
return 0;
unmap_free_gpfifo: