[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v4 2/2] xen/arm: Throw messages for unknown FP/SIMD implement ID


  • To: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Fri, 28 Aug 2020 02:23:03 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IHY11X+McKjclwL7xpBDKj0mX4zJvMmhANGizpRbA3A=; b=oXtx5SkqEvvNnmcYdkV+cmL5E24ENYJtD2U4HYR0SZ5f0JenFD0S4+gCFwPifn4c7KFvOWPn6PYD+MtJEqI95HP4cQ95tVelwBZ8uk9983rJDncjVYl8B3V6KV3pZbR3/P1QL0wnzMUyVKPK+NlomuF3VIvnsp/VbF2m/B9Ruuco1jnX81L67pVriEPal90cH4zDMYd8thsF3F2tvzyXY2Tj07HCrjEhU+9HU/t98xMFrGKwrnuuNckLjX1c0TGVHZQuMFyhEW91L4YoQBhSmyuDMYv++ZvgS1ihqPwhg2U3/OA0pBifcHjw1faZF+bfxetuTdP/WKYcV2hKc/ZFCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYrfrH+8FTY2R2Q3e8mcmehmTZ8WwQjfjts83RCfbU4SpFAP1fQ6fscJIa7roBKoPldEj2XHQZb46ubYrihOHHSljWIYuv0EjmRKf5jynRq2gJ7rS3fUpfMeGI8L8aIGXySyERSdUXkW0kzoHjb+RK+fxOdE4IvpKbDYCvEMA1CEMHl7eqaWU23ZezoR/2GOi0cFpLxyVdTPgg5fQMxz1Hn257L3CykTQiktdUmdB15MxqHUrShdZqu38VQRuNAzdRLbI+/3nVTgv4ezgaWixz2BCAnAuriRfuZf2v0fB1D4MmWnnG/fRBMboBtQRWvoLZVSYqiMV80+rpT/PSIkqw==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Kaly Xin <Kaly.Xin@xxxxxxx>, nd <nd@xxxxxxx>
  • Delivery-date: Fri, 28 Aug 2020 02:23:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWevncVy3USlwzOkCvBWb/o+u4mKlMAkyAgADLtfA=
  • Thread-topic: [PATCH v4 2/2] xen/arm: Throw messages for unknown FP/SIMD implement ID

Hi Bertand,

> -----Original Message-----
> From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
> Sent: 2020年8月27日 22:13
> To: Wei Chen <Wei.Chen@xxxxxxx>
> Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>; sstabellini@xxxxxxxxxx;
> julien@xxxxxxx; Andre Przywara <Andre.Przywara@xxxxxxx>; Penny Zheng
> <Penny.Zheng@xxxxxxx>; Kaly Xin <Kaly.Xin@xxxxxxx>; nd <nd@xxxxxxx>
> Subject: Re: [PATCH v4 2/2] xen/arm: Throw messages for unknown
> FP/SIMD implement ID
> 
> 
> 
> > On 25 Aug 2020, at 17:06, Wei Chen <Wei.Chen@xxxxxxx> wrote:
> >
> > Arm ID_AA64PFR0_EL1 register provides two fields to describe CPU
> > FP/SIMD implementations. Currently, we exactly know the meaning of
> > 0x0, 0x1 and 0xf of these fields. Xen treats value < 8 as FP/SIMD
> > features presented. If there is a value 0x2 bumped in the future,
> > Xen behaviors for value <= 0x1 can also take effect. But what Xen
> > done for value <= 0x1 may not always cover new value 0x2 required.
> > We throw these messages to break the silence when Xen detected
> > unknown FP/SIMD IDs to notice user to check.
> >
> > Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
> 
> With the small typo after fixed:
> Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> 
> > ---
> > xen/arch/arm/setup.c | 12 ++++++++++++
> > 1 file changed, 12 insertions(+)
> >
> > diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
> > index 7968cee47d..6a31eca984 100644
> > --- a/xen/arch/arm/setup.c
> > +++ b/xen/arch/arm/setup.c
> > @@ -133,6 +133,18 @@ static void __init processor_id(void)
> >            cpu_has_simd ? " AdvancedSIMD" : "",
> >            cpu_has_gicv3 ? " GICv3-SysReg" : "");
> >
> > +    /* Warn user if we find unknown floating-point features */
> > +    if ( cpu_has_fp && (boot_cpu_feature64(fp) >= 2) )
> > +        printk(XENLOG_WARNING "WARNING: Unknown Floating-point
> ID:%d, "
> > +               "this may result to corruption on the platform\n",
> 
> s/to/in/
> 
> > +               boot_cpu_feature64(fp));
> > +
> > +    /* Warn user if we find unknown AdvancedSIMD features */
> > +    if ( cpu_has_simd && (boot_cpu_feature64(simd) >= 2) )
> > +        printk(XENLOG_WARNING "WARNING: Unknown AdvancedSIMD
> ID:%d, "
> > +               "this may result to corruption on the platform\n",
> 
> same as upper

I would fix above two typos and send a new version.

> 
> > +               boot_cpu_feature64(simd));
> > +
> >     printk("  Debug Features: %016"PRIx64" %016"PRIx64"\n",
> >            boot_cpu_data.dbg64.bits[0], boot_cpu_data.dbg64.bits[1]);
> >     printk("  Auxiliary Features: %016"PRIx64" %016"PRIx64"\n",
> > --
> > 2.17.1
> >
> 
> 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.