From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83F57C433FE for ; Mon, 7 Mar 2022 07:50:48 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nR88f-0004fC-RJ; Mon, 07 Mar 2022 02:50:41 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nR88c-0004eo-Py for kernelnewbies@kernelnewbies.org; Mon, 07 Mar 2022 02:50:39 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 897853200C14; Mon, 7 Mar 2022 02:50:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 07 Mar 2022 02:50:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=p+MYblPQFn8nYj6Fh7agiPpVYkc5T15sDalekr h3Kts=; b=psSOAYfTDfBNhAr3MSFejxAn+nb8bx0T99D3Ki9wFKEsgDLaZGhbqv MFm5utWz0u8LB/4Fr9yhVodiVLRVXbdHZjkOqJRkhDfh0xb+YVpKzETGh0ga7Dyq ZHS/qPOjiOSYl0Dv9oSHsyiwdVqB8T43EJzWTbgkUjq/HIbhB06exJl54RByrdxZ CAZcZRWHz7cF8zfb6uVgkczIqU9Ct4zz3v6tt3FMyINKWO43aRm6Ib9K+EOvyQpv M3ti0lGnWs6Hq94OSgreXh1/xWdGZa7dKrnnXYf9qZBrykolq37WfD0fkLch1DLv +FV8+DT2rqVleBINN/mlTmoHnS+xR6tw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=p+MYblPQFn8nYj6Fh 7agiPpVYkc5T15sDalekrh3Kts=; b=asB/59kA5vHoa9RuhhMpZVlEMXg7fbSe6 0I0EjVn8ohxGcJHwmNThnsl08wKwFNM9o9EWGqKK3NiLZ+1Qxd2L272ZuXvxmUEC 2xWuKOUORHfpfp0RckMO2/1f01ZTET2P0DBAp9/lro4sJBCF/sjXCGhOnIHDtrb1 YtwR3y4KsxEeHOulQllYU9EoV7dgrhRW/aLF33pjF6WymysR7yJXbtlYAN+yU7z4 ex8Sh+KyJ4rKv9fHBAuPq3aka1SJhfdKqh+E4Pktl0bk7O1y+mQxdHHGpxZW3ZbT 2n8gIIzWVIqjg58myz4dW6x65Vg9lN/xSH2OD/iZ0E1tA3Ab6ksiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddufedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepieetje elieeuieehveejgeetjeejieeffefhfeevkeelgeehleeugeegveevteejnecuffhomhgr ihhnpehushgsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Mar 2022 02:50:33 -0500 (EST) Date: Mon, 7 Mar 2022 08:50:30 +0100 From: Greg KH To: Mithran B Subject: Re: USB CDC performance test Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Mon, Mar 07, 2022 at 01:08:28PM +0530, Mithran B wrote: > On Fri, 4 Mar 2022 at 20:31, Greg KH wrote: > > > On Fri, Mar 04, 2022 at 08:06:55PM +0530, Mithran B wrote: > > > On Fri, 4 Mar 2022 at 19:48, Greg KH wrote: > > > > > > > On Fri, Mar 04, 2022 at 04:27:50PM +0530, Mithran B wrote: > > > > > Hello, > > > > > > > > > > In Host and Gadget systems, enabled the USB CDC drivers. > > > > > Then nodes are created as /dev/ttyAcm0 and /dev/ttyGs0. > > > > > Then opened the nodes and write and read back the data. > > > > > It is working. > > > > > > > > > > I want to test the performance of this interface and drivers. > > > > > Do we have any utility for this? > > > > > How to do the performance test? > > > > > > > > What exactly do you want to measure? Determine that first before > > trying > > > > to find a test for that. Without knowing what you want to measure, > > it's > > > > hard to tell you how to measure it :) > > > > > > > > good luck! > > > > > > > > greg k-h > > > > > > > > > > Thank you. > > > I want to send the data at the rate of 5mbps from Host device to target > > > device using USB CDC - ACM. > > > In termios functions, how to configure this 5mbps as baud rate and USB > > > payload size, i.e. packet > > > size to be in 2K bytes. > > > > There is no "baud rate" for usb cdc devices, really, as you have tried > > this already, right? > > > > Just send the data as fast as you can, with the largest chunks of data > > that you have (do not send it byte by byte to the kernel), and you > > should be fine. > > > > Are you sure that your device can handle that type of data rate? That's > > almost always the limiting factor. > > > > good luck! > > > > greg k-h > > > > In USB CDC, any software flow control mechanism is implemented? The specification is public on the usb.org web site, if you are curious. There is no need for "flow control" like you are used to for older serial connections with USB, the way USB works handles it automatically (the host drives the connection, if the device is full, it tells the host to wait automatically). > Any hardware flow control mechanism there? Other than the normal USB flow control mechanism? No, why would there be? > How to enable this software flow control mechanism in kernel device drivers? what software flow control? > Any other information related to this is good for us. For whom? What exactly have you tried and what were the results? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies