From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v1] power: don't manage floating point regs when no FPU
Date: Tue, 11 Aug 2020 16:06:44 +0200 [thread overview]
Message-ID: <da699207-b172-cf12-a04f-4444313e3e27@csgroup.eu> (raw)
In-Reply-To: <87o8nh9yjd.fsf@mpe.ellerman.id.au>
Le 11/08/2020 à 14:07, Michael Ellerman a écrit :
> Christophe Leroy <christophe.leroy@csgroup.eu> writes:
>> 10 files changed, 44 insertions(+), 1 deletion(-)
>
> In general this looks fine.
>
> It's a bit #ifdef heavy. Maybe some of those can be cleaned up a bit
> with some wrapper inlines?
Looking at it once more, looks like more or less the same level of
#ifdefs as things like CONFIG_ALTIVEC for instance. I can't really see
much opportunities to clean it up.
>
>> diff --git a/arch/powerpc/kernel/ptrace/ptrace-novsx.c b/arch/powerpc/kernel/ptrace/ptrace-novsx.c
>> index b2dc4e92d11a..8f87a11f3f8c 100644
>> --- a/arch/powerpc/kernel/ptrace/ptrace-novsx.c
>> +++ b/arch/powerpc/kernel/ptrace/ptrace-novsx.c
>> @@ -28,6 +29,9 @@ int fpr_get(struct task_struct *target, const struct user_regset *regset,
>>
>> return user_regset_copyout(&pos, &count, &kbuf, &ubuf,
>> &target->thread.fp_state, 0, -1);
>> +#else
>> + return 0;
>> +#endif
>
> Should we return -ENODEV/EIO here? Wonder if another arch can give us a clue.
>
Looks like we have to do another way ... another #ifdef ... in the
definition of native_regsets[] in ptrace-view.c . And then we should be
able to not build ptrace-novsx.c at all. Will try that.
Christophe
prev parent reply other threads:[~2020-08-11 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 16:13 [RFC PATCH v1] power: don't manage floating point regs when no FPU Christophe Leroy
2020-08-11 12:07 ` Michael Ellerman
2020-08-11 13:48 ` Christophe Leroy
2020-08-11 14:06 ` Christophe Leroy [this message]
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=da699207-b172-cf12-a04f-4444313e3e27@csgroup.eu \
--to=christophe.leroy@csgroup.eu \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox