]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/log
mirror_ubuntu-hirsute-kernel.git
3 years agoUBUNTU: zfs-modules.ignore: add zzstd
Andrea Righi [Mon, 15 Feb 2021 10:52:26 +0000 (11:52 +0100)]
UBUNTU: zfs-modules.ignore: add zzstd

The last zfs update introduced a new 'zzstd' ko module, so add it to the
ignore list to avoid breaking cross-compile builds.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs/annotations after rebase to 5.11
Andrea Righi [Mon, 15 Feb 2021 09:42:16 +0000 (10:42 +0100)]
UBUNTU: [Config] update configs/annotations after rebase to 5.11

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 15 Feb 2021 15:28:41 +0000 (16:28 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11
Andrea Righi [Mon, 15 Feb 2021 14:52:22 +0000 (15:52 +0100)]
UBUNTU: Rebase to v5.11

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 15 Feb 2021 09:29:15 +0000 (10:29 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-8.9
Andrea Righi [Mon, 8 Feb 2021 10:56:23 +0000 (11:56 +0100)]
UBUNTU: Ubuntu-5.11.0-8.9

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc7
Andrea Righi [Mon, 8 Feb 2021 10:55:36 +0000 (11:55 +0100)]
UBUNTU: Rebase to v5.11-rc7

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] re-enable ZFS
Andrea Righi [Mon, 8 Feb 2021 10:55:03 +0000 (11:55 +0100)]
UBUNTU: [Config] re-enable ZFS

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 8 Feb 2021 10:50:14 +0000 (11:50 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] Set CONFIG_TMPFS_INODE64=n for s390x
Seth Forshee [Fri, 5 Feb 2021 13:32:54 +0000 (07:32 -0600)]
UBUNTU: [Config] Set CONFIG_TMPFS_INODE64=n for s390x

Our testing turned up the following behavior on s390x with 5.9+:

 # mount -t tmpfs nodev test
 # mount -o remount,rw test
 mount: /home/ubuntu/test: mount point not mounted or bad option.
 # dmesg | tail -n2
 [ 3597.759604] tmpfs: Cannot use inode64 with <64bit inums in kernel

This is because we have CONFIG_TMPFS_INODE64=y, but ino_t is only
32-bit on s390. tmpfs does not handle this situation well. It
sets the inode size to 64-bit on mount without checking the size
of ino_t. It then prints "inode64" in the mount options, so the
remount pases this option. At this point it does do a check of
the ino_t size, and refuses to mount.

Oddly, aside from the remount issue it doesn't appear that this
should cause any big problems. inode numbers might wrap, but
there's already logic in place to do that anyway for the inode32
mount option, and I can't see that the behavior will differ at
all. But upstream needs to handle this better, so let's disable
64-bit inodes in tmpfs for s390x until there's a fix.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: tmpfs: Don't use 64-bit inodes by defulat with 32-bit ino_t
Seth Forshee [Fri, 5 Feb 2021 18:10:37 +0000 (12:10 -0600)]
UBUNTU: SAUCE: tmpfs: Don't use 64-bit inodes by defulat with 32-bit ino_t

Currently there seems to be an assumption in tmpfs that 64-bit
architectures also have a 64-bit ino_t. This is not true; s390 at
least has a 32-bit ino_t. With CONFIG_TMPFS_INODE64=y tmpfs
mounts will get 64-bit inode numbers and display "inode64" in the
mount options, but passing the "inode64" mount option will fail.
This leads to the following behavior:

 # mkdir mnt
 # mount -t tmpfs nodev mnt
 # mount -o remount,rw mnt
 mount: /home/ubuntu/mnt: mount point not mounted or bad option.

As mount sees "inode64" in the mount options and thus passes it
in the options for the remount.

Ideally CONFIG_TMPFS_INODE64 would depend on sizeof(ino_t) < 8,
but I don't think it's possible to test for this (potentially
CONFIG_ARCH_HAS_64BIT_INO_T or similar could be added, but I'm
not sure whether or not that is wanted). So fix this by simply
refusing to honor the CONFIG_TMPFS_INODE64 setting when
sizeof(ino_t) < 8.

Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb")
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: HID: intel-ish-hid: ipc: Add Tiger Lake H PCI device ID
You-Sheng Yang [Fri, 5 Feb 2021 07:29:22 +0000 (15:29 +0800)]
UBUNTU: SAUCE: HID: intel-ish-hid: ipc: Add Tiger Lake H PCI device ID

BugLink: https://bugs.launchpad.net/bugs/1914543
Added Tiger Lake H PCI device ID to the supported device list.

Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
(cherry picked from
https://patchwork.kernel.org/project/linux-input/patch/20210204083315.122952-1-vicamo.yang@canonical.com/)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agor8169: Add support for another RTL8168FP
Kai-Heng Feng [Thu, 4 Feb 2021 13:01:29 +0000 (21:01 +0800)]
r8169: Add support for another RTL8168FP

BugLink: https://bugs.launchpad.net/bugs/1914604
According to the vendor driver, the new chip with XID 0x54b is
essentially the same as the one with XID 0x54a, but it doesn't need the
firmware.

So add support accordingly.

(backported from commit e6d6ca6e12049dfbff6ac8b029678d2d2c55c34f linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-7.8
Andrea Righi [Mon, 1 Feb 2021 09:27:52 +0000 (10:27 +0100)]
UBUNTU: Ubuntu-5.11.0-7.8

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs/annotations after rebase to 5.11-rc6
Andrea Righi [Mon, 1 Feb 2021 09:25:37 +0000 (10:25 +0100)]
UBUNTU: [Config] update configs/annotations after rebase to 5.11-rc6

Add CONFIG_LEDS_RT8515=m to all architectures, except s390x.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc6
Andrea Righi [Mon, 1 Feb 2021 09:24:23 +0000 (10:24 +0100)]
UBUNTU: Rebase to v5.11-rc6

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 1 Feb 2021 09:24:04 +0000 (10:24 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 1 Feb 2021 09:09:27 +0000 (10:09 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: x86/entry: build thunk_$(BITS) only if CONFIG_PREEMPTION=y
Andrea Righi [Thu, 14 Jan 2021 11:06:12 +0000 (12:06 +0100)]
UBUNTU: SAUCE: x86/entry: build thunk_$(BITS) only if CONFIG_PREEMPTION=y

With CONFIG_PREEMPTION disabled, arch/x86/entry/thunk_64.o is just an
empty object file.

With the newer binutils (tested with 2.35.90.20210113-1ubuntu1) the GNU
assembler doesn't generate a symbol table for empty object files and
objtool fails with the following error when a valid symbol table cannot
be found:

  arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table

To prevent this from happening, build thunk_$(BITS).o only if
CONFIG_PREEMPTION is enabled.

BugLink: https://bugs.launchpad.net/bugs/1911359
Fixes: 320100a5ffe5 ("x86/entry: Remove the TRACE_IRQS cruft")
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] Don't disable CONFIG_DEBUG_INFO in headers packages
Seth Forshee [Fri, 29 Jan 2021 19:13:45 +0000 (13:13 -0600)]
UBUNTU: [Packaging] Don't disable CONFIG_DEBUG_INFO in headers packages

This config is enabled during the kernel build (though modules
are stripped), but we disable it in the config installed by our
headers packages so that dkms modules do not have debug
information. With 5.11 this is causing external modules to fail
to load, and the default behavior of dkms is to strip modules,
so it's unnecessary to disable CONFIG_DEBUG_INFO in the installed
config file. Stop disabling it so that external modules can load.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agortw88: reduce the log level for failure of tx report
Chin-Yen Lee [Tue, 26 Jan 2021 07:49:26 +0000 (15:49 +0800)]
rtw88: reduce the log level for failure of tx report

BugLink: https://bugs.launchpad.net/bugs/1913263
Sometimes driver does not get tx report from firmware because wifi
environment is too noisy to get ack from AP about a TX frame,
or firmware is too busy to report driver in a estimated time.
But the condition will not affect wifi function or throughput.
So we reduce the log level to rtw_debug instead of scary backtrace.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201228082433.16431-1-pkshih@realtek.com
(cherry picked from commit ac9533d2a637464588c03d1a247567ea95d2bc59 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: PCI/DPC: Disable DPC interrupt during suspend
Kai-Heng Feng [Fri, 29 Jan 2021 08:02:45 +0000 (16:02 +0800)]
UBUNTU: SAUCE: PCI/DPC: Disable DPC interrupt during suspend

BugLink: https://bugs.launchpad.net/bugs/1913691
Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in
hint") enables ACS, and some platforms lose its NVMe after resume from
firmware:
[   50.947816] pcieport 0000:00:1b.0: DPC: containment event, status:0x1f01 source:0x0000
[   50.947817] pcieport 0000:00:1b.0: DPC: unmasked uncorrectable error detected
[   50.947829] pcieport 0000:00:1b.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Receiver ID)
[   50.947830] pcieport 0000:00:1b.0:   device [8086:06ac] error status/mask=00200000/00010000
[   50.947831] pcieport 0000:00:1b.0:    [21] ACSViol                (First)
[   50.947841] pcieport 0000:00:1b.0: AER: broadcast error_detected message
[   50.947843] nvme nvme0: frozen state error detected, reset controller

Like what previous patch does to AER, introduce new helpers to disable
DPC interrupt and enable it on system suspend and resume, respectively.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209149
Fixes: 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in hint")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: PCI/AER: Disable AER interrupt during suspend
Kai-Heng Feng [Fri, 29 Jan 2021 08:02:44 +0000 (16:02 +0800)]
UBUNTU: SAUCE: PCI/AER: Disable AER interrupt during suspend

BugLink: https://bugs.launchpad.net/bugs/1913691
Commit 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in
hint") enables ACS, and some platforms lose its NVMe after resume from
firmware:
[   50.947816] pcieport 0000:00:1b.0: DPC: containment event, status:0x1f01 source:0x0000
[   50.947817] pcieport 0000:00:1b.0: DPC: unmasked uncorrectable error detected
[   50.947829] pcieport 0000:00:1b.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Receiver ID)
[   50.947830] pcieport 0000:00:1b.0:   device [8086:06ac] error status/mask=00200000/00010000
[   50.947831] pcieport 0000:00:1b.0:    [21] ACSViol                (First)
[   50.947841] pcieport 0000:00:1b.0: AER: broadcast error_detected message
[   50.947843] nvme nvme0: frozen state error detected, reset controller

It happens right after ACS gets enabled during resume.

To prevent that from happening, disable AER interrupt and enable it on
system suspend and resume, respectively.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209149
Fixes: 50310600ebda ("iommu/vt-d: Enable PCI ACS for platform opt in hint")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: SAUCE: PCI: Enable ACS quirk on CML root port"
Kai-Heng Feng [Fri, 29 Jan 2021 08:02:43 +0000 (16:02 +0800)]
Revert "UBUNTU: SAUCE: PCI: Enable ACS quirk on CML root port"

BugLink: https://bugs.launchpad.net/bugs/1913691
This reverts commit 5572c9666a0f1edfa9a36397064d584743e83010.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: SAUCE: PCI: Enable ACS quirk on all CML root ports"
Kai-Heng Feng [Fri, 29 Jan 2021 08:02:42 +0000 (16:02 +0800)]
Revert "UBUNTU: SAUCE: PCI: Enable ACS quirk on all CML root ports"

BugLink: https://bugs.launchpad.net/bugs/1913691
This reverts commit b5bd4db5644823db92e08560a2a88ea4c53ef250.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: selftests/seccomp: Accept any valid fd in user_notification_addfd
Seth Forshee [Thu, 28 Jan 2021 15:30:09 +0000 (09:30 -0600)]
UBUNTU: SAUCE: selftests/seccomp: Accept any valid fd in user_notification_addfd

This test expects fds to have specific values, which works fine
when the test is run standalone. However, the kselftest runner
consumes a couple of extra fds for redirection when running
tests, so the test fails when run via kselftest.

Change the test to pass on any valid fd number.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] update-version-dkms -- maintain flags fields
Andy Whitcroft [Mon, 25 Jan 2021 11:31:46 +0000 (11:31 +0000)]
UBUNTU: [Packaging] update-version-dkms -- maintain flags fields

Reinstate flags fields (fields 3 onwards) when updating version numbers.

BugLink: https://bugs.launchpad.net/bugs/1912803
Signed-off-by: Andy Whitcroft <apw@canonical.com>
3 years agoUBUNTU: [Packaging] nvidia -- use dkms-versions to define versions built
Andy Whitcroft [Thu, 21 Jan 2021 12:07:46 +0000 (12:07 +0000)]
UBUNTU: [Packaging] nvidia -- use dkms-versions to define versions built

Currently each and every Nvidia version added or removed from
dkms-versions requires a pair of corresponding changes to debian/rules
and debian/rules.d/2-binary-arch.mk.  Switch to using the listed versions
in debian/dkms-versions to generate the rules we need during build.

BugLink: https://bugs.launchpad.net/bugs/1912803
Acked-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
3 years agoUBUNTU: [Config] dkms-versions -- add the 460-server nvidia driver
Alberto Milone [Tue, 26 Jan 2021 17:25:53 +0000 (18:25 +0100)]
UBUNTU: [Config] dkms-versions -- add the 460-server nvidia driver

Add signed modules for the 460-server NVIDIA series
and update the 460 driver. Also migrate the 440-server
series to the 450-server series.

Note: this will require updating the dkms-versions once
the NVIDIA packages are in -proposed.

BugLink: https://bugs.launchpad.net/bugs/1913200
3 years agoUBUNTU: SAUCE: drm/i915/dp: Prevent setting LTTPR mode if no LTTPR is detected
Imre Deak [Tue, 5 Jan 2021 09:33:47 +0000 (17:33 +0800)]
UBUNTU: SAUCE: drm/i915/dp: Prevent setting LTTPR mode if no LTTPR is detected

BugLink: https://bugs.launchpad.net/bugs/1910211
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reference: https://gitlab.freedesktop.org/drm/intel/-/issues/2801#note_740352
Signed-off-by: Koba Ko <koba.ko@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: platform/x86: dell-uart-backlight: add get_display_mode command
Chia-Lin Kao (AceLan) [Thu, 17 Dec 2020 08:08:58 +0000 (16:08 +0800)]
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: add get_display_mode command

BugLink: https://bugs.launchpad.net/bugs/1865402
ODM asks us to use get_display_mode command to confirm the scalar's
behavior, and Windows use this command, too.
To align the behavior with Windows, remove get_scalar_status command and
replace it with get_display_mode.

Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-6.7
Andrea Righi [Mon, 25 Jan 2021 08:31:31 +0000 (09:31 +0100)]
UBUNTU: Ubuntu-5.11.0-6.7

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs and annotations after rebase to 5.11-rc5
Andrea Righi [Mon, 25 Jan 2021 08:22:39 +0000 (09:22 +0100)]
UBUNTU: [Config] update configs and annotations after rebase to 5.11-rc5

Also drop CONFIG_USB_BDC_PCI from annotations, since this driver has been
marked as BROKEN by:

 ef02684c4e67 ("usb: bdc: Make bdc pci driver depend on BROKEN")

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc5
Andrea Righi [Mon, 25 Jan 2021 08:23:17 +0000 (09:23 +0100)]
UBUNTU: Rebase to v5.11-rc5

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 25 Jan 2021 08:21:09 +0000 (09:21 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 25 Jan 2021 07:12:19 +0000 (08:12 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agothermal: intel: pch: Fix unexpected shutdown at critical temperature
Kai-Heng Feng [Thu, 21 Jan 2021 08:49:02 +0000 (16:49 +0800)]
thermal: intel: pch: Fix unexpected shutdown at critical temperature

BugLink: https://bugs.launchpad.net/bugs/1906168
Like previous patch, the intel_pch_thermal device is not in ACPI
ThermalZone namespace, so a critical trip doesn't mean shutdown.

Override the default .critical callback to prevent surprising thermal
shutdoown.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201221172345.36976-2-kai.heng.feng@canonical.com
(cherry picked from commit 03671968d0bf2db598f7e3aa98f190b76c1bb4ff linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agothermal: int340x: Fix unexpected shutdown at critical temperature
Kai-Heng Feng [Thu, 21 Jan 2021 08:49:01 +0000 (16:49 +0800)]
thermal: int340x: Fix unexpected shutdown at critical temperature

BugLink: https://bugs.launchpad.net/bugs/1906168
We are seeing thermal shutdown on Intel based mobile workstations, the
shutdown happens during the first trip handle in
thermal_zone_device_register():
kernel: thermal thermal_zone15: critical temperature reached (101 C), shutting down

However, we shouldn't do a thermal shutdown here, since
1) We may want to use a dedicated daemon, Intel's thermald in this case,
to handle thermal shutdown.

2) For ACPI based system, _CRT doesn't mean shutdown unless it's inside
ThermalZone namespace. ACPI Spec, 11.4.4 _CRT (Critical Temperature):
"... If this object it present under a device, the device’s driver
evaluates this object to determine the device’s critical cooling
temperature trip point. This value may then be used by the device’s
driver to program an internal device temperature sensor trip point."

So a "critical trip" here merely means we should take a more aggressive
cooling method.

As int340x device isn't present under ACPI ThermalZone, override the
default .critical callback to prevent surprising thermal shutdown.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201221172345.36976-1-kai.heng.feng@canonical.com
(cherry picked from commit dd47366aaa9b93ac3d97cb4ee7641d38a28a771e linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agothermal/core: Remove notify ops
Daniel Lezcano [Thu, 21 Jan 2021 08:49:00 +0000 (16:49 +0800)]
thermal/core: Remove notify ops

BugLink: https://bugs.launchpad.net/bugs/1906168
With the removal of the notifys user in a previous patches, the ops is no
longer needed, remove it.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20201210121514.25760-5-daniel.lezcano@linaro.org
(cherry picked from commit 04f111130e9afa41c10d7bcec14e00e3be8b6977 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agothermal/drivers/acpi: Use hot and critical ops
Daniel Lezcano [Thu, 21 Jan 2021 08:48:58 +0000 (16:48 +0800)]
thermal/drivers/acpi: Use hot and critical ops

BugLink: https://bugs.launchpad.net/bugs/1906168
The acpi driver wants to do a netlink notification in case of a hot or
critical trip point. Implement the corresponding ops to be used for
the thermal zone and use them instead of the notify ops.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20201210121514.25760-3-daniel.lezcano@linaro.org
(cherry picked from commit a73cb2024caa3480263a009dce91fa581b3748bf linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoSiFive HiFive Unleashed: Add PWM LEDs (D1, D2, D3, D4)
David Abdurachmanov [Fri, 5 Jun 2020 07:02:10 +0000 (07:02 +0000)]
SiFive HiFive Unleashed: Add PWM LEDs (D1, D2, D3, D4)

BugLink: https://bugs.launchpad.net/bugs/1910965
By default no functions are assigned to LEDs. It's up to user/distribution
to provide udev rules to configure them.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0007-Add-PWM-LEDs-D1-D2-D3-D4.patch)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoSiFive Unleashed CPUFreq
David Abdurachmanov [Tue, 28 Jan 2020 10:55:56 +0000 (02:55 -0800)]
SiFive Unleashed CPUFreq

BugLink: https://bugs.launchpad.net/bugs/1910965
Source: https://github.com/sifive/riscv-linux/commits/dev/paulw/cpufreq-dt-aloe-v5.3-rc4

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Upstream-Status: Not posted for a review
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0004-SiFive-Unleashed-CPUFreq.patch)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoMicrosemi PCIe expansion board DT entry.
David Abdurachmanov [Tue, 28 Jan 2020 10:47:43 +0000 (02:47 -0800)]
Microsemi PCIe expansion board DT entry.

BugLink: https://bugs.launchpad.net/bugs/1910965
Rebased on v5.5 (no actual changes).

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Upstream-Status: Inappropriate [enable feature]
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0002-Microsemi-PCIe-expansion-board-DT-entry.patch)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoPCI: microsemi: Add host driver for Microsemi PCIe controller
David Abdurachmanov [Tue, 28 Jan 2020 15:00:41 +0000 (07:00 -0800)]
PCI: microsemi: Add host driver for Microsemi PCIe controller

BugLink: https://bugs.launchpad.net/bugs/1910965
This patch adds support to the Microsemi/Microchip PolarFire
PCIe controller when configured in host (Root Complex) mode.

This was rebased for v5.5 kernel. Modifications are made based
on 3c65ebff8faedfc3386e6e1ad91adf2bdb8eeaa7 and
331f63457165a30c708280de2c77f1742c6351dc

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com>
Upstream-Status: Inappropriate [not author]

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
(backported from https://github.com/sifive/meta-sifive/blob/2020.11/recipes-kernel/linux/files/freedom-u540/0001-PCI-microsemi-Add-host-driver-for-Microsemi-PCIe-con.patch)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoriscv: dts: add initial board data for the SiFive HiFive Unmatched
Yash Shah [Wed, 2 Dec 2020 08:03:56 +0000 (13:33 +0530)]
riscv: dts: add initial board data for the SiFive HiFive Unmatched

BugLink: https://bugs.launchpad.net/bugs/1910965
Add initial board data for the SiFive HiFive Unmatched A00

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606896236-62780-5-git-send-email-yash.shah@sifive.com/)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agodt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched board
Yash Shah [Wed, 2 Dec 2020 08:03:55 +0000 (13:33 +0530)]
dt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched board

BugLink: https://bugs.launchpad.net/bugs/1910965
Add new compatible strings to the YAML DT binding document to support
SiFive's HiFive Unmatched board

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606896236-62780-4-git-send-email-yash.shah@sifive.com/)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoriscv: dts: add initial support for the SiFive FU740-C000 SoC
Yash Shah [Wed, 2 Dec 2020 08:03:54 +0000 (13:33 +0530)]
riscv: dts: add initial support for the SiFive FU740-C000 SoC

BugLink: https://bugs.launchpad.net/bugs/1910965
Add initial support for the SiFive FU540-C000 SoC. FU740-C000 is built
around the SiFIve U7 Core Complex and a TileLink interconnect.

This file is expected to grow as more device drivers are added to the
kernel.

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606896236-62780-3-git-send-email-yash.shah@sifive.com/
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agodt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC
Yash Shah [Wed, 2 Dec 2020 08:03:53 +0000 (13:33 +0530)]
dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC

BugLink: https://bugs.launchpad.net/bugs/1910965
Add new compatible strings to the DT binding documents to support SiFive
FU740-C000. Also, add new compatible strings in cpus.yaml to support the
E71 and U74 CPU cores ("harts") that are present on FU740-C000 SoC.

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606896236-62780-2-git-send-email-yash.shah@sifive.com/)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740
Yash Shah [Mon, 30 Nov 2020 05:43:04 +0000 (11:13 +0530)]
RISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740

BugLink: https://bugs.launchpad.net/bugs/1910965
SiFive FU740 has 4 ECC interrupt sources as compared to 3 in FU540.
Update the L2 cache controller driver to support this additional
interrupt in case of FU740-C000 chip.

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606714984-16593-2-git-send-email-yash.shah@sifive.com)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRISC-V: Update l2 cache DT documentation to add support for SiFive FU740
Yash Shah [Mon, 30 Nov 2020 05:43:03 +0000 (11:13 +0530)]
RISC-V: Update l2 cache DT documentation to add support for SiFive FU740

BugLink: https://bugs.launchpad.net/bugs/1910965
The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as
compared to 3 in FU540. Update the DT documentation accordingly with
"compatible" and "interrupt" property changes.

Signed-off-by: Yash Shah <yash.shah@sifive.com>
(backported from https://lore.kernel.org/linux-riscv/1606714984-16593-1-git-send-email-yash.shah@sifive.com)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agolib/decompress_unlz4.c: correctly handle zero-padding around initrds.
Dimitri John Ledkov [Thu, 14 Jan 2021 20:02:56 +0000 (20:02 +0000)]
lib/decompress_unlz4.c: correctly handle zero-padding around initrds.

lz4 compatible decompressor is simple. The format is underspecified and
relies on EOF notification to determine when to stop. Initramfs buffer
format[1] explicitly states that it can have arbitrary number of zero
padding. Thus when operating without a fill function, be extra careful to
ensure that sizes less than 4, or apperantly empty chunksizes are treated
as EOF.

To test this I have created two cpio initrds, first a normal one,
main.cpio. And second one with just a single /test-file with content
"second" second.cpio. Then i compressed both of them with gzip, and with
lz4 -l. Then I created a padding of 4 bytes (dd if=/dev/zero of=pad4 bs=1
count=4). To create four testcase initrds:

 1) main.cpio.gzip + extra.cpio.gzip = pad0.gzip
 2) main.cpio.lz4  + extra.cpio.lz4 = pad0.lz4
 3) main.cpio.gzip + pad4 + extra.cpio.gzip = pad4.gzip
 4) main.cpio.lz4  + pad4 + extra.cpio.lz4 = pad4.lz4

The pad4 test-cases replicate the initrd load by grub, as it pads and
aligns every initrd it loads.

All of the above boot, however /test-file was not accessible in the initrd
for the testcase #4, as decoding in lz4 decompressor failed. Also an error
message printed which usually is harmless.

Whith a patched kernel, all of the above testcases now pass, and /test-file
is accessible.

This fixes lz4 initrd decompress warning on every boot with grub. And more
importantly this fixes inability to load multiple lz4 compressed initrds
with grub.

I guess I should convert above decompressor streams with/without padding
into kunit tests, across all decompressor algorithms.

[1] ./Documentation/driver-api/early-userspace/buffer-format.rst

BugLink: https://bugs.launchpad.net/bugs/1835660
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-5.6
Andrea Righi [Mon, 18 Jan 2021 09:46:10 +0000 (10:46 +0100)]
UBUNTU: Ubuntu-5.11.0-5.6

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update config and annotations after rebase to 5.11-rc4
Andrea Righi [Mon, 18 Jan 2021 09:45:00 +0000 (10:45 +0100)]
UBUNTU: [Config] update config and annotations after rebase to 5.11-rc4

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc4
Andrea Righi [Mon, 18 Jan 2021 08:58:12 +0000 (09:58 +0100)]
UBUNTU: Rebase to v5.11-rc4

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 18 Jan 2021 08:57:32 +0000 (09:57 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: update dkms package versions
Andrea Righi [Mon, 18 Jan 2021 08:57:03 +0000 (09:57 +0100)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-4.5
Andrea Righi [Thu, 14 Jan 2021 11:53:26 +0000 (12:53 +0100)]
UBUNTU: Ubuntu-5.11.0-4.5

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Thu, 14 Jan 2021 11:52:56 +0000 (12:52 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-3.4
Andrea Righi [Thu, 14 Jan 2021 06:43:45 +0000 (07:43 +0100)]
UBUNTU: Ubuntu-5.11.0-3.4

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Thu, 14 Jan 2021 06:42:02 +0000 (07:42 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-2.3
Andrea Righi [Mon, 11 Jan 2021 08:52:27 +0000 (09:52 +0100)]
UBUNTU: Ubuntu-5.11.0-2.3

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs and annotations after rebase to 5.11-rc3
Andrea Righi [Mon, 11 Jan 2021 07:41:29 +0000 (08:41 +0100)]
UBUNTU: [Config] update configs and annotations after rebase to 5.11-rc3

 - Introduce CONFIG_NULL_TTY, enabling it as a module everywhere except
   on s390x.

 - ENABLE_MUST_CHECK has been removed by 196793946264 ("Compiler
   Attributes: remove CONFIG_ENABLE_MUST_CHECK"), so let's also remove
   it from the annotations file.

 - Drop CONFIG_KVM_ARM_PMU from annotations file: 8cbebc4118b5 ("KVM:
   arm64: Replace KVM_ARM_PMU with HW_PERF_EVENTS")

 - Drop CONFIG_USB_FSL_USB2 from annotations file: a390bef7db1f ("usb:
   gadget: fsl_mxc_udc: Remove the driver")

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc3
Andrea Righi [Mon, 11 Jan 2021 07:37:38 +0000 (08:37 +0100)]
UBUNTU: Rebase to v5.11-rc3

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 11 Jan 2021 07:36:55 +0000 (08:36 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: ALSA: hda/realtek: fix right sounds and mute/micmute LEDs for HP machines
Jeremy Szu [Thu, 7 Jan 2021 17:48:26 +0000 (01:48 +0800)]
UBUNTU: SAUCE: ALSA: hda/realtek: fix right sounds and mute/micmute LEDs for HP machines

 * The HP ZBook Fury 15/17 G7 Mobile Workstation are using ALC285 codec
   which is using 0x04 to control mute LED and 0x01 to control micmute LED.

 * The right channel speaker is no sound and it needs to expose GPIO1 for
   initialing AMP.

Add quirks to support them.

Signed-off-by: Jeremy Szu <jeremy.szu@canonical.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210106130549.100532-1-jeremy.szu@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 91bc156817a3c2007332b64b4f85c32aafbbbea6
 git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Jeremy Szu <jeremy.szu@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Packaging] Remove nvidia-455 dkms build
Seth Forshee [Thu, 7 Jan 2021 19:03:21 +0000 (13:03 -0600)]
UBUNTU: [Packaging] Remove nvidia-455 dkms build

linux-restricted-modules will migrate nvidia-455 users to
nvidia-460, so we do not need to build nvidia-455 anymore.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] file-downloader not handling positive failures correctly
Andy Whitcroft [Fri, 15 May 2020 10:37:30 +0000 (11:37 +0100)]
UBUNTU: [Packaging] file-downloader not handling positive failures correctly

Seems we are not handling positive failures such as 404 correctly.  Add
--fail to get server reported errors converted into errors.

BugLink: https://bugs.launchpad.net/bugs/1878897
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
3 years agoUBUNTU: update dkms package versions
Seth Forshee [Thu, 7 Jan 2021 18:58:15 +0000 (12:58 -0600)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] NVIDIA -- Add the NVIDIA 460 driver
Alberto Milone [Fri, 11 Dec 2020 16:30:10 +0000 (17:30 +0100)]
UBUNTU: [Packaging] NVIDIA -- Add the NVIDIA 460 driver

Add signed modules for the NVIDIA 460 series.

CVE-2021-1052
CVE-2021-1053

Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-1.2
Andrea Righi [Thu, 7 Jan 2021 15:57:01 +0000 (16:57 +0100)]
UBUNTU: Ubuntu-5.11.0-1.2

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc2
Andrea Righi [Thu, 7 Jan 2021 15:56:12 +0000 (16:56 +0100)]
UBUNTU: Rebase to v5.11-rc2

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Thu, 7 Jan 2021 15:55:24 +0000 (16:55 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-0.1
Andrea Righi [Mon, 4 Jan 2021 08:17:48 +0000 (09:17 +0100)]
UBUNTU: Ubuntu-5.11.0-0.1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: ppc64el: don't build stripped vdso
Andrea Righi [Mon, 4 Jan 2021 07:41:22 +0000 (08:41 +0100)]
UBUNTU: ppc64el: don't build stripped vdso

The following commit disables stripped vdso for powerpc:

 7fe2de246e21f01212a8923fbabb4ac84c944d4a ("powerpc/vdso: Stripped VDSO is not needed, don't build it")

Skip the vdso_install step on this architecture.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: check-aliases: do not error if modules.alias does not exist
Andrea Righi [Mon, 4 Jan 2021 08:14:39 +0000 (09:14 +0100)]
UBUNTU: check-aliases: do not error if modules.alias does not exist

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] temporarily disable ZFS
Andrea Righi [Wed, 30 Dec 2020 11:16:26 +0000 (12:16 +0100)]
UBUNTU: [Config] temporarily disable ZFS

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: shiftfs: fix build error with 5.11
Andrea Righi [Wed, 30 Dec 2020 10:10:20 +0000 (11:10 +0100)]
UBUNTU: SAUCE: shiftfs: fix build error with 5.11

After commit:

 8760c909f54a82aaa6e76da19afe798a0c77c3c3 ("file: Rename __close_fd to close_fd and remove the files parameter")

__close_fd() has been renamed to close_fd() and the files parameter has
been removed.

Change the shiftfs code to properly support this change.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: hio: fix build error with kernel 5.11
Andrea Righi [Wed, 30 Dec 2020 09:55:44 +0000 (10:55 +0100)]
UBUNTU: hio: fix build error with kernel 5.11

hd_struct has been merged with block_device by this commit:

 0d02129e76edf91cf04fabf1efbc3a9a1f1d729a ("block: merge struct block_device and struct hd_struct")

Update hio to properly support this change.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs and annotations after rebase to v5.11-rc1
Andrea Righi [Wed, 30 Dec 2020 08:32:55 +0000 (09:32 +0100)]
UBUNTU: [Config] update configs and annotations after rebase to v5.11-rc1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.11-rc1
Andrea Righi [Wed, 30 Dec 2020 08:08:13 +0000 (09:08 +0100)]
UBUNTU: Rebase to v5.11-rc1

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Wed, 30 Dec 2020 08:04:41 +0000 (09:04 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: SAUCE: (lockdown) s390: Lock down the kernel when the IPL secure flag is set
Jeremy Cline [Wed, 30 Oct 2019 14:37:49 +0000 (14:37 +0000)]
UBUNTU: SAUCE: (lockdown) s390: Lock down the kernel when the IPL secure flag is set

Automatically lock down the kernel to LOCKDOWN_INTEGRITY_MAX if
the IPL secure flag is set.

Suggested-by: Philipp Rudo <prudo@redhat.com>
Signed-off-by: Jeremy Cline <jcline@redhat.com>
(cherry picked from commit 38ec0096d7acf1af5a90d0cefeeecb16ffbb570d
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: (lockdown) efi: Add an EFI_SECURE_BOOT flag to indicate secure boot...
David Howells [Tue, 27 Feb 2018 10:04:55 +0000 (10:04 +0000)]
UBUNTU: SAUCE: (lockdown) efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode

UEFI machines can be booted in Secure Boot mode.  Add an EFI_SECURE_BOOT
flag that can be passed to efi_enabled() to find out whether secure boot is
enabled.

Move the switch-statement in x86's setup_arch() that inteprets the
secure_boot boot parameter to generic code and set the bit there.

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
cc: linux-efi@vger.kernel.org
[Rebased for context; efi_is_table_address was moved to arch/x86]
Signed-off-by: Jeremy Cline <jcline@redhat.com>
(cherry picked from commit a080e08b637d48dc9bdf4367447e47948f6d98b8
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [dep-8] Allow all hwe kernels
Stefan Bader [Thu, 17 Dec 2020 13:57:24 +0000 (14:57 +0100)]
UBUNTU: [dep-8] Allow all hwe kernels

BugLink: https://bugs.launchpad.net/bugs/1908529
The dep-8 tests are limited to kernels which are bootable. But with
moving to versioned hwe kernels this would require constant change.
To avoid that, just allow any kernel source starting with linux-hwe.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: rtw88: 8723de: let cpu enter c10
Chin-Yen Lee [Tue, 8 Dec 2020 08:34:02 +0000 (16:34 +0800)]
UBUNTU: SAUCE: rtw88: 8723de: let cpu enter c10

BugLink: https://bugs.launchpad.net/bugs/1907200
Change-Id: Ie0ba548c2ac3c9940351480caed0a75a38e8a4fd
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Deactivate CONFIG_QETH_OSN kernel config option
Frank Heimes [Mon, 7 Dec 2020 20:52:55 +0000 (21:52 +0100)]
UBUNTU: [Config] Deactivate CONFIG_QETH_OSN kernel config option

BugLink: https://bugs.launchpad.net/bugs/1906370
The final shipment of OSN devices was as part of the IBM z13 hardware generation.
The primary exploiter was the IBM Communication Controller,
which was pulled out of marketing in March 2015 and should be out of service now.
Therefore, IBM pulls the support from all Linux distros going forward.
Hence the deactivation of the CONFIG_QETH_OSN kernel config option for hirsute and onwards.

Signed-off-by: Frank Heimes <frank.heimes@canonical.com>
[ saf: fix ups ]
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: drm/dp: Add dpcd backlight control for 0x4c83 0x4f41
Kai-Chuan Hsieh [Thu, 26 Nov 2020 09:20:11 +0000 (17:20 +0800)]
UBUNTU: SAUCE: drm/dp: Add dpcd backlight control for 0x4c83 0x4f41

BugLink: https://bugs.launchpad.net/bugs/1905663
Signed-off-by: Kai-Chuan Hsieh <kaichuan.hsieh@canonical.com>
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
[ saf: context adjustments ]
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: disable building bpf selftests (no VMLINUX_BTF)
Kamal Mostafa [Wed, 16 Dec 2020 21:40:15 +0000 (13:40 -0800)]
UBUNTU: disable building bpf selftests (no VMLINUX_BTF)

BugLink: https://bugs.launchpad.net/bugs/1908144
Disable selftests/bpf since it cannot be built without having built vmlinux
first, else build fails with either:

    Makefile:...: *** Cannot find a vmlinux for VMLINUX_BTF at any of
    "{paths}".  Stop.

or this more cryptic variant:

    Error: failed to load BTF from format: No such file or directory

Reference: "UBUNTU: SAUCE: selftests/bpf: clarify build error if no vmlinux"
Reference: https://lore.kernel.org/bpf/20201210185233.28091-1-broonie@kernel.org/
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10.0-9.10
Andrea Righi [Tue, 15 Dec 2020 09:16:14 +0000 (10:16 +0100)]
UBUNTU: Ubuntu-5.10.0-9.10

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Tue, 15 Dec 2020 09:14:44 +0000 (10:14 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] Enable CONFIG_BPF_LSM
KP Singh [Mon, 30 Nov 2020 23:14:03 +0000 (23:14 +0000)]
UBUNTU: [Config] Enable CONFIG_BPF_LSM

Buglink: https://bugs.launchpad.net/bugs/1905975
[Impact]

Allows users to implement MAC and Audit Policies using BPF programs.

The LSM won't be added to the list of active LSMs by default (in
CONFIG_LSM or lsm= on the boot parameters) yet, as it adds an indirect
function call overhead by registering an empty callback for all hooks.

The LSM can be made "active" by default when the upstream effort [1] of
getting rid of this overhead is merged in the mainline kernel.

[Regression Potential]

Since the LSM is not active by default, it does not cause any
functional or performance regression.

[1]: https://lore.kernel.org/bpf/20200820164753.3256899-1-jackmanb@chromium.org

Signed-off-by: KP Singh <kpsingh@google.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
[ arighi: updated also the annotations file ]
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10.0-8.9
Andrea Righi [Mon, 14 Dec 2020 07:57:57 +0000 (08:57 +0100)]
UBUNTU: Ubuntu-5.10.0-8.9

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update configs and annotations after rebase to v5.10
Andrea Righi [Mon, 14 Dec 2020 07:54:49 +0000 (08:54 +0100)]
UBUNTU: [Config] update configs and annotations after rebase to v5.10

Do not enable CONFIG_NFS_V4_2_READ_PLUS, since it's a development-only
feature for now.

CONFIG_MXC_CLK_SCU can be enabled only on arm64 now (ARCH_MXC && ARM64).

Update toolchain version.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Rebase to v5.10
Andrea Righi [Mon, 14 Dec 2020 07:33:04 +0000 (08:33 +0100)]
UBUNTU: Rebase to v5.10

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 14 Dec 2020 07:32:34 +0000 (08:32 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] update variants
Andrea Righi [Mon, 14 Dec 2020 07:29:26 +0000 (08:29 +0100)]
UBUNTU: [Packaging] update variants

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-5.10.0-7.8
Seth Forshee [Mon, 7 Dec 2020 06:15:21 +0000 (00:15 -0600)]
UBUNTU: Ubuntu-5.10.0-7.8

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: update dkms package versions
Seth Forshee [Mon, 7 Dec 2020 02:38:15 +0000 (20:38 -0600)]
UBUNTU: update dkms package versions

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Update configs and annotations after rebase to v5.10-rc7
Seth Forshee [Mon, 7 Dec 2020 02:36:30 +0000 (20:36 -0600)]
UBUNTU: [Config] Update configs and annotations after rebase to v5.10-rc7

Add removed modules to modules.ignore.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Rebase to v5.10-rc7
Seth Forshee [Mon, 7 Dec 2020 02:30:46 +0000 (20:30 -0600)]
UBUNTU: Rebase to v5.10-rc7

Ignore: yes
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>