diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-08-16 18:00:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-10 18:23:08 -0400 |
commit | 83efad7adb44647d37d98a57cbb6df48e356917d (patch) | |
tree | eebbe2f831484d2e6ea90d027f0dc16d69f42114 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | a02e1c1f0b012b743d4c1ba9c853057b4359107e (diff) |
gpu: nvgpu: Move FB size query to FB
Vidmem size query was in mm_xxx.c. It involves reading a register from
FB, so move the query to FB HAL.
JIRA NVGPU-1063
Change-Id: I30dfd2c4fdcdd6c841f85aaab7431d52473759bd
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1801425
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 89a05b3c..e9497ea7 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -584,6 +584,7 @@ struct gpu_ops { | |||
584 | void (*fault_buf_set_state_hw)(struct gk20a *g, | 584 | void (*fault_buf_set_state_hw)(struct gk20a *g, |
585 | u32 index, u32 state); | 585 | u32 index, u32 state); |
586 | void (*fault_buf_configure_hw)(struct gk20a *g, u32 index); | 586 | void (*fault_buf_configure_hw)(struct gk20a *g, u32 index); |
587 | size_t (*get_vidmem_size)(struct gk20a *g); | ||
587 | } fb; | 588 | } fb; |
588 | struct { | 589 | struct { |
589 | void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod); | 590 | void (*slcg_bus_load_gating_prod)(struct gk20a *g, bool prod); |
@@ -963,7 +964,6 @@ struct gpu_ops { | |||
963 | struct vm_gk20a *vm); | 964 | struct vm_gk20a *vm); |
964 | u64 (*gpu_phys_addr)(struct gk20a *g, | 965 | u64 (*gpu_phys_addr)(struct gk20a *g, |
965 | struct nvgpu_gmmu_attrs *attrs, u64 phys); | 966 | struct nvgpu_gmmu_attrs *attrs, u64 phys); |
966 | size_t (*get_vidmem_size)(struct gk20a *g); | ||
967 | int (*alloc_inst_block)(struct gk20a *g, | 967 | int (*alloc_inst_block)(struct gk20a *g, |
968 | struct nvgpu_mem *inst_block); | 968 | struct nvgpu_mem *inst_block); |
969 | void (*init_inst_block)(struct nvgpu_mem *inst_block, | 969 | void (*init_inst_block)(struct nvgpu_mem *inst_block, |