gk20a: nvgpu: Remove io.h dependency from gk20a.h

In the current code, gk20a.h includes io.h which gets directly included
in a lot of other files. io.h contains methods which uses a struct
gk20a as a parameter leading to a circular dependency between io.h
and gk20a.h. This can be mitigated by removing io.h from gk20a.h as
part of larger effort to moving gk20a.h to nvgpu/gk20a.h

JIRA NVGPU-597

Change-Id: I93e504fa9371b88152737b342a75580c65e8f712
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1787316
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Debarshi Dutta
2018-07-27 11:17:41 +05:30
committed by mobile promotions
parent 4cbec6b2c7
commit 82a90170d3
77 changed files with 87 additions and 8 deletions

View File

@@ -22,6 +22,7 @@
#include <nvgpu/bios.h>
#include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -23,6 +23,7 @@
#include <nvgpu/log.h>
#include <nvgpu/soc.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "bus_gk20a.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/timers.h>
#include <nvgpu/mm.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "bus_gm20b.h"

View File

@@ -22,6 +22,7 @@
#include <nvgpu/timers.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "bus_gp10b.h"
#include "gk20a/gk20a.h"

View File

@@ -22,6 +22,7 @@
#include <nvgpu/timers.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "bus_gv100.h"
#include "gk20a/gk20a.h"

View File

@@ -29,6 +29,7 @@
#include "fb_gk20a.h"
#include <nvgpu/timers.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
#include <nvgpu/hw/gk20a/hw_fb_gk20a.h>

View File

@@ -29,6 +29,8 @@
#include "fb_gk20a.h"
#include "fb_gm20b.h"
#include <nvgpu/io.h>
#include <nvgpu/hw/gm20b/hw_fb_gm20b.h>
#include <nvgpu/hw/gm20b/hw_top_gm20b.h>
#include <nvgpu/hw/gm20b/hw_gmmu_gm20b.h>

View File

@@ -25,6 +25,8 @@
#include "fb_gp10b.h"
#include "fb_gp106.h"
#include <nvgpu/io.h>
#include <nvgpu/hw/gp106/hw_fb_gp106.h>
#define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */

View File

@@ -35,6 +35,7 @@
#include <nvgpu/firmware.h>
#include <nvgpu/pmu.h>
#include <nvgpu/falcon.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gm20b/acr_gm20b.h"

View File

@@ -30,6 +30,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/soc.h>
#include <nvgpu/ptimer.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/mm_gk20a.h"

View File

@@ -24,6 +24,7 @@
#include <nvgpu/page_allocator.h>
#include <nvgpu/enabled.h>
#include <nvgpu/sizes.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -21,6 +21,7 @@
*/
#include <nvgpu/log.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "ptimer_gk20a.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/dma.h>
#include <nvgpu/hw_sim_pci.h>
#include <nvgpu/sim.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
static inline u32 sim_msg_header_size(void)

View File

@@ -21,6 +21,7 @@
*/
#include <nvgpu/bios.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gp106/hw_gc6_gp106.h>
#include "gk20a/gk20a.h"

View File

@@ -30,6 +30,7 @@
#include <nvgpu/log.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gk20a/hw_ce2_gk20a.h>
#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>

View File

@@ -31,6 +31,7 @@
#include <nvgpu/barrier.h>
#include <nvgpu/log.h>
#include <nvgpu/bug.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "css_gr_gk20a.h"

View File

@@ -28,6 +28,7 @@
#include <nvgpu/atomic.h>
#include <nvgpu/mm.h>
#include <nvgpu/bug.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "gr_gk20a.h"

View File

@@ -37,6 +37,7 @@
#include <nvgpu/mm.h>
#include <nvgpu/enabled.h>
#include <nvgpu/ctxsw_trace.h>
#include <nvgpu/io.h>
#include "fecs_trace_gk20a.h"
#include "gk20a.h"

View File

@@ -41,6 +41,7 @@
#include <nvgpu/ctxsw_trace.h>
#include <nvgpu/error_notifier.h>
#include <nvgpu/ptimer.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "mm_gk20a.h"

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -21,6 +21,7 @@
*/
#include <nvgpu/falcon.h>
#include <nvgpu/pmu.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/flcn_gk20a.h"

View File

@@ -47,7 +47,6 @@ struct nvgpu_ctxsw_trace_filter;
#include <nvgpu/lock.h>
#include <nvgpu/thread.h>
#include <nvgpu/io.h>
#include <nvgpu/mm.h>
#include <nvgpu/as.h>

View File

@@ -27,6 +27,7 @@
#include <nvgpu/log.h>
#include <nvgpu/firmware.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "gr_ctx_gk20a.h"

View File

@@ -39,6 +39,7 @@
#include <nvgpu/ctxsw_trace.h>
#include <nvgpu/error_notifier.h>
#include <nvgpu/ecc.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "gr_gk20a.h"

View File

@@ -28,6 +28,7 @@
#include <nvgpu/timers.h>
#include <nvgpu/atomic.h>
#include <nvgpu/unit.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>

View File

@@ -40,6 +40,7 @@
#include <nvgpu/enabled.h>
#include <nvgpu/vidmem.h>
#include <nvgpu/sizes.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "mm_gk20a.h"

View File

@@ -31,6 +31,7 @@
#include <nvgpu/firmware.h>
#include <nvgpu/falcon.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "gk20a.h"
#include "gr_gk20a.h"

View File

@@ -27,6 +27,7 @@
#include <nvgpu/log.h>
#include <nvgpu/timers.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
#include <nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h>

View File

@@ -30,6 +30,7 @@
#include <nvgpu/log.h>
#include <nvgpu/bsearch.h>
#include <nvgpu/bug.h>
#include <nvgpu/io.h>
static int regop_bsearch_range_cmp(const void *pkey, const void *pelem)
{

View File

@@ -23,6 +23,7 @@
*/
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a.h"

View File

@@ -33,6 +33,7 @@
#include <nvgpu/falcon.h>
#include <nvgpu/enabled.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/pmu_gk20a.h"

View File

@@ -30,6 +30,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/log.h>
#include <nvgpu/types.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gm20b/hw_trim_gm20b.h>
#include <nvgpu/hw/gm20b/hw_therm_gm20b.h>

View File

@@ -33,6 +33,7 @@
#include <nvgpu/barrier.h>
#include <nvgpu/mm.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gm20b/hw_ccsr_gm20b.h>
#include <nvgpu/hw/gm20b/hw_ram_gm20b.h>

View File

@@ -1,7 +1,7 @@
/*
* GM20B FUSE
*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -25,6 +25,7 @@
#include <nvgpu/types.h>
#include <nvgpu/fuse.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -27,6 +27,7 @@
#include <nvgpu/enabled.h>
#include <nvgpu/debug.h>
#include <nvgpu/fuse.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/gr_gk20a.h"

View File

@@ -28,6 +28,7 @@
#include <nvgpu/enabled.h>
#include <nvgpu/bug.h>
#include <nvgpu/ltc.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gm20b/hw_mc_gm20b.h>
#include <nvgpu/hw/gm20b/hw_ltc_gm20b.h>

View File

@@ -26,6 +26,7 @@
#include <nvgpu/pmu.h>
#include <nvgpu/fuse.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/pmu_gk20a.h"

View File

@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "therm_gm20b.h"

View File

@@ -27,6 +27,7 @@
#include <nvgpu/firmware.h>
#include <nvgpu/pmu.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/pmu_gk20a.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/timers.h>
#include <nvgpu/falcon.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gm20b/fifo_gm20b.h"

View File

@@ -28,6 +28,7 @@
#endif
#include <nvgpu/kmem.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gp106/mclk_gp106.h"

View File

@@ -23,6 +23,7 @@
*/
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gp106/fuse_gp106.h"

View File

@@ -29,6 +29,8 @@
#include "gm20b/gr_gm20b.h"
#include "gp10b/gr_gp10b.h"
#include <nvgpu/io.h>
#include "gr_gp106.h"
#include <nvgpu/hw/gp106/hw_gr_gp106.h>

View File

@@ -24,6 +24,7 @@
#include <nvgpu/bios.h>
#include <nvgpu/kmem.h>
#include <nvgpu/timers.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#ifdef CONFIG_DEBUG_FS

View File

@@ -1,7 +1,7 @@
/*
* GP106 memory management
*
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -23,6 +23,7 @@
*/
#include <nvgpu/sizes.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gp10b/mm_gp10b.h"

View File

@@ -22,6 +22,7 @@
#include <nvgpu/pmu.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/pmu_gk20a.h"

View File

@@ -23,6 +23,7 @@
#include <nvgpu/pmu.h>
#include <nvgpu/falcon.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "sec2_gp106.h"

View File

@@ -20,6 +20,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "therm_gp106.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/xve.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gp106/hw_xp_gp106.h>
#include <nvgpu/hw/gp106/hw_xve_gp106.h>

View File

@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "ce_gp10b.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/log2.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "fifo_gp10b.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/types.h>
#include <nvgpu/fuse.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -25,6 +25,7 @@
#include "gk20a/gk20a.h"
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gp10b.h"

View File

@@ -30,6 +30,7 @@
#include <nvgpu/debug.h>
#include <nvgpu/fuse.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/gr_gk20a.h"

View File

@@ -27,6 +27,7 @@
#include <nvgpu/ltc.h>
#include <nvgpu/log.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gp10b/hw_mc_gp10b.h>
#include <nvgpu/hw/gp10b/hw_ltc_gp10b.h>

View File

@@ -23,6 +23,7 @@
*/
#include "gk20a/gk20a.h"
#include <nvgpu/io.h>
#include "mc_gp10b.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/log.h>
#include <nvgpu/fuse.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/pmu_gk20a.h"

View File

@@ -27,6 +27,7 @@
#include <nvgpu/log.h>
#include <nvgpu/timers.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gp10b/hw_mc_gp10b.h>
#include <nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h>

View File

@@ -26,6 +26,7 @@
#include "therm_gp10b.h"
#include <nvgpu/soc.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gp10b/hw_therm_gp10b.h>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -23,6 +23,7 @@
#include <nvgpu/bios.h>
#include <nvgpu/nvgpu_common.h>
#include <nvgpu/timers.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gp106/bios_gp106.h"

View File

@@ -26,6 +26,7 @@
#include "fifo_gv100.h"
#include <nvgpu/timers.h>
#include <nvgpu/ptimer.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gv100/hw_ccsr_gv100.h>
#include <nvgpu/hw/gk20a/hw_fifo_gk20a.h>

View File

@@ -25,6 +25,7 @@
#include <nvgpu/log.h>
#include <nvgpu/debug.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/gr_gk20a.h"

View File

@@ -23,6 +23,7 @@
*/
#include <nvgpu/types.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -1,7 +1,7 @@
/*
* GV100 memory management
*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -23,6 +23,7 @@
*/
#include <nvgpu/sizes.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gv100/mm_gv100.h"

View File

@@ -28,6 +28,7 @@
#include <nvgpu/bitops.h>
#include <nvgpu/nvlink.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "nvlink_gv100.h"

View File

@@ -31,6 +31,7 @@
#include <nvgpu/mm.h>
#include <nvgpu/acr/nvgpu_acr.h>
#include <nvgpu/enabled.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "acr_gv11b.h"

View File

@@ -1,7 +1,7 @@
/*
* Volta GPU series Copy Engine.
*
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <nvgpu/io.h>
#include "nvgpu/log.h"
#include "nvgpu/bitops.h"

View File

@@ -33,6 +33,7 @@
#include <nvgpu/nvgpu_mem.h>
#include <nvgpu/bug.h>
#include <nvgpu/dma.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/css_gr_gk20a.h"

View File

@@ -23,6 +23,7 @@
*/
#include <nvgpu/log.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gv11b/dbg_gpu_gv11b.h"
#include <nvgpu/hw/gv11b/hw_perf_gv11b.h>

View File

@@ -37,6 +37,7 @@
#include <nvgpu/ctxsw_trace.h>
#include <nvgpu/io_usermode.h>
#include <nvgpu/ptimer.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/fifo_gk20a.h"

View File

@@ -32,6 +32,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/error_notifier.h>
#include <nvgpu/soc.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gk20a/gr_gk20a.h"

View File

@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "gp10b/ltc_gp10b.h"

View File

@@ -23,6 +23,7 @@
*/
#include <nvgpu/types.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -26,6 +26,7 @@
#include <nvgpu/falcon.h>
#include <nvgpu/enabled.h>
#include <nvgpu/mm.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"

View File

@@ -26,6 +26,7 @@
#include "therm_gv11b.h"
#include <nvgpu/soc.h>
#include <nvgpu/io.h>
#include <nvgpu/hw/gv11b/hw_therm_gv11b.h>

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 NVIDIA Corporation. All rights reserved.
* Copyright (C) 2017-2018 NVIDIA Corporation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@@ -16,6 +16,8 @@
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <nvgpu/io.h>
#include "gm20b/clk_gm20b.h"
#include "os_linux.h"
#include "platform_gk20a.h"

View File

@@ -25,6 +25,7 @@
#include <nvgpu/dma.h>
#include <nvgpu/hw_sim_pci.h>
#include <nvgpu/sim.h>
#include <nvgpu/io.h>
#include "gk20a/gk20a.h"
#include "os_linux.h"
#include "module.h"

View File

@@ -29,6 +29,7 @@
#include <nvgpu/atomic.h>
#include <nvgpu/bug.h>
#include <nvgpu/barrier.h>
#include <nvgpu/io.h>
#include <nvgpu/error_notifier.h>
#include <nvgpu/vgpu/vgpu_ivc.h>
#include <nvgpu/vgpu/vgpu.h>