Need to set VC clock to 250 Mhz in the bcm2835-unicam driver

Open
#3,586 2 comments 0 reactions 1 assignee View on GitHub

@naushir is already working on this.

Since Apr 29, 2020.

Assessment

This issue has not been assessed yet.

Description

Describe the bug
If the VC core clock drops below 250 MHz, Unicam may underrun and produce corrupt images. This is handled correctly in the FW driver, but not in the kernel driver.

To reproduce
Run a camera usecase that uses the kernel Unicam driver. However, this is very intermittent, and seems to be board dependent.

Expected behaviour
No corrupt images should be produced.

Actual behaviour
Corrupt images are produced.

  • Which model of Raspberry Pi? e.g. Pi3B+, PiZeroW
    Found happening on a small number of Pi4 boards.

Additional context
Current workaround is to add core_freq_min=250 in /boot/config.txt

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.