From patchwork Wed Mar 20 08:08:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 160642 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp519192jad; Wed, 20 Mar 2019 01:09:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUcmIdzGbsjy8CcvlQRq1gKM8tTxLt00IzbGv+JEMoHxBS09MFxUDerlmPt4W1KkV3GZ6G X-Received: by 2002:a65:62c5:: with SMTP id m5mr26835041pgv.77.1553069387026; Wed, 20 Mar 2019 01:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553069387; cv=none; d=google.com; s=arc-20160816; b=GvyEpuPjjkvCVwMW5WBl0kmb/5lX4lSdaAERCzcm3NFGsGDK87/p7VJeCzA2w6nMs6 T0uFcIB+CYM9W+/6xRcySVXwpMrlXuAd+Vi2IhyMB4k2m293TbHE9qIOYmEO50qIN6IE i7ZvmUVg5RonAby4jRyJUIyKY6/t7WV6Tl1/VfVY6ZrSNtwuh44SEGoKhgKqghgmdQjm FXBIyeDJtKhvrka6P7xJPrBtG2L3M8upjVz3FNFrvnI1GnBK8MQwwcCFh3cZ/H5ttAr3 /k7b+WP2dtUHFS3tWUBXLHc6broFfWBWyM0l26tmCOt1i73Yna549kJDa46dg6B13efn Gfjw== 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=lButNTOtvvJNZwHUHo8wXigOzFk7hxuq2HNWS8Ahgbo=; b=JrZy1NQvzAwT4xqWx2llLY2Sz/h7MeLNY9W4SIn5zSBd/E2FSwF2NxRwK+Etn5GjIn TieM13dKfBAk4b6G3UGWgWNR59ia1clFLEOkuYmDOKM4mB0Vd+uhHP4kq6CjetzdE1EL 3+eAUK1C59DhzAmsDRbmgCUurqN+yjCxOpx1aEVuzGJpgccqd2Jd49lw1Q56JjzbqEv9 Psx745i5b37F2510nRkkcSnx89vxZIMmCwVkWKgmGl1YnlJpz/o/Ti9cYpkF3jYso/x8 8WrWNaDf/WNTHESU2oFZ2mZ0XzBGC3OGZVU7/3IKKg+QRAftY1FZ/eJQxPDayksT8OHX tpjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SC2Dol7h; 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 1si1380843plw.390.2019.03.20.01.09.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 01:09:47 -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=SC2Dol7h; 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 A64B8211E010F; Wed, 20 Mar 2019 01:09:46 -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 2549C211E0105 for ; Wed, 20 Mar 2019 01:09:46 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l11so1198396pgq.10 for ; Wed, 20 Mar 2019 01:09:46 -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=2vlVYmMsHL2lwGrjA28hKDyRgy6hX8O93kzA2t6SsrY=; b=SC2Dol7h32obxbbqRuyBZltIy4oFVoimNZJV8RgKwxAD+6XURy95nk+q94LJUHY2y0 h8V8YHxuJPctuhWs1qGmOrIyejX1f3BMDpl1WCWOf7QpN0AOyFBCWlzsHD8dGEclVmxI WPLOaRvAc1JPEIG1JQPRubEF9ZwAV03Z/vmokip9lusMx7DokHZSXhu+kmbcsrSrPRgI VRhVa0hAufp79i1biteDGWVABNbxVNiPGAezf4mwyeUPxhqSEEiUnq12Z1nQO2ajxeRY wumOQMfJBjm4ajVj7sLU2ZzETqSiQZ0YP8XDlTABWQ2LnYJdR5ARRTMUT58zyWHWC8+q CJJw== 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=2vlVYmMsHL2lwGrjA28hKDyRgy6hX8O93kzA2t6SsrY=; b=rTks9JwEeIF3vANYaDRFRuAQJ5tXABR6hxp865YA4cUP4ZM3tfeCSHTYIFXcZbXe4E HlXQpWPn0aZ9T0zeTvSuK0iVh8yTWOP/ftskPUCyBuVvv1ZS7VWkx/D5kMW0hJsFQVwA P5Zpp+1h8f3SCXFsO24T3tJoZRSh91EJxjRpjvUrndjQ3kGyt1esa6UmPagkqoo/tNOJ b9EiQhYZof9EBg5Nmmi9wSNd7E4GLwXpgZ14ubEErpanzEeWlRt0IeHZAZy1Rjb5g6bE /XvYKIXKkoBaPzk7fj7876b6YSmNJdrqH+p3/pKIjGAsUYRYJl1m5h16+010RhYlAiAl /RvA== X-Gm-Message-State: APjAAAVxKIrCe3McMWAo5/KCPL+GUTm/Pe6vUBFLrj4Y2geZRqGxvmt0 RvyUPk3/Ix1o1gyj8qEXglkKsRaNQAo= X-Received: by 2002:a17:902:1002:: with SMTP id b2mr6434594pla.248.1553069385885; Wed, 20 Mar 2019 01:09:45 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id f9sm1602796pfd.10.2019.03.20.01.09.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 01:09:45 -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: Wed, 20 Mar 2019 16:08:21 +0800 Message-Id: <20190320080829.52003-11-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190320080829.52003-1-ming.huang@linaro.org> References: <20190320080829.52003-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 10/18] Hisilicon/D06: Use HCCS speed with 2.6G 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, john.garry@huawei.com, xiaojun2@hisilicon.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, HCCS(Huawei Cache-Coherent System) may be unstable while speed is 3.0G, so use 2.6G to avoid some unstable stress issue. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c index c8f71ecf890a..758157525f40 100644 --- a/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c +++ b/Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c @@ -222,3 +222,11 @@ UINTN OemGetCpuFreq (UINT8 Socket) } } +UINTN +OemGetHccsFreq ( + VOID + ) +{ + return HCCS_PLL_VALUE_2600; +} +