diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-10 17:09:36 -0400 |
---|---|---|
committer | Bo Yan <byan@nvidia.com> | 2018-08-20 14:00:59 -0400 |
commit | 227c6f7b7a499dd58e0db6859736cfe586ef0897 (patch) | |
tree | d354f8422647021693aefefa5124d865c29ecd32 /drivers/gpu/nvgpu/gv100/gr_gv100.c | |
parent | 9e69e0cf978b53706f55ffb873e3966b4bb3a7a8 (diff) |
gpu: nvgpu: Move fuse HAL to common
Move implementation of fuse HAL to common/fuse. Also implements new
fuse query functions for FBIO, FBP, TPC floorsweeping and security
fuses.
JIRA NVGPU-957
Change-Id: I55e256a4f1b59d50a721d4942907f70dc57467c4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1797177
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/gr_gv100.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/gr_gv100.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv100/gr_gv100.c b/drivers/gpu/nvgpu/gv100/gr_gv100.c index 13092f2a..79526947 100644 --- a/drivers/gpu/nvgpu/gv100/gr_gv100.c +++ b/drivers/gpu/nvgpu/gv100/gr_gv100.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <nvgpu/hw/gv100/hw_gr_gv100.h> | 37 | #include <nvgpu/hw/gv100/hw_gr_gv100.h> |
38 | #include <nvgpu/hw/gv100/hw_fb_gv100.h> | 38 | #include <nvgpu/hw/gv100/hw_fb_gv100.h> |
39 | #include <nvgpu/hw/gv100/hw_proj_gv100.h> | 39 | #include <nvgpu/hw/gv100/hw_proj_gv100.h> |
40 | #include <nvgpu/hw/gv100/hw_fuse_gv100.h> | ||
41 | #include <nvgpu/hw/gv100/hw_top_gv100.h> | 40 | #include <nvgpu/hw/gv100/hw_top_gv100.h> |
42 | #include <nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h> | 41 | #include <nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h> |
43 | #include <nvgpu/hw/gv100/hw_perf_gv100.h> | 42 | #include <nvgpu/hw/gv100/hw_perf_gv100.h> |
@@ -391,7 +390,7 @@ static u32 gr_gv100_get_active_fpba_mask(struct gk20a *g) | |||
391 | * flip the bits. | 390 | * flip the bits. |
392 | * Also set unused bits to zero | 391 | * Also set unused bits to zero |
393 | */ | 392 | */ |
394 | active_fbpa_mask = nvgpu_readl(g, fuse_status_opt_fbio_r()); | 393 | active_fbpa_mask = g->ops.fuse.fuse_status_opt_fbio(g); |
395 | active_fbpa_mask = ~active_fbpa_mask; | 394 | active_fbpa_mask = ~active_fbpa_mask; |
396 | active_fbpa_mask = active_fbpa_mask & ((1 << num_fbpas) - 1); | 395 | active_fbpa_mask = active_fbpa_mask & ((1 << num_fbpas) - 1); |
397 | 396 | ||