diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-09-03 09:10:28 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:13 -0400 |
commit | 48e19c6c2857047a1d0f56d98bbe48dcd4726fcd (patch) | |
tree | e7f730a65e7e1731fa5713111f1aaada345f77ba /drivers/gpu/nvgpu/gm20b/hw_fifo_gm20b.h | |
parent | 3ef352a05a027231d9cb88b63f465e6a0da89759 (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.h | 8 |
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 | } |
349 | static inline u32 fifo_preempt_type_tsg_f(void) | ||
350 | { | ||
351 | return 0x1000000; | ||
352 | } | ||
349 | static inline u32 fifo_preempt_chid_f(u32 v) | 353 | static inline u32 fifo_preempt_chid_f(u32 v) |
350 | { | 354 | { |
351 | return (v & 0xfff) << 0; | 355 | return (v & 0xfff) << 0; |
352 | } | 356 | } |
357 | static inline u32 fifo_preempt_id_f(u32 v) | ||
358 | { | ||
359 | return (v & 0xfff) << 0; | ||
360 | } | ||
353 | static inline u32 fifo_trigger_mmu_fault_r(u32 i) | 361 | static inline u32 fifo_trigger_mmu_fault_r(u32 i) |
354 | { | 362 | { |
355 | return 0x00002a30 + i*4; | 363 | return 0x00002a30 + i*4; |