public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: Chao Li <lichao@loongson.cn>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Cc: "Gao, Liming" <gaoliming@byosoft.com.cn>,
	"Liu, Zhiguang" <zhiguang.liu@intel.com>
Subject: Re: [PATCH v2 25/34] MdePkg/BaseIoLibIntrinsic: IoLibNoIo for LoongArch architecture.
Date: Fri, 23 Sep 2022 15:47:57 +0000	[thread overview]
Message-ID: <CO1PR11MB4929A0AE6408DEFAB450382ED2519@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220914094125.3697031-1-lichao@loongson.cn>

Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>

> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Wednesday, September 14, 2022 2:41 AM
> To: devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>
> Subject: [PATCH v2 25/34] MdePkg/BaseIoLibIntrinsic: IoLibNoIo for LoongArch architecture.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053
> 
> LoongArch MMIO library instance, use the IoLibNoIo.
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  .../Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf  | 10 +++++++---
>  MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c          |  3 ++-
>  2 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
> index 27b15d9ae2..aeb072ee95 100644
> --- a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
> +++ b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
> @@ -4,13 +4,14 @@
>  #  I/O Library that uses compiler intrinsics to perform IN and OUT instructions
> 
>  #  for IA-32 and x64.  On IPF, I/O port requests are translated into MMIO requests.
> 
>  #  MMIO requests are forwarded directly to memory.  For EBC, I/O port requests
> 
> -#  ASSERT(). For ARM, AARCH64 and RISCV64, this I/O library only provides non I/O
> 
> -#  read and write.
> 
> +#  ASSERT(). For ARM, AARCH64, RISCV64 and LoongArch, this I/O library only provides
> 
> +#  non I/O read and write.
> 
>  #
> 
>  #  Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
> 
>  #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
> 
>  #  Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
> 
>  #  Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> 
> +#  Portions Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> 
>  #
> 
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  #
> 
> @@ -27,7 +28,7 @@
> 
> 
> 
> 
>  #
> 
> -#  VALID_ARCHITECTURES           = IA32 X64 EBC ARM AARCH64 RISCV64
> 
> +#  VALID_ARCHITECTURES           = IA32 X64 EBC ARM AARCH64 RISCV64 LOONGARCH64
> 
>  #
> 
> 
> 
>  [Sources]
> 
> @@ -62,6 +63,9 @@
>  [Sources.RISCV64]
> 
>    IoLibNoIo.c
> 
> 
> 
> +[Sources.LOONGARCH64]
> 
> +  IoLibNoIo.c
> 
> +
> 
>  [Packages]
> 
>    MdePkg/MdePkg.dec
> 
> 
> 
> diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c
> index c71f45b22e..c51e5da39b 100644
> --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c
> +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c
> @@ -1,11 +1,12 @@
>  /** @file
> 
>    I/O library for non I/O read and write access (memory map I/O read and
> 
> -  write only) architecture, such as ARM and RISC-V processor.
> 
> +  write only) architecture, such as ARM, RISC-V and LoongArch processor.
> 
> 
> 
>    Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
> 
>    Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
> 
>    Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
> 
>    Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> 
> +  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
> 
> 
> 
>    SPDX-License-Identifier: BSD-2-Clause-Patent
> 
> 
> 
> --
> 2.27.0


      reply	other threads:[~2022-09-23 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  9:41 [PATCH v2 25/34] MdePkg/BaseIoLibIntrinsic: IoLibNoIo for LoongArch architecture Chao Li
2022-09-23 15:47 ` Michael D Kinney [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-list 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=CO1PR11MB4929A0AE6408DEFAB450382ED2519@CO1PR11MB4929.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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