diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-26 14:13:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:44 -0400 |
commit | 9d37d8b78c2dac7fa480493d1ab67b95290b87f1 (patch) | |
tree | 338d862a37c8639c68a22f9543fa1499f2307762 /drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | |
parent | 6431ec360bf7b7baf6dd687b1525c40114ede189 (diff) |
gpu: nvgpu: Reorg fecs_trace HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
fecs_trace sub-module of the gpu_ops struct.
Perform HAL function assignments in hal_gxxxx.c through the
population of a chip-specific copy of gpu_ops.
Jira NVGPU-74
Change-Id: I84485ad64997270c6a0fce3c95dc9ceb0094cf6c
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1527419
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c index 723da1a2..bec40512 100644 --- a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <nvgpu/hw/gp10b/hw_gr_gp10b.h> | 22 | #include <nvgpu/hw/gp10b/hw_gr_gp10b.h> |
23 | 23 | ||
24 | #ifdef CONFIG_GK20A_CTXSW_TRACE | 24 | #ifdef CONFIG_GK20A_CTXSW_TRACE |
25 | static int gp10b_fecs_trace_flush(struct gk20a *g) | 25 | int gp10b_fecs_trace_flush(struct gk20a *g) |
26 | { | 26 | { |
27 | struct fecs_method_op_gk20a op = { | 27 | struct fecs_method_op_gk20a op = { |
28 | .mailbox = { .id = 0, .data = 0, | 28 | .mailbox = { .id = 0, .data = 0, |
@@ -43,14 +43,4 @@ static int gp10b_fecs_trace_flush(struct gk20a *g) | |||
43 | 43 | ||
44 | return err; | 44 | return err; |
45 | } | 45 | } |
46 | |||
47 | void gp10b_init_fecs_trace_ops(struct gpu_ops *ops) | ||
48 | { | ||
49 | gk20a_init_fecs_trace_ops(ops); | ||
50 | ops->fecs_trace.flush = gp10b_fecs_trace_flush; | ||
51 | } | ||
52 | #else | ||
53 | void gp10b_init_fecs_trace_ops(struct gpu_ops *ops) | ||
54 | { | ||
55 | } | ||
56 | #endif /* CONFIG_GK20A_CTXSW_TRACE */ | 46 | #endif /* CONFIG_GK20A_CTXSW_TRACE */ |