diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-06 18:13:54 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-16 13:57:48 -0400 |
commit | 211edaefb71d06d34c2835a93249da58673bff8a (patch) | |
tree | 3bd5eed1cc9020fcc8af4e4ffd9653268d59eb9b /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 3a1321ddcd33accd6a8a6efee2921ebf088b0f50 (diff) |
gpu: nvgpu: Fix CWD floorsweep programming
Program CWD TPC and SM registers correctly. The old code did not work
when there are more than 4 TPCs.
Refactor init_fs_mask to reduce code duplication.
Change-Id: Id93c1f8df24f1b7ee60314c3204e288b91951a88
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1143697
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 8dfe8eda..5d06a441 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -260,6 +260,10 @@ struct gpu_ops { | |||
260 | int (*get_preemption_mode_flags)(struct gk20a *g, | 260 | int (*get_preemption_mode_flags)(struct gk20a *g, |
261 | struct nvgpu_preemption_modes_rec *preemption_modes_rec); | 261 | struct nvgpu_preemption_modes_rec *preemption_modes_rec); |
262 | int (*fuse_override)(struct gk20a *g); | 262 | int (*fuse_override)(struct gk20a *g); |
263 | int (*load_smid_config)(struct gk20a *g); | ||
264 | void (*program_sm_id_numbering)(struct gk20a *g, | ||
265 | u32 gpc, u32 tpc, u32 smid); | ||
266 | void (*program_active_tpc_counts)(struct gk20a *g, u32 gpc); | ||
263 | } gr; | 267 | } gr; |
264 | const char *name; | 268 | const char *name; |
265 | struct { | 269 | struct { |