Update the PHY timeouts
Subsystems (3)
v3 cover Update the PHY timeouts
The timeouts mentioned in the spec is the recommendation from the PHY and doesnt include the turnaround time of SoC and the OS. So ensure that sufficient overhead is added for SoC and OS along with the PHY recommended timeouts.
---
Changes in v3:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Arun R Murthy (2):
drm/i915/cx0_phy_regs: Include SoC and OS turnaround time drm/i915/lt_phy_regs: Add SoC/OS turnaround time
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h | 4 ++-- drivers/gpu/drm/i915/display/intel_lt_phy_regs.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
---
base-commit: b4bfe7d753afaf6ea4950111a309a4e2ef5aef68
change-id: 20260212-timeout-06cb232f71af
Best regards,
Signature · 1 line
Arun R Murthy <[email protected]>
PATCH v3 1/2 drm/i915/cx0_phy_regs: Include SoC and OS turnaround time
The port refclk enable timeout and the soc ready timeout value mentioned in the spec is the PHY timings and doesn't include the turnaround time from the SoC or OS. So add an overhead timeout value on top of the recommended timeouts from the PHY spec.
The overhead value is based on the stress test results with multiple available panels.
--- drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +2 -2
@@ -78,10 +78,10 @@#define XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US 3200#define XELPDP_PCLK_PLL_DISABLE_TIMEOUT_US 20#define XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US 100 -#define XELPDP_PORT_RESET_START_TIMEOUT_US 5 +#define XELPDP_PORT_RESET_START_TIMEOUT_US 10#define XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_MS 2#define XELPDP_PORT_RESET_END_TIMEOUT_MS 15 -#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 1 +#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 10#define _XELPDP_PORT_BUF_CTL1_LN0_A 0x64004#define _XELPDP_PORT_BUF_CTL1_LN0_B 0x64104
Signature · 1 line
2.25.1
Jani Nikula
maintainerRe: [PATCH v3 1/2] drm/i915/cx0_phy_regs: Include SoC and OS turnaround time
Quoted 20 lines · Arun R Murthy
The port refclk enable timeout and the soc ready timeout value mentioned in the spec is the PHY timings and doesn't include the turnaround time from the SoC or OS. So add an overhead timeout value on top of the recommended timeouts from the PHY spec.
The overhead value is based on the stress test results with multiple available panels.Reported-by Cole Leavitt <[email protected]>Signed-off-by Arun R Murthy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +0
-0
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h line 84
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +2
-2@@ -78,10 +78,10 @@#define XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US 3200#define XELPDP_PCLK_PLL_DISABLE_TIMEOUT_US 20#define XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US 100 -#define XELPDP_PORT_RESET_START_TIMEOUT_US 5 +#define XELPDP_PORT_RESET_START_TIMEOUT_US 10#define XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_MS 2#define XELPDP_PORT_RESET_END_TIMEOUT_MS 15 -#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 1 +#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 10
Side note, *none* of these belong in intel_cx0_phy_regs.h. They should be moved to intel_cx0_phy.c instead.
The timeouts do not describe the register contents.
BR,
Jani.
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +0
-0#define _XELPDP_PORT_BUF_CTL1_LN0_A 0x64004#define _XELPDP_PORT_BUF_CTL1_LN0_B 0x64104
Signature · 1 line
Jani Nikula, Intel
RE: [PATCH v3 1/2] drm/i915/cx0_phy_regs: Include SoC and OS turnaround time
Quoted 36 lines
Subject: Re: [PATCH v3 1/2] drm/i915/cx0_phy_regs: Include SoC and OS turnaround time
Quoted 17 lines · Arun R Murthy
The port refclk enable timeout and the soc ready timeout value mentioned in the spec is the PHY timings and doesn't include the turnaround time from the SoC or OS. So add an overhead timeout value on top of the recommended timeouts from the PHY spec.
The overhead value is based on the stress test results with multiple available panels.Reported-by Cole Leavitt <[email protected]>Signed-off-by Arun R Murthy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +0
-0Quoted 2 lines
index
658890f7351530e5686c23e067deb359b3283d59..152a4e751bdcf216a95714a2bd2ddrivers/gpu/drm/i915/display/intel_cx0_phy_regs.h line 82
Quoted 10 lines
6612cbbd4698100644drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +1
-1@@ -78,10 +78,10 @@#define XELPDP_PCLK_PLL_ENABLE_TIMEOUT_US 3200#define XELPDP_PCLK_PLL_DISABLE_TIMEOUT_US 20#define XELPDP_PORT_BUF_SOC_READY_TIMEOUT_US 100 -#define XELPDP_PORT_RESET_START_TIMEOUT_US 5 +#define XELPDP_PORT_RESET_START_TIMEOUT_US 10#define XELPDP_PORT_POWERDOWN_UPDATE_TIMEOUT_MS 2
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h line 84
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +1
-1#define XELPDP_PORT_RESET_END_TIMEOUT_MS 15 -#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 1 +#define XELPDP_REFCLK_ENABLE_TIMEOUT_US 10Side note, *none* of these belong in
intel_cx0_phy_regs.h. They should be moved tointel_cx0_phy.cinstead.The timeouts do not describe the register contents.
Hi ,
Jani you are right these need to be moved into intel_cx0_phy.c and the same for the next patch thanks for pointing that out. Ill work on a new series and send that out along with some other things that may need to be moved.
Currently merging this to close the gitlab issue and have this fix land in din
Regards,
Suraj Kandpal
Quoted 10 lines
BR,
Jani.drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h line 87
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_cx0_phy_regs.h +0
-0#define _XELPDP_PORT_BUF_CTL1_LN0_A 0x64004#define _XELPDP_PORT_BUF_CTL1_LN0_B 0x64104--
Jani Nikula, Intel
PATCH v3 2/2 drm/i915/lt_phy_regs: Add SoC/OS turnaround time
In reply to Arun R MurthyOn top the timeouts mentioned in the spec which includes only the PHY timeouts include the SoC and the OS turnaround time.
The overhead value is based on the stress test results with multiple available panels.
--- drivers/gpu/drm/i915/display/intel_lt_phy_regs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_lt_phy_regs.h +4 -4
@@ -6,12 +6,12 @@#ifndef __INTEL_LT_PHY_REGS_H__#define __INTEL_LT_PHY_REGS_H__ -#define XE3PLPD_MSGBUS_TIMEOUT_FAST_US 500 +#define XE3PLPD_MSGBUS_TIMEOUT_FAST_US 500#define XE3PLPD_MACCLK_TURNON_LATENCY_MS 2 -#define XE3PLPD_MACCLK_TURNOFF_LATENCY_US 1 +#define XE3PLPD_MACCLK_TURNOFF_LATENCY_US 10#define XE3PLPD_RATE_CALIB_DONE_LATENCY_MS 1 -#define XE3PLPD_RESET_START_LATENCY_US 10 -#define XE3PLPD_PWRDN_TO_RDY_LATENCY_US 4 +#define XE3PLPD_RESET_START_LATENCY_US 10 +#define XE3PLPD_PWRDN_TO_RDY_LATENCY_US 10#define XE3PLPD_RESET_END_LATENCY_MS 2/* LT Phy MAC Register */
Signature · 1 line
2.25.1
Jani Nikula
maintainerRe: [PATCH v3 2/2] drm/i915/lt_phy_regs: Add SoC/OS turnaround time
Quoted 20 lines · Arun R Murthy
On top the timeouts mentioned in the spec which includes only the PHY timeouts include the SoC and the OS turnaround time.
The overhead value is based on the stress test results with multiple available panels.Signed-off-by Arun R Murthy <[email protected]>Reviewed-by Suraj Kandpal <[email protected]>--- drivers/gpu/drm/i915/display/intel_lt_phy_regs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_lt_phy_regs.h +0
-1@@ -6,12 +6,12 @@#ifndef __INTEL_LT_PHY_REGS_H__#define __INTEL_LT_PHY_REGS_H__ -#define XE3PLPD_MSGBUS_TIMEOUT_FAST_US 500
drivers/gpu/drm/i915/display/intel_lt_phy_regs.h line 15
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_lt_phy_regs.h +4
-3+#define XE3PLPD_MSGBUS_TIMEOUT_FAST_US 500#define XE3PLPD_MACCLK_TURNON_LATENCY_MS 2 -#define XE3PLPD_MACCLK_TURNOFF_LATENCY_US 1 +#define XE3PLPD_MACCLK_TURNOFF_LATENCY_US 10#define XE3PLPD_RATE_CALIB_DONE_LATENCY_MS 1 -#define XE3PLPD_RESET_START_LATENCY_US 10 -#define XE3PLPD_PWRDN_TO_RDY_LATENCY_US 4 +#define XE3PLPD_RESET_START_LATENCY_US 10 +#define XE3PLPD_PWRDN_TO_RDY_LATENCY_US 10#define XE3PLPD_RESET_END_LATENCY_MS 2
Side note, *none* of these belong in intel_lt_phy_regs.h. They should be moved to intel_lt_phy.c instead.
The timeouts do not describe the register contents.
BR,
Jani.
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_lt_phy_regs.h +0
-0/* LT Phy MAC Register */
Signature · 1 line
Jani Nikula, Intel
Patchwork
CI✓ i915.CI.BAT: success for Update the PHY timeouts (rev3)
In reply to Arun R Murthy== Series Details ==
== Series Details ==
Series: Update the PHY timeouts (rev3)
URL : https://patchwork.freedesktop.org/series/161527/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_17992 -> Patchwork_161527v3
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_161527v3/index.html
Participating hosts (43 -> 41)
------------------------------
Missing (2): bat-dg2-13 fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_161527v3 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- bat-adlp-6: [PASS][1] -> [DMESG-WARN][2] ([i915#15673]) +78 other tests dmesg-warn
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17992/bat-adlp-6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_161527v3/bat-adlp-6/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-arls-6: [PASS][3] -> [DMESG-FAIL][4] ([i915#12061]) +1 other test dmesg-fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_17992/bat-arls-6/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_161527v3/bat-arls-6/igt@i915_selftest@[email protected]
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#15673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15673
Build changes
-------------
* Linux: CI_DRM_17992 -> Patchwork_161527v3
CI-20190529: 20190529
CI_DRM_17992: eac0d1b8d00bd336f2db6f0a45f6c35cdac374bc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8753: 8753
Patchwork_161527v3: eac0d1b8d00bd336f2db6f0a45f6c35cdac374bc @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_161527v3/index.html