All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bertrand Marquis <Bertrand.Marquis@arm.com>
To: Julien Grall <julien@xen.org>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: Re: [PATCH] xen/arm: Use register_t type in cpuinfo entries
Date: Tue, 9 Mar 2021 10:12:20 +0000	[thread overview]
Message-ID: <E16D4BEF-B8E2-4F6B-A4CF-5D755314D866@arm.com> (raw)
In-Reply-To: <33a75f39-7626-97a9-a90b-3fe8f1fa856f@xen.org>

Hi Julien,

> On 9 Mar 2021, at 11:07, Julien Grall <julien@xen.org> wrote:
> 
> 
> 
> On 09/03/2021 09:30, Bertrand Marquis wrote:
>> Hi Julien,
> 
> Hi Bertrand,
> 
>>> On 8 Mar 2021, at 20:48, Julien Grall <julien@xen.org> wrote:
>>> 
>>> Hi Bertrand,
>>> 
>>> On 08/03/2021 17:18, Bertrand Marquis wrote:
>>>> All cpu identification registers that we store in the cpuinfo structure
>>>> are 64bit on arm64 and 32bit on arm32 so storing the values in 32bit on
>>>> arm64 is removing the higher bits which might contain information in the
>>>> future.
>>>> This patch is changing the types in cpuinfo to register_t (which is
>>>> 32bit on arm32 and 64bit on arm64) and adding the necessary paddings
>>>> inside the unions.
>>> 
>>> I read this as we would replace uint32_t with register_t. However, there are a few instances where you, validly, replace uint64_t with register_t. I would suggest to clarify it in the commit message.
>> How about adding the following sentence: “For coherency uint64_t entries are also changed to register_t on 64bit systems."
> 
> I think you mean consistency rather than coherency.

Yes right :-)

> 
>>> 
>>>> diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
>>>> index cae2179126..ea0dd3451e 100644
>>>> --- a/xen/arch/arm/smpboot.c
>>>> +++ b/xen/arch/arm/smpboot.c
>>>> @@ -321,7 +321,8 @@ void start_secondary(void)
>>>>      if ( !opt_hmp_unsafe &&
>>>>           current_cpu_data.midr.bits != boot_cpu_data.midr.bits )
>>>>      {
>>>> -        printk(XENLOG_ERR "CPU%u MIDR (0x%x) does not match boot CPU MIDR (0x%x),\n"
>>>> +        printk(XENLOG_ERR "CPU%u MIDR (0x%"PRIregister") does not match boot "
>>>> +               "CPU MIDR (0x%"PRIregister"),\n"
>>> 
>>> For printk messages, we don't tend to split it like that (even for more than 80 characters one). Instead, the preferred approach is:
>>> 
>>> printk(XENLOG_ERR
>>>       "line 1\n"
>>>       "line 2\n")
>> Ok.
>> Do you want me to send a v2 or can you fix this during the commit ?
> 
> Both can be fixed on commit. I will queue it to my next branch soon.

Perfect, thanks.

Cheers
Bertrand

> 
> Cheers,
> 
> -- 
> Julien Grall


  reply	other threads:[~2021-03-09 10:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08 17:18 [PATCH] xen/arm: Use register_t type in cpuinfo entries Bertrand Marquis
2021-03-08 19:48 ` Julien Grall
2021-03-09  1:17   ` Stefano Stabellini
2021-03-09  9:30   ` Bertrand Marquis
2021-03-09 10:07     ` Julien Grall
2021-03-09 10:12       ` Bertrand Marquis [this message]
2021-03-09 11:04   ` Jan Beulich
2021-03-09 14:41     ` Bertrand Marquis
2021-03-11 10:12       ` Julien Grall
2021-03-11 10:26         ` Bertrand Marquis

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=E16D4BEF-B8E2-4F6B-A4CF-5D755314D866@arm.com \
    --to=bertrand.marquis@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.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 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.