From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0050.outbound.protection.outlook.com [104.47.2.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D2E7521CF9511 for ; Tue, 1 Aug 2017 01:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RSMoWFl8no0iNYZi7TLWFnwZRfv6Oet6e9xTB8eC8O4=; b=nukrE9cYGOdhJ7WszUnOEmpCnPB3FG8yqDWC8GzSQDdd8QjJwoN0aDG2RcKIBIb/alRKqEn95eroiXdl10IsKWbzG9B9hAcued4U7aHb3MU3OjSvt6XlfAbzx7d5zdzJulpoK9xbk/J45n5/SK31siiiokQIlsOT9X4fZcBxDko= Received: from HE1PR0802MB2299.eurprd08.prod.outlook.com (10.172.127.17) by HE1PR0802MB2297.eurprd08.prod.outlook.com (10.172.127.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Tue, 1 Aug 2017 08:57:45 +0000 Received: from HE1PR0802MB2299.eurprd08.prod.outlook.com ([fe80::1c21:dd56:355d:dcf0]) by HE1PR0802MB2299.eurprd08.prod.outlook.com ([fe80::1c21:dd56:355d:dcf0%17]) with mapi id 15.01.1304.023; Tue, 1 Aug 2017 08:57:44 +0000 From: Alexei Fedorov To: "edk2-devel@lists.01.org" Thread-Topic: USB Drivers' Asynchronous Transfer Timer Interval Thread-Index: AQHTChOFuhE6BD3t1k6kImiB4uUkxqJvNB5R Date: Tue, 1 Aug 2017 08:57:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexei.Fedorov@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0802MB2297; 7:zcL7y8sPrKpvY8GR5HALl+jw2apt6TXcBa2L42IgtVndEVVgkO1t/tkySIV4e9+fy6roIlKJoUSGb9BoThVpi0G+an4wtWS87CwR3nzkHxiY0Ly1aJKOj0YW1TezIcH9jxrKMKPmBwlSRhnWgI4ONP+JGQIhq1PxCX45MN62w41Vo+caaOYPTDzK9Q4JCWTvjVyg/SiVMLqPk3USeLmKuRMGK26UQ/xwSUkCzU1Yud9Hsqw6vPhFdyMgJXiK1eVgM2KiHc5Qe1iJZHuNnjKMz87cyVQ1mmbEzN+KVkqjmE13Y+UACHGpXGeeRsG44VWXq94hlUe7MSEHwuqdh7gblM44F7DeeUumt8JYF8kPmSoMDfZLRtDmAdyK+UBOopZxJeuQiGc2xuoi+0nxQ1MdY/dGIcCscNwD5JhfSUveIp66i6cPl3wxQmeg352oYMVROfvDZFzui+jgCWz12/+x9czOzTVgudPvDZTmr9aIGNFJkj04DH0Zr5nJQw8DRkbljmkFHqwOnTFq6Qz8K2NporDHK8z8OM11lEjXbdWHvm+q2nTx1I23MKgN47Rihq6Btq0iaADsBX1Slw+qcgnwj4Fg06GWCobuvZgVbZz3Ff7DAvBYxWkl2DTEDQEaRwZ8F/9sf6c+Hth0Cdt+U5yqapUcgXlPZdMgVokUVs7FjIQsUc+pJrzN9jTzfSZNZ7yBwcuGxk30FyQkKnzwqhoqXHMkoNtrgSb+nYJw7fJH8442GZV3nCxgfXxSdHAdDEeoXvQjXwNqOV7FoC3F1Gth+/dAyES/pn4PInfLcOCfRkM= x-ms-office365-filtering-correlation-id: 6f19c749-8c2e-4794-4886-08d4d8bb6028 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0802MB2297; x-ms-traffictypediagnostic: HE1PR0802MB2297: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0802MB2297; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0802MB2297; x-forefront-prvs: 0386B406AA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(39860400002)(199003)(189002)(40434004)(9686003)(2501003)(54896002)(478600001)(105586002)(106356001)(55016002)(2906002)(99286003)(14454004)(189998001)(2900100001)(229853002)(110136004)(38730400002)(6436002)(72206003)(33656002)(2950100002)(5890100001)(6506006)(6916009)(53936002)(5640700003)(217423001)(3280700002)(3660700001)(74316002)(3846002)(102836003)(6116002)(76176999)(54356999)(50986999)(5660300001)(81156014)(8936002)(81166006)(8676002)(101416001)(25786009)(86362001)(7696004)(2351001)(68736007)(5250100002)(2473003)(19627405001)(66066001)(6606003)(97736004)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0802MB2297; H:HE1PR0802MB2299.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2017 08:57:44.2319 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2297 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Fw: USB Drivers' Asynchronous Transfer Timer Interval X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 08:55:38 -0000 Content-Language: en-GB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, All USB asynchronous transfer timer intervals defined in Ehci.h, Uhci.h and= Xhci.h are set to 1ms value as below: #define EHC_ASYNC_POLL_INTERVAL EFI_TIMER_PERIOD_MILLISECONDS(1) #define UHC_ASYNC_POLL_INTERVAL EFI_TIMER_PERIOD_MILLISECONDS(1) #define XHC_ASYNC_TIMER_INTERVAL EFI_TIMER_PERIOD_MILLISECONDS(1) are used to start the asynchronous interrupt monitor as: Status =3D gBS->SetTimer (Xhc->PollTimer, TimerPeriodic, XHC_ASYNC_TIMER_= INTERVAL); , but all h/w platforms, except Hisilicon from OpenPlatformPkg either use d= efault PcdTimerPeriod gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 from EmbeddedPkg or redefine the same 100000 value (e.g. BeagleBoardPkg) wh= ich gives Timer Interrupt period of 10ms in which case the polling interval= will be also 10ms but not 1ms as desinged. There are other cases when TimerPeriodic event is set with 1ms period, see: edk2\MdeModulePkg\Bus\Ata\AtaAtapiPassThru\AtaAtapiPassThru.c: // // Set 1ms timer. // Status =3D gBS->SetTimer (Instance->TimerEvent, TimerPeriodic, 10000); edk2\MdeModulePkg\Bus\Pci\NvmExpressDxe\NvmExpress.h: // // Nvme async transfer timer interval, set by experience. // #define NVME_HC_ASYNC_TIMER EFI_TIMER_PERIOD_MILLISEC= ONDS (1) edk2\MdeModulePkg\Bus\Pci\SdMmcPciHcDxe\SdMmcPciHcDxe.h: // // SD/MMC async transfer timer interval, set by experience. // The unit is 100us, takes 1ms as interval. // #define SD_MMC_HC_ASYNC_TIMER EFI_TIMER_PERIOD_MILLISECONDS(1) , etc. Any comments on that? Alexei. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.