From patchwork Tue Jul 24 07:09:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 142725 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6936337ljj; Tue, 24 Jul 2018 00:18:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfe/Flb8VoYyTODmQKK1Ty64DAkB4tF0/nh9TCuHCGGgE1H3tJ42qvFXlCq5IbG1VADUMS4 X-Received: by 2002:a63:5624:: with SMTP id k36-v6mr15194179pgb.146.1532416725045; Tue, 24 Jul 2018 00:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532416725; cv=none; d=google.com; s=arc-20160816; b=YIA83vbxnubRiADxjoaZgX9e3EMmMtNfEPIzO+hREwGRMVdEV8gP8R/lfT05dhctKV O2vMAeyB3xwD5P6mK+dkt6q4KErfH5eiwVgXY/Pw3xb5AEpIrf3pQ7/RCkKDN7aIryL5 /FKl09bQrmdz7OdHouG6Tuo1EYjRidaVPtbA/HSyATgH18qLmnWLE4HPyetaA9fzj2dH U67iCvTAillk6X2jViJZN9jP1h7VovjgSu1Qv6qz9Dn9WB10N0D/Ou8Hwpqbnet8LUSt K15CaQeCPEhlFnXATfj/tt5r6dEPgQ3b8rqyaZJAPZvGtw2dnUBadMLNWxu3owwEiA7g 14sw== 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=0M9ipqZcU6Xs+4xsTRqYmi90S8FeP8dS2qMG84ii1r4=; b=aepUwfbwFWk0YLw16SvtdAC8RnqVJMTlaRcTNNWJsQZd32H+iuoXvEPQMhYu3VQoW4 tfE1XbTUF0F8fGXV/1qR8sM1/HzYInIkqrcHu6UI5qbJlpI0IBFecPMhgvPKCLfsXu6c 0RlfaijwTa1OQTlUNnrUW25tK5dpctzKy29GBESDSZJMBeH811yGVBeMTbiCssu24C0l 9iCg8fkaZc0bwTm0vcqKzMwT3a1S8ykqh0a6BDIDEGjTjsAZqUHiIB6haz1tj2+En55d nP1cB4XzrL8qoRfyrS5yfonv2Wati4jd2vNY+C506kRB2umQDfNR3HiCcV/W+brcLj+D XYxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hcz8SD9u; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id e6-v6si10233728pls.419.2018.07.24.00.18.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 00:18:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hcz8SD9u; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 A6316210C1251; Tue, 24 Jul 2018 00:18:44 -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::544; helo=mail-pg1-x544.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (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 B6D59210C1248 for ; Tue, 24 Jul 2018 00:18:43 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id z8-v6so2221873pgu.8 for ; Tue, 24 Jul 2018 00:18:43 -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=/PydE/hokaVBX7J83BfQ9zOrYJ7/2iEiFA9A0mwL8vc=; b=Hcz8SD9uqFAzR/YES0oIK9QI7mL0aZmJKlmsUgFK9n/FMFe7xtsDnsyobgPsykBVZB SD73h3SjvVQSmQb7408maxL1EtzwFc0q7Dr5JKTkcQI6CYlnedl0tHoVOb+pbocdKsnX Mrcfvi+OzQxej0Mb4HWVgRLssDLu0JNQ0kjA0= 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=/PydE/hokaVBX7J83BfQ9zOrYJ7/2iEiFA9A0mwL8vc=; b=g5pZHyKYPv147BtA/bcbKl7WyY8yCHffxqrlNzaNZEAFbGNEi/SxvEypi5bMAaol6+ iTMuEGqmEBy7rk2AO9VvRBf5ND/QPQ1aYW0W9jogEHLTTQzp6f33dLKEweT7apNh0gpl AD5EgN6Id9I4wcJyUHwCYxdYYaMpczlDDwXykdnGblpze68W/ICTIBh8J+au1bBXHyy0 24GtydbldG4oD9artul5t9G8paXkrz1QOBYptAVVCQFWISBMEFfp0o4+PMymb9Ko89GJ Ls1qfH5dKHaZnMoJzyz451MapyjVdUzTpZGi7/OfOXPtGTopw806KjdfdhcjOmNTb8zM Jyiw== X-Gm-Message-State: AOUpUlGWnPwGtFmYs1iBlZlJRmNihaYcIfu2y84HuGbhtdR1caY+nhtz zCbwlD+1rIGXx31i70DsY0fd5g== X-Received: by 2002:a63:f449:: with SMTP id p9-v6mr15570994pgk.213.1532416723507; Tue, 24 Jul 2018 00:18:43 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id t14-v6sm11449788pgu.0.2018.07.24.00.18.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jul 2018 00:18:42 -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: Tue, 24 Jul 2018 15:09:05 +0800 Message-Id: <20180724070922.63362-22-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180724070922.63362-1-ming.huang@linaro.org> References: <20180724070922.63362-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v1 21/38] Silicon/Hisilicon/D0x: Move macro definition to PlatformArch.h X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 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 , huangdaode@hisilicon.com, guoheyi@huawei.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Sun Yuanchen Unify MemorySubClassDxe by Moving macro definition to PlatformArch.h Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h | 2 -- Silicon/Hisilicon/Hi1610/Include/PlatformArch.h | 1 + Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 1 + Silicon/Hisilicon/Hi1620/Include/PlatformArch.h | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h index c35ce39d61..0c201b4870 100644 --- a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h +++ b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h @@ -44,8 +44,6 @@ extern UINT8 MemorySubClassStrings[]; -#define MAX_DIMM_SIZE 32 // In GB - struct SPD_JEDEC_MANUFACTURER { UINT8 MfgIdLSB; diff --git a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h index 03e96cfd31..4843b60536 100644 --- a/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h +++ b/Silicon/Hisilicon/Hi1610/Include/PlatformArch.h @@ -26,6 +26,7 @@ #define MAX_DIMM 3 #define MAX_RANK_CH 12 #define MAX_RANK_DIMM 4 +#define MAX_DIMM_SIZE 32 // In GB // Max NUMA node number for each node type #define MAX_NUM_PER_TYPE 8 diff --git a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h index 14e9b483af..49618f6559 100644 --- a/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h +++ b/Silicon/Hisilicon/Hi1616/Include/PlatformArch.h @@ -26,6 +26,7 @@ #define MAX_DIMM 3 #define MAX_RANK_CH 12 #define MAX_RANK_DIMM 4 +#define MAX_DIMM_SIZE 32 // In GB // Max NUMA node number for each node type #define MAX_NUM_PER_TYPE 8 diff --git a/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h b/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h index ac90e9dfb5..2626751a0d 100644 --- a/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h +++ b/Silicon/Hisilicon/Hi1620/Include/PlatformArch.h @@ -26,6 +26,7 @@ #define MAX_DIMM 2 #define MAX_RANK_CH 8 #define MAX_RANK_DIMM 4 +#define MAX_DIMM_SIZE 256 // In GB // Max NUMA node number for each node type #define MAX_NUM_PER_TYPE 8