Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6862838rwd; Mon, 19 Jun 2023 13:47:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7L3kC040BFzPPLIN6RbdA26675R/kH4eIwt2nTpppQwPCh6K2goYdkLXMXvlNgEPukoyYm X-Received: by 2002:a05:6e02:68e:b0:341:c917:cbc2 with SMTP id o14-20020a056e02068e00b00341c917cbc2mr6432766ils.20.1687207665878; Mon, 19 Jun 2023 13:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687207665; cv=none; d=google.com; s=arc-20160816; b=yArcAVPQpQw9RD/8Hq14xNYkAQSDTB0N10CGbpUTrxb4PP5U/WTv5H97VXm3plfDaX xykYYelZtNiQ4CdxyXt229QWPA7H18qckb5DAQ/Un3Q1CVr86wx/2mQw2TJEGUNi8fht R30o40yQljy6pWDBCvb4/Duznox3qTlF7lFCMZxWl4m5/5chdvDOnVmNPL9KYsIYBtOC scAyR01kxAuQ6cz5KYehPTyZGFHRRoGRQY4SFJ8YCIheNTlYgUG2U/7IEbpZnDUcy+wm IPL/cLp/GU8y+dlPRE/Ffmwzt2a0p/nV3MLuU7JxFR8mx4AJPtSFAz+4Jb8eguvWxIu/ 0dig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DtpLE5qHPtOxz3JvnqVEB0bNkepX8kdOysdckRMyYgg=; b=pzteQ+7CBzCIyt3/dHcTBO47m5FnLRB65un+tt0dLGL0lC8l8azrZmXl4Sf627Q66c l+yn2fHkSFXb3hbh3C8Yxh92nhzMTknWyRfR0JKut9tQ9ZA2nx673JS5TthWzNoR+0xK u96u+7S9/+OiiMhIKu6ffR5fognZPkyRX0xkB7jz8U1VeD8Nnhhi/mKKnvhK7y9hmG8z rm5EWCfdvr81uK33iy30pNjYXhi9FHdPLMfU1bPJrPkU34oMcOVh1snMZf4AD1ZTwoXo 3hwaDghdb9aoNT5uQUg/a0r8AoPai/Hqolc1XsSGTnPDPUr5H3/7d0aWeBUQvqrSAEjv 1DqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=rvkLawxz; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a6546c3000000b0054f73f08ea9si228002pgr.393.2023.06.19.13.47.33; Mon, 19 Jun 2023 13:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@googlemail.com header.s=20221208 header.b=rvkLawxz; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjFSUiu (ORCPT + 59 others); Mon, 19 Jun 2023 16:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjFSUit (ORCPT ); Mon, 19 Jun 2023 16:38:49 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E8F710CA; Mon, 19 Jun 2023 13:38:37 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-518b69d5b5dso5509582a12.1; Mon, 19 Jun 2023 13:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1687207115; x=1689799115; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DtpLE5qHPtOxz3JvnqVEB0bNkepX8kdOysdckRMyYgg=; b=rvkLawxz9hc+T0TGLFdmddivEyr/FgkvAGyk3Nz/wHgxDuAu4DgeqxTMFeEaIi8z5J MCFO6egg5SHEO5wprUe4CJQBfLkWJCjxXD8pGOvb5LeT72XFiNgCQfv9c6y+CNYUJNSe O/IY8PLuUB2mOEfHzX4V3dLLibRmAy6bUrsyXNHwOwkeaPjRR6N5D/4AMTqPwGmBhjJM TfXisLpOdbIJgOYQEx9A7YycweOmNLrsbf4YJGEV42Cr3LC+V0lKwAxPPs5ED5Zv/PfL Y6nL9CqtzfVwoHdZ7tw2Pj6K1uV/gihO4RmpOy0nCS5HbnuyJHs3aaH3OZrkyhF6iH+D uBCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687207115; x=1689799115; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DtpLE5qHPtOxz3JvnqVEB0bNkepX8kdOysdckRMyYgg=; b=kDuIbmtV4CMrwVcEb/bPzwquFZXiJV/CqnahZFrLT1zfrhALXCERzuZvZopsTpDYCo enLmw8y5KtKnkJvPjlUEmLuERKgpfh/i8sdSCx3sX9WFtEZC7fN/4YQwAGFJOkX36Xju qrigStA1poCi7o4TyM9R/Z4LTJ1VQVMy+edW12CpQESX+wJfnvUYDDyWMl3A7p+3UFcI j3g88aiDSTWA+iwYiR8ZszTXRJWma1WuLnROHIv5bfB8OoIbwXZkIJ+XGmzY79PsXy37 o8eDLyeinkUFuK/PLbtXSttDxOc7TT/Lw7TdynhvPb8aEQsOlxDYvb5+xtfU4eNblGT7 f24Q== X-Gm-Message-State: AC+VfDyTHpAOWrqCou0Gvj6kKoqlQv4b8IpGxEgHNjJ/jljRCRJevp3T u/gSt/t6CVVRj38S/p1Lcbab7bsQkbxyQ50qUM0= X-Received: by 2002:a17:907:3f17:b0:969:93f2:259a with SMTP id hq23-20020a1709073f1700b0096993f2259amr10368612ejc.73.1687207115503; Mon, 19 Jun 2023 13:38:35 -0700 (PDT) MIME-Version: 1.0 References: <9ab8cc85d4d440bfa63dcade4e4f9ecf@realtek.com> In-Reply-To: <9ab8cc85d4d440bfa63dcade4e4f9ecf@realtek.com> From: Martin Blumenstingl Date: Mon, 19 Jun 2023 22:38:24 +0200 Message-ID: Subject: Re: wifi: rtw88: question about SDIO RX aggregation limiting To: Ping-Ke Shih Cc: "linux-wireless@vger.kernel.org" , "Lukas F. Hartmann" , "linux-kernel@vger.kernel.org" , "tony0620emma@gmail.com" , "jernej.skrabec@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org Hello Ping-Ke, apologies for the long delay. On Tue, Jun 13, 2023 at 4:20=E2=80=AFAM Ping-Ke Shih w= rote: [...] > The unit of BIT_RXDMA_AGG_PG_TH is 1k bytes, so I think you can > set mmc_host->max_req_size/1024. I tried this but I got a result that I don't understand. I've been testing with three BIT_RXDMA_AGG_PG_TH values on a SoC that can handle 255 * 1024 bytes. Each time I connected to the same AP and downloaded a bigger file over http(s). BIT_RXDMA_AGG_PG_TH: biggest observed rx_len in rtw_sdio_rxfifo_recv() 255: 20968 6: 5122 1: 1602 The biggest rx_len I have observed for BIT_RXDMA_AGG_PG_TH 1 looks suspicio= us: My understanding is that I shouldn't be seeing rx_len larger than BIT_RXDMA_AGG_PG_TH * 1024. BIT_RXDMA_AGG_PG_TH =3D 6 is within this limit but BIT_RXDMA_AGG_PG_TH =3D 1 isn't (I'm seeing 578 extra bytes in addition to the 1024 bytes that I was expecting). Do you have any idea where this is coming from? I'm worried that we can still end up with the problem that Lukas described but seems to not have hit in his testing with BIT_RXDMA_AGG_PG_TH =3D 6 > I wonder why 0x6 works on Amlogic SoCs. Could you or Lukas compare perfor= mance > between the settings of 0x1 and 0x6? I can do this later this week but I'd like to understand the above results first. Best regards, Martin