Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Add NBIO reg offsets to DC

[Why&How]
Add a field to store the NBIO IP offset for use with runtime offset
calculation

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Aurabindo Pillai and committed by
Alex Deucher
2a93292f e5028e9f

+6
+1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 1565 1565 init_data.flags.enable_mipi_converter_optimization = true; 1566 1566 1567 1567 init_data.dcn_reg_offsets = adev->reg_offset[DCE_HWIP][0]; 1568 + init_data.nbio_reg_offsets = adev->reg_offset[NBIO_HWIP][0]; 1568 1569 1569 1570 INIT_LIST_HEAD(&adev->dm.da_list); 1570 1571
+2
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 863 863 dc_ctx->dc_stream_id_count = 0; 864 864 dc_ctx->dce_environment = init_params->dce_environment; 865 865 dc_ctx->dcn_reg_offsets = init_params->dcn_reg_offsets; 866 + dc_ctx->nbio_reg_offsets = init_params->nbio_reg_offsets; 866 867 867 868 /* Create logger */ 868 869 ··· 1244 1243 } 1245 1244 1246 1245 dc->dcn_reg_offsets = init_params->dcn_reg_offsets; 1246 + dc->nbio_reg_offsets = init_params->nbio_reg_offsets; 1247 1247 1248 1248 /* Populate versioning information */ 1249 1249 dc->versions.dc_ver = DC_VER;
+2
drivers/gpu/drm/amd/display/dc/dc.h
··· 810 810 struct vm_helper *vm_helper; 811 811 812 812 uint32_t *dcn_reg_offsets; 813 + uint32_t *nbio_reg_offsets; 813 814 }; 814 815 815 816 enum frame_buffer_mode { ··· 858 857 * before them. 859 858 */ 860 859 uint32_t *dcn_reg_offsets; 860 + uint32_t *nbio_reg_offsets; 861 861 }; 862 862 863 863 struct dc_callback_init {
+1
drivers/gpu/drm/amd/display/dc/dc_types.h
··· 877 877 struct cp_psp cp_psp; 878 878 #endif 879 879 uint32_t *dcn_reg_offsets; 880 + uint32_t *nbio_reg_offsets; 880 881 }; 881 882 882 883 /* DSC DPCD capabilities */