Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6207941rwl; Tue, 4 Apr 2023 09:12:38 -0700 (PDT) X-Google-Smtp-Source: AKy350YR7ZXDD4bxjZkVewG1JnffBSobndeZwE75FRripmDY3T7BTqwH0lflpzbaDRgDJnk7cxCM X-Received: by 2002:a05:6a20:bcaf:b0:e7:33df:44f1 with SMTP id fx47-20020a056a20bcaf00b000e733df44f1mr698960pzb.57.1680624758569; Tue, 04 Apr 2023 09:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680624758; cv=none; d=google.com; s=arc-20160816; b=PGczE/eXvY28ppm0KSBE+L5tD9aLwTf09DtZVNVI2rNtsL7v0luxKxChBdXOqa4Dms sGlGXQioRGO3iIOtpUIy1wjiDV1hM493PVtSwfQjTWOendleCj1HZzbPTIiFCq9JvdtE eV13F0kFjO/usQGP8L0o08FDIISoWOABQWqjCjY4sd5NPbvuYCsdOGWFMOIos17eb5Kw KPoBnmaQ/I46fmr42y5LfnEba6aNsnUv2ErbGWcqYCpu5xJM9pob/9rZFWDAXNobtCfV t6fQnxGPi17PqWF1gj80xzjPUVDuy3xZ/+d9qiiGCTiFv4VwJR8U9qObYhXOvweo5eGW 5+3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HiU3if4aSnTSI5trh7T4WbgZ3U5SoL0/lK0aVqatzxc=; b=BKmYi1oDWQgrYJx9GKhvPO44fb1QcdUnH/mk23cZ4+potIxoQxjEd0C6COtTnYltjh Ak1cLFhGBBXyNK22JMOJKHOb6kV917efHxNVcy3lN7BgPsgqRGIbpUorExPKpY1UATI6 wGiUsdAuGftTaren+RTTUKmvsM1PROqC8UtEJd0AUC80aOHGNaSW1VEt/n3TFzLdV+DU y4WMz0kqghR9+nwzSOolHHKM5w7hVFZX8KNuMOK6/KTq2iCRUI2hkas2cXz3S3Pc+UZV QZqwvy4lvO4M7nJXD80O5jGhh32343T2OadWeT4Mdmx+YKx5C/2jhEAVzRIcQH/ok4HH OtGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@free.fr header.s=smtp-20201208 header.b=WtFGeqKJ; 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=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a63474b000000b004fba35db0a7si1012238pgk.160.2023.04.04.09.10.52; Tue, 04 Apr 2023 09:12:38 -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=@free.fr header.s=smtp-20201208 header.b=WtFGeqKJ; 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=NONE sp=NONE dis=NONE) header.from=free.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235932AbjDDQJR (ORCPT + 59 others); Tue, 4 Apr 2023 12:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235925AbjDDQJM (ORCPT ); Tue, 4 Apr 2023 12:09:12 -0400 Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B954685; Tue, 4 Apr 2023 09:09:09 -0700 (PDT) Received: from [192.168.108.81] (unknown [213.36.7.13]) (Authenticated sender: marc.w.gonzalez@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 50FA12003B4; Tue, 4 Apr 2023 18:09:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1680624548; bh=m4kLlVdfx4CPshc3rsvvK75Jls1tGv0nt9joXO6qw+0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WtFGeqKJRt410YiomYnRep3xygMlOdQLzsmxsRiOfYEYEanEvkvQiCrPDtR9mJVV+ Bxf5573yX/Tar0WRz87MotbJdGFOpT2ZXQfGIkmiZPlp8LswiRRtD25X81vvE2ZNLM lVEb5vhxlJut/rmBcMufp4OCRdWhGq2phrQDYueyNyOw8N+KhNm+Guh7pOQ+xxDZU/ U5U2To6IYgcetbe4q53zxjST+f6bnfnbtYu4k3AGUxURvuERHtV101QzOiSVmsVP/S 0cQM8idCEmwLgcS6CdoA3CisrCxmfhoZqBv4zpliW6dWOqt/kyKmtA59Iv0iQ20TK5 0EBJT4Iu7FAGQ== Message-ID: <0bb1e3b3-6823-ddb5-001b-72ee1b63779c@free.fr> Date: Tue, 4 Apr 2023 18:09:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [Performance regression] BCM4359/9 on S905X2 Content-Language: en-US To: Christian Hewitt Cc: Linux Wireless , MMC , AML , Neil Armstrong , Ulf Hansson , Pierre-Hugues Husson References: <1jh6ue74x9.fsf@starbuckisacylon.baylibre.com> From: Marc Gonzalez In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 [ Trimming recipients list ] On 21/03/2023 13:26, Christian Hewitt wrote: > To Jerôme's point; unless you've tweaked it upstream will be running > at 100MHz and the vendor kernel will be 200MHz, and maybe with other > high-speed modes activated. As far as I could tell: For mainline, arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts bus-width = <4>; cap-sd-highspeed; sd-uhs-sdr50; max-frequency = <100000000>; For vendor, common/arch/arm64/boot/dts/amlogic/mesong12a_sei.dtsi bus-width = <4>; cap-sd-highspeed; cap-mmc-highspeed; max-frequency = <100000000>; vendor DTS has the following child node: sdio { pinname = "sdio"; ocr_avail = <0x200080>; /**VDD voltage 3.3 ~ 3.4 */ /* max_req_size = <0x20000>; */ /**128KB*/ max_req_size = <0x400>; card_type = <3>; /* 3:sdio device(ie:sdio-wifi), * 4:SD combo (IO+mem) card */ dmode = "pio"; }; Maybe the vendor kernel uses the above information to "boost" the performance of the SDIO-based WiFi adapter? > 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 'performance' 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've bumped all boards > in my tree that consume the gx-p2xx-q2xx dtsi to 100MHz without any > attributable issues being flagged by users.