diff options
author | Seema Khowala <seemaj@nvidia.com> | 2018-03-09 16:18:03 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-13 01:54:04 -0400 |
commit | f94c9d19c19883ca2b60acb8a000b34b32da0aa7 (patch) | |
tree | 8a9f0b5821d956e84dabddbf8ba9577adbc60ebb /drivers/gpu/nvgpu/include | |
parent | 6e0de56121a47d383e1505145ab0140dcd604896 (diff) |
gpu: nvgpu: gp10b: enhance priv error reporting
-Append 0x for info dumped in hex format
-Dump subid and priv_level for ERROR_INFO
-Decode ERROR_CODE for supported error types
Bug 2072157
Bug 200392445
Bug 2055510
Bug 200379815
Change-Id: I78df8ca15421ee37631157082648e9b545367c95
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1672292
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h | 10 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h index 1bd5a0f7..ba55658e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -72,6 +72,14 @@ static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void) | |||
72 | { | 72 | { |
73 | return 0x00128128U; | 73 | return 0x00128128U; |
74 | } | 74 | } |
75 | static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_subid_v(u32 r) | ||
76 | { | ||
77 | return (r >> 24U) & 0x3fU; | ||
78 | } | ||
79 | static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_priv_level_v(u32 r) | ||
80 | { | ||
81 | return (r >> 20U) & 0x3U; | ||
82 | } | ||
75 | static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void) | 83 | static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void) |
76 | { | 84 | { |
77 | return 0x0012812cU; | 85 | return 0x0012812cU; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h index c4d9ef1b..1dcb1a3c 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -84,6 +84,14 @@ static inline u32 pri_ringstation_sys_priv_error_info_r(void) | |||
84 | { | 84 | { |
85 | return 0x00122128U; | 85 | return 0x00122128U; |
86 | } | 86 | } |
87 | static inline u32 pri_ringstation_sys_priv_error_info_subid_v(u32 r) | ||
88 | { | ||
89 | return (r >> 24U) & 0x3fU; | ||
90 | } | ||
91 | static inline u32 pri_ringstation_sys_priv_error_info_priv_level_v(u32 r) | ||
92 | { | ||
93 | return (r >> 20U) & 0x3U; | ||
94 | } | ||
87 | static inline u32 pri_ringstation_sys_priv_error_code_r(void) | 95 | static inline u32 pri_ringstation_sys_priv_error_code_r(void) |
88 | { | 96 | { |
89 | return 0x0012212cU; | 97 | return 0x0012212cU; |