Commit 8ca80900 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher

drm/amd/display: add DPCD read for Sink ieee OUI

Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0f6ca3ba
...@@ -2305,6 +2305,7 @@ static bool retrieve_link_cap(struct dc_link *link) ...@@ -2305,6 +2305,7 @@ static bool retrieve_link_cap(struct dc_link *link)
{ {
uint8_t dpcd_data[DP_ADAPTER_CAP - DP_DPCD_REV + 1]; uint8_t dpcd_data[DP_ADAPTER_CAP - DP_DPCD_REV + 1];
struct dp_device_vendor_id sink_id;
union down_stream_port_count down_strm_port_count; union down_stream_port_count down_strm_port_count;
union edp_configuration_cap edp_config_cap; union edp_configuration_cap edp_config_cap;
union dp_downstream_port_present ds_port = { 0 }; union dp_downstream_port_present ds_port = { 0 };
...@@ -2391,6 +2392,17 @@ static bool retrieve_link_cap(struct dc_link *link) ...@@ -2391,6 +2392,17 @@ static bool retrieve_link_cap(struct dc_link *link)
&link->dpcd_caps.sink_count.raw, &link->dpcd_caps.sink_count.raw,
sizeof(link->dpcd_caps.sink_count.raw)); sizeof(link->dpcd_caps.sink_count.raw));
/* read sink ieee oui */
core_link_read_dpcd(link,
DP_SINK_OUI,
(uint8_t *)(&sink_id),
sizeof(sink_id));
link->dpcd_caps.sink_dev_id =
(sink_id.ieee_oui[0] << 16) +
(sink_id.ieee_oui[1] << 8) +
(sink_id.ieee_oui[2]);
/* Connectivity log: detection */ /* Connectivity log: detection */
CONN_DATA_DETECT(link, dpcd_data, sizeof(dpcd_data), "Rx Caps: "); CONN_DATA_DETECT(link, dpcd_data, sizeof(dpcd_data), "Rx Caps: ");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment