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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3954C43217 for ; Tue, 11 Oct 2022 20:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbiJKUGB (ORCPT ); Tue, 11 Oct 2022 16:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiJKUF5 (ORCPT ); Tue, 11 Oct 2022 16:05:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7244340E10; Tue, 11 Oct 2022 13:05:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1A52A6118B; Tue, 11 Oct 2022 20:05:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06638C433C1; Tue, 11 Oct 2022 20:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665518752; bh=BZb9QQ/EFfDQt70QeG7zs/Wcs3AWySfQkWFC7/8GlN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qU5pednL5iYRFpBcNRyiaJAQ7BQWs2Ta6HZFXgzCwncmZqvvt2qTyX0YJ5Sx3+bxk b7An1+fJ09HRZMSeOMA89zFlg9dXGT7fmea6wneuWBlcLXzxeMSMFl6rOKaDeYy/xY iaU4bHxr9bAn4isZJP4iEmMvDaPDQKHt9FeAheBQ= Date: Tue, 11 Oct 2022 21:53:48 +0200 From: Greg Kroah-Hartman To: Michael Grzeschik Cc: Dan Vacura , linux-usb@vger.kernel.org, Daniel Scally , Thinh Nguyen , Jonathan Corbet , Laurent Pinchart , Felipe Balbi , Paul Elder , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 0/3] uvc gadget performance issues Message-ID: References: <20221011183437.298437-1-w36195@motorola.com> <20221011194808.GH27626@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221011194808.GH27626@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 11, 2022 at 09:48:08PM +0200, Michael Grzeschik wrote: > I also have an patch in the queue that will limit the sg support for > devices with speed > HIGH_SPEED. Because of the overhead of the limited > transfer payload of 1024*3 Bytes, it is possible that a simple memcpy > will actually be fast enough. But for that patch I still have to make > proper measurements. Btw. which USB speed are you transferring with? For a payload that small, yes a memcpy is almost always faster. I think it's only much larger sizes that actually start to help with sg. Can you submit this change now? Odds are it will help out a lot of systems. thanks, greg k-h