]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/log
mirror_ubuntu-bionic-kernel.git
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1021.23 Ubuntu-raspi2-4.15.0-1021.23
Kleber Sacilotto de Souza [Wed, 15 Aug 2018 17:24:22 +0000 (19:24 +0200)]
UBUNTU: Ubuntu-raspi2-4.15.0-1021.23

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
5 years agoUBUNTU: [Config] raspi2: CONFIG_WCN36XX_SNAPDRAGON_HACKS=n
Stefan Bader [Fri, 3 Aug 2018 10:05:50 +0000 (12:05 +0200)]
UBUNTU: [Config] raspi2: CONFIG_WCN36XX_SNAPDRAGON_HACKS=n

New config option introduced by changes to the master branch but
not relevant for raspi2 builds. For that reason defaulting to no.

Ignore: yes

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: [Config] raspi2: CONFIG_ARM64_ERRATUM_1024718=y
Stefan Bader [Fri, 3 Aug 2018 10:00:28 +0000 (12:00 +0200)]
UBUNTU: [Config] raspi2: CONFIG_ARM64_ERRATUM_1024718=y

Follow config changes which introduced this option for arm64
builds.

BugLink: http://bugs.launchpad.net/bugs/1778759
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: SAUCE: arm64: dtbs: Add symbols when compiling dtb
Paolo Pisati [Tue, 17 Jul 2018 11:51:09 +0000 (13:51 +0200)]
UBUNTU: SAUCE: arm64: dtbs: Add symbols when compiling dtb

BugLink: http://bugs.launchpad.net/bugs/1782121
Overlay files are dtb fragments that, upon boot, patch the main dtb
board file to enable Raspberry Pi hardware extension (commonly known as
Raspberry HATs) to work.

This mechanism works fine for the bionic/raspi2 kernel, but it didn't
work for the raspi2 arm64 variant since our dtb files are missing
symbols there.

This patch instruct the device tree compiler to add symbols to the dtb
files during the 'make dtbs' target, and fix the overlay patching
mechanism for bionic/raspi2 arm64.

The resulting increase in size is negligible (~30kb for the whole kernel
package).

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Stefan Bader [Tue, 14 Aug 2018 13:36:53 +0000 (15:36 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1020.22
Thadeu Lima de Souza Cascardo [Fri, 10 Aug 2018 18:56:36 +0000 (15:56 -0300)]
UBUNTU: Ubuntu-raspi2-4.15.0-1020.22

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Start new release
Stefan Bader [Fri, 10 Aug 2018 08:31:29 +0000 (10:31 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1018.19
Stefan Bader [Thu, 26 Jul 2018 17:42:39 +0000 (19:42 +0200)]
UBUNTU: Ubuntu-raspi2-4.15.0-1018.19

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: Start new release
Stefan Bader [Thu, 26 Jul 2018 17:34:12 +0000 (19:34 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1017.18
Khalid Elmously [Wed, 18 Jul 2018 02:09:35 +0000 (02:09 +0000)]
UBUNTU: Ubuntu-raspi2-4.15.0-1017.18

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Wed, 18 Jul 2018 02:06:28 +0000 (02:06 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1016.17
Khalid Elmously [Wed, 11 Jul 2018 01:07:48 +0000 (01:07 +0000)]
UBUNTU: Ubuntu-raspi2-4.15.0-1016.17

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Wed, 11 Jul 2018 01:02:12 +0000 (01:02 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1015.16
Khalid Elmously [Thu, 5 Jul 2018 01:27:01 +0000 (01:27 +0000)]
UBUNTU: Ubuntu-raspi2-4.15.0-1015.16

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Thu, 5 Jul 2018 01:18:28 +0000 (01:18 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1014.15
Khalid Elmously [Mon, 2 Jul 2018 01:37:44 +0000 (21:37 -0400)]
UBUNTU: Ubuntu-raspi2-4.15.0-1014.15

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Mon, 2 Jul 2018 01:28:35 +0000 (01:28 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1013.14
Khalid Elmously [Thu, 14 Jun 2018 04:46:38 +0000 (04:46 +0000)]
UBUNTU: Ubuntu-raspi2-4.15.0-1013.14

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Thu, 14 Jun 2018 04:41:44 +0000 (04:41 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi-4.15.0-1012.13
Khalid Elmously [Thu, 24 May 2018 02:19:27 +0000 (22:19 -0400)]
UBUNTU: Ubuntu-raspi-4.15.0-1012.13

Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: [Config] update Build-Depends: transfig to fig2dev
Andy Whitcroft [Fri, 11 May 2018 23:20:00 +0000 (01:20 +0200)]
UBUNTU: [Config] update Build-Depends: transfig to fig2dev

Some time back transfig became a transitional package to fig2dev.
In cosmic this transitional has now been deprecated.  As we are still
copying kernels forward we need to fix this dependency in bionic.
This transition actually occured back in artful, we just missed it.
Switch our build dependency to the "new" fig2dev package.

BugLink: http://bugs.launchpad.net/bugs/1770770
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
5 years agoUBUNTU: Start new release
Khalid Elmously [Thu, 24 May 2018 01:56:05 +0000 (01:56 +0000)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1011.12
Thadeu Lima de Souza Cascardo [Tue, 8 May 2018 12:01:20 +0000 (09:01 -0300)]
UBUNTU: Ubuntu-raspi2-4.15.0-1011.12

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Packaging: Depends on linux-base that provides the necessary tools
Thadeu Lima de Souza Cascardo [Thu, 26 Apr 2018 18:09:10 +0000 (15:09 -0300)]
UBUNTU: Packaging: Depends on linux-base that provides the necessary tools

BugLink: http://bugs.launchpad.net/bugs/1767133
We Depends on linux-base because of linux-update-symlinks and
linux-check-removal. Those have been introduced in a version later than
4.0ubuntu1, which shipped on Xenial.

The unversioned Depends makes some upgrades to Bionic and installations of
linux-hwe-edge to break because those tools are not found during the configure
phase.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: linux-image-* breaks on flash-kernel (<< 3.90ubuntu2)
Andy Whitcroft [Tue, 24 Apr 2018 15:55:02 +0000 (16:55 +0100)]
UBUNTU: linux-image-* breaks on flash-kernel (<< 3.90ubuntu2)

BugLink: http://bugs.launchpad.net/bugs/1766629
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Start new release
Thadeu Lima de Souza Cascardo [Tue, 24 Apr 2018 16:06:56 +0000 (13:06 -0300)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1010.11
Seth Forshee [Tue, 24 Apr 2018 05:15:44 +0000 (00:15 -0500)]
UBUNTU: Ubuntu-raspi2-4.15.0-1010.11

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Tue, 24 Apr 2018 05:11:16 +0000 (00:11 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1009.10
Seth Forshee [Sat, 21 Apr 2018 23:01:13 +0000 (18:01 -0500)]
UBUNTU: Ubuntu-raspi2-4.15.0-1009.10

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Packaging] update package prefixes in getabis
Seth Forshee [Sat, 21 Apr 2018 22:53:27 +0000 (17:53 -0500)]
UBUNTU: [Packaging] update package prefixes in getabis

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Sat, 21 Apr 2018 22:52:52 +0000 (17:52 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1008.9
Thadeu Lima de Souza Cascardo [Fri, 20 Apr 2018 12:33:36 +0000 (09:33 -0300)]
UBUNTU: Ubuntu-raspi2-4.15.0-1008.9

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Start new release
Thadeu Lima de Souza Cascardo [Thu, 19 Apr 2018 22:36:37 +0000 (19:36 -0300)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: Ubuntu-raspi2-4.15.0-1007.8
Seth Forshee [Mon, 16 Apr 2018 20:23:29 +0000 (15:23 -0500)]
UBUNTU: Ubuntu-raspi2-4.15.0-1007.8

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] update configs after rebase to 4.15.0-17.18
Seth Forshee [Mon, 16 Apr 2018 14:07:44 +0000 (09:07 -0500)]
UBUNTU: [Config] update configs after rebase to 4.15.0-17.18

Update lsm stacking options to match master, disable new drivers
not relevant to raspi2.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoAdd overlay for JEDEC SPI NOR flash
wavelet2 [Mon, 26 Mar 2018 20:05:10 +0000 (21:05 +0100)]
Add overlay for JEDEC SPI NOR flash

(cherry picked from commit 86f86388ee9c5d1f755b867a7715c624ab6a6093
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfig: Add IPVLAN module
popcornmix [Thu, 29 Mar 2018 15:05:28 +0000 (16:05 +0100)]
config: Add IPVLAN module

(cherry picked from commit 7d97df65d1263f82fecd3ba96ae659a862476ab8
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfig: Add NFS_V4_1 support
popcornmix [Thu, 29 Mar 2018 15:01:37 +0000 (16:01 +0100)]
config: Add NFS_V4_1 support

(cherry picked from commit 98ae487b7d47f0a2476675aeea855d0cfe93fbcf
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agolan78xx: Ignore DT MAC address if already valid
Phil Elwell [Wed, 28 Mar 2018 11:18:13 +0000 (12:18 +0100)]
lan78xx: Ignore DT MAC address if already valid

The patch to set the lan78xx MAC address from DT does so regardless of
whether or not the interface already has a valid address. As the
initialisation function is called from the reset handler when the
interface is brought up, it is impossible to change the MAC address
in a way that persists across the interface being brought up.

Fix the problem by moving the DT reading code after the check for a
valid address.

See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=209309

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 9b4a35d48f1a0740a0f6b974872d146a8ec6eb41
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agousb: dwc_otg: fix memory corruption in dwc_otg driver
Paul Zimmerman [Tue, 4 Feb 2014 19:21:24 +0000 (11:21 -0800)]
usb: dwc_otg: fix memory corruption in dwc_otg driver

[Upstream commit 51b1b6491752ac066ee8d32cc66042fcc955fef6]

The move from the staging tree to the main tree exposed a
longstanding memory corruption bug in the dwc2 driver. The
reordering of the driver initialization caused the dwc2 driver
to corrupt the initialization data of the sdhci driver on the
Raspberry Pi platform, which made the bug show up.

The error is in calling to_usb_device(hsotg->dev), since ->dev
is not a member of struct usb_device. The easiest fix is to
just remove the offending code, since it is not really needed.

Thanks to Stephen Warren for tracking down the cause of this.

Reported-by: Andre Heider <a.heider@gmail.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[lukas: port from upstream dwc2 to out-of-tree dwc_otg driver]
Signed-off-by: Lukas Wunner <lukas@wunner.de>
(cherry picked from commit 855f11bcda5c730ffab85710ec24cbbcb38a2f1e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoAdd overlay for Semtech SX150X I2C GPIO Expanders
wavelet2 [Thu, 22 Mar 2018 19:08:02 +0000 (19:08 +0000)]
Add overlay for Semtech SX150X I2C GPIO Expanders

(cherry picked from commit f27db6ef05c79d6b04efa5c35fee9533ab0042e2
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoThis commit adds support for RP3-B-Plus in in arch arm64 (#2464)
derpeter [Sun, 25 Mar 2018 21:27:30 +0000 (23:27 +0200)]
This commit adds support for RP3-B-Plus in in arch arm64 (#2464)

(cherry picked from commit 3fb8905967d4b29b98e2746c1d8eab7cabb6d5a0
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM270X: Disable VEC unless vc4-kms-v3d is present.
Eric Anholt [Mon, 23 Jan 2017 19:41:54 +0000 (11:41 -0800)]
BCM270X: Disable VEC unless vc4-kms-v3d is present.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit dabd52db47d2e799323639734787e3a338c2b2a5
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
(cherry picked from commit bf4f61f71d2a5a3a975bbdc96113be8d4f618886
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM27XX_DT: Set LED modes from Device Tree
Phil Elwell [Wed, 21 Mar 2018 16:04:18 +0000 (16:04 +0000)]
BCM27XX_DT: Set LED modes from Device Tree

The new default values for LAN7515 (LAN7800) are:

  LED0 = 1 (link1000/activity)
  LED1 = 6 (link10/link100/activity)

Also add two dtparams - eth_led0 and eth_led1 - to provide user control
over the LEDs.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 5c1cbce6dd4388020c4c0f8b1e2fd660d9c1f914
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agolan78xx: Read LED states from Device Tree
Phil Elwell [Wed, 21 Mar 2018 15:59:26 +0000 (15:59 +0000)]
lan78xx: Read LED states from Device Tree

Add support for DT property "microchip,led-modes", a vector of two
cells (u32s) in the range 0-15, each of which sets the mode for one
of the two LEDs. The possible values are:

    0=link/activity          1=link1000/activity
    2=link100/activity       3=link10/activity
    4=link100/1000/activity  5=link10/1000/activity
    6=link10/100/activity    14=off    15=on

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit c8a4f7c735641d4a2f51d9bd02b75121157d27ee
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agooverlays: Update 'upstream' overlay with new dwc2
Phil Elwell [Wed, 21 Mar 2018 13:53:39 +0000 (13:53 +0000)]
overlays: Update 'upstream' overlay with new dwc2

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 14ba91b8722da7dd42bc6528dcae4c7c34e07348
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agooverlays: use all seven dwc2 gadget fifos.
hexameron [Tue, 20 Mar 2018 12:48:10 +0000 (12:48 +0000)]
overlays: use all seven dwc2 gadget fifos.

Linux 4.9 needed fifos to be set to their default values,
 leaving the last one (silently) set to zero size.
From 4.12 Linux allows fifos to be set to any size EXCEPT zero.

Resolves https://github.com/raspberrypi/linux/issues/2390

Signed-off-by: John Greb <h3x4m3r0n@gmail.com>
(cherry picked from commit 3d85e84fdc9484f7a78ab3d3e8a04fed817ab576
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoFix for Pisound's MIDI Input getting blocked for a while in rare cases.
Giedrius [Fri, 16 Mar 2018 16:14:31 +0000 (18:14 +0200)]
Fix for Pisound's MIDI Input getting blocked for a while in rare cases.

There was a possible race condition which could lead to Input's FIFO queue
to be underflown, causing high amount of processing in the worker thread for
some period of time.

Signed-off-by: Giedrius Trainavicius <giedrius@blokas.io>
(cherry picked from commit 1b94679a9b7f1e4ffce7369e466f151d40e481ec
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM27XX_DT: Delete 'stdout-path' property
Phil Elwell [Fri, 16 Mar 2018 10:13:19 +0000 (10:13 +0000)]
BCM27XX_DT: Delete 'stdout-path' property

The 'stdout-path' property introduced upstream changes the behaviour
on a non-Bluetooth Pi by enabling a console on UART0 when the user
may not want one. The boot order is such that /dev/console ends up
on the serial port instead of tty0.

Delete the property in downstream DTBs to retrurn to the previous
behaviour of only enabling consoles selected in cmdline.txt.

See: https://github.com/raspberrypi/linux/issues/2436

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit a69c920f22883371042de9bb53d84e15f7818197
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agobcm2710-rpi-3-b.dts: Remove duplicate memreserve
Phil Elwell [Wed, 14 Mar 2018 11:31:04 +0000 (11:31 +0000)]
bcm2710-rpi-3-b.dts: Remove duplicate memreserve

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 20922ea2c8168e7b68156ea028b57b357f3bdba4
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoarm64: enable thermal / enable mmc (#2425)
Piraty [Mon, 12 Mar 2018 16:07:45 +0000 (17:07 +0100)]
arm64: enable thermal / enable mmc (#2425)

(cherry picked from commit d6bbdf6b130ac9cb8fa6e4ecf02c5fdf50d7a25f
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoARM: dts: Add model-specific compatible strings
Phil Elwell [Wed, 7 Mar 2018 08:21:29 +0000 (08:21 +0000)]
ARM: dts: Add model-specific compatible strings

The upstream Pi DTs are model-specific, with both the model and
compatible strings identifying the model. Downstream groups the
closely-related models, with only the chip name in the compatible
strings and a model string patched by the firmware.

Bring the downstream model-specific DTs closer to upstream by
adding model-specific compatible strings.

See: https://github.com/raspberrypi/firmware/issues/943

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit d90929181836e8a049275d8407cff70fb93b7f17
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoaudioinjector-octo: Add continuous clock feature
Phil Elwell [Sat, 3 Mar 2018 16:25:19 +0000 (16:25 +0000)]
audioinjector-octo: Add continuous clock feature

By user request, add a switch to prevent the clocks being stopped when
the stream is paused, stopped or shutdown. Provide access to the switch
by adding a 'non-stop-clocks' parameter to the audioinjector-addons
overlay.

See: https://github.com/raspberrypi/linux/issues/2409

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 8eb4abd918a094dab50bab1b68fc4742ecea02f1
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agooverlays: Add 'upstream' overlay
Phil Elwell [Sat, 3 Mar 2018 14:18:03 +0000 (14:18 +0000)]
overlays: Add 'upstream' overlay

The 'upstream' overlay makes the necessary changes for a downstream
.dtb to be used with an upstream kernel. It is currently made up from
three other overlays - vc4-kms-v3d, dwc2 and upstream-aux-interrupt.
The VPU firmware will soon be made to automatically load this overlay
when an upstream kernel is detected (using the trailer supplied by the
mkknlimg script).

See: https://github.com/raspberrypi/linux/pull/2393

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 1b481f8a427561dc7fd2afaa317d7be13f55382e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfig: Enable CONFIG_GPIO_MOCKUP module
popcornmix [Fri, 2 Mar 2018 13:26:51 +0000 (13:26 +0000)]
config: Enable CONFIG_GPIO_MOCKUP module

(cherry picked from commit 9408efbb0fe72573aaadafae71f6a7947598e638
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agooverlays: Add updated mmc1 alias to sdio overlays
Phil Elwell [Thu, 1 Mar 2018 21:36:30 +0000 (21:36 +0000)]
overlays: Add updated mmc1 alias to sdio overlays

In the downstream RPi kernel, aliases are used to assign instance
numbers to the SD/MMC interfaces. The updated sdio overlays
effectively rename the device node, so the mmc1 alias has to be
updated in order to preserve the mmc1 numbering, otherwise the device
will appear as mmc2.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit e947e787796e72ca7fce395a0179b63d32b8eff8
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: hifiberry_dacplus: transmit S24_LE with 64 BCLK cycles
Matthias Reichl [Thu, 22 Feb 2018 12:09:30 +0000 (13:09 +0100)]
ASoC: hifiberry_dacplus: transmit S24_LE with 64 BCLK cycles

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit ca58809df2853f1353cdf9fa555b665731bdf61c
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: allo-boss-dac: transmit S24_LE with 64 BCLK cycles
Matthias Reichl [Thu, 22 Feb 2018 12:07:53 +0000 (13:07 +0100)]
ASoC: allo-boss-dac: transmit S24_LE with 64 BCLK cycles

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 2135855f2521e31dcdeb2e24a4bbf6e2f407512a
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: pcm512x: implement set_tdm_slot interface
Matthias Reichl [Thu, 22 Feb 2018 10:55:06 +0000 (11:55 +0100)]
ASoC: pcm512x: implement set_tdm_slot interface

PCM512x can accept data padded with additional BCLK cycles
but the driver currently lacks an interface to configure this.

This leads to the problem that S24_LE format in master mode
can result in non-integer clock divisors and pcm512x running
at a rather off rate.

For example 48kHz with 48fs BCLK and SCLK at 24.576MHz uses
a divisor of 10 (rounded down from 10.6666) and results in a
51.2kHz LRCLK. With 64fs BCLK a divisor of 8 is used and
LRCLK runs at exactly 48kHz.

Fix this by providing a minimal set_tdm_slot implementation
so machine drivers can optionally configure custom BCLK ratios.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit fa3803dd2cadcaec79a05fba78f431cb9f741650
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: justboom-dac: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:43 +0000 (20:30 +0100)]
ASoC: justboom-dac: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Also remove hw_params as it's no longer needed.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 1e0e935202206799c66a89531413dbc6071f556a
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: iqaudio-dac: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: iqaudio-dac: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 4e53596214a820d245946ff8132cd46f0588a73f
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: hifiberry_dacplus: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: hifiberry_dacplus: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 06c1fef653d9fda461fdb62ff745b58db3d1a3c8
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: dionaudio_loco-v2: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: dionaudio_loco-v2: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Also remove hw_params and ops as they are no longer needed.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 648464ab2ff63a6e72e608c95ce0b493b9196532
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: allo-piano-dac: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: allo-piano-dac: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Also remove hw_params and ops as they are no longer needed.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit f08935876ca99ee614c64c01212a678b4c43bbeb
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: allo-piano-dac-plus: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: allo-piano-dac-plus: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 9099425d62db111bd281fc54c65ebe2f42ad138e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: allo-boss-dac: fix S24_LE format
Matthias Reichl [Fri, 2 Feb 2018 19:30:42 +0000 (20:30 +0100)]
ASoC: allo-boss-dac: fix S24_LE format

Remove set_bclk_ratio call so 24-bit data is transmitted in
24 bclk cycles.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit d1eaf62648502d24e9b8029d887079eeb3e7d6c4
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoASoC: pcm512x: revert downstream changes
Matthias Reichl [Fri, 2 Feb 2018 19:30:41 +0000 (20:30 +0100)]
ASoC: pcm512x: revert downstream changes

This partially reverts commit 185ea05465aac8bf02a0d2b2f4289d42c72870b7
which was added by https://github.com/raspberrypi/linux/pull/1152

The downstream pcm512x changes caused a regression, it broke normal
use of the 24bit format with the codec, eg when using simple-audio-card.

The actual bug with 24bit playback is the incorrect usage
of physical_width in various drivers in the downstream tree
which causes 24bit data to be transmitted with 32 clock
cycles. So it's not the pcm512x that needs fixing, it's the
soundcard drivers.

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit 1963d77dab0f352ae9a0d4cdf52dd2c055bf29b6
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Skip ULPS latching when we're in that ULPS state already.
Eric Anholt [Tue, 31 Oct 2017 18:33:10 +0000 (11:33 -0700)]
drm/vc4: Skip ULPS latching when we're in that ULPS state already.

It seems that trying to go from unlatched to unlatched will time out
waiting for STOP, and we can just skip that.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit dd1772f6158f896380cf1dbb824b965ea7f520a7
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Fix crash if we have to unbind HDMI.
Eric Anholt [Mon, 13 Nov 2017 22:23:48 +0000 (14:23 -0800)]
drm/vc4: Fix crash if we have to unbind HDMI.

We need the card to unregister before the codec that the card
references.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit c8dd53be83a5a1d06fc8f0001450149bd488a28b
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agobcm2835-camera: Fix timestamp calculation problem (#2214)
David H [Wed, 4 Oct 2017 11:43:07 +0000 (04:43 -0700)]
bcm2835-camera: Fix timestamp calculation problem (#2214)

* bcm2835-camera: Fix timestamp calculation problem

Use div_s64_rem() to convert usec timestamp to timeval
to avoid integer signedness bug.

* bcm2835-camera: Store kernel start time in NSEC instead of USEC

* bcm2835-camera: Reword debug message for clarity

(cherry picked from commit 91bdd6739e52124312ca09e83354e4ec4dda5865
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM2835-V4L2: Correctly denote key frames in encoded data
Dave Stevenson [Mon, 13 Feb 2017 13:11:41 +0000 (13:11 +0000)]
BCM2835-V4L2: Correctly denote key frames in encoded data

Forward MMAL key frame flags to the V4L2 buffers.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
(cherry picked from commit bca036359b15783f08931edfb86ce360b4f6b55e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM2835-V4L2: Ensure H264 header bytes get a sensible timestamp
Dave Stevenson [Mon, 13 Feb 2017 11:10:50 +0000 (11:10 +0000)]
BCM2835-V4L2: Ensure H264 header bytes get a sensible timestamp

H264 header come off VC with 0 timestamps, which means they get a
strange timestamp when processed with VC/kernel start times,
particularly if used with the inline header option.
Remember the last frame timestamp and use that if set, or otherwise
use the kernel start time.

https://github.com/raspberrypi/linux/issues/1836

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
(cherry picked from commit e3a3d4f4dd6111f63c006cd8666f16914c62a69e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfig: enable Audio Graph Card module
Matthias Reichl [Tue, 6 Feb 2018 14:37:22 +0000 (15:37 +0100)]
config: enable Audio Graph Card module

Signed-off-by: Matthias Reichl <hias@horus.com>
(cherry picked from commit cba8d7fcf720f96afac7a34e1ed507e2711ff05b
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agohid: Reduce default mouse polling interval to 60Hz
popcornmix [Mon, 14 Jul 2014 21:02:09 +0000 (22:02 +0100)]
hid: Reduce default mouse polling interval to 60Hz

Reduces overhead when using X

(cherry picked from commit 2005ce5eefed1bb668c8f6cbaee8b9e2e2d4af96
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Don't wait for vblank on fkms cursor updates.
Eric Anholt [Mon, 5 Feb 2018 18:53:18 +0000 (18:53 +0000)]
drm/vc4: Don't wait for vblank on fkms cursor updates.

We don't use the same async update path between fkms and normal kms,
and the normal kms workaround ended up making us wait.  This became a
larger problem in rpi-4.14.y, as the USB HID update rate throttling
got (accidentally?) dropped.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit e66aa155716afe1f58e9bbe69b882bca28ae3e46
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Remove duplicate primary/cursor fields from FKMS driver.
Eric Anholt [Mon, 5 Feb 2018 18:22:03 +0000 (18:22 +0000)]
drm/vc4: Remove duplicate primary/cursor fields from FKMS driver.

The CRTC has those fields and we can just use them.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 2ad1a992b5194a01d2dbde9eead1d7a1e2b2677d
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Skip SET_CURSOR_INFO when the cursor contents didn't change.
Eric Anholt [Mon, 5 Feb 2018 18:02:30 +0000 (18:02 +0000)]
drm/vc4: Skip SET_CURSOR_INFO when the cursor contents didn't change.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 32161ae7d5bbc9b2b6fe629ef9d631b927da93e1
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Fix warning about vblank interrupts before DRM core is ready.
Eric Anholt [Mon, 5 Feb 2018 18:01:02 +0000 (18:01 +0000)]
drm/vc4: Fix warning about vblank interrupts before DRM core is ready.

The SMICS interrupt fires continuously, but since it's 1/100 the rate
of the USB interrupts, we don't really need a way to turn it off.  We
do need to make sure that we don't tell DRM about it until DRM has
asked for the interrupt at least once, because otherwise it will throw
a warning at boot time.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 9a62e73e23eabe7459755bccf8dd97bbfa9f5344
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Add support for NV21 and NV61.
Dave Stevenson [Thu, 16 Nov 2017 14:22:31 +0000 (14:22 +0000)]
drm/vc4: Add support for NV21 and NV61.

NV12 (YUV420 2 plane) and NV16 (YUV422 2 plane) were
supported, but NV21 and NV61 (same but with Cb and Cr
swapped) weren't. Add them.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1f50799525e3401551dff2b0b2828b9ab892f75f.1510841336.git.dave.stevenson@raspberrypi.org
(cherry picked from commit cb20dd170d6a7d41e0f347998771b0e0db183438
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
(cherry picked from commit 8da3b3bdf8bbe09d5bd80376ca03c97c1a4fb27f
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Use .pixel_order instead of custom .flip_cbcr
Dave Stevenson [Thu, 16 Nov 2017 14:22:30 +0000 (14:22 +0000)]
drm/vc4: Use .pixel_order instead of custom .flip_cbcr

The hardware has enums for altering the Cr and Cb order,
so use this instead of having a flag which swaps the
order the pointers are presented to the hardware
(that only worked for 3 plane formats anyway).

Explicitly sets .pixel_order in each case, rather than
relying on then default XYCBCR order being a value 0.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/563872b69c1e5df142cb15ebfca7f20056b8a64c.1510841336.git.dave.stevenson@raspberrypi.org
(cherry picked from commit 090cb0c690183be849e2bfa0427220f1e435fa30
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
(cherry picked from commit a640c4fb7190d4e23b60ec18e01105dfa669799c
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888
Dave Stevenson [Thu, 16 Nov 2017 14:22:29 +0000 (14:22 +0000)]
drm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888

Filling out the list of supported formats based on those the
hardware can support.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/b551205d1c33fa49eef2c33ed2d60c5339b2f299.1510841336.git.dave.stevenson@raspberrypi.org
(cherry picked from commit 88f8156fba43d040dc5af42f88db2c53d6c69443
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
(cherry picked from commit 75c798fae3a44b9c7751573948a2e2a43de7a66a
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agodrm/vc4: Reject HDMI modes with too high of clocks.
Eric Anholt [Wed, 20 Sep 2017 22:59:34 +0000 (15:59 -0700)]
drm/vc4: Reject HDMI modes with too high of clocks.

Peter Robinson reported issues on Fedora with 4k monitors not having
their modes filtered down to 1920x1080 on Raspberry Pi.

v2: Fix vc5 typo in place of vc4.

Cc: Peter Robinson <pbrobinson@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170920225935.14566-1-eric@anholt.net
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v1)
(cherry picked from commit 32e823c63e90f7535ea1cc5311d25c0233e1456d
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
(cherry picked from commit 0be00429c02f72d058dfb0b93e8c9547b633144d
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Revert to do page-table-walk-based cache manipulating on some ioctl calls
Sugizaki Yukimasa [Tue, 9 Jan 2018 21:25:51 +0000 (06:25 +0900)]
vcsm: Revert to do page-table-walk-based cache manipulating on some ioctl calls

On FLUSH, INVALID, CLEAN_INVALID ioctl calls, cache operations based on
page table walk were used in case that the buffer of the cache is not
pinned.  So reverted to do page-table-based cache manipulating.

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit b5a40e4b66f25056c1c2f30ea9a7d2d131672b75
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Add no-op cache operation constant
Sugizaki Yukimasa [Tue, 9 Jan 2018 19:32:20 +0000 (04:32 +0900)]
vcsm: Add no-op cache operation constant

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 6e3d5ea5d602ae145bf7502933fff44ad3a28926
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Fix obscure conditions again
Sugizaki Yukimasa [Tue, 9 Jan 2018 03:33:24 +0000 (12:33 +0900)]
vcsm: Fix obscure conditions again

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 1e50c777f3bf2bbdb6bb602c878ad193727cf728
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Describe the use of cache operation constants
Sugizaki Yukimasa [Mon, 8 Jan 2018 12:15:13 +0000 (21:15 +0900)]
vcsm: Describe the use of cache operation constants

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit f17b998f3a1479e59534b5af9594e42aeb0a2c74
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Fix memory leaking on clean_invalid2 ioctl handler
Sugizaki Yukimasa [Mon, 8 Jan 2018 12:11:23 +0000 (21:11 +0900)]
vcsm: Fix memory leaking on clean_invalid2 ioctl handler

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit e4e696b0bbc08d71b854ed26218f2a5fb3efcaca
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Fix obscure conditions
Sugizaki Yukimasa [Mon, 8 Jan 2018 12:07:17 +0000 (21:07 +0900)]
vcsm: Fix obscure conditions

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 87c32e0031ef64a4a12b2240b701b7c1318e2c50
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Unify cache manipulating functions
Sugizaki Yukimasa [Thu, 4 Jan 2018 15:44:00 +0000 (00:44 +0900)]
vcsm: Unify cache manipulating functions

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 0314a74b54cafa68a175e98091117c52db8d674b
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Support for finding user/vc handle in memory pool
Sugizaki Yukimasa [Thu, 4 Jan 2018 15:01:30 +0000 (00:01 +0900)]
vcsm: Support for finding user/vc handle in memory pool

vmcs_sm_{usr,vc}_handle_from_pid_and_address() were failing to find
handle if specified user pointer is not exactly the one that the memory
locking call returned even if the pointer is in range of map/resource.
So fixed the functions to match the range.

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 662ef06002e3d43ad76671bb9598cd61e265bef5
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agovcsm: Define cache operation constants in user header
Sugizaki Yukimasa [Thu, 4 Jan 2018 14:58:06 +0000 (23:58 +0900)]
vcsm: Define cache operation constants in user header

Without this change, users have to use raw values (1, 2, 3) to specify
cache operation.

Signed-off-by: Sugizaki Yukimasa <i.can.speak.c.and.basic@gmail.com>
(cherry picked from commit 55b31490ae9d428fb32706916ec0c135c05f6206
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoRemove build products from the source tree
Phil Elwell [Wed, 21 Mar 2018 15:05:48 +0000 (15:05 +0000)]
Remove build products from the source tree

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 15f547c94f2fc3a21e7f08d95eabae112db3bfb1
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agolan78xx: Change LEDs to include 10Mb activity
Phil Elwell [Fri, 9 Mar 2018 17:28:07 +0000 (17:28 +0000)]
lan78xx: Change LEDs to include 10Mb activity

The default LED modes put 1000Mb/activity on orange and 100Mb/activity
on green, but this leaves no indication for a 10Mb link. Change the
defaults to put 10Mb/100Mb/activity on green.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 1c1a8c5cdcd24a279d8194774e7e7047b7519f5c
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agolan78xx: Read initial EEE status from DT
Phil Elwell [Fri, 9 Mar 2018 12:01:00 +0000 (12:01 +0000)]
lan78xx: Read initial EEE status from DT

Add two new DT properties:
* microchip,eee-enabled  - a boolean to enable EEE
* microchip,tx-lpi-timer - time in microseconds to wait before entering
                           low power state

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 3aa9eb6eeffde4c317b41f488de0682fc027d768
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoBCM270X_DT: Add Pi 3+ dts files
Phil Elwell [Fri, 21 Jul 2017 10:33:25 +0000 (11:33 +0100)]
BCM270X_DT: Add Pi 3+ dts files

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 741b2171d923106c720cd406fd3f500e3ebd861f
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfig: Set CONFIG_USB_LAN78XX=y
Phil Elwell [Thu, 8 Feb 2018 15:08:57 +0000 (15:08 +0000)]
config: Set CONFIG_USB_LAN78XX=y

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 024693d124d75bd48c5b8617b3d3a11c1934d81e
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoconfigs: Remove vestigial setting
Phil Elwell [Wed, 14 Mar 2018 15:32:02 +0000 (15:32 +0000)]
configs: Remove vestigial setting

(cherry picked from commit 065ecc12f9aa870a5fb9533eb62fc74c2036b265
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoadded capture_clear option to pps-gpio via dtoverlay (#2433)
hdoverobinson [Tue, 13 Mar 2018 10:58:39 +0000 (06:58 -0400)]
added capture_clear option to pps-gpio via dtoverlay (#2433)

(cherry picked from commit dfff43426667c3c4f063de7bcf65993573a9e5e9
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agonet: rtl8192cu: Fix implicit fallthrough warnings
Nathan Chancellor [Mon, 5 Mar 2018 03:07:35 +0000 (20:07 -0700)]
net: rtl8192cu: Fix implicit fallthrough warnings

These warnings appear with GCC 7.3.0 from toolchains.bootlin.com:

../drivers/net/wireless/realtek/rtl8192cu/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
../drivers/net/wireless/realtek/rtl8192cu/core/rtw_mlme_ext.c:734:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      ^
../drivers/net/wireless/realtek/rtl8192cu/core/rtw_mlme_ext.c:739:3: note: here
   case WIFI_ASSOCREQ:
   ^~~~
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c: In function ‘phy_TxPwrIdxToDbm’:
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c:2365:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
   Offset = -8;
   ~~~~~~~^~~~
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/rtl8192c_phycfg.c:2366:2: note: here
  default:
  ^~~~~~~
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c: In function ‘GetHwReg8192CU’:
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c:5694:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
    *((u16 *)(val)) = pHalData->BasicRateSet;
    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/wireless/realtek/rtl8192cu/hal/rtl8192c/usb/usb_halinit.c:5695:3: note: here
   case HW_VAR_TXPAUSE:
   ^~~~
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_linux.c: In function ‘set_group_key’:
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_linux.c:7383:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
    keylen = 16;
    ~~~~~~~^~~~
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_linux.c:7384:3: note: here
   default:
   ^~~~~~~
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_cfg80211.c: In function ‘set_group_key’:
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_cfg80211.c:822:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
    keylen = 16;
    ~~~~~~~^~~~
../drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/ioctl_cfg80211.c:823:3: note: here
   default:
   ^~~~~~~

None of them appear to be a real issue but it is trivial to make the
warnings go away.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
(cherry picked from commit 2d9f477a266146e5d5180be853d62bd2f1d35ca0
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agonet: rtl8192cu: Fix outstanding GCC 6.4.0 warnings
Francisco Facioni [Sat, 28 May 2016 17:15:27 +0000 (14:15 -0300)]
net: rtl8192cu: Fix outstanding GCC 6.4.0 warnings

Compiler used: toolchains.bootlin.com

Reference: https://github.com/diederikdehaas/rtl8812AU

[@nathanchance: Cherry-picked from 6c1987881822 and updated message]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
(cherry picked from commit 4628e36c0caaa7806ffcd98286eab2705d37e3be
https://github.com/raspberrypi/linux raspi/rpi-4.15.y)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>