summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-09-03 09:10:28 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:13 -0400
commit48e19c6c2857047a1d0f56d98bbe48dcd4726fcd (patch)
treee7f730a65e7e1731fa5713111f1aaada345f77ba /drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h
parent3ef352a05a027231d9cb88b63f465e6a0da89759 (diff)
gpu: nvgpu: add API to preempt TSG
Add API gk20a_fifo_preempt_tsg() which takes ID of tsg and preempts it Bug 1514064 Bug 1470692 Change-Id: I1d52c1dd7a9aecc1314b0f223fe4eedecc033629 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/495583 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h
index 2b8bd9ce..09e311ef 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h
@@ -346,10 +346,18 @@ static inline u32 fifo_preempt_type_channel_f(void)
346{ 346{
347 return 0x0; 347 return 0x0;
348} 348}
349static inline u32 fifo_preempt_type_tsg_f(void)
350{
351 return 0x1000000;
352}
349static inline u32 fifo_preempt_chid_f(u32 v) 353static inline u32 fifo_preempt_chid_f(u32 v)
350{ 354{
351 return (v & 0xfff) << 0; 355 return (v & 0xfff) << 0;
352} 356}
357static inline u32 fifo_preempt_id_f(u32 v)
358{
359 return (v & 0xfff) << 0;
360}
353static inline u32 fifo_trigger_mmu_fault_r(u32 i) 361static inline u32 fifo_trigger_mmu_fault_r(u32 i)
354{ 362{
355 return 0x00002a30 + i*4; 363 return 0x00002a30 + i*4;