drm/amd/display: Add Connection Manager boot option.
[Why] Boot up behaviour may differ depending on the Connection Manager handling USB4 tunneling. [How] Send boot option to firmware to indicate Connection Manager. Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
42a809eba5
commit
0f05c998d1
@@ -243,6 +243,7 @@ struct dmub_srv_hw_params {
|
|||||||
bool power_optimization;
|
bool power_optimization;
|
||||||
bool dpia_supported;
|
bool dpia_supported;
|
||||||
bool disable_dpia;
|
bool disable_dpia;
|
||||||
|
bool usb4_cm_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -350,8 +350,9 @@ union dmub_fw_boot_options {
|
|||||||
uint32_t power_optimization: 1;
|
uint32_t power_optimization: 1;
|
||||||
uint32_t diag_env: 1; /* 1 if diagnostic environment */
|
uint32_t diag_env: 1; /* 1 if diagnostic environment */
|
||||||
uint32_t gpint_scratch8: 1; /* 1 if GPINT is in scratch8*/
|
uint32_t gpint_scratch8: 1; /* 1 if GPINT is in scratch8*/
|
||||||
|
uint32_t usb4_cm_version: 1; /**< USB4 CM Version */
|
||||||
|
|
||||||
uint32_t reserved : 18; /**< reserved */
|
uint32_t reserved : 17; /**< reserved */
|
||||||
} bits; /**< boot bits */
|
} bits; /**< boot bits */
|
||||||
uint32_t all; /**< 32-bit access to bits */
|
uint32_t all; /**< 32-bit access to bits */
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ void dmub_dcn31_enable_dmub_boot_options(struct dmub_srv *dmub, const struct dmu
|
|||||||
boot_options.bits.z10_disable = params->disable_z10;
|
boot_options.bits.z10_disable = params->disable_z10;
|
||||||
boot_options.bits.dpia_supported = params->dpia_supported;
|
boot_options.bits.dpia_supported = params->dpia_supported;
|
||||||
boot_options.bits.enable_dpia = params->disable_dpia ? 0 : 1;
|
boot_options.bits.enable_dpia = params->disable_dpia ? 0 : 1;
|
||||||
|
boot_options.bits.usb4_cm_version = params->usb4_cm_version;
|
||||||
boot_options.bits.power_optimization = params->power_optimization;
|
boot_options.bits.power_optimization = params->power_optimization;
|
||||||
|
|
||||||
boot_options.bits.sel_mux_phy_c_d_phy_f_g = (dmub->asic == DMUB_ASIC_DCN31B) ? 1 : 0;
|
boot_options.bits.sel_mux_phy_c_d_phy_f_g = (dmub->asic == DMUB_ASIC_DCN31B) ? 1 : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user