Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1896615rwb; Fri, 2 Dec 2022 02:40:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RKYvgPao434b/PdqyPlI2VMdQTxnQ1/2lIZKgx3YU6SryOUifRfE8UaVMsYP5eWgFh6S5 X-Received: by 2002:a17:903:1106:b0:189:528b:7a14 with SMTP id n6-20020a170903110600b00189528b7a14mr43640773plh.62.1669977639428; Fri, 02 Dec 2022 02:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669977639; cv=none; d=google.com; s=arc-20160816; b=t2zoxCHrXKqRuLlXOFiQl7kftxM8Mxb/lZoei5KtHYyON8ZuMKjuQe+G2vx25w0nqg vmqUo8dFnXqOe5wtOKtVOAM0/hg8ehwWcN144wKIoZR8rtbaW4CsLvRV5NgaQqytdM65 Ig4yAtT5z/74B4SP0QsOi43YcALKykRq/LvvABn5XfuT1DV3gbjzVob8WulRpgoOI8fl LTBU5wO8jw3m7moibcYtb70w2+oJXV3GNP+fJHaQ+oB45sMyjXuN8MWP9uq/45cs+onc i3SwJIfxb0tXRttRev0jsOAWl/dT1nZ54LGTzFFGOhUYhM//oRsd2/JK5rO+bTd/N8su LyEg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ShBFMQC1qoUGtszVkUtdT0bCXGy/aHWqCeRNdgF93tk=; b=ihWGue1oTMcLTnWLn7lMbAJ+eboCXeHyF+esdu+tQW1CwtjzJ7FfosRlGBPiGMLJSY oXrChX14rQHHdxTsnaoUODMBTY65UpRV21SNpxO49fRJbsESgBcQPehMFlwTjmBbnHIL WzjGNWauD/RgYH+YaGd5/8yWUfyYR3rqjzoaP+aO6rI7ysOuaT94dN5L+AHaxqBppAQP dH8BxhkZfRzI3Rj3lVE3LbEJOOSvzdNnU/0qsVxd2cKb0P1gOIM4zJs3v/MSHPRafjvy B1dYslDuupp/pIpVD/EAYwflvZ6pN1cy0w2K3CHaPKHumQdds2fpm8hjhywXIj7W+rX3 Yehg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LJX1haa4; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a656392000000b004787836f4d2si3230744pgv.111.2022.12.02.02.40.30; Fri, 02 Dec 2022 02:40:39 -0800 (PST) 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=@linaro.org header.s=google header.b=LJX1haa4; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbiLBKdT (ORCPT + 66 others); Fri, 2 Dec 2022 05:33:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbiLBKdS (ORCPT ); Fri, 2 Dec 2022 05:33:18 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A97EBF90B for ; Fri, 2 Dec 2022 02:33:17 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id f13so6754877lfa.6 for ; Fri, 02 Dec 2022 02:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ShBFMQC1qoUGtszVkUtdT0bCXGy/aHWqCeRNdgF93tk=; b=LJX1haa47Pzaxp9RGq2rCnIdnSF3Bkp3xczN3QZb3ZdLXD3SoKaa9duof6xgI+KjtL ygpw2n7L7o71be5LPFpFna7U+CkXbIplMJy3CYtoRjGvjziuM7u0zwJR7Bs7wOXF9K+L JgspF8fZEWscTVUYzFnzpZXbva9skg9EL7kvqAikTFCBdS7XyaiKdzsJfYsemvTRPRs/ S7EvWTWXGbfbuDJULuUwhEjrEMbN87QN8+Nor2XntWFef7fHTWGX2G/mcNaCiR3rcKs+ rThMhVdzQyQsEF5hbfM+yWfMWEnVfI5B5UhC3tW0QNpNUzuQrb917e5vCeZV5M2JbbCJ acAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ShBFMQC1qoUGtszVkUtdT0bCXGy/aHWqCeRNdgF93tk=; b=dfk1XyrT/cQzj6xoqVPjhsVNS0AriZMHzWeXQtFkD+NFsxP23AE3E0SSF+rLVdLnNt 664r12IU4nNDVgjPGRVmU+dgQe5rlpSkU6nf/CsSKITe8fC38ACDIMYrS8k0SLNzDjbd Lnr3si0imaxd0OS9xzdKAlxrsVd8D5PJ47jopF+enkc4N5CwVqXKYy4+XiPJAcYpLFVN ec/iXybKC4SWpg4yB4fuBCoevsXcPulytc1peaBdwxZ4ph7DpIsBC1M1QsJtPhp7q9pQ 5K7T0egcZG4Zsp0d03VRPX+M0r9eKqdWVwKIRgOxiRmq6GnROCwb4MrGjGSrXWH/zb6+ eCYw== X-Gm-Message-State: ANoB5plhQ1DoFKlTMRASYrBN3eL9dlHogTc46e9fwmSdeFw9b0e7Fl5I Ar4MIKhWVic7iwV29H0TQVdHGg== X-Received: by 2002:a05:6512:2283:b0:4b4:e6ee:6d92 with SMTP id f3-20020a056512228300b004b4e6ee6d92mr15508483lfu.542.1669977195630; Fri, 02 Dec 2022 02:33:15 -0800 (PST) Received: from [192.168.1.101] (95.49.125.2.neoplus.adsl.tpnet.pl. [95.49.125.2]) by smtp.gmail.com with ESMTPSA id j19-20020a056512345300b004b549ad99adsm31533lfr.304.2022.12.02.02.33.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Dec 2022 02:33:14 -0800 (PST) Message-ID: <6e4f1795-08b5-7644-d1fa-102d6d6b47fb@linaro.org> Date: Fri, 2 Dec 2022 11:33:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v2] brcmfmac: Add support for BCM43596 PCIe Wi-Fi To: Arend van Spriel , Linus Walleij , Kalle Valo Cc: =?UTF-8?Q?Alvin_=c5=a0ipraga?= , Hector Martin , "~postmarketos/upstreaming@lists.sr.ht" <~postmarketos/upstreaming@lists.sr.ht>, "martin.botka@somainline.org" , "angelogioacchino.delregno@somainline.org" , "marijn.suijten@somainline.org" , "jamipkettunen@somainline.org" , Arend van Spriel , Franky Lin , Hante Meuleman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek Vasut , "Zhao, Jiaqing" , "Russell King (Oracle)" , Soon Tak Lee , "linux-wireless@vger.kernel.org" , "brcm80211-dev-list.pdl@broadcom.com" , "SHA-cyfmac-dev-list@infineon.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Krzysztof Kozlowski , Rob Herring References: <20220921001630.56765-1-konrad.dybcio@somainline.org> <83b90478-3974-28e6-cf13-35fc4f62e0db@marcan.st> <13b8c67c-399c-d1a6-4929-61aea27aa57d@somainline.org> <0e65a8b2-0827-af1e-602c-76d9450e3d11@marcan.st> <7fd077c5-83f8-02e2-03c1-900a47f05dc1@somainline.org> <20220922133056.eo26da4npkg6bpf2@bang-olufsen.dk> <87sfke32pc.fsf@kernel.org> <4592f87a-bb61-1c28-13f0-d041a6e7d3bf@linaro.org> <87fse76yig.fsf@kernel.org> <87bkov6x1q.fsf@kernel.org> <28991d2d-d917-af47-4f5f-4e8183569bb1@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 1.12.2022 12:31, Arend van Spriel wrote: > On 11/28/2022 3:40 PM, Konrad Dybcio wrote: >> >> >> On 26.11.2022 22:45, Linus Walleij wrote: >>> On Fri, Nov 25, 2022 at 1:25 PM Kalle Valo wrote: >>>> Konrad Dybcio writes: >>>> >>>>> On 25.11.2022 12:53, Kalle Valo wrote: >>>>>> Konrad Dybcio writes: >>>>>> >>>>>>> On 21.11.2022 14:56, Linus Walleij wrote: >>>>>>>> On Fri, Nov 18, 2022 at 5:47 PM Konrad Dybcio wrote: >>>>>>>> >>>>>>>>> I can think of a couple of hacky ways to force use of 43596 fw, but I >>>>>>>>> don't think any would be really upstreamable.. >>>>>>>> >>>>>>>> If it is only known to affect the Sony Xperias mentioned then >>>>>>>> a thing such as: >>>>>>>> >>>>>>>> if (of_machine_is_compatible("sony,xyz") || >>>>>>>>      of_machine_is_compatible("sony,zzz")... ) { >>>>>>>>     // Enforce FW version >>>>>>>> } >>>>>>>> >>>>>>>> would be completely acceptable in my book. It hammers the >>>>>>>> problem from the top instead of trying to figure out itsy witsy >>>>>>>> details about firmware revisions. >>>>>>>> >>>>>>>> Yours, >>>>>>>> Linus Walleij >>>>>>> >>>>>>> Actually, I think I came up with a better approach by pulling a page >>>>>>> out of Asahi folks' book - please take a look and tell me what you >>>>>>> think about this: >>>>>>> >>>>>>> [1] >>>>>>> https://github.com/SoMainline/linux/commit/4b6fccc995cd79109b0dae4e4ab2e48db97695e7 >>>>>>> [2] >>>>>>> https://github.com/SoMainline/linux/commit/e3ea1dc739634f734104f37fdbed046873921af7 >>> >>> Something in this direction works too. >>> >>> The upside is that it tells all operating systems how to deal >>> with the firmware for this hardware. >>> >>>>>> Instead of a directory path ("brcm/brcmfmac43596-pcie") why not provide >>>>>> just the chipset name ("brcmfmac43596-pcie")? IMHO it's unnecessary to >>>>>> have directory names in Device Tree. >>>>> >>>>> I think it's common practice to include a full $FIRMWARE_DIR-relative >>>>> path when specifying firmware in DT, though here I left out the board >>>>> name bit as that's assigned dynamically anyway. That said, if you don't >>>>> like it, I can change it. >>>> >>>> It's just that I have understood that Device Tree is supposed to >>>> describe hardware and to me a firmware directory "brcm/" is a software >>>> property, not a hardware property. But this is really for the Device >>>> Tree maintainers to decide, they know this best :) >>> >>> I would personally just minimize the amount of information >>> put into the device tree to be exactly what is needed to find >>> the right firmware. >>> >>> brcm,firmware-compatible = "43596"; >>> >>> since the code already knows how to conjure the rest of the string. >>> >>> But check with Rob/Krzysztof. >>> >>> Yours, >>> Linus Walleij >> >> Krzysztof, Rob [added to CC] - can I have your opinions? > > I tried catching up on this thread. Reading it I am not sure what the issue is, but I am happy to dive in. If you can provide a boot log with brcmfmac loaded with module parameter 'debug=0x1416' I can try and make sense of the chipid/devid confusion. Hope this helps, thanks! https://hastebin.com/xidagekuge.yaml Konrad > > Regards, > Arend