gpu: nvgpu: vgpu: support usermode submit on gv11b

Add the two fifo HAL ops and enable the support flag. Now that the reg
base is available for vgpu as well this concludes usermode submits for
virtualized gv11b.

Bug 200145225
Bug 200467197

Change-Id: I2dc4c5906b4b16e3a64c6329bf85d8b8a24bf0ae
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1951525
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Konsta Holtta
2018-11-14 12:29:05 +02:00
committed by mobile promotions
parent d49d64e720
commit 2cb24c2bc4
2 changed files with 3 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ int vgpu_gv11b_init_gpu_characteristics(struct gk20a *g)
__nvgpu_set_enabled(g, NVGPU_SUPPORT_SCG, true);
__nvgpu_set_enabled(g, NVGPU_SUPPORT_SYNCPOINT_ADDRESS, true);
__nvgpu_set_enabled(g, NVGPU_SUPPORT_USER_SYNCPOINT, true);
__nvgpu_set_enabled(g, NVGPU_SUPPORT_USERMODE_SUBMIT, true);
return 0;
}

View File

@@ -422,6 +422,8 @@ static const struct gpu_ops vgpu_gv11b_ops = {
.get_sema_incr_cmd_size = gv11b_fifo_get_sema_incr_cmd_size,
.add_sema_cmd = gv11b_fifo_add_sema_cmd,
.set_sm_exception_type_mask = vgpu_set_sm_exception_type_mask,
.usermode_base = gv11b_fifo_usermode_base,
.doorbell_token = gv11b_fifo_doorbell_token,
},
.netlist = {
.get_netlist_name = gv11b_netlist_get_name,