All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Nicholas Piggin <npiggin@gmail.com>,
	"jbglaw@lug-owl.de" <jbglaw@lug-owl.de>
Subject: Re: [PATCH v1 4/5] powerpc: Remove cpu-as-y completely
Date: Sun, 25 Feb 2024 10:52:58 +1100	[thread overview]
Message-ID: <87msrpa085.fsf@mail.lhotse> (raw)
In-Reply-To: <94d19157-a343-425f-906f-546b1f4def6f@csgroup.eu>

Christophe Leroy <christophe.leroy@csgroup.eu> writes:
> Le 20/02/2023 à 07:00, Michael Ellerman a écrit :
>> Christophe Leroy <christophe.leroy@csgroup.eu> writes:
>>> cpu-as-y is there to force assembler building options.
>>> But there is no need for that. Gcc is passed the necessary
>>> options and it automatically pass the appropriate option to
>>> GAS.
>>>
>>> GCC is given -maltivec when relevant, so no need
>>> for -Wa,-maltivec in addition
>>>
>>> And -Wa,-many is wrong as it will hide innapropriate
>>> instructions. Better to detect them and handle them on a
>>> case by case basis.
>>> -Wa,-many was added by commit 960e30029863 ("powerpc/Makefile:
>>> Fix PPC_BOOK3S_64 ASFLAGS") in order to fix an issue with
>>> clang and the passed -Wa,-mpower4 option. But we have now
>>> removed it expecting the compiler to automatically pass the
>>> proper options and instructions based on -mcpu=power4
>> 
>> I wanted to apply this one, but it caused a lot of breakage for big
>> endian Book3S-64 builds - where we build for power4 but have lots of
>> code that uses >= power5 instructions.
>> 
>> I'll try and get those all fixed and pick this up for the next merge
>> window.
>
> ping ?

Brutal :)

There's still a few issues, I have patches for most of them I think.
Will post this week.

cheers

WARNING: multiple messages have this Message-ID (diff)
From: Michael Ellerman <mpe@ellerman.id.au>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
	Nicholas Piggin <npiggin@gmail.com>,
	"jbglaw@lug-owl.de" <jbglaw@lug-owl.de>
Subject: Re: [PATCH v1 4/5] powerpc: Remove cpu-as-y completely
Date: Sun, 25 Feb 2024 10:52:58 +1100	[thread overview]
Message-ID: <87msrpa085.fsf@mail.lhotse> (raw)
In-Reply-To: <94d19157-a343-425f-906f-546b1f4def6f@csgroup.eu>

Christophe Leroy <christophe.leroy@csgroup.eu> writes:
> Le 20/02/2023 à 07:00, Michael Ellerman a écrit :
>> Christophe Leroy <christophe.leroy@csgroup.eu> writes:
>>> cpu-as-y is there to force assembler building options.
>>> But there is no need for that. Gcc is passed the necessary
>>> options and it automatically pass the appropriate option to
>>> GAS.
>>>
>>> GCC is given -maltivec when relevant, so no need
>>> for -Wa,-maltivec in addition
>>>
>>> And -Wa,-many is wrong as it will hide innapropriate
>>> instructions. Better to detect them and handle them on a
>>> case by case basis.
>>> -Wa,-many was added by commit 960e30029863 ("powerpc/Makefile:
>>> Fix PPC_BOOK3S_64 ASFLAGS") in order to fix an issue with
>>> clang and the passed -Wa,-mpower4 option. But we have now
>>> removed it expecting the compiler to automatically pass the
>>> proper options and instructions based on -mcpu=power4
>> 
>> I wanted to apply this one, but it caused a lot of breakage for big
>> endian Book3S-64 builds - where we build for power4 but have lots of
>> code that uses >= power5 instructions.
>> 
>> I'll try and get those all fixed and pick this up for the next merge
>> window.
>
> ping ?

Brutal :)

There's still a few issues, I have patches for most of them I think.
Will post this week.

cheers

  reply	other threads:[~2024-02-24 23:53 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 18:45 [PATCH v1 1/5] powerpc/64: Set default CPU in Kconfig Christophe Leroy
2022-12-19 18:45 ` Christophe Leroy
2022-12-19 18:45 ` [PATCH v1 2/5] powerpc: Pass correct CPU reference to assembler Christophe Leroy
2022-12-19 18:45   ` Christophe Leroy
2022-12-20 20:14   ` Pali Rohár
2022-12-20 20:14     ` Pali Rohár
2022-12-19 18:45 ` [PATCH v1 3/5] powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500 Christophe Leroy
2022-12-19 18:45   ` Christophe Leroy
2022-12-20 20:15   ` Pali Rohár
2022-12-20 20:15     ` Pali Rohár
2023-02-01 23:46     ` Pali Rohár
2023-02-01 23:46       ` Pali Rohár
2023-02-03 18:23       ` Christophe Leroy
2023-02-03 18:23         ` Christophe Leroy
2022-12-19 18:45 ` [PATCH v1 4/5] powerpc: Remove cpu-as-y completely Christophe Leroy
2022-12-19 18:45   ` Christophe Leroy
2022-12-20 20:15   ` Pali Rohár
2022-12-20 20:15     ` Pali Rohár
2023-02-20  6:00   ` Michael Ellerman
2023-02-20  6:00     ` Michael Ellerman
2024-02-16 15:25     ` Christophe Leroy
2024-02-16 15:25       ` Christophe Leroy
2024-02-24 23:52       ` Michael Ellerman [this message]
2024-02-24 23:52         ` Michael Ellerman
2022-12-19 18:46 ` [PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke Christophe Leroy
2022-12-19 18:46   ` Christophe Leroy
2022-12-20 20:21   ` Pali Rohár
2022-12-20 20:21     ` Pali Rohár
2023-02-15 23:15     ` Pali Rohár
2023-02-15 23:15       ` Pali Rohár
2022-12-20 20:13 ` [PATCH v1 1/5] powerpc/64: Set default CPU in Kconfig Pali Rohár
2022-12-20 20:13   ` Pali Rohár
2023-02-20  3:53 ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msrpa085.fsf@mail.lhotse \
    --to=mpe@ellerman.id.au \
    --cc=christophe.leroy@csgroup.eu \
    --cc=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=npiggin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.