From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::442; helo=mail-wr1-x442.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (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 861CB2110746B for ; Thu, 30 Aug 2018 11:50:13 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id v16-v6so8987545wro.11 for ; Thu, 30 Aug 2018 11:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=T5IbSq+ZowTrAClizMAHpIWwxFc8tPjjy3xp5oCdG2Y=; b=OttCjHT34cbvhymIEXCfJOSSqSwCp9JH1sZIhQbg/xLa9b9PXIZbg2Ta3iW4Czhga9 O1uen3Ty8bxXZULTNoO6fWTk+R2TEH5TFxuvRkTavLTC5VEW5vmDrasl3gtKE8MnBLS6 Dml/OJf4h87lvC2eLqWVi+Sb0z1oJ7XCtylrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T5IbSq+ZowTrAClizMAHpIWwxFc8tPjjy3xp5oCdG2Y=; b=Ohe//WsGPfW7MDB95QjRRS7BC7O0I9G5ixsS11XPVDu4lFYvzS+zHyGyyop0NG+QUr 4Yt0sRPlBxM4opzwZ5jxF03CQCfwHSjAap5SQlIYXgz4H/8MyRa7bx0CN0Dt0/0oDYYb cArgdjZa+J2u8Rgwl1UOyR1qXdmT3ta9pfPkQOXwrSm16IUXf980mUPXmutm0WIHKBsQ usnNE3Z4REEfp007GUcTnN2CSJRdAitYDx3yRlqevUsa6KIbNjwAtXpsxJhCDYebFhbh VCwZSZftkQGhSulHHmW1pXGTx+e1ymh1ujd594d0sitvsz9id8ANDMvDfZDQi26NPKZU opwQ== X-Gm-Message-State: APzg51D/22DWwLVMSq7HovE5DJ/k357wJAArk3VWmRvdO70gDMF5sDb4 Sds3DZRbtawGiSrqmTPCyA6VYQ== X-Google-Smtp-Source: ANB0VdY/d761zK73R8WsdH4KCVcZXEbN4Xd3N+K9QXkfECznlzfjKWlJgMa7pdAdhJvAmzhaLxYi0A== X-Received: by 2002:a5d:6243:: with SMTP id m3-v6mr8638349wrv.179.1535655011889; Thu, 30 Aug 2018 11:50:11 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id 66-v6sm4435908wmw.34.2018.08.30.11.50.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 11:50:10 -0700 (PDT) Date: Thu, 30 Aug 2018 19:50:09 +0100 From: Leif Lindholm To: Ming Huang Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org, ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, ZhenYao Message-ID: <20180830185009.kjsyqyubh7kdi7ph@bivouac.eciton.net> References: <20180823160743.45638-1-ming.huang@linaro.org> <20180823160743.45638-27-ming.huang@linaro.org> MIME-Version: 1.0 In-Reply-To: <20180823160743.45638-27-ming.huang@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [PATCH edk2-platforms v4 26/31] Silicon/Hisilicon: Modify for close slave core clock. 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: Thu, 30 Aug 2018 18:50:13 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Please update also subject and description to use "disable" and "enable" instead of "close" and "open". On Fri, Aug 24, 2018 at 12:07:38AM +0800, Ming Huang wrote: > From: ZhenYao > > When BIOS booting, the power consumption is too high, so need close > some clusters clock that don't work to reduce power consumption. > > The implementation of functions is in edk2-non-osi. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ming Huang > --- > Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h > index ec2b9a36e7..3ccfc6bee3 100644 > --- a/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h > +++ b/Silicon/Hisilicon/Include/Library/PlatformSysCtrlLib.h > @@ -102,5 +102,8 @@ VOID PlatformEventBroadcastConfig(VOID); > UINTN GetDjtagRegBase(UINT32 NodeId); > VOID LlcCleanInvalidateAsm(VOID); > VOID PlatformMdioInit(VOID); > +VOID DisableClusterClock(UINTN CpuClusterBase); > +VOID EnableClusterClock(UINTN CpuClusterBase); > +VOID DisableSocketClock (UINT8 Skt); > > #endif > -- > 2.18.0 >