diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-02-20 05:37:43 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-29 21:54:38 -0400 |
commit | 0b2ea2924bd0122e0eaa286b4dbcfc9fe96ebe20 (patch) | |
tree | e5c7daebf3254032c8d1d645dfd4e3fc24e5ef55 /drivers/gpu/nvgpu/vgpu | |
parent | 8d8ff9d34e9707e9306fcf40b5ffcfa0d826765a (diff) |
gpu: nvgpu: add gops.fifo.setup_sw
bar1/userd setup is different for RM server. created common function
gk20a_init_fifo_setup_sw_common.
Jira VQRM-3058
Change-Id: I655b54e21ed5f15dcb8e7b01bd9cd129b35ae7a3
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1665691
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 8b9f04dd..1da114ac 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -351,6 +351,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
351 | .channel_suspend = gk20a_channel_suspend, | 351 | .channel_suspend = gk20a_channel_suspend, |
352 | .channel_resume = gk20a_channel_resume, | 352 | .channel_resume = gk20a_channel_resume, |
353 | .set_error_notifier = nvgpu_set_error_notifier, | 353 | .set_error_notifier = nvgpu_set_error_notifier, |
354 | .setup_sw = gk20a_init_fifo_setup_sw, | ||
354 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 355 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
355 | .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf, | 356 | .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf, |
356 | .free_syncpt_buf = gk20a_fifo_free_syncpt_buf, | 357 | .free_syncpt_buf = gk20a_fifo_free_syncpt_buf, |
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index 32edbd21..cfbdbbad 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -394,6 +394,7 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
394 | .channel_suspend = gk20a_channel_suspend, | 394 | .channel_suspend = gk20a_channel_suspend, |
395 | .channel_resume = gk20a_channel_resume, | 395 | .channel_resume = gk20a_channel_resume, |
396 | .set_error_notifier = nvgpu_set_error_notifier, | 396 | .set_error_notifier = nvgpu_set_error_notifier, |
397 | .setup_sw = gk20a_init_fifo_setup_sw, | ||
397 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 398 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
398 | .alloc_syncpt_buf = vgpu_gv11b_fifo_alloc_syncpt_buf, | 399 | .alloc_syncpt_buf = vgpu_gv11b_fifo_alloc_syncpt_buf, |
399 | .free_syncpt_buf = gv11b_fifo_free_syncpt_buf, | 400 | .free_syncpt_buf = gv11b_fifo_free_syncpt_buf, |