diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index af8a868e..238329be 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h | |||
@@ -225,6 +225,7 @@ struct gpu_ops { | |||
225 | void (*isr_stall)(struct gk20a *g, u32 inst_id, u32 pri_base); | 225 | void (*isr_stall)(struct gk20a *g, u32 inst_id, u32 pri_base); |
226 | u32 (*isr_nonstall)(struct gk20a *g, u32 inst_id, u32 pri_base); | 226 | u32 (*isr_nonstall)(struct gk20a *g, u32 inst_id, u32 pri_base); |
227 | u32 (*get_num_pce)(struct gk20a *g); | 227 | u32 (*get_num_pce)(struct gk20a *g); |
228 | void (*init_prod_values)(struct gk20a *g); | ||
228 | } ce2; | 229 | } ce2; |
229 | struct { | 230 | struct { |
230 | u32 (*get_patch_slots)(struct gk20a *g); | 231 | u32 (*get_patch_slots)(struct gk20a *g); |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h index efc14d00..57a76e68 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2019, 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"), |
@@ -104,4 +104,12 @@ static inline u32 ce_pce_map_r(void) | |||
104 | { | 104 | { |
105 | return 0x00104028U; | 105 | return 0x00104028U; |
106 | } | 106 | } |
107 | static inline u32 ce_lce_opt_r(u32 i) | ||
108 | { | ||
109 | return 0x00104414U + i*128U; | ||
110 | } | ||
111 | static inline u32 ce_lce_opt_force_barriers_npl__prod_f(void) | ||
112 | { | ||
113 | return 0x8U; | ||
114 | } | ||
107 | #endif | 115 | #endif |