gpu: nvgpu: add turing support

Add Turing specific common, unit, hardware header files

Make all the Makefile and Makefile.sources changes to compile
all Turing specific code

Bug 200454999

Change-Id: I62ebff5c078b4b8817fc83ea0e4ee3cfffe668dc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1917983
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2018-10-03 18:26:43 +05:30
committed by Abdul Salam
parent 2b4cd797b4
commit 51244d6112
84 changed files with 29863 additions and 17 deletions

View File

@@ -39,8 +39,6 @@ CORE_OUT=$(OUT)/nvgpu_unit_core
# Nvgpu driver code.
NVGPU_SRC=$(TWD)/../drivers/gpu/nvgpu
NVGPU_OUT=$(OUT)/libnvgpu
# Nvgpu_next driver code.
NVGPU_NEXT_SRC=$(TWD)/../../nvgpu-next/drivers/gpu/nvgpu
# Unit tests themselves.
UNIT_SRC=$(TWD)/units
@@ -49,8 +47,6 @@ UNIT_OUT=$(OUT)/units
INCLUDES= \
-I$(NVGPU_SRC) \
-I$(NVGPU_SRC)/include \
-I$(NVGPU_NEXT_SRC) \
-I$(NVGPU_NEXT_SRC)/include \
-I$(TWD)/../include \
-I$(TWD)/../include/uapi \
-I$(TWD)/include
@@ -111,14 +107,6 @@ $(NVGPU_OUT)/%.o : $(NVGPU_SRC)/%.c $(HEADERS)
fi
$(CC) --coverage $(CFLAGS) $(configs) -c -o $@ $<
# Default build target for all the nvgpu-next driver object files we want to
# build in userspace. These too get bundled into libnvgpu-drv.so.
$(NVGPU_OUT)/%.o : $(NVGPU_NEXT_SRC)/%.c $(HEADERS) $(HEADERS_NEXT)
@if [ ! -d $(dir $@) ] ; then \
mkdir -p $(dir $@) ; \
fi
$(CC) --coverage $(CFLAGS) $(configs) -c -o $@ $<
# Build target for unit test files. These are not part of the libnvgpu-drv.so.
# These comprise the unit test framework.
$(CORE_OUT)/%.o : $(CORE_SRC)/%.c $(CORE_HEADERS)

View File

@@ -21,9 +21,8 @@
# DEALINGS IN THE SOFTWARE.
include $(NVGPU_SRC)/Makefile.sources
-include $(NVGPU_NEXT_SRC)/Makefile.sources
OBJS := $(srcs:%.c=$(NVGPU_OUT)/%.o) $(srcs_next:%.c=$(NVGPU_OUT)/%.o)
OBJS := $(srcs:%.c=$(NVGPU_OUT)/%.o)
HEADERS := \
$(NVGPU_SRC)/include/nvgpu/*.h \
@@ -31,7 +30,8 @@ HEADERS := \
$(NVGPU_SRC)/gk20a/*.h \
$(NVGPU_SRC)/gm20b/*.h \
$(NVGPU_SRC)/gp10b/*.h \
$(NVGPU_SRC)/gv11b/*.h
$(NVGPU_SRC)/gv11b/*.h \
$(NVGPU_SRC)/tu104/*.h
CORE_OBJS := \
$(CORE_OUT)/unit_main.o \