diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-04-13 03:48:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-16 01:53:29 -0400 |
commit | a0dfb2b91112a766fb4b3e2aaafa99167151c3da (patch) | |
tree | 03c40e6c819227860204ccd8ec8b629727ac315c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | b64dfdcf9edfd50a8e10aed8a8c96f85c25d59d9 (diff) |
gpu: nvgpu: gv100: consider floorswept FBPA for getting unicast list
In gr_gv11b/gk20a_create_priv_addr_table() we do not consider floorswept FBPAs
and just calculate the unicast list assuming all FBPAs are present
This generates incorrect list of unicast addresses
Fix this introducing new HAL ops.gr.split_fbpa_broadcast_addr
Set gr_gv100_get_active_fpba_mask() for GV100
Set gr_gk20a_split_fbpa_broadcast_addr() for rest of the chips
gr_gv100_get_active_fpba_mask() will first get active FPBA mask and generate
unicast list only for active FBPAs
Bug 200398811
Jira NVGPU-556
Change-Id: Idd11d6e7ad7b6836525fe41509aeccf52038321f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1694444
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 2d1eb388..c55ba146 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -472,6 +472,10 @@ struct gpu_ops { | |||
472 | u32 *priv_addr_table, | 472 | u32 *priv_addr_table, |
473 | u32 *num_registers); | 473 | u32 *num_registers); |
474 | u32 (*get_pmm_per_chiplet_offset)(void); | 474 | u32 (*get_pmm_per_chiplet_offset)(void); |
475 | void (*split_fbpa_broadcast_addr)(struct gk20a *g, u32 addr, | ||
476 | u32 num_fbpas, | ||
477 | u32 *priv_addr_table, | ||
478 | u32 *priv_addr_table_index); | ||
475 | } gr; | 479 | } gr; |
476 | struct { | 480 | struct { |
477 | void (*init_hw)(struct gk20a *g); | 481 | void (*init_hw)(struct gk20a *g); |