diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.h | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 08ac20e4..262957c5 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B GPC MMU | 2 | * GM20B GPC MMU |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -41,6 +41,7 @@ | |||
41 | #include <nvgpu/hw/gm20b/hw_ltc_gm20b.h> | 41 | #include <nvgpu/hw/gm20b/hw_ltc_gm20b.h> |
42 | #include <nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h> | 42 | #include <nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h> |
43 | #include <nvgpu/hw/gm20b/hw_fuse_gm20b.h> | 43 | #include <nvgpu/hw/gm20b/hw_fuse_gm20b.h> |
44 | #include <nvgpu/hw/gm20b/hw_perf_gm20b.h> | ||
44 | 45 | ||
45 | void gr_gm20b_init_gpc_mmu(struct gk20a *g) | 46 | void gr_gm20b_init_gpc_mmu(struct gk20a *g) |
46 | { | 47 | { |
@@ -1541,3 +1542,8 @@ void gm20a_gr_disable_rd_coalesce(struct gk20a *g) | |||
1541 | 1542 | ||
1542 | gk20a_writel(g, gr_gpcs_tpcs_tex_m_dbg2_r(), dbg2_reg); | 1543 | gk20a_writel(g, gr_gpcs_tpcs_tex_m_dbg2_r(), dbg2_reg); |
1543 | } | 1544 | } |
1545 | |||
1546 | u32 gr_gm20b_get_pmm_per_chiplet_offset(void) | ||
1547 | { | ||
1548 | return (perf_pmmsys_extent_v() - perf_pmmsys_base_v() + 1); | ||
1549 | } | ||
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h index 3f604028..aabf6d95 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B GPC MMU | 2 | * GM20B GPC MMU |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -135,4 +135,5 @@ void gr_gm20b_split_ltc_broadcast_addr(struct gk20a *g, u32 addr, | |||
135 | u32 *priv_addr_table_index); | 135 | u32 *priv_addr_table_index); |
136 | void gm20b_gr_clear_sm_hww(struct gk20a *g, u32 gpc, u32 tpc, u32 sm, | 136 | void gm20b_gr_clear_sm_hww(struct gk20a *g, u32 gpc, u32 tpc, u32 sm, |
137 | u32 global_esr); | 137 | u32 global_esr); |
138 | u32 gr_gm20b_get_pmm_per_chiplet_offset(void); | ||
138 | #endif | 139 | #endif |
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index ac1c7123..bbe2b100 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -322,6 +322,8 @@ static const struct gpu_ops gm20b_ops = { | |||
322 | .add_ctxsw_reg_perf_pma = gr_gk20a_add_ctxsw_reg_perf_pma, | 322 | .add_ctxsw_reg_perf_pma = gr_gk20a_add_ctxsw_reg_perf_pma, |
323 | .decode_priv_addr = gr_gk20a_decode_priv_addr, | 323 | .decode_priv_addr = gr_gk20a_decode_priv_addr, |
324 | .create_priv_addr_table = gr_gk20a_create_priv_addr_table, | 324 | .create_priv_addr_table = gr_gk20a_create_priv_addr_table, |
325 | .get_pmm_per_chiplet_offset = | ||
326 | gr_gm20b_get_pmm_per_chiplet_offset, | ||
325 | }, | 327 | }, |
326 | .fb = { | 328 | .fb = { |
327 | .reset = fb_gk20a_reset, | 329 | .reset = fb_gk20a_reset, |