Skip to content

drm/vc4: hdmi: Fix clock value used for validating hdmi modes#4826

Merged
pelwell merged 1 commit intoraspberrypi:rpi-5.10.yfrom
popcornmix:fixclockvalid
Jan 13, 2022
Merged

drm/vc4: hdmi: Fix clock value used for validating hdmi modes#4826
pelwell merged 1 commit intoraspberrypi:rpi-5.10.yfrom
popcornmix:fixclockvalid

Conversation

@popcornmix
Copy link
Copy Markdown
Collaborator

We are using mode->crt_clock here which is filled by drm_mode_set_crtcinfo()
which is called right after .mode_valid.

Use mode->clock which is valid here.

Fixes: 624d93a ("drm/vc4: hdmi: Move clock calculation into its own function")

Signed-off-by: Dom Cobley popcornmix@gmail.com

We are using mode->crt_clock here which is filled by drm_mode_set_crtcinfo()
which is called right after .mode_valid.

Use mode->clock which is valid here.

Fixes: 624d93a ("drm/vc4: hdmi: Move clock calculation into its own function")

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
@popcornmix
Copy link
Copy Markdown
Collaborator Author

This is similar to bug reported here: #4754 (review)

@mripard can you check this.

This is the cause of the regression in bullseye with latest kernel where 2560x1440 gives "flip done timed out".

@mripard
Copy link
Copy Markdown
Contributor

mripard commented Jan 13, 2022

Yep, it looks good to me

@pelwell pelwell merged commit cd1b7be into raspberrypi:rpi-5.10.y Jan 13, 2022
@popcornmix popcornmix deleted the fixclockvalid branch January 13, 2022 16:31
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 13, 2022
kernel: arm: Fix custom rpi __memset32 and __memset64
See: raspberrypi/linux#4820

kernel: drm/vc4: Disable Gamma control on HVS5 due to issues writing the table
See: raspberrypi/linux#4825

kernel: drm/vc4: hdmi: Fix clock value used for validating hdmi modes
See: raspberrypi/linux#4826

kernel: overlays: Add vl805 overlay
See: https://forums.raspberrypi.com/viewtopic.php?t=326088

kernel: configs: add CONFIG_LEDS_TRIGGER_PATTERN=m
See: raspberrypi/linux#4789

kernel: Add overlay for Azoteq IQS550
See: raspberrypi/linux#4813

kernel: dtoverlays: Add backlight-gpio parameter to vc4-kms-dpi-generic
See: raspberrypi/linux#4815

kernel: bcm2835-v4l2-isp: Add missing lock initialization
See: raspberrypi/linux#4800

kernel: media: i2c: ov9281: Increase diff between VTS and max exposure
See: raspberrypi/linux#4807
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 13, 2022
kernel: arm: Fix custom rpi __memset32 and __memset64
See: raspberrypi/linux#4820

kernel: drm/vc4: Disable Gamma control on HVS5 due to issues writing the table
See: raspberrypi/linux#4825

kernel: drm/vc4: hdmi: Fix clock value used for validating hdmi modes
See: raspberrypi/linux#4826

kernel: overlays: Add vl805 overlay
See: https://forums.raspberrypi.com/viewtopic.php?t=326088

kernel: configs: add CONFIG_LEDS_TRIGGER_PATTERN=m
See: raspberrypi/linux#4789

kernel: Add overlay for Azoteq IQS550
See: raspberrypi/linux#4813

kernel: dtoverlays: Add backlight-gpio parameter to vc4-kms-dpi-generic
See: raspberrypi/linux#4815

kernel: bcm2835-v4l2-isp: Add missing lock initialization
See: raspberrypi/linux#4800

kernel: media: i2c: ov9281: Increase diff between VTS and max exposure
See: raspberrypi/linux#4807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants