mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: create nvgpu.common.hal.init unit
Move hal init from chip-specific paths to hal/init. Update makefiles and include paths to match. JIRA NVGPU-2023 Change-Id: I810c817bb0ba83dcf5ed4d05df502e85c2fd77df Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2098915 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
da9dee85e2
commit
f0640b9d10
@@ -190,6 +190,12 @@ nvgpu-y += \
|
||||
hal/gr/zbc/zbc_gm20b.o \
|
||||
hal/gr/zbc/zbc_gp10b.o \
|
||||
hal/gr/zbc/zbc_gv11b.o \
|
||||
hal/init/hal_gm20b.o \
|
||||
hal/init/hal_gp10b.o \
|
||||
hal/init/hal_gv100.o \
|
||||
hal/init/hal_gv11b.o \
|
||||
hal/init/hal_tu104.o \
|
||||
hal/init/hal_init.o \
|
||||
hal/perf/perf_gm20b.o \
|
||||
hal/perf/perf_gv11b.o \
|
||||
hal/priv_ring/priv_ring_gm20b.o \
|
||||
@@ -462,7 +468,6 @@ nvgpu-y += \
|
||||
common/engine_queues/engine_dmem_queue.o \
|
||||
common/engine_queues/engine_emem_queue.o \
|
||||
common/engine_queues/engine_fb_queue.o \
|
||||
common/init/hal_init.o \
|
||||
common/sec2/sec2.o \
|
||||
common/sec2/sec2_allocator.o \
|
||||
common/sec2/sec2_lsfm.o \
|
||||
@@ -499,7 +504,6 @@ nvgpu-y += \
|
||||
gk20a/fifo_gk20a.o \
|
||||
gk20a/gr_gk20a.o \
|
||||
gk20a/mm_gk20a.o \
|
||||
gm20b/hal_gm20b.o \
|
||||
gm20b/gr_gm20b.o \
|
||||
gm20b/clk_gm20b.o \
|
||||
gm20b/mm_gm20b.o
|
||||
@@ -549,9 +553,7 @@ nvgpu-y += \
|
||||
gp10b/gr_gp10b.o \
|
||||
gp10b/ce_gp10b.o \
|
||||
gp10b/mm_gp10b.o \
|
||||
gp10b/hal_gp10b.o \
|
||||
gp106/bios_gp106.o \
|
||||
gv11b/hal_gv11b.o \
|
||||
gv11b/gr_gv11b.o \
|
||||
gv11b/fifo_gv11b.o \
|
||||
gv11b/mm_gv11b.o \
|
||||
@@ -560,10 +562,8 @@ nvgpu-y += \
|
||||
gv100/bios_gv100.o \
|
||||
gv100/fifo_gv100.o \
|
||||
gv100/gr_gv100.o \
|
||||
gv100/hal_gv100.o \
|
||||
gv100/clk_gv100.o \
|
||||
tu104/mm_tu104.o \
|
||||
tu104/hal_tu104.o \
|
||||
tu104/fifo_tu104.o \
|
||||
tu104/gr_tu104.o \
|
||||
tu104/func_tu104.o \
|
||||
|
||||
@@ -77,7 +77,6 @@ srcs += common/sim.c \
|
||||
common/mm/mm.c \
|
||||
common/mm/dma.c \
|
||||
common/mm/vidmem.c \
|
||||
common/init/hal_init.c \
|
||||
common/xve/xve_gp106.c \
|
||||
common/therm/therm.c \
|
||||
common/perf/perfbuf.c \
|
||||
@@ -244,15 +243,12 @@ srcs += common/sim.c \
|
||||
gk20a/fifo_gk20a.c \
|
||||
gk20a/gr_gk20a.c \
|
||||
gk20a/mm_gk20a.c \
|
||||
gm20b/hal_gm20b.c \
|
||||
gm20b/gr_gm20b.c \
|
||||
gm20b/clk_gm20b.c \
|
||||
gm20b/mm_gm20b.c \
|
||||
gp10b/gr_gp10b.c \
|
||||
gp10b/ce_gp10b.c \
|
||||
gp10b/mm_gp10b.c \
|
||||
gp10b/hal_gp10b.c \
|
||||
gv11b/hal_gv11b.c \
|
||||
gv11b/gr_gv11b.c \
|
||||
gv11b/fifo_gv11b.c \
|
||||
gv11b/mm_gv11b.c \
|
||||
@@ -262,14 +258,12 @@ srcs += common/sim.c \
|
||||
gv100/bios_gv100.c \
|
||||
gv100/fifo_gv100.c \
|
||||
gv100/gr_gv100.c \
|
||||
gv100/hal_gv100.c \
|
||||
gv100/clk_gv100.c \
|
||||
tu104/bios_tu104.c \
|
||||
tu104/fbpa_tu104.c \
|
||||
tu104/fifo_tu104.c \
|
||||
tu104/gr_tu104.c \
|
||||
tu104/mm_tu104.c \
|
||||
tu104/hal_tu104.c \
|
||||
tu104/func_tu104.c \
|
||||
hal/mm/cache/flush_gk20a.c \
|
||||
hal/mm/cache/flush_gv11b.c \
|
||||
@@ -314,6 +308,12 @@ srcs += common/sim.c \
|
||||
hal/gr/zbc/zbc_gm20b.c \
|
||||
hal/gr/zbc/zbc_gp10b.c \
|
||||
hal/gr/zbc/zbc_gv11b.c \
|
||||
hal/init/hal_gm20b.c \
|
||||
hal/init/hal_gp10b.c \
|
||||
hal/init/hal_gv100.c \
|
||||
hal/init/hal_gv11b.c \
|
||||
hal/init/hal_tu104.c \
|
||||
hal/init/hal_init.c \
|
||||
hal/perf/perf_gm20b.c \
|
||||
hal/perf/perf_gv11b.c \
|
||||
hal/priv_ring/priv_ring_gm20b.c \
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
#include "hal/gr/ctxsw_prog/ctxsw_prog_gp10b.h"
|
||||
#include "hal/netlist/netlist_gp10b.h"
|
||||
#include "hal/perf/perf_gm20b.h"
|
||||
#include "hal/init/hal_gp10b.h"
|
||||
|
||||
#include "common/fifo/channel_gm20b.h"
|
||||
#include "common/clk_arb/clk_arb_gp10b.h"
|
||||
@@ -79,7 +80,6 @@
|
||||
#include "common/vgpu/ptimer/ptimer_vgpu.h"
|
||||
#include "common/vgpu/init/init_vgpu.h"
|
||||
#include "vgpu_hal_gp10b.h"
|
||||
#include "gp10b/hal_gp10b.h"
|
||||
|
||||
#include "common/sync/syncpt_cmdbuf_gk20a.h"
|
||||
#include "common/sync/sema_cmdbuf_gk20a.h"
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
#include "hal/gr/ctxsw_prog/ctxsw_prog_gv11b.h"
|
||||
#include "hal/perf/perf_gv11b.h"
|
||||
#include "hal/netlist/netlist_gv11b.h"
|
||||
#include "hal/init/hal_gv11b.h"
|
||||
|
||||
#include "common/sync/syncpt_cmdbuf_gv11b.h"
|
||||
#include "common/sync/sema_cmdbuf_gv11b.h"
|
||||
@@ -69,7 +70,6 @@
|
||||
#include "common/clk_arb/clk_arb_gp10b.h"
|
||||
|
||||
#include <nvgpu/gk20a.h>
|
||||
#include <gv11b/hal_gv11b.h>
|
||||
#include <nvgpu/vgpu/vgpu.h>
|
||||
#include <nvgpu/error_notifier.h>
|
||||
|
||||
|
||||
@@ -101,9 +101,9 @@
|
||||
#include "gk20a/mm_gk20a.h"
|
||||
#include "gk20a/gr_gk20a.h"
|
||||
|
||||
#include "gr_gm20b.h"
|
||||
#include "mm_gm20b.h"
|
||||
#include "clk_gm20b.h"
|
||||
#include "gm20b/gr_gm20b.h"
|
||||
#include "gm20b/mm_gm20b.h"
|
||||
#include "gm20b/clk_gm20b.h"
|
||||
#include "hal_gm20b.h"
|
||||
|
||||
#include <nvgpu/hw/gm20b/hw_proj_gm20b.h>
|
||||
@@ -144,7 +144,7 @@
|
||||
#include "gp10b/ce_gp10b.h"
|
||||
#include "gp10b/mm_gp10b.h"
|
||||
|
||||
#include "gv11b/hal_gv11b.h"
|
||||
#include "hal_gv11b.h"
|
||||
#include "gv11b/gr_gv11b.h"
|
||||
#include "gv11b/ce_gv11b.h"
|
||||
#include "gv11b/mm_gv11b.h"
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
#include "gv100/gr_gv100.h"
|
||||
|
||||
#include "gv11b/hal_gv11b.h"
|
||||
#include "hal_gv11b.h"
|
||||
#include "gv11b/gr_gv11b.h"
|
||||
#include "gv11b/ce_gv11b.h"
|
||||
#include "gv11b/mm_gv11b.h"
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* NVIDIA GPU HAL interface.
|
||||
*
|
||||
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-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"),
|
||||
@@ -28,11 +28,11 @@
|
||||
#include <nvgpu/mc.h>
|
||||
#include <nvgpu/soc.h>
|
||||
|
||||
#include "gm20b/hal_gm20b.h"
|
||||
#include "gp10b/hal_gp10b.h"
|
||||
#include "gv100/hal_gv100.h"
|
||||
#include "gv11b/hal_gv11b.h"
|
||||
#include "tu104/hal_tu104.h"
|
||||
#include "hal_gm20b.h"
|
||||
#include "hal_gp10b.h"
|
||||
#include "hal_gv100.h"
|
||||
#include "hal_gv11b.h"
|
||||
#include "hal_tu104.h"
|
||||
|
||||
int nvgpu_init_hal(struct gk20a *g)
|
||||
{
|
||||
@@ -158,7 +158,7 @@
|
||||
#include "gp10b/ce_gp10b.h"
|
||||
#include "gp10b/mm_gp10b.h"
|
||||
|
||||
#include "gv11b/hal_gv11b.h"
|
||||
#include "hal_gv11b.h"
|
||||
#include "gv11b/gr_gv11b.h"
|
||||
#include "gv11b/ce_gv11b.h"
|
||||
#include "gv11b/mm_gv11b.h"
|
||||
@@ -173,7 +173,7 @@
|
||||
#include "tu104/gr_tu104.h"
|
||||
#include "tu104/bios_tu104.h"
|
||||
#include "tu104/fbpa_tu104.h"
|
||||
#include "tu104/hal_tu104.h"
|
||||
#include "hal_tu104.h"
|
||||
|
||||
#include <nvgpu/ptimer.h>
|
||||
#include <nvgpu/debug.h>
|
||||
@@ -44,7 +44,6 @@
|
||||
#include "common/vgpu/ivc/comm_vgpu.h"
|
||||
#include "common/vgpu/intr/intr_vgpu.h"
|
||||
#include "common/vgpu/init/init_vgpu.h"
|
||||
#include "gm20b/hal_gm20b.h"
|
||||
|
||||
#include "os/linux/module.h"
|
||||
#include "os/linux/os_linux.h"
|
||||
|
||||
Reference in New Issue
Block a user