From patchwork Fri Feb 1 13:34:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 157217 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp437613jaa; Fri, 1 Feb 2019 05:35:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IaYGM8sOJmdmBF5UnW3hZkKmVLY2p0WqQSw7k08sWJIN25G3IV6TdLuBD1CBw/NjNxkZwym X-Received: by 2002:a62:5007:: with SMTP id e7mr27034771pfb.92.1549028145678; Fri, 01 Feb 2019 05:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549028145; cv=none; d=google.com; s=arc-20160816; b=iAsNDzgOKfvNIRunTV2ZZFfB0ot1b83Jorek7iuykEcK0q87MH+QoWA2RoCTX2AZZn 6AqKGnhPIygRVxMCVIenoljxQ/w3gPerXTLzZoVL7bIWE2WB+muRs9xN0ZqWAlEIZ/YJ HxS9MUb5Ejlv8czWGAv4BI2eE/zumYlDEP1FfDfVcApYNSxKO/8Td77q72wc4u6fbgER 3lNiRko83EduQzUKw2Xo6XvKJ9H8r82ZyqPwS5/XTfXbRhajrmcH0r6dEU+kX60QlUpH pvXYVqL8uCZ93vYdtphDI3ZgHv9xo8nCrrz8UtU27/wvEt7+ZLx2C1dfjzfjxY7fNPK5 pELQ== 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; bh=nEyGeFX0hT0NOJ2Sok8pnkc7RlzstRLztKxUL88AuHI=; b=V0bdx7wzgBv9NhoZGVGgCsNg6QSCgjzXO/9y2tKBTdOJPRsf2/9tDoI0FUFJ10lrr5 WeUG0cy42OKp8y3GK6pR4GZ7sCzoS/m9SVulUIh8q9Ddeu65E92avEWybG1RyH+0LvsK w2F7SR0j0GDaaRGhZTiIBZr7Fybub50+oLNtk9EBpMCvm3oj0ikzFPEWovF7ic+vx/1a 24Cu7yBbaZgPs9QHiLPZ+v0sd3bzQPthzpy9bglMnnZDbkTjGFH8e1aYZXbWELTIOGwR WBj1EX+msdgRgS6QAas1/NmuR/Y40jHhphVz+6zJp3K8oLQmQJnY92gpygdcWuR/CFu3 Mklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fGeftrnb; 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 z31si7535877plb.402.2019.02.01.05.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 05:35:45 -0800 (PST) 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=fGeftrnb; 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 35A01211C6083; Fri, 1 Feb 2019 05:35:45 -0800 (PST) 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 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-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 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: [edk2] [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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.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" 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(+) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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; +} +