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 6FFF3211C5729 for ; Fri, 1 Feb 2019 05:35:44 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id q1so3229273pfi.5 for ; Fri, 01 Feb 2019 05:35:44 -0800 (PST) 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=efkrYmvNL9impODkLFY+mFi4YZBb/zHTZx4SdUxKnLA=; b=fGeftrnbZ2WQN88iEK0V2SrNHzMrWwTCO4dnDUR/htbdsabB7auphGmSmHGaK5V8Ki aGhMf+YkvrTUeQ92rW1ob1m7cd4Z6Zk93f69A9cmaBwaDB7xRqLeN/VoEfYiB8Wzz1Nr LVZmkXFQYxEIbZ+Ex6J4dTeDcC8MgExUuFF+Y= 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=efkrYmvNL9impODkLFY+mFi4YZBb/zHTZx4SdUxKnLA=; b=UWMO1p5bVWvvUnODY7ZI1jo+fX70xpeSx46Wsguz/s1k7FRaHf7u7KtzPkPmRtn0+N vjsiWyODhFpYZMCaUeJM2TpSyGkCnMZ7Rk/77ahuyXE9ORR8r/U93oHizhNArViSEo1g Z6nI9+HECPfs+zYMBP+xP7gT4kcB6C932dRScdcI0fglc7i0GWCX1AGUZTpA0SHenENI YxzJu0Kqu7BVwZ+JhVsPxLHRcpg561ZzqqAvOcM+FCfzy+Vkufx6Pv6t/o+l8SGGom6d OF2LVmDo28Bh/NIJxsmUeuJN/N9R0cE0afwA+crDBUg2PmQdupIp+u2q2eIta819yf1K VaqA== X-Gm-Message-State: AJcUuke8bkYvyusy1iDLjqjviNe7oNpw9OBaShW8F/y2p/uvpY7esWf8 vsny43ZiJiXMRpsELmkiQbjyFg== X-Google-Smtp-Source: ALg8bN77JXjWlfCLZjM4ISTP6jNbNJpXu49sMnC75lxYuqN1w8VnKhZlmR5E1MLeqsCuQq8UwGyhIg== X-Received: by 2002:a63:2054:: with SMTP id r20mr35296700pgm.328.1549028143628; Fri, 01 Feb 2019 05:35:43 -0800 (PST) Received: from localhost.localdomain ([114.119.4.74]) by smtp.gmail.com with ESMTPSA id s21sm11134073pfk.133.2019.02.01.05.35.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Feb 2019 05:35:43 -0800 (PST) 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, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, zhangfeng56@huawei.com, Ming Huang Date: Fri, 1 Feb 2019 21:34:28 +0800 Message-Id: <20190201133436.10500-9-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190201133436.10500-1-ming.huang@linaro.org> References: <20190201133436.10500-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v1 08/16] Hisilicon/D06: Change HCCS speed from 30G to 26G 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: Fri, 01 Feb 2019 13:35:44 -0000 Follow chip team suggestion to change HCCS(Huawei Cache-Coherent System) speed from 30G to 26G, this modification can avoid some unstable stress issue. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Include/Library/OemMiscLib.h | 10 ++++++++++ Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/Silicon/Hisilicon/Include/Library/OemMiscLib.h b/Silicon/Hisilicon/Include/Library/OemMiscLib.h index dfac87d635d9..3c0cd0319122 100644 --- a/Silicon/Hisilicon/Include/Library/OemMiscLib.h +++ b/Silicon/Hisilicon/Include/Library/OemMiscLib.h @@ -22,6 +22,11 @@ #include #include +#define HCCS_PLL_VALUE_3000 0x52240781 +#define HCCS_PLL_VALUE_2600 0x52240681 +#define HCCS_PLL_VALUE_2800 0x52240701 + + #define PCIEDEVICE_REPORT_MAX 8 #define MAX_PROCESSOR_SOCKETS MAX_SOCKET #define MAX_MEMORY_CHANNELS MAX_CHANNEL @@ -55,4 +60,9 @@ extern EFI_STRING_ID gDimmToDevLocator[MAX_SOCKET][MAX_CHANNEL][MAX_DIMM]; EFI_HII_HANDLE EFIAPI OemGetPackages (); UINTN OemGetCpuFreq (UINT8 Socket); +UINTN +OemGetHccsFreq ( + VOID + ); + #endif diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c index 8f2ac308c7b9..83e53cfeb5dd 100644 --- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c +++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c @@ -223,3 +223,11 @@ UINTN OemGetCpuFreq (UINT8 Socket) } } +UINTN +OemGetHccsFreq ( + VOID + ) +{ + return HCCS_PLL_VALUE_2600; +} + -- 2.9.5