Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Cruise Hung and committed by
Alex Deucher
cf1b9cbb d8f6c978

+3 -3
+2 -2
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
··· 947 947 /* DPCD[0xE000E] DP_IN_ADAPTER_INFO register. */ 948 948 union dpia_info { 949 949 struct { 950 - uint8_t dpia_num :5; 951 - uint8_t rsvd :3; 950 + uint8_t dpia_num :6; 951 + uint8_t rsvd :2; 952 952 } bits; 953 953 uint8_t raw; 954 954 };