Skip to content

Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds#6851

Merged
njhollinghurst merged 2 commits intoraspberrypi:rpi-6.12.yfrom
pelwell:pr6826
May 13, 2025
Merged

Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds#6851
njhollinghurst merged 2 commits intoraspberrypi:rpi-6.12.yfrom
pelwell:pr6826

Conversation

@pelwell
Copy link
Copy Markdown
Contributor

@pelwell pelwell commented May 13, 2025

If CONFIG_RP1_DPI_PIO is enabled but not CONFIG_RP1_PIO, the fallback version of rp1dpi_pio_start is used. This was not updated in #6826 when the force_csync parameter was added to the prototype.

Add the extra parameter, and take the opportunity to correct the commit name.

pelwell and others added 2 commits May 13, 2025 16:10
This reverts commit 95ac2a0.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Move RP1 DPI's PIO-assisted Composite Sync generation code,
previously released as a separate utility, into the kernel driver.
There are 3 variants for progressive, generic interlaced and TV-
style interlaced CSync, alongside the existing VSync fixup.

Check that all of GPIOs 1-3 are mapped to DPI, so PIO won't try
to snoop on a missing output, or override another device's pins.

Add "force_csync" module parameter, for convenience of testing,
as few tools can set DRM_MODE_FLAG_CSYNC.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Copy link
Copy Markdown
Contributor

@njhollinghurst njhollinghurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. The flag was a later addition and I forgot to test this configuration.

@njhollinghurst njhollinghurst merged commit 4bc65d7 into raspberrypi:rpi-6.12.y May 13, 2025
12 checks passed
@pelwell
Copy link
Copy Markdown
Contributor Author

pelwell commented May 13, 2025

Are you happy with my addition of the force_csync flag to the conditional?

@pelwell
Copy link
Copy Markdown
Contributor Author

pelwell commented May 13, 2025

I'll take that as a yes.

@njhollinghurst
Copy link
Copy Markdown
Contributor

Yes. The return value is ignored (and DPI still kinda words) but the warning may be useful for debug.

popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 14, 2025
kernel: arm64: dts: bcm2712-rpi: Add uart0_dma parameter
See: raspberrypi/linux#6838

kernel: configs: Enable SENSORS_POWERZ
See: raspberrypi/linux#6845

kernel: wifi: brcmfmac: Include modinfo for 43456 CLM blob
See: raspberrypi/linux#6843

kernel: nvme-pci: Re-enable NVME Host Memory Block (HMB) support
See: raspberrypi/linux#6844

kernel: pisound-micro: Added pin_pull and pin_b_pull sysfs attributes for Pisound Micro
See: raspberrypi/linux#6848

kernel: drm/rp1/rp1_dpi: Move Composite Sync generation into the kernel
See: raspberrypi/linux#6826

kernel: Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds
See: raspberrypi/linux#6851
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 14, 2025
kernel: arm64: dts: bcm2712-rpi: Add uart0_dma parameter
See: raspberrypi/linux#6838

kernel: configs: Enable SENSORS_POWERZ
See: raspberrypi/linux#6845

kernel: wifi: brcmfmac: Include modinfo for 43456 CLM blob
See: raspberrypi/linux#6843

kernel: nvme-pci: Re-enable NVME Host Memory Block (HMB) support
See: raspberrypi/linux#6844

kernel: pisound-micro: Added pin_pull and pin_b_pull sysfs attributes for Pisound Micro
See: raspberrypi/linux#6848

kernel: drm/rp1/rp1_dpi: Move Composite Sync generation into the kernel
See: raspberrypi/linux#6826

kernel: Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds
See: raspberrypi/linux#6851
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.

2 participants