mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Move dev field from gk20a to nvgpu_os_linux
Move field "struct device *dev" from struct gk20a to struct nvgpu_os_linux. The field is valid only for Linux. JIRA NVGPU-38 Change-Id: I09286aa3a9c5a2406e5a27c1fbf21b2c515b4dd4 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1514162 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
dfd42c2b28
commit
cba424539d
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_F_POINTS 256
|
#define MAX_F_POINTS 256
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
#include <soc/tegra/tegra-dvfs.h>
|
#include <soc/tegra/tegra-dvfs.h>
|
||||||
|
|
||||||
#include "clk.h"
|
#include "clk.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "debug_kmem.h"
|
#include "debug_kmem.h"
|
||||||
#include "debug_pmu.h"
|
#include "debug_pmu.h"
|
||||||
#include "debug_sched.h"
|
#include "debug_sched.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_allocator.h"
|
#include "debug_allocator.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_cde.h"
|
#include "debug_cde.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_ce.h"
|
#include "debug_ce.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
#include "gm20b/clk_gm20b.h"
|
#include "gm20b/clk_gm20b.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
static int rate_get(void *data, u64 *val)
|
static int rate_get(void *data, u64 *val)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_fifo.h"
|
#include "debug_fifo.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_gr.h"
|
#include "debug_gr.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_mm.h"
|
#include "debug_mm.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <nvgpu/enabled.h>
|
#include <nvgpu/enabled.h>
|
||||||
#include "debug_pmu.h"
|
#include "debug_pmu.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "debug_sched.h"
|
#include "debug_sched.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#if defined(CONFIG_GK20A_VIDMEM)
|
#if defined(CONFIG_GK20A_VIDMEM)
|
||||||
static u64 __nvgpu_dma_alloc(struct nvgpu_allocator *allocator, dma_addr_t at,
|
static u64 __nvgpu_dma_alloc(struct nvgpu_allocator *allocator, dma_addr_t at,
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
static const struct firmware *do_request_firmware(struct device *dev,
|
static const struct firmware *do_request_firmware(struct device *dev,
|
||||||
const char *prefix, const char *fw_name, int flags)
|
const char *prefix, const char *fw_name, int flags)
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define a length for log buffers. This is the buffer that the 'fmt, ...' part
|
* Define a length for log buffers. This is the buffer that the 'fmt, ...' part
|
||||||
|
|||||||
@@ -865,7 +865,7 @@ static int gk20a_probe(struct platform_device *dev)
|
|||||||
|
|
||||||
gk20a = &l->g;
|
gk20a = &l->g;
|
||||||
set_gk20a(dev, gk20a);
|
set_gk20a(dev, gk20a);
|
||||||
gk20a->dev = &dev->dev;
|
l->dev = &dev->dev;
|
||||||
gk20a->log_mask = NVGPU_DEFAULT_DBG_MASK;
|
gk20a->log_mask = NVGPU_DEFAULT_DBG_MASK;
|
||||||
|
|
||||||
nvgpu_kmem_init(gk20a);
|
nvgpu_kmem_init(gk20a);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include "nvhost_priv.h"
|
#include "nvhost_priv.h"
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "os_linux.h"
|
||||||
|
|
||||||
int nvgpu_get_nvhost_dev(struct gk20a *g)
|
int nvgpu_get_nvhost_dev(struct gk20a *g)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
struct nvgpu_os_linux {
|
struct nvgpu_os_linux {
|
||||||
struct gk20a g;
|
struct gk20a g;
|
||||||
|
struct device *dev;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct cdev cdev;
|
struct cdev cdev;
|
||||||
@@ -75,6 +76,11 @@ static inline struct nvgpu_os_linux *nvgpu_os_linux_from_gk20a(struct gk20a *g)
|
|||||||
return container_of(g, struct nvgpu_os_linux, g);
|
return container_of(g, struct nvgpu_os_linux, g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline struct device *dev_from_gk20a(struct gk20a *g)
|
||||||
|
{
|
||||||
|
return nvgpu_os_linux_from_gk20a(g)->dev;
|
||||||
|
}
|
||||||
|
|
||||||
#define INTERFACE_NAME "nvhost%s-gpu"
|
#define INTERFACE_NAME "nvhost%s-gpu"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "intr.h"
|
#include "intr.h"
|
||||||
#include "sysfs.h"
|
#include "sysfs.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include "pci.h"
|
#include "pci.h"
|
||||||
|
|
||||||
@@ -367,7 +368,7 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
platform->g = g;
|
platform->g = g;
|
||||||
g->dev = &pdev->dev;
|
l->dev = &pdev->dev;
|
||||||
|
|
||||||
err = pci_enable_device(pdev);
|
err = pci_enable_device(pdev);
|
||||||
if (err)
|
if (err)
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
#include "gm20b/clk_gm20b.h"
|
#include "gm20b/clk_gm20b.h"
|
||||||
|
|
||||||
#include "clk.h"
|
#include "clk.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
#include "../../../arch/arm/mach-tegra/iomap.h"
|
#include "../../../arch/arm/mach-tegra/iomap.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
|
||||||
#include "vm_priv.h"
|
#include "vm_priv.h"
|
||||||
|
#include "os_linux.h"
|
||||||
|
|
||||||
static struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_reverse(
|
static struct nvgpu_mapped_buf *__nvgpu_vm_find_mapped_buf_reverse(
|
||||||
struct vm_gk20a *vm, struct dma_buf *dmabuf, u32 kind)
|
struct vm_gk20a *vm, struct dma_buf *dmabuf, u32 kind)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "cde_gk20a.h"
|
#include "cde_gk20a.h"
|
||||||
#include "fence_gk20a.h"
|
#include "fence_gk20a.h"
|
||||||
#include "gr_gk20a.h"
|
#include "gr_gk20a.h"
|
||||||
#include "platform_gk20a.h"
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
|
||||||
#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#include "gk20a.h"
|
#include "gk20a.h"
|
||||||
#include "gr_gk20a.h"
|
#include "gr_gk20a.h"
|
||||||
#include "platform_gk20a.h"
|
#include "platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1019,7 +1019,6 @@ struct nvgpu_bios {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct gk20a {
|
struct gk20a {
|
||||||
struct device *dev;
|
|
||||||
struct nvgpu_nvhost_dev *nvhost_dev;
|
struct nvgpu_nvhost_dev *nvhost_dev;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
#include "regops_gk20a.h"
|
#include "regops_gk20a.h"
|
||||||
#include "dbg_gpu_gk20a.h"
|
#include "dbg_gpu_gk20a.h"
|
||||||
#include "ctxsw_trace_gk20a.h"
|
#include "ctxsw_trace_gk20a.h"
|
||||||
#include "platform_gk20a.h"
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
|
||||||
#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h>
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
#include "fence_gk20a.h"
|
#include "fence_gk20a.h"
|
||||||
#include "kind_gk20a.h"
|
#include "kind_gk20a.h"
|
||||||
#include "bus_gk20a.h"
|
#include "bus_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gk20a/hw_gmmu_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_gmmu_gk20a.h>
|
||||||
#include <nvgpu/hw/gk20a/hw_ram_gk20a.h>
|
#include <nvgpu/hw/gk20a/hw_ram_gk20a.h>
|
||||||
|
|||||||
@@ -259,10 +259,6 @@ static inline struct gk20a *get_gk20a(struct device *dev)
|
|||||||
{
|
{
|
||||||
return gk20a_get_platform(dev)->g;
|
return gk20a_get_platform(dev)->g;
|
||||||
}
|
}
|
||||||
static inline struct device *dev_from_gk20a(struct gk20a *g)
|
|
||||||
{
|
|
||||||
return g->dev;
|
|
||||||
}
|
|
||||||
static inline struct gk20a *gk20a_from_dev(struct device *dev)
|
static inline struct gk20a *gk20a_from_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
if (!dev)
|
if (!dev)
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "gm20b/fifo_gm20b.h"
|
#include "gm20b/fifo_gm20b.h"
|
||||||
#include "bios_gm206.h"
|
#include "bios_gm206.h"
|
||||||
#include "gp106/mclk_gp106.h"
|
#include "gp106/mclk_gp106.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gm206/hw_pwr_gm206.h>
|
#include <nvgpu/hw/gm206/hw_pwr_gm206.h>
|
||||||
#include <nvgpu/hw/gm206/hw_mc_gm206.h>
|
#include <nvgpu/hw/gm206/hw_mc_gm206.h>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/gr_gk20a.h"
|
#include "gk20a/gr_gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include "gr_gm20b.h"
|
#include "gr_gm20b.h"
|
||||||
#include "pmu_gm20b.h"
|
#include "pmu_gm20b.h"
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include "clk_gp106.h"
|
#include "clk_gp106.h"
|
||||||
#include "clk/clk_arb.h"
|
#include "clk/clk_arb.h"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
#endif
|
#endif
|
||||||
#include "gp106/mclk_gp106.h"
|
#include "gp106/mclk_gp106.h"
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <nvgpu/hw/gp106/hw_therm_gp106.h>
|
#include <nvgpu/hw/gp106/hw_therm_gp106.h>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include "gk20a/gr_gk20a.h"
|
#include "gk20a/gr_gk20a.h"
|
||||||
#include "gk20a/dbg_gpu_gk20a.h"
|
#include "gk20a/dbg_gpu_gk20a.h"
|
||||||
#include "gk20a/regops_gk20a.h"
|
#include "gk20a/regops_gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include "gm20b/gr_gm20b.h"
|
#include "gm20b/gr_gm20b.h"
|
||||||
#include "gp10b/gr_gp10b.h"
|
#include "gp10b/gr_gp10b.h"
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
#include <nvgpu/gmmu.h>
|
#include <nvgpu/gmmu.h>
|
||||||
|
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
|
||||||
#include "gm20b/mm_gm20b.h"
|
#include "gm20b/mm_gm20b.h"
|
||||||
#include "mm_gp10b.h"
|
#include "mm_gp10b.h"
|
||||||
#include "rpfb_gp10b.h"
|
#include "rpfb_gp10b.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/hw/gp10b/hw_fb_gp10b.h>
|
#include <nvgpu/hw/gp10b/hw_fb_gp10b.h>
|
||||||
#include <nvgpu/hw/gp10b/hw_ram_gp10b.h>
|
#include <nvgpu/hw/gp10b/hw_ram_gp10b.h>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int pmgr_pwr_devices_get_power(struct gk20a *g, u32 *val)
|
int pmgr_pwr_devices_get_power(struct gk20a *g, u32 *val)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
#include "gm206/bios_gm206.h"
|
#include "gm206/bios_gm206.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include "boardobj/boardobjgrp.h"
|
#include "boardobj/boardobjgrp.h"
|
||||||
#include "boardobj/boardobjgrp_e32.h"
|
#include "boardobj/boardobjgrp_e32.h"
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include "boardobj/boardobjgrp.h"
|
#include "boardobj/boardobjgrp.h"
|
||||||
#include "boardobj/boardobjgrp_e32.h"
|
#include "boardobj/boardobjgrp_e32.h"
|
||||||
#include "gm206/bios_gm206.h"
|
#include "gm206/bios_gm206.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#define _pwr_policy_limitarboutputget_helper(p_limit_arb) (p_limit_arb)->output
|
#define _pwr_policy_limitarboutputget_helper(p_limit_arb) (p_limit_arb)->output
|
||||||
#define _pwr_policy_limitdeltaapply(limit, delta) ((u32)max(((s32)limit) + (delta), 0))
|
#define _pwr_policy_limitdeltaapply(limit, delta) ((u32)max(((s32)limit) + (delta), 0))
|
||||||
|
|||||||
@@ -677,7 +677,7 @@ int vgpu_probe(struct platform_device *pdev)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
gk20a->dev = dev;
|
l->dev = dev;
|
||||||
if (tegra_platform_is_linsim() || tegra_platform_is_vdk())
|
if (tegra_platform_is_linsim() || tegra_platform_is_vdk())
|
||||||
__nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true);
|
__nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true);
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <linux/tegra_vgpu.h>
|
#include <linux/tegra_vgpu.h>
|
||||||
#include "gk20a/gk20a.h"
|
#include "gk20a/gk20a.h"
|
||||||
#include "gk20a/platform_gk20a.h"
|
#include "gk20a/platform_gk20a.h"
|
||||||
|
#include "common/linux/os_linux.h"
|
||||||
|
|
||||||
#include <nvgpu/thread.h>
|
#include <nvgpu/thread.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user