mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
Drop one #include, its contents are not used. Bug 1853519 Change-Id: I51480b1d75b36c993af3a5005ee9b7fc6dee8a54 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1326127 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
112 lines
2.5 KiB
C
112 lines
2.5 KiB
C
/*
|
|
* GV11B Tegra Platform Interface
|
|
*
|
|
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#include <linux/of_platform.h>
|
|
#include <linux/debugfs.h>
|
|
#include <linux/dma-buf.h>
|
|
#include <linux/nvmap.h>
|
|
#include <linux/reset.h>
|
|
#include <linux/hashtable.h>
|
|
|
|
#include <uapi/linux/nvgpu.h>
|
|
|
|
#include "gk20a/platform_gk20a.h"
|
|
#include "gk20a/gk20a.h"
|
|
|
|
#include "gp10b/platform_gp10b.h"
|
|
|
|
#include "platform_tegra.h"
|
|
#include "gr_gv11b.h"
|
|
|
|
|
|
static int gv11b_tegra_probe(struct device *dev)
|
|
{
|
|
struct gk20a_platform *platform = dev_get_drvdata(dev);
|
|
|
|
platform->bypass_smmu = !device_is_iommuable(dev);
|
|
platform->disable_bigpage = platform->bypass_smmu;
|
|
|
|
platform->g->gr.t18x.ctx_vars.dump_ctxsw_stats_on_channel_close
|
|
= false;
|
|
platform->g->gr.t18x.ctx_vars.dump_ctxsw_stats_on_channel_close
|
|
= false;
|
|
|
|
platform->g->gr.t18x.ctx_vars.force_preemption_gfxp = false;
|
|
platform->g->gr.t18x.ctx_vars.force_preemption_cilp = false;
|
|
|
|
/* soc memory accessed as system memory aperture */
|
|
platform->g->mm.vidmem_is_vidmem = platform->vidmem_is_vidmem;
|
|
|
|
gp10b_tegra_get_clocks(dev);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static bool gv11b_tegra_is_railgated(struct device *dev)
|
|
{
|
|
bool ret = false;
|
|
|
|
return ret;
|
|
}
|
|
|
|
static int gv11b_tegra_railgate(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int gv11b_tegra_unrailgate(struct device *dev)
|
|
{
|
|
int ret = 0;
|
|
return ret;
|
|
}
|
|
|
|
static int gv11b_tegra_suspend(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
struct gk20a_platform t19x_gpu_tegra_platform = {
|
|
.has_syncpoints = false,
|
|
|
|
/* power management configuration */
|
|
|
|
/* ptimer src frequency in hz*/
|
|
.ptimer_src_freq = 31250000,
|
|
|
|
.probe = gv11b_tegra_probe,
|
|
|
|
/* power management callbacks */
|
|
.suspend = gv11b_tegra_suspend,
|
|
.railgate = gv11b_tegra_railgate,
|
|
.unrailgate = gv11b_tegra_unrailgate,
|
|
.is_railgated = gv11b_tegra_is_railgated,
|
|
|
|
.busy = gk20a_tegra_busy,
|
|
.idle = gk20a_tegra_idle,
|
|
|
|
.dump_platform_dependencies = gk20a_tegra_debug_dump,
|
|
|
|
.default_big_page_size = SZ_64K,
|
|
|
|
.has_ce = true,
|
|
|
|
.soc_name = "tegra19x",
|
|
|
|
.vidmem_is_vidmem = true,
|
|
|
|
.reset_assert = gp10b_tegra_reset_assert,
|
|
.reset_deassert = gp10b_tegra_reset_deassert,
|
|
};
|