summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h10
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h10
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}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_subid_v(u32 r)
76{
77 return (r >> 24U) & 0x3fU;
78}
79static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_priv_level_v(u32 r)
80{
81 return (r >> 20U) & 0x3U;
82}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void) 83static 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}
87static inline u32 pri_ringstation_sys_priv_error_info_subid_v(u32 r)
88{
89 return (r >> 24U) & 0x3fU;
90}
91static inline u32 pri_ringstation_sys_priv_error_info_priv_level_v(u32 r)
92{
93 return (r >> 20U) & 0x3U;
94}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void) 95static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{ 96{
89 return 0x0012212cU; 97 return 0x0012212cU;