mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: vgpu: merge tegra_vgpu_t18x.h to tegra_vgpu.h
No need to keep two vgpu headers anymore. Jira VFND-3796 Change-Id: I400cbfa5b2c0e62963eff247adcd9483be975379 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1457480 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
14959cf682
commit
3429657f93
@@ -19,10 +19,6 @@
|
||||
#ifndef __TEGRA_VGPU_H
|
||||
#define __TEGRA_VGPU_H
|
||||
|
||||
#ifdef CONFIG_ARCH_TEGRA_18x_SOC
|
||||
#include <linux/tegra_vgpu_t18x.h>
|
||||
#endif
|
||||
|
||||
enum {
|
||||
TEGRA_VGPU_MODULE_GPU = 0,
|
||||
};
|
||||
@@ -139,6 +135,7 @@ enum {
|
||||
TEGRA_VGPU_ATTRIB_TPC_COUNT = 19, /* deprecated */
|
||||
TEGRA_VGPU_ATTRIB_GPC0_TPC_COUNT = 20, /* deprecated */
|
||||
TEGRA_VGPU_ATTRIB_MAX_FREQ = 21, /* deprecated */
|
||||
TEGRA_VGPU_ATTRIB_PREEMPT_CTX_SIZE = 64, /* gap to hide T18x IP */
|
||||
};
|
||||
|
||||
struct tegra_vgpu_attrib_params {
|
||||
@@ -281,12 +278,26 @@ struct tegra_vgpu_zbc_query_table_params {
|
||||
u32 index_size; /* [out] size, [in] index */
|
||||
};
|
||||
|
||||
#define TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_MAX 4
|
||||
enum {
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_MAIN,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_SPILL,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_PAGEPOOL,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_BETACB,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_LAST
|
||||
};
|
||||
|
||||
enum {
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_WFI,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_GFX_GFXP,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CTA,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CILP,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_LAST
|
||||
};
|
||||
|
||||
struct tegra_vgpu_gr_bind_ctxsw_buffers_params {
|
||||
u64 handle; /* deprecated */
|
||||
u64 gpu_va[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_MAX];
|
||||
u64 size[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_MAX];
|
||||
u64 gpu_va[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_LAST];
|
||||
u64 size[TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_LAST];
|
||||
u32 mode;
|
||||
u64 gr_ctx_handle;
|
||||
};
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
* Tegra GPU Virtualization Interfaces to Server
|
||||
*
|
||||
* Copyright (c) 2015, 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __TEGRA_VGPU_T18X_H
|
||||
#define __TEGRA_VGPU_T18X_H
|
||||
|
||||
enum {
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_MAIN,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_SPILL,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_PAGEPOOL,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_BETACB,
|
||||
TEGRA_VGPU_GR_BIND_CTXSW_BUFFER_LAST
|
||||
};
|
||||
|
||||
enum {
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_WFI,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_GFX_GFXP,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CTA,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_COMPUTE_CILP,
|
||||
TEGRA_VGPU_GR_CTXSW_PREEMPTION_MODE_LAST
|
||||
};
|
||||
|
||||
enum {
|
||||
TEGRA_VGPU_ATTRIB_PREEMPT_CTX_SIZE = 64
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user