diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-05-10 11:05:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-05 02:05:18 -0400 |
commit | 673dd971600b26131c0afdb221e13c080da022fd (patch) | |
tree | 7c8416ac2ef61891812773d55c8c8dc61da824aa /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 7668ccb2a2e4a8c13d82b427c65be79c725afe08 (diff) |
gpu: nvgpu: moved & renamed "struct pmu_gk20a"
- Renamed "struct pmu_gk20a" to "struct nvgpu_pmu" then moved
to file "pmu.h" under folder "drivers/gpu/nvgpu/include/nvgpu/"
- Included header file "pmu.h" to dependent file &
removed "pmu_gk20a.h" include if its usage is not present.
- Replaced "struct pmu_gk20a" with "struct nvgpu_pmu" in dependent
source & header files.
JIRA NVGPU-56
Change-Id: Ia3c606616831027093d5c216959c6a40d7c2632e
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1479209
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 | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 89b414be..37e2e185 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -50,6 +50,7 @@ struct gk20a_debug_output; | |||
50 | #include <nvgpu/acr/nvgpu_acr.h> | 50 | #include <nvgpu/acr/nvgpu_acr.h> |
51 | #include <nvgpu/kref.h> | 51 | #include <nvgpu/kref.h> |
52 | #include <nvgpu/falcon.h> | 52 | #include <nvgpu/falcon.h> |
53 | #include <nvgpu/pmu.h> | ||
53 | 54 | ||
54 | #include "clk_gk20a.h" | 55 | #include "clk_gk20a.h" |
55 | #include "ce2_gk20a.h" | 56 | #include "ce2_gk20a.h" |
@@ -523,33 +524,33 @@ struct gpu_ops { | |||
523 | /*used for change of enum zbc update cmd id from ver 0 to ver1*/ | 524 | /*used for change of enum zbc update cmd id from ver 0 to ver1*/ |
524 | u32 cmd_id_zbc_table_update; | 525 | u32 cmd_id_zbc_table_update; |
525 | bool is_pmu_zbc_save_supported; | 526 | bool is_pmu_zbc_save_supported; |
526 | u32 (*get_pmu_cmdline_args_size)(struct pmu_gk20a *pmu); | 527 | u32 (*get_pmu_cmdline_args_size)(struct nvgpu_pmu *pmu); |
527 | void (*set_pmu_cmdline_args_cpu_freq)(struct pmu_gk20a *pmu, | 528 | void (*set_pmu_cmdline_args_cpu_freq)(struct nvgpu_pmu *pmu, |
528 | u32 freq); | 529 | u32 freq); |
529 | void (*set_pmu_cmdline_args_trace_size)(struct pmu_gk20a *pmu, | 530 | void (*set_pmu_cmdline_args_trace_size)(struct nvgpu_pmu *pmu, |
530 | u32 size); | 531 | u32 size); |
531 | void (*set_pmu_cmdline_args_trace_dma_base)( | 532 | void (*set_pmu_cmdline_args_trace_dma_base)( |
532 | struct pmu_gk20a *pmu); | 533 | struct nvgpu_pmu *pmu); |
533 | void (*set_pmu_cmdline_args_trace_dma_idx)( | 534 | void (*set_pmu_cmdline_args_trace_dma_idx)( |
534 | struct pmu_gk20a *pmu, u32 idx); | 535 | struct nvgpu_pmu *pmu, u32 idx); |
535 | void * (*get_pmu_cmdline_args_ptr)(struct pmu_gk20a *pmu); | 536 | void * (*get_pmu_cmdline_args_ptr)(struct nvgpu_pmu *pmu); |
536 | u32 (*get_pmu_allocation_struct_size)(struct pmu_gk20a *pmu); | 537 | u32 (*get_pmu_allocation_struct_size)(struct nvgpu_pmu *pmu); |
537 | void (*set_pmu_allocation_ptr)(struct pmu_gk20a *pmu, | 538 | void (*set_pmu_allocation_ptr)(struct nvgpu_pmu *pmu, |
538 | void **pmu_alloc_ptr, void *assign_ptr); | 539 | void **pmu_alloc_ptr, void *assign_ptr); |
539 | void (*pmu_allocation_set_dmem_size)(struct pmu_gk20a *pmu, | 540 | void (*pmu_allocation_set_dmem_size)(struct nvgpu_pmu *pmu, |
540 | void *pmu_alloc_ptr, u16 size); | 541 | void *pmu_alloc_ptr, u16 size); |
541 | u16 (*pmu_allocation_get_dmem_size)(struct pmu_gk20a *pmu, | 542 | u16 (*pmu_allocation_get_dmem_size)(struct nvgpu_pmu *pmu, |
542 | void *pmu_alloc_ptr); | 543 | void *pmu_alloc_ptr); |
543 | u32 (*pmu_allocation_get_dmem_offset)(struct pmu_gk20a *pmu, | 544 | u32 (*pmu_allocation_get_dmem_offset)(struct nvgpu_pmu *pmu, |
544 | void *pmu_alloc_ptr); | 545 | void *pmu_alloc_ptr); |
545 | u32 * (*pmu_allocation_get_dmem_offset_addr)( | 546 | u32 * (*pmu_allocation_get_dmem_offset_addr)( |
546 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); | 547 | struct nvgpu_pmu *pmu, void *pmu_alloc_ptr); |
547 | void (*pmu_allocation_set_dmem_offset)(struct pmu_gk20a *pmu, | 548 | void (*pmu_allocation_set_dmem_offset)(struct nvgpu_pmu *pmu, |
548 | void *pmu_alloc_ptr, u32 offset); | 549 | void *pmu_alloc_ptr, u32 offset); |
549 | void * (*pmu_allocation_get_fb_addr)( | 550 | void * (*pmu_allocation_get_fb_addr)( |
550 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); | 551 | struct nvgpu_pmu *pmu, void *pmu_alloc_ptr); |
551 | u32 (*pmu_allocation_get_fb_size)( | 552 | u32 (*pmu_allocation_get_fb_size)( |
552 | struct pmu_gk20a *pmu, void *pmu_alloc_ptr); | 553 | struct nvgpu_pmu *pmu, void *pmu_alloc_ptr); |
553 | void (*get_pmu_init_msg_pmu_queue_params)( | 554 | void (*get_pmu_init_msg_pmu_queue_params)( |
554 | struct pmu_queue *queue, u32 id, | 555 | struct pmu_queue *queue, u32 id, |
555 | void *pmu_init_msg); | 556 | void *pmu_init_msg); |
@@ -590,15 +591,15 @@ struct gpu_ops { | |||
590 | struct pmu_sequence *seq); | 591 | struct pmu_sequence *seq); |
591 | void *(*get_pmu_seq_out_a_ptr)( | 592 | void *(*get_pmu_seq_out_a_ptr)( |
592 | struct pmu_sequence *seq); | 593 | struct pmu_sequence *seq); |
593 | void (*set_pmu_cmdline_args_secure_mode)(struct pmu_gk20a *pmu, | 594 | void (*set_pmu_cmdline_args_secure_mode)(struct nvgpu_pmu *pmu, |
594 | u32 val); | 595 | u32 val); |
595 | u32 (*get_perfmon_cntr_sz)(struct pmu_gk20a *pmu); | 596 | u32 (*get_perfmon_cntr_sz)(struct nvgpu_pmu *pmu); |
596 | void * (*get_perfmon_cntr_ptr)(struct pmu_gk20a *pmu); | 597 | void * (*get_perfmon_cntr_ptr)(struct nvgpu_pmu *pmu); |
597 | void (*set_perfmon_cntr_ut)(struct pmu_gk20a *pmu, u16 ut); | 598 | void (*set_perfmon_cntr_ut)(struct nvgpu_pmu *pmu, u16 ut); |
598 | void (*set_perfmon_cntr_lt)(struct pmu_gk20a *pmu, u16 lt); | 599 | void (*set_perfmon_cntr_lt)(struct nvgpu_pmu *pmu, u16 lt); |
599 | void (*set_perfmon_cntr_valid)(struct pmu_gk20a *pmu, u8 val); | 600 | void (*set_perfmon_cntr_valid)(struct nvgpu_pmu *pmu, u8 val); |
600 | void (*set_perfmon_cntr_index)(struct pmu_gk20a *pmu, u8 val); | 601 | void (*set_perfmon_cntr_index)(struct nvgpu_pmu *pmu, u8 val); |
601 | void (*set_perfmon_cntr_group_id)(struct pmu_gk20a *pmu, | 602 | void (*set_perfmon_cntr_group_id)(struct nvgpu_pmu *pmu, |
602 | u8 gid); | 603 | u8 gid); |
603 | 604 | ||
604 | u8 (*pg_cmd_eng_buf_load_size)(struct pmu_pg_cmd *pg); | 605 | u8 (*pg_cmd_eng_buf_load_size)(struct pmu_pg_cmd *pg); |
@@ -728,7 +729,7 @@ struct gpu_ops { | |||
728 | bool (*is_pmu_supported)(struct gk20a *g); | 729 | bool (*is_pmu_supported)(struct gk20a *g); |
729 | int (*prepare_ucode)(struct gk20a *g); | 730 | int (*prepare_ucode)(struct gk20a *g); |
730 | int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g); | 731 | int (*pmu_setup_hw_and_bootstrap)(struct gk20a *g); |
731 | int (*pmu_nsbootstrap)(struct pmu_gk20a *pmu); | 732 | int (*pmu_nsbootstrap)(struct nvgpu_pmu *pmu); |
732 | int (*pmu_setup_elpg)(struct gk20a *g); | 733 | int (*pmu_setup_elpg)(struct gk20a *g); |
733 | u32 (*pmu_get_queue_head)(u32 i); | 734 | u32 (*pmu_get_queue_head)(u32 i); |
734 | u32 (*pmu_get_queue_head_size)(void); | 735 | u32 (*pmu_get_queue_head_size)(void); |
@@ -1014,7 +1015,7 @@ struct gk20a { | |||
1014 | struct gr_gk20a gr; | 1015 | struct gr_gk20a gr; |
1015 | struct sim_gk20a sim; | 1016 | struct sim_gk20a sim; |
1016 | struct mm_gk20a mm; | 1017 | struct mm_gk20a mm; |
1017 | struct pmu_gk20a pmu; | 1018 | struct nvgpu_pmu pmu; |
1018 | struct acr_desc acr; | 1019 | struct acr_desc acr; |
1019 | struct ecc_gk20a ecc; | 1020 | struct ecc_gk20a ecc; |
1020 | struct cooling_device_gk20a gk20a_cdev; | 1021 | struct cooling_device_gk20a gk20a_cdev; |
@@ -1396,7 +1397,7 @@ static inline struct gk20a *gk20a_from_as(struct gk20a_as *as) | |||
1396 | { | 1397 | { |
1397 | return container_of(as, struct gk20a, as); | 1398 | return container_of(as, struct gk20a, as); |
1398 | } | 1399 | } |
1399 | static inline struct gk20a *gk20a_from_pmu(struct pmu_gk20a *pmu) | 1400 | static inline struct gk20a *gk20a_from_pmu(struct nvgpu_pmu *pmu) |
1400 | { | 1401 | { |
1401 | return container_of(pmu, struct gk20a, pmu); | 1402 | return container_of(pmu, struct gk20a, pmu); |
1402 | } | 1403 | } |