From nobody Mon Feb 9 09:32:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82328+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82328+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1634634520; cv=none; d=zohomail.com; s=zohoarc; b=cCrPNoP6jq8ouJB91RllVcNyacchO2GZPZgiW/0wFplaTwoOh86kR/7A/CY4JQBcWhXozt8pEw7qx12Er0YOc+LqifykrjQ8H/55On53Vq/6XFQKXSNG+1ZWKeRpMvvc1Ts5MSDiwvBiP6R7C4honHIOsWJkvM/yfUmYURV0nQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634634520; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=MjibJUCsbSrkcSL6C+P/kPPTxnm0EJXJoirqzjuuluI=; b=Ey7602vbzIHN0cwK/byxLrFVvrXaon3iZJ2Re4IaLTCcLvo4CnusYLFNUwWT+leaSmnvbmL4CulYZAk9ZiScSNGmXbiPXeWdPk/nbV3vW0w3GjsPsGP51CAUO3V8iwfH9X0sD3zeeRO1GIocGK0EOhREJZWJIKvv0ULKsRaveII= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82328+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1634634520384981.2878265875797; Tue, 19 Oct 2021 02:08:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id DOMNYY1788612xXyvG9jyuii; Tue, 19 Oct 2021 02:08:40 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.7331.1634634515581338470 for ; Tue, 19 Oct 2021 02:08:39 -0700 X-Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19J8CJbW021113; Tue, 19 Oct 2021 09:08:35 GMT X-Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0a-002e3701.pphosted.com with ESMTP id 3bsta50ej3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 09:08:35 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 8D34655; Tue, 19 Oct 2021 09:08:34 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 7BDEB4C; Tue, 19 Oct 2021 09:08:33 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Sunil V L , Daniel Schaefer Subject: [edk2-devel] [edk2-platforms][PATCH 16/30] RiscVPlatformPkg/U540: Only use four harts on U540 Date: Tue, 19 Oct 2021 16:09:53 +0800 Message-Id: <20211019081007.31165-17-abner.chang@hpe.com> In-Reply-To: <20211019081007.31165-1-abner.chang@hpe.com> References: <20211019081007.31165-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: H-fjGeoM-V87mcH1PBGRJ9xiQYc2dz22 X-Proofpoint-ORIG-GUID: H-fjGeoM-V87mcH1PBGRJ9xiQYc2dz22 X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: qPS7a2HL7LUxG87ACFmPJ7vkx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634634520; bh=Pg1o/2mmdGOd7r1YJO52MiCShf8Ce4wrCQVLLzqzLf0=; h=Cc:Date:From:Reply-To:Subject:To; b=XjHepOGi5JqUCqtyc+QLqobedKRp/AgRpyD3LrmzXh16crA+dVzGVwGGCKqakgPneNX bDfqbezOwX8ICMyxKJ2Pez587hBa+amy6UunU9H62xwZFRwdmm07GsXCUVyrDj8wFhs69 AM6xwhYFaJXWpPRmmFbTivn2MYBvdtPaa5Q= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634634520645100016 Content-Type: text/plain; charset="utf-8" Only use four harts on U540 reference code. This overwrites the bootable harts declared in Device Tree. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- .../FreedomU540HiFiveUnleashedBoard/U540.fdf.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U5= 40.fdf.inc b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U5= 40.fdf.inc index f708f4d8be..1a525dc874 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf.= inc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf.= inc @@ -92,9 +92,16 @@ SET gUefiRiscVPkgTokenSpaceGuid.PcdRiscVMachineTimerFreq= uencyInHerz =3D 1000000 SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5PlatformSystemClock =3D= 1000000000 # 1GHz system clock SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdHartCount =3D= 5 # Total cores on U540 platform SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootHartId =3D= 1 # Boot hart ID -SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber =3D= 4 # The bootable hart core number. - = # Which is incorporate with OpenSBI - = # platform hart_index2id value. + +# +# The bootable hart number the platform would like to use during boot. +# +SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber =3D= 4 +# +# Only use hart ID 1, 2, 3, 4 +# +SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartIndexToId =3D= {0x1,0x2,0x3,0x4} + = # during boot SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdNumberofU5Cores =3D= 4 # Total U5 cores enabled on U540 platform SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdE5MCSupported =3D= True # E51 MC exists. SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5UartBase =3D= 0x10010000 # Serial port base address --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82328): https://edk2.groups.io/g/devel/message/82328 Mute This Topic: https://groups.io/mt/86435680/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-