gpu: nvgpu: vgpu: add vgpu ce header file

Move ce related functions declaration from vgpu.h to ce specific
new header file ce_vgpu.h. Also rename ce2_vgpu.c to ce_vgpu.c
as ce2 is legacy.

Jira GVSCI-334

Change-Id: I5d774807af1e7dfeebd232e81440fe1698f5138f
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2011758
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Aparna Das
2019-02-04 12:52:53 -08:00
committed by mobile promotions
parent a66d9cfde5
commit 99a2cc44e2
7 changed files with 38 additions and 3 deletions

View File

@@ -386,7 +386,7 @@ nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \
common/vgpu/ltc_vgpu.o \
common/vgpu/gr_vgpu.o \
common/vgpu/fifo_vgpu.o \
common/vgpu/ce2_vgpu.o \
common/vgpu/ce_vgpu.o \
common/vgpu/mm_vgpu.o \
common/vgpu/vgpu.o \
common/vgpu/dbg_vgpu.o \

View File

@@ -317,7 +317,7 @@ srcs += common/sim.c \
common/vgpu/clk_vgpu.c \
common/vgpu/dbg_vgpu.c \
common/vgpu/ltc_vgpu.c \
common/vgpu/ce2_vgpu.c \
common/vgpu/ce_vgpu.c \
common/vgpu/gv11b/vgpu_gv11b.c \
common/vgpu/gv11b/vgpu_hal_gv11b.c \
common/vgpu/gv11b/vgpu_fifo_gv11b.c \

View File

@@ -26,6 +26,7 @@
#include <nvgpu/bug.h>
#include <nvgpu/vgpu/vgpu.h>
#include <nvgpu/vgpu/ce_vgpu.h>
u32 vgpu_ce_get_num_pce(struct gk20a *g)
{

View File

@@ -77,6 +77,8 @@
#include <nvgpu/error_notifier.h>
#include <nvgpu/channel.h>
#include <nvgpu/vgpu/ce_vgpu.h>
#include <nvgpu/hw/gp10b/hw_top_gp10b.h>
#include <nvgpu/hw/gp10b/hw_pram_gp10b.h>
#include <nvgpu/hw/gp10b/hw_pwr_gp10b.h>

View File

@@ -88,6 +88,8 @@
#include <nvgpu/enabled.h>
#include <nvgpu/channel.h>
#include <nvgpu/vgpu/ce_vgpu.h>
#include "vgpu_gv11b.h"
#include "vgpu_gr_gv11b.h"
#include "vgpu_fifo_gv11b.h"

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2019, 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"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#ifndef CE_VGPU_H
#define CE_VGPU_H
struct gk20a;
u32 vgpu_ce_get_num_pce(struct gk20a *g);
#endif

View File

@@ -93,7 +93,7 @@ void vgpu_gr_handle_sm_esr_event(struct gk20a *g,
struct tegra_vgpu_sm_esr_info *info);
int vgpu_gr_init_ctx_state(struct gk20a *g);
int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info);
u32 vgpu_ce_get_num_pce(struct gk20a *g);
int vgpu_init_mm_support(struct gk20a *g);
int vgpu_init_gr_support(struct gk20a *g);
int vgpu_init_fifo_support(struct gk20a *g);