Skip to content

Commit

Permalink
drm/amd/display: Add skip rIOMMU dc config option
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Kevin Gao authored and Alex Deucher committed May 5, 2025
1 parent c00a39f commit 18a77bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/dc.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ struct dc_config {
bool enable_windowed_mpo_odm;
bool forceHBR2CP2520; // Used for switching between test patterns TPS4 and CP2520
uint32_t allow_edp_hotplug_detection;
bool skip_riommu_prefetch_wa;
bool clamp_min_dcfclk;
uint64_t vblank_alignment_dto_params;
uint8_t vblank_alignment_max_frame_time_diff;
Expand Down
6 changes: 3 additions & 3 deletions drivers/gpu/drm/amd/display/dc/hubbub/dcn21/dcn21_hubbub.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ int hubbub21_init_dchub(struct hubbub *hubbub,
// Init VMID 0 based on PA config
dcn20_vmid_setup(&hubbub1->vmid[0], &phys_config);
}

dcn21_dchvm_init(hubbub);

if (!hubbub1->base.ctx->dc->config.skip_riommu_prefetch_wa) {
dcn21_dchvm_init(hubbub);
}
return hubbub1->num_vmid;
}

Expand Down

0 comments on commit 18a77bd

Please sign in to comment.