]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Get LTTPR IEEE OUI/Device ID From Closest LTTPR To Host
authorMichael Strauss <michael.strauss@amd.com>
Wed, 26 Feb 2025 15:03:48 +0000 (10:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 17:03:29 +0000 (13:03 -0400)
commitd358a51444c88bcc995e471dc8cc840f19e4b374
tree30d05c9d01cc187da2da3a74faafc98c48f90174
parent3251b69b7efb82eba24c9e168a6142a3078de72f
drm/amd/display: Get LTTPR IEEE OUI/Device ID From Closest LTTPR To Host

[WHY]
These fields are read for the explicit purpose of detecting embedded LTTPRs
(i.e. between host ASIC and the user-facing port), and thus need to
calculate the correct DPCD address offset based on LTTPR count to target
the appropriate LTTPR's DPCD register space with these queries.

[HOW]
Cascaded LTTPRs in a link each snoop and increment LTTPR count when queried
via DPCD read, so an LTTPR embedded in a source device (e.g. USB4 port on a
laptop) will always be addressible using the max LTTPR count seen by the
host. Therefore we simply need to use a recently added helper function to
calculate the correct DPCD address to target potentially embedded LTTPRs
based on the received LTTPR count.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 791897f5c77a2a65d0e500be4743af2ddf6eb061)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c