From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=jaJ8gudk; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0926d272d9=abner.chang@hpe.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=AZa0meBFauq/E2GsFWmQiKjM61Rt02ip1lM7LCZkGXA=; b=jaJ8gudk93L03py7wIX3I9zSYiMmaKI7xK8gkugI7evMUPoFzRXFqM4NuJtola+AH3+Z gpBcmZUOnqXCZV+dyl1d+VyKbHJWTKUw2OY3RY8iAHsx048xsGa27PFlV9O8Y/uL7bkc BBD3Hge8BizBvyiyqKJOMffFaFcz/B7CcVhlsR3tovJzhTZ+CVOSkj/uVjw71IqvJtFz Ih6JD4wO+GNOE4/mb0ezvTB1OURtMQ0bO6HrTVB8AVTEbDuox8BYai54WZp9LmAxfIq+ kQUHYuduVB377TBPMulW+6dM5ddQBIiWTqs7vzQIiFCAOISr4MKj924EaH0dOqbnJIlP iA== 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 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) 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-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> X-Mailer: git-send-email 2.31.1 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 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110190056 Content-Transfer-Encoding: quoted-printable 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=0D SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdHartCount =3D= 5 # Total cores on U540 platform=0D SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootHartId =3D= 1 # Boot hart ID=0D -SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber =3D= 4 # The bootable hart core number.=0D - = # Which is incorporate with OpenSBI=0D - = # platform hart_index2id value.=0D +=0D +#=0D +# The bootable hart number the platform would like to use during boot.=0D +#=0D +SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartNumber =3D= 4=0D +#=0D +# Only use hart ID 1, 2, 3, 4=0D +#=0D +SET gUefiRiscVPlatformPkgTokenSpaceGuid.PcdBootableHartIndexToId =3D= {0x1,0x2,0x3,0x4}=0D + = # during boot=0D SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdNumberofU5Cores =3D= 4 # Total U5 cores enabled on U540 platform=0D SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdE5MCSupported =3D= True # E51 MC exists.=0D SET gSiFiveU5SeriesPlatformsPkgTokenSpaceGuid.PcdU5UartBase =3D= 0x10010000 # Serial port base address=0D --=20 2.31.1