• Kernel build fails

    From Elimar Riesebieter@21:1/5 to All on Wed Jan 19 14:50:01 2022
    Hi all,

    kernel build fails on powerpc 32bit no matter what version is used
    (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    Elimar

    --
    Alles, was viel bedacht wird, wird bedenklich!;-)
    Friedrich Nietzsche

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elimar Riesebieter@21:1/5 to All on Wed Jan 19 17:10:03 2022
    * Elimar Riesebieter <riesebie@lxtec.de> [2022-01-19 14:35 +0100]:

    Hi all,

    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    Indeed, downgrading to binutils 2.37-7 fixed the issue. Where can I
    find archived binutils versions for powerpc? 2.37-7 I found in the
    local cache. It seems there must be a version 2.37-10?

    Elimar
    --
    >what IMHO then?
    IMHO - Inhalation of a Multi-leafed Herbal Opiate ;)
    --posting from alex in debian-user--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elimar Riesebieter@21:1/5 to All on Wed Jan 19 17:30:02 2022
    * Elimar Riesebieter <riesebie@lxtec.de> [2022-01-19 17:02 +0100]:

    * Elimar Riesebieter <riesebie@lxtec.de> [2022-01-19 14:35 +0100]:

    Hi all,

    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    Indeed, downgrading to binutils 2.37-7 fixed the issue.

    This smells like a red hering. gcc-10 and gcc-11 depend on
    2.37.50.20220106-2.

    Elimar
    --
    >what IMHO then?
    IMHO - Inhalation of a Multi-leafed Herbal Opiate ;)
    --posting from alex in debian-user--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Elimar Riesebieter on Wed Jan 19 17:20:02 2022
    Hi Elimar!

    On 1/19/22 17:02, Elimar Riesebieter wrote:
    kernel build fails on powerpc 32bit no matter what version is used
    (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    Indeed, downgrading to binutils 2.37-7 fixed the issue. Where can I
    find archived binutils versions for powerpc? 2.37-7 I found in the
    local cache. It seems there must be a version 2.37-10?

    Older versions are available on snapshot.debian.org [1]. Please follow the instructions
    on the homepage to use the snapshots site. Also, would be great if you could file a bug
    report against binutils upstream [2].

    Adrian

    [1] http://snapshot.debian.org/
    [2] https://sourceware.org/bugzilla/

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Elimar Riesebieter on Wed Jan 19 22:10:04 2022
    Hello!

    On 1/19/22 14:35, Elimar Riesebieter wrote:
    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    This issue shows on the buildds now as well:

    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0

    I will report it upstream now.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Thu Jan 20 09:50:02 2022
    It did boot, that much I tested before rejoining my couch adventure.

    On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hi Mike!

    On 1/20/22 08:48, Mike wrote:
    I sent a mail fixing this a few days ago, but I didn't finalize
    the patch according to suggestions, my finger broke.

    This is actually a more complex issue, in particular the assembler was changed on PowerPC when handling the .machine directive, see [1].

    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    Adrian

    [1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto">It did boot, that much I tested before rejoining my couch adventure.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.
    de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>

    On 1/20/22 08:48, Mike wrote:<br>
    &gt; I sent a mail fixing this a few days ago, but I didn&#39;t finalize<br> &gt; the patch according to suggestions, my finger broke. <br>

    This is actually a more complex issue, in particular the assembler was<br> changed on PowerPC when handling the .machine directive, see [1].<br>

    So, in order to fix this issue, someone needs to update the kernel to<br>
    work with the new binutils version.<br>

    Adrian<br>

    &gt; [1] <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2" rel="noreferrer noreferrer" target="_blank">https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2</a><br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mike on Thu Jan 20 09:30:03 2022
    Hi Mike!

    On 1/20/22 08:48, Mike wrote:
    I sent a mail fixing this a few days ago, but I didn't finalize
    the patch according to suggestions, my finger broke.

    This is actually a more complex issue, in particular the assembler was
    changed on PowerPC when handling the .machine directive, see [1].

    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    Adrian

    [1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to michael.heltne@gmail.com on Thu Jan 20 09:50:02 2022
    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    That's what the patch does, I did a full Debian kernel build, but I'm
    having trouble explaining myself with my left hand.

    On Thu, Jan 20, 2022, 09:41 Mike <michael.heltne@gmail.com> wrote:

    It did boot, that much I tested before rejoining my couch adventure.

    On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hi Mike!

    On 1/20/22 08:48, Mike wrote:
    I sent a mail fixing this a few days ago, but I didn't finalize
    the patch according to suggestions, my finger broke.

    This is actually a more complex issue, in particular the assembler was
    changed on PowerPC when handling the .machine directive, see [1].

    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    Adrian

    [1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto"><div dir="auto">&gt; So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.</div><div dir="auto"><br></div><div dir="auto">That&#39;s what the patch does, I did a full Debian kernel build,
    but I&#39;m having trouble explaining myself with my left hand.</div><div dir="auto"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 09:41 Mike &lt;<a href="mailto:michael.heltne@gmail.com" target="_blank" rel="
    noreferrer">michael.heltne@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">It did boot, that much I tested before rejoining my couch adventure.</div><
    <div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de" rel="noreferrer noreferrer" target="_blank">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<
    </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>

    On 1/20/22 08:48, Mike wrote:<br>
    &gt; I sent a mail fixing this a few days ago, but I didn&#39;t finalize<br> &gt; the patch according to suggestions, my finger broke. <br>

    This is actually a more complex issue, in particular the assembler was<br> changed on PowerPC when handling the .machine directive, see [1].<br>

    So, in order to fix this issue, someone needs to update the kernel to<br>
    work with the new binutils version.<br>

    Adrian<br>

    &gt; [1] <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2</a><br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" rel="noreferrer noreferrer noreferrer" target="_blank">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" rel="noreferrer noreferrer noreferrer" target="_blank">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div>
    </blockquote></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mike on Thu Jan 20 10:10:02 2022
    Hi Mike!

    On 1/20/22 09:46, Mike wrote:
    So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.

    That's what the patch does, I did a full Debian kernel build, but I'm having trouble explaining myself with my left hand.

    I still think that your patch is incomplete as the "dsall" instruction is not the only
    instruction that is affected by this change. See the kernel build logs below.

    From [1]:

    {standard input}: Assembler messages:
    {standard input}:1353: Error: unrecognized opcode: `ptesync'

    and [2]:

    {standard input}: Assembler messages:
    {standard input}:2146: Error: unrecognized opcode: `stbcix'

    [1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
    [2] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Thu Jan 20 17:00:01 2022
    Wtf, I'll work it out in a smoke.

    On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hi Mike!

    On 1/20/22 09:46, Mike wrote:
    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    That's what the patch does, I did a full Debian kernel build, but I'm
    having trouble explaining myself with my left hand.

    I still think that your patch is incomplete as the "dsall" instruction is
    not the only
    instruction that is affected by this change. See the kernel build logs
    below.

    From [1]:

    {standard input}: Assembler messages:
    {standard input}:1353: Error: unrecognized opcode: `ptesync'

    and [2]:

    {standard input}: Assembler messages:
    {standard input}:2146: Error: unrecognized opcode: `stbcix'

    [1]
    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
    [2]
    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto">Wtf, I&#39;ll work it out in a smoke.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de<
    &gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>

    On 1/20/22 09:46, Mike wrote:<br>
    &gt;&gt; So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.<br>
    &gt; <br>
    &gt; That&#39;s what the patch does, I did a full Debian kernel build, but I&#39;m having trouble explaining myself with my left hand.<br>

    I still think that your patch is incomplete as the &quot;dsall&quot; instruction is not the only<br>
    instruction that is affected by this change. See the kernel build logs below.<br>

    From [1]:<br>

    {standard input}: Assembler messages:<br>
    {standard input}:1353: Error: unrecognized opcode: `ptesync&#39;<br>

    and [2]:<br>

    {standard input}: Assembler messages:<br>
    {standard input}:2146: Error: unrecognized opcode: `stbcix&#39;<br>

    &gt; [1] <a href="https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=powerpc&amp;ver=5.15.15-1&amp;stamp=1642579068&amp;raw=0" rel="noreferrer noreferrer" target="_blank">https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=powerpc&
    amp;ver=5.15.15-1&amp;stamp=1642579068&amp;raw=0</a><br>
    &gt; [2] <a href="https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=ppc64&amp;ver=5.15.15-1&amp;stamp=1642578946&amp;raw=0" rel="noreferrer noreferrer" target="_blank">https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=ppc64&amp;
    ver=5.15.15-1&amp;stamp=1642578946&amp;raw=0</a><br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to Mike on Fri Jan 21 21:10:01 2022
    Waiting for git to do it's thing, but do we need a voodoo priest(es)
    here? The attached patch is building.

    -Michael

    On Fri, 21 Jan 2022 at 20:23, Mike <michael.heltne@gmail.com> wrote:

    'stbcix' has to come from arch/powerpc/include/asm/io.h - and is already behind an ifdefs, though try changing it to #ifdef CONFIG_PPC64? I'm building now.

    Michael

    On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:

    Hi Mike!

    On 1/20/22 09:46, Mike wrote:
    So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.

    That's what the patch does, I did a full Debian kernel build, but I'm having trouble explaining myself with my left hand.

    I still think that your patch is incomplete as the "dsall" instruction is not the only
    instruction that is affected by this change. See the kernel build logs below.

    From [1]:

    {standard input}: Assembler messages:
    {standard input}:1353: Error: unrecognized opcode: `ptesync'

    and [2]:

    {standard input}: Assembler messages:
    {standard input}:2146: Error: unrecognized opcode: `stbcix'

    [1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
    [2] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913


    Y29tbWl0IDhhNjM1OGRmZGYwNmEzNWQyYWE5Y2YxNzFiODQ0NGE3MTZhZDBjMmEKQXV0aG9yOiB0 aHJlYWRlciA8bWljaGFlbC5oZWx0bmVAZ21haWwuY29tPgpEYXRlOiAgIEZyaSBKYW4gMjEgMjA6 MzY6MzMgMjAyMiArMDEwMAoKICAgIGFyY2g6IHBvd2VycGM6IGZpeCBidWlsZGluZywgJ2Rzc2Fs bCcgaW4gbW11X2NvbnRleHQuYyBpcyBhbiBhbHRpdmVjIGluc3RydWN0aW9uLCBzbyBidWlsZCB0 aGF0IGFjY29yZGluZ2x5IGlmIHN1Y2ggaXMgdGhlIGNhc2UuCiAgICAncHRlc3luYycgaXMgYSBQ UEM2NCBpbnN0cnVjdGlvbiwgc28gZG9udCBnbyB0aGVyZSBmb3IgUFBDMzIuIEFuZCBhcHBhcmVu dGx5IGlmZGVmaW5lZCBfX3Bvd2VycGM2NF9fIGlzbnQgZW5vdWdoIGluIGFsbCBjb25maWd1cmF0 aW9ucyg/KSBhbmQgJ3N0YmNpeCcgc3RpY2tzIGl0cyBoZWFkIHVwLgogICAgCiAgICAgICAgICAg ICAgICBTaWduZWQtb2ZmLWJ5OiBNaWNhaGVsIEIgSGVsdG5lIDxtaWNoYWVsLmhlbHRuZUBnbWFp bC5jb20+CgpkaWZmIC0tZ2l0IGEvYXJjaC9wb3dlcnBjL2luY2x1ZGUvYXNtL2lvLmggYi9hcmNo L3Bvd2VycGMvaW5jbHVkZS9hc20vaW8uaAppbmRleCBiZWJhNDk3OWJmZjkuLmNiMDk3MDFlZDEx NCAxMDA2NDQKLS0tIGEvYXJjaC9wb3dlcnBjL2luY2x1ZGUvYXNtL2lvLmgKKysrIGIvYXJjaC9w b3dlcnBjL2luY2x1ZGUvYXNtL2lvLmgKQEAgLTMzNCw3ICszMzQsNyBAQCBzdGF0aWMgaW5saW5l IHZvaWQgX19yYXdfd3JpdGVsKHVuc2lnbmVkIGludCB2LCB2b2xhdGlsZSB2b2lkIF9faW9tZW0g KmFkZHIpCiB9CiAjZGVmaW5lIF9fcmF3X3dyaXRlbCBfX3Jhd193cml0ZWwKIAotI2lmZGVmIF9f cG93ZXJwYzY0X18KKyNpZmRlZiBDT05GSUdfUFBDNjQKIHN0YXRpYyBpbmxpbmUgdW5zaWduZWQg bG9uZyBfX3Jhd19yZWFkcShjb25zdCB2b2xhdGlsZSB2b2lkIF9faW9tZW0gKmFkZHIpCiB7CiAJ cmV0dXJuICoodm9sYXRpbGUgdW5zaWduZWQgbG9uZyBfX2ZvcmNlICopUENJX0ZJWF9BRERSKGFk ZHIpOwpkaWZmIC0tZ2l0IGEvYXJjaC9wb3dlcnBjL2xpYi9zc3RlcC5jIGIvYXJjaC9wb3dlcnBj L2xpYi9zc3RlcC5jCmluZGV4IDg2ZjQ5ZTNlN2NmNS4uYmVjYmUyODk4ZTEwIDEwMDY0NAotLS0g YS9hcmNoL3Bvd2VycGMvbGliL3NzdGVwLmMKKysrIGIvYXJjaC9wb3dlcnBjL2xpYi9zc3RlcC5j CkBAIC0zMjY3LDkgKzMyNjcsMTEgQEAgdm9pZCBlbXVsYXRlX3VwZGF0ZV9yZWdzKHN0cnVjdCBw dF9yZWdzICpyZWdzLCBzdHJ1Y3QgaW5zdHJ1Y3Rpb25fb3AgKm9wKQogCQljYXNlIEJBUlJJRVJf TFdTWU5DOgogCQkJYXNtIHZvbGF0aWxlKCJsd3N5bmMiIDogOiA6ICJtZW1vcnkiKTsKIAkJCWJy ZWFrOworI2lmZGVmIENPTkZJR19QUEM2NAogCQljYXNlIEJBUlJJRVJfUFRFU1lOQzoKIAkJCWFz bSB2b2xhdGlsZSgicHRlc3luYyIgOiA6IDogIm1lbW9yeSIpOwogCQkJYnJlYWs7CisjZW5kaWYK IAkJfQogCQlicmVhazsKIApkaWZmIC0tZ2l0IGEvYXJjaC9wb3dlcnBjL21tL01ha2VmaWxlIGIv YXJjaC9wb3dlcnBjL21tL01ha2VmaWxlCmluZGV4IGRmODE3MmRhMjMwMS4uMmY4N2U3NzMxNTk5 IDEwMDY0NAotLS0gYS9hcmNoL3Bvd2VycGMvbW0vTWFrZWZpbGUKKysrIGIvYXJjaC9wb3dlcnBj L21tL01ha2VmaWxlCkBAIC00LDYgKzQsOSBAQAogIwogCiBjY2ZsYWdzLSQoQ09ORklHX1BQQzY0 KQk6PSAkKE5PX01JTklNQUxfVE9DKQoraWZlcSAoJChDT05GSUdfQUxUSVZFQykseSkKK0NGTEFH U19tbXVfY29udGV4dC5vICs9ICQoY2FsbCBjYy1vcHRpb24sIC1tYWx0aXZlYywgLW1hYmk9YWx0 aXZlYykKK2VuZGlmCiAKIG9iai15CQkJCTo9IGZhdWx0Lm8gbWVtLm8gcGd0YWJsZS5vIG1tYXAu byBtYWNjZXNzLm8gcGFnZWF0dHIubyBcCiAJCQkJICAgaW5pdF8kKEJJVFMpLm8gcGd0YWJsZV8k KEJJVFMpLm8gXApkaWZmIC0tZ2l0IGEvYXJjaC9wb3dlcnBjL21tL3BhZ2VhdHRyLmMgYi9hcmNo L3Bvd2VycGMvbW0vcGFnZWF0dHIuYwppbmRleCBlZGVhMzg4ZTlkM2YuLmNjZDA0YTM4NmUyOCAx MDA2NDQKLS0tIGEvYXJjaC9wb3dlcnBjL21tL3BhZ2VhdHRyLmMKKysrIGIvYXJjaC9wb3dlcnBj L21tL3BhZ2VhdHRyLmMKQEAgLTU0LDExICs1NCwxMSBAQCBzdGF0aWMgaW50IGNoYW5nZV9wYWdl X2F0dHIocHRlX3QgKnB0ZXAsIHVuc2lnbmVkIGxvbmcgYWRkciwgdm9pZCAqZGF0YSkKIAl9CiAK IAlwdGVfdXBkYXRlKCZpbml0X21tLCBhZGRyLCBwdGVwLCB+MFVMLCBwdGVfdmFsKHB0ZSksIDAp OwotCisjaWZkZWYgQ09ORklHX1BQQzY0CiAJLyogU2VlIHB0ZXN5bmMgY29tbWVudCBpbiByYWRp eF9fc2V0X3B0ZV9hdCgpICovCiAJaWYgKHJhZGl4X2VuYWJsZWQoKSkKIAkJYXNtIHZvbGF0aWxl KCJwdGVzeW5jIjogOiA6Im1lbW9yeSIpOwotCisjZW5kaWYKIAlmbHVzaF90bGJfa2VybmVsX3Jh bmdlKGFkZHIsIGFkZHIgKyBQQUdFX1NJWkUpOwogCiAJc3Bpbl91bmxvY2soJmluaXRfbW0ucGFn ZV90YWJsZV9sb2NrKTsK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Fri Jan 21 20:30:02 2022
    'stbcix' has to come from arch/powerpc/include/asm/io.h - and is already
    behind an ifdefs, though try changing it to #ifdef CONFIG_PPC64? I'm
    building now.

    Michael

    On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hi Mike!

    On 1/20/22 09:46, Mike wrote:
    So, in order to fix this issue, someone needs to update the kernel to
    work with the new binutils version.

    That's what the patch does, I did a full Debian kernel build, but I'm
    having trouble explaining myself with my left hand.

    I still think that your patch is incomplete as the "dsall" instruction is
    not the only
    instruction that is affected by this change. See the kernel build logs
    below.

    From [1]:

    {standard input}: Assembler messages:
    {standard input}:1353: Error: unrecognized opcode: `ptesync'

    and [2]:

    {standard input}: Assembler messages:
    {standard input}:2146: Error: unrecognized opcode: `stbcix'

    [1]
    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
    [2]
    https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto">&#39;stbcix&#39; has to come from arch/powerpc/include/asm/io.h - and is already behind an ifdefs, though try changing it to #ifdef CONFIG_PPC64? I&#39;m building now.<div dir="auto"><br></div><div dir="auto">Michael</div></div><br><div
    class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="
    margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>

    On 1/20/22 09:46, Mike wrote:<br>
    &gt;&gt; So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.<br>
    &gt; <br>
    &gt; That&#39;s what the patch does, I did a full Debian kernel build, but I&#39;m having trouble explaining myself with my left hand.<br>

    I still think that your patch is incomplete as the &quot;dsall&quot; instruction is not the only<br>
    instruction that is affected by this change. See the kernel build logs below.<br>

    From [1]:<br>

    {standard input}: Assembler messages:<br>
    {standard input}:1353: Error: unrecognized opcode: `ptesync&#39;<br>

    and [2]:<br>

    {standard input}: Assembler messages:<br>
    {standard input}:2146: Error: unrecognized opcode: `stbcix&#39;<br>

    &gt; [1] <a href="https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=powerpc&amp;ver=5.15.15-1&amp;stamp=1642579068&amp;raw=0" rel="noreferrer noreferrer" target="_blank">https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=powerpc&
    amp;ver=5.15.15-1&amp;stamp=1642579068&amp;raw=0</a><br>
    &gt; [2] <a href="https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=ppc64&amp;ver=5.15.15-1&amp;stamp=1642578946&amp;raw=0" rel="noreferrer noreferrer" target="_blank">https://buildd.debian.org/status/fetch.php?pkg=linux&amp;arch=ppc64&amp;
    ver=5.15.15-1&amp;stamp=1642578946&amp;raw=0</a><br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mike on Sat Jan 22 09:50:01 2022
    Hello Mike!

    On 1/21/22 23:07, Mike wrote:
    Waiting for git to do it's thing, but do we need a voodoo priest(es)
    here? The attached patch is building.

    I will have a look at this issue next week myself. We need to make sure
    that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.

    Also, test builds of Debian the packages are necessary as well.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Sat Jan 22 10:40:02 2022
    I think I need to add a || CONFIG_POWER6_CPU to that 'stbcix' condition..

    -Mike



    On Sat, Jan 22, 2022, 09:42 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hello Mike!

    On 1/21/22 23:07, Mike wrote:
    Waiting for git to do it's thing, but do we need a voodoo priest(es)
    here? The attached patch is building.

    I will have a look at this issue next week myself. We need to make sure
    that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.

    Also, test builds of Debian the packages are necessary as well.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto"><div>I think I need to add a || CONFIG_POWER6_CPU to that &#39;stbcix&#39; condition..<div dir="auto"><br></div><div dir="auto">-Mike</div><div dir="auto"><br></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat,
    Jan 22, 2022, 09:42 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    Hello Mike!<br>

    On 1/21/22 23:07, Mike wrote:<br>
    &gt; Waiting for git to do it&#39;s thing, but do we need a voodoo priest(es)<br>
    &gt; here? The attached patch is building.<br>

    I will have a look at this issue next week myself. We need to make sure<br> that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.<br>

    Also, test builds of Debian the packages are necessary as well.<br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to michael.heltne@gmail.com on Sat Jan 22 10:50:01 2022
    It should be just CONFIG_POWER6_CPU unless ppc64 also require this?iv

    -Mike

    On Sat, Jan 22, 2022, 10:36 Mike <michael.heltne@gmail.com> wrote:

    I think I need to add a || CONFIG_POWER6_CPU to that 'stbcix' condition..

    -Mike



    On Sat, Jan 22, 2022, 09:42 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hello Mike!

    On 1/21/22 23:07, Mike wrote:
    Waiting for git to do it's thing, but do we need a voodoo priest(es)
    here? The attached patch is building.

    I will have a look at this issue next week myself. We need to make sure
    that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.

    Also, test builds of Debian the packages are necessary as well.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto">It should be just CONFIG_POWER6_CPU unless ppc64 also require this?iv<div dir="auto"><br></div><div dir="auto">-Mike</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 22, 2022, 10:36 Mike &lt;<a href="
    mailto:michael.heltne@gmail.com">michael.heltne@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I think I need to add a || CONFIG_POWER6_CPU to
    that &#39;stbcix&#39; condition..<div dir="auto"><br></div><div dir="auto">-Mike</div><div dir="auto"><br></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 22, 2022, 09:42 John Paul Adrian Glaubitz &lt;<a href="mailto:
    glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Mike!<br>

    On 1/21/22 23:07, Mike wrote:<br>
    &gt; Waiting for git to do it&#39;s thing, but do we need a voodoo priest(es)<br>
    &gt; here? The attached patch is building.<br>

    I will have a look at this issue next week myself. We need to make sure<br> that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.<br>

    Also, test builds of Debian the packages are necessary as well.<br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" rel="noreferrer noreferrer" target="_blank">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" rel="noreferrer noreferrer" target="_blank">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div></div></div>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to Mike on Sun Jan 23 16:40:01 2022
    I remembered something about 'lwsync' i read about it in 2013
    suddenly, and came to the following proposal to deal with remove the
    PPC64 requirement for BARRIER_LWSYNC, but i've literally really just
    started poking about the kernel side of powerpc and reading around.
    But i do remember the penalty in using 'sync' in place of 'lwsync' https://gcc.gnu.org/legacy-ml/gcc-patches/2006-11/msg01238.html https://gcc.gnu.org/legacy-ml/gcc-patches/2012-07/msg01062.html

    So something like this
    diff --git a/media/thread/12fd50d6-d14c-42af-ad1d-a595e5f080cd/dev/linux-main/linux/arch/powerpc/lib/sstep.c
    b/home/thread/dev/linus/linux/arch/powerpc/lib/sstep.c
    index 4ffd679..39861d3 100644
    --- a/media/thread/12fd50d6-d14c-42af-ad1d-a595e5f080cd/dev/linux-main/linux/arch/powerpc/lib/sstep.c
    +++ b/home/thread/dev/linus/linux/arch/powerpc/lib/sstep.c
    @@ -3265,7 +3265,11 @@ void emulate_update_regs(struct pt_regs *regs,
    struct instruction_op *op)
    eieio();
    break;
    case BARRIER_LWSYNC:
    +#if defined (CONFIG_40x || CONFIG_44x || CONFIG_E500 ||
    CONFIG_PPA8548 || CONFIG_TQM8548 || CONFIG_MPC8540_ADS || CONFIG_PPC_BOOK3S_603)
    + asm volatile("sync" : : : "memory");
    +#else
    asm volatile("lwsync" : : : "memory");
    +#endif
    break;
    #ifdef CONFIG_PPC64
    case BARRIER_PTESYNC:


    On Sun, 23 Jan 2022 at 14:50, Mike <michael.heltne@gmail.com> wrote:

    I've sent in a patch with my remaining concerns attached to the mailing lists and set up a linux-next branch finally.
    https://github.com/threader/linux/tree/master-build-ppc

    In regards to asm/i
  • From Elimar Riesebieter@21:1/5 to All on Sat Jan 29 15:10:02 2022
    * Elimar Riesebieter <riesebie@lxtec.de> [2022-01-19 14:35 +0100]:

    Hi all,

    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    No fix with binutils 2.37.90.20220123-2

    Elimar
    --
    Excellent day for drinking heavily.
    Spike the office water cooler;-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mike on Sun Jan 30 13:00:01 2022
    Hello Mike!

    On 1/30/22 12:11, Mike wrote:
    This works : https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c,
    but in doing so I was allerted to 'lwsync' not being enabled on 32bit, and so will have to check
    out the assembly after enabled. So it works but I have deep rooted questions as always.

    I would just wait until the maintainers of the Linux PowerPC port come up with their own build fix,
    they just haven't seen this issue yet because they're not using a pre-release version of binutils.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Sun Jan 30 12:20:02 2022
    This works : https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c
    , but in doing so I was allerted to 'lwsync' not being enabled on 32bit,
    and so will have to check out the assembly after enabled. So it works but I have deep rooted questions as always.

    -Mike


    On Sat, Jan 29, 2022, 22:16 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hello Elimar!

    On 1/29/22 14:56, Elimar Riesebieter wrote:
    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    No fix with binutils 2.37.90.20220123-2

    That's not surprising because the bug must be fixed on the kernel side,
    not binutils. See the explanation here [1].

    Adrian

    [1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto"><div>This works : <a href="https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c">https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c</a> , but in doing so I was allerted to &#39;
    lwsync&#39; not being enabled on 32bit, and so will have to check out the assembly after enabled. So it works but I have deep rooted questions as always.<div dir="auto"><br></div><div dir="auto">-Mike</div><br><br><div class="gmail_quote"><div dir="ltr"
    class="gmail_attr">On Sat, Jan 29, 2022, 22:16 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
    solid;padding-left:1ex">Hello Elimar!<br>

    On 1/29/22 14:56, Elimar Riesebieter wrote:<br>
    &gt;&gt; I assume the latest binutils (2.37.50.20220106-2) don&#39;t work<br> &gt;&gt; properly. Anyone made the same experience?<br>
    &gt; <br>
    &gt; No fix with binutils 2.37.90.20220123-2<br>

    That&#39;s not surprising because the bug must be fixed on the kernel side,<br> not binutils. See the explanation here [1].<br>

    Adrian<br>

    &gt; [1] <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=28794" rel="noreferrer noreferrer" target="_blank">https://sourceware.org/bugzilla/show_bug.cgi?id=28794</a><br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike@21:1/5 to glaubitz@physik.fu-berlin.de on Sun Jan 30 20:50:02 2022
    The behavior of binutils is probably correct. 'dssall' needs altivec and
    that was disabled for arch/powerpc/lib an mm etc

    -Mike

    On Sun, Jan 30, 2022, 12:56 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:

    Hello Mike!

    On 1/30/22 12:11, Mike wrote:
    This works :
    https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c
    ,
    but in doing so I was allerted to 'lwsync' not being enabled on 32bit,
    and so will have to check
    out the assembly after enabled. So it works but I have deep rooted
    questions as always.

    I would just wait until the maintainers of the Linux PowerPC port come up with their own build fix,
    they just haven't seen this issue yet because they're not using a
    pre-release version of binutils.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913



    <div dir="auto">The behavior of binutils is probably correct. &#39;dssall&#39; needs altivec and that was disabled for arch/powerpc/lib an mm etc <div dir="auto"><br></div><div dir="auto">-Mike</div></div><br><div class="gmail_quote"><div dir="ltr"
    class="gmail_attr">On Sun, Jan 30, 2022, 12:56 John Paul Adrian Glaubitz &lt;<a href="mailto:glaubitz@physik.fu-berlin.de">glaubitz@physik.fu-berlin.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc
    solid;padding-left:1ex">Hello Mike!<br>

    On 1/30/22 12:11, Mike wrote:<br>
    &gt; This works : <a href="https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c" rel="noreferrer noreferrer" target="_blank">https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c</a>,<br>
    &gt; but in doing so I was allerted to &#39;lwsync&#39; not being enabled on 32bit, and so will have to check<br>
    &gt; out the assembly after enabled. So it works but I have deep rooted questions as always.<br>

    I would just wait until the maintainers of the Linux PowerPC port come up with their own build fix,<br>
    they just haven&#39;t seen this issue yet because they&#39;re not using a pre-release version of binutils.<br>

    Adrian<br>

    -- <br>
     .&#39;&#39;`.  John Paul Adrian Glaubitz<br>
    : :&#39; :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank" rel="noreferrer">glaubitz@debian.org</a><br>
    `. `&#39;   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank" rel="noreferrer">glaubitz@physik.fu-berlin.de</a><br>
      `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Mike on Mon Jan 31 10:30:01 2022
    Hello Mike!

    On 1/30/22 20:47, Mike wrote:
    The behavior of binutils is probably correct. 'dssall' needs altivec and that was disabled for arch/powerpc/lib an mm etc

    Of course, the behavior is correct. If you look at the binutils bug report I filed
    in this context, you see that it was closed as "invalid" [1] as the behavior is intentional.

    Adrian

    [1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to Elimar Riesebieter on Tue Mar 15 08:50:01 2022
    Hi Elimar!

    On 1/19/22 14:35, Elimar Riesebieter wrote:
    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    This issue was recently fixed upstream.

    Could you kindly check whether the issue has been fixed for you and you
    can build and boot your own kernel again?

    Thanks,
    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer - glaubitz@debian.org
    `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Elimar Riesebieter@21:1/5 to All on Tue Mar 15 20:10:01 2022
    Hi Adrian!

    * John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> [2022-03-15 08:44 +0100]:

    Hi Elimar!

    On 1/19/22 14:35, Elimar Riesebieter wrote:
    kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):

    {standard input}: Assembler messages:
    {standard input}:29: Error: unrecognized opcode: `dssall'
    make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
    make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
    make[3]: *** [Makefile:1861: arch/powerpc] Error 2
    make[2]: *** [debian/rules:7: build-arch] Error 2

    I assume the latest binutils (2.37.50.20220106-2) don't work
    properly. Anyone made the same experience?

    This issue was recently fixed upstream.

    Could you kindly check whether the issue has been fixed for you and you
    can build and boot your own kernel again?

    5.16.14 just builds and runs fine.

    riesebie@aragorn>pts/0 ~ $ cat /proc/version
    Linux version 5.16.14-aragorn-lxtec-ppc (riesebie@aragorn) (gcc (Debian 11.2.0-18) 11.2.0, GNU ld (GNU Binutils for Debian) 2.38) #1lxtecppc1 Tue Mar 15 17:03:19 CET 2022

    Elimar
    --
    Obviously the human brain works like a computer.
    Since there are no stupid computers humans can't be stupid.
    There are just a few running with Windows or even CE ;-)

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