diff options
author | ddutta <ddutta@nvidia.com> | 2018-09-17 03:39:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-21 06:15:35 -0400 |
commit | c616fba1eb357684e3796603a226f4df7d88be73 (patch) | |
tree | 8ace774fed31400ac8073cf67378689d6068d4a5 /drivers/gpu/nvgpu/Makefile.sources | |
parent | c5810a670d367ae1dc405fcc3108e11265df34bb (diff) |
gpu: nvgpu: remove circular dependency between hal.c and gk20a/
gk20a/hal.c depends on HAL init functions in all chips. But all chips
also depend on gk20a. That creates a circular dependency. In order to
solve the above, move gpu_init_hal and gk20a_detect_chip to
common/init/hal_init.c. These methods are declared in
include/nvgpu/hal_init.h. Also, the above methods are renamed to
nvgpu_init_hal and nvgpu_detect_chip respectively.
Jira NVGPU-613
Change-Id: Ib0df90287d4491571e4751475739b75fabd1041b
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1827576
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile.sources')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile.sources | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/Makefile.sources b/drivers/gpu/nvgpu/Makefile.sources index 5c15ebd0..4e67434d 100644 --- a/drivers/gpu/nvgpu/Makefile.sources +++ b/drivers/gpu/nvgpu/Makefile.sources | |||
@@ -68,6 +68,7 @@ srcs := os/posix/nvgpu.c \ | |||
68 | common/fb/fb_gp106.c \ | 68 | common/fb/fb_gp106.c \ |
69 | common/fb/fb_gv100.c \ | 69 | common/fb/fb_gv100.c \ |
70 | common/fb/fb_gv11b.c \ | 70 | common/fb/fb_gv11b.c \ |
71 | common/init/hal_init.c \ | ||
71 | common/xve/xve_gp106.c \ | 72 | common/xve/xve_gp106.c \ |
72 | common/therm/therm.c \ | 73 | common/therm/therm.c \ |
73 | common/therm/therm_gm20b.c \ | 74 | common/therm/therm_gm20b.c \ |
@@ -157,7 +158,6 @@ srcs := os/posix/nvgpu.c \ | |||
157 | gk20a/fence_gk20a.c \ | 158 | gk20a/fence_gk20a.c \ |
158 | gk20a/gr_ctx_gk20a_sim.c \ | 159 | gk20a/gr_ctx_gk20a_sim.c \ |
159 | gk20a/gr_ctx_gk20a.c \ | 160 | gk20a/gr_ctx_gk20a.c \ |
160 | gk20a/hal.c \ | ||
161 | gk20a/tsg_gk20a.c \ | 161 | gk20a/tsg_gk20a.c \ |
162 | gm20b/hal_gm20b.c \ | 162 | gm20b/hal_gm20b.c \ |
163 | gm20b/gr_gm20b.c \ | 163 | gm20b/gr_gm20b.c \ |