diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-07-18 01:02:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-19 02:42:08 -0400 |
commit | 882a5be5a45702cd94c4eddf9d01e76fd8e039a1 (patch) | |
tree | a60a296be3737ff9100492af6f3ed7213c577ae8 /drivers/gpu/nvgpu | |
parent | f36e2a234b39cf7622c57ad51359629f5c425340 (diff) |
gpu: nvgpu: support etpc addresses in ext buffer
Bug 1960226
Change-Id: Ifdcdff803e96c59b2794170349ec4e2c00406706
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1522445
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ff81e380..d0c4dec7 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -6703,9 +6703,13 @@ static int gr_gk20a_find_priv_offset_in_ext_buffer(struct gk20a *g, | |||
6703 | 6703 | ||
6704 | gk20a_dbg_info(" gpc = %d tpc = %d", | 6704 | gk20a_dbg_info(" gpc = %d tpc = %d", |
6705 | gpc_num, tpc_num); | 6705 | gpc_num, tpc_num); |
6706 | } else if ((g->ops.gr.is_etpc_addr) && | ||
6707 | g->ops.gr.is_etpc_addr(g, addr)) { | ||
6708 | g->ops.gr.get_egpc_etpc_num(g, addr, &gpc_num, &tpc_num); | ||
6709 | gpc_base = g->ops.gr.get_egpc_base(g); | ||
6706 | } else { | 6710 | } else { |
6707 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, | 6711 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, |
6708 | "extended region has tpc reg only"); | 6712 | "does not exist in extended region"); |
6709 | return -EINVAL; | 6713 | return -EINVAL; |
6710 | } | 6714 | } |
6711 | 6715 | ||