From patchwork Thu Aug 23 16:07:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144940 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp313194ljw; Thu, 23 Aug 2018 09:08:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw1XX2RWlUQcw5bQ/Zk9aE4FhA4NS3FLEfUShb6a/J+biQoWw6wq2mgZRxzCU8YhFn8rlWO X-Received: by 2002:a63:b914:: with SMTP id z20-v6mr28828348pge.396.1535040486261; Thu, 23 Aug 2018 09:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040486; cv=none; d=google.com; s=arc-20160816; b=I6X4UfX0rjs2bfrH8evgvqOhkRe8FghcDOOLy2e9Cbb7P6AyJQLFMXYuuRFtJ+Mh8J YXTBUyvoJLSbDY+JgVm7bzNlYpLwmAJqG5zb85/myGW5o/zs07AHk9VNDrPeuZ2gMBL2 XoyJiJhtto49M1iW0ULM2XrOmYWBPUiym7TjUPMfJ+e8nueFau5nJlClXb5/xj/Qc0ui +fk8rvoSFQy8ycV79JPcaMKNTHNUKN0KL9IMYBAm+np+Q6svA3v6i0ETCej95ihwfbGt F3nRFSXtpYSfL1OaykZ0WwvcRVfI6tezXxFslUhjICaZTFzaXBlzdTpCVB5ijEIKLyu/ GYPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=8HFvvLqHHqLpPZfOsNJ4/wx6BPvEdhQbbKuWBbWsR+Q=; b=fV1d1eC0l0LmRsT/AXfVTex0XcE/xAZ2o+BypoqbEz2zdLSGjItH3/2+6Fqr2ZcIFG GosyjlT5J9dtFFfJHgStnTa9OO8MJM6/4iyz4F8Q1yXv+mqjFw4BIOedez/Ka9iu9Lc6 jvaCj19KeWgjA45oDemb+qTupYuoeojljiLXqxlhM2C3pQwRJ0+kPA4ZXlCfnfqvaR4w jVsJ3OpIE9kMPc9pCiraZSwPa5BBlFWb3IWCkFqldFe0+i87Onl2F9gqCL/mYuWJxRjX QiNweEna8P9ESayJSG4expX88trwB+dOU/JnAPpcF6cmoCLvbTn/JEIC4ocWn3YLPu1c jiEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=J9t0Lkgm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id s136-v6si135789pfs.255.2018.08.23.09.08.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 09:08:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=J9t0Lkgm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DED4521103DC4; Thu, 23 Aug 2018 09:08:05 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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-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 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: [edk2] [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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, Sun Yuanchen , guoheyi@huawei.com, huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.18.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 //