Commit 749eb52
committed
drm/amd/display: Get LTTPR IEEE OUI/Device ID From Closest LTTPR To Host
JIRA: https://issues.redhat.com/browse/RHEL-75958
commit af02a1913a15d99ac8b6fc25f25ce5222d1c191b
Author: Michael Strauss <michael.strauss@amd.com>
Date: Wed Feb 26 10:03:48 2025 -0500
drm/amd/display: Get LTTPR IEEE OUI/Device ID From Closest LTTPR To Host
commit d358a51 upstream.
[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 791897f)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: José Expósito <jexposit@redhat.com>1 parent 169eaf2 commit 749eb52
File tree
2 files changed
+33
-9
lines changed- drivers/gpu/drm/amd/display/dc
- link/protocols
2 files changed
+33
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
1160 | | - | |
1161 | | - | |
| 1160 | + | |
| 1161 | + | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| |||
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| |||
1551 | 1557 | | |
1552 | 1558 | | |
1553 | 1559 | | |
| 1560 | + | |
| 1561 | + | |
1554 | 1562 | | |
1555 | 1563 | | |
1556 | 1564 | | |
| |||
1602 | 1610 | | |
1603 | 1611 | | |
1604 | 1612 | | |
| 1613 | + | |
| 1614 | + | |
1605 | 1615 | | |
1606 | 1616 | | |
1607 | 1617 | | |
1608 | | - | |
| 1618 | + | |
1609 | 1619 | | |
1610 | 1620 | | |
1611 | 1621 | | |
1612 | 1622 | | |
1613 | 1623 | | |
1614 | 1624 | | |
| 1625 | + | |
1615 | 1626 | | |
1616 | 1627 | | |
1617 | 1628 | | |
1618 | | - | |
1619 | 1629 | | |
1620 | 1630 | | |
1621 | 1631 | | |
1622 | 1632 | | |
1623 | 1633 | | |
1624 | 1634 | | |
1625 | 1635 | | |
1626 | | - | |
1627 | | - | |
| 1636 | + | |
| 1637 | + | |
1628 | 1638 | | |
1629 | | - | |
1630 | | - | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1631 | 1655 | | |
1632 | 1656 | | |
1633 | 1657 | | |
| |||
0 commit comments