diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-10-06 19:27:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:20:18 -0400 |
commit | 57fb527a7e33384341fc18f1f918d5a8225057f5 (patch) | |
tree | 23bb49f879ac495834237c99564f0589d637f07e /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | 3d343c9eeaa3415851d1c71b8815eb7dc2677b5a (diff) |
gpu: nvgpu: vgpu: flatten out vgpu hal
Instead of calling the native HAL init function then adding
multiple layers of modification for VGPU, flatten out the sequence
so that all entry points are set statically and visible in a
single file.
JIRA ESRM-30
Change-Id: Ie424abb48bce5038874851d399baac5e4bb7d27c
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1574616
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index b63202c1..7949ff24 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -378,7 +378,7 @@ int vgpu_init_gpu_characteristics(struct gk20a *g) | |||
378 | return 0; | 378 | return 0; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int vgpu_read_ptimer(struct gk20a *g, u64 *value) | 381 | int vgpu_read_ptimer(struct gk20a *g, u64 *value) |
382 | { | 382 | { |
383 | struct tegra_vgpu_cmd_msg msg = {0}; | 383 | struct tegra_vgpu_cmd_msg msg = {0}; |
384 | struct tegra_vgpu_read_ptimer_params *p = &msg.params.read_ptimer; | 384 | struct tegra_vgpu_read_ptimer_params *p = &msg.params.read_ptimer; |
@@ -441,27 +441,6 @@ int vgpu_get_timestamps_zipper(struct gk20a *g, | |||
441 | return err; | 441 | return err; |
442 | } | 442 | } |
443 | 443 | ||
444 | void vgpu_init_hal_common(struct gk20a *g) | ||
445 | { | ||
446 | struct gpu_ops *gops = &g->ops; | ||
447 | |||
448 | vgpu_init_fifo_ops(gops); | ||
449 | vgpu_init_gr_ops(gops); | ||
450 | vgpu_init_ltc_ops(gops); | ||
451 | vgpu_init_mm_ops(gops); | ||
452 | vgpu_init_debug_ops(gops); | ||
453 | vgpu_init_dbg_session_ops(gops); | ||
454 | vgpu_init_fecs_trace_ops(gops); | ||
455 | vgpu_init_tsg_ops(gops); | ||
456 | #if defined(CONFIG_GK20A_CYCLE_STATS) | ||
457 | vgpu_init_css_ops(gops); | ||
458 | #endif | ||
459 | vgpu_init_ce2_ops(gops); | ||
460 | gops->chip_init_gpu_characteristics = vgpu_init_gpu_characteristics; | ||
461 | gops->bus.read_ptimer = vgpu_read_ptimer; | ||
462 | gops->bus.get_timestamps_zipper = vgpu_get_timestamps_zipper; | ||
463 | } | ||
464 | |||
465 | static int vgpu_init_hal(struct gk20a *g) | 444 | static int vgpu_init_hal(struct gk20a *g) |
466 | { | 445 | { |
467 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; | 446 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; |