diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2019-05-22 18:05:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-22 09:34:14 -0500 |
commit | bda9afdacf8942c313a47cc95582737345a91c5e (patch) | |
tree | 93c6ddff82040a2b1baba38e14026d800da59767 /drivers/gpu/drm/amd/display/dc/core/dc.c | |
parent | a6465d1f3b8f863bd4ffd4048d10de3558b378d5 (diff) |
drm/amd/display: move vmid determination logic to a module
Currently vmid is decided internally inside dc. With the introduction
of new asics we are required to coordinate vmid use with external
components.
This change converts vmid logic to a DAL module allowing vmid to be
passed in as a parameter to DC.
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core/dc.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 8bc8ac3a7718..a29bb9bf3f9c 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -808,26 +808,6 @@ void dc_destroy(struct dc **dc) *dc = NULL; } -#ifdef CONFIG_DRM_AMD_DC_DCN2_0 -bool dc_init_memory_hub(struct dc *dc, struct dc_addr_space_config *config) -{ - // Memory hub init isn't done as part of dc_create because in windows, dal/dc is - // constructed before the vm config is setup in kmd so there's no way - // they can give it to us at boot/dc_create - bool vmSupported; - - // Call HWSS to setup HUBBUB for address config - dc->hwss.init_dchub(dc->hwseq, dc, config); - - // Pre-init system aperture start/end for all HUBP instances (if not gating?) - // or cache system aperture if using power gating - memcpy(&dc->vm_config, config, sizeof(struct dc_addr_space_config)); - - vmSupported = (dc->ctx->asic_id.chip_family == FAMILY_NV) ? true : false; - return vmSupported; -} - -#endif static void enable_timing_multisync( struct dc *dc, struct dc_state *ctx) |