diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2019-07-10 05:52:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-11-04 09:10:48 -0500 |
commit | 0bdffbed34df2e35f1df305173cd19eeb5582305 (patch) | |
tree | 2f158462aea64a913c64f21ae61e6766b29c5ecc /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h | |
parent | 0ffc5fa5e44c623b6fde3d6bed5369b9674ee089 (diff) |
gpu: nvgpu: set CE prod values
Add g->ops.ce.init_prod_values() hal for gv11b to initialize
PROD values of CE unit
Bug 2526212
Chery-pick/manual port from dev-main
Change-Id: I8e516b292622e09c537feb7830392648116baa7c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2150874
(cherry picked from commit 0e6a305c6af3ea6d9a0cad7b4071f68028a1aebe)
Reviewed-on: https://git-master.nvidia.com/r/2224709
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-by: Luis Dib <ldib@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ce_gv11b.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 |