diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/channel.h | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/tsg.h | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/channel.h b/drivers/gpu/nvgpu/include/nvgpu/channel.h index 7ca60fe3..e98af09b 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/channel.h +++ b/drivers/gpu/nvgpu/include/nvgpu/channel.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2018-2020, 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"), |
@@ -328,6 +328,7 @@ struct channel_gk20a { | |||
328 | bool has_os_fence_framework_support; | 328 | bool has_os_fence_framework_support; |
329 | 329 | ||
330 | bool is_privileged_channel; | 330 | bool is_privileged_channel; |
331 | bool mmu_debug_mode_enabled; | ||
331 | }; | 332 | }; |
332 | 333 | ||
333 | static inline struct channel_gk20a * | 334 | static inline struct channel_gk20a * |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/tsg.h b/drivers/gpu/nvgpu/include/nvgpu/tsg.h index 212fb77c..b43a6b98 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/tsg.h +++ b/drivers/gpu/nvgpu/include/nvgpu/tsg.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2020, 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"), |
@@ -76,6 +76,9 @@ struct tsg_gk20a { | |||
76 | bool tpc_num_initialized; | 76 | bool tpc_num_initialized; |
77 | bool in_use; | 77 | bool in_use; |
78 | 78 | ||
79 | /* MMU debug mode enabled if mmu_debug_mode_refcnt > 0 */ | ||
80 | u32 mmu_debug_mode_refcnt; | ||
81 | |||
79 | struct nvgpu_tsg_sm_error_state *sm_error_states; | 82 | struct nvgpu_tsg_sm_error_state *sm_error_states; |
80 | 83 | ||
81 | #define NVGPU_SM_EXCEPTION_TYPE_MASK_NONE (0x0U) | 84 | #define NVGPU_SM_EXCEPTION_TYPE_MASK_NONE (0x0U) |
@@ -124,4 +127,7 @@ gk20a_event_id_data_from_event_id_node(struct nvgpu_list_node *node) | |||
124 | ((uintptr_t)node - offsetof(struct gk20a_event_id_data, event_id_node)); | 127 | ((uintptr_t)node - offsetof(struct gk20a_event_id_data, event_id_node)); |
125 | }; | 128 | }; |
126 | 129 | ||
130 | int nvgpu_tsg_set_mmu_debug_mode(struct tsg_gk20a *tsg, | ||
131 | struct channel_gk20a *ch, bool enable); | ||
132 | |||
127 | #endif /* TSG_GK20A_H */ | 133 | #endif /* TSG_GK20A_H */ |