From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.web11.31806.1676941380401042639 for ; Mon, 20 Feb 2023 17:03:00 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=T4L/qcEy; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: quicinc.com, ip: 205.220.168.131, mailfrom: quic_rcran@quicinc.com) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31KNwil7023351; Tue, 21 Feb 2023 01:02:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=Eu1Z35LK/mZfH+UA4CJLokxKkx2c+wls6QJWvlDcM/8=; b=T4L/qcEyVLIhziYBJMkG0GUvIIwpPjTGeA7TdI4FxZPtpztBV006RP39PA6jDEA4wYOJ sPaNup7pmPZTPZkrMg8+Nb7skJCNTqXIUp8Hd/55dkH4meHK/KLVdv/AcDa4vucFTr6z 0c6LEzGbz9PmrB8DlHR8K42nREo6tnOOtxZvJWu4RKFkIx4BeOOe+Tcria+1UVRjYo+6 xz/q0ntvcI19RIL2aYw4C+0tyESxmqWBXFQro/n3jOoUGFsI9oa6mHyyZllGSBFG5JSf X0yNEv2ZF6rHBuBS0vaCNgEj1igWMF2V/wO800fWP5fmW54K/KX2t8ouvtHojRq6/Zxo vQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ntpw9p5eq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Feb 2023 01:02:57 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31L12uZd001972 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Feb 2023 01:02:56 GMT Received: from linbox.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 20 Feb 2023 17:02:55 -0800 From: "Rebecca Cran" To: , Pierre Gondois , "Ard Biesheuvel" , Sami Mujawar , Thomas Abraham CC: Rebecca Cran Subject: [PATCH edk2-platforms v2 0/2] Platform/ARM/JunoPkg: Timer fixes Date: Mon, 20 Feb 2023 18:02:40 -0700 Message-ID: <20230221010242.1038521-1-rebecca@quicinc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 6hsuAhIskMgLEkGFDR5U8IX8jLFTPGuh X-Proofpoint-GUID: 6hsuAhIskMgLEkGFDR5U8IX8jLFTPGuh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-20_19,2023-02-20_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=713 clxscore=1011 spamscore=0 adultscore=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302210007 Content-Transfer-Encoding: 8bit Content-Type: text/plain The use of the EmbeddedPkg/MetronomeDxe driver on Juno can cause problems with drivers that use gBS->Stall, since it takes 10x longer than requested. For example requesting a timeout of 1 ms when doing a USB bulk transfer results in it taking 100 ms. Switching to the MdeModulePkg/Universal/Metronome driver fixes this since it assumes the timer clock ticks at least every 100 ns. While here, set the PCD value of the timer frequency to 0 so it gets read from the SoC instead of hard-coding it. Changes in v2: Dropped the patch to set PcdTimerPeriod. Rebecca Cran (2): Platform/ARM/JunoPkg: Switch to MdeModulePkg/Universal/Metronome driver Platform/ARM/JunoPkg: Set PcdArmArchTimerFreqInHz to 0 to read from CNTFRQ_EL0 Platform/ARM/JunoPkg/ArmJuno.dsc | 6 +++--- Platform/ARM/JunoPkg/ArmJuno.fdf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.30.2