diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/ga100/hw_ce_ga100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/ga100/hw_ce_ga100.h index 8ca9a1802..084297d98 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/ga100/hw_ce_ga100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/ga100/hw_ce_ga100.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -75,4 +75,8 @@ #define ce_lce_opt_r(i)\ (nvgpu_safe_add_u32(0x00104414U, nvgpu_safe_mult_u32((i), 128U))) #define ce_lce_opt_force_barriers_npl__prod_f() (0x8U) +#define ce_lce_engctl_r(i)\ + (nvgpu_safe_add_u32(0x0010441cU, nvgpu_safe_mult_u32((i), 128U))) +#define ce_lce_engctl_stallreq_true_f() (0x100U) +#define ce_lce_engctl_stallack_true_f() (0x200U) #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_ce_ga10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_ce_ga10b.h index 56ebab665..8d253aa62 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_ce_ga10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/ga10b/hw_ce_ga10b.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -108,4 +108,8 @@ #define ce_lce_intr_ctrl_cpu_m() (U32(0x1U) << 31U) #define ce_lce_intr_ctrl_cpu_enable_f() (0x80000000U) #define ce_lce_intr_ctrl_cpu_disable_f() (0x0U) +#define ce_lce_engctl_r(i)\ + (nvgpu_safe_add_u32(0x0010441cU, nvgpu_safe_mult_u32((i), 128U))) +#define ce_lce_engctl_stallreq_true_f() (0x100U) +#define ce_lce_engctl_stallack_true_f() (0x200U) #endif 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 5a3067b02..4544da4d7 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 @@ /* - * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -75,4 +75,8 @@ #define ce_lce_opt_r(i)\ (nvgpu_safe_add_u32(0x00104414U, nvgpu_safe_mult_u32((i), 128U))) #define ce_lce_opt_force_barriers_npl__prod_f() (0x8U) +#define ce_lce_engctl_r(i)\ + (nvgpu_safe_add_u32(0x0010441cU, nvgpu_safe_mult_u32((i), 128U))) +#define ce_lce_engctl_stallreq_true_f() (0x100U) +#define ce_lce_engctl_stallack_true_f() (0x200U) #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_ce_tu104.h b/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_ce_tu104.h index 2971d626d..3664cf5cc 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_ce_tu104.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_ce_tu104.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -75,6 +75,10 @@ #define ce_lce_opt_r(i)\ (nvgpu_safe_add_u32(0x00104414U, nvgpu_safe_mult_u32((i), 128U))) #define ce_lce_opt_force_barriers_npl__prod_f() (0x8U) +#define ce_lce_engctl_r(i)\ + (nvgpu_safe_add_u32(0x0010441cU, nvgpu_safe_mult_u32((i), 128U))) +#define ce_lce_engctl_stallreq_true_f() (0x100U) +#define ce_lce_engctl_stallack_true_f() (0x200U) #define ce_grce_config_r(i)\ (nvgpu_safe_add_u32(0x00104034U, nvgpu_safe_mult_u32((i), 4U))) #define ce_grce_config__size_1_v() (0x00000002U)