gpu: nvgpu: PMU pmu.c/h header include cleanup

Some headers are not required to include in pmu.c/h as
lot of PMU code restructure happened, so removed headers
which not required anymore.

JIRA NVGPU-1972

Change-Id: Iead7f049d167cdaaaf7c75c2a5e19ae7b068fe6b
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2110108
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mahantesh Kumbar
2019-05-02 13:32:11 +05:30
committed by mobile promotions
parent 4992baf104
commit 0a64f6cb2d
24 changed files with 23 additions and 11 deletions

View File

@@ -26,6 +26,7 @@
#include <nvgpu/timers.h> #include <nvgpu/timers.h>
#include <nvgpu/bitops.h> #include <nvgpu/bitops.h>
#include <nvgpu/pmu.h> #include <nvgpu/pmu.h>
#include <nvgpu/pmu/mutex.h>
#include <nvgpu/runlist.h> #include <nvgpu/runlist.h>
#include <nvgpu/engines.h> #include <nvgpu/engines.h>
#include <nvgpu/engine_status.h> #include <nvgpu/engine_status.h>

View File

@@ -29,6 +29,7 @@
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/dma.h> #include <nvgpu/dma.h>
#include <nvgpu/rc.h> #include <nvgpu/rc.h>
#include <nvgpu/pmu/mutex.h>
void nvgpu_runlist_lock_active_runlists(struct gk20a *g) void nvgpu_runlist_lock_active_runlists(struct gk20a *g)
{ {

View File

@@ -31,6 +31,7 @@
#include <nvgpu/mm.h> #include <nvgpu/mm.h>
#include <nvgpu/acr.h> #include <nvgpu/acr.h>
#include <nvgpu/pmu/lsfm.h> #include <nvgpu/pmu/lsfm.h>
#include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/sec2/lsfm.h> #include <nvgpu/sec2/lsfm.h>
#include <nvgpu/dma.h> #include <nvgpu/dma.h>
#include <nvgpu/safe_ops.h> #include <nvgpu/safe_ops.h>

View File

@@ -30,6 +30,7 @@
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/pmu/allocator.h> #include <nvgpu/pmu/allocator.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/pmu_pg.h>
/* PMU NS UCODE IMG */ /* PMU NS UCODE IMG */
#define NVGPU_PMU_NS_UCODE_IMAGE "gpmu_ucode.bin" #define NVGPU_PMU_NS_UCODE_IMAGE "gpmu_ucode.bin"

View File

@@ -38,6 +38,7 @@
#include <nvgpu/pmu/lsfm.h> #include <nvgpu/pmu/lsfm.h>
#include <nvgpu/pmu/super_surface.h> #include <nvgpu/pmu/super_surface.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/seq.h>
/* PMU F/W version */ /* PMU F/W version */
#define APP_VERSION_TU10X 25622342U #define APP_VERSION_TU10X 25622342U

View File

@@ -36,6 +36,7 @@
#include <nvgpu/pmu/msg.h> #include <nvgpu/pmu/msg.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/allocator.h> #include <nvgpu/pmu/allocator.h>
#include <nvgpu/pmu/seq.h>
static bool pmu_validate_in_out_payload(struct nvgpu_pmu *pmu, struct pmu_cmd *cmd, static bool pmu_validate_in_out_payload(struct nvgpu_pmu *pmu, struct pmu_cmd *cmd,
struct pmu_in_out_payload_desc *payload) struct pmu_in_out_payload_desc *payload)

View File

@@ -30,6 +30,7 @@
#include <nvgpu/pmu/super_surface.h> #include <nvgpu/pmu/super_surface.h>
#include <nvgpu/pmu/pmu_perfmon.h> #include <nvgpu/pmu/pmu_perfmon.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/seq.h>
static int pmu_payload_extract(struct nvgpu_pmu *pmu, struct pmu_sequence *seq) static int pmu_payload_extract(struct nvgpu_pmu *pmu, struct pmu_sequence *seq)
{ {

View File

@@ -28,6 +28,7 @@
#include <nvgpu/pmu/perf.h> #include <nvgpu/pmu/perf.h>
#include <nvgpu/pmu/cmd.h> #include <nvgpu/pmu/cmd.h>
#include <nvgpu/pmu/pmu_pstate.h> #include <nvgpu/pmu/pmu_pstate.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "common/vbios/bios_sw_gp106.h" #include "common/vbios/bios_sw_gp106.h"
#include "lpwr.h" #include "lpwr.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/pmu/lpwr.h> #include <nvgpu/pmu/lpwr.h>
#include <nvgpu/pmu/cmd.h> #include <nvgpu/pmu/cmd.h>
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "pg_sw_gm20b.h" #include "pg_sw_gm20b.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/pmu/cmd.h> #include <nvgpu/pmu/cmd.h>
#include <nvgpu/clk_arb.h> #include <nvgpu/clk_arb.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "pg_sw_gp106.h" #include "pg_sw_gp106.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/pmu/cmd.h> #include <nvgpu/pmu/cmd.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "pg_sw_gp10b.h" #include "pg_sw_gp10b.h"
#include "pg_sw_gm20b.h" #include "pg_sw_gm20b.h"

View File

@@ -24,6 +24,7 @@
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/pmu/cmd.h> #include <nvgpu/pmu/cmd.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "pg_sw_gv11b.h" #include "pg_sw_gv11b.h"
#include "pg_sw_gp106.h" #include "pg_sw_gp106.h"

View File

@@ -33,6 +33,7 @@
#include <nvgpu/dma.h> #include <nvgpu/dma.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/debug.h> #include <nvgpu/pmu/debug.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "pg_sw_gm20b.h" #include "pg_sw_gm20b.h"
#include "pg_sw_gv11b.h" #include "pg_sw_gv11b.h"

View File

@@ -22,19 +22,13 @@
#include <nvgpu/pmu.h> #include <nvgpu/pmu.h>
#include <nvgpu/pmu/pmu_pg.h> #include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/dma.h>
#include <nvgpu/pmu/mutex.h> #include <nvgpu/pmu/mutex.h>
#include <nvgpu/pmu/seq.h> #include <nvgpu/pmu/seq.h>
#include <nvgpu/log.h> #include <nvgpu/log.h>
#include <nvgpu/pmu/pmuif/nvgpu_cmdif.h>
#include <nvgpu/enabled.h> #include <nvgpu/enabled.h>
#include <nvgpu/engine_queue.h>
#include <nvgpu/barrier.h>
#include <nvgpu/timers.h>
#include <nvgpu/bug.h> #include <nvgpu/bug.h>
#include <nvgpu/utils.h> #include <nvgpu/utils.h>
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/string.h>
#include <nvgpu/power_features/cg.h> #include <nvgpu/power_features/cg.h>
#include <nvgpu/nvgpu_err.h> #include <nvgpu/nvgpu_err.h>
#include <nvgpu/pmu/lsfm.h> #include <nvgpu/pmu/lsfm.h>
@@ -43,7 +37,6 @@
#include <nvgpu/pmu/pmu_perfmon.h> #include <nvgpu/pmu/pmu_perfmon.h>
#include <nvgpu/pmu/pmu_pg.h> #include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/firmware.h>
#include <nvgpu/pmu/debug.h> #include <nvgpu/pmu/debug.h>
#include <nvgpu/boardobj.h> #include <nvgpu/boardobj.h>
#include <nvgpu/boardobjgrp.h> #include <nvgpu/boardobjgrp.h>

View File

@@ -24,6 +24,7 @@
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/dma.h> #include <nvgpu/dma.h>
#include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/pmu/debug.h> #include <nvgpu/pmu/debug.h>
bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos) bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos)

View File

@@ -22,6 +22,7 @@
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>
#include <nvgpu/pmu.h> #include <nvgpu/pmu.h>
#include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/power_features/pg.h> #include <nvgpu/power_features/pg.h>
bool nvgpu_pg_elpg_is_enabled(struct gk20a *g) bool nvgpu_pg_elpg_is_enabled(struct gk20a *g)

View File

@@ -32,6 +32,7 @@
#include <nvgpu/channel.h> #include <nvgpu/channel.h>
#include <nvgpu/tsg.h> #include <nvgpu/tsg.h>
#include <nvgpu/preempt.h> #include <nvgpu/preempt.h>
#include <nvgpu/pmu/mutex.h>
#include "preempt_gk20a.h" #include "preempt_gk20a.h"

View File

@@ -37,6 +37,7 @@
#include <nvgpu/engine_status.h> #include <nvgpu/engine_status.h>
#include <nvgpu/preempt.h> #include <nvgpu/preempt.h>
#include <nvgpu/nvgpu_err.h> #include <nvgpu/nvgpu_err.h>
#include <nvgpu/pmu/mutex.h>
#include "preempt_gv11b.h" #include "preempt_gv11b.h"

View File

@@ -29,6 +29,7 @@
#include <nvgpu/pmu/mutex.h> #include <nvgpu/pmu/mutex.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/debug.h> #include <nvgpu/pmu/debug.h>
#include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/hw/gk20a/hw_pwr_gk20a.h> #include <nvgpu/hw/gk20a/hw_pwr_gk20a.h>
#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> #include <nvgpu/hw/gk20a/hw_mc_gk20a.h>

View File

@@ -38,6 +38,7 @@
#include <nvgpu/power_features/power_features.h> #include <nvgpu/power_features/power_features.h>
#include <nvgpu/gr/fecs_trace.h> #include <nvgpu/gr/fecs_trace.h>
#include <nvgpu/preempt.h> #include <nvgpu/preempt.h>
#include <nvgpu/pmu/mutex.h>
#include "rc_gv11b.h" #include "rc_gv11b.h"

View File

@@ -89,6 +89,7 @@ struct nvgpu_fecs_ecc_status;
struct _resmgr_context; struct _resmgr_context;
struct nvgpu_gpfifo_entry; struct nvgpu_gpfifo_entry;
struct vm_gk20a_mapping_batch; struct vm_gk20a_mapping_batch;
struct pmu_pg_stats_data;
enum nvgpu_unit; enum nvgpu_unit;
enum nvgpu_flush_op; enum nvgpu_flush_op;

View File

@@ -27,13 +27,10 @@
#include <nvgpu/allocator.h> #include <nvgpu/allocator.h>
#include <nvgpu/lock.h> #include <nvgpu/lock.h>
#include <nvgpu/nvgpu_common.h> #include <nvgpu/nvgpu_common.h>
#include <nvgpu/nvgpu_mem.h>
#include <nvgpu/flcnif_cmn.h> #include <nvgpu/flcnif_cmn.h>
#include <nvgpu/pmu/pmuif/nvgpu_cmdif.h>
#include <nvgpu/falcon.h> #include <nvgpu/falcon.h>
#include <nvgpu/timers.h> #include <nvgpu/timers.h>
#include <nvgpu/pmu/pmu_pg.h>
#include <nvgpu/pmu/seq.h>
#include <nvgpu/pmu/mutex.h>
#include <nvgpu/pmu/queue.h> #include <nvgpu/pmu/queue.h>
#include <nvgpu/pmu/msg.h> #include <nvgpu/pmu/msg.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>

View File

@@ -15,6 +15,7 @@
#include <nvgpu/enabled.h> #include <nvgpu/enabled.h>
#include <nvgpu/pmu/pmu_perfmon.h> #include <nvgpu/pmu/pmu_perfmon.h>
#include <nvgpu/pmu/debug.h> #include <nvgpu/pmu/debug.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "debug_pmu.h" #include "debug_pmu.h"
#include "os_linux.h" #include "os_linux.h"

View File

@@ -32,6 +32,7 @@
#include <nvgpu/power_features/pg.h> #include <nvgpu/power_features/pg.h>
#include <nvgpu/pmu/pmu_perfmon.h> #include <nvgpu/pmu/pmu_perfmon.h>
#include <nvgpu/pmu/fw.h> #include <nvgpu/pmu/fw.h>
#include <nvgpu/pmu/pmu_pg.h>
#include "os_linux.h" #include "os_linux.h"
#include "sysfs.h" #include "sysfs.h"