]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/log
mirror_ubuntu-hirsute-kernel.git
3 years agoXen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages()
Jan Beulich [Mon, 15 Feb 2021 07:51:07 +0000 (08:51 +0100)]
Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages()

commit dbe5283605b3bc12ca45def09cc721a0a5c853a2 upstream.

We may not skip setting the field in the unmap structure when
GNTMAP_device_map is in use - such an unmap would fail to release the
respective resources (a page ref in the hypervisor). Otoh the field
doesn't need setting at all when GNTMAP_device_map is not in use.

To record the value for unmapping, we also better don't use our local
p2m: In particular after a subsequent change it may not have got updated
for all the batch elements. Instead it can simply be taken from the
respective map's results.

We can additionally avoid playing this game altogether for the kernel
part of the mappings in (x86) PV mode.

This is part of XSA-361.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoXen/x86: also check kernel mapping in set_foreign_p2m_mapping()
Jan Beulich [Mon, 15 Feb 2021 07:50:08 +0000 (08:50 +0100)]
Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()

commit b512e1b077e5ccdbd6e225b15d934ab12453b70a upstream.

We should not set up further state if either mapping failed; paying
attention to just the user mapping's status isn't enough.

Also use GNTST_okay instead of implying its value (zero).

This is part of XSA-361.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoXen/x86: don't bail early from clear_foreign_p2m_mapping()
Jan Beulich [Mon, 15 Feb 2021 07:49:34 +0000 (08:49 +0100)]
Xen/x86: don't bail early from clear_foreign_p2m_mapping()

commit a35f2ef3b7376bfd0a57f7844bd7454389aae1fc upstream.

Its sibling (set_foreign_p2m_mapping()) as well as the sibling of its
only caller (gnttab_map_refs()) don't clean up after themselves in case
of error. Higher level callers are expected to do so. However, in order
for that to really clean up any partially set up state, the operation
should not terminate upon encountering an entry in unexpected state. It
is particularly relevant to notice here that set_foreign_p2m_mapping()
would skip setting up a p2m entry if its grant mapping failed, but it
would continue to set up further p2m entries as long as their mappings
succeeded.

Arguably down the road set_foreign_p2m_mapping() may want its page state
related WARN_ON() also converted to an error return.

This is part of XSA-361.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] remove Provides: aufs-dkms
Seth Forshee [Thu, 25 Feb 2021 23:43:49 +0000 (17:43 -0600)]
UBUNTU: [Packaging] remove Provides: aufs-dkms

We're no longer building aufs, so we als need to remove the
Provides.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: update dkms package versions
Seth Forshee [Thu, 25 Feb 2021 18:53:50 +0000 (12:53 -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: [Debian] run ubuntu-regression-suite for linux-unstable
Seth Forshee [Thu, 25 Feb 2021 17:57:52 +0000 (11:57 -0600)]
UBUNTU: [Debian] run ubuntu-regression-suite for linux-unstable

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] dkms-versions -- remove nvidia-graphics-drivers-440-server
Seth Forshee [Mon, 22 Feb 2021 20:38:02 +0000 (14:38 -0600)]
UBUNTU: [Packaging] dkms-versions -- remove nvidia-graphics-drivers-440-server

This is signonly, and we are providing transitional packages to
450-server. There's no need to keep it around.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] correctly implement noudeb build profiles.
Dimitri John Ledkov [Fri, 19 Feb 2021 00:26:05 +0000 (00:26 +0000)]
UBUNTU: [Packaging] correctly implement noudeb build profiles.

When building under either of stage1, noudeb, cross or autopkgtest
profiles udeb packages are not desired. Stop generating them, and drop
build-dependencies that are used just to create udebs.

Also note that dpkg in hirsute and up automatically buidlds packages
with a noudeb profile, thus hirsute+ builds will be now much faster.

This is a correct and backwards compatibles support for build profiles
and can be backported to any prior release, where by default packages
will be build with udebs.

BugLink: https://bugs.launchpad.net/bugs/1916095
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] replace custom filter script with dctrl-tools
Dimitri John Ledkov [Fri, 19 Feb 2021 00:26:04 +0000 (00:26 +0000)]
UBUNTU: [Packaging] replace custom filter script with dctrl-tools

Use a tool from the archive to filter just the current architecture
udeb packages.

Add new line to control file snippet, in case extra paragraphs are
generated elsehwere without a leading new line.

Before adding udebs, add a new line too, in case the last snippet
anywhere else did not end with a new line.

BugLink: https://bugs.launchpad.net/bugs/1916095
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: [Config] disable nvidia and nvidia_server builds"
Andrea Righi [Mon, 22 Feb 2021 13:55:09 +0000 (14:55 +0100)]
Revert "UBUNTU: [Config] disable nvidia and nvidia_server builds"

This reverts commit 3ae908b3c4bca2022f79ff7909525a46438de850.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Ubuntu-unstable-5.11.0-10.11
Andrea Righi [Mon, 22 Feb 2021 06:18:07 +0000 (07:18 +0100)]
UBUNTU: Ubuntu-unstable-5.11.0-10.11

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] update LD_VERSION in config due to toolchain update
Andrea Righi [Mon, 22 Feb 2021 06:17:08 +0000 (07:17 +0100)]
UBUNTU: [Config] update LD_VERSION in config due to toolchain update

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: Start new release
Andrea Righi [Mon, 22 Feb 2021 06:15:10 +0000 (07:15 +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, 22 Feb 2021 06:13:07 +0000 (07:13 +0100)]
UBUNTU: [Packaging] update variants

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Packaging] Change source package name to linux-unstable
Andrea Righi [Mon, 22 Feb 2021 06:05:41 +0000 (07:05 +0100)]
UBUNTU: [Packaging] Change source package name to linux-unstable

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] set CONFIG_PINCTRL_MSM8953=m on armhf generic-lpae
Seth Forshee [Fri, 19 Feb 2021 21:35:48 +0000 (15:35 -0600)]
UBUNTU: [Config] set CONFIG_PINCTRL_MSM8953=m on armhf generic-lpae

This option is built-in on armhf generic-lpae whereas it is a
module elsewhere. No explanation is given, so this is likely a
mistack. Change it to be a module.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] set CONFIG_MIPI_I3C_HCI=m consistently
Seth Forshee [Fri, 19 Feb 2021 21:33:09 +0000 (15:33 -0600)]
UBUNTU: [Config] set CONFIG_MIPI_I3C_HCI=m consistently

This option is disabled in a handful of configs without
explanation. Since it can be configured as a module there's
likely no harm to having it enabled as such.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] refresh annotations file
Seth Forshee [Fri, 19 Feb 2021 21:29:17 +0000 (15:29 -0600)]
UBUNTU: [Config] refresh annotations file

A number of options were missing from the annotations, and some
had been moved to different menus.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] CONFIG_AUFS_FS=n
Seth Forshee [Fri, 19 Feb 2021 20:46:24 +0000 (14:46 -0600)]
UBUNTU: [Config] CONFIG_AUFS_FS=n

We're keeping aufs in the source tree for backports but disabling
it starting in hirsute. Update the configs and annotations
accordingly.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: Import aufs driver
Seth Forshee [Fri, 19 Feb 2021 19:17:11 +0000 (13:17 -0600)]
UBUNTU: SAUCE: Import aufs driver

Import aufs 5.x-rcN 20210215 from https://github.com/sfjro/aufs5-standalone
commit 56721a309465ec3cc1f3e8c5ab9f89f9f7a2a072.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] disable nvidia and nvidia_server builds
Seth Forshee [Fri, 19 Feb 2021 20:07:27 +0000 (14:07 -0600)]
UBUNTU: [Config] disable nvidia and nvidia_server builds

The modules are failing to build with 5.11, so disable them.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] Update configs
Seth Forshee [Fri, 19 Feb 2021 18:11:25 +0000 (12:11 -0600)]
UBUNTU: [Config] Update configs

Running updateconfigs results in a number of changes due to
toolchain updates and automatically selected options. Commit
these changes.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: drm/i915/gen9_bc : Add TGP PCH support
Tejas Upadhyay [Mon, 18 Jan 2021 14:26:04 +0000 (22:26 +0800)]
UBUNTU: SAUCE: drm/i915/gen9_bc : Add TGP PCH support

BugLink: https://bugs.launchpad.net/bugs/1909457
We have TGP PCH support for Tigerlake and Rocketlake. Similarly
now TGP PCH can be used with Cometlake CPU.

Changes since V3 :
- Rebased to top drm-tip commit
- dev_priv replaced with i915 for new API
- Enable default Port B,C,D detection for TGP && GEN9_BC
Changes since V2 :
        - IS_COMETLAKE replaced with IS_GEN9_BC
        - VBT ddc pin remapping added
        - Added dedicated HPD pin and DDC pin handling API
Changes since V1 :
        - Matched HPD Pin mapping for PORT C and PORT D of CML CPU.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/412664/
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agodrm/i915/rkl: new rkl ddc map for different PCH
Lee Shawn C [Mon, 18 Jan 2021 14:26:03 +0000 (22:26 +0800)]
drm/i915/rkl: new rkl ddc map for different PCH

BugLink: https://bugs.launchpad.net/bugs/1909457
After boot into kernel. Driver configured ddc pin mapping based on
predefined table in parse_ddi_port(). Now driver configure rkl
ddc pin mapping depends on icp_ddc_pin_map[]. Then this table will
give incorrect gmbus port number to cause HDMI can't work.

Refer to commit cd0a89527d06 ("drm/i915/rkl: Add DDC pin mapping").
Create two ddc pin table for rkl TGP and CMP pch. Then HDMI can
works properly on rkl.

v2: update patch based on latest dinq branch.
v3: update ddc table for RKL+TGP sku.
    RKL+CNP sku will load cnp_ddc_pin_map[] setting.
v4: modify the if/else judgment to avoid nesting.
v5: fix typo in v4.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Aditya Swarup <aditya.swarup@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Cooper Chiou <cooper.chiou@intel.com>
Cc: Khaled Almahallawy <khaled.almahallawy@intel.com>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2577
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117142629.28729-1-shawn.c.lee@intel.com
(cherry picked from commit 956aee8fa366cfd9d693aa6e7ef822b775980c01
drm-next)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: drm/dp: Another HP DreamColor panel brigntness fix
Kai-Heng Feng [Tue, 12 Jan 2021 10:54:46 +0000 (18:54 +0800)]
UBUNTU: SAUCE: drm/dp: Another HP DreamColor panel brigntness fix

BugLink: https://bugs.launchpad.net/bugs/1911001
Another HP DreamColor panel, which is used by new HP ZBook Fury, needs
to use DPCD to control brightness.

Once the proper fix [1] is merged, this can be dropped.

[1] https://patchwork.freedesktop.org/series/81702/

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
3 years agoUBUNTU: [Packaging] build-dkms--nvidia-N -- Update for preprocessed module linker...
Seth Forshee [Mon, 11 Jan 2021 16:38:15 +0000 (10:38 -0600)]
UBUNTU: [Packaging] build-dkms--nvidia-N -- Update for preprocessed module linker script

BugLink: c/HX1x7Aac/138 (Update nvidia dkms build for module linker script changes)

Previously we could simply copy scripts/module-common.lds from
the source tree, but as of 596b0474d3d9 "kbuild: preprocess
module linker script" in 5.10 the module linker script requires
preprocessing. Therefore we must get the script produced by the
kernel build.

Grab the linker script from the linux-headers package. For l-r-m
we can copy it from the installed location. During the kernel
build we can get it from the copy of the linux-headers contents
used for the dkms build.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Debian] update-aufs.sh -- Don't apply tmpfs-idr.patch
Seth Forshee [Fri, 5 Feb 2021 14:29:43 +0000 (08:29 -0600)]
UBUNTU: [Debian] update-aufs.sh -- Don't apply tmpfs-idr.patch

This is an optional patch which interferes with the 64-bit inode
number support added to tmpfs in 5.9.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: SAUCE: selftests: memory-hotplug: bump timeout to 10min
Paolo Pisati [Thu, 18 Feb 2021 14:58:21 +0000 (15:58 +0100)]
UBUNTU: SAUCE: selftests: memory-hotplug: bump timeout to 10min

$ sudo make -C tools/testing/selftests/memory-hotplug run_tests
TAP version 13
1..1
...
15:11:09 DEBUG| [stdout] not ok 1 selftests: memory-hotplug: mem-on-off-test.sh # TIMEOUT 45 seconds

The memory-hotplug selftest can take up to several minutes, depending on memory
size and cpu speed of the testbench, so bump timeout to 10 minutes.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoUBUNTU: [Config] add ubuntu-drivers key to SYSTEM_TRUSTED_KEYS
Andy Whitcroft [Thu, 18 Feb 2021 16:17:54 +0000 (16:17 +0000)]
UBUNTU: [Config] add ubuntu-drivers key to SYSTEM_TRUSTED_KEYS

Add the Canonical Ltd. Kernel Module Signing certificate to allow
external signing of kernel modules.

BugLink: https://bugs.launchpad.net/bugs/1898716
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] add Canonical Livepatch Service key to SYSTEM_TRUSTED_KEYS
Dimitri John Ledkov [Thu, 18 Feb 2021 16:17:53 +0000 (16:17 +0000)]
UBUNTU: [Config] add Canonical Livepatch Service key to SYSTEM_TRUSTED_KEYS

Add Canonical Livepatch Service key to SYSTEM_TRUSTED_KEYS, such that
livepatch modules signed by Canonical are trusted out of the box, on
locked-down secureboot systems.

BugLink: https://bugs.launchpad.net/bugs/1898716
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
[apw@canonical.com: move certification to cert framework.]
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Packaging] build canonical-certs.pem from branch/arch certs
Andy Whitcroft [Thu, 18 Feb 2021 16:17:52 +0000 (16:17 +0000)]
UBUNTU: [Packaging] build canonical-certs.pem from branch/arch certs

Merge common, branch-specific, and arch-specific certs and form
a certs database for inclusion in the kernel keyring.

BugLink: https://bugs.launchpad.net/bugs/1898716
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] enable CONFIG_MODVERSIONS=y
Andy Whitcroft [Thu, 18 Feb 2021 16:17:51 +0000 (16:17 +0000)]
UBUNTU: [Config] enable CONFIG_MODVERSIONS=y

In order to support the livepatch key we need to ensure we do not allow
that key to load modules which are not for the specific kernel.  From
the documentation on kernel module signing:

  If you use the same private key to sign modules for multiple kernel
  configurations, you must ensure that the module version information is
  sufficient to prevent loading a module into a different kernel.  Either
  set ``CONFIG_MODVERSIONS=y`` or ensure that each configuration has a
  different kernel release string by changing ``EXTRAVERSION`` or
  ``CONFIG_LOCALVERSION``.

BugLink: https://bugs.launchpad.net/bugs/1898716
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: [Config] re-enable nvidia dkms
Andrea Righi [Thu, 18 Feb 2021 15:21:47 +0000 (16:21 +0100)]
UBUNTU: [Config] re-enable nvidia dkms

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
3 years agoRevert "UBUNTU: SAUCE: tmpfs: Don't use 64-bit inodes by defulat with 32-bit ino_t"
Seth Forshee [Thu, 18 Feb 2021 02:55:23 +0000 (20:55 -0600)]
Revert "UBUNTU: SAUCE: tmpfs: Don't use 64-bit inodes by defulat with 32-bit ino_t"

This reverts commit 3808a45a93b04bd6d91caad89365105525a1b458,
which is no longer needed since upstream commit b85a7a8bb573
"tmpfs: disallow CONFIG_TMPFS_INODE64 on s390".

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
3 years agoUBUNTU: Ubuntu-5.11.0-9.10
Andrea Righi [Mon, 15 Feb 2021 15:29:36 +0000 (16:29 +0100)]
UBUNTU: Ubuntu-5.11.0-9.10

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
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>