gpu: nvgpu: Move nvlink HAL files to common/nvlink

Move the nvlink HAL code to unit specific directory as part
of nvgpu restructing.
This move is done after removing usage of other unit's hardware
headers from nvlink. Also confirmed that no other unit files are
including nvlink hardware headers.

JIRA NVGPU-966

Change-Id: I301e3f8de37c5792a3e1e799b97e5fdfc131f058
Signed-off-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1975259
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Tejal Kudav
2018-12-18 17:09:03 +05:30
committed by mobile promotions
parent d5f26aa074
commit a307b6eb77
9 changed files with 11 additions and 10 deletions

View File

@@ -233,7 +233,6 @@ nvgpu-y += \
common/mm/dma.o \
common/enabled.o \
common/string.o \
common/nvlink.o \
common/pramin.o \
common/semaphore.o \
common/as.o \
@@ -281,6 +280,9 @@ nvgpu-y += \
common/ecc.o \
common/ce2.o \
common/debugger.o \
common/nvlink/nvlink.o \
common/nvlink/nvlink_gv100.o \
common/nvlink/nvlink_tu104.o \
gk20a/ce2_gk20a.o \
gk20a/fifo_gk20a.o \
gk20a/regops_gk20a.o \
@@ -355,7 +357,6 @@ nvgpu-y += \
gv100/fifo_gv100.o \
gv100/gr_gv100.o \
gv100/regops_gv100.o \
gv100/nvlink_gv100.o \
gv100/hal_gv100.o \
gv100/gsp_gv100.o \
gv100/clk_gv100.o \
@@ -364,7 +365,6 @@ nvgpu-y += \
tu104/gr_tu104.o \
tu104/func_tu104.o \
tu104/bios_tu104.o \
tu104/nvlink_tu104.o \
tu104/fbpa_tu104.o \
tu104/sec2_tu104.o \
tu104/ecc_tu104.o \

View File

@@ -232,7 +232,8 @@ srcs := os/posix/nvgpu.c \
gv100/fifo_gv100.c \
gv100/gr_gv100.c \
gv100/regops_gv100.c \
gv100/nvlink_gv100.c \
common/nvlink/nvlink_gv100.c \
common/nvlink/nvlink_tu104.c \
gv100/hal_gv100.c \
gv100/gsp_gv100.c \
gv100/clk_gv100.c \
@@ -246,7 +247,6 @@ srcs := os/posix/nvgpu.c \
tu104/fifo_tu104.c \
tu104/gr_tu104.c \
tu104/hal_tu104.c \
tu104/nvlink_tu104.c \
tu104/sec2_tu104.c \
tu104/func_tu104.c \
tu104/regops_tu104.c

View File

@@ -558,7 +558,7 @@ int nvgpu_nvlink_remove(struct gk20a *g)
return -ENODEV;
ndev = g->nvlink.priv;
if(!ndev)
if (!ndev)
return -ENODEV;
__nvgpu_set_enabled(g, NVGPU_SUPPORT_NVLINK, false);

View File

@@ -31,7 +31,7 @@
#include <nvgpu/gk20a.h>
#include <nvgpu/bios.h>
#include "gv100/nvlink_gv100.h"
#include "nvlink_gv100.h"
#include "nvlink_tu104.h"
#include <nvgpu/hw/tu104/hw_minion_tu104.h>

View File

@@ -69,6 +69,8 @@
#include "common/falcon/falcon_gp106.h"
#include "common/falcon/falcon_gv100.h"
#include "common/nvdec/nvdec_gp106.h"
#include "common/nvlink/nvlink_gv100.h"
#include "common/nvlink/nvlink_tu104.h"
#include "pmu_perf/perf_gv100.h"
#include "gk20a/fifo_gk20a.h"
@@ -107,7 +109,6 @@
#include "gv100/fifo_gv100.h"
#include "gv100/gr_gv100.h"
#include "gv100/mm_gv100.h"
#include "gv100/nvlink_gv100.h"
#include "gv100/regops_gv100.h"
#include "gv100/clk_gv100.h"

View File

@@ -75,6 +75,8 @@
#include "common/nvdec/nvdec_tu104.h"
#include "common/top/top_gm20b.h"
#include "common/top/top_gp10b.h"
#include "common/nvlink/nvlink_gv100.h"
#include "common/nvlink/nvlink_tu104.h"
#include "gk20a/fifo_gk20a.h"
#include "gk20a/fecs_trace_gk20a.h"
@@ -113,7 +115,6 @@
#include "gv100/fifo_gv100.h"
#include "gv100/gr_gv100.h"
#include "gv100/mm_gv100.h"
#include "gv100/nvlink_gv100.h"
#include "gv100/regops_gv100.h"
#include "tu104/fifo_tu104.h"
@@ -121,7 +122,6 @@
#include "tu104/bios_tu104.h"
#include "tu104/fbpa_tu104.h"
#include "tu104/sec2_tu104.h"
#include "tu104/nvlink_tu104.h"
#include "tu104/ecc_tu104.h"
#include "tu104/hal_tu104.h"
#include "tu104/regops_tu104.h"