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 DC734C61DA4 for ; Thu, 9 Mar 2023 07:30:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjCIHaE (ORCPT ); Thu, 9 Mar 2023 02:30:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjCIHaD (ORCPT ); Thu, 9 Mar 2023 02:30:03 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6645F763 for ; Wed, 8 Mar 2023 23:30:02 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 0DABE80DE; Thu, 9 Mar 2023 07:30:02 +0000 (UTC) Date: Thu, 9 Mar 2023 09:30:00 +0200 From: Tony Lindgren To: Yegor Yefremov Cc: Linux-OMAP , Bin Liu , Johan Hovold Subject: Re: am335x: performnce issues with FTDI and LOW_LATENCY Message-ID: <20230309073000.GG7501@atomide.com> References: <20230306074200.GD7501@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org * Yegor Yefremov [230307 09:53]: > On Mon, Mar 6, 2023 at 8:42 AM Tony Lindgren wrote: > > > > * Yegor Yefremov [230228 08:01]: > > > Any idea why the performance drop is so big? > > > > Maybe lots of interrupts and dma not being used for musb in this case? > > Using "irqtop -d 1", I get the following results: > > 3.18.1 LATENCY_OFF (16 ports): ca. 1000 IRQs/s INTC 17 47400000.dma-controller > 3.18.1 LATENCY_ON (16 ports): ca. 4000 IRQs/s INTC 17 47400000.dma-controller > > 6.2.1 LATENCY_OFF (16 ports): ca. 300 IRQs/s INTC 17 47400000.dma-controller > 6.2.1 LATENCY_ON (16 ports): ca. 1000 IRQs/s INTC 17 47400000.dma-controller Hmm I wonder what's causing that. Earlier the Ethernet gadget had some alignment define tweak that made transfers faster. What kind of data transfer are you testing with? > #zcat /proc/config.gz | grep CPP > CONFIG_USB_TI_CPPI41_DMA=y > CONFIG_TI_CPPI41=y >From what I recall musb still handles short transfers with PIO, I think this is the case also for cppi41 dma. Sounds like that does not explain the difference you're seeing between 3.18 and 6.2 kernels though. Regards, Tony