diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-06-05 16:59:29 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-06-09 20:57:53 -0700 |
commit | b38de46238f186ac004166886f5293316f9f379f (patch) | |
tree | ffb270e2fb378ac7b67b4747811837f27b60edcc /drivers/gpu | |
parent | 535047bb27a33ecd15375078b1623e70da901d46 (diff) |
gpu: nvgpu: add accessor for gr_class_error
Add accessors to read class error code from
NV_PGRAPH_CLASS_ERROR
Bug 200010403
Change-Id: Ia99f50e264f9b8aa93f99994e52424418a2e4f74
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/419565
(cherry picked from commit d9f93d0c9a2aec552cce14147f3f6feb318f330e)
Reviewed-on: http://git-master/r/419991
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h index fad8d3a63dfb..04fe304bf08d 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h @@ -142,6 +142,14 @@ static inline u32 gr_fecs_intr_r(void) { return 0x00400144; } +static inline u32 gr_class_error_r(void) +{ + return 0x00400110; +} +static inline u32 gr_class_error_code_v(u32 r) +{ + return (r >> 0) & 0xffff; +} static inline u32 gr_intr_nonstall_r(void) { return 0x00400120; |