From patchwork Tue Aug 14 08:08:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144112 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4048118ljj; Tue, 14 Aug 2018 01:09:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyNAze0/OQum2BZs17llNMf12uvORhJt9b01b93vteNPCws4AmDb12QLIRgVmtLVNmVX1aA X-Received: by 2002:a62:15c8:: with SMTP id 191-v6mr22014068pfv.194.1534234183243; Tue, 14 Aug 2018 01:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234183; cv=none; d=google.com; s=arc-20160816; b=yPLrlUAh73BzPla3qIgebBWUPHixbkcTFiq5ZxCZWbd8XqwhaqWgyAn6B93I1fVv1+ vRJNay1B18KRmfGEcvmBc0qE6j4JBpCjmR2wJcrEoQz9hBltTtH25FuXDgH2Ovu7PMUA wPdN1n+mA4Yz802sxyXCrc9HsF79WW1+96Y3pg+RCC7N6XYtuEeoMl+QBaWyFul0tUSU OooHd2LuM89xlUgwAhNfNFDJdIgL3hXMbuIRUCIyd3rr5kxjzBM3tGVfUOCl/U3391QU zxbvCrD2kgVN9MdALM1hCgOs4I6kgD0m7EczHe7ApDfvmvK2DUbRloBLigYZcccHNetb ultQ== 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=3VlH1yLWrDnYGx2ovuR/nQydGTl1PsT98NZWTo0S6qQ=; b=pTRxsldWGm9RwUXUi10hapb38IhtN4eIIBull1l4RJ4I8TszxTKv3DM88hEDgjKCfk In4itVV0+VmvZBZembdBy8FFoywG5lS37uvHBiZMwUsKYrpxmmw+OYaQqs4yFpt85PgP WAUuNAOdLzy0hyJvvWkaNScTUeTUMcnJCQdCRxEdh/Y6ww8EdLSr0SX/OWKhPiA4qS6G Y/2iSLc605u3TTW1dtr9ICKi/W6thNIMipSNT1DqpNEN3zHbd2KWrCfg6qemThlY5hJt Ljs2MWemuDsP3R41YUM/p5zE8vVczPu+xdfc9u482fiDRMu1m8j9oCLYLG20HXg6c2rj bhSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cf8jEJTU; 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 u68-v6si20388578pgb.191.2018.08.14.01.09.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:09:43 -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=cf8jEJTU; 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 016BA210F1553; Tue, 14 Aug 2018 01:09:41 -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::541; helo=mail-pg1-x541.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (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 4438721959CB2 for ; Tue, 14 Aug 2018 01:09:39 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id x5-v6so8783649pgp.7 for ; Tue, 14 Aug 2018 01:09:39 -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=2DjR8fecfKAqf+S8I0AQcgsQhw6O6eE7sDpXRWW0Fgk=; b=cf8jEJTUqTB/TrZ3/HnZyAKZo0zQJ4w/loUulL79M4vEiKNlfQaGR8+gboP4H4E4JS ezj5sMTixmYhDyDy+ZlaSl/3KYbYo5CR5hDBT7rDp9I3pMLJ1t3kT9qkDvc32VwYAmv6 nleS60b/OlK0z6aZbm4OjpJ1oT1XoKXdbRt/o= 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=2DjR8fecfKAqf+S8I0AQcgsQhw6O6eE7sDpXRWW0Fgk=; b=jJn8w4DaZRQgqO177yl/W9ivopsC3sM9bfx7WS0h2vO65IjegSqraskUPOjOu3pR31 MXsJTmPdKHYM3GhvZGSfyZ+gBedEQX2L/GM4gmB0S5pBsAN2tcwdBWbIWtRxoKil+o80 SvFszo4F/XO5xIqfpdz3A4plyEBGOZjFjTxXK0v2DjAanTwelSNK/C+XtFeW0BTlnikG pXxR4lpNIqwRfKaczzvmx4Rw5sniTKqfHQMUBc3pf8TMFEaRHDIFlAELKTBCRpLWPgrq 0/RZV8UaqjS4XfsqJxbIcSe+ctWfv250ZGfv/tifwpv4vK11PNSgLlvStLkMocIsZO+A +84g== X-Gm-Message-State: AOUpUlGGUCQzNvZ1TMaUuHagBXz+g+028FNoCrij+w4XKxvZlUvrflEH cR76IFLD3wrICISeeObRlqH9mQ== X-Received: by 2002:a62:d1b:: with SMTP id v27-v6mr22523391pfi.87.1534234178926; Tue, 14 Aug 2018 01:09:38 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:09:38 -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, 14 Aug 2018 16:08:24 +0800 Message-Id: <20180814080903.50466-5-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 04/43] Silicon/Hisilicon/D0x: Move dimm size 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 , 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 Unify MemorySubClassDxe by Moving dimm size macro definition to PlatformArch.h Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sun Yuanchen --- Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClass.h | 2 -- Silicon/Hisilicon/Hi1610/Include/PlatformArch.h | 1 + Silicon/Hisilicon/Hi1616/Include/PlatformArch.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 8e5913447c..2ff076901e 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 24167d1633..60a60593be 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