From owner-freebsd-hackers@freebsd.org Tue Jan 14 07:12:34 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 08E991FD7D0 for ; Tue, 14 Jan 2020 07:12:34 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47xhVS73WFz3F1Z for ; Tue, 14 Jan 2020 07:12:32 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 00E7CQVT055957 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 14 Jan 2020 08:12:26 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578985947; bh=HRRSNLDat0s07CWSVrz3Tn74NIMSz0MXCA3djmzOr18=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=KgPUaAj0Vf2woIB/cGLtip1Ft5a2OYuX5QghUJSYBdON+ewKFwUwiyy3VPH/0+OzZ ddVu80AQ3rSGNNocdyRQ0fWH6IwKS/Du+IgkBu6HyESTpj6PUEDifxfkYuyU09l/9V Mfc1jJfLkw4/WTl74b6P/a71RFz9orYSdYXrqakI= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 00E7CQpc055954; Tue, 14 Jan 2020 08:12:26 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Tue, 14 Jan 2020 08:12:26 +0100 (CET) From: Wojciech Puchar To: Hans Petter Selasky cc: Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: raspberry pi zero and SLOW USB HID In-Reply-To: <9a1a3901-ce03-d445-dd9e-bbd775f5288a@selasky.org> Message-ID: References: <9f8ae63f-abe5-27d9-e6bf-3d0cc1d3d4f3@selasky.org> <9a1a3901-ce03-d445-dd9e-bbd775f5288a@selasky.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47xhVS73WFz3F1Z X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=KgPUaAj0; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.78)[ip: (-7.35), ipnet: 194.1.144.0/24(-3.67), asn: 43476(-2.94), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2020 07:12:34 -0000 >> device is the same hardware with the same firmware. What causes larger >> delays? > > What you see is likely a manifestion of: > > #define DWC_OTG_HOST_TIMER_RATE 10 /* ms */ > changed to 1. nothing improved. any other things to try? > Which is because we want save a little power polling the DWC OTG. > > To avoid this: > > USB transfers must be double buffered! That means you must submit two > IN-endpoint jobs, instead of just one. Then the driver will understand there > is more work to do, and not go to idlewait! > > --HPS > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >