Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1927320rwr; Fri, 28 Apr 2023 03:59:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KmuO1MX3Pk2WR6DiEh0WCz4w9ms+Cfw0zMT6wwJqO5wK4tgmAgLY/wUNJhAr/sQ6l8yCA X-Received: by 2002:a05:6a00:1ac6:b0:63d:6228:6893 with SMTP id f6-20020a056a001ac600b0063d62286893mr6675910pfv.3.1682679544456; Fri, 28 Apr 2023 03:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682679544; cv=none; d=google.com; s=arc-20160816; b=PNZCoaK5zUbs6ySaY5FCyleq9RrYtiazu7ddhRCb3KMSF067pP6x3L0rfdGrbhok1I Gp3ZSZvu2pG6/7zZjdnLl9tfby5XqJYzeGiSTlJjg1nXNqVxDBwk6VRVR/r5DHnEgefh bieD+zN5dC9DAWAivkRddFimNWlqwhd43vDKoGRmtpFgXMADdMoExcfPb+qR7cI5Ne/3 nxTeakyTPWe3ZlNIYAf5JqcM2FBWnunuuzwkUnsvmhnfY9OeSgLvK6JOqQvavL1qoiUa V4fOsrGuKkvD6tWAwWXpP7llWRNoM2Wymi/s7mQUjlRPEY1vL3+mHtxsLnChIHSydMxS af5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=bhAsKGVtHc5I6BdqL+xCQW9fsHjvnI6RwFFbcxH1IdM=; b=NA6+LSEiTa3FV9+NqmXH2Xn5TTVirFGzccnWqVvdYlNG35W5Rgp0BmmMqbrjL0G4Ho W6NPLC8HxYGFAiUrhXSpeaD1ZbzUqkuxsmLfcnx3iyhwSim4h9L5d6nerZW1HgwY3p8C Pq8xAN2FVj92gi5j/RlqBq6ssdgE08/V7AKc9/D+7mn27EXAnj5yvC3yltLvTwNya3DK spKnc+Emr9R/Rascho986PmBWjjY4ol6oR28yPvubTbN6pELSw10xDw9TOKwRGZ7L8ej UZShGNYvxBjGV2qPOCBz36Hfo3TlZ5ffab+q+GCGFuC766XHMxnR8vqT/KW7LBsYr4P0 zFtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pQ0n3z9H; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020aa79559000000b0063b85b18764si22094192pfq.219.2023.04.28.03.58.54; Fri, 28 Apr 2023 03:59:04 -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=@kernel.org header.s=k20201202 header.b=pQ0n3z9H; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345755AbjD1Kn0 (ORCPT + 63 others); Fri, 28 Apr 2023 06:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345591AbjD1KnW (ORCPT ); Fri, 28 Apr 2023 06:43:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EB092706; Fri, 28 Apr 2023 03:43:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 373DB60C0D; Fri, 28 Apr 2023 10:43:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99344C433D2; Fri, 28 Apr 2023 10:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682678599; bh=cr4spr+W66ImQd/SIrHqDWMlzeS4k1hTXtCqSr7iwq4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=pQ0n3z9HiSrlu//prMDjjr0LEr/n6Rd6ox4qzO2h2D82IqV1bm27D4lqc90sN3rcK sLzSg9ZhcPmBePPlEbMnmgri1fX3tLlahglqBimvJhDkXXy0iZHgb4h6+wvOMcxdDC 5WtDDo2CShXyWCCOksggWKENeXdAoW/F+wdBAbzb9DayPIIzffzsrba0mMYb3XB1X/ /YfazB9vuv+tq2WGf3rjRNQdKslzPoQER3Ifgvach0/uN/XEhhC6KdN8pXSDyFfEzb mYREaOdM99EucnGEMhI2SlxyPBMkku0ByUrTnJ358yyJBDiA2kwk+PRgOlunEZmxwv jNBtpZeujTk0w== From: Kalle Valo To: Jakub Kicinski Cc: Ping-Ke Shih , "netdev\@vger.kernel.org" , "linux-wireless\@vger.kernel.org" Subject: Re: pull-request: wireless-next-2023-04-21 References: <20230421104726.800BCC433D2@smtp.kernel.org> <20230421075404.63c04bca@kernel.org> <87leigr06u.fsf@kernel.org> <20230425071848.6156c0a0@kernel.org> Date: Fri, 28 Apr 2023 13:43:16 +0300 In-Reply-To: <20230425071848.6156c0a0@kernel.org> (Jakub Kicinski's message of "Tue, 25 Apr 2023 07:18:48 -0700") Message-ID: <87cz3os2wr.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Jakub Kicinski writes: > On Tue, 25 Apr 2023 08:38:17 +0300 Kalle Valo wrote: >> IIRC we discussed this back in initial rtw88 or rtw89 driver review (not >> sure which one). At the time I pushed for the current solution to have >> the initvals in static variables just to avoid any backwards >> compatibility issues. I agree that the initvals in .c files are ugly but >> is it worth all the extra effort and complexity to move them outside the >> kernel? I'm starting to lean towards it's not worth all the extra work. > > I don't think it's that much extra work, the driver requires FW > according to modinfo, anyway, so /lib/firmware is already required. > And on smaller systems with few hundred MB of RAM it'd be nice to not > hold all the stuff in kernel memory, I'd think. Later in this thread Ping explained pretty well the challenges here, that sums exactly what I'm worried about. > We have a rule against putting FW as a static table in the driver > source, right? Or did we abandon that? Isn't this fundamentally similar? My understanding is that these are just initialisation values for hardware, not executable code. (Ping, please correct me if I misunderstood.) So that's why I thought these are ok to have in kernel. So I took practicality over elegance here. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches