mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 18:22:00 -04:00
drm/amd/display: Fix DPIA number and driver ID field issue
[Why] The DPIA number field is 6 bits in the spec. In dp_type, it only defines 5 bits. The driver ID is only 4 bits in the spec. [How] Set DPIA number field size to 6. And only update 4 bits for driver id. Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com> Signed-off-by: Cruise Hung <Cruise.Hung@amd.com> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
d8f6c978fd
commit
cf1b9cbb59
@@ -947,8 +947,8 @@ union dp_tun_cap_support {
|
||||
/* DPCD[0xE000E] DP_IN_ADAPTER_INFO register. */
|
||||
union dpia_info {
|
||||
struct {
|
||||
uint8_t dpia_num :5;
|
||||
uint8_t rsvd :3;
|
||||
uint8_t dpia_num :6;
|
||||
uint8_t rsvd :2;
|
||||
} bits;
|
||||
uint8_t raw;
|
||||
};
|
||||
|
||||
@@ -71,7 +71,7 @@ enum dc_status dpcd_get_tunneling_device_data(struct dc_link *link)
|
||||
link->dpcd_caps.usb4_dp_tun_info.dpia_info.raw =
|
||||
dpcd_dp_tun_data[DP_IN_ADAPTER_INFO - DP_TUNNELING_CAPABILITIES_SUPPORT];
|
||||
link->dpcd_caps.usb4_dp_tun_info.usb4_driver_id =
|
||||
dpcd_dp_tun_data[DP_USB4_DRIVER_ID - DP_TUNNELING_CAPABILITIES_SUPPORT];
|
||||
dpcd_dp_tun_data[DP_USB4_DRIVER_ID - DP_TUNNELING_CAPABILITIES_SUPPORT] & 0x0F;
|
||||
|
||||
if (link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dpia_bw_alloc) {
|
||||
status = core_link_read_dpcd(link, USB4_DRIVER_BW_CAPABILITY,
|
||||
|
||||
Reference in New Issue
Block a user