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 BE2B5C74A5B for ; Tue, 21 Mar 2023 12:32:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbjCUMcF (ORCPT ); Tue, 21 Mar 2023 08:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjCUMcE (ORCPT ); Tue, 21 Mar 2023 08:32:04 -0400 X-Greylist: delayed 303 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 21 Mar 2023 05:32:00 PDT Received: from m204-238.eu.mailgun.net (m204-238.eu.mailgun.net [161.38.204.238]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 071561715 for ; Tue, 21 Mar 2023 05:31:59 -0700 (PDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=hewittfamily.org.uk; q=dns/txt; s=s1; t=1679401917; x=1679409117; h=To: To: References: Message-Id: Content-Transfer-Encoding: Cc: Date: In-Reply-To: From: From: Subject: Subject: Mime-Version: Content-Type: Sender: Sender; bh=Q0oU83KV+dMxg0xhWNFs/sIjQr7woKc+7NDfK7Itp1o=; b=PqkwFUKNwxZGwY6+Sva1yLe5zVTNiqjpYxhfAZOIMom0f3OTCVcGAfsR1s8KWTJW2GjpYXW4MDbtS7kADGA6zuutmpPBVt/CrKxX1XzR0+MRrxo02FTtTqDP78zwUSqGmp0ppZdle5Lyrmfq24zqc12NwndNkrPAZszkRpUlQEd68HWhizspOhkoB61MNFoV707bYvk+GX0f729Q0Cc2DboLr4twxr/kBXbT/VOuuFWj1u/HWlTahtsoAM+S2yryeZrdZYkWLKr2fl/vby19PCGiZgnDb5AuhelLaWVVlOCm+up20/XKfsZQ0FyyG1yjTCNi0GiWMEdkORVJUmEi3g== X-Mailgun-Sending-Ip: 161.38.204.238 X-Mailgun-Sid: WyJkZGUwZCIsImxpbnV4LXdpcmVsZXNzQHZnZXIua2VybmVsLm9yZyIsImUzNzIwIl0= Received: from mail.hewittfamily.org.uk ( [87.200.95.144]) by 65d6cd48f507 with SMTP id 6419a2847874da44904fb5e6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 21 Mar 2023 12:26:44 GMT Sender: christian@hewittfamily.org.uk Received: from smtpclient.apple (unknown [167.99.200.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.hewittfamily.org.uk (Postfix) with ESMTPSA id CDE507FA44E; Tue, 21 Mar 2023 16:26:35 +0400 (+04) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: [Performance regression] BCM4359/9 on S905X2 From: Christian Hewitt In-Reply-To: <1jh6ue74x9.fsf@starbuckisacylon.baylibre.com> Date: Tue, 21 Mar 2023 16:26:25 +0400 Cc: Linux Wireless , MMC , AML , Neil Armstrong , Arend van Spriel , Franky Lin , Hante Meuleman , Kalle Valo , Eric Dumazet , Ulf Hansson , Pieter-Paul Giesberts , Alexander Prutskov , Joseph chuang , Kevin Hilman , Martin Blumenstingl , Angus Ainslie , Heiner Kallweit , Pierre-Hugues Husson Content-Transfer-Encoding: quoted-printable Message-Id: References: <1jh6ue74x9.fsf@starbuckisacylon.baylibre.com> To: Marc Gonzalez , Jerome Brunet X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Synology-Spam-Status: score=2.909, required 5, MV_CASE 0.5, __THREADED 0, TO_DN_ALL 0, FREEMAIL_TO 0, RCVD_COUNT_ZERO 0, FROM_EQ_ENVFROM 0, MIME_TRACE 0, __NOT_SPOOFED 0, __BODY_URI_ONLY 0, MID_RHS_MATCH_FROM 0, NO_RECEIVED -0.001, FROM_HAS_DN 0, FREEMAIL_ENVRCPT 0, TO_MATCH_ENVRCPT_ALL 0, TAGGED_RCPT 0, MIME_GOOD -0.1, RCPT_COUNT_TWELVE 0, __HDRS_LCASE_KNOWN 0, SUSPICIOUS_RECIPS 2.51 X-Synology-Spam-Flag: no X-Synology-Virus-Status: no Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > On 21 Mar 2023, at 2:46 pm, Jerome Brunet = wrote: >=20 >=20 > On Tue 21 Mar 2023 at 11:40, Marc Gonzalez = wrote: >=20 >> Hello everyone, >>=20 >> I've been benchmarking an Amlogic S905X2 board. >> It provides a BCM4359/9 WiFi chip connected through SDIO. >>=20 >> There's a large performance gap between vendor kernel and mainline. >> (Downloading a 1GB file to /dev/null from a device inches away) >=20 > The title is misleading. You are comparing different sources. This is > not a regression. This is merely a difference. >=20 > If we are talking about mainline, then which board is it ? What is the > corresponding DT ? What is the MMC configuration in both case ? Have > you checked you are running with the same clock configuration to begin > with ? [snip] = https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/amlogic/= meson-g12a-sei510.dts#L428 ^ this device-tree (based on other chat with Marc) To Jer=C3=B4me=E2=80=99s point; unless you=E2=80=99ve tweaked it = upstream will be running at 100MHz and the vendor kernel will be 200MHz, and maybe with other high-speed modes activated. Most upstream device-trees are running a conservative/safe configuration at 50MHz to avoid past speed-related issues. As stability has improved over time most boards could be run at faster speeds, but =E2=80=98performance=E2=80=99 is such subjective = topic that it would probably need a large amount of testing to convince people to change the current defaults. That said (FWIW) I=E2=80=99ve bumped all = boards in my tree that consume the gx-p2xx-q2xx dtsi to 100MHz without any attributable issues being flagged by users. Christian