- 03 3月, 2021 40 次提交
-
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- vchiq kernel clients are now instantiated as platform drivers rather than using DT, but the children of the vchiq interface may still benefit from access to DT properties. Give them the option of a a sub-node of the vchiq parent for configuration and to allow them to be disabled. Signed-off-by: NPhil Elwell <phil@raspberrypi.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Luke Hinds 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The IMA (Integrity Measurement Architecture) looks for a TPM (Trusted Platform Module) having been registered when it initialises; otherwise it assumes there is no TPM. It has been observed on BCM2835 that IMA is initialised before TPM, and that initialising the BCM2835 clock driver before the firmware driver has the effect of reversing this order. Change the firmware driver to initialise at core_initcall, delaying the BCM2835 clock driver to postcore_initcall. See: https://github.com/raspberrypi/linux/issues/3291 https://github.com/raspberrypi/linux/pull/3297Signed-off-by: NLuke Hinds <lhinds@redhat.com> Co-authored-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Stefan Wahren 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Make the BCM2711 a different machine, but keep it in board_bcm2835. Signed-off-by: NStefan Wahren <wahrenst@gmx.net> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- vchiq on Pi4 is no longer under the soc node, therefore it doesn't get the dma-ranges for the VPU. Switch to using the configuration of the old dma controller as that will set the dma-ranges correctly. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The VCHIQ driver now loads the audio, camera, codec, and vc-sm drivers as platform drivers. However they were not being given the correct DMA configuration. Call of_dma_configure with the parent (VCHIQ) parameters to be inherited by the child. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Both coherent_dma_mask and dma_mask act as constraints on allocations and bounce buffer usage, so be sure to set dma_mask to the appropriate value otherwise the effective mask could be incorrect. Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 popcornmix 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- This is controlled by firmware, see clk-raspberrypi.c Signed-off-by: Npopcornmix <popcornmix@gmail.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 popcornmix 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- For performance/power it is beneficial to adjust gpu clocks with arm clock. This is how the downstream cpufreq driver works Signed-off-by: Npopcornmix <popcornmix@gmail.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 popcornmix 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Setting the v3d clock to low value allows firmware to handle dvfs in case where v3d hardware is not being actively used (e.g. console use). Signed-off-by: Npopcornmix <popcornmix@gmail.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 popcornmix 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Signed-off-by: Npopcornmix <popcornmix@gmail.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 James Hughes 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- This should return default behaviour back to that of previous releases. Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 James Hughes 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Add device tree entries and code to allow the specification of the lighting modes for the LED's on the ethernet connector. Signed-off-by: NJames Hughes <james.hughes@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- As of 5.4, the kernel logs errors for absent IRQs unless requested with platform_get_irq_optional. Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Following the same pattern as bcm2835-camera and bcm2835-audio, register the V4L2 codec driver as a platform driver Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Following the same pattern as bcm2835-camera and bcm2835-audio, register the vcsm-cma driver as a platform driver Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The irq_fence and done_fence are given a reference that is never released. The necessary dma_fence_put()s seem to have been deleted in error in an earlier commit. Fixes: 0b73676836b2 ("drm/v3d: Clock V3D down when not in use.") Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> -
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The v3d driver currently encounters a lot of MMU PTE exceptions, so only log the first to avoid swamping the kernel log. Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- MMU exception conditions are reported in the V3D_MMU_CTRL register as write-1-to-clear (W1C) bits. The MMU interrupt handling code clears any exceptions, but does so by masking out any other bits and writing the result back. There are some important control bits in that register, including MMU_ENABLE, so a safer approach is to simply write back the value just read unaltered. This patch doesn't remove the cause of the apparent PTE errors, but it does reduce the impact to just an error in the kernel log. Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Markus Proeller 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The Infineon IRS1125 is a time of flight depth sensor that has a CSI-2 interface. Add a V4L2 subdevice driver for this device. Signed-off-by: NMarkus Proeller <markus.proeller@pieye.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Markus Proeller 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Adds a binding for the Infineon IRS1125 time-of-flight depth sensor. Signed-off-by: NMarkus Proeller <markus.proeller@pieye.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 James Hughes 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- HDMI Alsa devices renamed to match names used by DRM, to HDMI 1 and HDMI 2 Check for which HDMI devices are connected and only create devices for those that are present. The rename of the devices might cause some backwards compatibility issues, but since this particular part of the driver needs to be specifically enabled, I suspect the number of people who will see the problem will be very small. Signed-off-by: NJames Hughes <james.hughes@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Stefan Wahren 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- After the decision to use bcm2711 compatible for upstream, we should switch all accepted compatibles to bcm2711. So we can boot with one DTB the down- and the upstream kernel. Signed-off-by: NStefan Wahren <wahrenst@gmx.net> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Before 4.20, it was possible to build an arbitrary overlay by copying it to arm/boot/dts/overlays/mytest-overlay.dts and running: make ARCH=arm overlays/mytest.dtbo In 4.20 the .dtb build rules were centralised, requiring the dowstream .dtbo build rules to be changed. They were, enough to support "make ... dtbs", but not sufficiently to allow this ad-hoc, one-off building of individual files. Add the missing makefile rule to support this way of building. See: https://github.com/raspberrypi/linux/issues/3250Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> -
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The pm_runtime was blocking changelist submission, so delete it as a temporary workaround. Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- This is mainly used for the NoIR camera which has no IR filter and can completely confuse normal AWB presets. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Adds a simple greyworld white balance preset, mainly for use with cameras without an IR filter (eg Raspberry Pi NoIR) Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Dave Stevenson 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The IMX219 is an 8MPix CSI2 sensor, supporting 2 or 4 data lanes. Document the binding for this device. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Enable the V3D driver, which depends on BCM2835_POWER. Originally submitted by GitHub user 'phire' in a slightly different form. See: https://github.com/raspberrypi/linux/pull/3063Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Jonathan Bell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Users have reported log spam created by "Event Ring Full" xHC event TRBs. These are caused by interrupt latency in conjunction with a very busy set of devices on the bus. The errors are benign, but throughput will suffer as the xHC will pause processing of transfers until the event ring is drained by the kernel. Expand the number of event TRB slots available by increasing the number of event ring segments in the ERST. Controllers have a hardware-defined limit as to the number of ERST entries they can process, so make the actual number in use min(ERST_MAX_SEGS, hw_max). Signed-off-by: NJonathan Bell <jonathan@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Some combinations of Pi 4Bs and Ethernet switches don't reliably get a DCHP-assigned IP address, leaving the unit with a self=assigned 169.254 address. In the failure case, the Pi is left able to receive packets but not send them, suggesting that the MAC<->PHY link is getting into a bad state. It has been found empirically that skipping a reset step by the genet driver prevents the failures. No downsides have been discovered yet, and unlike the forced renegotiation it doesn't increase the time to get an IP address, so the workaround is enabled by default; add genet.skip_umac_reset=n to the command line to disable it. See: https://github.com/raspberrypi/linux/issues/3108Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 James Hughes 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- For generic ALSA, all you need is the bcm2835.h change, but have also added structures for IEC958 HDMI. Not sure how to test those. Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Jonathan Bell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- These wireless mouse/keyboard combo remote control devices specify multiple "wheel" events in their report descriptors. The wheel events are incorrectly defined and apparently map to accelerometer data, leading to spurious mouse scroll events being generated at an extreme rate when the device is moved. As a workaround, use HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE to mask feeding the extra wheel events to the input subsystem. See: https://github.com/raspberrypi/firmware/issues/1189Signed-off-by: NJonathan Bell <jonathan@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Jonathan Bell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Based on the gpiomem driver, allow mapping of the decoder register spaces such that userspace can access control/status registers. This driver is intended for use with a custom ffmpeg backend accelerator prior to a v4l2 driver being written. Signed-off-by: NJonathan Bell <jonathan@raspberrypi.org> driver: char: rpivid: Destroy the legacy device on remove The legacy name support created a new device that was never destroyed. If the driver was unloaded and reloaded, it failed due to the device already existing. Fixes: "75f1d14 driver: char: rpivid - also support legacy name" Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> driver: char: rpivid: Clean up error handling use of ERR_PTR/IS_ERR The driver used an unnecessary intermediate void* variable so it only called ERR_PTR once to convert to the error value. Switch to converting as the error arises to remove these intermediate variables. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> driver: char: rpivid: Add error handling to the legacy device load The return value from device_create for the legacy device was never checked or handled. Add the required error handling. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> driver: char: rpivid: Fix coding style whitespace issues. Makes checkpatch happier. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> driver: char: rpimem: Add SPDX licence header. Stops checkpatch complaining. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> driver: char: rpivid: Fix access to freed memory The error path during probe frees the private memory block, and then promptly dereferences it to log an error message. Use the base device instead of the pointer to it in the private structure. Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Eric Anholt 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- My various attempts at re-enabling runtime PM have failed, so just crank the clock down when V3D is idle to reduce power consumption. Signed-off-by: NEric Anholt <eric@anholt.net> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Eric Anholt 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Something is still unstable -- on starting a new glxgears from an idle X11, I get an MMU violation in high addresses. The CTS also failed quite quickly. With this, CTS progresses for an hour before OOMing (allocating some big buffers when my board only has 600MB available to Linux) Signed-off-by: NEric Anholt <eric@anholt.net> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 popcornmix 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- clk_desc_array[BCM2835_PLLB] doesn't exist so we dereference null when iterating Signed-off-by: Npopcornmix <popcornmix@gmail.com> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Phil Elwell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- The BCM2835 I2C blocks have a register to set the clock-stretch timeout - how long the device is allowed to hold SCL low - in bus cycles. The current driver doesn't write to the register, therefore the default value of 64 cycles is being used for all devices. Set the timeout to the value recommended for SMBus - 35ms. See: https://github.com/raspberrypi/linux/issues/3064Signed-off-by: NPhil Elwell <phil@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-
由 Jonathan Bell 提交于
raspberrypi inclusion category: feature bugzilla: 50432 -------------------------------- Seen on a VLI VL805 PCIe to USB controller. For non-stream endpoints at least, if the xHC halts on a particular TRB due to an error then the DCS field in the Out Endpoint Context maintained by the hardware is not updated with the current cycle state. Using the quirk XHCI_EP_CTX_BROKEN_DCS and instead fetch the DCS bit from the TRB that the xHC stopped on. See: https://github.com/raspberrypi/linux/issues/3060Signed-off-by: NJonathan Bell <jonathan@raspberrypi.org> Signed-off-by: NFang Yafen <yafen@iscas.ac.cn> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
-