mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: Move gp106 HW headers
Move the gp106 HW headers to a new directory specially for them: include/nvgpu/hw/gp106 And change the code to include like so: #include <nvgpu/hw/gp106/hw_fb_gp106.h> This is part of the process to restructure the nvgpu driver. Bug 1799159 Change-Id: I76a4ff2e92021150ce65a8843bc12bb614a0e68a Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1280327 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
865514be2d
commit
78ad8a23ea
@@ -11,17 +11,20 @@
|
|||||||
* more details.
|
* more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include "pmuif/gpmuifseq.h"
|
|
||||||
#include "gm206/bios_gm206.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/pmu_gk20a.h"
|
#include "gk20a/pmu_gk20a.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gk20a/hw_pwr_gk20a.h>
|
#include "pmuif/gpmuifseq.h"
|
||||||
#include "gp106/hw_fb_gp106.h"
|
|
||||||
|
#include "gm206/bios_gm206.h"
|
||||||
|
|
||||||
#include "include/bios.h"
|
#include "include/bios.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gk20a/hw_pwr_gk20a.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_fb_gp106.h>
|
||||||
|
|
||||||
#define VREG_COUNT 24
|
#define VREG_COUNT 24
|
||||||
|
|
||||||
struct memory_link_training_pattern {
|
struct memory_link_training_pattern {
|
||||||
|
|||||||
@@ -12,17 +12,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "clk.h"
|
|
||||||
#include "clk_vin.h"
|
|
||||||
#include "include/bios.h"
|
#include "include/bios.h"
|
||||||
|
|
||||||
#include "boardobj/boardobjgrp.h"
|
#include "boardobj/boardobjgrp.h"
|
||||||
#include "boardobj/boardobjgrp_e32.h"
|
#include "boardobj/boardobjgrp_e32.h"
|
||||||
|
|
||||||
#include "pmuif/gpmuifboardobj.h"
|
#include "pmuif/gpmuifboardobj.h"
|
||||||
#include "pmuif/gpmuifclk.h"
|
#include "pmuif/gpmuifclk.h"
|
||||||
#include "gm206/bios_gm206.h"
|
|
||||||
#include "ctrl/ctrlvolt.h"
|
#include "ctrl/ctrlvolt.h"
|
||||||
|
|
||||||
|
#include "gm206/bios_gm206.h"
|
||||||
#include "gk20a/pmu_gk20a.h"
|
#include "gk20a/pmu_gk20a.h"
|
||||||
#include "gp106/hw_fuse_gp106.h"
|
|
||||||
|
#include "clk.h"
|
||||||
|
#include "clk_vin.h"
|
||||||
|
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_fuse_gp106.h>
|
||||||
|
|
||||||
static u32 devinit_get_vin_device_table(struct gk20a *g,
|
static u32 devinit_get_vin_device_table(struct gk20a *g,
|
||||||
struct avfsvinobjs *pvinobjs);
|
struct avfsvinobjs *pvinobjs);
|
||||||
|
|||||||
@@ -22,15 +22,18 @@
|
|||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/pmu_gk20a.h"
|
#include "gk20a/pmu_gk20a.h"
|
||||||
#include "gk20a/semaphore_gk20a.h"
|
#include "gk20a/semaphore_gk20a.h"
|
||||||
#include "gp106/hw_psec_gp106.h"
|
|
||||||
#include "gp106/hw_pwr_gp106.h"
|
|
||||||
#include "gm206/acr_gm206.h"
|
#include "gm206/acr_gm206.h"
|
||||||
#include "gm20b/acr_gm20b.h"
|
#include "gm20b/acr_gm20b.h"
|
||||||
#include "gm206/pmu_gm206.h"
|
#include "gm206/pmu_gm206.h"
|
||||||
|
|
||||||
#include "sec2_gp106.h"
|
#include "sec2_gp106.h"
|
||||||
#include "nvgpu_gpuid_t18x.h"
|
#include "nvgpu_gpuid_t18x.h"
|
||||||
#include "nvgpu_common.h"
|
#include "nvgpu_common.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_psec_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_pwr_gp106.h>
|
||||||
|
|
||||||
/*Defines*/
|
/*Defines*/
|
||||||
#define gp106_dbg_pmu(fmt, arg...) \
|
#define gp106_dbg_pmu(fmt, arg...) \
|
||||||
gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
|
gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
|
||||||
|
|||||||
@@ -13,8 +13,10 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gm206/bios_gm206.h"
|
#include "gm206/bios_gm206.h"
|
||||||
|
|
||||||
#include "bios_gp106.h"
|
#include "bios_gp106.h"
|
||||||
#include "hw_gc6_gp106.h"
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_gc6_gp106.h>
|
||||||
|
|
||||||
static void gp106_init_xmemsel_zm_nv_reg_array(struct gk20a *g, bool *condition,
|
static void gp106_init_xmemsel_zm_nv_reg_array(struct gk20a *g, bool *condition,
|
||||||
u32 reg, u32 stride, u32 count, u32 data_table_offset)
|
u32 reg, u32 stride, u32 count, u32 data_table_offset)
|
||||||
|
|||||||
@@ -25,10 +25,12 @@
|
|||||||
#include <linux/tegra-fuse.h>
|
#include <linux/tegra-fuse.h>
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "hw_trim_gp106.h"
|
|
||||||
#include "clk_gp106.h"
|
#include "clk_gp106.h"
|
||||||
#include "clk/clk_arb.h"
|
#include "clk/clk_arb.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_trim_gp106.h>
|
||||||
|
|
||||||
#define gk20a_dbg_clk(fmt, arg...) \
|
#define gk20a_dbg_clk(fmt, arg...) \
|
||||||
gk20a_dbg(gpu_dbg_clk, fmt, ##arg)
|
gk20a_dbg(gpu_dbg_clk, fmt, ##arg)
|
||||||
|
|
||||||
@@ -270,4 +272,3 @@ void gp106_init_clk_ops(struct gpu_ops *gops) {
|
|||||||
gops->clk.get_crystal_clk_hz = gp106_crystal_clk_hz;
|
gops->clk.get_crystal_clk_hz = gp106_crystal_clk_hz;
|
||||||
gops->clk.get_rate = gp106_clk_get_rate;
|
gops->clk.get_rate = gp106_clk_get_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gp10b/fb_gp10b.h"
|
#include "gp10b/fb_gp10b.h"
|
||||||
#include "hw_fb_gp106.h"
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_fb_gp106.h>
|
||||||
|
|
||||||
#define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */
|
#define HW_SCRUB_TIMEOUT_DEFAULT 100 /* usec */
|
||||||
#define HW_SCRUB_TIMEOUT_MAX 2000000 /* usec */
|
#define HW_SCRUB_TIMEOUT_MAX 2000000 /* usec */
|
||||||
|
|||||||
@@ -13,9 +13,11 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gp10b/fifo_gp10b.h"
|
#include "gp10b/fifo_gp10b.h"
|
||||||
|
|
||||||
#include "fifo_gp106.h"
|
#include "fifo_gp106.h"
|
||||||
#include "hw_ccsr_gp106.h"
|
|
||||||
#include "hw_fifo_gp106.h"
|
#include <nvgpu/hw/gp106/hw_ccsr_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_fifo_gp106.h>
|
||||||
|
|
||||||
static u32 gp106_fifo_get_num_fifos(struct gk20a *g)
|
static u32 gp106_fifo_get_num_fifos(struct gk20a *g)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,14 +13,14 @@
|
|||||||
* more details.
|
* more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gk20a/gk20a.h" /* FERMI and MAXWELL classes defined here */
|
#include "gk20a/gk20a.h"
|
||||||
|
|
||||||
#include "gk20a/gr_gk20a.h"
|
#include "gk20a/gr_gk20a.h"
|
||||||
|
#include "gm20b/gr_gm20b.h"
|
||||||
#include "gm20b/gr_gm20b.h" /* for MAXWELL classes */
|
|
||||||
#include "gp10b/gr_gp10b.h"
|
#include "gp10b/gr_gp10b.h"
|
||||||
|
|
||||||
#include "gr_gp106.h"
|
#include "gr_gp106.h"
|
||||||
#include "hw_gr_gp106.h"
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_gr_gp106.h>
|
||||||
|
|
||||||
static bool gr_gp106_is_valid_class(struct gk20a *g, u32 class_num)
|
static bool gr_gp106_is_valid_class(struct gk20a *g, u32 class_num)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,37 +19,42 @@
|
|||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
|
#include "gk20a/dbg_gpu_gk20a.h"
|
||||||
|
#include "gk20a/css_gr_gk20a.h"
|
||||||
|
|
||||||
#include "gp10b/gr_gp10b.h"
|
#include "gp10b/gr_gp10b.h"
|
||||||
#include "gp10b/fecs_trace_gp10b.h"
|
#include "gp10b/fecs_trace_gp10b.h"
|
||||||
#include "gp10b/mc_gp10b.h"
|
#include "gp10b/mc_gp10b.h"
|
||||||
#include "gp106/ltc_gp106.h"
|
|
||||||
#include "gp10b/mm_gp10b.h"
|
#include "gp10b/mm_gp10b.h"
|
||||||
#include "gp10b/ce_gp10b.h"
|
#include "gp10b/ce_gp10b.h"
|
||||||
|
#include "gp10b/regops_gp10b.h"
|
||||||
|
#include "gp10b/cde_gp10b.h"
|
||||||
|
|
||||||
#include "gp106/fifo_gp106.h"
|
#include "gp106/fifo_gp106.h"
|
||||||
#include "gp106/regops_gp106.h"
|
#include "gp106/regops_gp106.h"
|
||||||
#include "gp10b/cde_gp10b.h"
|
|
||||||
#include "gp106/therm_gp106.h"
|
|
||||||
#include "gp106/xve_gp106.h"
|
|
||||||
|
|
||||||
#include "gp106/bios_gp106.h"
|
|
||||||
|
|
||||||
#include "gm20b/gr_gm20b.h"
|
#include "gm20b/gr_gm20b.h"
|
||||||
#include "gm20b/fifo_gm20b.h"
|
#include "gm20b/fifo_gm20b.h"
|
||||||
#include "gm20b/pmu_gm20b.h"
|
#include "gm20b/pmu_gm20b.h"
|
||||||
|
|
||||||
#include "gp106/clk_gp106.h"
|
#include "gp106/clk_gp106.h"
|
||||||
#include "gp106/clk_arb_gp106.h"
|
#include "gp106/clk_arb_gp106.h"
|
||||||
|
#include "gp106/bios_gp106.h"
|
||||||
|
#include "gp106/therm_gp106.h"
|
||||||
|
#include "gp106/xve_gp106.h"
|
||||||
|
#include "gp106/fifo_gp106.h"
|
||||||
|
#include "gp106/ltc_gp106.h"
|
||||||
|
#include "gp106/clk_gp106.h"
|
||||||
#include "gp106/mm_gp106.h"
|
#include "gp106/mm_gp106.h"
|
||||||
#include "gp106/pmu_gp106.h"
|
#include "gp106/pmu_gp106.h"
|
||||||
#include "gp106/gr_ctx_gp106.h"
|
#include "gp106/gr_ctx_gp106.h"
|
||||||
#include "gp106/gr_gp106.h"
|
#include "gp106/gr_gp106.h"
|
||||||
#include "gp106/fb_gp106.h"
|
#include "gp106/fb_gp106.h"
|
||||||
#include "gp106/gp106_gating_reglist.h"
|
#include "gp106/gp106_gating_reglist.h"
|
||||||
|
|
||||||
#include "nvgpu_gpuid_t18x.h"
|
#include "nvgpu_gpuid_t18x.h"
|
||||||
#include "hw_proj_gp106.h"
|
|
||||||
#include "gk20a/dbg_gpu_gk20a.h"
|
#include <nvgpu/hw/gp106/hw_proj_gp106.h>
|
||||||
#include "gk20a/css_gr_gk20a.h"
|
|
||||||
|
|
||||||
static struct gpu_ops gp106_ops = {
|
static struct gpu_ops gp106_ops = {
|
||||||
.clock_gating = {
|
.clock_gating = {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "gp10b/mm_gp10b.h"
|
#include "gp10b/mm_gp10b.h"
|
||||||
#include "gp106/mm_gp106.h"
|
#include "gp106/mm_gp106.h"
|
||||||
|
|
||||||
#include "hw_fb_gp106.h"
|
#include <nvgpu/hw/gp106/hw_fb_gp106.h>
|
||||||
|
|
||||||
static size_t gp106_mm_get_vidmem_size(struct gk20a *g)
|
static size_t gp106_mm_get_vidmem_size(struct gk20a *g)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,21 +12,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/delay.h> /* for udelay */
|
#include <linux/delay.h> /* for udelay */
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/pmu_gk20a.h"
|
#include "gk20a/pmu_gk20a.h"
|
||||||
|
|
||||||
#include "gm206/pmu_gm206.h"
|
|
||||||
#include "gm20b/pmu_gm20b.h"
|
#include "gm20b/pmu_gm20b.h"
|
||||||
|
#include "gm206/pmu_gm206.h"
|
||||||
#include "gp10b/pmu_gp10b.h"
|
#include "gp10b/pmu_gp10b.h"
|
||||||
#include "gp106/pmu_gp106.h"
|
#include "gp106/pmu_gp106.h"
|
||||||
#include "gp106/acr_gp106.h"
|
#include "gp106/acr_gp106.h"
|
||||||
#include "gp106/hw_psec_gp106.h"
|
|
||||||
#include "clk/clk_mclk.h"
|
#include "clk/clk_mclk.h"
|
||||||
#include "hw_mc_gp106.h"
|
|
||||||
#include "hw_pwr_gp106.h"
|
|
||||||
#include "lpwr/lpwr.h"
|
#include "lpwr/lpwr.h"
|
||||||
#include "lpwr/rppg.h"
|
#include "lpwr/rppg.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_psec_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_mc_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_pwr_gp106.h>
|
||||||
|
|
||||||
#define PMU_MEM_SCRUBBING_TIMEOUT_MAX 1000
|
#define PMU_MEM_SCRUBBING_TIMEOUT_MAX 1000
|
||||||
#define PMU_MEM_SCRUBBING_TIMEOUT_DEFAULT 10
|
#define PMU_MEM_SCRUBBING_TIMEOUT_DEFAULT 10
|
||||||
|
|
||||||
|
|||||||
@@ -13,20 +13,26 @@
|
|||||||
|
|
||||||
#include <linux/delay.h> /* for udelay */
|
#include <linux/delay.h> /* for udelay */
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/pmu_gk20a.h"
|
#include "gk20a/pmu_gk20a.h"
|
||||||
|
|
||||||
#include "gm206/pmu_gm206.h"
|
#include "gm206/pmu_gm206.h"
|
||||||
|
|
||||||
#include "gm20b/pmu_gm20b.h"
|
#include "gm20b/pmu_gm20b.h"
|
||||||
|
|
||||||
#include "gp10b/pmu_gp10b.h"
|
#include "gp10b/pmu_gp10b.h"
|
||||||
|
|
||||||
#include "gp106/pmu_gp106.h"
|
#include "gp106/pmu_gp106.h"
|
||||||
#include "gp106/acr_gp106.h"
|
#include "gp106/acr_gp106.h"
|
||||||
#include "gp106/hw_mc_gp106.h"
|
|
||||||
#include "gp106/hw_pwr_gp106.h"
|
|
||||||
#include "gp106/hw_psec_gp106.h"
|
|
||||||
#include "sec2_gp106.h"
|
#include "sec2_gp106.h"
|
||||||
#include "acr.h"
|
#include "acr.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_mc_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_pwr_gp106.h>
|
||||||
|
#include <nvgpu/hw/gp106/hw_psec_gp106.h>
|
||||||
|
|
||||||
/*Defines*/
|
/*Defines*/
|
||||||
#define gm20b_dbg_pmu(fmt, arg...) \
|
#define gm20b_dbg_pmu(fmt, arg...) \
|
||||||
gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
|
gk20a_dbg(gpu_dbg_pmu, fmt, ##arg)
|
||||||
|
|||||||
@@ -13,9 +13,10 @@
|
|||||||
|
|
||||||
#include "therm_gp106.h"
|
#include "therm_gp106.h"
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include "hw_therm_gp106.h"
|
|
||||||
#include "therm/thrmpmu.h"
|
#include "therm/thrmpmu.h"
|
||||||
|
|
||||||
|
#include <nvgpu/hw/gp106/hw_therm_gp106.h>
|
||||||
|
|
||||||
static void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8)
|
static void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8)
|
||||||
{
|
{
|
||||||
*max_24_8 = (0x87 << 8);
|
*max_24_8 = (0x87 << 8);
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
#include "gm206/bios_gm206.h"
|
#include "gm206/bios_gm206.h"
|
||||||
#include "gp106/xve_gp106.h"
|
#include "gp106/xve_gp106.h"
|
||||||
|
|
||||||
#include "gp106/hw_xp_gp106.h"
|
#include <nvgpu/hw/gp106/hw_xp_gp106.h>
|
||||||
#include "gp106/hw_xve_gp106.h"
|
#include <nvgpu/hw/gp106/hw_xve_gp106.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init a timer and place the timeout data in @timeout.
|
* Init a timer and place the timeout data in @timeout.
|
||||||
|
|||||||
Reference in New Issue
Block a user