-
Notifications
You must be signed in to change notification settings - Fork 5.1k
WIP: HDMI HPD debounce #5386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rpi-6.1.y
Are you sure you want to change the base?
WIP: HDMI HPD debounce #5386
Conversation
With some cables it has been observed that the hot plug detect line can bounce up and down, causing a storm of HPD events to userspace. Delay the message for hotplug assert so that userspace doesn't get stressed. Do not delay hotplug deassert as we must ensure that HPD going low for 100ms is reported for times such as an A/V receiver being turned on and needing to force an EDID reread. The HDMI spec says this pulse is a minimum of 100ms. Signed-off-by: Dave Stevenson <[email protected]>
@spl237 Once the CI workflows have done their thing, you should be able to do |
drm_connector_helper_hpd_irq_event(connector); | ||
} | ||
|
||
#define HPD_DEBOUNCE_DELAY_MS 2500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please dont put defines here instead place it near the top of the file
- #define HPD_DEBOUNCE_DELAY_MS 2500
You can put it near line 121
#define HSM_MIN_CLOCK_FREQ 120000000
#define CEC_CLOCK_FREQ 40000
#define HDMI_14_MAX_TMDS_CLK (340 * 1000 * 1000)
+ #define HPD_DEBOUNCE_DELAY_MS 2500
/* bit field to force hotplug detection. bit0 = HDMI0 */
static int force_hotplug = 0;
module_param(force_hotplug, int, 0644);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who are you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm only suggesting changes.
Debounce the HPD signal for those people with dodgy cables.
WIP as the second patch pushes the delay up to 2.5secs. 250ms should be sufficient in most cases and not cause a noticeable delay.