diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-10-17 04:34:24 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | c527b36daa2019bbf1ba2a3c9b9474d8c7316ff0 (patch) | |
tree | 983681cc67e51f8afaaaaaca94ab25a450b3994c /drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | |
parent | 82bbd0cd5d3d82bacc5023830d0eeb21065dd5f2 (diff) |
gpu: nvgpu: add accessors for invalid ctx_status
Bug 1826768
Change-Id: I8be2b9c074868206cb95b3bc84d66ea84683b19a
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1237522
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Cory Perry <cperry@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h index 89037a7c..8370d4c6 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | |||
@@ -434,6 +434,10 @@ static inline u32 fifo_engine_status_ctx_status_v(u32 r) | |||
434 | { | 434 | { |
435 | return (r >> 13) & 0x7; | 435 | return (r >> 13) & 0x7; |
436 | } | 436 | } |
437 | static inline u32 fifo_engine_status_ctx_status_invalid_v(void) | ||
438 | { | ||
439 | return 0x00000000; | ||
440 | } | ||
437 | static inline u32 fifo_engine_status_ctx_status_valid_v(void) | 441 | static inline u32 fifo_engine_status_ctx_status_valid_v(void) |
438 | { | 442 | { |
439 | return 0x00000001; | 443 | return 0x00000001; |