diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gp10b')
3 files changed, 11 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h index b214bdb3..d83320fe 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2017, 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"), |
@@ -104,6 +104,10 @@ static inline u32 ctxsw_prog_main_image_pm_mode_m(void) | |||
104 | { | 104 | { |
105 | return 0x7U << 0U; | 105 | return 0x7U << 0U; |
106 | } | 106 | } |
107 | static inline u32 ctxsw_prog_main_image_pm_mode_ctxsw_f(void) | ||
108 | { | ||
109 | return 0x1U; | ||
110 | } | ||
107 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) | 111 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) |
108 | { | 112 | { |
109 | return 0x0U; | 113 | return 0x0U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h index 07f39943..6aeb4355 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.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"), |
@@ -86,7 +86,7 @@ static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void) | |||
86 | } | 86 | } |
87 | static inline u32 gmmu_new_pde_address_sys_f(u32 v) | 87 | static inline u32 gmmu_new_pde_address_sys_f(u32 v) |
88 | { | 88 | { |
89 | return (v & 0xfffffffU) << 8U; | 89 | return (v & 0xffffffU) << 8U; |
90 | } | 90 | } |
91 | static inline u32 gmmu_new_pde_address_sys_w(void) | 91 | static inline u32 gmmu_new_pde_address_sys_w(void) |
92 | { | 92 | { |
@@ -194,7 +194,7 @@ static inline u32 gmmu_new_dual_pde_vol_big_false_f(void) | |||
194 | } | 194 | } |
195 | static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v) | 195 | static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v) |
196 | { | 196 | { |
197 | return (v & 0xfffffffU) << 8U; | 197 | return (v & 0xffffffU) << 8U; |
198 | } | 198 | } |
199 | static inline u32 gmmu_new_dual_pde_address_small_sys_w(void) | 199 | static inline u32 gmmu_new_dual_pde_address_small_sys_w(void) |
200 | { | 200 | { |
@@ -242,7 +242,7 @@ static inline u32 gmmu_new_pte_privilege_false_f(void) | |||
242 | } | 242 | } |
243 | static inline u32 gmmu_new_pte_address_sys_f(u32 v) | 243 | static inline u32 gmmu_new_pte_address_sys_f(u32 v) |
244 | { | 244 | { |
245 | return (v & 0xfffffffU) << 8U; | 245 | return (v & 0xffffffU) << 8U; |
246 | } | 246 | } |
247 | static inline u32 gmmu_new_pte_address_sys_w(void) | 247 | static inline u32 gmmu_new_pte_address_sys_w(void) |
248 | { | 248 | { |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h index c160e897..75f1c046 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2017, 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"), |
@@ -754,7 +754,7 @@ static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v) | |||
754 | } | 754 | } |
755 | static inline u32 pwr_pmu_idle_intr_status_intr_m(void) | 755 | static inline u32 pwr_pmu_idle_intr_status_intr_m(void) |
756 | { | 756 | { |
757 | return U32(0x1U) << 0U; | 757 | return 0x1U << 0U; |
758 | } | 758 | } |
759 | static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r) | 759 | static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r) |
760 | { | 760 | { |