Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3634162pxv; Mon, 5 Jul 2021 02:01:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGtaFfi6j/51HpJ5rZAcMwrQxVQGROmD6XNw62F1YHSBgpyUzHCmc8JWkt4TUWVD6Tb6CX X-Received: by 2002:a05:6402:1911:: with SMTP id e17mr14916533edz.36.1625475718426; Mon, 05 Jul 2021 02:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625475718; cv=none; d=google.com; s=arc-20160816; b=r1rJgTTpPA2GJN23LIHXegdN3t6XoqsMaxNnzm5GvbDmqdaIzskZYtLht1Zk7fPkJm dIVpZ897Yma6T9S3M4xMMIfFsIKVtROCwPBu3BTxgJ+P5yDn0ipKGuSYzF0ot45miSGA vYhZGyAmEGP6oir2XlwVwah09uWldQvqrfmdvFteMf8wBNe3FsKdpsNPgn6MXPnWdozT CizjHIjTuBmwi2Jtwd+qJcnIQKfTYyRwMEScG8zf2PzB/YoMIwC2DGkEZbQQ7I9127hI kIuUD9sy4NSOEUUBnJOZhvwPA28T+IRq6TE4fpPXXN9iXKicFXwMMYjQAdkAcguDo8le ngcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=I6wYMggQL4Kc/x8xMyA7h2j3whmdqB7IgTt34u11Uos=; b=AB7mLmup+OwjdZjSeAoVlL7CVnHWQqsKpyY0ZsIEIywh2SQ/BAsDC5ybtMMRdOKso9 +/J/09Zx2q4W1qxA6GbaTu4elAObu4w1TgPg2FIFUIvEdVMSfcVKiCg9QClJVOSPGJGQ xk6LCKYzcA7knxDiBKj5woN+mfbkd1i7OjeCAOjV/i7USHfVx3Jtdl6KcYb76jleR+0L 7AVhfvVgWc9vd/q9LWEK1gpVlmSk0xo1/0Tb7royEI5+uYWfimrVHWIZUZAmuvXfP4Rh I8SbngcYXqpyQSi3963kDwUFnYk8OaalnUeo4kr+2L456KfKHoSS/sZNS5iJyaNSUQqU z/8g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l33si13832689ede.457.2021.07.05.02.01.35; Mon, 05 Jul 2021 02:01:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbhGEJDA (ORCPT + 99 others); Mon, 5 Jul 2021 05:03:00 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49362 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhGEJDA (ORCPT ); Mon, 5 Jul 2021 05:03:00 -0400 Received: from mail-ot1-f69.google.com ([209.85.210.69]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1m0KSk-0006yJ-Cc for linux-kernel@vger.kernel.org; Mon, 05 Jul 2021 09:00:22 +0000 Received: by mail-ot1-f69.google.com with SMTP id q20-20020a9d7c940000b02903f5a4101f8eso12853188otn.17 for ; Mon, 05 Jul 2021 02:00:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I6wYMggQL4Kc/x8xMyA7h2j3whmdqB7IgTt34u11Uos=; b=dHY4WfwMkPQTHIFxM3ZBymaMexa7+NxJLF+oHwq+yANlsFQPUFDVEMaK0LhIpy7c19 8be4bBRnYFT4HAd205PVfsvSc9Fl9yYRpT/thUAwdK41OB8a1CqEwIqY0unfMPPbiQDO eVCOa5oBcYoAJGMY4nj6OmVr7eoLL9JmeOdQpALPqHovi5SKt2+xnbRa8poKg+zgjA/a qQneEAS+Tq5B1Syjijb+l5lXhQNqw9Ss2yM9sGOV8Pq+zjhv+It7dS/BVf/AtrtjjIHH ANcHCObfsZjcAo91yI+yuWbMTeYyv40KIzmIS11Be9/ICiJuiA9e3HlZq3LWE4Fol7BL K6XA== X-Gm-Message-State: AOAM533FTVunit4yFU+P0+HwvTKhRlnFRwEbPR9Y3YIA6HpGJNGReexq mQ5x6hqT8lO+86BGlUDY6FO/Du2LAWw3H0Dm0DabTELLRDlYnz2yGsiZ4yD/XKwFoFjr6oMbMUd jMeZ5nRtfX/wvBzcR1BhkFPxw2JLBXkMcG9sKJHS2m8Nqt8jr1DG3yO6Muw== X-Received: by 2002:a05:6830:1f19:: with SMTP id u25mr6524524otg.303.1625475621314; Mon, 05 Jul 2021 02:00:21 -0700 (PDT) X-Received: by 2002:a05:6830:1f19:: with SMTP id u25mr6524509otg.303.1625475621095; Mon, 05 Jul 2021 02:00:21 -0700 (PDT) MIME-Version: 1.0 References: <20210701163354.118403-1-chris.chiu@canonical.com> <87v95thzu1.fsf@codeaurora.org> In-Reply-To: <87v95thzu1.fsf@codeaurora.org> From: Chris Chiu Date: Mon, 5 Jul 2021 17:00:10 +0800 Message-ID: Subject: Re: [PATCH] rtl8xxxu: disable interrupt_in transfer for 8188cu and 8192cu To: Kalle Valo Cc: Jes.Sorensen@gmail.com, davem@davemloft.net, kuba@kernel.org, code@reto-schneider.ch, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 2, 2021 at 4:42 PM Kalle Valo wrote: > > chris.chiu@canonical.com writes: > > > From: Chris Chiu > > > > 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. > > The last paragraph is not entirely clear for me, can you elaborate it > more? What do you mean with "confusing interrupts"? And is this fixing > an actual user visible bug or are you just reducing the number of > interrupts? > It's confusing because there are 8000~9000 interrupts per second even though the association is not done yet and no traffic is pumped. It's also way too many even the reception of the beacon frames triggers the interrupt. This huge number overwhelms the normal interrupt we expected from the register setting (only < 100/sec if runs with rtlwif/rtl8192cu driver instead). It's difficult to judge where/why the interrupts come from and what possible overhead it could possibly incur. > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches