diff options
author | Sunny He <suhe@nvidia.com> | 2017-08-01 18:03:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-21 16:06:04 -0400 |
commit | b50b379c192714d0d08c3f2d33e90c95cf795253 (patch) | |
tree | bd7786d1fec51f168a9393fcb16a8fe56ad25044 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 192f1039e11893b9216819837eee871612225849 (diff) |
gpu: nvgpu: Move non-fp pmu members from gpu_ops
Move non-function pointer members out of the pmu and pmu_ver
substructs of gpu_ops. Ideally gpu_ops will have only function
ponters, better matching its intended purpose and improving
readability.
- g.ops.pmu_ver.cmd_id_zbc_table_update has been changed to
g.pmu_ver_cmd_id_zbc_table_update
- g.ops.pmu.lspmuwprinitdone has been changed to
g.pmu_lsf_pmu_wpr_init_done
- g.ops.pmu.lsfloadedfalconid has been changed to
g.pmu_lsf_loaded_falcon_id
Boolean flags have been implemented using the enabled.h API
- g.ops.pmu_ver.is_pmu_zbc_save_supported moved to
common flag NVGPU_PMU_ZBC_SAVE
- g.ops.pmu.fecsbootstrapdone moved to
common flag NVGPU_PMU_FECS_BOOTSTRAP_DONE
Jira NVGPU-74
Change-Id: I08fb20f8f382277f2c579f06d561914c000ea6e0
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1530981
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 47fd3aef..19ea76cb 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -656,9 +656,6 @@ struct gpu_ops { | |||
656 | u8 value); | 656 | u8 value); |
657 | void (*pg_cmd_eng_buf_load_set_dma_idx)(struct pmu_pg_cmd *pg, | 657 | void (*pg_cmd_eng_buf_load_set_dma_idx)(struct pmu_pg_cmd *pg, |
658 | u8 value); | 658 | u8 value); |
659 | /*used for change of enum zbc update cmd id from ver 0 to ver1*/ | ||
660 | u32 cmd_id_zbc_table_update; | ||
661 | bool is_pmu_zbc_save_supported; | ||
662 | } pmu_ver; | 659 | } pmu_ver; |
663 | struct { | 660 | struct { |
664 | int (*get_netlist_name)(struct gk20a *g, int index, char *name); | 661 | int (*get_netlist_name)(struct gk20a *g, int index, char *name); |
@@ -822,9 +819,6 @@ struct gpu_ops { | |||
822 | void *lsfm, u32 *p_bl_gen_desc_size, u32 falconid); | 819 | void *lsfm, u32 *p_bl_gen_desc_size, u32 falconid); |
823 | void (*handle_ext_irq)(struct gk20a *g, u32 intr); | 820 | void (*handle_ext_irq)(struct gk20a *g, u32 intr); |
824 | void (*set_irqmask)(struct gk20a *g); | 821 | void (*set_irqmask)(struct gk20a *g); |
825 | u32 lspmuwprinitdone; | ||
826 | u32 lsfloadedfalconid; | ||
827 | bool fecsbootstrapdone; | ||
828 | } pmu; | 822 | } pmu; |
829 | struct { | 823 | struct { |
830 | int (*init_debugfs)(struct gk20a *g); | 824 | int (*init_debugfs)(struct gk20a *g); |
@@ -1197,6 +1191,10 @@ struct gk20a { | |||
1197 | 1191 | ||
1198 | struct gpu_ops ops; | 1192 | struct gpu_ops ops; |
1199 | u32 mc_intr_mask_restore[4]; | 1193 | u32 mc_intr_mask_restore[4]; |
1194 | /*used for change of enum zbc update cmd id from ver 0 to ver1*/ | ||
1195 | u32 pmu_ver_cmd_id_zbc_table_update; | ||
1196 | u32 pmu_lsf_pmu_wpr_init_done; | ||
1197 | u32 pmu_lsf_loaded_falcon_id; | ||
1200 | 1198 | ||
1201 | int irqs_enabled; | 1199 | int irqs_enabled; |
1202 | int irq_stall; /* can be same as irq_nonstall in case of PCI */ | 1200 | int irq_stall; /* can be same as irq_nonstall in case of PCI */ |