]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/log
mirror_ubuntu-eoan-kernel.git
5 years agoUBUNTU: Ubuntu-5.3.0-12.13 Ubuntu-5.3.0-12.13
Seth Forshee [Tue, 17 Sep 2019 11:36:26 +0000 (13:36 +0200)]
UBUNTU: Ubuntu-5.3.0-12.13

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Packaging] Add lz4 build dependency for s390x
Seth Forshee [Tue, 17 Sep 2019 11:31:08 +0000 (13:31 +0200)]
UBUNTU: [Packaging] Add lz4 build dependency for s390x

BugLink: https://bugs.launchpad.net/bugs/1840934
When switching s390x to use lz4 for compressing the kernel, the
build dependencies were not updated. Fix this.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: Remove spl and zfs source
Seth Forshee [Tue, 17 Sep 2019 11:23:13 +0000 (13:23 +0200)]
UBUNTU: SAUCE: Remove spl and zfs source

This is no longer needed as zfs is build via the dkms build now.
I thought it had been deleted previously, but it's still there
for some reason, so let's get rid of it.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Tue, 17 Sep 2019 11:28:39 +0000 (13:28 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-11.12
Paolo Pisati [Mon, 16 Sep 2019 14:18:28 +0000 (16:18 +0200)]
UBUNTU: Ubuntu-5.3.0-11.12

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Mon, 16 Sep 2019 13:48:15 +0000 (15:48 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1844144
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: rebase to v5.3
Paolo Pisati [Mon, 16 Sep 2019 13:08:24 +0000 (15:08 +0200)]
UBUNTU: rebase to v5.3

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: update dkms package versions
Paolo Pisati [Mon, 16 Sep 2019 13:04:37 +0000 (15:04 +0200)]
UBUNTU: update dkms package versions

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: SAUCE: arm64: dts: qcom: Add Lenovo Yoga C630
Bjorn Andersson [Fri, 6 Sep 2019 09:38:17 +0000 (10:38 +0100)]
UBUNTU: SAUCE: arm64: dts: qcom: Add Lenovo Yoga C630

The Lenovo Yoga C630 is built on the SDM850 from Qualcomm, but this seem
to be similar enough to the SDM845 that we can reuse the sdm845.dtsi.

Supported by this patch is: keyboard, battery monitoring, UFS storage,
USB host and Bluetooth.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630
Lee Jones [Fri, 6 Sep 2019 09:38:16 +0000 (10:38 +0100)]
UBUNTU: SAUCE: i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630

We have a production-level laptop (Lenovo Yoga C630) which is exhibiting
a rather horrific bug.  When I2C HID devices are being scanned for at
boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA.
When it does, the laptop reboots and the user never sees the OS.

Attempts are being made to debug the reason for the spontaneous reboot.
No luck so far, hence the requirement for this hot-fix.  This workaround
will be removed once we have a viable fix.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoPCI: Restore Resizable BAR size bits correctly for 1MB BARs
Sumit Saxena [Mon, 9 Sep 2019 11:08:34 +0000 (14:08 +0300)]
PCI: Restore Resizable BAR size bits correctly for 1MB BARs

BugLink: http://bugs.launchpad.net/bugs/1838751
In a Resizable BAR Control Register, bits 13:8 control the size of the BAR.
The encoded values of these bits are as follows (see PCIe r5.0, sec
7.8.6.3):

  Value    BAR size
     0     1 MB (2^20 bytes)
     1     2 MB (2^21 bytes)
     2     4 MB (2^22 bytes)
   ...
    43     8 EB (2^63 bytes)

Previously we incorrectly set the BAR size bits for a 1 MB BAR to 0x1f
instead of 0, so devices that support that size, e.g., new megaraid_sas and
mpt3sas adapters, fail to initialize during resume from S3 sleep.

Correctly calculate the BAR size bits for Resizable BAR control registers.

Link: https://lore.kernel.org/r/20190725192552.24295-1-sumit.saxena@broadcom.com
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203939
Fixes: d3252ace0bc6 ("PCI: Restore resized BAR state on resume")
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org # v4.19+
(cherry-picked from d2182b2d4b71ff0549a07f414d921525fade707b linux-next)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: (lockdown) s390/setup: Actually init kernel lock down
Philipp Rudo [Fri, 13 Sep 2019 23:05:04 +0000 (00:05 +0100)]
UBUNTU: SAUCE: (lockdown) s390/setup: Actually init kernel lock down

BugLink: https://bugs.launchpad.net/bugs/1843961
Kernel lock down isn't initalized in common but in arch code. So
initialize it for s390 as well.

Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: s390/sclp: Fix bit checked for has_sipl
Philipp Rudo [Fri, 13 Sep 2019 23:00:02 +0000 (00:00 +0100)]
UBUNTU: SAUCE: s390/sclp: Fix bit checked for has_sipl

BugLink: https://bugs.launchpad.net/bugs/1843960
Fixes: c9896acc7851 ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org # 5.2+
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
(cherry picked from commit 4df9a82549cfed5b52da21e7d007b79b2ea1769a
 git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git)
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: sched: Add __ASSEMBLY__ guards around struct clone_args
Seth Forshee [Wed, 11 Sep 2019 14:56:14 +0000 (15:56 +0100)]
UBUNTU: SAUCE: sched: Add __ASSEMBLY__ guards around struct clone_args

The addition of struct clone_args to uapi/linux/sched.h is not
protected by __ASSEMBLY__ guards, cuasing a FTBFS for glibc on
RISC-V. Add the guards to fix this.

Fixes: 7f192e3cd316 ("fork: add clone3")
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] Update annotations for recent config changes
Seth Forshee [Wed, 11 Sep 2019 17:20:49 +0000 (18:20 +0100)]
UBUNTU: [Config] Update annotations for recent config changes

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config]: remove nvram from ppc64el modules ABI
Thadeu Lima de Souza Cascardo [Tue, 10 Sep 2019 19:39:32 +0000 (16:39 -0300)]
UBUNTU: [Config]: remove nvram from ppc64el modules ABI

Now that CONFIG_NVRAM=y for ppc64el, it's not expected as a module on the
ABI.

This fixes a build failure, when we detect the missing nvram module.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: [Config]: Switch kernel compression from LZO to LZ4 on s390x
Thadeu Lima de Souza Cascardo [Mon, 9 Sep 2019 18:53:54 +0000 (15:53 -0300)]
UBUNTU: [Config]: Switch kernel compression from LZO to LZ4 on s390x

BugLink: https://bugs.launchpad.net/bugs/1840934
While at it, update the annotations file to match reality.

Suggested-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agoUBUNTU: [Config] CONFIG_NVRAM=y for ppc64el
Seth Forshee [Mon, 9 Sep 2019 16:24:20 +0000 (17:24 +0100)]
UBUNTU: [Config] CONFIG_NVRAM=y for ppc64el

BugLink: https://bugs.launchpad.net/bugs/1837726
Until 5.2 nvram support was built into the kernel for ppc64el.
Now it is a module and not included in the installer udebs, which
causes installation to fail. Change it back to =y for ppc64el to
fix this.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Tue, 10 Sep 2019 09:54:49 +0000 (10:54 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-10.11
Paolo Pisati [Mon, 9 Sep 2019 08:00:41 +0000 (10:00 +0200)]
UBUNTU: Ubuntu-5.3.0-10.11

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Mon, 9 Sep 2019 07:59:38 +0000 (09:59 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1843232
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: rebase to v5.3-rc8
Paolo Pisati [Mon, 9 Sep 2019 07:36:03 +0000 (09:36 +0200)]
UBUNTU: rebase to v5.3-rc8

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: update dkms package versions
Paolo Pisati [Mon, 9 Sep 2019 07:24:50 +0000 (09:24 +0200)]
UBUNTU: update dkms package versions

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: SAUCE: ALSA: hda - Define a fallback_pin_fixup_tbl for alc269 family
Hui Wang [Mon, 2 Sep 2019 04:28:13 +0000 (12:28 +0800)]
UBUNTU: SAUCE: ALSA: hda - Define a fallback_pin_fixup_tbl for alc269 family

BugLink: https://bugs.launchpad.net/bugs/1842265
We have another Dell laptop which needs the DELL4_MIC_NO_PRESENCE,
and this laptop has different pincfg definitions from existing
ones in the pintbl, rather adding a new entry, let us define
a tbl in the fallback_pin_fixup_tbl and this tbl will match
all dell machines with alc289 codec and the pins of 0x19 and 0x1b
are undef by default.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 7c0a69394c265f2bb674c3f5daadfdd5c15ea0d1
 git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: ALSA: hda - Expand pin_match function to match upcoming new tbls
Hui Wang [Mon, 2 Sep 2019 04:28:12 +0000 (12:28 +0800)]
UBUNTU: SAUCE: ALSA: hda - Expand pin_match function to match upcoming new tbls

BugLink: https://bugs.launchpad.net/bugs/1842265
With the existing pintbl, we already have many entries in it. it is
better to figure out a new way to reduce the size of the pintbl.

We plan to define a new tbl which will match more machines with a
single tbl, To do that, this function doesn't need to match all valid
pins between machine and tbl, it just needs to match all pins defined
in the tbl with the machine.

And the plan is to move some tbls from pin_fixup_tbl to
fallback_pin_fixup_tbl gradually.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 0fc1e447e9e474c2460df8d0378f899b8813e1d2
 git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: drm/i915/fbc: disable framebuffer compression on IceLake
You-Sheng Yang [Mon, 2 Sep 2019 12:18:54 +0000 (20:18 +0800)]
UBUNTU: SAUCE: drm/i915/fbc: disable framebuffer compression on IceLake

BugLink: https://bugs.launchpad.net/bugs/1840236
This is the same thing to commit
edf87a92e112ede83916155a156e41787ea11186 but found on IceLake platforms
as well.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111484
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Debian] package bpftool in linux-tools-common
Quentin Monnet [Fri, 30 Aug 2019 17:43:53 +0000 (18:43 +0100)]
UBUNTU: [Debian] package bpftool in linux-tools-common

BugLink: https://bugs.launchpad.net/bugs/1774815
bpftool is a debugging and introspection tool for BPF elements,
developed by the BPF kernel community. Its source code is located in the
kernel repository, at tools/bpf/bpftool. Package it in linux-tools and
linux-tools-common.

Along the binary, package manual pages and bash completion file. Note
that the generated manual page bpf-helpers.7 is NOT packaged, as this
one is now included in the man-pages repository.

bpftool itself is installed under /usr/sbin/, to be consistent with its
Makefile.

Dependency python-docutils is added to Build-Depends-Indep, in order to
provide rst2man which is necessary to build bpftool's manual pages.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Wed, 4 Sep 2019 15:45:52 +0000 (10:45 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-9.10
Paolo Pisati [Tue, 3 Sep 2019 08:27:33 +0000 (10:27 +0200)]
UBUNTU: Ubuntu-5.3.0-9.10

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: link-to-tracker: update tracking bug
Paolo Pisati [Tue, 3 Sep 2019 08:26:58 +0000 (10:26 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1842393
Properties: no-test-build
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: rebase to v5.3-rc7
Paolo Pisati [Tue, 3 Sep 2019 08:16:26 +0000 (10:16 +0200)]
UBUNTU: rebase to v5.3-rc7

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Packaging]: ignore vbox modules when vbox is disabled
Thadeu Lima de Souza Cascardo [Wed, 28 Aug 2019 12:02:08 +0000 (09:02 -0300)]
UBUNTU: [Packaging]: ignore vbox modules when vbox is disabled

When the build of virtualbox modules is disabled, its modules should be
ignored, just like when zfs is disabled.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: shiftfs: mark slab objects SLAB_RECLAIM_ACCOUNT
Christian Brauner [Fri, 30 Aug 2019 12:14:31 +0000 (14:14 +0200)]
UBUNTU: SAUCE: shiftfs: mark slab objects SLAB_RECLAIM_ACCOUNT

BugLink: https://bugs.launchpad.net/bugs/1842059
Shiftfs does not mark it's slab cache as reclaimable. While this is not
a big deal it is not nice to the kernel in general. The shiftfs cache is
not so important that it can't be reclaimed.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: shiftfs: fix buggy unlink logic
Christian Brauner [Thu, 29 Aug 2019 18:45:07 +0000 (20:45 +0200)]
UBUNTU: SAUCE: shiftfs: fix buggy unlink logic

BugLink: https://bugs.launchpad.net/bugs/1841977
The way we messed with setting i_nlink was brittle and wrong. We used to
set the i_nlink of the shiftfs dentry to be deleted to the i_nlink count
of the underlay dentry of the directory it resided in which makes no
sense whatsoever. We also missed drop_nlink() which is crucial since
i_nlink affects whether a dentry is cleaned up on dput().
With this I cannot reproduce the bug anymore where shiftfs misleads zfs
into believing that a deleted file can not be removed from disk because
it is still referenced.

Fixes: commit 87011da41961 ("shiftfs: rework and extend")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agopinctrl: intel: remap the pin number to gpio offset for irq enabled pin
Chris Chiu [Mon, 26 Aug 2019 04:41:24 +0000 (12:41 +0800)]
pinctrl: intel: remap the pin number to gpio offset for irq enabled pin

BugLink: https://bugs.launchpad.net/bugs/1841396
On Asus X571GT, GPIO 297 is configured as an interrupt and serves
for the touchpad. The touchpad will report input events much less
than expected after S3 suspend/resume, which results in extremely
slow cursor movement. However, the number of interrupts observed
from /proc/interrupts increases much more than expected even no
touching touchpad.

This is due to the value of PADCFG0 of PIN 225 for the interrupt
has been changed from 0x80800102 to 0x80100102. The GPIROUTIOXAPIC
is toggled on which results in the spurious interrupts. The PADCFG0
of PIN 225 is expected to be saved during suspend, but the 297 is
saved instead because the gpiochip_line_is_irq() expect the GPIO
offset but what's really passed to it is PIN number. In this case,
the /sys/kernel/debug/pinctrl/INT3450:00/gpio-ranges shows

288: INT3450:00 GPIOS [436 - 459] PINS [216 - 239]

So gpiochip_line_is_irq() returns true for GPIO offset 297, the
suspend routine spuriously saves the content for PIN 297 which
we expect to save for PIN 225.

This commit maps the PIN number to GPIO offset first in the
intel_pinctrl_should_save() to make sure the values for the
specific PINs can be correctly saved and then restored.

Fixes: c538b9436751 ("pinctrl: intel: Only restore pins that are used by the driver")
Signed-off-by: Chris Chiu <chiu@endlessm.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(cherry picked from commit 6cb0880f08229360c6c57416de075aa96930be78 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoarm64: dts: qcom: Add Asus NovaGo TP370QL
Jeffrey Hugo [Fri, 21 Jun 2019 14:59:51 +0000 (07:59 -0700)]
arm64: dts: qcom: Add Asus NovaGo TP370QL

BugLink: https://bugs.launchpad.net/bugs/1842050
This adds the initial DT for the Asus NovaGo TP370QL laptop.  Supported
functionality includes USB (host), microSD-card, keyboard, and trackpad.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
(cherry picked from commit 722eb2f65acc4cebeb710fc7cc98f51513e90f1f)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoarm64: dts: qcom: Add HP Envy x2
Jeffrey Hugo [Fri, 21 Jun 2019 14:57:21 +0000 (07:57 -0700)]
arm64: dts: qcom: Add HP Envy x2

BugLink: https://bugs.launchpad.net/bugs/1842050
This adds the initial DT for the HP Envy x2 laptop.  Supported
functionality includes USB (host), microSD-card, keyboard, and trackpad.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
(cherry picked from commit 3f527d311932791fde67ffec32536d22d5dd3030)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoarm64: dts: qcom: Add Lenovo Miix 630
Jeffrey Hugo [Fri, 21 Jun 2019 14:54:50 +0000 (07:54 -0700)]
arm64: dts: qcom: Add Lenovo Miix 630

BugLink: https://bugs.launchpad.net/bugs/1842050
This adds the initial DT for the Lenovo Miix 630 laptop.  Supported
functionality includes USB (host), microSD-card, keyboard, and trackpad.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
(cherry picked from commit 2c6d2d3a580a852fe0a694e13af502a862293e0e)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: import aufs driver
Seth Forshee [Fri, 30 Aug 2019 14:55:56 +0000 (09:55 -0500)]
UBUNTU: SAUCE: import aufs driver

Import aufs4.x-rcN 20190805 from https://github.com/sfjro/aufs4-standalone
commit d6c8327c57132b4f2d88a43de257497ccbfe0bc9, updated to fix some
trivial conflicts and to include the changes from these commits:

 - UBUNTU: SAUCE: aufs: rwsem owner changed to atmoic_long_t in 5.3
 - UBUNTU: SAUCE: aufs: add "WITH Linux-syscall-note" to SPDX tag of uapi headers

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Fri, 30 Aug 2019 17:15:03 +0000 (12:15 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-8.9
Paolo Pisati [Mon, 26 Aug 2019 08:09:42 +0000 (10:09 +0200)]
UBUNTU: Ubuntu-5.3.0-8.9

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Config] updateconfigs after v5.3-rc6 rebase
Paolo Pisati [Mon, 26 Aug 2019 08:09:15 +0000 (10:09 +0200)]
UBUNTU: [Config] updateconfigs after v5.3-rc6 rebase

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: update dkms package versions
Paolo Pisati [Mon, 26 Aug 2019 08:01:43 +0000 (10:01 +0200)]
UBUNTU: update dkms package versions

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: rebase to v5.3-rc6
Paolo Pisati [Mon, 26 Aug 2019 08:05:52 +0000 (10:05 +0200)]
UBUNTU: rebase to v5.3-rc6

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Packaging] resync getabis
Paolo Pisati [Mon, 26 Aug 2019 08:00:23 +0000 (10:00 +0200)]
UBUNTU: [Packaging] resync getabis

BugLink: http://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Packaging] add build dependencies for compression algorithms
Seth Forshee [Fri, 23 Aug 2019 17:59:22 +0000 (12:59 -0500)]
UBUNTU: [Packaging] add build dependencies for compression algorithms

BugLink: https://bugs.launchpad.net/bugs/1840934
I forgot to add build dependencies for the compression algorithm
changes in "UBUNTU: [Config] change kernel compression method to
improve boot speed." Add them now.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Debian] disable dkms builds for autopktest rebuilds
Seth Forshee [Fri, 23 Aug 2019 11:36:44 +0000 (06:36 -0500)]
UBUNTU: [Debian] disable dkms builds for autopktest rebuilds

If the specified package versions have been deleted, rebuilds in
autopkgtest may fail and block promotion of other packages.
Disable the dkms package builds for autopkgtest rebuilds to
prevent this from happening.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: rtw88: pci: enable MSI interrupt
Yu-Yen Ting [Wed, 7 Aug 2019 08:28:07 +0000 (16:28 +0800)]
UBUNTU: SAUCE: rtw88: pci: enable MSI interrupt

BugLink: https://bugs.launchpad.net/bugs/1838133
MSI interrupt should be enabled on certain platform.

Add a module parameter disable_msi to disable MSI interrupt,
driver will then use legacy interrupt instead.

One could rebind the PCI device, probe() will pick up the
new value of the module parameter. Such as:

    echo '0000:01:00.0' > /sys/bus/pci/drivers/rtw_pci/unbind
    echo '0000:01:00.0' > /sys/bus/pci/drivers/rtw_pci/bind

Tested-by: Ján Veselý <jano.vesely@gmail.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Yu-Yen Ting <steventing@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Link: https://lore.kernel.org/linux-wireless/1565166487-22048-1-git-send-email-yhchuang@realtek.com/
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: add BT co-existence support
Yan-Hsuan Chuang [Wed, 31 Jul 2019 12:22:47 +0000 (20:22 +0800)]
rtw88: add BT co-existence support

BugLink: https://bugs.launchpad.net/bugs/1838133
Both RTL8822BE/RTL8822CE are WiFi + BT combo chips. Since
WiFi and BT use 2.4GHz to transmit, it is important to
make sure they run concurrently without interfering each
other. To achieve this, WiFi driver requires a mechanism
to collaborate with BT, whether they share the antenna(s)
or not.

The final decision made by the co-existence mechanism is
to choose a proper strategy, or called "tdma/table", and
inform either firmware or hardware of the strategy.
To choose a strategy, co-existence mechanism needs to
have enough information from WiFi and BT.

BT information is provided through firmware C2H.
The contents describe the current status of BT, such as
if BT is connected or is idle, or the profile that is
being used.

WiFi information can be provided by WiFi itself. The WiFi
driver will call various of "notify" functions each time
the state of WiFi changed, such as WiFi is going to switch
channel or is connected. Also WiFi driver can know if it
shares antenna with BT by reading efuse content. Antenna
configuration of the module will finally get a different
strategy.

Upon receiving any information from WiFi or BT, the WiFi
driver will run the co-existence mechanism immediately.
It will set the RF antenna configuration according to the
strategy through the TDMA H2C to firmware and a hardware
table. Based on the tdma/table, WiFi + BT should work with
each other, and having a better user experience.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 4136214f7c46839c15f0f177fe1d5052302c0205 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: enclose c2h cmd handle with mutex
Yan-Hsuan Chuang [Wed, 31 Jul 2019 12:22:46 +0000 (20:22 +0800)]
rtw88: enclose c2h cmd handle with mutex

BugLink: https://bugs.launchpad.net/bugs/1838133
C2H commands that cannot be handled in IRQ context should
be protected by rtwdev->mutex. Because they might have a
sequece of hardware operations that does not want to be
interfered.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 713a30de45a2ec8619228280e4832b5d6a34e759 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: allow c2h operation in irq context
Yan-Hsuan Chuang [Wed, 31 Jul 2019 12:22:45 +0000 (20:22 +0800)]
rtw88: allow c2h operation in irq context

BugLink: https://bugs.launchpad.net/bugs/1838133
Some of the c2h operations are small and can be done
under interrupt context. For the rest that requires
more operations or can go sleep, enqueue onto c2h queue.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 0d762f031d702272a17910fbeb45ab15b9673617 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: pci: remove set but not used variable 'ip_sel'
YueHaibing [Fri, 26 Jul 2019 14:20:18 +0000 (22:20 +0800)]
rtw88: pci: remove set but not used variable 'ip_sel'

BugLink: https://bugs.launchpad.net/bugs/1838133
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/realtek/rtw88/pci.c: In function 'rtw_pci_phy_cfg':
drivers/net/wireless/realtek/rtw88/pci.c:993:6: warning:
 variable 'ip_sel' set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit d1b68c1182380e50cad4b7bd76ee68f64951a64b linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: use txpwr_lmt_cfg_pair struct, not arrays
Brian Norris [Sat, 13 Jul 2019 01:32:32 +0000 (18:32 -0700)]
rtw88: use txpwr_lmt_cfg_pair struct, not arrays

BugLink: https://bugs.launchpad.net/bugs/1838133
We're just trusting that these tables are of the right dimensions, when
we could do better by just using the struct directly. Let's expose the
struct txpwr_lmt_cfg_pair instead.

The table changes were made by using some Vim macros, so that should
help prevent any translation mistakes along the way.

Remaining work: get the 'void *data' out of the generic struct
rtw_table; all of these tables really deserve to be their own data
structure, with proper type fields.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 3457f86da60de73705bce8fe32a36651441e639e linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: debug: dump tx power indexes in use
Zong-Zhe Yang [Tue, 16 Jul 2019 05:28:20 +0000 (13:28 +0800)]
rtw88: debug: dump tx power indexes in use

BugLink: https://bugs.launchpad.net/bugs/1838133
Add a read entry in debugfs to dump current tx power
indexes in use for each path and each rate section.
The corresponding power bases, power by rate, and
power limit are also included.

Also this patch fixes unused function warning.

Fixes: b741422218ef ("rtw88: refine flow to get tx power index")
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 8812022cb2fdaa1c6d7e0c3e028b45ca039650ea linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: pci: Use DMA sync instead of remapping in RX ISR
Jian-Hong Pan [Thu, 11 Jul 2019 05:24:27 +0000 (13:24 +0800)]
rtw88: pci: Use DMA sync instead of remapping in RX ISR

BugLink: https://bugs.launchpad.net/bugs/1838133
Since each skb in RX ring is reused instead of new allocation, we can
treat the DMA in a more efficient way by DMA synchronization.

Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 29b68a920f6abb7b5ba21ab4b779f62d536bac9b linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: pci: Rearrange the memory usage for skb in RX ISR
Jian-Hong Pan [Thu, 11 Jul 2019 05:24:26 +0000 (13:24 +0800)]
rtw88: pci: Rearrange the memory usage for skb in RX ISR

BugLink: https://bugs.launchpad.net/bugs/1838133
Testing with RTL8822BE hardware, when available memory is low, we
frequently see a kernel panic and system freeze.

First, rtw_pci_rx_isr encounters a memory allocation failure (trimmed):

rx routine starvation
WARNING: CPU: 7 PID: 9871 at drivers/net/wireless/realtek/rtw88/pci.c:822 rtw_pci_rx_isr.constprop.25+0x35a/0x370 [rtwpci]
[ 2356.580313] RIP: 0010:rtw_pci_rx_isr.constprop.25+0x35a/0x370 [rtwpci]

Then we see a variety of different error conditions and kernel panics,
such as this one (trimmed):

rtw_pci 0000:02:00.0: pci bus timeout, check dma status
skbuff: skb_over_panic: text:00000000091b6e66 len:415 put:415 head:00000000d2880c6f data:000000007a02b1ea tail:0x1df end:0xc0 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:105!
invalid opcode: 0000 [#1] SMP NOPTI
RIP: 0010:skb_panic+0x43/0x45

When skb allocation fails and the "rx routine starvation" is hit, the
function returns immediately without updating the RX ring. At this
point, the RX ring may continue referencing an old skb which was already
handed off to ieee80211_rx_irqsafe(). When it comes to be used again,
bad things happen.

This patch allocates a new, data-sized skb first in RX ISR. After
copying the data in, we pass it to the upper layers. However, if skb
allocation fails, we effectively drop the frame. In both cases, the
original, full size ring skb is reused.

In addition, to fixing the kernel crash, the RX routine should now
generally behave better under low memory conditions.

Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=204053
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit ee6db78f5db9bfe426c57a1ec9713827ebccd2d4 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agortw88: Fix misuse of GENMASK macro
Joe Perches [Wed, 10 Jul 2019 05:04:22 +0000 (22:04 -0700)]
rtw88: Fix misuse of GENMASK macro

BugLink: https://bugs.launchpad.net/bugs/1838133
Arguments are supposed to be ordered high then low.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 5ff29d836d1beb347080bd96e6321c811a8e3f62 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: selftests: fib_tests: assign address to dummy1 for rp_filter tests
Seth Forshee [Wed, 21 Aug 2019 20:09:45 +0000 (15:09 -0500)]
UBUNTU: SAUCE: selftests: fib_tests: assign address to dummy1 for rp_filter tests

The rp_filter test tries to ping using the dummy1 interface
without assigning it an IP address. Give the interface an IP
address so the tests will pass.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] CONFIG_TEST_BLACKHOLE_DEV=m
Seth Forshee [Wed, 21 Aug 2019 19:27:36 +0000 (14:27 -0500)]
UBUNTU: [Config] CONFIG_TEST_BLACKHOLE_DEV=m

Enable this module for use by the net selftests.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] change kernel compression method to improve boot speed
Seth Forshee [Wed, 21 Aug 2019 15:08:02 +0000 (10:08 -0500)]
UBUNTU: [Config] change kernel compression method to improve boot speed

BugLink: https://bugs.launchpad.net/bugs/1840934
Adjust our default kernel compression method to improve boot
speed as per cking's testing. Detailed results are avaialble in
the bug.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] Enable VIMC module
Po-Hsu Lin [Wed, 14 Aug 2019 06:58:19 +0000 (14:58 +0800)]
UBUNTU: [Config] Enable VIMC module

BugLink: https://bugs.launchpad.net/bugs/1831482
VIMC is a virtual media controller that can emulate a real media device.
This is useful for automated tests, and development of multimedia frameworks.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agomfd: intel-lpss: Remove D3cold delay
Kai-Heng Feng [Tue, 13 Aug 2019 18:56:54 +0000 (02:56 +0800)]
mfd: intel-lpss: Remove D3cold delay

BugLink: https://bugs.launchpad.net/bugs/1840075
Goodix touchpad may drop its first couple input events when
i2c-designware-platdrv and intel-lpss it connects to took too long to
runtime resume from runtime suspended state.

This issue happens becuase the touchpad has a rather small buffer to
store up to 13 input events, so if the host doesn't read those events in
time (i.e. runtime resume takes too long), events are dropped from the
touchpad's buffer.

The bottleneck is D3cold delay it waits when transitioning from D3cold
to D0, hence remove the delay to make the resume faster. I've tested
some systems with intel-lpss and haven't seen any regression.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202683
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit 76380a607ba0b28627c9b4b55cd47a079a59624b linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoRevert "UBUNTU: SAUCE: i2c: designware: Add disable runtime pm quirk"
Kai-Heng Feng [Tue, 13 Aug 2019 18:56:53 +0000 (02:56 +0800)]
Revert "UBUNTU: SAUCE: i2c: designware: Add disable runtime pm quirk"

BugLink: https://bugs.launchpad.net/bugs/1840075
This reverts commit e2fedb6fddb6b1e886976cf8e97e575459fd7613.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoRevert "UBUNTU: SAUCE: i2c: designware: add Inpiron/Vostro 7590 into i2c quirk"
Kai-Heng Feng [Tue, 13 Aug 2019 18:56:52 +0000 (02:56 +0800)]
Revert "UBUNTU: SAUCE: i2c: designware: add Inpiron/Vostro 7590 into i2c quirk"

BugLink: https://bugs.launchpad.net/bugs/1840075
This reverts commit fdfff857ee0613c3a6fae86bf634fbabf0cfea1a.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoRevert "UBUNTU: SAUCE: i2c: designware: add Inpiron 7591 into i2c quirk"
Kai-Heng Feng [Tue, 13 Aug 2019 18:56:51 +0000 (02:56 +0800)]
Revert "UBUNTU: SAUCE: i2c: designware: add Inpiron 7591 into i2c quirk"

BugLink: https://bugs.launchpad.net/bugs/1840075
This reverts commit 25947a1872c38c5066c0ca7e9edc27da6479cd6c.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoRevert "UBUNTU: SAUCE: i2c: designware: add G3 3590 into i2c quirk"
Kai-Heng Feng [Tue, 13 Aug 2019 18:56:50 +0000 (02:56 +0800)]
Revert "UBUNTU: SAUCE: i2c: designware: add G3 3590 into i2c quirk"

BugLink: https://bugs.launchpad.net/bugs/1840075
This reverts commit 6874d7c3765401ca27de5859e9c578ea703a44ba.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoparport: parport_serial: Add support for Sunix Multi I/O boards
Kai-Heng Feng [Tue, 13 Aug 2019 11:55:50 +0000 (19:55 +0800)]
parport: parport_serial: Add support for Sunix Multi I/O boards

BugLink: https://bugs.launchpad.net/bugs/1826716
Sunix Multi I/O boards are different to Timedia's.

This patch adds proper support for Sunix MIO boards with 1 parallel and
up to 4 serial ports.

Cc: Morris Ku <morris_ku@sunix.com>
Cc: Debbie Liu <debbie_liu@sunix.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20190809190130.30773-2-kai.heng.feng@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 605b5b4c90ecc31c5fea234f882bf4248dae4fc8 linux-next)
Acked-by: Anthony Wong <anthony.wong@canonical.com>
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoserial: 8250_pci: Add support for Sunix serial boards
Kai-Heng Feng [Tue, 13 Aug 2019 11:55:48 +0000 (19:55 +0800)]
serial: 8250_pci: Add support for Sunix serial boards

BugLink: https://bugs.launchpad.net/bugs/1826716
Add support to Sunix serial boards with up to 16 ports.

Sunix board need its own setup callback instead of using Timedia's, to
properly support more than 4 ports.

Cc: Morris Ku <morris_ku@sunix.com>
Cc: Debbie Liu <debbie_liu@sunix.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20190809190130.30773-1-kai.heng.feng@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a4b7aca30609899a925cbf24b08bfea79883254c linux-next)
Acked-by: Anthony Wong <anthony.wong@canonical.com>
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] enable secureboot signing on s390x
Dimitri John Ledkov [Tue, 16 Jul 2019 00:02:04 +0000 (01:02 +0100)]
UBUNTU: [Config] enable secureboot signing on s390x

Link: https://bugs.launchpad.net/bugs/1829749
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUbuntu: [Config] Enable CONFIG_LOCK_DOWN_KERNEL on s390x.
Dimitri John Ledkov [Fri, 9 Aug 2019 14:49:29 +0000 (15:49 +0100)]
Ubuntu: [Config] Enable CONFIG_LOCK_DOWN_KERNEL on s390x.

BugLink: https://bugs.launchpad.net/bugs/1839622
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: (lockdown) s390/ipl: lockdown kernel when booted secure
Philipp Rudo [Fri, 9 Aug 2019 14:49:28 +0000 (15:49 +0100)]
UBUNTU: SAUCE: (lockdown) s390/ipl: lockdown kernel when booted secure

BugLink: https://bugs.launchpad.net/bugs/1839622
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: shiftfs: pass correct point down
Christian Brauner [Fri, 19 Jul 2019 15:50:47 +0000 (17:50 +0200)]
UBUNTU: SAUCE: shiftfs: pass correct point down

BugLink: https://bugs.launchpad.net/bugs/1837231
This used to pass an unsigned long to copy_from_user() instead of a
void __user * pointer. This will produce warning with a sufficiently
advanced compiler.

Cc: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: shiftfs: add O_DIRECT support
Christian Brauner [Fri, 19 Jul 2019 15:50:46 +0000 (17:50 +0200)]
UBUNTU: SAUCE: shiftfs: add O_DIRECT support

BugLink: https://bugs.launchpad.net/bugs/1837223
This enabled O_DIRECT support for shiftfs if the underlay supports it.

Currently shiftfs does not handle O_DIRECT if the underlay supports it.
This is blocking dqlite - an essential part of LXD - from profiting from
the performance benefits of O_DIRECT on suitable filesystems when used
with async io such as aio or io_uring.
Overlayfs cannot support this directly since the upper filesystem in
overlay can be any filesystem. So if the upper filesystem does not
support O_DIRECT but the lower filesystem does you're out of luck.
Shiftfs does not suffer from the same problem since there is not concept
of an upper filesystem in the same way that overlayfs has it.
Essentially, shiftfs is a transparent shim relaying everything to the
underlay while overlayfs' upper layer is not (completely).

Cc: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Wed, 21 Aug 2019 14:52:57 +0000 (09:52 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-7.8
Paolo Pisati [Mon, 19 Aug 2019 13:31:24 +0000 (15:31 +0200)]
UBUNTU: Ubuntu-5.3.0-7.8

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: remove missing module after updateconfigs
Paolo Pisati [Mon, 19 Aug 2019 13:30:15 +0000 (15:30 +0200)]
UBUNTU: remove missing module after updateconfigs

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Config] updateconfigs after v5.3-rc5 rebase
Paolo Pisati [Mon, 19 Aug 2019 12:58:28 +0000 (14:58 +0200)]
UBUNTU: [Config] updateconfigs after v5.3-rc5 rebase

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: rebase to v5.3-rc5
Paolo Pisati [Mon, 19 Aug 2019 12:44:57 +0000 (14:44 +0200)]
UBUNTU: rebase to v5.3-rc5

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Packaging] resync getabis
Paolo Pisati [Mon, 19 Aug 2019 12:28:39 +0000 (14:28 +0200)]
UBUNTU: [Packaging] resync getabis

BugLink: http://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Fri, 16 Aug 2019 13:26:03 +0000 (08:26 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-6.7
Seth Forshee [Wed, 14 Aug 2019 18:25:01 +0000 (13:25 -0500)]
UBUNTU: Ubuntu-5.3.0-6.7

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: selftests/bpf: prevent headers to be compiled as C code
Andrii Nakryiko [Sun, 28 Jul 2019 03:25:23 +0000 (20:25 -0700)]
UBUNTU: SAUCE: selftests/bpf: prevent headers to be compiled as C code

Apprently listing header as a normal dependency for a binary output
makes it go through compilation as if it was C code. This currently
works without a problem, but in subsequent commits causes problems for
differently generated test.h for test_progs. Marking those headers as
order-only dependency solves the issue.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
(cherry picked from commit 61098e89e6c80d6a141774ef8ee41e38471b069e
 git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Wed, 14 Aug 2019 17:12:54 +0000 (12:12 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-5.6
Seth Forshee [Tue, 13 Aug 2019 14:16:06 +0000 (09:16 -0500)]
UBUNTU: Ubuntu-5.3.0-5.6

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Config] enable zfs build
Seth Forshee [Tue, 13 Aug 2019 14:15:18 +0000 (09:15 -0500)]
UBUNTU: [Config] enable zfs build

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: update dkms package versions
Seth Forshee [Tue, 13 Aug 2019 12:24:54 +0000 (07:24 -0500)]
UBUNTU: update dkms package versions

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Tue, 13 Aug 2019 12:19:11 +0000 (07:19 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-4.5
Seth Forshee [Mon, 12 Aug 2019 15:41:27 +0000 (10:41 -0500)]
UBUNTU: Ubuntu-5.3.0-4.5

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Packaging] update helper scripts
Seth Forshee [Mon, 12 Aug 2019 14:08:21 +0000 (09:08 -0500)]
UBUNTU: [Packaging] update helper scripts

BugLink: http://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: [Packaging] resync getabis
Seth Forshee [Mon, 12 Aug 2019 14:08:20 +0000 (09:08 -0500)]
UBUNTU: [Packaging] resync getabis

BugLink: http://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: enable nvidia dkms build
Seth Forshee [Mon, 12 Aug 2019 14:38:29 +0000 (09:38 -0500)]
UBUNTU: enable nvidia dkms build

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: update dkms package versions
Seth Forshee [Mon, 12 Aug 2019 12:30:23 +0000 (07:30 -0500)]
UBUNTU: update dkms package versions

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: rebase to v5.3-rc4
Seth Forshee [Mon, 12 Aug 2019 12:29:43 +0000 (07:29 -0500)]
UBUNTU: rebase to v5.3-rc4

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: bcache: fix deadlock in bcache_allocator
Andrea Righi [Wed, 7 Aug 2019 12:58:47 +0000 (14:58 +0200)]
UBUNTU: SAUCE: bcache: fix deadlock in bcache_allocator

bcache_allocator() can call the following:

 bch_allocator_thread()
  -> bch_prio_write()
     -> bch_bucket_alloc()
        -> wait on &ca->set->bucket_wait

But the wake up event on bucket_wait is supposed to come from
bch_allocator_thread() itself => deadlock:

[ 1158.490744] INFO: task bcache_allocato:15861 blocked for more than 10 seconds.
[ 1158.495929]       Not tainted 5.3.0-050300rc3-generic #201908042232
[ 1158.500653] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1158.504413] bcache_allocato D    0 15861      2 0x80004000
[ 1158.504419] Call Trace:
[ 1158.504429]  __schedule+0x2a8/0x670
[ 1158.504432]  schedule+0x2d/0x90
[ 1158.504448]  bch_bucket_alloc+0xe5/0x370 [bcache]
[ 1158.504453]  ? wait_woken+0x80/0x80
[ 1158.504466]  bch_prio_write+0x1dc/0x390 [bcache]
[ 1158.504476]  bch_allocator_thread+0x233/0x490 [bcache]
[ 1158.504491]  kthread+0x121/0x140
[ 1158.504503]  ? invalidate_buckets+0x890/0x890 [bcache]
[ 1158.504506]  ? kthread_park+0xb0/0xb0
[ 1158.504510]  ret_from_fork+0x35/0x40

Fix by making the call to bch_prio_write() non-blocking, so that
bch_allocator_thread() never waits on itself.

Moreover, make sure to wake up the garbage collector thread when
bch_prio_write() is failing to allocate buckets.

BugLink: https://bugs.launchpad.net/bugs/1784665
BugLink: https://bugs.launchpad.net/bugs/1796292
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: SAUCE: shiftfs: enable overlayfs on shiftfs
Christian Brauner [Thu, 1 Aug 2019 18:08:29 +0000 (20:08 +0200)]
UBUNTU: SAUCE: shiftfs: enable overlayfs on shiftfs

BugLink: https://bugs.launchpad.net/bugs/1838677
This patch enables overlayfs to use shiftfs as an underlay.

Currently it is not possible to use overlayfs on top of shiftfs. This
means Docker inside of LXD cannot make user of the overlay2 graph driver
which is blocking users such as Travis from making use of it
efficiently.

Co-Developed-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
5 years agoUBUNTU: SAUCE: Revert "kbuild: modpost: do not parse unnecessary rules for vmlinux...
Seth Forshee [Thu, 8 Aug 2019 14:13:18 +0000 (09:13 -0500)]
UBUNTU: SAUCE: Revert "kbuild: modpost: do not parse unnecessary rules for vmlinux modpost"

This reverts commit a721588d9475cbbf9e8b3ae1a69b1dea88d01653.
This commit is causing issues building zfs, so reverting until
a fix is available upstream.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Start new release
Seth Forshee [Thu, 8 Aug 2019 14:06:23 +0000 (09:06 -0500)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
5 years agoUBUNTU: Ubuntu-5.3.0-3.4
Paolo Pisati [Mon, 5 Aug 2019 16:17:10 +0000 (18:17 +0200)]
UBUNTU: Ubuntu-5.3.0-3.4

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: [Config] add mux-* to modules.ignore
Paolo Pisati [Mon, 5 Aug 2019 16:13:40 +0000 (18:13 +0200)]
UBUNTU: [Config] add mux-* to modules.ignore

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
5 years agoUBUNTU: SAUCE: aufs: add "WITH Linux-syscall-note" to SPDX tag of uapi headers
Paolo Pisati [Mon, 5 Aug 2019 15:17:51 +0000 (17:17 +0200)]
UBUNTU: SAUCE: aufs: add "WITH Linux-syscall-note" to SPDX tag of uapi headers

See also:

commit d9c5252295218df4cfe64353aa860d7b5c8700ef
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date:   Thu Jul 25 16:58:31 2019 +0900

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>