mbox

[0/8] kernel: consolidated pull request

Message ID cover.1649799823.git.bruce.ashfield@gmail.com
State Not Applicable, archived
Headers show

Pull-request

git://git.yoctoproject.org/poky-contrib zedd/kernel

Message

Bruce Ashfield April 12, 2022, 9:45 p.m. UTC
From: Bruce Ashfield <bruce.ashfield@gmail.com>

Richard,

Here's the collection of -stable, fixes and tweaks that I was talking
about during the engineering sync on Tuesday.

Feel free to take what you want, or just wait on them all until the
release is over.

It is worth taking the 5.18 -dev and lttng fixes IMHO, since they do
make the release a bit more future proof. Likewise with Jon's -tiny
changes.

Cheers,

Bruce

The following changes since commit 632c83ab787211ef927a999f4ecde1d3ce40621d:

  license_image.bbclass: close package.manifest file (2022-04-10 08:31:17 +0100)

are available in the Git repository at:

  git://git.yoctoproject.org/poky-contrib zedd/kernel
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel

Bruce Ashfield (8):
  linux-yocto/5.15: arm: poky-tiny cleanup and fixes
  linux-yocto/5.15: update to v5.15.33
  linux-yocto/5.10: update to v5.10.110
  linux-yocto/5.10: base: enable kernel crypto userspace API
  linux-yocto/5.15: base: enable kernel crypto userspace API
  linux-yocto/5.15: kasan: fix BUG: sleeping function called from
    invalid context
  lttng-modules: support kernel 5.18+
  linux-yocto-dev: update to v5.18+

 meta/recipes-kernel/linux/linux-yocto-dev.bb  |   4 +-
 .../linux/linux-yocto-rt_5.10.bb              |   6 +-
 .../linux/linux-yocto-rt_5.15.bb              |   6 +-
 .../linux/linux-yocto-tiny_5.10.bb            |   8 +-
 .../linux/linux-yocto-tiny_5.15.bb            |   8 +-
 meta/recipes-kernel/linux/linux-yocto_5.10.bb |  24 +--
 meta/recipes-kernel/linux/linux-yocto_5.15.bb |  26 +--
 ...x-compaction-migratepages-event-name.patch |  37 ++++
 ...vent-allow-same-provider-and-event-n.patch |  48 +++++
 ...g-Don-t-re-read-p-state-when-emittin.patch | 183 ++++++++++++++++++
 .../0004-fix-block-remove-genhd.h-v5.18.patch |  45 +++++
 ...emove-REQ_OP_WRITE_SAME-support-v5.1.patch |  79 ++++++++
 ...ndom-remove-unused-tracepoints-v5.18.patch |  47 +++++
 ...rethook-for-kretprobe-if-possible-v5.patch |  72 +++++++
 ...ore-Remove-scsi-scsi_request.h-v5.18.patch |  44 +++++
 .../0009-Rename-genhd-wrapper-to-blkdev.patch |  76 ++++++++
 ...n-cleanup-the-compaction-trace-event.patch | 106 ++++++++++
 .../lttng/lttng-modules_2.13.3.bb             |  14 +-
 18 files changed, 791 insertions(+), 42 deletions(-)
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0001-Fix-compaction-migratepages-event-name.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0002-Fix-tracepoint-event-allow-same-provider-and-event-n.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0003-fix-sched-tracing-Don-t-re-read-p-state-when-emittin.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0004-fix-block-remove-genhd.h-v5.18.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0005-fix-scsi-block-Remove-REQ_OP_WRITE_SAME-support-v5.1.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0006-fix-random-remove-unused-tracepoints-v5.18.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0007-fix-kprobes-Use-rethook-for-kretprobe-if-possible-v5.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0008-fix-scsi-core-Remove-scsi-scsi_request.h-v5.18.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0009-Rename-genhd-wrapper-to-blkdev.patch
 create mode 100644 meta/recipes-kernel/lttng/lttng-modules/0010-fix-mm-compaction-cleanup-the-compaction-trace-event.patch

Comments

Luca Ceresoli April 13, 2022, 3:19 p.m. UTC | #1
Hello Bruce,

Il giorno Tue, 12 Apr 2022 17:45:55 -0400
"Bruce Ashfield" <bruce.ashfield@gmail.com> ha scritto:

> From: Bruce Ashfield <bruce.ashfield@gmail.com>
> 
> Richard,
> 
> Here's the collection of -stable, fixes and tweaks that I was talking
> about during the engineering sync on Tuesday.
> 
> Feel free to take what you want, or just wait on them all until the
> release is over.
> 
> It is worth taking the 5.18 -dev and lttng fixes IMHO, since they do
> make the release a bit more future proof. Likewise with Jon's -tiny
> changes.
> 
> Cheers,
> 
> Bruce
> 
> The following changes since commit
> 632c83ab787211ef927a999f4ecde1d3ce40621d:
> 
>   license_image.bbclass: close package.manifest file (2022-04-10
> 08:31:17 +0100)
> 
> are available in the Git repository at:
> 
>   git://git.yoctoproject.org/poky-contrib zedd/kernel
>   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel
> 
> Bruce Ashfield (8):
>   linux-yocto/5.15: arm: poky-tiny cleanup and fixes
>   linux-yocto/5.15: update to v5.15.33
>   linux-yocto/5.10: update to v5.10.110
>   linux-yocto/5.10: base: enable kernel crypto userspace API
>   linux-yocto/5.15: base: enable kernel crypto userspace API
>   linux-yocto/5.15: kasan: fix BUG: sleeping function called from
>     invalid context
>   lttng-modules: support kernel 5.18+
>   linux-yocto-dev: update to v5.18+

Sending this series to the autobuilders triggered some errors and
warnings (see below). Can you check that?

1. kernel not booting on qemuppc

  >> OpenBIOS 1.1 [Nov 1 2021 20:36]
  >> Configuration device id QEMU version 1 machine id 1
  >> CPUs: 1
  >> Memory: 256M
  >> UUID: 00000000-0000-0000-0000-000000000000
  >> CPU type PowerPC,G4
  milliseconds isn't unique.
  >> [ppc] Kernel already loaded (0x01000000 + 0x01394760) (initrd
  >> 0x00000000 + 0x00000000) [ppc] Kernel command line: root=/dev/vda rw mem=256M 
  >> ip=192.168.7.4::192.168.7.3:255.255.255.0::eth0:off:8.8.8.8 console=ttyS0 console=ttyS1 console=tty console=ttyS0 printk.time=1 
  >> switching to new context:

  ===== end: snippet =====

https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5012/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5013/steps/12/logs/stdio

2. X.org not starting on qemuarm

[    14.037] (EE) No devices detected.
[    14.039] (EE) Fatal server error:
[    14.040] (EE) no screens found(EE) 
[    14.041] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    14.042] (EE) Please also check the log file at
"/var/log/Xorg.0.log" for additional information. 
[    14.046] (EE) Server terminated with error (1). Closing log file.

https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5053/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5054/steps/12/logs/stdio

3. ptest warning 

AssertionError: Failed ptests:
{'strace': ['landlock_create_ruleset-y.gen.test',
            'landlock_create_ruleset-y.gen']}

This is landlock-related, thus perhaps caused by patch 2/8.

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3117/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3369/steps/12/logs/stdio

Best regards.
Bruce Ashfield April 13, 2022, 3:42 p.m. UTC | #2
On Wed, Apr 13, 2022 at 11:19 AM Luca Ceresoli <luca.ceresoli@bootlin.com>
wrote:

> Hello Bruce,
>
> Il giorno Tue, 12 Apr 2022 17:45:55 -0400
> "Bruce Ashfield" <bruce.ashfield@gmail.com> ha scritto:
>
> > From: Bruce Ashfield <bruce.ashfield@gmail.com>
> >
> > Richard,
> >
> > Here's the collection of -stable, fixes and tweaks that I was talking
> > about during the engineering sync on Tuesday.
> >
> > Feel free to take what you want, or just wait on them all until the
> > release is over.
> >
> > It is worth taking the 5.18 -dev and lttng fixes IMHO, since they do
> > make the release a bit more future proof. Likewise with Jon's -tiny
> > changes.
> >
> > Cheers,
> >
> > Bruce
> >
> > The following changes since commit
> > 632c83ab787211ef927a999f4ecde1d3ce40621d:
> >
> >   license_image.bbclass: close package.manifest file (2022-04-10
> > 08:31:17 +0100)
> >
> > are available in the Git repository at:
> >
> >   git://git.yoctoproject.org/poky-contrib zedd/kernel
> >   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel
> >
> > Bruce Ashfield (8):
> >   linux-yocto/5.15: arm: poky-tiny cleanup and fixes
> >   linux-yocto/5.15: update to v5.15.33
> >   linux-yocto/5.10: update to v5.10.110
> >   linux-yocto/5.10: base: enable kernel crypto userspace API
> >   linux-yocto/5.15: base: enable kernel crypto userspace API
> >   linux-yocto/5.15: kasan: fix BUG: sleeping function called from
> >     invalid context
> >   lttng-modules: support kernel 5.18+
> >   linux-yocto-dev: update to v5.18+
>
> Sending this series to the autobuilders triggered some errors and
> warnings (see below). Can you check that?
>
>
unfortunately not. I'll wait out the release and re-submit these later.

That being said, I've run similar tests to the errors found on the AB, and
can't reproduce locally, so I have no way to debug.

Cheers,

Bruce



> 1. kernel not booting on qemuppc
>
>   >> OpenBIOS 1.1 [Nov 1 2021 20:36]
>   >> Configuration device id QEMU version 1 machine id 1
>   >> CPUs: 1
>   >> Memory: 256M
>   >> UUID: 00000000-0000-0000-0000-000000000000
>   >> CPU type PowerPC,G4
>   milliseconds isn't unique.
>   >> [ppc] Kernel already loaded (0x01000000 + 0x01394760) (initrd
>   >> 0x00000000 + 0x00000000) [ppc] Kernel command line: root=/dev/vda rw
> mem=256M
>   >> ip=192.168.7.4::192.168.7.3:255.255.255.0::eth0:off:8.8.8.8
> console=ttyS0 console=ttyS1 console=tty console=ttyS0 printk.time=1
>   >> switching to new context:
>
>   ===== end: snippet =====
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5012/steps/12/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5013/steps/12/logs/stdio
>
> 2. X.org not starting on qemuarm
>
> [    14.037] (EE) No devices detected.
> [    14.039] (EE) Fatal server error:
> [    14.040] (EE) no screens found(EE)
> [    14.041] (EE)
> Please consult the The X.Org Foundation support
>          at http://wiki.x.org
>  for help.
> [    14.042] (EE) Please also check the log file at
> "/var/log/Xorg.0.log" for additional information.
> [    14.046] (EE) Server terminated with error (1). Closing log file.
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5053/steps/12/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5054/steps/12/logs/stdio
>
> 3. ptest warning
>
> AssertionError: Failed ptests:
> {'strace': ['landlock_create_ruleset-y.gen.test',
>             'landlock_create_ruleset-y.gen']}
>
> This is landlock-related, thus perhaps caused by patch 2/8.
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3117/steps/12/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3369/steps/12/logs/stdio
>
> Best regards.
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
Bruce Ashfield April 14, 2022, 2:30 a.m. UTC | #3
On Wed, Apr 13, 2022 at 11:42 AM Bruce Ashfield via
lists.openembedded.org
<bruce.ashfield=gmail.com@lists.openembedded.org> wrote:
>
>
>
> On Wed, Apr 13, 2022 at 11:19 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>>
>> Hello Bruce,
>>
>> Il giorno Tue, 12 Apr 2022 17:45:55 -0400
>> "Bruce Ashfield" <bruce.ashfield@gmail.com> ha scritto:
>>
>> > From: Bruce Ashfield <bruce.ashfield@gmail.com>
>> >
>> > Richard,
>> >
>> > Here's the collection of -stable, fixes and tweaks that I was talking
>> > about during the engineering sync on Tuesday.
>> >
>> > Feel free to take what you want, or just wait on them all until the
>> > release is over.
>> >
>> > It is worth taking the 5.18 -dev and lttng fixes IMHO, since they do
>> > make the release a bit more future proof. Likewise with Jon's -tiny
>> > changes.
>> >
>> > Cheers,
>> >
>> > Bruce
>> >
>> > The following changes since commit
>> > 632c83ab787211ef927a999f4ecde1d3ce40621d:
>> >
>> >   license_image.bbclass: close package.manifest file (2022-04-10
>> > 08:31:17 +0100)
>> >
>> > are available in the Git repository at:
>> >
>> >   git://git.yoctoproject.org/poky-contrib zedd/kernel
>> >   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel
>> >
>> > Bruce Ashfield (8):
>> >   linux-yocto/5.15: arm: poky-tiny cleanup and fixes
>> >   linux-yocto/5.15: update to v5.15.33
>> >   linux-yocto/5.10: update to v5.10.110
>> >   linux-yocto/5.10: base: enable kernel crypto userspace API
>> >   linux-yocto/5.15: base: enable kernel crypto userspace API
>> >   linux-yocto/5.15: kasan: fix BUG: sleeping function called from
>> >     invalid context
>> >   lttng-modules: support kernel 5.18+
>> >   linux-yocto-dev: update to v5.18+
>>
>> Sending this series to the autobuilders triggered some errors and
>> warnings (see below). Can you check that?
>>
>
> unfortunately not. I'll wait out the release and re-submit these later.
>
> That being said, I've run similar tests to the errors found on the AB, and can't reproduce locally, so I have no way to debug.
>
> Cheers,
>
> Bruce
>
>
>>
>> 1. kernel not booting on qemuppc
>>
>>   >> OpenBIOS 1.1 [Nov 1 2021 20:36]
>>   >> Configuration device id QEMU version 1 machine id 1
>>   >> CPUs: 1
>>   >> Memory: 256M
>>   >> UUID: 00000000-0000-0000-0000-000000000000
>>   >> CPU type PowerPC,G4
>>   milliseconds isn't unique.
>>   >> [ppc] Kernel already loaded (0x01000000 + 0x01394760) (initrd
>>   >> 0x00000000 + 0x00000000) [ppc] Kernel command line: root=/dev/vda rw mem=256M
>>   >> ip=192.168.7.4::192.168.7.3:255.255.255.0::eth0:off:8.8.8.8 console=ttyS0 console=ttyS1 console=tty console=ttyS0 printk.time=1
>>   >> switching to new context:
>>

I was able to steal a bit of time and did a git bisect on this one. i
have a suspected commit:

commit c894ac44786cfed383a6c6b20c1bfb12eb96018a
Author: Thomas Zimmermann <tzimmermann@suse.de>
Date:   Tue Jan 25 10:12:18 2022 +0100

    fbdev: Hot-unplug firmware fb devices on forced removal
    commit 27599aacbaefcbf2af7b06b0029459bbf682000d upstream.

Which seems to line up with the messages in the panic.

I reverted it, and I'm able to boot again. I'll carry that locally and
see what the full upstream fix is later .. since this is going to hit
us on future kernels as well.

>>
>>   ===== end: snippet =====
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5012/steps/12/logs/stdio
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5013/steps/12/logs/stdio
>>
>> 2. X.org not starting on qemuarm
>>
>> [    14.037] (EE) No devices detected.
>> [    14.039] (EE) Fatal server error:
>> [    14.040] (EE) no screens found(EE)
>> [    14.041] (EE)
>> Please consult the The X.Org Foundation support
>>          at http://wiki.x.org
>>  for help.
>> [    14.042] (EE) Please also check the log file at
>> "/var/log/Xorg.0.log" for additional information.
>> [    14.046] (EE) Server terminated with error (1). Closing log file.
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5053/steps/12/logs/stdio
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/5054/steps/12/logs/stdio
>>


This was related to Jon Mason's config changes to qemuarm for -tiny,
he's got it working again, and a fix should be incoming.

>>
>> 3. ptest warning
>>
>> AssertionError: Failed ptests:
>> {'strace': ['landlock_create_ruleset-y.gen.test',
>>             'landlock_create_ruleset-y.gen']}
>>
>> This is landlock-related, thus perhaps caused by patch 2/8.
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3117/steps/12/logs/stdio
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3369/steps/12/logs/stdio
>>

No great idea on this one yet. I can't easily run ptests with my
aging/ancient builder, so I'll see if I can come up with a simpler way
to test it next week.

Bruce


>>
>> Best regards.
>> --
>> Luca Ceresoli, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#164336): https://lists.openembedded.org/g/openembedded-core/message/164336
> Mute This Topic: https://lists.openembedded.org/mt/90428400/1050810
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>