From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 637A9210FC0CD for ; Thu, 23 Aug 2018 09:08:03 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id j8-v6so2979227pff.6 for ; Thu, 23 Aug 2018 09:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DML+82awJnckgEjBX1bO/S+b7L4WnjoGEKv2KYpjX2o=; b=J9t0LkgmxsNTWb56sJ3m+3PvQjTjAJocwS30HQZ34Gp4+hPH/mqCkW0ujQ3WvkF+zm 7aeZaMCyotXvW5FXov7Vfnef6L7g3M/DWDTVu3yezZompipajOfjUODs00zQ/Ezc6Bt6 vNWk8lGYu7/0ufBfnxnFuru5lv1eHtGxqmPb8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DML+82awJnckgEjBX1bO/S+b7L4WnjoGEKv2KYpjX2o=; b=fssLhOAHmXOzksPun7XdpQ7IGGIE+Ki++BhZf66IGXJCe2BinTc5jxOVprJvM1H9TE SKtXYYoVL9uZaMN+XRykAIAB+JeTrTxXmtdQ1i7CAL95FjwAKY/voS0RjQB1yCzII5L4 f/r1bMxxoAtkEGN2kNnyYA6Dub1Y+9Oai6lDtkpQsxKzLt3VPJF/Sp04ByodDmqjJ0Q7 iODeK0jipPq9qNhQq3dyuuVTNcAu5ekV9fgmpMB+/L2TbgEzeq8UpRBq4rcSAi85teU0 AUv/dLPwvOBQKFIagvaJH38usd3dg+vEae/MA5aId/4xOoxbF/97lP26AmgGgoi4/9cU vy6Q== X-Gm-Message-State: AOUpUlFpZ8wus4VzoODNi/MME5brS7+YSzvKE7UzNr6zstjt0AUFhROy taLD+LO2jdUHfbb/V3adS2g0uQ== X-Google-Smtp-Source: AA+uWPwe6dtD9U5yJ7PfHTud1UDheubgs0/EC9RcYAuvYfaYmx2eFv84stUwQBhLMIJivJTCtoPSjg== X-Received: by 2002:a63:2744:: with SMTP id n65-v6mr26707275pgn.29.1535040483312; Thu, 23 Aug 2018 09:08:03 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id d19-v6sm5788083pgv.61.2018.08.23.09.07.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Aug 2018 09:08:02 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, Sun Yuanchen Date: Fri, 24 Aug 2018 00:07:14 +0800 Message-Id: <20180823160743.45638-3-ming.huang@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823160743.45638-1-ming.huang@linaro.org> References: <20180823160743.45638-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v4 02/31] Silicon/Hisilicon/D0x: Move RAS macro to PlatformArch.h X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 16:08:04 -0000 From: Sun Yuanchen Move some RAS macros definition to PlatformArch.h for unifying D0x Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Reviewed-by: Leif Lindholm --- 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