diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-09-13 08:02:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-15 15:48:20 -0400 |
commit | 7d6d0405311337456f50d6fa032963c18d2c9f9f (patch) | |
tree | f49b3eaca16726ef471a37b92130c54f04625d03 /drivers/gpu/nvgpu/common/linux | |
parent | ef6ea3475cac013c174905ab4f7f187700ae2a33 (diff) |
gpu: nvgpu: support platform specific TSG enable/disable
Add platform specific operations to enable/disable a TSG and use them instead
of directly calling enable/disable APIs
For gm20b/gp106/gp10b we continue to use gk20a_enable_tsg() and
gk20a_disable_tsg() as platform specific operations
Bug 1739362
Change-Id: I2dd0f38c8303757e8c7a47d8da0e30a790e514f0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1560635
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index d35ea14c..10379633 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |||
@@ -409,7 +409,7 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd, | |||
409 | "failed to host gk20a for ioctl cmd: 0x%x", cmd); | 409 | "failed to host gk20a for ioctl cmd: 0x%x", cmd); |
410 | return err; | 410 | return err; |
411 | } | 411 | } |
412 | gk20a_enable_tsg(tsg); | 412 | g->ops.fifo.enable_tsg(tsg); |
413 | gk20a_idle(g); | 413 | gk20a_idle(g); |
414 | break; | 414 | break; |
415 | } | 415 | } |
@@ -422,7 +422,7 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd, | |||
422 | "failed to host gk20a for ioctl cmd: 0x%x", cmd); | 422 | "failed to host gk20a for ioctl cmd: 0x%x", cmd); |
423 | return err; | 423 | return err; |
424 | } | 424 | } |
425 | gk20a_disable_tsg(tsg); | 425 | g->ops.fifo.disable_tsg(tsg); |
426 | gk20a_idle(g); | 426 | gk20a_idle(g); |
427 | break; | 427 | break; |
428 | } | 428 | } |