Skip to content

Commit 18a77bd

Browse files
Kevin Gaoalexdeucher
authored andcommitted
drm/amd/display: Add skip rIOMMU dc config option
[Why] Need option to skip rIOMMU calls for dcn21. [How] Added rIOMMU dc config option and check for whether to skip rIOMMU calls. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Kevin Gao <kgao1003@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c00a39f commit 18a77bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ struct dc_config {
448448
bool enable_windowed_mpo_odm;
449449
bool forceHBR2CP2520; // Used for switching between test patterns TPS4 and CP2520
450450
uint32_t allow_edp_hotplug_detection;
451+
bool skip_riommu_prefetch_wa;
451452
bool clamp_min_dcfclk;
452453
uint64_t vblank_alignment_dto_params;
453454
uint8_t vblank_alignment_max_frame_time_diff;

drivers/gpu/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ int hubbub21_init_dchub(struct hubbub *hubbub,
132132
// Init VMID 0 based on PA config
133133
dcn20_vmid_setup(&hubbub1->vmid[0], &phys_config);
134134
}
135-
136-
dcn21_dchvm_init(hubbub);
137-
135+
if (!hubbub1->base.ctx->dc->config.skip_riommu_prefetch_wa) {
136+
dcn21_dchvm_init(hubbub);
137+
}
138138
return hubbub1->num_vmid;
139139
}
140140

0 commit comments

Comments
 (0)