32ba05a | Hui Wang | 01 December 2019, 06:47:39 UTC | bcm2708_fb: Disable warning when calling dma_alloc_coherent When we boot the kernel on the rpi4/3/2, we sometimes could see the warning calltrace like below: bcm2708_fb soc:fb: FB found 1 display(s) cma: cma_alloc: alloc failed, req-size: 1753 pages, ret: -12 WARNING: CPU: 2 PID: 1 at mm/page_alloc.c:4702 __alloc_pages_nodemask+0x284/0x2c8 Modules linked in: CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.3.0-1013-raspi2 #15-Ubuntu Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT) pstate: 20400005 (nzCv daif +PAN -UAO) pc : __alloc_pages_nodemask+0x284/0x2c8 lr : __dma_direct_alloc_pages+0x100/0x1e8 sp : ffff0000100238a0 x29: ffff0000100238a0 x28: 0000000000000000 x27: ffffa7c578867580 x26: ffffa7c57786a080 ... After investigation, I found there are two situations which could introduce this calltrace. 1) booting the arm64 kernel on rpi4 boards without the monitor connected, in this situation, the xres and yres euqal to 0, so the dma_alloc_coherent wants to alloc a memory region with 0 size, this will result the get_order() returns (BITS_PER_LONG - PAGE_SHIFT), then it will introduce the calltrace because unlikely(order >= MAX_ORDER) is true (mm/page_alloc.c) 2) booting the kernel on rpi2/3 boards with a high resolution monitor connected, in this case the xres * yres is too big, the cma_alloc doens't have enough memory for it, and finally it will also introduce the calltrace by unlikely(order >= MAX_ORDER) is true. The bcm2708_fb could handle the situation of failure on calling dma_alloc_coherent, and the driver itself will print some log to notify users that this alloc fails. So we don't need the mm/page_alloc to print that calltrace anymore, printing a calltrace when booting usually makes users think the kernel has a critical problem. Signed-off-by: Hui Wang <hui.wang@canonical.com> | 06 January 2020, 12:42:25 UTC |
0c5b57f | Hui Wang | 17 November 2019, 02:31:46 UTC | dwc_otg: checking the urb->transfer_buffer too early (#3332) After enable the HIGHMEM and VMSPLIT_3G, the dwc_otg driver doesn't work well on Pi2/3 boards with 1G physical ram. Users experience the failure when copying a file of 600M size to the USB stick. And at the same time, the dmesg shows: usb 1-1.1.2: reset high-speed USB device number 8 using dwc_otg sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK blk_update_request: I/O error, dev sda, sector 3024048 op 0x1:(WRITE) flags 0x4000 phys_seg 15 prio class 0 When this happens, the sg_buf sent to the driver is located in the highmem region, the usb_sg_init() in the core/message.c will leave transfer_buffer to NULL if the sg_buf is in highmem, but in the dwc_otg driver, it returns -EINVAL unconditionally if transfer_buffer is NULL. The driver can handle the situation of buffer to be NULL, if it is in DMA mode, it will convert an address from transfer_dma. But if the conversion fails or it is in the PIO mode, we should check buffer and return -EINVAL if it is NULL. BugLink: https://bugs.launchpad.net/bugs/1852510 Signed-off-by: Hui Wang <hui.wang@canonical.com> | 06 January 2020, 12:42:24 UTC |
a2ddc7b | popcornmix | 13 September 2019, 12:45:11 UTC | raspberrypi-cpufreq: Only report integer pll divisor frequencies | 06 January 2020, 12:42:24 UTC |
2242678 | popcornmix | 20 August 2019, 16:53:47 UTC | config: Switch to upstream cpufreq driver Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
c07af3b | popcornmix | 03 September 2019, 19:28:00 UTC | clk-bcm2835: Disable v3d clock This is controlled by firmware, see clk-raspberrypi.c Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
3954eed | popcornmix | 21 August 2019, 13:55:56 UTC | clk-raspberrypi: Also support v3d clock Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
4ad0d79 | popcornmix | 09 September 2019, 14:49:56 UTC | clk-raspberrypi: Allow cpufreq driver to also adjust gpu clocks For performance/power it is beneficial to adjust gpu clocks with arm clock. This is how the downstream cpufreq driver works Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
78433bc | popcornmix | 05 September 2019, 16:59:14 UTC | v3d_gem: Kick the clock so firmware knows we are using firmware clock interface 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: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
00e8e89 | popcornmix | 09 September 2019, 22:50:44 UTC | v3d_drv: Allow clock retrieval by name Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:24 UTC |
75d3da5 | popcornmix | 23 August 2019, 15:34:38 UTC | v3d_drv: Handle missing clock more gracefully Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:24 UTC |
b64eeb5 | Phil Elwell | 11 November 2019, 14:01:41 UTC | drm/v3d: Don't clear MMU control bits on exception 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: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:24 UTC |
bb433a2 | Phil Elwell | 28 October 2019, 20:51:29 UTC | configs: Add CGROUP_BPF and BPF_SYSCALL Enabling CONFIG_CGROUP_BPF allows BPF filters to access cgroup-local storage, which is useful for control network interactions at the cgroup level. CONFIG_BPF_SYSCALL is required to make use of it. See: https://github.com/raspberrypi/linux/issues/3294 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:24 UTC |
5255c78 | James Hughes | 16 October 2019, 13:49:23 UTC | drm:vc4 Added calls for firmware display blank/unblank Requires new display power mailbox call to be present. Signed-off-by: James Hughes <james.hughes@raspberrypi.org> | 06 January 2020, 12:42:24 UTC |
0ff4d7e | Dave Stevenson | 07 October 2019, 13:02:57 UTC | staging: bcm2835-codec: Fix imbalance in dma_buf_get/dma_buf_put When represented with a dmabuf buffer that had previously been imported, there was a call to dma_buf_get without a matching dma_buf_put. This left dmabufs in limbo after all users had supposedly released them. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:24 UTC |
d5c742b | Dave Stevenson | 13 September 2019, 16:23:26 UTC | staging: bcm2835-codec: Set default and error check timeperframe G_PARM default was invalid as 0/0, and the driver didn't check the value set in S_PARM wasn't 0/0. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
e6cbd05 | Dave Stevenson | 13 September 2019, 16:22:08 UTC | staging: bcm2835-codec: Correct buffer type check on G_PARM The output queue buffer type is now OUTPUT_MPLANE. Fixes: 5e484a3 staging: bcm2835-codec: switch to multi-planar API Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
e3fea68 | Dave Stevenson | 13 September 2019, 16:19:33 UTC | staging:bcm2835-codec: Add support for ENUM_FRAMESIZES Required for compliance testing for the encoder. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
b720557 | Phil Elwell | 24 October 2019, 13:31:00 UTC | dts: bcm2838: Disable DWC OTG block by default Turning off the OTG USB block saves power. Since it requires the use of the dwc2 overlay to make use of it, we can disable it by default. Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
0c06809 | Phil Elwell | 22 October 2019, 07:47:29 UTC | rpi-wm8804-soundcard: Fixed MCLKDIV for Allo Digione The Allo Digione board wants a fixed MCLKDIV of 256. See: https://github.com/raspberrypi/linux/issues/3296 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
d732232 | Markus Proeller | 10 October 2019, 17:13:02 UTC | dtoverlays: Add an overlay for the Infineon IRS1125 The Infineon IRS1125 is a CSI2 time of flight depth sensor which has a suitable V4L2 subdevice driver. Add an overlay for configuring it. Signed-off-by: Markus Proeller <markus.proeller@pieye.org> | 06 January 2020, 12:42:23 UTC |
213a5ed | Markus Proeller | 10 October 2019, 17:12:51 UTC | configs: Add CONFIG_VIDEO_IRS1125 to the defconfigs Adds the Infineon IRS1125 driver module to the downstream defconfigs. Signed-off-by: Markus Proeller <markus.proeller@pieye.org> | 06 January 2020, 12:42:23 UTC |
f6219c9 | Markus Proeller | 10 October 2019, 17:12:36 UTC | media: i2c: Add a driver for the Infineon IRS1125 depth sensor 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: Markus Proeller <markus.proeller@pieye.org> | 06 January 2020, 12:42:23 UTC |
d70fddf | Markus Proeller | 10 October 2019, 17:12:08 UTC | dt-bindings: Add binding for the Infineon IRS1125 sensor Adds a binding for the Infineon IRS1125 time-of-flight depth sensor. Signed-off-by: Markus Proeller <markus.proeller@pieye.org> | 06 January 2020, 12:42:23 UTC |
a71fd37 | Dave Stevenson | 16 October 2019, 17:53:06 UTC | media: bcm2835-unicam: Fix one-to-many mapping for YUYV formats V4L2 format V4L2_PIX_FMT_YUYV maps to both MEDIA_BUS_FMT_YUYV8_2X8 and MEDIA_BUS_FMT_YUYV8_1X16. The change to not cache the active formats also meant that we only ever found the first variant of the mediabus format when trying to setup the device. Flag the formats that have other representations, and ensure that the format conversion checks whether the found format matches one supported by the sensor before returning it. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
e047ce4 | Dave Stevenson | 17 October 2019, 09:16:16 UTC | media: bcm2835-unicam: Replace hard coded loop limit with a define In order to protect against a dodgy sensor driver never returning an error from enum_mbus_code there was a hardcoded value of 128 that aborted the loop. There is a need to call enum_mbus_code from elsewhere, so move that number to a define so it is common across calls. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
8092dbb | Phil Elwell | 09 October 2019, 16:22:07 UTC | bcm2711: Retain support for old dtbs The recent series switching to bcm2711 as the DT identifier broke Pis running with old DTBs. Add some bcm2838 compatible strings as a temporary measure, at least until the next full Raspbian image with bcm2711 DTBs. See: https://github.com/raspberrypi/linux/pull/3244 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
b1a1d68 | Phil Elwell | 10 October 2019, 08:08:47 UTC | overlays: Add w5500 overlay Add an overlay to configure the Wiznet W5500 Ethernet controller on SPI0. The 'cs' parameter chooses the Chip Select (default 0). See: https://github.com/raspberrypi/linux/issues/3276 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:23 UTC |
52e58d2 | Phil Elwell | 10 October 2019, 08:05:44 UTC | configs: Add CONFIG_WIZNET_W5100=m and _SPI=m Add config settings to enable building the driver for the W5100/5500 SPI-attached Ethernet controller. See: https://github.com/raspberrypi/linux/issues/3276 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
a5abe90 | Dave Stevenson | 18 September 2019, 14:49:13 UTC | drm/vc4: Correct handling of rotation parameter in fkms One bit within DRM_MODE_ROTATE_MASK will always be set to determine the base rotation 0/90/180/270, and then REFLECT_X and REFLECT_Y are on top. Correct the handling which was assuming that REFLECT_[X|Y] was instead of ROTATE_x. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
fbce9a9 | Dave Stevenson | 17 September 2019, 17:36:32 UTC | drm/vc4: Add support for H & V flips The HVS supports horizontal and vertical flips whilst composing. Expose these through the standard DRM rotation property. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
30f0209 | Dave Stevenson | 17 September 2019, 17:28:17 UTC | drm/vc4: Add support for YUV color encodings and ranges The BT601/BT709 color encoding and limited vs full range properties were not being exposed, defaulting always to BT601 limited range. Expose the parameters and set the registers appropriately. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
66bf84e | Dave Stevenson | 03 October 2019, 12:45:51 UTC | media: bcm2835-unicam: Add support for luma/greyscale formats Add support for V4L2_PIX_FMT_GREY, V4L2_PIX_FMT_Y10P, V4L2_PIX_FMT_Y10, and V4L2_PIX_FMT_Y12 image formats from the appropriate mediabus formats advertised by sensors. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
299a673 | Dave Stevenson | 03 October 2019, 12:35:01 UTC | media: bcm2835-unicam: Support unpacking CSI format to 16bpp The CSI packed formats are not the easiest to work with, and the peripheral supports unpacking them to 16bpp (but NOT shifting the data up into the MSBs). Where V4L2 exposes a pixfmt for both packed and unpacked formats advertise both as being supported, and unpack the data in the peripheral. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
92c9d1e | Dave Stevenson | 02 October 2019, 16:40:38 UTC | media: bcm2835-unicam: Rework to not cache the list of active fmts Some sensors will change Bayer order based on H & V flips, therefore collecting the list of formats at async_bound has problems. Enumerate the formats from the sensor every time. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
0ae33b4 | Dave Stevenson | 02 October 2019, 15:09:24 UTC | media: bcm2835-unicam: Add support for raw14 formats The V4L2 has gained defines for V4L2_PIX_FMT_Sxxxx14P, therefore add support for it to bcm2835-unicam. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
f23f8f1 | Matthias Brugger | 02 October 2019, 16:41:32 UTC | overlays: fix compatible for RPi4 RPi4 compatible is now bcm2711, but some overlays refer to the SoC as bcm2838. Fix this overlays as they otherwise won't apply. Signed-off-by: Matthias Brugger <mbrugger@suse.com> | 06 January 2020, 12:42:22 UTC |
6bb9220 | Phil Elwell | 07 October 2019, 12:51:07 UTC | overlays: gpio-shutdown: Add debounce parameter Give the gpio-shutdown overlay a debounce parameter that requires the GPIO to be held at the relevant level for a specified number of milliseconds. The default value is 100 - higher than the driver default of 5ms to avoid unfortunate glitches. See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=253680 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
4054ac6 | Floris Bos | 04 October 2019, 14:41:30 UTC | pcie-brcmstb-bounce64.c: dev_err() -> dev_info() for info messages "dmabounce: initialised" is not an error, so do not log it as such. Prevents screen polution on OS with "quiet" as kernel parameter. Closes #3266 | 06 January 2020, 12:42:22 UTC |
9752f39 | James Hughes | 24 September 2019, 17:26:55 UTC | Rename HDMI ALSA device names, check for enable state 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: James Hughes <james.hughes@raspberrypi.org> | 06 January 2020, 12:42:22 UTC |
4e3dae0 | Matteo Croce | 06 October 2019, 01:23:15 UTC | vchiq_2835_arm: suppress warning Suppress the following warning by casting the pointer to and uintptr_t before void*: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c: In function ‘vchiq_prepare_bulk_data’: drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:260:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] bulk->data = (void *)VC_SAFE(pagelistinfo->dma_addr); ^ Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:22 UTC |
e99c23d | Matteo Croce | 06 October 2019, 01:16:39 UTC | raspberrypi_axi_monitor: suppress warning Suppress the following warning by casting the pointer to and uintptr_t before to u32: Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:21 UTC |
26a0f42 | Matteo Croce | 06 October 2019, 01:07:46 UTC | bcm2835-dma: suppress warning Suppress the following warning by casting the pointer to and uintptr_t before to u32: drivers/dma/bcm2835-dma.c: In function ‘bcm2835_dma_probe’: drivers/dma/bcm2835-dma.c:1179:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] chan_start = ((u32)base / BCM2835_DMA_CHAN_SIZE) & 0xf; ^ Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:21 UTC |
f1b998b | Matteo Croce | 06 October 2019, 01:03:10 UTC | bcm2835_smi: suppress warnings The '%d' printk modifier was used twice to print a size_t variable. This generates a warning on 64 bit architectures. Use the proper '%zu' format. Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:21 UTC |
4190fc2 | Matteo Croce | 06 October 2019, 00:54:54 UTC | dwc_otg: don't leak kernel address Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), an obfuscated kernel pointer is printed at boot: dwc_otg fe980000.usb: base=(____ptrval____) Remove the the print completely, as it's useless without the address. Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:21 UTC |
cfca325 | Matteo Croce | 06 October 2019, 00:52:01 UTC | bcm2708-dmaengine: don't leak kernel address Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), an obfuscated kernel pointer is printed at every boot: bcm2835-dma fe007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1 Remove the pointer print. Signed-off-by: Matteo Croce <mcroce@redhat.com> | 06 January 2020, 12:42:21 UTC |
5f84f13 | Stefan Wahren | 21 July 2019, 14:01:36 UTC | pinctrl: bcm2835: Add support for BCM2711 pull-up functionality commit e38a9a437fb93ddafab5030165e4c6a3a5021669 upstream. The BCM2711 has a new way of selecting the pull-up/pull-down setting for a GPIO pin. The registers used for the BCM2835, GP_PUD and GP_PUDCLKn0, are no longer connected. A new set of registers, GP_GPIO_PUP_PDN_CNTRL_REGx must be used. This commit will add a new compatible string "brcm,bcm2711-gpio" and the kernel driver will use it to select which method is used to select pull-up/pull-down. This patch based on a patch by Al Cooper which was intended for the BCM7211. This is a bugfixed and improved version. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Acked-by: Eric Anholt <eric@anholt.net> | 06 January 2020, 12:42:21 UTC |
9748498 | Stefan Wahren | 24 September 2019, 19:37:17 UTC | Revert "pinctrl-bcm2835: Add support for BCM2838" This reverts commit abcfd092860760087b87acbdda0963fe7906839c, so we can apply all upstream pinctrl changes. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:21 UTC |
89482ed | Stefan Wahren | 19 September 2019, 18:45:30 UTC | ARM: bcm: Switch board, clk and pinctrl to bcm2711 compatible 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: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:21 UTC |
e68bb6b | Stefan Wahren | 20 September 2019, 05:27:03 UTC | clk: bcm2835: Add BCM2711_CLOCK_EMMC2 support commit 42de9ad400afadd41ee027b5feef234a2d2918b9 upstream. The new BCM2711 supports an additional clock for the emmc2 block. So add a new compatible and register this clock only for BCM2711. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net> | 06 January 2020, 12:42:21 UTC |
d11203f | Stefan Wahren | 19 September 2019, 18:12:15 UTC | clk: bcm2835: Introduce SoC specific clock registration commit ee0a5a9013b2b2502571a763c3093d400d18191f upstream. In order to support SoC specific clocks (e.g. emmc2 for BCM2711), we extend the description with a SoC support flag. This approach avoids long and mostly redundant lists of clock IDs. Since PLLH is specific to BCM2835, we register only rest of the clocks as common to all SoC. Suggested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net> | 06 January 2020, 12:42:21 UTC |
3aab554 | Stefan Wahren | 20 September 2019, 05:25:38 UTC | Revert "HACK: clk-bcm2835: Add BCM2838_CLOCK_EMMC2 support" This reverts commit 1ac954a8c5dd939dffd3b256be50253082297d9a to apply the much better upstream solution afterwards. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:21 UTC |
f68fe2b | Stefan Wahren | 17 September 2019, 17:31:19 UTC | ARM: dts: bcm283x: Enable HDMI at board level commit 60c833d5664e1b3f71c4471233469790adf505ca upstream. There might be headless setups of the Compute Module without HDMI, so better enable HDMI at board level. Btw this allows moving HDMI base definition into upcoming bcm2835-common.dtsi. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Eric Anholt <eric@anholt.net> | 06 January 2020, 12:42:21 UTC |
fae9962 | Stefan Wahren | 21 September 2019, 13:55:19 UTC | ARM: dts: bcm2708-rpi: Define the downstream HDMI power at one place In order to keep downstream definition of the HDMI power domain separate and independent from upstream changes, add them to bcm2708-rpi.dtsi. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:21 UTC |
0b9c4bb | Stefan Wahren | 23 September 2019, 17:41:33 UTC | ARM: dts: bcm2835-rpi-zero-w: Fix bus-width of sdhci The commit e7774049ff25 ("ARM: dts: bcm283x: Define MMC interfaces at board level") accidently dropped the bus width for the sdhci on the RPi Zero W, because the board file was relying on the defaults from bcm2835-rpi.dtsi. So fix this performance regression by adding the bus width to the board file. Fixes: e7774049ff25 ("ARM: dts: bcm283x: Define MMC interfaces at board level") Reported-by: Phil Elwell <phil@raspberrypi.org> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:20 UTC |
cf6f4f5 | Stefan Wahren | 17 September 2019, 17:16:17 UTC | ARM: dts: bcm283x: Define MMC interfaces at board level commit e7774049ff255c8ba72bcee9c7ab307a95e8d7bc upstream. Starting with RPi 4 this is the first board, which doesn't use sdhost as default SD interface. So the MMC interfaces should be defined finally at board level. Since all boards using sdhci already does this, we can drop the pinctrl part from bcm2835-rpi.dtsi. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Acked-by: Eric Anholt <eric@anholt.net> | 06 January 2020, 12:42:20 UTC |
8e58883 | Stefan Wahren | 21 September 2019, 13:29:33 UTC | ARM: dts: bcm2708-rpi: Define the downstream MMC interfaces at one place In order to keep downstream definition of the MMC interfaces separate and independent from upstream changes, add them to bcm2708-rpi.dtsi. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:20 UTC |
dbbd628 | Stefan Wahren | 23 September 2019, 18:09:12 UTC | ARM: dts: bcm27xx: Fix DTC warning for memory node Compiling the bcm27xx DTS with W=1 leads to the following warning: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name Fix this by adding the unit address. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> | 06 January 2020, 12:42:20 UTC |
1cfd949 | Michael Brown | 22 September 2019, 20:51:29 UTC | bcm2708_fb: Fix layout of struct vc4_display_settings_t The display parameters returned by the VC4 firmware in response to the RPI_FIRMWARE_FRAMEBUFFER_GET_DISPLAY_SETTINGS tag do not match the layout of struct vc4_display_settings_t: the colour depth and row pitch are erroneously swapped in the kernel definition. This can trigger a kernel warning from pixel_to_pat(), such as: pixel_to_pat(): unsupported pixelformat 7296 Fix by adjusting the layout of struct vc4_display_settings_t to match the layout as used by the VC4 firmware. Signed-off-by: Michael Brown <mbrown@fensystems.co.uk> | 06 January 2020, 12:42:20 UTC |
5146ab0 | popcornmix | 24 September 2019, 15:04:26 UTC | configs: Update bcm2711 arm64 USB options to match arm (#3254) Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:20 UTC |
a040dd5 | Phil Elwell | 24 September 2019, 08:31:38 UTC | configs: Enable CONFIG_NET_VRF=m Add the Virtual Routing and Forwarding module. See: https://github.com/raspberrypi/linux/issues/3253 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:20 UTC |
ba28ed1 | Phil Elwell | 25 September 2019, 08:49:58 UTC | dma-direct: Temporary DMA fix on arm64 See: https://github.com/raspberrypi/linux/issues/3251 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:20 UTC |
c930293 | Phil Elwell | 23 September 2019, 08:26:41 UTC | kbuild: Allow .dtbo overlays to be built piecemeal 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/3250 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:20 UTC |
56d0663 | Iago Toral Quiroga | 03 September 2019, 06:45:24 UTC | drm/v3d: clean caches at the end of render jobs on request from user space Extends the user space ioctl for CL submissions so it can include a request to flush the cache once the CL execution has completed. Fixes memory write violation messages reported by the kernel in workloads involving shader memory writes (SSBOs, shader images, scratch, etc) which sometimes also lead to GPU resets during Piglit and CTS workloads. v2: if v3d_job_init() fails we need to kfree() the job instead of v3d_job_put() it (Eric Anholt). v3 (Eric Anholt): - Drop _FLAG suffix from the new flag name. - Add a new param so userspace can tell whether cache flushing is implemented in the kernel. Signed-off-by: Iago Toral Quiroga <itoral@igalia.com> | 06 January 2020, 12:42:20 UTC |
9c7a8f4 | Phil Elwell | 18 September 2019, 08:02:10 UTC | dts: Add DTS for Pi 2B rev 1.2 with BCM2837 (#3235) Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:20 UTC |
4885650 | popcornmix | 17 September 2019, 19:23:44 UTC | configs: Update arm64/bcm2711_defconfig based on the arm version (#3239) The arm64 and arm configs had diverged in the extra modules that were being built. Resync the two for the obvious modules. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:20 UTC |
44e9be4 | Phil Elwell | 19 September 2019, 12:39:15 UTC | configs: Regenerate defconfigs Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
6973c22 | Phil Elwell | 18 September 2019, 16:22:36 UTC | drm/v3d: Delete pm_runtime support The pm_runtime was blocking changelist submission, so delete it as a temporary workaround. Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
54bec07 | Dave Stevenson | 13 September 2019, 14:11:47 UTC | staging: bcm2835-codec: Correct g/s_selection API MPLANE support The g_selection and s_selection API is messed up and requires the driver to expect the non-MPLANE buffer types, not the MPLANE ones even if they are supported. The V4L2 core will convert the MPLANE ones to non-MPLANE should they be passed in Fixes: 5e484a3 staging: bcm2835-codec: switch to multi-planar API Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
601e6db | Dave Stevenson | 06 September 2019, 16:24:55 UTC | staging: bcm2835-codec: Allow height of 1920. The codec is happy with video up to 1920 high if the width is suitably reduced to stay within level limits. eg 1080x1920 is OK to decode. Increase the height limit accordingly. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
ca7c051 | Jörg Schambacher | 12 September 2019, 12:57:32 UTC | Add Hifiberry DAC+DSP soundcard driver (#3224) Adds the driver for the Hifiberry DAC+DSP. It supports capture and playback depending on the DSP firmware. Signed-off-by: Joerg Schambacher <joerg@i2audio.com> | 06 January 2020, 12:42:19 UTC |
b6d4fd3 | James Hughes | 11 September 2019, 13:57:18 UTC | drm/vc4: Fix for margins in composite/SDTV mode (#3223) Margins were incorrectly assumed to be setup in SDTV mode, but were not actually done, so this make the setup non-conditional on mode. Signed-off-by: James Hughes <james.hughes@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
8a41556 | Phil Elwell | 13 September 2019, 08:06:43 UTC | arm/dts: Give v3dbus a 16GB DMA address range Without this change, V3D ends up using (and rapidly running out of) bounce buffers. Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
e112312 | Phil Elwell | 06 September 2019, 16:48:25 UTC | configs: Set VIDEO_V4L2_SUBDEV_API=y on arm64/bcm2711 This one got missed. Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
3539167 | Phil Elwell | 06 September 2019, 16:31:51 UTC | configs: Add GPIO_PCA953X, LEDS_PCA9532/PCA955X See: https://github.com/raspberrypi/linux/issues/3182 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
4d8a1da | Dave Stevenson | 06 September 2019, 14:13:06 UTC | staging: bcm2835-camera: Add greyworld AWB mode This is mainly used for the NoIR camera which has no IR filter and can completely confuse normal AWB presets. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
fd3a1c0 | Dave Stevenson | 06 September 2019, 14:04:51 UTC | v4l2: Add a Greyworld AWB mode. Adds a simple greyworld white balance preset, mainly for use with cameras without an IR filter (eg Raspberry Pi NoIR) Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
a1b70d3 | Dave Stevenson | 05 September 2019, 16:41:46 UTC | overlays: mcp23017: Add option for not connecting the int GPIO The interrupt GPIO is optional to the driver, therefore add an option to not configure it. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
5a2cf12 | Dave Stevenson | 05 September 2019, 16:36:38 UTC | overlays: mcp23017: rename the GPIO pins node with the device In order to allow the overlay to be loaded multiple times the GPIO node for the interrupt line needs to be unique. Rename it based on the MCP23017 I2C address https://github.com/raspberrypi/linux/issues/3207 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:19 UTC |
188c69c | Yaroslav Rosomakho | 23 August 2019, 09:02:22 UTC | Limit max_req_size under arm64 (or any other platform that uses swiotlb) to prevent potential buffer overflow due to bouncing. Signed-off-by: Yaroslav Rosomakho <yaroslavros@gmail.com> | 06 January 2020, 12:42:18 UTC |
186aa68 | Kieran Bingham | 20 March 2019, 12:54:47 UTC | media: bcm2835: unicam: add media controller support Add a media controller device node to represent the Unicam device. The attached sensor will be automatically added to the media graph by V4L2 core. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
a8a5bf2 | Kieran Bingham | 28 August 2019, 14:54:19 UTC | media: bcm2835: unicam: Reduce scope of local function unicam_start_rx() is not used outside of the unicam module. Its current definition produces a compiler warning, that no function prototype exists. As the function is only used within the local scope of the module, convert it to a static function. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
f676149 | Kieran Bingham | 20 March 2019, 12:54:15 UTC | staging: bcm2835-codec: add media controller support Provide a single media device to contain all of the bcm2835_codec devices created. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
d45a1eb | Kieran Bingham | 20 March 2019, 11:35:26 UTC | staging: bcm2835-codec: Pass driver context to create entities Pass the bcm2835_codec_driver driver context directly into the bcm2835_codec_create() so that it can be used to store driver global state. Pass the struct platform_device *pdev by adding it to the driver global state. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
933c8a9 | Kieran Bingham | 20 March 2019, 11:55:43 UTC | staging: bcm2835-codec: Add role to device name Three entities are created, Decode, Encode and ISP but all of the video nodes use the same video name string "bcm2835-codec" which makes it difficult to identify each role. Append the role-name to the video name to facilitate identifying a specific instance from userspace. The Card-Type is also extended with the role name to support identifying the device context from within QUERY_CAP operations. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
44501ea | Kieran Bingham | 20 March 2019, 11:42:39 UTC | staging: bcm2835-codec: Fix declaration of roles The static role text is declared incorrectly. The static should be first, and the roles should also be constified. Convert from "const static char *" to "static const char * const". Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
1f5ee0d | Kieran Bingham | 28 April 2019, 10:15:35 UTC | staging: bcm2835-codec: Fix non-documentation comment block The job_ready comment is incorrectly using the documentation prefix (/**) which causes a warning at build time. Simplify it. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
91b6b3f | Dave Stevenson | 28 August 2019, 12:35:19 UTC | dtoverlays: Add overlay for the Sony IMX219 image sensor. Adds an overlay for the IMX219 image sensor, connected to the Unicam CSI2 receiver peripheral. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:18 UTC |
75ad0fc | Dave Stevenson | 28 August 2019, 12:35:10 UTC | defconfigs: Add Sony IMX219 driver to RPi defconfigs Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:18 UTC |
da53cec | Dave Stevenson | 28 August 2019, 12:34:49 UTC | media: i2c: Add driver for Sony IMX219 sensor Adds a driver for the 8MPix Sony IMX219 CSI2 sensor. Whilst the sensor supports 2 or 4 CSI2 data lanes, this driver currently only supports 2 lanes. 8MPix @ 15fps, 1080P @ 30fps (cropped FOV), and 1640x1232 (2x2 binned) @ 30fps are currently supported. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> | 06 January 2020, 12:42:18 UTC |
18736c9 | Dave Stevenson | 28 August 2019, 12:34:30 UTC | media: dt-bindings: Add binding for the Sony IMX219 sensor The IMX219 is an 8MPix CSI2 sensor, supporting 2 or 4 data lanes. Document the binding for this device. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org> | 06 January 2020, 12:42:18 UTC |
261c79c | Phil Elwell | 03 September 2019, 17:17:25 UTC | arch/arm64: Add Revision, Serial, Model to cpuinfo Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:18 UTC |
bcfd325 | Phil Elwell | 03 September 2019, 17:16:56 UTC | arch/arm: Add model string to cpuinfo Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:18 UTC |
42e0fe5 | Trevor Stiles | 28 August 2019, 22:07:18 UTC | configs: Add support for the Audio Injector Ultra in 64-bit land. Signed-off-by: Trevor Stiles <tstiles@shel.org> | 06 January 2020, 12:42:17 UTC |
c219520 | Álvaro Fernández Rojas | 29 August 2019, 14:26:22 UTC | arm: dts: add missing Raspberry Pi model names This is needed to identify the different models on distributions like OpenWrt. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> | 06 January 2020, 12:42:17 UTC |
d4d427e | Aman Gupta | 23 August 2019, 23:29:07 UTC | staging: bcm2835-codec: remove unnecessary padding on encoder input The ISP and ENCODE roles have the same underlying hardware. Neither requires vertical alignment. Signed-off-by: Aman Gupta <aman@tmm1.net> | 06 January 2020, 12:42:17 UTC |
4d6bc21 | Aman Gupta | 22 August 2019, 22:31:37 UTC | staging: bcm2835-codec: add support for V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME fixes #3171 Signed-off-by: Aman Gupta <aman@tmm1.net> | 06 January 2020, 12:42:17 UTC |
f246d14 | popcornmix | 22 August 2019, 16:20:58 UTC | configs: Add TINYDRM modules | 06 January 2020, 12:42:17 UTC |
bd96b2f | popcornmix | 19 August 2019, 14:45:20 UTC | vc-sm-cma: Fix compatibility ioctl This code path hasn't been used previously. Fixed up after testing with kodi on 32-bit userland and 64-bit kernel Signed-off-by: popcornmix <popcornmix@gmail.com> | 06 January 2020, 12:42:17 UTC |
a1bdda6 | Phil Elwell | 17 August 2019, 18:47:30 UTC | overlays: sc16ic752-i2c: Fix xtal parameter The xtal parameter is targetting the wrong node - fix it. See: https://github.com/raspberrypi/linux/issues/3156 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:17 UTC |
7cddd17 | Phil Elwell | 15 August 2019, 11:02:34 UTC | configs: arm64/bcm2711: Enable V3D 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/3063 Signed-off-by: Phil Elwell <phil@raspberrypi.org> | 06 January 2020, 12:42:17 UTC |