Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2799768rwi; Tue, 11 Oct 2022 13:36:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6MIZJzZY+2WbtLzUKF730PCTF5kCqE8cAXULO2rt3Xd2Jf90Iuyj4XIwe82oUydLvPioMQ X-Received: by 2002:a05:6402:22ef:b0:458:bfe5:31a3 with SMTP id dn15-20020a05640222ef00b00458bfe531a3mr24207528edb.6.1665520577528; Tue, 11 Oct 2022 13:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665520577; cv=none; d=google.com; s=arc-20160816; b=CD2KUFOVsgZIiaua7bGWJmFULRckpPJ+PJL3id5egwFNGG8HdgUMcNmFbi4o9PstOn qrAcTrvRU1fVrBx2dqslB4dMO63wMX+COeDflEORxs84nNKSTJ5pZPs06CUgjncvSuHb s06/o0Le7hOwrrVUrVNyYPBvZVoEbqAlAfu8K2evQrPsi5sO8AyBnJtHuZ4hysW1yDg9 f2XdxrUZGVLbBk6ANXT2JZ+aCPRH/gVnofZrF38IXw1lMjZphPph/mdxSgF89eDGAPsg jRGvgEhMqXi8FB7X56N0NWQjGRcUiyY2zRsARwS+F+ARpsDZWJIzkDYibS8QEAxLgyQu p3gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ywpxqRSipRAwrwOt0cBs190FQ+MhpbwpsqUwQFG8Fe4=; b=d2sDwjn+xyJLKwus/VQ7rgTb0UgqX/cLTG3XuHwPJM9ej8PfHgfVVO5OTgJ7nT/heG cx54iaqyIMKJ2VUi+Nn68ldRAPKkHQS4b4D+l5Jb/jOjiLE3XftdXSybACQ8XUeYfYgL ILWI8Y4g9ki58Iir6GGyGy0T83aEBK1ojkIQxXNlaneQkjrdfkRQZ3Y5yFYRG0sDLDs9 ixdq4uJR337bZUEdL1Mkhbpu7HbLyOyWX4fIckVURAluB5/ioZioxBqxNqsQY7wUJ7VI PQ+5++cnoQYlMoO3OCsLlIe+qmgGYLGVW9JPC5SYO4mrj26d+8O/yVtlGW5LzIqrEjk1 7xdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qU5pednL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht12-20020a170907608c00b0078cc4a8a956si13092061ejc.881.2022.10.11.13.35.50; Tue, 11 Oct 2022 13:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qU5pednL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbiJKUGA (ORCPT + 99 others); Tue, 11 Oct 2022 16:06:00 -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> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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