diff mbox series

[edk2,edk2-platforms,v4,02/31] Silicon/Hisilicon/D0x: Move RAS macro to PlatformArch.h

Message ID 20180823160743.45638-3-ming.huang@linaro.org
State Superseded
Headers show
Series Upload for D06 platform | expand

Commit Message

Ming Huang Aug. 23, 2018, 4:07 p.m. UTC
From: Sun Yuanchen <sunyuanchen@huawei.com>


Move some RAS macros definition to PlatformArch.h for
unifying D0x

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Sun Yuanchen <sunyuanchen@huawei.com>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

---
 Silicon/Hisilicon/Hi1610/Include/PlatformArch.h |  9 +++++++--
 Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 12 ++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

-- 
2.18.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Aug. 30, 2018, 6:29 p.m. UTC | #1
On Fri, Aug 24, 2018 at 12:07:14AM +0800, Ming Huang wrote:
> From: Sun Yuanchen <sunyuanchen@huawei.com>

> 

> Move some RAS macros definition to PlatformArch.h for

> unifying D0x

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Sun Yuanchen <sunyuanchen@huawei.com>


This still has incorrect sign-off in v4. Please address.

/
    Leif

> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

> ---

>  Silicon/Hisilicon/Hi1610/Include/PlatformArch.h |  9 +++++++--

>  Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 12 ++++++++++++

>  2 files changed, 19 insertions(+), 2 deletions(-)

> 

> diff --git a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h

> index 2ff076901e..f39ae0748c 100644

> --- a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h

> +++ b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h

> @@ -1,7 +1,7 @@

>  /** @file

>  *

> -*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.

> -*  Copyright (c) 2015, Linaro Limited. All rights reserved.

> +*  Copyright (c) 2015 - 2018, Hisilicon Limited. All rights reserved.

> +*  Copyright (c) 2015 - 2018, Linaro Limited. All rights reserved.

>  *

>  *  This program and the accompanying materials

>  *  are licensed and made available under the terms and conditions of the BSD License

> @@ -32,6 +32,11 @@

>  

>  #define S1_BASE               0x40000000000

>  

> +#define RASC_BASE                (0x5000)

> +/* configuration register for Rank statistical information */

> +#define RASC_CFG_INFOIDX_REG     (RASC_BASE + 0x5C)

> +/* configuration register for Sparing level */

> +#define RASC_CFG_SPLVL_REG       (RASC_BASE + 0xB8)

>  

>  //

>  // ACPI table information used to initialize tables.

> diff --git a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h

> index 60a60593be..e02e4bdabd 100644

> --- a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h

> +++ b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h

> @@ -30,6 +30,18 @@

>  // Max NUMA node number for each node type

>  #define MAX_NUM_PER_TYPE 8

>  

> +#define RASC_BASE                (0x5000)

> +/* configuration register for Rank statistical information */

> +#define RASC_CFG_INFOIDX_REG     (RASC_BASE + 0x5C)

> +/* configuration register for Sparing level */

> +#define RASC_CFG_SPLVL_REG       (RASC_BASE + 0xB8)

> +

> +// for acpi

> +#define NODE_IN_SOCKET                                  2

> +#define CORE_NUM_PER_SOCKET                             32

> +#define EFI_ACPI_MEMORY_AFFINITY_STRUCTURE_COUNT        10

> +#define EFI_ACPI_6_2_ITS_AFFINITY_STRUCTURE_COUNT       8

> +

>  #define S1_BASE               0x40000000000

>  

>  //

> -- 

> 2.18.0

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h
index 2ff076901e..f39ae0748c 100644
--- a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h
+++ b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h
@@ -1,7 +1,7 @@ 
 /** @file
 *
-*  Copyright (c) 2015, Hisilicon Limited. All rights reserved.
-*  Copyright (c) 2015, Linaro Limited. All rights reserved.
+*  Copyright (c) 2015 - 2018, Hisilicon Limited. All rights reserved.
+*  Copyright (c) 2015 - 2018, Linaro Limited. All rights reserved.
 *
 *  This program and the accompanying materials
 *  are licensed and made available under the terms and conditions of the BSD License
@@ -32,6 +32,11 @@ 
 
 #define S1_BASE               0x40000000000
 
+#define RASC_BASE                (0x5000)
+/* configuration register for Rank statistical information */
+#define RASC_CFG_INFOIDX_REG     (RASC_BASE + 0x5C)
+/* configuration register for Sparing level */
+#define RASC_CFG_SPLVL_REG       (RASC_BASE + 0xB8)
 
 //
 // ACPI table information used to initialize tables.
diff --git a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h
index 60a60593be..e02e4bdabd 100644
--- a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h
+++ b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h
@@ -30,6 +30,18 @@ 
 // Max NUMA node number for each node type
 #define MAX_NUM_PER_TYPE 8
 
+#define RASC_BASE                (0x5000)
+/* configuration register for Rank statistical information */
+#define RASC_CFG_INFOIDX_REG     (RASC_BASE + 0x5C)
+/* configuration register for Sparing level */
+#define RASC_CFG_SPLVL_REG       (RASC_BASE + 0xB8)
+
+// for acpi
+#define NODE_IN_SOCKET                                  2
+#define CORE_NUM_PER_SOCKET                             32
+#define EFI_ACPI_MEMORY_AFFINITY_STRUCTURE_COUNT        10
+#define EFI_ACPI_6_2_ITS_AFFINITY_STRUCTURE_COUNT       8
+
 #define S1_BASE               0x40000000000
 
 //