Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3386278pxv; Sun, 4 Jul 2021 17:39:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5dteJuGa8w5dHIOqosbSuUz/392euC4foXVjhRFG/gnFxXtaKAf9162cHx0VjTuvOwiEg X-Received: by 2002:a92:7c11:: with SMTP id x17mr8063136ilc.224.1625445544947; Sun, 04 Jul 2021 17:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625445544; cv=none; d=google.com; s=arc-20160816; b=nyQdCAZuCkucNsQ+xzSh58tA8E7bUDjZXPWD+ShmOtfTGdOrJE9wtsTs1tSawRJBBL O8OVjF/WVl+vM2sMxhrkCv6HzY/aNmyyTb2/3KTOSp2ejFaXdGBfdWHF4j74rbiP2LB2 JVCST3Z9ks+vJRMvBeUlR8SIq/GFV9BfgQEc5oAIO3xk0PxwHTXhG+hY7oaje59m7j2p 9a6GL10/2sQ16gh4L2WCgmWXJ2MD07C9hQleQguGblLSiJxO2pIyp9PlK7xrBgU6usnM FiZMKJaSYTm8DpluKgm/XT9t2PrSdQcUEdQm8VHS/fUKX0kk4H7k8gV5uG81ZKkjZOZy yACw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=K8kKQLSvsNWHgUYGsqqT723YPY1n0oqJIH3dzPQvo1I=; b=MnKutNRASa2YVTyLEocVhmi/bLFFE0TK4FqMGep1llaguxtO4Jb5dpdJTJ7UI3g1S9 kNm89URsSjXUFmD2pfHbV4W0m6j83/emGenEeau0w0/HLGrTwVm9BC45hpfNKfU6aYpO HwIHO/Ejv06Zlkx7pAHpbgAnjV0qvJ2TNd2E1WbsPLFn1GjFDrJ2EQXu8p/yTDQfME88 5k+8JioLLBuKm1egeljB7B4DKQHqQBNjsVTUfAi555DG/TvXqXB6ZyPS9gijHds8q4id 7zEovUEJRNCEcsRG6YcZHKykKxhiWytqB2qNFxJwdd8fQYXoGCO4A7e6YTFWUPnSZ9wW WfqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si11548317iog.79.2021.07.04.17.38.51; Sun, 04 Jul 2021 17:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbhGEAiR (ORCPT + 99 others); Sun, 4 Jul 2021 20:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbhGEAiR (ORCPT ); Sun, 4 Jul 2021 20:38:17 -0400 Received: from mxout017.mail.hostpoint.ch (mxout017.mail.hostpoint.ch [IPv6:2a00:d70:0:e::317]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98CDBC061574; Sun, 4 Jul 2021 17:35:40 -0700 (PDT) Received: from [10.0.2.44] (helo=asmtp014.mail.hostpoint.ch) by mxout017.mail.hostpoint.ch with esmtp (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1m0CaG-000ILa-D6; Mon, 05 Jul 2021 02:35:36 +0200 Received: from [2a02:168:6182:1:4826:4d5:dcc6:d0b0] by asmtp014.mail.hostpoint.ch with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1m0CaG-000G3n-BG; Mon, 05 Jul 2021 02:35:36 +0200 X-Authenticated-Sender-Id: reto-schneider@reto-schneider.ch Subject: Re: [PATCH] rtl8xxxu: disable interrupt_in transfer for 8188cu and 8192cu To: chris.chiu@canonical.com, Jes.Sorensen@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210701163354.118403-1-chris.chiu@canonical.com> From: Reto Schneider Message-ID: <876caa77-702c-eb29-bfd1-c2ebcc4fb641@reto-schneider.ch> Date: Mon, 5 Jul 2021 02:35:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210701163354.118403-1-chris.chiu@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.07.21 18:33, chris.chiu@canonical.com wrote: > There will be crazy numbers of interrupts triggered by 8188cu and > 8192cu module, around 8000~10000 interrupts per second, on the usb > host controller. Compare with the vendor driver source code, it's > mapping to the configuration CONFIG_USB_INTERRUPT_IN_PIPE and it is > disabled by default. > > Since the interrupt transfer is neither used for TX/RX nor H2C > commands. Disable it to avoid the confusing interrupts for the > 8188cu and 8192cu module which I only have for verification. I tested the new code on the GARDENA smart gateway and it works as expected. Interrupts are greatly reduced while the same level of TX/RX performance could be measured as before the change: A (too) high percentage of retransmissions, but otherwise fine. Tested-by: reto.schneider@husqvarnagroup.com Kind regards, Reto