From patchwork Sat Apr 23 19:50:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 565613 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 961D3C433F5 for ; Sat, 23 Apr 2022 19:50:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236936AbiDWTxO (ORCPT ); Sat, 23 Apr 2022 15:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236925AbiDWTxN (ORCPT ); Sat, 23 Apr 2022 15:53:13 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05130BDA for ; Sat, 23 Apr 2022 12:50:14 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id s14so18212815plk.8 for ; Sat, 23 Apr 2022 12:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NnaG27CUaF96qRrvNCKtI1jKKcB/F0ggNK0LpZNX450=; b=euvqk/3k5nOsdbMbphMEN4CwhHk+MVqAtb6+sfEQPJ448w0ggdkR+rcGKaevDGxoNk bOMGahgHVkcsUAPcl/LhZDuTB1MblzoVJHEkc4qKEmG2ekAolZj1IVdErGWNMM3rTQNK JbG2dGea4xzd2gH6xT4Y03yutNxe4uZNDxKiteEI1v+RoGFc8DO3KeQGAP3HEZxqx2cb XO7Pi8HdzhH86C8L3QXz2EpfpoZRd43/kQp5y4IXRlKEuhEy1TlYLd/C/x1Ll9fputQ5 vHIhGkgm5js/ND2+KhZpuTD8q0ysc6CZ2RBvI5i2Rt9v6Eg94RtY7dnTMXUIMkpv7rBg g0iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NnaG27CUaF96qRrvNCKtI1jKKcB/F0ggNK0LpZNX450=; b=eVcpXpX09tcbvzfFal8oc0J0lPQh93gc6t3FjVNbd+ufx6mEkAeH7rW1ZLsBGNVx2P aoPBzwa/gVGyg3Ilc+j4RgrVTY6CtOkznk/cq+vD6Vt32225Fs8YwPzGOLADgVFTlcD3 l/BeiMqI5ZJwAdyUegVckKniH/8OoLalyi1545AeZP568Jhj/U6eIBjjZ4+Aoi3Lez86 mkZK9nn1sOvZOLTXv/bPopjnRPXOGUH+5QO72YtgWAIZ50SBwMZxw51DHUl0+n3lJVy8 uKe8lz+bHcSzcLLE97McO4uK1oUU9FPTESUcXZ4KMssPQGPdEibvTDjKI07HCGUJCo+l lyQw== X-Gm-Message-State: AOAM531+13hLoQH8ZTtGyXdZUE7vynRt9EBikAlituHUht8n7sLdmiKn VIv3UtaF1zAZPnRQ3ilBd8fxDgYF0/LGlA== X-Google-Smtp-Source: ABdhPJz+MlFDRUsCphdYzX6ga/IiEzYxo+rtWsKc2w02ngaXhEqKsTbIPV4kfcY7i/T+DD62oiCLaw== X-Received: by 2002:a17:902:e748:b0:15c:e3b9:bba3 with SMTP id p8-20020a170902e74800b0015ce3b9bba3mr4883928plf.139.1650743413356; Sat, 23 Apr 2022 12:50:13 -0700 (PDT) Received: from localhost.localdomain ([223.233.64.97]) by smtp.gmail.com with ESMTPSA id g17-20020a625211000000b005056a6313a7sm6308781pfb.87.2022.04.23.12.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Apr 2022 12:50:13 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, Vinod Koul Subject: [PATCH 1/1] arm64: dts: qcom: sa8155p-adp: Disable multiple Tx and Rx queues for ethernet IP Date: Sun, 24 Apr 2022 01:20:03 +0530 Message-Id: <20220423195003.353150-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix the issues seen with ethernet traffic getting stalled on SA8155p-ADP board with default (or larger) mtu size of 1500 bytes, by disabling multiple Tx and Rx queues for the stmmac IP block. With the single queue setup, the ethernet traffic is stable, wget / curl can work well on the board and no ethernet stall is observed even when longer netperf / iperf3 test are run. Also a performance of ~940 Mbits/sec is observed on the 1G link, so there is no observable degradation in performance as well. Cc: Bjorn Andersson Cc: Vinod Koul Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 40 ++---------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index 8034d0d31bd0..ba547ca9fc6b 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -49,7 +49,7 @@ vreg_s4a_1p8: smps4 { }; mtl_rx_setup: rx-queues-config { - snps,rx-queues-to-use = <4>; + snps,rx-queues-to-use = <1>; snps,rx-sched-sp; queue0 { @@ -58,28 +58,10 @@ queue0 { snps,route-up; snps,priority = <0x1>; }; - - queue1 { - snps,dcb-algorithm; - snps,map-to-dma-channel = <0x1>; - snps,route-ptp; - }; - - queue2 { - snps,avb-algorithm; - snps,map-to-dma-channel = <0x2>; - snps,route-avcp; - }; - - queue3 { - snps,avb-algorithm; - snps,map-to-dma-channel = <0x3>; - snps,priority = <0xC>; - }; }; mtl_tx_setup: tx-queues-config { - snps,tx-queues-to-use = <4>; + snps,tx-queues-to-use = <1>; snps,tx-sched-wrr; queue0 { @@ -87,24 +69,6 @@ queue0 { snps,dcb-algorithm; snps,priority = <0x0>; }; - - queue1 { - snps,weight = <0x11>; - snps,dcb-algorithm; - snps,priority = <0x1>; - }; - - queue2 { - snps,weight = <0x12>; - snps,dcb-algorithm; - snps,priority = <0x2>; - }; - - queue3 { - snps,weight = <0x13>; - snps,dcb-algorithm; - snps,priority = <0x3>; - }; }; };