]> git.proxmox.com Git - mirror_ubuntu-kernels.git/log
mirror_ubuntu-kernels.git
18 months agoUBUNTU: [Config] update configs and annotations after rebase to 6.1-rc1
Andrea Righi [Tue, 18 Oct 2022 09:05:17 +0000 (11:05 +0200)]
UBUNTU: [Config] update configs and annotations after rebase to 6.1-rc1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: shiftfs: support linux 6.2
Andrea Righi [Wed, 4 Jan 2023 09:25:30 +0000 (10:25 +0100)]
UBUNTU: SAUCE: shiftfs: support linux 6.2

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: shiftfs: support kernel 6.1
Andrea Righi [Tue, 18 Oct 2022 15:09:12 +0000 (17:09 +0200)]
UBUNTU: SAUCE: shiftfs: support kernel 6.1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: platform/x86: dell-uart-backlight: remove acpi_video_set_dmi_backlight...
Andrea Righi [Tue, 18 Oct 2022 14:18:11 +0000 (16:18 +0200)]
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: remove acpi_video_set_dmi_backlight_type()

acpi_video_set_dmi_backlight_type() is troublesome because it may end
up getting called after other backlight drivers have already called
acpi_video_get_backlight_type() resulting in the other drivers already
being registered even though they should not.

Removing this should be ok now, since other drivers have done a similar
change to get rid of this function call (that has been removed
completely).

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.1-rc1
Andrea Righi [Tue, 18 Oct 2022 08:48:17 +0000 (10:48 +0200)]
UBUNTU: Rebase to v6.1-rc1

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Tue, 18 Oct 2022 08:44:17 +0000 (10:44 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] move to kernel 6.1
Andrea Righi [Mon, 17 Oct 2022 06:58:54 +0000 (08:58 +0200)]
UBUNTU: [Packaging] move to kernel 6.1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] sameport -- add support for sameport versioning
Andy Whitcroft [Fri, 13 May 2022 12:14:05 +0000 (13:14 +0100)]
UBUNTU: [Packaging] sameport -- add support for sameport versioning

We currently support two types of kernels which are programatically
configured (marked "backports" in kernel-series and having
copy/local-mangle support):

  backports: those who express in an older series (~20.04.N)
  forwardports: those who express in a newer series (+22.04.N)

Add a new third type which represents "backports" into the same series:

  sameports: those which express in the same series (.N)

These will simply number with an additional upload number to allow local
respins, for example linux/5.15.0-30.31 -> linux-lowlatency/5.15.0-30.31.1.

Add support for BACKPORT_SUFFIX to be present and empty using `--` to
represent this situation (in a similar fashion to variants).

Signed-off-by: Andy Whitcroft <apw@canonical.com>
(amend syntax to use bash variable expansion)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Raise riscv64 CONFIG_NR_CPUS to 32
Emil Renner Berthing [Wed, 31 Aug 2022 12:24:14 +0000 (14:24 +0200)]
UBUNTU: [Config] Raise riscv64 CONFIG_NR_CPUS to 32

BugLink: https://bugs.launchpad.net/bugs/1967889
The QEMU 7.0 virt machine supports up to 512 virtual CPUs, so raise this
limit to the maximum of 32 so we can use more of them.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] Disable VMAP_STACK on riscv64
Dimitri John Ledkov [Mon, 10 Oct 2022 14:52:49 +0000 (15:52 +0100)]
UBUNTU: [Config] Disable VMAP_STACK on riscv64

BugLink: https://bugs.launchpad.net/bugs/1967130
Port existing config change from kinetic:linux-riscv.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: SAUCE: riscv: mm: Force disable sv57
Alexandre Ghiti [Mon, 10 Oct 2022 11:27:29 +0000 (13:27 +0200)]
UBUNTU: SAUCE: riscv: mm: Force disable sv57

BugLink: https://launchpad.net/bugs/1991790
The Kinetic userspace is not yet ready for 5-level page tables. Eg. Go
programs use too many of the higher bits for pointer tagging.
So force disable sv57 even on Qemu which advertices support for it.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Set CONFIG_PWM_SIFIVE=m for riscv64
Emil Renner Berthing [Mon, 10 Oct 2022 10:46:07 +0000 (12:46 +0200)]
UBUNTU: [Config] Set CONFIG_PWM_SIFIVE=m for riscv64

BugLink: https://launchpad.net/bugs/1988984
Only the SoCs on the SiFive Unleashed and Unmatched boards use this
driver, but none of them needs it at boot time. So compile it as a
module to save memory on other systems.

This also works around a bug in the UART driver fixed by
643792048ee8 ("serial: sifive: enable clocks for UART when probed")

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Harmonize RCU_CPU_STALL_TIMEOUT
Dimitri John Ledkov [Thu, 6 Oct 2022 15:33:21 +0000 (16:33 +0100)]
UBUNTU: [Config] Harmonize RCU_CPU_STALL_TIMEOUT

BugLink: https://bugs.launchpad.net/bugs/1991951
Harmonize our RCU and RCU_EXP CPU_STALL_TIMEOUTS to be 60s on all
architectures, and the upstream default/maximum 21,000ms for the
EXPEDITED one.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Update configs with versioned compiler version
Dimitri John Ledkov [Tue, 4 Oct 2022 13:54:56 +0000 (14:54 +0100)]
UBUNTU: [Packaging] Update configs with versioned compiler version

BugLink: https://bugs.launchpad.net/bugs/1991664
Update configs with versioned compiler version, no other config key
changes.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] use versioned gcc-12
Dimitri John Ledkov [Tue, 4 Oct 2022 13:54:55 +0000 (14:54 +0100)]
UBUNTU: [Packaging] use versioned gcc-12

BugLink: https://bugs.launchpad.net/bugs/1991664
cbd/kteam-tools have been updated to install gcc-12 toolchain. dkms
dynamically checks and tries to use the same compiler version as the
kernel build. When backporting, the toolchain version should be set in
full to the versioned gcc-12, make it so. This is to support building
dkms modules with matching gcc in jammy.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: uapi: Fixup strace compile error
Guo Ren [Wed, 28 Sep 2022 10:54:50 +0000 (11:54 +0100)]
UBUNTU: SAUCE: uapi: Fixup strace compile error

BugLink: https://bugs.launchpad.net/bugs/1990964
Export F_*64 definitions to userspace permanently. "ifndef" usage made it
vailable at all times to the userspace, and this change has actually broken
building strace with the latest kernel headers. There could be some debate
whether having these F_*64 definitions exposed to the user space 64-bit
applications, but it seems that were no harm (as they were exposed already
for quite some time), and they are useful at least for strace for compat
application tracing purposes.

Fixes: 306f7cc1e9061 "uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h"
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reported-by: Eugene Syromiatnikov <esyr@redhat.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/lkml/20220804025448.1240780-1-guoren@kernel.org/raw
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-9.9
Andrea Righi [Mon, 3 Oct 2022 13:51:57 +0000 (15:51 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-9.9

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update toolchain configs after rebase to 6.0
Andrea Righi [Mon, 3 Oct 2022 13:50:27 +0000 (15:50 +0200)]
UBUNTU: [Config] update toolchain configs after rebase to 6.0

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
Andrea Righi [Mon, 3 Oct 2022 13:49:26 +0000 (15:49 +0200)]
UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 3 Oct 2022 13:48:08 +0000 (15:48 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1991521
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0
Andrea Righi [Mon, 3 Oct 2022 13:51:02 +0000 (15:51 +0200)]
UBUNTU: Rebase to v6.0

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 3 Oct 2022 11:34:32 +0000 (13:34 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-8.8
Andrea Righi [Tue, 20 Sep 2022 08:22:14 +0000 (10:22 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-8.8

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Tue, 20 Sep 2022 08:21:08 +0000 (10:21 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1990101
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc6
Andrea Righi [Tue, 20 Sep 2022 08:17:31 +0000 (10:17 +0200)]
UBUNTU: Rebase to v6.0-rc6

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Tue, 20 Sep 2022 08:16:27 +0000 (10:16 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-7.7
Andrea Righi [Mon, 12 Sep 2022 12:03:55 +0000 (14:03 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-7.7

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update configs and annotations after rebase to 6.0-rc5
Andrea Righi [Mon, 12 Sep 2022 11:57:34 +0000 (13:57 +0200)]
UBUNTU: [Config] update configs and annotations after rebase to 6.0-rc5

In particular drop CONFIG_ARM64_BTI_KERNEL that is not supported anymore
if the kernel is built with gcc, see:

 c0a454b9044f ("arm64/bti: Disable in kernel BTI when cross section thunks are broken")

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging[ get rid of unnecessary 'set -x'
Andrea Righi [Mon, 12 Sep 2022 11:59:05 +0000 (13:59 +0200)]
UBUNTU: [Packaging[ get rid of unnecessary 'set -x'

Drop a 'set -x' previously added for debugging purposes by commit
7339f2ad00dc ("UBUNTU: [Packaging]: always use fully qualified <triplet>-gcc-VER toolchain")

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
Andrea Righi [Mon, 12 Sep 2022 11:56:32 +0000 (13:56 +0200)]
UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 12 Sep 2022 09:53:29 +0000 (11:53 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1989331
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc5
Andrea Righi [Mon, 12 Sep 2022 09:51:44 +0000 (11:51 +0200)]
UBUNTU: Rebase to v6.0-rc5

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 12 Sep 2022 09:38:26 +0000 (11:38 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] resync getabis
Andrea Righi [Mon, 12 Sep 2022 09:26:33 +0000 (11:26 +0200)]
UBUNTU: [Packaging] resync getabis

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
Dimitri John Ledkov [Wed, 7 Sep 2022 11:23:43 +0000 (12:23 +0100)]
UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Packaging] Pass kernel build_arch to dkms
Dimitri John Ledkov [Wed, 7 Sep 2022 11:21:15 +0000 (12:21 +0100)]
UBUNTU: [Packaging] Pass kernel build_arch to dkms

This enables dkms-build script to cross-compile dkms modules, for
example zfs during cross-build.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
Dimitri John Ledkov [Tue, 6 Sep 2022 14:14:47 +0000 (15:14 +0100)]
UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Switch from DECOMP_SINGLE to DECOMP_MULTI_PERCPU
Dimitri John Ledkov [Fri, 26 Aug 2022 14:31:28 +0000 (15:31 +0100)]
UBUNTU: [Config] Switch from DECOMP_SINGLE to DECOMP_MULTI_PERCPU

BugLink: https://bugs.launchpad.net/bugs/1980861
Overall MULTI_PERCPU has similar or better performance on the wide
range of instance types and squashfs filesystems.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-6.6
Andrea Righi [Mon, 5 Sep 2022 14:59:41 +0000 (16:59 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-6.6

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 5 Sep 2022 14:57:19 +0000 (16:57 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1988706
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc4
Andrea Righi [Mon, 5 Sep 2022 14:59:06 +0000 (16:59 +0200)]
UBUNTU: Rebase to v6.0-rc4

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 5 Sep 2022 14:55:12 +0000 (16:55 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] fix URLs used to retrieve kernel ABI
Andrea Righi [Mon, 5 Sep 2022 14:54:21 +0000 (16:54 +0200)]
UBUNTU: [Packaging] fix URLs used to retrieve kernel ABI

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update toolchain versions
Andrea Righi [Mon, 5 Sep 2022 14:53:42 +0000 (16:53 +0200)]
UBUNTU: [Config] update toolchain versions

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] enable security-related configs
Andrea Righi [Mon, 5 Sep 2022 13:48:10 +0000 (15:48 +0200)]
UBUNTU: [Config] enable security-related configs

Make sure that the following config options are enabled to provide an
additional level of security:

 - CONFIG_ZERO_CALL_USED_REGS: automatically zero local registers on
   function exit

 - CONFIG_INIT_STACK_ALL_ZERO: automatically initialize variables
   defined in the stack to zero

 - CONFIG_SHADOW_CALL_STACK: enables compiler's Shadow Call Stack (see
   https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#Instrumentation-Options)

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] temporarily disable signing for ppc64el and s390x
Andrea Righi [Mon, 5 Sep 2022 05:58:35 +0000 (07:58 +0200)]
UBUNTU: [Packaging] temporarily disable signing for ppc64el and s390x

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-5.5
Andrea Righi [Mon, 29 Aug 2022 07:18:39 +0000 (09:18 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-5.5

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update configs after rebase to 6.0-rc3
Andrea Righi [Mon, 29 Aug 2022 07:18:03 +0000 (09:18 +0200)]
UBUNTU: [Config] update configs after rebase to 6.0-rc3

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 29 Aug 2022 07:16:57 +0000 (09:16 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1988019
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc3
Andrea Righi [Mon, 29 Aug 2022 07:14:44 +0000 (09:14 +0200)]
UBUNTU: Rebase to v6.0-rc3

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 29 Aug 2022 07:14:11 +0000 (09:14 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Remove circular dependency between image & modules
Dimitri John Ledkov [Thu, 25 Aug 2022 22:21:34 +0000 (23:21 +0100)]
UBUNTU: [Packaging] Remove circular dependency between image & modules

Currently we have circular dependencies between
linux-image-[unsigned]-ABI and linux-modules[-extra] packages.

Debian policy point of view this is bad and does lead to worse
dependency resolution cycles in apt upon kernel installs and upgrades,
but mostly harmless as apt has learned to deal with that a long time
ago.

It is harmful for kernels that have additional types of debs or snaps
that deliver vmlinux.

In addition to regular linux-image[-unsigned] we produce various FDE
linux-images like things with builtin initrds, i.e. linux-fde,
linux-uc22, FIT images etc. All of them vendor in vmlinuz, and do not
need to have linux-image[-unsigned] installed. They also often do not
want to pull in any of the bootloaders listed as recommends by the
linux-image-ABI package either, as they use alternative methods to
boot (i.e. gadget snap, nullboot, flashkernel, weird cloud firmware
provided stuff, etc).

Remove linux-modules[-extra] -> linux-image[-unsigned] dependency. Add
linux-modules-extra -> linux-modules dependency (because extra modules
use symbols from the regular modules package).

This will enable us to build clean meta-packages that pull in
appropriate image, fde, uc22, FIT kernel image with matching modules,
without installing redudant copies of vmlinux or bootloaders.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] Set CONFIG_MTD_RAW_NAND=m for riscv64
Emil Renner Berthing [Wed, 24 Aug 2022 10:18:26 +0000 (12:18 +0200)]
UBUNTU: [Config] Set CONFIG_MTD_RAW_NAND=m for riscv64

BugLink: https://bugs.launchpad.net/bugs/1981437
These modules are built for all other architectures but s390x.
Let's build them for riscv64 too.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Enable CONFIG_DTPM for riscv64
Emil Renner Berthing [Wed, 24 Aug 2022 10:18:25 +0000 (12:18 +0200)]
UBUNTU: [Config] Enable CONFIG_DTPM for riscv64

BugLink: https://bugs.launchpad.net/bugs/1981437
Enable power capping for the dynamic thermal power management for
riscv64. This option is not annotated, but let's enable it just like
all the other architectures.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Enable CONFIG_DRM_RCAR_USE_LVDS for riscv64
Emil Renner Berthing [Wed, 24 Aug 2022 10:18:24 +0000 (12:18 +0200)]
UBUNTU: [Config] Enable CONFIG_DRM_RCAR_USE_LVDS for riscv64

BugLink: https://bugs.launchpad.net/bugs/1981437
This option is not annotated, but let's enable this feature for riscv64
like all the other architectures have.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Config] Align riscv64 CONFIG_LSM with other architectures
Emil Renner Berthing [Wed, 24 Aug 2022 10:18:23 +0000 (12:18 +0200)]
UBUNTU: [Config] Align riscv64 CONFIG_LSM with other architectures

BugLink: https://bugs.launchpad.net/bugs/1981437
The CONFIG_LSM option for riscv64 is doesn't enable the landlock module
at boot. Add it and align riscv64 with all the other archituctures.

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
18 months agoUBUNTU: [Packaging] use unversioned default gcc
Dimitri John Ledkov [Thu, 25 Aug 2022 14:46:10 +0000 (15:46 +0100)]
UBUNTU: [Packaging] use unversioned default gcc

Whilst cbd/dkms/etc cannot yet dynamically install desired
build-dependencies, simply use the default gcc compiler without an
explicit features.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging]: always use fully qualified <triplet>-gcc-VER toolchain
Dimitri John Ledkov [Mon, 25 Jul 2022 17:15:13 +0000 (18:15 +0100)]
UBUNTU: [Packaging]: always use fully qualified <triplet>-gcc-VER toolchain

Always define $(gcc) variable and export it. Always use fully
qualified <triplet>-gcc-VER toolchains for native (GNU build) and
cross (GNU host) compilation. Generate matching build-dependencies for
native and cross builds.

This ensures that native and cross builds use the same fully qualified
toolchain binary, fixed in time, irrespective of gcc-defaults updates.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-4.4
Andrea Righi [Wed, 24 Aug 2022 13:10:24 +0000 (15:10 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-4.4

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Wed, 24 Aug 2022 12:55:53 +0000 (14:55 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1987517
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Wed, 24 Aug 2022 11:44:33 +0000 (13:44 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] getabis: Add modules.builtin to the ABI
Juerg Haefliger [Wed, 24 Aug 2022 11:09:06 +0000 (13:09 +0200)]
UBUNTU: [Packaging] getabis: Add modules.builtin to the ABI

Newer buildinfo packages provide a modules.builtin file. Process that file
when downloading the ABIs.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: igc: wait for the MAC copy when enabled MAC passthrough
Aaron Ma [Wed, 3 Aug 2022 07:55:00 +0000 (09:55 +0200)]
UBUNTU: SAUCE: igc: wait for the MAC copy when enabled MAC passthrough

BugLink: https://bugs.launchpad.net/bugs/1942999
Such as dock hot plug event when runtime, for hardware implementation,
the MAC copy takes less than one second when BIOS enabled MAC passthrough.
After test on Lenovo TBT4 dock, 600ms is enough to update the
MAC address.
Otherwise ethernet fails to work.

Link: https://lore.kernel.org/lkml/20210702045120.22855-2-aaron.ma@canonical.com/
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
[note: this is a non-upstream work-around since upstream does not seem to be to hard
       at work to do a proper fix]
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-3.3
Andrea Righi [Mon, 22 Aug 2022 07:09:27 +0000 (09:09 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-3.3

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 22 Aug 2022 06:51:17 +0000 (08:51 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1987241
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update toolchain version
Andrea Righi [Mon, 22 Aug 2022 06:40:21 +0000 (08:40 +0200)]
UBUNTU: [Config] update toolchain version

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] disable CONFIG_QETH_OSX on s390x
Andrea Righi [Mon, 22 Aug 2022 07:05:40 +0000 (09:05 +0200)]
UBUNTU: [Config] disable CONFIG_QETH_OSX on s390x

BugLink: https://bugs.launchpad.net/bugs/1959890
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc2
Andrea Righi [Mon, 22 Aug 2022 06:39:45 +0000 (08:39 +0200)]
UBUNTU: Rebase to v6.0-rc2

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 22 Aug 2022 06:39:20 +0000 (08:39 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] update variants
Andrea Righi [Mon, 22 Aug 2022 06:35:10 +0000 (08:35 +0200)]
UBUNTU: [Packaging] update variants

BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Make stamp-install-<flavor> target reentrant
Juerg Haefliger [Fri, 19 Aug 2022 13:35:49 +0000 (15:35 +0200)]
UBUNTU: [Packaging] Make stamp-install-<flavor> target reentrant

During development or for debugging purposes it's sometimes desirable to
run 'debian/rules build-<flavor>' multiple times in a row without starting
from scratch, i.e. without cleaning the build first. Currently this fails
because make tries to move a subdirectory to an already existing location
when installing files for the modules extra package:

mv: cannot move '/build/debian/linux-modules-5.15.0-1016-oracle/lib/modules/5.15.0-1016-oracle/kernel' to '/build/debian/linux-modules-extra-5.15.0-1016-oracle/lib/modules/5.15.0-1016-oracle/kernel/kernel': Directory not empty
make: *** [debian/rules.d/2-binary-arch.mk:155: /build/debian/stamps/stamp-install-oracle] Error 1

Fix that by properly running dh_prep at the beginning of the install
target.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-2.2
Andrea Righi [Wed, 17 Aug 2022 17:40:07 +0000 (19:40 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-2.2

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Wed, 17 Aug 2022 17:39:33 +0000 (19:39 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1986844
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Wed, 17 Aug 2022 17:05:10 +0000 (19:05 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: Revert "perf tools: Use Python devtools for version autodetection...
Andrea Righi [Wed, 17 Aug 2022 17:04:21 +0000 (19:04 +0200)]
UBUNTU: SAUCE: Revert "perf tools: Use Python devtools for version autodetection rather than runtime"

Temporarily revert the following commit to avoid adding python3-dev as a
build dependency:

 630af16eee49 ("perf tools: Use Python devtools for version autodetection rather than runtime")

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-unstable-6.0.0-1.1
Andrea Righi [Wed, 17 Aug 2022 14:56:18 +0000 (16:56 +0200)]
UBUNTU: Ubuntu-unstable-6.0.0-1.1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] temporarily disable dkms
Andrea Righi [Wed, 17 Aug 2022 14:32:49 +0000 (16:32 +0200)]
UBUNTU: [Packaging] temporarily disable dkms

Disable dkms in debian/dkms-versions, until they properly support the
6.0 kernel.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Wed, 17 Aug 2022 11:36:53 +0000 (13:36 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1986784
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v6.0-rc1
Andrea Righi [Wed, 17 Aug 2022 10:31:02 +0000 (12:31 +0200)]
UBUNTU: Rebase to v6.0-rc1

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Wed, 17 Aug 2022 10:29:42 +0000 (12:29 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update configs and annotations after rebase to 6.0-rc1
Andrea Righi [Wed, 17 Aug 2022 09:06:47 +0000 (11:06 +0200)]
UBUNTU: [Config] update configs and annotations after rebase to 6.0-rc1

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] move to kernel 6.0
Andrea Righi [Wed, 17 Aug 2022 08:24:08 +0000 (10:24 +0200)]
UBUNTU: [Packaging] move to kernel 6.0

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: overlayfs: fix incorrect mnt_id of files opened from map_files
Alexander Mikhalitsyn [Wed, 3 Aug 2022 12:19:10 +0000 (15:19 +0300)]
UBUNTU: SAUCE: overlayfs: fix incorrect mnt_id of files opened from map_files

BugLink: https://bugs.launchpad.net/bugs/1983640
The hack was introduced in ("UBUNTU: SAUCE: overlayfs: allow with
shiftfs as underlay") and it broke checkpoint/restore of docker
contains:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1857257

The following script can be used to trigger the issue:
  #!/bin/bash

  cat > test.py << EOF
  import sys

  f = open("/proc/self/maps")

  for l in f.readlines():
    if "python" not in l:
      continue
    print(l)
    s = l.split()
    start, end = s[0].split("-")
    fname = s[-1]
    print(start, end, fname)
    break
  else:
    sys.exit(1)

  test_file1 = open(fname)
  test_file2 = open("/proc/self/map_files/%s-%s" % (start, end))

  fdinfo1 = open("/proc/self/fdinfo/%d" % test_file1.fileno()).read()
  fdinfo2 = open("/proc/self/fdinfo/%d" % test_file2.fileno()).read()

  if fdinfo1 != fdinfo2:
    print("FAIL")
    print(test_file1)
    print(fdinfo1)
    print(test_file2)
    print(fdinfo2)
    sys.exit(1)
  print("PASS")
  EOF
  sudo docker run -it --privileged --rm -v `pwd`:/mnt python python /mnt/test.py

Thanks to Andrei Vagin for the reproducer and investigation of this problem.

[refactoring to drop dependency of AUFS]
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: for aufs mmap: print the virtual file path
J. R. Okajima [Wed, 3 Aug 2022 12:00:43 +0000 (15:00 +0300)]
UBUNTU: SAUCE: for aufs mmap: print the virtual file path

BugLink: https://bugs.launchpad.net/bugs/1983640
For details, read the document in later commit.
I don't like this approach, and UnionMount seems to try solving a
similar problem by customizing f_dentry and d_inode. Ideally it is
better to result the same fix, but it may not be so easy because
UnionMount doesn't have its virtual inode/dentry/file objects as it is
not a 'filesystem.'

Signed-off-by: J. R. Okajima <hooanon05g@gmail.com>
(cherry picked from commit f8a27912904bdc40a27f434a9b6d19f56e7fb3b6)
[ https://github.com/sfjro/aufs5-linux ]

This patch is required to fix:
a80dceb9e85 ("UBUNTU: SAUCE: overlayfs: allow with shiftfs as underlay")

Please, refer to bug:
https://bugs.launchpad.net/bugs/1967924
for more details.

See also next commit
"UBUNTU: SAUCE: overlayfs: fix incorrect mnt_id of files opened from map_files"
that is the missing fix to properly support overlayfs with shiftfs.

(backported from https://github.com/sfjro/aufs5-linux)
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-5.19.0-15.15
Andrea Righi [Tue, 2 Aug 2022 07:23:01 +0000 (09:23 +0200)]
UBUNTU: Ubuntu-5.19.0-15.15

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Tue, 2 Aug 2022 07:09:19 +0000 (09:09 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1983335
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Tue, 2 Aug 2022 06:53:06 +0000 (08:53 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update annotations to support both gcc-11 and gcc-12
Andrea Righi [Tue, 2 Aug 2022 06:50:29 +0000 (08:50 +0200)]
UBUNTU: [Config] update annotations to support both gcc-11 and gcc-12

Temporarily remove some annotation enforcements so that we can build the
kernel either with gcc-11 or gcc-12.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-5.19.0-14.14
Andrea Righi [Mon, 1 Aug 2022 15:19:01 +0000 (17:19 +0200)]
UBUNTU: Ubuntu-5.19.0-14.14

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Mon, 1 Aug 2022 15:09:58 +0000 (17:09 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1983273
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update configs after moving to gcc-12
Andrea Righi [Mon, 1 Aug 2022 14:32:12 +0000 (16:32 +0200)]
UBUNTU: [Config] update configs after moving to gcc-12

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Config] update configs/annotations after rebase to 5.19
Andrea Righi [Mon, 1 Aug 2022 07:05:44 +0000 (09:05 +0200)]
UBUNTU: [Config] update configs/annotations after rebase to 5.19

c653c591789b ("drm/amdgpu: Re-enable DCN for 64-bit powerpc") introduced
CONFIG_PPC_LONG_DOUBLE_128, make sure to add that to the config.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Rebase to v5.19
Andrea Righi [Mon, 1 Aug 2022 06:38:16 +0000 (08:38 +0200)]
UBUNTU: Rebase to v5.19

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Mon, 1 Aug 2022 06:37:30 +0000 (08:37 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: SAUCE: Switch to using debian/scripts/sign-module
Juerg Haefliger [Fri, 29 Jul 2022 08:49:21 +0000 (10:49 +0200)]
UBUNTU: SAUCE: Switch to using debian/scripts/sign-module

Use the new script debian/scripts/sign-module to determine if a modules
needs to be signed.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] Introduce debian/scripts/sign-module
Juerg Haefliger [Fri, 29 Jul 2022 08:49:20 +0000 (10:49 +0200)]
UBUNTU: [Packaging] Introduce debian/scripts/sign-module

Move the logic that determines if a module needs to be signed to a script
and extend it to also check the signature-inclusion list of derivatives.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: [Packaging] module-signature-check: Check debian.<foo>/signature-inclusion
Juerg Haefliger [Fri, 29 Jul 2022 08:49:19 +0000 (10:49 +0200)]
UBUNTU: [Packaging] module-signature-check: Check debian.<foo>/signature-inclusion

Derivatives might contain additional signed staging drivers so ensure that
that list is processed as well when checking module signatures.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Ubuntu-5.19.0-13.13
Andrea Righi [Thu, 28 Jul 2022 15:04:33 +0000 (17:04 +0200)]
UBUNTU: Ubuntu-5.19.0-13.13

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: link-to-tracker: update tracking bug
Andrea Righi [Thu, 28 Jul 2022 14:54:40 +0000 (16:54 +0200)]
UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1983033
Properties: no-test-build
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
18 months agoUBUNTU: Start new release
Andrea Righi [Thu, 28 Jul 2022 14:52:19 +0000 (16:52 +0200)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>