mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
4992baf104
commit
0a64f6cb2d
@@ -26,6 +26,7 @@
|
||||
#include <nvgpu/timers.h>
|
||||
#include <nvgpu/bitops.h>
|
||||
#include <nvgpu/pmu.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
#include <nvgpu/runlist.h>
|
||||
#include <nvgpu/engines.h>
|
||||
#include <nvgpu/engine_status.h>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/rc.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
|
||||
void nvgpu_runlist_lock_active_runlists(struct gk20a *g)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <nvgpu/mm.h>
|
||||
#include <nvgpu/acr.h>
|
||||
#include <nvgpu/pmu/lsfm.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
#include <nvgpu/sec2/lsfm.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/safe_ops.h>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/pmu/allocator.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
/* PMU NS UCODE IMG */
|
||||
#define NVGPU_PMU_NS_UCODE_IMAGE "gpmu_ucode.bin"
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <nvgpu/pmu/lsfm.h>
|
||||
#include <nvgpu/pmu/super_surface.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/pmu/seq.h>
|
||||
|
||||
/* PMU F/W version */
|
||||
#define APP_VERSION_TU10X 25622342U
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <nvgpu/pmu/msg.h>
|
||||
#include <nvgpu/pmu/fw.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,
|
||||
struct pmu_in_out_payload_desc *payload)
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <nvgpu/pmu/super_surface.h>
|
||||
#include <nvgpu/pmu/pmu_perfmon.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/pmu/seq.h>
|
||||
|
||||
static int pmu_payload_extract(struct nvgpu_pmu *pmu, struct pmu_sequence *seq)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <nvgpu/pmu/perf.h>
|
||||
#include <nvgpu/pmu/cmd.h>
|
||||
#include <nvgpu/pmu/pmu_pstate.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "common/vbios/bios_sw_gp106.h"
|
||||
#include "lpwr.h"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <nvgpu/pmu/lpwr.h>
|
||||
#include <nvgpu/pmu/cmd.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "pg_sw_gm20b.h"
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/pmu/cmd.h>
|
||||
#include <nvgpu/clk_arb.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "pg_sw_gp106.h"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/pmu/cmd.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "pg_sw_gp10b.h"
|
||||
#include "pg_sw_gm20b.h"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/pmu/cmd.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "pg_sw_gv11b.h"
|
||||
#include "pg_sw_gp106.h"
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/pmu/debug.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "pg_sw_gm20b.h"
|
||||
#include "pg_sw_gv11b.h"
|
||||
|
||||
@@ -22,19 +22,13 @@
|
||||
|
||||
#include <nvgpu/pmu.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
#include <nvgpu/pmu/seq.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/pmu/pmuif/nvgpu_cmdif.h>
|
||||
#include <nvgpu/enabled.h>
|
||||
#include <nvgpu/engine_queue.h>
|
||||
#include <nvgpu/barrier.h>
|
||||
#include <nvgpu/timers.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/utils.h>
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/string.h>
|
||||
#include <nvgpu/power_features/cg.h>
|
||||
#include <nvgpu/nvgpu_err.h>
|
||||
#include <nvgpu/pmu/lsfm.h>
|
||||
@@ -43,7 +37,6 @@
|
||||
#include <nvgpu/pmu/pmu_perfmon.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/firmware.h>
|
||||
#include <nvgpu/pmu/debug.h>
|
||||
#include <nvgpu/boardobj.h>
|
||||
#include <nvgpu/boardobjgrp.h>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
#include <nvgpu/pmu/debug.h>
|
||||
|
||||
bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos)
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <nvgpu/pmu.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
#include <nvgpu/power_features/pg.h>
|
||||
|
||||
bool nvgpu_pg_elpg_is_enabled(struct gk20a *g)
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <nvgpu/channel.h>
|
||||
#include <nvgpu/tsg.h>
|
||||
#include <nvgpu/preempt.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
|
||||
#include "preempt_gk20a.h"
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <nvgpu/engine_status.h>
|
||||
#include <nvgpu/preempt.h>
|
||||
#include <nvgpu/nvgpu_err.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
|
||||
#include "preempt_gv11b.h"
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
#include <nvgpu/pmu/fw.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_mc_gk20a.h>
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <nvgpu/power_features/power_features.h>
|
||||
#include <nvgpu/gr/fecs_trace.h>
|
||||
#include <nvgpu/preempt.h>
|
||||
#include <nvgpu/pmu/mutex.h>
|
||||
|
||||
#include "rc_gv11b.h"
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ struct nvgpu_fecs_ecc_status;
|
||||
struct _resmgr_context;
|
||||
struct nvgpu_gpfifo_entry;
|
||||
struct vm_gk20a_mapping_batch;
|
||||
struct pmu_pg_stats_data;
|
||||
|
||||
enum nvgpu_unit;
|
||||
enum nvgpu_flush_op;
|
||||
|
||||
@@ -27,13 +27,10 @@
|
||||
#include <nvgpu/allocator.h>
|
||||
#include <nvgpu/lock.h>
|
||||
#include <nvgpu/nvgpu_common.h>
|
||||
#include <nvgpu/nvgpu_mem.h>
|
||||
#include <nvgpu/flcnif_cmn.h>
|
||||
#include <nvgpu/pmu/pmuif/nvgpu_cmdif.h>
|
||||
#include <nvgpu/falcon.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/msg.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <nvgpu/enabled.h>
|
||||
#include <nvgpu/pmu/pmu_perfmon.h>
|
||||
#include <nvgpu/pmu/debug.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "debug_pmu.h"
|
||||
#include "os_linux.h"
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <nvgpu/power_features/pg.h>
|
||||
#include <nvgpu/pmu/pmu_perfmon.h>
|
||||
#include <nvgpu/pmu/fw.h>
|
||||
#include <nvgpu/pmu/pmu_pg.h>
|
||||
|
||||
#include "os_linux.h"
|
||||
#include "sysfs.h"
|
||||
|
||||
Reference in New Issue
Block a user