From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.web11.150162.1669730060577880321 for ; Tue, 29 Nov 2022 05:54:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SNv5/WI6; 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.180.131, mailfrom: quic_rcran@quicinc.com) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ATDJPdu002851; Tue, 29 Nov 2022 13:54:17 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=bzRa11kVvKFQ0DiNndauKtCc3q+iL4ARybxmS7xrTtw=; b=SNv5/WI6uo39ARPDfnQNb0qfUlJ+cWwhaJm70rcgEo10hp9XEIvJNJJbbIAdZ+RCJk0p bzT7FrQ+pQcqSZz1WCH8IF+VkoyyveBa2oWxn9guS4jLB+p9j0HG6CUE5rk4utLciqVZ m2n0Mpd3YNkm6IVRnSZXu0Qr8+MpBLtu/gVkQvV6dwUauRg17LUaXDzXjAKhyRw+BNw0 GVlg5aHG75WEFr53SNlFKugQaNI2IZhm3m6JQrgAG72i7nScMpoSH/2hByQ5OOINTsv5 QElIyYyQESDOGBvjOiS79nniDqO1K/ErTjNbaXj8VMrtih6G0oqbiOce7Ah5kK6bFZSG HQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m5bx0s9gr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 13:54:17 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2ATDsGgg018163 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 13:54:16 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.36; Tue, 29 Nov 2022 05:54:15 -0800 From: "Rebecca Cran" To: , Ard Biesheuvel , "Thomas Abraham" , Sami Mujawar CC: Rebecca Cran Subject: [PATCH edk2-platforms 0/3] Platform/ARM/JunoPkg: Timer fixes Date: Tue, 29 Nov 2022 06:53:55 -0700 Message-ID: <20221129135358.136555-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: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: F4QfxoRN4U1MY8QcDnc_5y73mW1zlMix X-Proofpoint-ORIG-GUID: F4QfxoRN4U1MY8QcDnc_5y73mW1zlMix X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_08,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 bulkscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 clxscore=1011 mlxlogscore=882 suspectscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211290079 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. Also, fix the time between interrupts in TimerDxe to be 1 ms as the driver wants. Rebecca Cran (3): Platform/ARM/JunoPkg: Switch to MdeModulePkg/Universal/Metronome driver Platform/ARM/JunoPkg: Override PcdTimerPeriod to be 10000 Platform/ARM/JunoPkg: Set PcdArmArchTimerFreqInHz to 0 to read from CNTFRQ_EL0 Platform/ARM/JunoPkg/ArmJuno.dsc | 7 ++++--- Platform/ARM/JunoPkg/ArmJuno.fdf | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) -- 2.30.2