mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: create common.fbp unit
create a new unit common.fbp which initializes fbp support and provides
APIs to retrieve fbp data.
Create private header with below data
struct nvgpu_fbp {
u32 num_fbps;
u32 max_fbps_count;
u32 fbp_en_mask;
u32 *fbp_rop_l2_en_mask;
};
Expose below public APIs to initialize/remove fbp support:
nvgpu_fbp_init_support()
nvgpu_fbp_remove_support()
vgpu_fbp_init_support() for vGPU
Expose below APIs to retrieve fbp data
nvgpu_fbp_get_num_fbps()
nvgpu_fbp_get_max_fbps_count()
nvgpu_fbp_get_fbp_en_mask()
nvgpu_fbp_get_rop_l2_en_mask()
Use above APIs to retrieve fbp data in all the code.
Remove corresponding fields from struct nvgpu_gr since they are no
longer referred from that structure
Jira NVGPU-3124
Change-Id: I027caf4874b1f6154219f01902020dec4d7b0cb1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2108617
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3af5242bb0
commit
d2512bd5ee
@@ -291,7 +291,6 @@ static const struct gpu_ops gp10b_ops = {
|
||||
.get_tpc_num = gr_gm20b_get_tpc_num,
|
||||
.dump_gr_regs = gr_gp10b_dump_gr_status_regs,
|
||||
.update_pc_sampling = gr_gm20b_update_pc_sampling,
|
||||
.get_rop_l2_en_mask = gr_gm20b_rop_l2_en_mask,
|
||||
.init_sm_dsm_reg_info = gr_gm20b_init_sm_dsm_reg_info,
|
||||
.init_cyclestats = gr_gm20b_init_cyclestats,
|
||||
.set_sm_debug_mode = gr_gk20a_set_sm_debug_mode,
|
||||
@@ -476,7 +475,6 @@ static const struct gpu_ops gp10b_ops = {
|
||||
.get_no_of_sm = nvgpu_gr_get_no_of_sm,
|
||||
.wait_initialized = nvgpu_gr_wait_initialized,
|
||||
.ecc_scrub_reg = NULL,
|
||||
.get_fbp_en_mask = gm20b_gr_init_get_fbp_en_mask,
|
||||
.lg_coalesce = gm20b_gr_init_lg_coalesce,
|
||||
.su_coalesce = gm20b_gr_init_su_coalesce,
|
||||
.pes_vsc_stream = gm20b_gr_init_pes_vsc_stream,
|
||||
|
||||
Reference in New Issue
Block a user