From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: Chao Li <lichao@loongson.cn>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Gao, Liming" <gaoliming@byosoft.com.cn>,
"Liu, Zhiguang" <zhiguang.liu@intel.com>,
"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] [PATCH v2 05/30] MdePkg: Add LoongArch Cpucfg function
Date: Tue, 7 Nov 2023 03:31:36 +0000 [thread overview]
Message-ID: <CO1PR11MB4929FD829009DCA712E3419FD2A9A@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20231106032709.2271132-1-lichao@loongson.cn>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
> -----Original Message-----
> From: Chao Li <lichao@loongson.cn>
> Sent: Sunday, November 5, 2023 7:27 PM
> 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 05/30] MdePkg: Add LoongArch Cpucfg function
>
> Add LoongArch AsmCpucfg function and Cpucfg definitions.
>
> Also added Include/Register/LoongArch64/Cpucfg.h to IgnoreFiles of
> EccCheck.
>
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584
>
> 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>
> ---
> MdePkg/Include/Library/BaseLib.h | 12 +
> MdePkg/Include/Register/LoongArch64/Cpucfg.h | 565
> +++++++++++++++++++
> MdePkg/Library/BaseLib/BaseLib.inf | 1 +
> MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S | 26 +
> MdePkg/MdePkg.ci.yaml | 3 +-
> 5 files changed, 606 insertions(+), 1 deletion(-)
> create mode 100644 MdePkg/Include/Register/LoongArch64/Cpucfg.h
> create mode 100644 MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S
>
> diff --git a/MdePkg/Include/Library/BaseLib.h
> b/MdePkg/Include/Library/BaseLib.h
> index 93a014cd49..3adf4d0042 100644
> --- a/MdePkg/Include/Library/BaseLib.h
> +++ b/MdePkg/Include/Library/BaseLib.h
> @@ -269,6 +269,18 @@ DisableLocalInterrupts (
> IN UINT16
> );
>
> +/**
> + Read CPUCFG register.
> +
> + @param Index Specifies the register number of the CPUCFG to read
> the data.
> + @param Data A pointer to the variable used to store the CPUCFG
> register value.
> +**/
> +VOID
> +AsmCpucfg (
> + IN UINT32 Index,
> + OUT UINT32 *Data
> + );
> +
> #endif // defined (MDE_CPU_LOONGARCH64)
>
> //
> diff --git a/MdePkg/Include/Register/LoongArch64/Cpucfg.h
> b/MdePkg/Include/Register/LoongArch64/Cpucfg.h
> new file mode 100644
> index 0000000000..841885dc70
> --- /dev/null
> +++ b/MdePkg/Include/Register/LoongArch64/Cpucfg.h
> @@ -0,0 +1,565 @@
> +/** @file
> + CPUCFG definitions.
> +
> + Copyright (c) 2023, Loongson Technology Corporation Limited. All
> rights reserved.<BR>
> +
> + SPDX-License-Identifier: BSD-2-Clause-Patent
> +**/
> +
> +#ifndef CPUCFG_H_
> +#define CPUCFG_H_
> +
> +/**
> + CPUCFG REG0 Information
> +
> + @code
> + CPUCFG_REG0_INFO_DATA
> + **/
> +#define CPUCFG_REG0_INFO 0x0
> +
> +/**
> + CPUCFG REG0 Information returned data.
> + #CPUCFG_REG0_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 31:0] Processor Identity.
> + ///
> + UINT32 PRID : 32;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG0_INFO_DATA;
> +
> +/**
> + CPUCFG REG1 Information
> +
> + @code
> + CPUCFG_REG1_INFO_DATA
> + **/
> +#define CPUCFG_REG1_INFO 0x1
> +
> +/**
> + CPUCFG REG1 Information returned data.
> + #CPUCFG_REG1_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 1:0] Architecture:
> + /// 2'b00 indicates the implementation of simplified
> LoongAarch32;
> + /// 2'b01 indicates the implementation of LoongAarch32;
> + /// 2'b10 indicates the implementation of LoongAarch64;
> + /// 2'b11 reserved;
> + ///
> + UINT32 ARCH : 2;
> + ///
> + /// [Bit 2] Paging mapping mode. A value of 1 indicates the
> processor MMU supports
> + /// page mapping mode.
> + ///
> + UINT32 PGMMU : 1;
> + ///
> + /// [Bit 3] A value of 1 indicates the processor supports the
> IOCSR instruction.
> + ///
> + UINT32 IOCSR : 1;
> + ///
> + /// [Bit 11:4] Physical address bits. The supported physical
> address bits PALEN value
> + /// minus 1.
> + ///
> + UINT32 PALEN : 8;
> + ///
> + /// [Bit 19:12] Virtual address bits. The supported virtual
> address bits VALEN value
> + /// minus 1.
> + ///
> + UINT32 VALEN : 8;
> + ///
> + /// [Bit 20] Non-aligned Memory Access. A value of 1 indicates
> the processor supports
> + /// non-aligned memory access.
> + ///
> + UINT32 UAL : 1;
> + ///
> + /// [Bit 21] Page Read Inhibit. A value of 1 indicates the
> processor supports page
> + /// attribute of "Read Inhibit".
> + ///
> + UINT32 RI : 1;
> + ///
> + /// [Bit 22] Page Execution Protection. A value of 1 indicates
> the processor supports
> + /// page attribute of "Execution Protection".
> + ///
> + UINT32 EP : 1;
> + ///
> + /// [Bit 23] A value of 1 indicates the processor supports for
> page attributes of RPLV.
> + ///
> + UINT32 RPLV : 1;
> + ///
> + /// [Bit 24] Huge Page. A value of 1 indicates the processor
> supports page attribute
> + /// of huge page.
> + ///
> + UINT32 HP : 1;
> + ///
> + /// [Bit 25] A value of 1 indicates that the string of processor
> product information
> + /// is recorded at address 0 of the IOCSR access space.
> + ///
> + UINT32 IOCSR_BRD : 1;
> + ///
> + /// [Bit 26] A value of 1 indicates that the external interrupt
> uses the message
> + /// interrupt mode, otherwise it is the level interrupt line
> mode.
> + ///
> + UINT32 MSG_INT : 1;
> + ///
> + /// [Bit 31:27] Reserved.
> + ///
> + UINT32 Reserved : 5;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG1_INFO_DATA;
> +
> +/**
> + CPUCFG REG2 Information
> +
> + @code
> + CPUCFG_REG2_INFO_DATA
> + **/
> +#define CPUCFG_REG2_INFO 0x2
> +
> +/**
> + CPUCFG REG2 Information returned data.
> + #CPUCFG_REG2_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 0] Basic Floating-Point. A value of 1 indicates the
> processor supports basic
> + /// floating-point instructions.
> + ///
> + UINT32 FP : 1;
> + ///
> + /// [Bit 1] Sigle-Precision. A value of 1 indicates the processor
> supports sigle-precision
> + /// floating-point numbers.
> + ///
> + UINT32 FP_SP : 1;
> + ///
> + /// [Bit 2] Double-Precision. A value of 1 indicates the
> processor supports double-precision
> + /// floating-point numbers.
> + ///
> + UINT32 FP_DP : 1;
> + ///
> + /// [Bit 5:3] The version number of the floating-point arithmetic
> standard. 1 is the initial
> + /// version number, indicating that it is compatible with the
> IEEE 754-2008 standard.
> + ///
> + UINT32 FP_ver : 3;
> + ///
> + /// [Bit 6] 128-bit Vector Extension. A value of 1 indicates the
> processor supports 128-bit
> + /// vector extension.
> + ///
> + UINT32 LSX : 1;
> + ///
> + /// [Bit 7] 256-bit Vector Extension. A value of 1 indicates the
> processor supports 256-bit
> + /// vector extension.
> + ///
> + UINT32 LASX : 1;
> + ///
> + /// [Bit 8] Complex Vector Operation Instructions. A value of 1
> indicates the processor supports
> + /// complex vector operation instructions.
> + ///
> + UINT32 COMPLEX : 1;
> + ///
> + /// [Bit 9] Encryption And Decryption Vector Instructions. A
> value of 1 indicates the processor
> + /// supports encryption and decryption vector instructions.
> + ///
> + UINT32 CRYPTO : 1;
> + ///
> + /// [Bit 10] Virtualization Expansion. A value of 1 indicates the
> processor supports
> + /// virtualization expansion.
> + ///
> + UINT32 LVZ : 1;
> + ///
> + /// [Bit 13:11] The version number of the virtualization hardware
> acceleration specification.
> + /// 1 is the initial version number.
> + ///
> + UINT32 LVZ_ver : 3;
> + ///
> + /// [Bit 14] Constant Frequency Counter And Timer. A value of 1
> indicates the processor supports
> + /// constant frequency counter and timer.
> + ///
> + UINT32 LLFTP : 1;
> + ///
> + /// [Bit 17:15] Constant frequency counter and timer version
> number. 1 is the initial version.
> + ///
> + UINT32 LLTP_ver : 3;
> + ///
> + /// [Bit 18] X86 Binary Translation Extension. A value of 1
> indicates the processor supports
> + /// X86 binary translation extension.
> + ///
> + UINT32 LBT_X86 : 1;
> + ///
> + /// [Bit 19] ARM Binary Translation Extension. A value of 1
> indicates the processor supports
> + /// ARM binary translation extension.
> + ///
> + UINT32 LBT_ARM : 1;
> + ///
> + /// [Bit 20] MIPS Binary Translation Extension. A value of 1
> indicates the processor supports
> + /// MIPS binary translation extension.
> + ///
> + UINT32 LBT_MIPS : 1;
> + ///
> + /// [Bit 21] Software Page Table Walking Instruction. A value of
> 1 indicates the processor
> + /// supports software page table walking instruction.
> + ///
> + UINT32 LSPW : 1;
> + ///
> + /// [Bit 22] Atomic Memory Access Instruction. A value of 1
> indicates the processor supports
> + /// AM* atomic memory access instruction.
> + ///
> + UINT32 LAM : 1;
> + ///
> + /// [Bit 31:23] Reserved.
> + ///
> + UINT32 Reserved : 9;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG2_INFO_DATA;
> +
> +/**
> + CPUCFG REG3 Information
> +
> + @code
> + CPUCFG_REG3_INFO_DATA
> + **/
> +#define CPUCFG_REG3_INFO 0x3
> +
> +/**
> + CPUCFG REG3 Information returned data.
> + #CPUCFG_REG3_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 0] Hardware Cache Coherent DMA. A value of 1 indicates
> the processor supports
> + /// hardware cache coherent DMA.
> + ///
> + UINT32 CCDMA : 1;
> + ///
> + /// [Bit 1] Store Fill Buffer. A value of 1 indicates the
> processor supports store fill
> + /// buffer (SFB).
> + ///
> + UINT32 SFB : 1;
> + ///
> + /// [Bit 2] Uncache Accelerate. A value of 1 indicates the
> processor supports uncache
> + /// accelerate.
> + ///
> + UINT32 UCACC : 1;
> + ///
> + /// [Bit 3] A value of 1 indicates the processor supports LL
> instruction to fetch exclusive
> + /// block function.
> + ///
> + UINT32 LLEXC : 1;
> + ///
> + /// [Bit 4] A value of 1 indicates the processor supports random
> delay function after SC
> + /// instruction.
> + ///
> + UINT32 SCDLY : 1;
> + ///
> + /// [Bit 5] A value of 1 indicates the processor supports LL
> automatic with dbar function.
> + ///
> + UINT32 LLDBAR : 1;
> + ///
> + /// [Bit 6] A value of 1 indicates the processor supports the
> hardware maintains the
> + /// consistency between ITLB and TLB.
> + ///
> + UINT32 ITLBT : 1;
> + ///
> + /// [Bit 7] A value of 1 indicates the processor supports the
> hardware maintains the data
> + /// consistency between ICache and DCache in one processor core.
> + ///
> + UINT32 ICACHET : 1;
> + ///
> + /// [Bit 10:8] The maximum number of directory levels supported
> by the page walk instruction.
> + ///
> + UINT32 SPW_LVL : 3;
> + ///
> + /// [Bit 11] A value of 1 indicates the processor supports the
> page walk instruction fills
> + /// the TLB in half when it encounters a large page.
> + ///
> + UINT32 SPW_HP_HF : 1;
> + ///
> + /// [Bit 12] Virtual Address Range. A value of 1 indicates the
> processor supports the software
> + /// configuration can be used to shorten the virtual address
> range.
> + ///
> + UINT32 RVA : 1;
> + ///
> + /// [Bit 16:13] The maximum configurable virtual address is
> shortened by -1.
> + ///
> + UINT32 RVAMAX_1 : 4;
> + ///
> + /// [Bit 31:17] Reserved.
> + ///
> + UINT32 Reserved : 15;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG3_INFO_DATA;
> +
> +/**
> + CPUCFG REG4 Information
> +
> + @code
> + CPUCFG_REG4_INFO_DATA
> + **/
> +#define CPUCFG_REG4_INFO 0x4
> +
> +/**
> + CPUCFG REG4 Information returned data.
> + #CPUCFG_REG4_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 31:0] Constant frequency timer and the crystal frequency
> corresponding to the clock
> + /// used by the timer.
> + ///
> + UINT32 CC_FREQ : 32;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG4_INFO_DATA;
> +
> +/**
> + CPUCFG REG5 Information
> +
> + @code
> + CPUCFG_REG5_INFO_DATA
> + **/
> +#define CPUCFG_REG5_INFO 0x5
> +
> +/**
> + CPUCFG REG5 Information returned data.
> + #CPUCFG_REG5_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 15:0] Constant frequency timer and the corresponding
> multiplication factor of the
> + /// clock used by the timer.
> + ///
> + UINT32 CC_MUL : 16;
> + ///
> + /// [Bit 31:16] Constant frequency timer and the division
> coefficient corresponding to the
> + /// clock used by the timer
> + ///
> + UINT32 CC_DIV : 16;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG5_INFO_DATA;
> +
> +/**
> + CPUCFG REG6 Information
> +
> + @code
> + CPUCFG_REG6_INFO_DATA
> + **/
> +#define CPUCFG_REG6_INFO 0x6
> +
> +/**
> + CPUCFG REG6 Information returned data.
> + #CPUCFG_REG6_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 0] Performance Counter. A value of 1 indicates the
> processor supports performance
> + /// counter.
> + ///
> + UINT32 PMP : 1;
> + ///
> + /// [Bit 3:1] In the performance monitor, the architecture
> defines the version number of the
> + /// event, and 1 is the initial version
> + ///
> + UINT32 PMVER : 3;
> + ///
> + /// [Bit 7:4] Number of performance monitors minus 1.
> + ///
> + UINT32 PMNUM : 4;
> + ///
> + /// [Bit 13:8] Number of bits of a performance monitor minus 1.
> + ///
> + UINT32 PMBITS : 6;
> + ///
> + /// [Bit 14] A value of 1 indicates the processor supports
> reading performance counter in user mode.
> + ///
> + UINT32 UPM : 1;
> + ///
> + /// [Bit 31:15] Reserved.
> + ///
> + UINT32 Reserved : 17;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG6_INFO_DATA;
> +
> +/**
> + CPUCFG REG16 Information
> +
> + @code
> + CPUCFG_REG16_INFO_DATA
> + **/
> +#define CPUCFG_REG16_INFO 0x10
> +
> +/**
> + CPUCFG REG16 Information returned data.
> + #CPUCFG_REG16_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 0] A value of 1 indicates the processor has a first-
> level instruction cache
> + /// or a first-level unified cache
> + ///
> + UINT32 L1_IU_Present : 1;
> + ///
> + /// [Bit 1] A value of 1 indicates that the cache shown by L1
> IU_Present is the
> + /// unified cache.
> + ///
> + UINT32 L1_IU_Unify : 1;
> + ///
> + /// [Bit 2] A value of 1 indicates the processor has a first-
> level data cache.
> + ///
> + UINT32 L1_D_Present : 1;
> + ///
> + /// [Bit 3] A value of 1 indicates the processor has a second-
> level instruction cache
> + /// or a second-level unified cache.
> + ///
> + UINT32 L2_IU_Present : 1;
> + ///
> + /// [Bit 4] A value of 1 indicates that the cache shown by L2
> IU_Present is the
> + /// unified cache.
> + ///
> + UINT32 L2_IU_Unify : 1;
> + ///
> + /// [Bit 5] A value of 1 indicates that the cache shown by L2
> IU_Present is private
> + /// to each core.
> + ///
> + UINT32 L2_IU_Private : 1;
> + ///
> + /// [Bit 6] A value of 1 indicates that the cache shown by L2
> IU_Present has an inclusive
> + /// relationship to the lower levels (L1).
> + ///
> + UINT32 L2_IU_Inclusive : 1;
> + ///
> + /// [Bit 7] A value of 1 indicates the processor has a second-
> level data cache.
> + ///
> + UINT32 L2_D_Present : 1;
> + ///
> + /// [Bit 8] A value of 1 indicates that the second-level data
> cache is private to each core.
> + ///
> + UINT32 L2_D_Private : 1;
> + ///
> + /// [Bit 9] A value of 1 indicates that the second-level data
> cache has a containment
> + /// relationship to the lower level (L1).
> + ///
> + UINT32 L2_D_Inclusive : 1;
> + ///
> + /// [Bit 10] A value of 1 indicates the processor has a three-
> level instruction cache
> + /// or a second-level unified Cache.
> + ///
> + UINT32 L3_IU_Present : 1;
> + ///
> + /// [Bit 11] A value of 1 indicates that the cache shown by L3
> IU_Present is the
> + /// unified cache.
> + ///
> + UINT32 L3_IU_Unify : 1;
> + ///
> + /// [Bit 12] A value of 1 indicates that the cache shown by L3
> IU_Present is private
> + /// to each core.
> + ///
> + UINT32 L3_IU_Private : 1;
> + ///
> + /// [Bit 13] A value of 1 indicates that the cache shown by L3
> IU_Present has an inclusive
> + /// relationship to the lower levels (L1 and L2).
> + ///
> + UINT32 L3_IU_Inclusive : 1;
> + ///
> + /// [Bit 14] A value of 1 indicates the processor has a three-
> level data cache.
> + ///
> + UINT32 L3_D_Present : 1;
> + ///
> + /// [Bit 15] A value of 1 indicates that the three-level data
> cache is private to each core.
> + ///
> + UINT32 L3_D_Private : 1;
> + ///
> + /// [Bit 16] A value of 1 indicates that the three-level data
> cache has a containment
> + /// relationship to the lower level (L1 and L2).
> + ///
> + UINT32 L3_D_Inclusive : 1;
> + ///
> + /// [Bit 31:17] Reserved.
> + ///
> + UINT32 Reserved : 15;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_REG16_INFO_DATA;
> +
> +/**
> + CPUCFG REG17, REG18, REG19 and REG20 Information
> +
> + @code
> + CPUCFG_CACHE_INFO_DATA
> + **/
> +#define CPUCFG_REG17_INFO 0x11 /// L1 unified cache.
> +#define CPUCFG_REG18_INFO 0x12 /// L1 data cache.
> +#define CPUCFG_REG19_INFO 0x13 /// L2 unified cache.
> +#define CPUCFG_REG20_INFO 0x14 /// L3 unified cache.
> +
> +/**
> + CPUCFG CACHE Information returned data.
> + #CPUCFG_REG17_INFO
> + #CPUCFG_REG18_INFO
> + #CPUCFG_REG19_INFO
> + #CPUCFG_REG20_INFO
> + **/
> +typedef union {
> + struct {
> + ///
> + /// [Bit 15:0] Number of channels minus 1.
> + ///
> + UINT32 Way_1 : 16;
> + ///
> + /// [Bit 23:16] Log2 (number of cache rows per channel).
> + ///
> + UINT32 Index_log2 : 8;
> + ///
> + /// [Bit 30:24] Log2 (cache row bytes).
> + ///
> + UINT32 Linesize_log2 : 7;
> + ///
> + /// [Bit 31] Reserved.
> + ///
> + UINT32 Reserved : 1;
> + } Bits;
> + ///
> + /// All bit fields as a 32-bit value
> + ///
> + UINT32 Uint32;
> +} CPUCFG_CACHE_INFO_DATA;
> +#endif
> diff --git a/MdePkg/Library/BaseLib/BaseLib.inf
> b/MdePkg/Library/BaseLib/BaseLib.inf
> index a18fe5efb4..a427aa9359 100644
> --- a/MdePkg/Library/BaseLib/BaseLib.inf
> +++ b/MdePkg/Library/BaseLib/BaseLib.inf
> @@ -420,6 +420,7 @@
> LoongArch64/SetJumpLongJump.S | GCC
> LoongArch64/SwitchStack.S | GCC
> LoongArch64/ExceptionBase.S | GCC
> + LoongArch64/Cpucfg.S | GCC
>
> [Packages]
> MdePkg/MdePkg.dec
> diff --git a/MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S
> b/MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S
> new file mode 100644
> index 0000000000..7ed49146b4
> --- /dev/null
> +++ b/MdePkg/Library/BaseLib/LoongArch64/Cpucfg.S
> @@ -0,0 +1,26 @@
> +#--------------------------------------------------------------------
> ----------
> +#
> +# AsmCpucfg for LoongArch
> +#
> +# Copyright (c) 2023, Loongson Technology Corporation Limited. All
> rights reserved.<BR>
> +#
> +# SPDX-License-Identifier: BSD-2-Clause-Patent
> +#
> +#--------------------------------------------------------------------
> ----------
> +
> +ASM_GLOBAL ASM_PFX(AsmCpucfg)
> +
> +#/**
> +# Read CPUCFG register.
> +#
> +# @param a0 Specifies the register number of the CPUCFG to read
> the data.
> +# @param a1 Pointer to the variable used to store the CPUCFG
> register value.
> +#
> +#**/
> +
> +ASM_PFX(AsmCpucfg):
> + cpucfg $t0, $a0
> + stptr.d $t0, $a1, 0
> +
> + jirl $zero, $ra, 0
> + .end
> diff --git a/MdePkg/MdePkg.ci.yaml b/MdePkg/MdePkg.ci.yaml
> index 1d3d8327b1..f2d81af080 100644
> --- a/MdePkg/MdePkg.ci.yaml
> +++ b/MdePkg/MdePkg.ci.yaml
> @@ -80,7 +80,8 @@
> "Include/Register/Amd/SmramSaveStateMap.h",
>
> "Test/UnitTest/Library/DevicePathLib/TestDevicePathLib.c",
>
> "Test/UnitTest/Library/DevicePathLib/TestDevicePathLib.h",
> -
> "Test/UnitTest/Library/DevicePathLib/TestDevicePathStringConversions.c
> "
> +
> "Test/UnitTest/Library/DevicePathLib/TestDevicePathStringConversions.c
> ",
> + "Include/Register/LoongArch64/Cpucfg.h"
> ]
> },
> ## options defined ci/Plugin/CompilerPlugin
> --
> 2.27.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#110791): https://edk2.groups.io/g/devel/message/110791
Mute This Topic: https://groups.io/mt/102413851/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2023-11-07 3:31 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 3:25 [edk2-devel] [PATCH v2 00/30] Enable LoongArch virtual machine in edk2 Chao Li
2023-11-06 3:26 ` [edk2-devel] [PATCH v2 01/30] MdePkg: Add the header file named Csr.h for LoongArch64 Chao Li
2023-11-07 3:30 ` Michael D Kinney
2023-11-06 3:26 ` [edk2-devel] [PATCH v2 02/30] MdePkg: Add LoongArch64 FPU function set into BaseCpuLib Chao Li
2023-11-07 3:31 ` Michael D Kinney
2023-11-06 3:26 ` [edk2-devel] [PATCH v2 03/30] MdePkg: Add LoongArch64 exception function set into BaseLib Chao Li
2023-11-07 3:31 ` Michael D Kinney
2023-11-06 3:26 ` [edk2-devel] [PATCH v2 04/30] MdePkg: Add LoongArch64 local interrupt " Chao Li
2023-11-07 3:31 ` Michael D Kinney
2023-11-06 3:27 ` [edk2-devel] [PATCH v2 05/30] MdePkg: Add LoongArch Cpucfg function Chao Li
2023-11-07 3:31 ` Michael D Kinney [this message]
2023-11-06 3:27 ` [edk2-devel] [PATCH v2 06/30] MdePkg: Add read stable counter operation for LoongArch Chao Li
2023-11-07 3:31 ` Michael D Kinney
2023-11-06 3:27 ` [edk2-devel] [PATCH v2 07/30] MdePkg: Add CSR " Chao Li
2023-11-07 3:31 ` Michael D Kinney
2023-11-06 3:27 ` [edk2-devel] [PATCH v2 08/30] MdePkg: Add IOCSR " Chao Li
2023-11-07 3:32 ` Michael D Kinney
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 09/30] UefiCpuPkg: Add LoongArch64 CPU Timer library Chao Li
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 10/30] UefiCpuPkg: Add CPU exception library for LoongArch Chao Li
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 11/30] UefiCpuPkg: Add CpuMmuLib.h to UefiCpuPkg Chao Li
2023-11-09 1:17 ` Andrei Warkentin
2023-11-14 2:00 ` Chao Li
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 12/30] UefiCpuPkg: Add LoongArch64CpuMmuLib " Chao Li
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 13/30] UefiCpuPkg: Add multiprocessor library for LoongArch64 Chao Li
2023-11-06 3:28 ` [edk2-devel] [PATCH v2 14/30] UefiCpuPkg: Add CpuDxe driver " Chao Li
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 15/30] EmbeddedPkg: Add PcdPrePiCpuIoSize width for LOONGARCH64 Chao Li
2023-11-15 18:55 ` Leif Lindholm
2023-11-16 8:15 ` Pedro Falcato
2023-11-16 9:17 ` Chao Li
2023-11-16 11:21 ` Leif Lindholm
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 16/30] ArmVirtPkg: Move PCD of FDT base address and FDT padding to OvmfPkg Chao Li
2023-11-07 9:37 ` Gerd Hoffmann
2023-11-13 11:46 ` Sami Mujawar
2023-11-14 1:41 ` Chao Li
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 17/30] OvmfPkg/LoongArchVirt: Add PciCpuIo2Dxe module Chao Li
2023-11-07 9:42 ` Gerd Hoffmann
2023-11-07 10:03 ` Chao Li
2023-11-08 23:11 ` Sunil V L
2023-11-10 3:31 ` Chao Li
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 18/30] OvmfPkg/LoongArchVirt: Add stable timer driver Chao Li
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 19/30] OvmfPkg/LoongArchVirt: Add a NULL library named CollectApResouceLibNull Chao Li
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 20/30] OvmfPkg/LoongArchVirt: Add serial port library Chao Li
2023-11-07 9:47 ` Gerd Hoffmann
2023-11-07 10:12 ` Chao Li
2023-11-08 22:21 ` Laszlo Ersek
2023-11-10 4:51 ` Chao Li
2023-11-13 10:45 ` Laszlo Ersek
2023-11-06 3:29 ` [edk2-devel] [PATCH v2 21/30] OvmfPkg/LoongArchVirt: Add real time clock library Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 22/30] OvmfPkg/LoongArchVirt: Add NorFlashQemuLib Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 23/30] OvmfPkg/LoongArchVirt: Add PeiServiceTablePointerLib Chao Li
2023-11-08 22:22 ` Laszlo Ersek
2023-11-10 6:44 ` Chao Li
2023-11-13 11:02 ` Laszlo Ersek
2023-11-14 2:08 ` Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 24/30] OvmfPkg/LoongArchVirt: Add platform boot manager library Chao Li
2023-11-08 22:24 ` Laszlo Ersek
2023-11-10 7:09 ` Chao Li
2023-11-10 9:46 ` Gerd Hoffmann
2023-11-13 11:08 ` Laszlo Ersek
2023-11-15 3:21 ` Chao Li
2023-11-15 12:52 ` Laszlo Ersek
2023-11-16 7:09 ` Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 25/30] OvmfPkg/LoongArchVirt: Add FdtQemuFwCfgLib Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 26/30] OvmfPkg/LoongArchVirt: Add reset system library Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 27/30] OvmfPkg/LoongArchVirt: Support SEC phase Chao Li
2023-11-06 3:30 ` [edk2-devel] [PATCH v2 28/30] OvmfPkg/LoongArchVirt: Support PEI phase Chao Li
2023-11-06 3:31 ` [edk2-devel] [PATCH v2 29/30] OvmfPkg/LoongArchVirt: Add build file Chao Li
2023-11-06 3:31 ` [edk2-devel] [PATCH v2 30/30] OvmfPkg/LoongArchVirt: Add self introduction file Chao Li
[not found] ` <1794EAF40590BB23.26468@groups.io>
2023-11-07 6:41 ` [edk2-devel] [PATCH v2 09/30] UefiCpuPkg: Add LoongArch64 CPU Timer library Chao Li
[not found] ` <1794EB01154A1CFD.12603@groups.io>
2023-11-07 8:40 ` [edk2-devel] [PATCH v2 15/30] EmbeddedPkg: Add PcdPrePiCpuIoSize width for LOONGARCH64 Chao Li
[not found] ` <1794EB0445E96DCB.26468@groups.io>
2023-11-07 8:41 ` [edk2-devel] [PATCH v2 16/30] ArmVirtPkg: Move PCD of FDT base address and FDT padding to OvmfPkg Chao Li
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=CO1PR11MB4929FD829009DCA712E3419FD2A9A@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