• [PATCH v2] arm64: compat: Implement misalignment fixups for multiword l

    From Ard Biesheuvel@21:1/5 to All on Fri Jul 1 16:20:01 2022
    The 32-bit ARM kernel implements fixups on behalf of user space when
    using LDM/STM or LDRD/STRD instructions on addresses that are not 32-bit aligned. This is not something that is supported by the architecture,
    but was done anyway to increase compatibility with user space software,
    which mostly targeted x86 at the time and did not care about aligned
    accesses.

    This feature is one of the remaining impediments to being able to switch
    to 64-bit kernels on 64-bit capable hardware running 32-bit user space,
    so let's implement it for the arm64 compat layer as well.

    Note that the intent is to implement the exact same handling of
    misaligned multi-word loads and stores as the 32-bit kernel does,
    including what appears to be missing support for user space programs
    that rely on SETEND to switch to a different byte order and back. Also,
    like the 32-bit ARM version, we rely on the faulting address reported by
    the CPU to infer the memory address, instead of decoding the instruction
    fully to obtain this information.

    This implementation is taken from the 32-bit ARM tree, with all pieces
    removed that deal with instructions other than LDRD/STRD and LDM/STM, or
    that deal with alignment exceptions taken in kernel mode.

    Cc: debian-arm@lists.debian.org
    Cc: Vagrant Cascadian <vagrant@debian.org>
    Cc: Riku Voipio <riku.voipio@iki.fi>
    Cc: Steve McIntyre <steve@einval.com>
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    ---
    Note to cc'ees: if this is something you would like to see merged,
    please indicate so. This stuff is unlikely to get in if there are no
    users.

    v2: - drop some obsolete comments
    - emit a perf alignment-fault event for every handled instruction
    - use arm64_skip_faulting_instruction() to get the correct behavior
    wrt IT state and single step
    - use types with correct endianness annotation (instructions are
    always little endian on v7/v8+)

    arch/arm64/Kconfig | 4 +
    arch/arm64/include/asm/exception.h | 1 +
    arch/arm64/kernel/Makefile | 1 +
    arch/arm64/kernel/compat_alignment.c | 389 ++++++++++++++++++++
    arch/arm64/mm/fault.c | 3 +
    5 files changed, 398 insertions(+)

    diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
    index 1652a9800ebe..401e4f8fa149 100644
    --- a/arch/arm64/Kconfig
    +++ b/arch/arm64/Kconfig
    @@ -1508,6 +1508,10 @@ config THUMB2_COMPAT_VDSO
    Compile the compat vDSO with '-mthumb -fomit-frame-
  • From gene heskett@21:1/5 to LinAdmin on Fri Jul 15 11:40:01 2022
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(


    On 14.07.22 03:52, Wookey wrote:
    On 2022-07-01 15:53 +0200, Ard Biesheuvel wrote:
    The 32-bit ARM kernel implements fixups on behalf of user space when
    using LDM/STM or LDRD/STRD instructions on addresses that are not 32-bit >>> aligned.
    This feature is one of the remaining impediments to being able to switch >>> to 64-bit kernels on 64-bit capable hardware running 32-bit user space,
    so let's implement it for the arm64 compat layer as well.
    I agree.  So far, raspios is still available in armhf flavor, and for
    running
    heavy machinery with just a few microseconds to respond to an IRQ,
    armhf builds are a given. LinuxCNC is such an application.

    I built this kernel for an rpi4b quite a while ago, but none more recent
    have been as usable. uname -a:

    Linux rpi4.coyote.den 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Thu Feb 6
    07:09:18 EST 2020 armv7l GNU/Linux

    latency-test shows about 12 u-secs as long as I stay away from firefox.

    That's good enough to run a cnc converted 80 yo 11x56 Sheldon lathe,
    making it do dance steps that were not in its vocabulary 80 years ago.

    Yet that raspios buster install is the full blown graphical install I
    also use
    as a development platform, with big SSD's plugged into its usb3 ports for workspace.

    Is it stable? Absolutely, no splats since the above date unless caused by
    me, uptimes are in the many months category as I try newer stuff now
    and then and find it wanting.

    The exception is right now, as libc6 was replaced and I rebooted it
    2 days ago.

    It would be running bullseye but the last time I switched boot cards to try
    it, the python was too new to build LinuxCNC with but the built on buster version still worked and so did the above kernel.

    What I'd like to know, is why is armhf such a dirty word to debian?

    Take care and stay well everybody.

    Note to cc'ees: if this is something you would like to see merged,
    please indicate so. This stuff is unlikely to get in if there are no
    users.
    Decent 32-bit arm hardware is thin on the ground these days. Debian
    still has some but it's getting old and flaky. Being able to build
    reliably on 64-bit hardware is important and useful. Unaligned
    accesses are much less of a problem than they used to be, but they can
    still happen, so having these fixups available is definitely a good
    thing.

    Debian runs its 32-bit buildds with alignment fixups turned on. It
    looks like the boxes still hit about 1 per day.

    We also do 32 bit builds on 64-bit kernels (in 32-bit userspaces) and
    it mostly works. We do have packages that fail on 64-bit kernels and
    have to be built on real 32-bit hardware, but I don't know how much of
    that would be fixed by this patch. Some, presumably.

    So yes, cheers for this. It is helpful in the real world (or at least
    it should be).

    Wookey

    .
    Cheers, Gene Heskett.

    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to gheskett@shentel.net on Fri Jul 15 12:20:01 2022
    On Fri, Jul 15, 2022 at 11:39 AM gene heskett <gheskett@shentel.net> wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(

    Please stop the name calling, and the spreading of misinformation on this list.

    I built this kernel for an rpi4b quite a while ago, but none more recent
    have been as usable. uname -a:

    Linux rpi4.coyote.den 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Thu Feb 6
    07:09:18 EST 2020 armv7l GNU/Linux

    latency-test shows about 12 u-secs as long as I stay away from firefox.

    That's good enough to run a cnc converted 80 yo 11x56 Sheldon lathe,
    making it do dance steps that were not in its vocabulary 80 years ago.

    Yet that raspios buster install is the full blown graphical install I
    also use
    as a development platform, with big SSD's plugged into its usb3 ports for workspace.

    Is it stable? Absolutely, no splats since the above date unless caused by
    me, uptimes are in the many months category as I try newer stuff now
    and then and find it wanting.

    The exception is right now, as libc6 was replaced and I rebooted it
    2 days ago.

    It would be running bullseye but the last time I switched boot cards to try it, the python was too new to build LinuxCNC with but the built on buster version still worked and so did the above kernel.

    What I'd like to know, is why is armhf such a dirty word to debian?

    Ard's kernel patch is for the armhf target, and to keep it working
    on modern hardware that runs a 64-bit kernel, as there is a specific compatibility problem (specifically applications that trigger
    undefined behavior in C with misaligned pointers) without this patch.

    If you see /other/ problems with the 64-bit kernel (using the
    same user space, kernel source and kernel config as the 32-bit
    kernel), please report those to the respective upstream kernel
    maintainers so we can fix those as well.

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Wise@21:1/5 to Arnd Bergmann on Fri Jul 15 12:50:02 2022
    On Fri, 2022-07-15 at 12:04 +0200, Arnd Bergmann wrote:

    If you see /other/ problems with the 64-bit kernel (using the
    same user space, kernel source and kernel config as the 32-bit
    kernel), please report those to the respective upstream kernel
    maintainers so we can fix those as well.

    Gene's complaint is unrelated to this thread, but it is that Debian
    refuses to support running the 32-bit ARMMP kernel on 64-bit hardware, specifically on the RaspberryPi 4b. There wasn't any justification from
    Debian given in the bug reports, but it sounds like only build config
    options are needed to be enabled, but Debian refuses to do that:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971059#12 https://bugs.debian.org/981586

    --
    bye,
    pabs

    https://wiki.debian.org/PaulWise

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmLRRIcACgkQMRa6Xp/6 aaMHAw//QORt4AWEJgv4HyhonAkrPHrtdNpj6814uClayvj+RnDKeMXXtyzQfo3a swWV2Ovqut/FefP5B5Mt+foRiVL9oZKKrneFyA78IsbrZI7wZDjyS1QIlMYWFlX3 sjeUTgSW9OVnpfin/A7YyeVh1zrhqyUYjr98CqkvwkasQjDh/Zv0w9FYzE6F0+G5 FuMEAocXyJmr9txGHZMpGsLZLuudkeMjowwaIww5xBoeTKARxbNrE8gqYFJ9ruJU /p4Ig3YkZCQNkUTiC7xXSVLZzRKhnkQbwXccoConpF+qnWU4SbqYZpqLKHkt3YPu +LMSbR+NeQ2QdB4B70VRz/OSq4Q5hJMFYsU9YrExa11iMqzWsELVe2rXpYlQ0uhO vcQtRVdJTW6zAQb/YMhqgfd3qQTnkAL9ytF2YCgZ0jJ77ErXVVeuJSLQDqX1CgKQ VYoky0y/RFSKMTTbQC5Pa/HldcMlk5G29FNE9VrA9eYIUNyGSkQ+Mp+Jvv6WjU8x rSYk27fhrVb9VJPYCDB8JEuASW/RMPKqOgUO9UrKFoudLDqMDG1vKgURSfJ0QH+H hbQT34UrFHHac9kd4ZRxaBZyx3A954tqJHrgx6YhAw7LHJj43KOqRBAruCs22UHg YJ0flac5T6zRbv7ssOlS2Od9soN7Ig0m9/SOnpRxzJ9lyE/3ILo=
    =ri3A
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to pabs@debian.org on Fri Jul 15 13:10:01 2022
    On Fri, Jul 15, 2022 at 12:42 PM Paul Wise <pabs@debian.org> wrote:

    On Fri, 2022-07-15 at 12:04 +0200, Arnd Bergmann wrote:

    If you see /other/ problems with the 64-bit kernel (using the
    same user space, kernel source and kernel config as the 32-bit
    kernel), please report those to the respective upstream kernel
    maintainers so we can fix those as well.

    Gene's complaint is unrelated to this thread, but it is that Debian
    refuses to support running the 32-bit ARMMP kernel on 64-bit hardware, specifically on the RaspberryPi 4b. There wasn't any justification from Debian given in the bug reports, but it sounds like only build config
    options are needed to be enabled, but Debian refuses to do that:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971059#12 https://bugs.debian.org/981586

    I see, and I agree that this is frustrating when trying to pinpoint
    a bug in the 64-bit kernel. On the other hand this is of course
    a sensible decision, since users clearly should not actually
    run the 32-bit kernel in this hardware other than for testing
    purposes.

    I suppose this is made worse by the lack of a 64-bit kernel
    option in the armhf installer, which means one has to go through
    a couple of extra steps to install the arm64 kernel and get a
    booting system.

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to gene heskett on Fri Jul 15 17:10:01 2022
    On Fri, Jul 15, 2022 at 05:39:34AM -0400, gene heskett wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(


    On 14.07.22 03:52, Wookey wrote:
    On 2022-07-01 15:53 +0200, Ard Biesheuvel wrote:
    The 32-bit ARM kernel implements fixups on behalf of user space when using LDM/STM or LDRD/STRD instructions on addresses that are not 32-bit
    aligned.
    This feature is one of the remaining impediments to being able to switch
    to 64-bit kernels on 64-bit capable hardware running 32-bit user space, so let's implement it for the arm64 compat layer as well.
    I agree.  So far, raspios is still available in armhf flavor, and for
    running
    heavy machinery with just a few microseconds to respond to an IRQ,
    armhf builds are a given. LinuxCNC is such an application.


    LinAdmin,

    Just a thought: you might want to check which "so called experts" you are calling out here. Wookey has been an expert at ARM for the last 15 years or more - he knows what he's talking about.

    Debian has *not* abandoned armhf - Debian is one of the last Linux distributions actively supporting 32 bit for ARM or Intel architectures.

    Gene,

    Raspberry Pi OS is **not** Debian. Strictly, it's very much on its own as a forkof Raspbian from Peter Green.
    For historical reasons, Raspbian and Raspberry Pi OS are the odd ones out with their version of armhf - arm v6 plus hardware floating point originally,
    where everyone else had settled on arm v7 plus hardware floating point.

    LinuxCNC is probably supported by neither Debian nor Raspberry Pi OS.

    Finally, of course, it's useful for everyone to remember to be polite
    and considerate - Code of Conduct applies here as everywhere else on
    Debian's mailing lists.

    With every good wish, as ever,

    Andy Cater



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Corey@21:1/5 to Andrew M.A. Cater on Fri Jul 15 18:40:01 2022
    Debian ARM actually splits 3 ways: https://www.debian.org/ports/arm/
    for armel, armhf, arm64. Raspbian still uses one version I think.

    I had been using Raspbian for years until somebody there decided to
    drop the LXDE/Openbox desktops with Bullseye. And they seem to be
    using Debian now(?). I actually use a RPI ZeroW for doing audio
    recording powered by a 18650 cell, but at the other end I have a few
    RPI 3Bs, no need for arm64. So I took the path less trodden. Mostly
    not bad (Debian armhf) but a few oddities like menu colors in Gimp are
    mostly unreadable with the default theme.

    On 7/15/22, Andrew M.A. Cater <amacater@einval.com> wrote:
    On Fri, Jul 15, 2022 at 05:39:34AM -0400, gene heskett wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(


    On 14.07.22 03:52, Wookey wrote:
    On 2022-07-01 15:53 +0200, Ard Biesheuvel wrote:
    The 32-bit ARM kernel implements fixups on behalf of user space
    when
    using LDM/STM or LDRD/STRD instructions on addresses that are not
    32-bit
    aligned.
    This feature is one of the remaining impediments to being able to
    switch
    to 64-bit kernels on 64-bit capable hardware running 32-bit user
    space,
    so let's implement it for the arm64 compat layer as well.
    I agree.  So far, raspios is still available in armhf flavor, and for
    running
    heavy machinery with just a few microseconds to respond to an IRQ,
    armhf builds are a given. LinuxCNC is such an application.


    LinAdmin,

    Just a thought: you might want to check which "so called experts" you are calling out here. Wookey has been an expert at ARM for the last 15 years or

    more - he knows what he's talking about.

    Debian has *not* abandoned armhf - Debian is one of the last Linux distributions actively supporting 32 bit for ARM or Intel architectures.

    Gene,

    Raspberry Pi OS is **not** Debian. Strictly, it's very much on its own as a forkof Raspbian from Peter Green.
    For historical reasons, Raspbian and Raspberry Pi OS are the odd ones out with
    their version of armhf - arm v6 plus hardware floating point originally, where everyone else had settled on arm v7 plus hardware floating point.

    LinuxCNC is probably supported by neither Debian nor Raspberry Pi OS.

    Finally, of course, it's useful for everyone to remember to be polite
    and considerate - Code of Conduct applies here as everywhere else on
    Debian's mailing lists.

    With every good wish, as ever,

    Andy Cater






    --
    -------------
    Education is contagious.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wookey@21:1/5 to Paul Wise on Fri Jul 15 18:20:02 2022
    On 2022-07-15 18:42 +0800, Paul Wise wrote:
    On Fri, 2022-07-15 at 12:04 +0200, Arnd Bergmann wrote:

    If you see /other/ problems with the 64-bit kernel (using the
    same user space, kernel source and kernel config as the 32-bit
    kernel), please report those to the respective upstream kernel
    maintainers so we can fix those as well.

    Gene's complaint is unrelated to this thread, but it is that Debian
    refuses to support running the 32-bit ARMMP kernel on 64-bit hardware, specifically on the RaspberryPi 4b. There wasn't any justification from Debian given in the bug reports, but it sounds like only build config
    options are needed to be enabled, but Debian refuses to do that:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971059#12 https://bugs.debian.org/981586

    Ah thanks Paul. I was wondering why we were being accused of 'Debian abandonning armhf' when it was news to me, and I'm just writing the
    'ARM ports status' talk for Debconf next week.

    Clearly one normally does not run foreign-arch kernels on hardware so
    we don't have to support it, and Ben is right to say 'this is not a
    bug'.

    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?

    Does this only work for the RPi4, or does it enable/prevent 32-bit kernels on other 64-bit machines?

    Do i386 kernels work on amd64 machines?

    Sounds like something that might be worth discussion at debconf next week. I'll mention it in the talk.

    Wookey
    --
    Principal hats: Debian, Wookware, ARM
    http://wookware.org/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEER4nvI8Pe/wVWh5yq+4YyUahvnkcFAmLRkicACgkQ+4YyUahv nkfyYxAApbTlzt7PgInsDyejzf1lHJ8B6lGqDcA8yWiiRBWXynRbEMIbEEmrjyYB jegzDl9qz8VLc5VMw+e/BQV/ztAtwbWm+pgK5hF3wC/vgs7S99xF2kQcurWZXQBH +3D0z2Tx1ILVE0oxjLU3QmWN7a//qrVFnKYe1NdLjti3rG+zEsw4H1xthUhdHO6P wFP0fBA0O+Bc/cPbZ7clmLemtQkNak4ev1sSqmr0Ptt5wCRT8J3ndBE18FUXpt3q 0GVp+Z8Qv4R1XML32bScRamPNM7K5WxJVIvEErMp/uP3iqQMwtmkkrFMIzg0fO+N /WHrmO4gnlLEx54D3+BNnOvk9YjJiv6qCU1HSYCx4nqTdp9wy+s7n5Nwj2HYd3wd GOEXDmURDta+MJ/v+2L3zLvxK2zjLsptk2GzcO1NASnigNZLI10PgkZTxYu83Owr hWCBO0LY06UbYuo8RuNtzzKpXJc0qstC4+qtg5F1Tp0WBN3qWaBgDmSHKCM/Nho/ ZYmYbQCNYwYw6JoHNuBnQVFE57ZS+6XIzoNxGF2VnaeKYIOsYVa2M5FeUEk0NOzf cLH/4b9H+z4WxZCqypoRPxqmuoMABJPTwBiY5q0ZWtPQc/vA5yDYzo7b2tnYmZzN xbSAlw1N4HS+lteELP8PlNTFD05q/t896M2NtynZpsZ5LMg8kHU=
    =BHMz
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Andrew M.A. Cater on Fri Jul 15 19:30:01 2022
    On 7/15/22 11:09, Andrew M.A. Cater wrote:
    On Fri, Jul 15, 2022 at 05:39:34AM -0400, gene heskett wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(


    On 14.07.22 03:52, Wookey wrote:
    On 2022-07-01 15:53 +0200, Ard Biesheuvel wrote:
    The 32-bit ARM kernel implements fixups on behalf of user space when >>>>> using LDM/STM or LDRD/STRD instructions on addresses that are not 32-bit >>>>> aligned.
    This feature is one of the remaining impediments to being able to switch >>>>> to 64-bit kernels on 64-bit capable hardware running 32-bit user space, >>>>> so let's implement it for the arm64 compat layer as well.
    I agree.  So far, raspios is still available in armhf flavor, and for
    running
    heavy machinery with just a few microseconds to respond to an IRQ,
    armhf builds are a given. LinuxCNC is such an application.

    LinAdmin,

    Just a thought: you might want to check which "so called experts" you are calling out here. Wookey has been an expert at ARM for the last 15 years or more - he knows what he's talking about.

    Debian has *not* abandoned armhf - Debian is one of the last Linux distributions actively supporting 32 bit for ARM or Intel architectures.

    Gene,

    Raspberry Pi OS is **not** Debian. Strictly, it's very much on its own as a forkof Raspbian from Peter Green.
    For historical reasons, Raspbian and Raspberry Pi OS are the odd ones out with
    their version of armhf - arm v6 plus hardware floating point originally, where everyone else had settled on arm v7 plus hardware floating point.
    Ahh contraire, linuxcnc is at this moment and has been since the
    rpi was a 3b, running on the armhf version quite well in fact.  With
    this kernel:
    Linux rpi4.coyote.den 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Thu Feb 6
    07:09:18 EST 2020 armv7l GNU/Linux
    LinuxCNC is probably supported by neither Debian nor Raspberry Pi OS.

    Finally, of course, it's useful for everyone to remember to be polite
    and considerate - Code of Conduct applies here as everywhere else on
    Debian's mailing lists.

    With every good wish, as ever,

    Andy Cater

    .


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Wookey on Fri Jul 15 19:50:01 2022
    On 7/15/22 12:16, Wookey wrote:
    On 2022-07-15 18:42 +0800, Paul Wise wrote:
    On Fri, 2022-07-15 at 12:04 +0200, Arnd Bergmann wrote:

    If you see /other/ problems with the 64-bit kernel (using the
    same user space, kernel source and kernel config as the 32-bit
    kernel), please report those to the respective upstream kernel
    maintainers so we can fix those as well.
    Gene's complaint is unrelated to this thread, but it is that Debian
    refuses to support running the 32-bit ARMMP kernel on 64-bit hardware,
    specifically on the RaspberryPi 4b. There wasn't any justification from
    Debian given in the bug reports, but it sounds like only build config
    options are needed to be enabled, but Debian refuses to do that:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971059#12
    https://bugs.debian.org/981586
    Ah thanks Paul. I was wondering why we were being accused of 'Debian abandonning armhf' when it was news to me, and I'm just writing the
    'ARM ports status' talk for Debconf next week.

    Clearly one normally does not run foreign-arch kernels on hardware so
    we don't have to support it, and Ben is right to say 'this is not a
    bug'.

    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?
    It, LinuxCNC, does indeed run on an armhf kernel built right on the pi
    and has been since Jessie on a rpi3b.
    Does this only work for the RPi4, or does it enable/prevent 32-bit kernels on other 64-bit machines?
    No. It runs with the same armhf kernel on an rpi3b, but the 3b is
    dragging its
    tongue on the floor where the 4b has some leftover zip.

    I'm driving an 80 yo Sheldon lathe with it, and a 3 axis Mazak mill is
    under
    construction/conversion by another person out on the left coast as we're discussing this. But the lack of armhf in Debian is why we're both running raspian, I built his boot cards.

    Because our latency-test results are better on armhf than on arm64, we
    use armhf
    for its performance.
    Do i386 kernels work on amd64 machines?
    Different architecture. No relevance here.

    Sounds like something that might be worth discussion at debconf next week. I'll mention it in the talk.

    Wookey


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vagrant Cascadian@21:1/5 to wookey@wookware.org on Fri Jul 15 21:00:01 2022
    On 2022-07-15, wookey@wookware.org wrote:
    The question from Debian's POV is how many other people want to use non-native arm kernels (and for what?). How many platforms is it
    relevant to? And if there is a downside, how many does that effect,
    and how/how much.

    For Reproducible Builds testing of armhf packages I run several machines
    (some physical, some virtual) with arm64 kernel and armhf userland, and
    it basically works.

    It is a little tricky to set up multi-arch to be able to get the linux-image-arm64 kernel from arm64 without pulling in all the
    recommends on various :arm64 packages, but once it is set up, it works
    fine...

    I have no idea how difficult it would be to add multi-arch support to debian-installer, but it is not too hard to build an image using
    "mmdebstrap" that supports a linux-image-arm64:arm64 kernel on an armhf userland.


    live well,
    vagrant

    -----BEGIN PGP SIGNATURE-----

    iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYtG3ggAKCRDcUY/If5cW qpNEAQDMOP6ksGga2Waw7XbtXS49HISjeLguXp3PiQ3InLZ/0AD9GjWWCIMpkRqe MjFoHOF3qRiUHFqOoLO4Lg8HLjcJtQA=
    =o1Ib
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wookey@21:1/5 to gene heskett on Fri Jul 15 20:30:01 2022
    On 2022-07-15 13:40 -0400, gene heskett wrote:
    On 7/15/22 12:16, Wookey wrote:

    Clearly one normally does not run foreign-arch kernels on hardware so
    we don't have to support it, and Ben is right to say 'this is not a
    bug'.

    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?
    It, LinuxCNC, does indeed run on an armhf kernel built right on the pi
    and has been since Jessie on a rpi3b.

    And it is now in debian: https://tracker.debian.org/pkg/linuxcnc

    Does this only work for the RPi4, or does it enable/prevent 32-bit kernels on other 64-bit machines?
    No. It runs with the same armhf kernel on an rpi3b, but the 3b is dragging its
    tongue on the floor where the 4b has some leftover zip.

    Sorry. I meant other arm64 hardware than from broadcom (not other RPi flavours). I.e does enabling
    CONFIG_PCIE_BRCMSTB=y
    CONFIG_RESET_RASPERBERRY=y
    RESET_BRCMSTB_RESCAL=y

    Cause the kernel any issues on other platforms?

    Because our latency-test results are better on armhf than on arm64, we use armhf for its performance.

    OK. How much better? What sort of performance difference are we talking about?

    And how many other users care about this? Debian is a general-purpose
    OS and has to choose options that are generally useful or at least not generally harmful. One user with some interesting hardware can clearly
    install a new kernel built with specific options.

    The question from Debian's POV is how many other people want to use
    non-native arm kernels (and for what?). How many platforms is it
    relevant to? And if there is a downside, how many does that effect,
    and how/how much.

    You say the kernel is 'a few kB bigger'. How many kB? Kernel size has
    been critical on some armhf models in this past so even if that's the
    only cost, it's not necessarily negligible. We may have dropped all
    the platforms this was critical for by now, in which case perhaps a 'a
    few kB' doesn't matter.

    Do i386 kernels work on amd64 machines?
    Different architecture. No relevance here.

    It's not entirely irrelevant. If it works on x86 then it's not
    entirely unreasonable for people to expect it to work on arm. We do
    strive for parity to the degree that it is possible and reasonable.
    If it doesn't work on x86 then that justification can't be used, and
    indeed strengthens the argument that 'just about nobody runs
    non-native kernels - if you want to, you are on your own'.

    Wookey
    --
    Principal hats: Debian, Wookware, ARM
    http://wookware.org/

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEER4nvI8Pe/wVWh5yq+4YyUahvnkcFAmLRr9IACgkQ+4YyUahv nkdgQg/9Gdm82Hvid7TxKb/tX8+iBFCQ9/TDvigr4k5eXpdiEaF1BXLdBCU788BB n0lrRFTQpeqt9Z+bCElDnwJ3AfgFHljRqk6yzAbj9+dYjOjn4TF+rnABMLZ+iwSm XO09CzUvp+oODHcNc7K/TQF2ppH78y1VtLBnlo4TQgfsig31jLBQKmEnnV0akzKn QApWeBRw4LEqcxMb0oTqR/oWYb4Eq4LZ5yDnwtvvaGDpdLdoWrYtQ5z+YHrB8Ada 8efwFD5Afk3BtbLl0nxRjND5MpicFMfIl7mwBCPMcLmfgpYOvgWcrzAWWKqL6lHX K1MLkMOCR5sqq9bUOzoJaju0zg2OX6QKyawDpe06//Xib1mUyzeNEtvSofYnISrh 9S0CxvViyo3K0wapxTaSZsSmflQOmEiHE+PhRhA5Jerw4HFvunv/0ina0q3sEnvZ q0yM04DG3ePbNiIUJ0M+T1Doq7CrKEPiTeudjVoEJTGcYDN+8rRy7URlogCN/r98 J7ya5n1xX+RJEYXF/0voYpNUI6VORHv72Sh2Kfs/D/O3RcBX1fY391yubHq0mpj9 O74lE84l5GtHpZjCJ+y/XHF+lLaRKa/RUAAKsVkdsGZeYppnHA7BDO9K9g5ndUdh ISaH+eGwSI1qE+JkwNq1iyXEBiicEDKZStRu/CyestkhtMEB51Y=
    =ejGq
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to wookey@wookware.org on Fri Jul 15 21:50:01 2022
    On Fri, Jul 15, 2022 at 6:13 PM Wookey <wookey@wookware.org> wrote:
    On 2022-07-15 18:42 +0800, Paul Wise wrote:
    On Fri, 2022-07-15 at 12:04 +0200, Arnd Bergmann wrote:
    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?

    Does this only work for the RPi4, or does it enable/prevent 32-bit
    kernels on other 64-bit machines?

    The bug report was only about a missing driver for the Raspberry Pi 4,
    enabling the driver has no effect on other machines besides making the
    kernel slightly bigger, or adding another kernel module if it can be
    modular (most PCI host drivers are traditionally built-in, though that is
    not strictly necessary).

    Do i386 kernels work on amd64 machines?

    Sounds like something that might be worth discussion at debconf next week. I'll mention it in the talk.

    It is generally possible to run 32-bit kernels on 64-bit hardware on x86,
    some armv8 and mips, but there are a lot of downsides. On powerpc,
    sparc, riscv, and newer armv8/v9, one has to run a 64-bit kernel.

    Traditionally you'd only have a 64-bit kernel but 32-bit user space, at
    least on powerpc, pa-risc and sparc.

    I think x86 and arm are the odd ones out here, because Debian has
    never shipped a 64-bit kernel packaged as a 32-bit .deb file here,
    though at the moment mipsel is the only one that ships with
    64-bit kernel by default.

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to Wookey on Fri Jul 15 22:00:01 2022
    On Fri, Jul 15, 2022 at 05:13:33PM +0100, Wookey wrote:
    Ah thanks Paul. I was wondering why we were being accused of 'Debian abandonning armhf' when it was news to me, and I'm just writing the
    'ARM ports status' talk for Debconf next week.

    Clearly one normally does not run foreign-arch kernels on hardware so
    we don't have to support it, and Ben is right to say 'this is not a
    bug'.

    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?

    Does this only work for the RPi4, or does it enable/prevent 32-bit kernels on other 64-bit machines?

    Certainly people have been running 32 bit kernels on the Pi 3 and 4 and
    it works fine. Some high end aarch64 CPUs don't support 32 bit mode,
    but that is certainly not the case for the Pi's CPU.

    Do i386 kernels work on amd64 machines?

    Yes, but... They certainly don't work with more than 3.5GB or so of ram
    unless you use the pae version of the kernel then you can have some more.
    There have been issues in some cases with systems that had too much ram
    where rather than just ignoring it the kernel would fail to boot.

    Of course it was very common a 15 or 20 years ago to run debian i386 with
    an amd64 kernel and was fully supported by debian including the installer
    which as far as I remember even recommended that kernel if supported by
    the host. Quite a bit of user space code still had issues with 64 bit,
    but you got to run a kernel that could take full advantage of your ram
    and other cpu features, while running 32 bit user space (since the amd64
    kernel of course can run i386 binaries just fine).

    For example this was very much in Debian: http://snapshot.debian.org/archive/debian/20050312T000000Z/pool/main/k/kernel-image-2.6.9-amd64/kernel-image-2.6.9-9-amd64-generic_2.6.9-4_i386.deb

    So an amd64 kernel in the i386 archive.

    Sounds like something that might be worth discussion at debconf next week. I'll mention it in the talk.

    Well it would essentially mean treating arm like i386 used to be treated.
    It is certainly not a thing Debian hasn't supported before.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to Arnd Bergmann on Fri Jul 15 22:00:01 2022
    On Fri, Jul 15, 2022 at 09:46:59PM +0200, Arnd Bergmann wrote:
    It is generally possible to run 32-bit kernels on 64-bit hardware on x86, some armv8 and mips, but there are a lot of downsides. On powerpc,
    sparc, riscv, and newer armv8/v9, one has to run a 64-bit kernel.

    Traditionally you'd only have a 64-bit kernel but 32-bit user space, at
    least on powerpc, pa-risc and sparc.

    I think x86 and arm are the odd ones out here, because Debian has
    never shipped a 64-bit kernel packaged as a 32-bit .deb file here,
    though at the moment mipsel is the only one that ships with
    64-bit kernel by default.

    http://snapshot.debian.org/archive/debian/20050312T000000Z/pool/main/k/kernel-image-2.6.9-amd64/kernel-image-2.6.9-9-amd64-generic_2.6.9-4_i386.deb

    Debian did plenty of them. It was very commonly used.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to lsorense@csclub.uwaterloo.ca on Fri Jul 15 22:50:01 2022
    On Fri, Jul 15, 2022 at 9:55 PM Lennart Sorensen
    <lsorense@csclub.uwaterloo.ca> wrote:
    On Fri, Jul 15, 2022 at 05:13:33PM +0100, Wookey wrote:
    Ah thanks Paul. I was wondering why we were being accused of 'Debian abandonning armhf' when it was news to me, and I'm just writing the
    'ARM ports status' talk for Debconf next week.

    Clearly one normally does not run foreign-arch kernels on hardware so
    we don't have to support it, and Ben is right to say 'this is not a
    bug'.

    On the other hand, if the armhf kernel does work on RPi4 with a few
    config options, and there is an actual use case, then the question is
    what is the downside of enabling the config options?

    Does this only work for the RPi4, or does it enable/prevent 32-bit kernels on other 64-bit machines?

    Certainly people have been running 32 bit kernels on the Pi 3 and 4 and
    it works fine. Some high end aarch64 CPUs don't support 32 bit mode,
    but that is certainly not the case for the Pi's CPU.

    Do i386 kernels work on amd64 machines?

    Yes, but... They certainly don't work with more than 3.5GB or so of ram unless you use the pae version of the kernel then you can have some more. There have been issues in some cases with systems that had too much ram
    where rather than just ignoring it the kernel would fail to boot.

    This is exactly the same situation on arm as on x86: without an (L)PAE-enabled kernel, only the low (device specific) few GB are accessible, anything at
    a higher physical address than 4GB disappears completely.
    I don't know how much of the memory this affects on bcm2711, but at least
    for the 8GB Raspberry Pi there is no point running with the default (non-LPAE) kernel.

    The other issues with running 32-bit kernels are also similar to x86:

    - many new features are only added on 64-bit kernels or are only available
    in 64-bit mode, so running a 32-bit kernel is less secure

    - errata workarounds for newer CPU cores are often missing, and
    the 32-bit kernel doesn't even officially support armv8 hardware,
    though it mostly works in practice.

    - virtual address space is somewhat more limited, with usually 3GB
    (sometimes less) in 32-bit kernels, but the full 4GB for 32-bit processes
    on 64-bit kernels.

    - running with highmem is generally no fun, so anything above 768MB
    of physical RAM can not easily be used. highmem support will eventually
    go away. We have plans to still support up to 4GB of physical memory
    using a new memory layout at a performance penalty for extra page table
    switches.

    Of course it was very common a 15 or 20 years ago to run debian i386 with
    an amd64 kernel and was fully supported by debian including the installer which as far as I remember even recommended that kernel if supported by
    the host. Quite a bit of user space code still had issues with 64 bit,
    but you got to run a kernel that could take full advantage of your ram
    and other cpu features, while running 32 bit user space (since the amd64 kernel of course can run i386 binaries just fine).

    For example this was very much in Debian: http://snapshot.debian.org/archive/debian/20050312T000000Z/pool/main/k/kernel-image-2.6.9-amd64/kernel-image-2.6.9-9-amd64-generic_2.6.9-4_i386.deb

    Ah right, I forgot about that and only remembered the MIPS ones that
    still do this.

    So an amd64 kernel in the i386 archive.

    Sounds like something that might be worth discussion at debconf next week. I'll mention it in the talk.

    Well it would essentially mean treating arm like i386 used to be treated.
    It is certainly not a thing Debian hasn't supported before.

    This probably also requires a 64-bit grub in addition to the kernel, but
    should otherwise not be too difficult. In particular, I would hope that
    the build infrastructure for the kernel package can be adapted so it builds
    a near-identical image to the normal arm64 kernel package and not
    require extra regression testing.

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Wise@21:1/5 to gene heskett on Sat Jul 16 04:00:01 2022
    On Fri, 2022-07-15 at 13:40 -0400, gene heskett wrote:

    Because our latency-test results are better on armhf than on arm64,
    we use armhf for its performance.

    Are these results for armhf kernel with armhf userland?

    Are the results for arm64 kernel with armhf userland similar?

    How much worse are the results for arm64 kernel and userland?

    --
    bye,
    pabs

    https://wiki.debian.org/PaulWise

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmLSGZUACgkQMRa6Xp/6 aaOUfxAAvZ2hsidEVx0nkRj3dfC4aUy1RP+DYfrqDnRm71DD2dNYCnhmNLqnXx61 Vy/l4a9UJRWaeEuEjNoWaTSV6EKmTjynVsxCfwJfIL1c61jCYiMEmP1r8ynf5dPe xFnkT8RF0iuqqHYLFIxZt7jyltlHd8M0sCon2ILKGl62e+500Ciu6tn8YO18LAZR pSyvgi7BHzQvXr58xS2YCvZCkLONnKFgr3ODgRTQOgGKzmgN4cHrvF7FgW4UeE92 CQlrMFj5HnGg1Wt8gOsgqnFnGPXvjuIJmkdUdSrR9mi8buWg3/cOMLbGuoQGa15O m0aEWQOOEJFHv78qy9YAh3oe/zBB9TGmH/cmbRpjcoRc6GBwDM3bUQA8n2JyV6oa gy8KPE26GyY1EoD9uCQ+jRaOIY1ofPG5DX19oTc/3p9mHbZxdXqjE7OVY9EZP0R1 kDgPUdqLVO41tBIXOwdm20GG4841GzckAly79xtp1eqOZJ4kg0cFNhW97xwU/G/L lFI5odtte7yApcJTZjpziEHqVML4wDsOiKT6r27km/sk72UstUQ7TNJIPzINhdKA g9eCJ1CyIzzqISOlIr7h5zEOoabAcXRa859DQnSSZRpRNcCXKiFS4I9Ik7t8KOyl hDsC8xQ8Or5y24n+DH++0v0CVD2UKZy3Zjo2luotZ2jdlYVOFyo=
    =YHjh
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Paul Wise on Sat Jul 16 05:10:03 2022
    This is a multi-part message in MIME format.
    On 7/15/22 21:54, Paul Wise wrote:
    On Fri, 2022-07-15 at 13:40 -0400, gene heskett wrote:

    Because our latency-test results are better on armhf than on arm64,
    we use armhf for its performance.
    Are these results for armhf kernel with armhf userland?
    The whole install of raspios is armhf. So I guess its yes.

    Are the results for arm64 kernel with armhf userland similar?
    I have not tried to build an aarch64 from the src I have.
    How much worse are the results for arm64 kernel and userland?
    No, not exact, but its roughly 4x longer when I can get it to run,
    as it did check for a realtime preempt kernel and did a graceful
    exit if not found. So its not been run on 64 bit Debian image since
    stretch.

    It, latency-test, has recently been worked on but I've not tested
    it on a Debian image of either flavor since. It is now in testing so
    those of you w/o 5 years of history to lose could try it for the price
    of a 64G u-sd card.

    I want to thank you /all/ for a civil discussion. It has not been all that welcoming  in the past.

    Take care and stay well everybody.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    bnVsbA==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Wise@21:1/5 to gene heskett on Sat Jul 16 12:00:02 2022
    On Fri, 2022-07-15 at 23:05 -0400, gene heskett wrote:

    The whole install of raspios is armhf. So I guess its yes.

    I seem to remember them switching to arm64 recently?

    I have not tried to build an aarch64 from the src I have.

    I think it would be helpful if someone with an RPi4 could do this.

    It, latency-test, has recently been worked on but I've not tested
    it on a Debian image of either flavor since. It is now in testing so
    those of you w/o 5 years of history to lose could try it for the price of a 64G u-sd card.

    For those of you who are able to try this, sounds like you just install linuxcnc-uspace and then run latency-test. Also install/try latencytop, although Linux CONFIG_LATENCYTOP is not enabled in Debian probably.

    $ apt-file search latency-test
    linuxcnc-uspace: /usr/bin/latency-test
    linuxcnc-uspace: /usr/share/doc/linuxcnc/examples/sample-configs/apps/latency/latency-test.demo
    linuxcnc-uspace: /usr/share/man/man1/latency-test.1.gz

    --
    bye,
    pabs

    https://wiki.debian.org/PaulWise

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmLSiyAACgkQMRa6Xp/6 aaOSdRAAjh9nn3rcF6KUi462G196bqe8A1bC6pCCxdr2jIgNiPDonSLGCyeWF6Am TFVAyHKRTeAN9QxiFGCYufmkNq1NqIifm/OcseEWjDAcIk5pBJ0pZnIRkKGLDxeu Jb5fvP+7xFl9AMyFN1Sv5JJmIeJYoPvdHuiMunMD7Wy7uGohfT/x/m30OEs1pE/W DAAi4hkZjXsM2NrHsEm/V59IL5oJazfKSmy6CbJP/YlLgBQsChqsHOJXXjJ0ef7G CsjgtdEm7nh3IFcEC40YGLsRJAgDI0vegaTxLoYCt02jgZ6kMbTQov4mhCZss1uR wdgFdim0yJoRHrtTwfImT1rE4hiFBoN0sN1iMt3AlfpboWh/FNy65kMFIfNSncKm nS0v3XkzsjRvShbUmUI3sVdJgFigW+yrQacF39FJUnBBjo4QfUqNrmUQ4waGgmH6 6/wGhdVpZgxxqFtWRel6PWik//WbvPfF/M7GTUR6geNPFuJVUpOewqtTeM+1u478 V1gMZBMm1vkhkwAQuTYlbV2MaMoysqNkG4bulb42XuAoNOIBJgv02n6KM/dMIz9x z7kQnLnWHzk1LpXSO92WWxXoAqqpKWRL9m0C156twBOGKwJoTBjoL0LAlYBJFTOp /2zcNaeUM0evl7qLarfwhnK789uXWuHY/FO1q1sJXfZH2BqXF6Q=
    =PwQB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to gheskett@shentel.net on Sat Jul 16 14:10:01 2022
    On Sat, Jul 16, 2022 at 5:05 AM gene heskett <gheskett@shentel.net> wrote:
    On 7/15/22 21:54, Paul Wise wrote:
    On Fri, 2022-07-15 at 13:40 -0400, gene heskett wrote:

    Because our latency-test results are better on armhf than on arm64,
    we use armhf for its performance.
    Are these results for armhf kernel with armhf userland?
    The whole install of raspios is armhf. So I guess its yes.

    Are the results for arm64 kernel with armhf userland similar?
    I have not tried to build an aarch64 from the src I have.
    How much worse are the results for arm64 kernel and userland?
    No, not exact, but its roughly 4x longer when I can get it to run,
    as it did check for a realtime preempt kernel and did a graceful
    exit if not found. So its not been run on 64 bit Debian image since
    stretch.

    There are unfortunately a number of variables here that make things
    really hard to compare, any of these can have an effect that dominates
    your results:

    - 4.19 is four years old, and both the mainline kernel and the
    preempt-rt patches have changed a lot in the meantime. It's
    possible that a current preempt-rt has regressed compared to
    the version you are running. If so, we can work on fixing the
    regression for future kernels, but there won't be much interest
    in working on the old kernel

    - Raspberry Pi OS (and Raspbian before that) has a number of
    platform specific kernel patches that are neither in mainline
    Linux nor in the Debian kernel packages. It is possible that they
    have already identified and fixed a source of latency in their
    kernels but not managed to upstream that fix for a number of
    reasons.

    - A lot of kernel configuration options can have a huge impact
    on latency, it's not just preempt-rt that can be turned on or off,
    but any device driver that disables preemption for too long can
    increase the maximum latency of the system.

    - The raspbian user space should have very little effect on
    latency but it's worth pointing out that you may see different
    performance between armv6 (raspbian) and armv7 (debian
    armhf), between vfpv3-d16 (raspbian and debian armhf) and
    neon-d32 (fedora and others), and between a32 (raspbian),
    t32 (debian armhf) and a64 (debian arm64), instruction sets
    running the same code. In most applications the effect is very
    small, and it's not always the same one that's fast either.

    It, latency-test, has recently been worked on but I've not tested
    it on a Debian image of either flavor since.

    Do you have your latency-test output available for reference
    somewhere?

    To establish a baseline, it would be good if someone could run
    the same test using debian armhf userland on similar hardware
    with this kernel:
    https://packages.debian.org/bookworm/linux-image-rt-arm64

    If that can reproduce the bad numbers you observed, the next
    step would be to try a corresponding 32-bit kernel and see if
    that is better, but that requires building a custom package.
    There is a linux-image-rt-armmp package in bookworm, but to
    get PCI and USB3 working on Raspberry Pi 4, one needs to
    enable both the PCI driver and CONFIG_ARM_LPAE, possibly
    more.

    It is now in testing so those of you w/o 5 years of history to lose
    could try it for the price of a 64G u-sd card.

    For some reason, linuxcnc is still missing for armhf. I managed
    to build the source package, which had a minor issue finding the libboost_python310 dependency, but it worked after I added
    that. I don't have the right system to test on myself though.

    [Side note: I hope you are not storing any important data on an
    SD card. Even with "industrial grade" ones, I would recommend
    doing regular backups to more permanent storage, and the
    usual consumer cards are not designed to handle running a
    general-purpose OS at all and will cause data corruption over
    time]

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Arnd Bergmann on Sat Jul 16 14:50:01 2022
    On 7/16/22 08:10, Arnd Bergmann wrote:
    On Sat, Jul 16, 2022 at 5:05 AM gene heskett <gheskett@shentel.net> wrote:
    On 7/15/22 21:54, Paul Wise wrote:
    On Fri, 2022-07-15 at 13:40 -0400, gene heskett wrote:

    Because our latency-test results are better on armhf than on arm64,
    we use armhf for its performance.
    Are these results for armhf kernel with armhf userland?
    The whole install of raspios is armhf. So I guess its yes.

    Are the results for arm64 kernel with armhf userland similar?
    I have not tried to build an aarch64 from the src I have.
    How much worse are the results for arm64 kernel and userland?
    No, not exact, but its roughly 4x longer when I can get it to run,
    as it did check for a realtime preempt kernel and did a graceful
    exit if not found. So its not been run on 64 bit Debian image since
    stretch.
    There are unfortunately a number of variables here that make things
    really hard to compare, any of these can have an effect that dominates
    your results:

    - 4.19 is four years old, and both the mainline kernel and the
    preempt-rt patches have changed a lot in the meantime. It's
    possible that a current preempt-rt has regressed compared to
    the version you are running. If so, we can work on fixing the
    regression for future kernels, but there won't be much interest
    in working on the old kernel

    - Raspberry Pi OS (and Raspbian before that) has a number of
    platform specific kernel patches that are neither in mainline
    Linux nor in the Debian kernel packages. It is possible that they
    have already identified and fixed a source of latency in their
    kernels but not managed to upstream that fix for a number of
    reasons.

    Their kernels are uniformly horrible with latency's ranging to above a millisecond.
    Linuxcnc simply refuses to run on those kernels.
    - A lot of kernel configuration options can have a huge impact
    on latency, it's not just preempt-rt that can be turned on or off,
    but any device driver that disables preemption for too long can
    increase the maximum latency of the system.

    - The raspbian user space should have very little effect on
    latency but it's worth pointing out that you may see different
    performance between armv6 (raspbian)
    I wish you would admit that the raspios I am running IS armhf (kernel7l)
    I've no clue where you got the impression it was v6. It is not.
    and armv7 (debian
    armhf), between vfpv3-d16 (raspbian and debian armhf) and
    neon-d32 (fedora and others), and between a32 (raspbian),
    t32 (debian armhf) and a64 (debian arm64), instruction sets
    running the same code. In most applications the effect is very
    small, and it's not always the same one that's fast either.

    It, latency-test, has recently been worked on but I've not tested
    it on a Debian image of either flavor since.
    Do you have your latency-test output available for reference
    somewhere?

    To establish a baseline, it would be good if someone could run
    the same test using debian armhf userland on similar hardware
    with this kernel:
    https://packages.debian.org/bookworm/linux-image-rt-arm64

    If that can reproduce the bad numbers you observed, the next
    step would be to try a corresponding 32-bit kernel and see if
    that is better, but that requires building a custom package.
    There is a linux-image-rt-armmp package in bookworm, but to
    get PCI and USB3 working on Raspberry Pi 4, one needs to
    enable both the PCI driver and CONFIG_ARM_LPAE, possibly
    more.

    It is now in testing so those of you w/o 5 years of history to lose
    could try it for the price of a 64G u-sd card.
    For some reason, linuxcnc is still missing for armhf. I managed
    to build the source package, which had a minor issue finding the libboost_python310 dependency, but it worked after I added
    that. I don't have the right system to test on myself though.

    [Side note: I hope you are not storing any important data on an
    SD card. Even with "industrial grade" ones, I would recommend
    doing regular backups to more permanent storage, and the
    usual consumer cards are not designed to handle running a
    general-purpose OS at all and will cause data corruption over
    time]
    The card its running on right now is over 2 years old, zero problems,
    and has had all updates, including a daily update of linuxcnc from the
    the buildbot, or if the buildbot is down, my own scripts also building installable deb's. The secret is use a big enough card that it has enough
    room to do its maintenance. 64G card has around 15G's on it.

    Take care and stay well everybody.

    Arnd
    .


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Paul Wise on Sat Jul 16 14:30:01 2022
    On 7/16/22 05:59, Paul Wise wrote:
    On Fri, 2022-07-15 at 23:05 -0400, gene heskett wrote:

    The whole install of raspios is armhf. So I guess its yes.
    I seem to remember them switching to arm64 recently?

    They may have, I've had a total loss of history here with 2, 2T seagate
    drives dieing within a couple weeks of each other. So let me see if I have
    the bullseye image for arm I've tried.  Yes, and its: 2021-10-30-raspios-bullseye-armhf-full.img
    Which ran fine, even with my now 2 yo kernel installed but the python
    is too new for linuxcnc. With a second user wanting to dup what I did,
    I've sent him two cards with the raspios buster for armhf, with my kernel installed by my method. Linuxcnc has been advised of the python showstopper, and that may have been fixed by now, but if so, its not caught my attention
    in the email's I get from a 4x a day git pull keeping the pi up to date.

    Since that master is now in testing for bookworm, I have to assume it
    has been fixed.

    I also have 11-2 of yours, in netinstall flavor and labeled as armhf. As
    I recall
    it had some sort of a showstopper, and I knew raspios worked, I don't recall that  I investigated yours further. Is there a later netinstall for
    armhf or arm64
    available now? u-sd cards I have.
    I have not tried to build an aarch64 from the src I have.
    I think, since the 240G I'm using for workspace is over 50% full, that I
    had better
    replace the 120G I've used for a backup, with a 1T and copy the 240 to
    it, before
    I do anything rash. That can be done but I'm in the middle of rebuilding
    a Prusa MK3S
    with a better print head and that has priority at the moment. I am using
    it to make
    the nuts for a woodworkers workbench vises, carving the screw from a
    2x2" stick
    of hard maple about 20" long. See version #1 on my web page it the sig. Reshaping
    the threads for a lot better fit, version #5 is waiting on a working
    printer to make
    more nuts.
    I think it would be helpful if someone with an RPi4 could do this.
    That's probably me but its also likely a week on down the log.

    It, latency-test, has recently been worked on but I've not tested
    it on a Debian image of either flavor since. It is now in testing so
    those of you w/o 5 years of history to lose could try it for the price of a 64G u-sd card.
    For those of you who are able to try this, sounds like you just install linuxcnc-uspace and then run latency-test. Also install/try latencytop, although Linux CONFIG_LATENCYTOP is not enabled in Debian probably.

    $ apt-file search latency-test
    linuxcnc-uspace: /usr/bin/latency-test
    linuxcnc-uspace: /usr/share/doc/linuxcnc/examples/sample-configs/apps/latency/latency-test.demo
    linuxcnc-uspace: /usr/share/man/man1/latency-test.1.gz

    latencytop I've heard of, but haven't found, so no comparison comment.


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arnd Bergmann@21:1/5 to gheskett@shentel.net on Sat Jul 16 16:40:01 2022
    On Sat, Jul 16, 2022 at 2:41 PM gene heskett <gheskett@shentel.net> wrote:
    On 7/16/22 08:10, Arnd Bergmann wrote:

    - 4.19 is four years old, and both the mainline kernel and the
    preempt-rt patches have changed a lot in the meantime. It's
    possible that a current preempt-rt has regressed compared to
    the version you are running. If so, we can work on fixing the
    regression for future kernels, but there won't be much interest
    in working on the old kernel

    - Raspberry Pi OS (and Raspbian before that) has a number of
    platform specific kernel patches that are neither in mainline
    Linux nor in the Debian kernel packages. It is possible that they
    have already identified and fixed a source of latency in their
    kernels but not managed to upstream that fix for a number of
    reasons.

    Their kernels are uniformly horrible with latency's ranging to above a millisecond.
    Linuxcnc simply refuses to run on those kernels.

    I think this is simply because raspbian does not ship any preempt-rt
    kernel themselves, so clearly their kernel binaries won't be low-latency.

    You did not say where you got the kernel that you are running
    successfully, so as far as I could tell this might be a combination
    of the raspbian patches and the preempt-rt patches.

    - The raspbian user space should have very little effect on
    latency but it's worth pointing out that you may see different
    performance between armv6 (raspbian)
    I wish you would admit that the raspios I am running IS armhf (kernel7l)
    I've no clue where you got the impression it was v6. It is not.

    This paragraph was about the user space, not the kernel.

    The entire reason for Raspbian's existence is that it runs on armv6
    hardware like the Raspberry Pi 1, which Debian armhf does not
    run on. Building for armv6 means they can run the same user space
    on all hardware generations from v6 to v8, and they advertise this
    on their website:
    https://www.raspberrypi.com/software/operating-systems/
    ship at least two separate 32-bit kernels, since an LPAE-enabled
    kernel is needed to access PCI and high memory but is incompatible
    with Armv6 hardware.

    Arnd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to gene heskett on Sat Jul 16 17:30:01 2022
    On Sat, Jul 16, 2022 at 08:41:07AM -0400, gene heskett wrote:
    I wish you would admit that the raspios I am running IS armhf (kernel7l)
    I've no clue where you got the impression it was v6. It is not.

    You said raspios which sure looks like raspian. Raspian/Raspberry Pi
    OS is armv6. If you are running Debian armhf, then it is armv7 but it
    would be a lot less confusing to call it Debian and not raspios in
    that case.

    Doesn't matter what your kernel is. What is your userspace you are
    actually running?

    The card its running on right now is over 2 years old, zero problems,
    and has had all updates, including a daily update of linuxcnc from the
    the buildbot, or if the buildbot is down, my own scripts also building installable deb's. The secret is use a big enough card that it has enough room to do its maintenance. 64G card has around 15G's on it.

    Backups once in a while of the card is still nice to have.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Arnd Bergmann on Sat Jul 16 18:10:01 2022
    On 7/16/22 10:33, Arnd Bergmann wrote:
    On Sat, Jul 16, 2022 at 2:41 PM gene heskett <gheskett@shentel.net> wrote:
    On 7/16/22 08:10, Arnd Bergmann wrote:
    - 4.19 is four years old, and both the mainline kernel and the
    preempt-rt patches have changed a lot in the meantime. It's
    possible that a current preempt-rt has regressed compared to
    the version you are running. If so, we can work on fixing the
    regression for future kernels, but there won't be much interest
    in working on the old kernel

    - Raspberry Pi OS (and Raspbian before that) has a number of
    platform specific kernel patches that are neither in mainline
    Linux nor in the Debian kernel packages. It is possible that they
    have already identified and fixed a source of latency in their
    kernels but not managed to upstream that fix for a number of
    reasons.
    Their kernels are uniformly horrible with latency's ranging to above a
    millisecond.
    Linuxcnc simply refuses to run on those kernels.
    I think this is simply because raspbian does not ship any preempt-rt
    kernel themselves, so clearly their kernel binaries won't be low-latency.

    You did not say where you got the kernel that you are running
    successfully, so as far as I could tell this might be a combination
    of the raspbian patches and the preempt-rt patches.\
    I got this as 4.19.y, and applied the realtime patch kit. I've not been
    able to find another kernel src any newer that even admits to having a
    realtime preempt in its config, it is conspicuously absent in anything
    newer, and I am subbed to linux-rt so I see all the new stuff being
    announced. But the .configs have not included a realtime you can
    see, let alone turn on. This particular 4.19.y was obtained from a git
    link I was supplied by a forum msg, about a day before I was black holed.

    I've been on my own since, several years now. It was me that figured
    out how to build it, and it was me who figured out a way to install it.

    Up until now, when I've asked arm questions here, I've essentially been
    told to bug/buzz off. Which is why I made the comment about a civil
    discussion.
    Its a surprise, and I certainly welcome it. I've never had the intention
    of being
    a PITA.

    What you've seen in the uname -a output I've posted was my 2nd build, the
    first one was built when 4.19 was fairly new but the video was still
    slow, this
    one was after some patches that enable the specific gfx these arms used. And TBT, I was amazed that it actually worked both times. I had been led to
    believe
    that stability was not in the arm vocabulary, but this is at least as
    solid as
    wintel stuff has ever been. OTOH, wheezy was a giant step fwd in that department.

    I can put that src tarball up on my web page, but 4.19.y s/b available
    at faster
    servers. I've only a 10 megabaud adsl, meaning slow slow downloads from
    my site.

    Take care & stay well.
    - The raspbian user space should have very little effect on
    latency but it's worth pointing out that you may see different
    performance between armv6 (raspbian)
    I wish you would admit that the raspios I am running IS armhf (kernel7l)
    I've no clue where you got the impression it was v6. It is not.
    This paragraph was about the user space, not the kernel.

    The entire reason for Raspbian's existence is that it runs on armv6
    hardware like the Raspberry Pi 1, which Debian armhf does not
    run on. Building for armv6 means they can run the same user space
    on all hardware generations from v6 to v8, and they advertise this
    on their website:
    https://www.raspberrypi.com/software/operating-systems/
    ship at least two separate 32-bit kernels, since an LPAE-enabled
    kernel is needed to access PCI and high memory but is incompatible
    with Armv6 hardware.

    Arnd
    .


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Lennart Sorensen on Sat Jul 16 18:20:02 2022
    On 7/16/22 11:32, Lennart Sorensen wrote:
    On Sat, Jul 16, 2022 at 08:41:07AM -0400, gene heskett wrote:
    I wish you would admit that the raspios I am running IS armhf (kernel7l)
    I've no clue where you got the impression it was v6. It is not.
    You said raspios which sure looks like raspian. Raspian/Raspberry Pi
    OS is armv6. If you are running Debian armhf, then it is armv7 but it
    would be a lot less confusing to call it Debian and not raspios in
    that case.
    raspian/raspios is available in all 3 flavors.
    Doesn't matter what your kernel is. What is your userspace you are
    actually running?

    The card its running on right now is over 2 years old, zero problems,
    and has had all updates, including a daily update of linuxcnc from the
    the buildbot, or if the buildbot is down, my own scripts also building
    installable deb's. The secret is use a big enough card that it has enough
    room to do its maintenance. 64G card has around 15G's on it.
    Backups once in a while of the card is still nice to have.

    True, but when those two seagate 2T drives puked in quick succession, I
    lost all
    my patched amanda sources. I'd only been running amanda since 1998.
    I figured if bullseye ever stabilizes I might see about starting it up
    again. But UM
    sold it to zmanda so progress stopped, and then was sold to Betsol about 2 years back, and so far they've been all hat and no cattle. As far as I'm concerned its time to look for a new backup strategy that mimics how amanda worked. IOW I'm still building this box, almost from scratch. Its been
    very painful
    so far with bullseye.

    Cheers, Gene Heskett.

    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to gene heskett on Sat Jul 16 20:30:01 2022
    On Sat, Jul 16, 2022 at 12:19:31PM -0400, gene heskett wrote:
    raspian/raspios is available in all 3 flavors.

    Oh right they do have the other ones, they are just not the ones they
    recommend by default.

    True, but when those two seagate 2T drives puked in quick succession, I lost all
    my patched amanda sources. I'd only been running amanda since 1998.
    I figured if bullseye ever stabilizes I might see about starting it up
    again. But UM
    sold it to zmanda so progress stopped, and then was sold to Betsol about 2 years back, and so far they've been all hat and no cattle. As far as I'm concerned its time to look for a new backup strategy that mimics how amanda worked. IOW I'm still building this box, almost from scratch. Its been very painful
    so far with bullseye.

    Yeah loosing multiple drives sucks.

    My important stuff sits on a raid6 setup and does automatic off site
    (to my parents house) backups using rsnapshot.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Klein@21:1/5 to All on Sat Jul 16 20:30:02 2022
    --Apple-Mail-58EA62AE-5B78-4F1C-B39B-0FD750A925E8
    Content-Type: text/plain;
    charset=us-ascii
    Content-Transfer-Encoding: 7bit



    Am 16.07.2022 um 18:02 schrieb gene heskett <gheskett@shentel.net>:

    I've not been
    able to find another kernel src any newer that even admits to having a realtime preempt in its config, it is conspicuously absent in anything
    newer, and I am subbed to linux-rt so I see all the new stuff being announced.

    You could try the following kernel:

    https://github.com/kdoren/linux
    https://github.com/kdoren/linux/discussions/11

    (I have no own experience with the above kernel)

    Best regards,
    Matthias


    --Apple-Mail-58EA62AE-5B78-4F1C-B39B-0FD750A925E8
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><br><div dir="ltr"><br><blockquote type="cite">Am 16.07.2022 um 18:02 schrieb gene heskett &lt;gheskett@shentel.net&gt;:<br><br></blockquote></div><
    blockquote type="cite"><div dir="ltr">I've not been<blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span></blockquote></blockquote></blockquote><blockquote type="cite"><span></span></blockquote><span>able to find another
    kernel src any newer that even admits to having a</span><br><span>realtime preempt in its config, it is conspicuously absent in anything</span><br><span>newer, and I am subbed to linux-rt so I see all the new stuff being</span><br><span>announced.&nbsp;</
    span><blockquote type="cite"><span></span></blockquote></div></blockquote><br><div>You could try the following kernel:</div><div><br></div><div><a href="https://github.com/kdoren/linux">https://github.com/kdoren/linux</a></div><div><a href="https://
    github.com/kdoren/linux/discussions/11">https://github.com/kdoren/linux/discussions/11</a></div><div><br></div><div>(I have no own experience with the above kernel)</div><div><br></div><div>Best regards,</div><div>Matthias</div><div><br></div></body></
    html>
    --Apple-Mail-58EA62AE-5B78-4F1C-B39B-0FD750A925E8--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lennart Sorensen@21:1/5 to Diederik de Haas on Sat Jul 16 21:10:01 2022
    On Sat, Jul 16, 2022 at 08:35:26PM +0200, Diederik de Haas wrote:
    Raspbian(.org) was created by Peter Green (plugwash) (and Mike Thompson who's name is still attached to raspbian(.org)'s GPG key, but otherwise moved on) precisely because the RPi 1 did not meet the armhf/armv7 qualifications that Debian uses.
    The Raspberry Pi Foundation (RPF) started with (Debian's) armel (armv5) architecture, but that was slow and didn't optimally use the HW that was available on the RPi 1.

    So Plugwash (and Mike) started a recompilation of the Debian archive which makes better use of the HW available in the RPi 1. Confusingly, they labeled it armhf, while it was and is NOT the same as Debian's armhf.
    To add to the confusion, RPF called their OS also Raspbian :-/

    AFAIK it's still Plugwash that runs the buildd which compiles the packages for
    Raspbian/RaspiOS, but those packages are now also mirrored on RPF servers/ archives. That is still ~armv6 (+hardfloat+sth IIRC).

    The RPi 2 (and newer) can run Debian's armhf (armv7).

    The RPi 3 and newer can also run arm64 and that is the same as Debian's.

    I am *quite* sure RaspiOS is not available in normal/Debian's armhf, but only in their own armv6+ (but labeled armhf) and arm64.

    Yeah looking at raspberrypi.com they seem to have 64 bit and 32 bit
    builds. The 32 bit is definitely armv6 since it says it is compatible
    with all versions of the pi. Pretty sure they have never done armv7
    since that would just be what Debian already provides and would break
    the Pi 0 and Pi 1 after all although the 2 would be happier. It shoudl
    happily run on a kernel that supports armv7 but it does mean user space certainly isn't fully taking advantage of what a pi 2 or newer offers.

    I certainly only see 2 flavours on the page. The original armel I don't
    think has been made for quite a few years at this point and proper armv7
    armhf they have certainly never done either. So they have 2 flavours:
    armv6 and armv8.

    --
    Len Sorensen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Diederik de Haas@21:1/5 to All on Sat Jul 16 20:35:26 2022
    On Saturday, 16 July 2022 18:19:31 CEST gene heskett wrote:
    You said raspios which sure looks like raspian. Raspian/Raspberry Pi
    OS is armv6. If you are running Debian armhf, then it is armv7 but it would be a lot less confusing to call it Debian and not raspios in
    that case.

    raspian/raspios is available in all 3 flavors.

    Raspbian(.org) was created by Peter Green (plugwash) (and Mike Thompson who's name is still attached to raspbian(.org)'s GPG key, but otherwise moved on) precisely because the RPi 1 did not meet the armhf/armv7 qualifications that Debian uses.
    The Raspberry Pi Foundation (RPF) started with (Debian's) armel (armv5) architecture, but that was slow and didn't optimally use the HW that was available on the RPi 1.

    So Plugwash (and Mike) started a recompilation of the Debian archive which makes better use of the HW available in the RPi 1. Confusingly, they labeled
    it armhf, while it was and is NOT the same as Debian's armhf.
    To add to the confusion, RPF called their OS also Raspbian :-/

    AFAIK it's still Plugwash that runs the buildd which compiles the packages for Raspbian/RaspiOS, but those packages are now also mirrored on RPF servers/ archives. That is still ~armv6 (+hardfloat+sth IIRC).

    The RPi 2 (and newer) can run Debian's armhf (armv7).

    The RPi 3 and newer can also run arm64 and that is the same as Debian's.

    I am *quite* sure RaspiOS is not available in normal/Debian's armhf, but only in their own armv6+ (but labeled armhf) and arm64.

    HTH
    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCYtME7gAKCRDXblvOeH7b bqmfAQCO8cIv114ke0W//p31P0Hr4HhOzk7PMTvxKvdWI9TxNQD/aBHWWbw93D7A cLIE7UbqthD2pSwDmWUEvORYcZ4Lvg8=
    =JKO5
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From LinAdmin@21:1/5 to Arnd Bergmann on Mon Jul 18 19:00:01 2022
    I won't care about Debian Arm anymore because Ubuntu jammy
    2204 LTS 32 bit runs like a charm.
    LinAdmin

    On 15.07.22 12:04, Arnd Bergmann wrote:
    On Fri, Jul 15, 2022 at 11:39 AM gene heskett <gheskett@shentel.net> wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(
    Please stop the name calling, and the spreading of misinformation on this list.
    ...
    Arnd


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tobias Frost@21:1/5 to LinAdmin on Tue Jul 19 20:20:01 2022
    LinAdmin,

    your way how you interact on this Mailling list is highly inappropiate.

    You've been called out due to name calling and instead of appoligizing you're doubling down in your response.

    Such kind of messages will not be tolerated on Debian mailing lists, and you have been told that before.

    To be frank, until you want to constructivly interact with the Debian
    community you are _NOT_ welcome.

    --
    tobi


    On Mon, Jul 18, 2022 at 06:53:15PM +0200, LinAdmin wrote:
    I won't care about Debian Arm anymore because Ubuntu jammy
    2204 LTS 32 bit runs like a charm.
    LinAdmin

    On 15.07.22 12:04, Arnd Bergmann wrote:
    On Fri, Jul 15, 2022 at 11:39 AM gene heskett <gheskett@shentel.net> wrote:
    On 7/15/22 04:04, LinAdmin wrote:
    Pi 4 has much more throughput in 32-bit modes but the so
    called experts of Debian decided to abandon it :-(
    Please stop the name calling, and the spreading of misinformation on this list.
    ...
    Arnd



    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEE/d0M/zhkJ3YwohhskWT6HRe9XTYFAmLW9ZIACgkQkWT6HRe9 XTaSjA/+O+pT+6g71MUmw1T5MZaQjXRDDszUk82ch4ti+k1ZHoYu9h9u+6G+AXpy Otrp4nW/L3DM3WHcvNVHfe5a9wgSG+/o16KvXMU60sjIm8dvCEFdrSU3wp0UgRRK n0WcZh0VJZg+fvoH0oQZm1tyQuJSBqh5MAS2cJKOGEZaAtXQDKTDsq/f2G0dCHca qdxiJ92iJdwKtNV2n1NvBA77hNfSnuQzGrtwO7c3lORpjViDblTN3V7e5GMMQEj0 afPztHBCRvJ0kxa9sxpmU41q+cUNT+4458VhE1WcJ9+IbTyJzt/dJH+kGJ7WBo
  • From LinAdmin@21:1/5 to Tobias Frost on Thu Jul 21 09:10:01 2022
    Tobias!

    My posting did not contain any name and if somebody felt
    addressed that explains many issues :p

    Did you ever hear about the Streisand effect or do you have
    any good excuses why you warmed up this threads after my
    message that I have switched to Ubuntu 22.4 LTS which does
    works as expected on Arm 32?

    And btw, I had made detailed and constructive suggestions
    what few patches would be needed to get Debian running on
    Pi4 and this was down turned by the so called experts
    without any good arguments.

    To be frank, your text reads as a paid troll post.
    LinAdmin


    On 19.07.22 20:19, Tobias Frost wrote:
    LinAdmin,

    your way how you interact on this Mailling list is highly inappropiate.

    You've been called out due to name calling and instead of appoligizing you're doubling down in your response.

    Such kind of messages will not be tolerated on Debian mailing lists, and you have been told that before.

    To be frank, until you want to constructivly interact with the Debian community you are _NOT_ welcome.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to LinAdmin on Fri Aug 19 16:10:01 2022
    On Fri, Aug 19, 2022 at 03:19:23PM +0200, LinAdmin wrote:
    Good night Andy

    Is it possible you never have heard of the Streisand effect?

    Regards
    LinAdmin


    Hi LinAdmin,

    As one of the people who wrote the FAQ for the debian-user mailing list,
    not only have I heard of it, I specifically referenced it. If you are trying
    to get some random posting removed from a Debian mailing list, this is difficult becasue it may be archived anywhere in the world. Complaining
    too much about it risks the Streisand effect. See, for example, the latest https://lists.debian.org/debian-user/2022/08/msg00004.html

    My reply to you yesterday was to ask you to be considerate, think of
    others on the mailing list and to specifically consider how your words
    may come across. Working constructively with people, adding to what
    they are doing, offering help is more useful than offering criticism
    in general.

    This is a community: you are working with / being read by people you may
    never meet and it helps to work out who you are dealing with and what
    ability they may have to help you.

    In an earlier message in the thread:
    <https://lists.debian.org/debian-arm/2022/07/msg00039.html>
    you suggested that you didn't care about Debian because Ubuntu
    worked well.

    We do care about what you've said, some of the people following
    the list are people who might be able to help evaluate what we can do to improve Debian but the way that you are making your point is not the most helpful to what you are trying to say. There may be better ways to explain as you wish to without putting down other people's work.

    The Code of Conduct (https://www.debian.org/code_of_conduct) and Debian Community Team notes (https://www.debian.org/code_of_conduct_interpretation) refer.

    I'd suggest particularly that section 2 - Assume good faith is very relevant in this situation.

    On 18.08.22 18:58, Andrew M.A. Cater wrote:
    On Thu, Aug 18, 2022 at 05:21:19PM +0200, LinAdmin wrote:
    I do know that you do not like my comment that 32bit on Pi4
    is much more efficient than 64 Bit ...
    Linadmin


    Good afternoon, LinAdmin

    It does appear to me that this comment is not directly relevant to this message and might not be helpful. Nobody mentioned this in this thread today apart from you



    With every good wish, as ever,

    Andy Cater

    [For the Debian Community Team].

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)