Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1472905rwb; Thu, 8 Dec 2022 11:04:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6BmLkj+jxjnsmHj1IWoDTWqbrZ4iRAjPB518un8jJeQDd/Edi2v9T3fDtBR8oysN2jTVUw X-Received: by 2002:a63:e70b:0:b0:473:e502:9a21 with SMTP id b11-20020a63e70b000000b00473e5029a21mr67557945pgi.238.1670526275908; Thu, 08 Dec 2022 11:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670526275; cv=none; d=google.com; s=arc-20160816; b=seAwy1pxsNIO/Aien/0UaUoqaFsrqAC5DYJxcJGqXFNDYUxJd/sZbuHF0Lsm9dG9OD +AUqf8jao71kPq1zJhWudaf6459nGC/jPYImthw0y+RBvjmdt1gfAYbhNYEaXNF0gEml kwQ38BbHQgy+99o9AswrDr27WFhIIfQ+9hxcTF0F9oRaBqQ7qRVNAJp8DD8X9Lb2A/Fu V4rWyfPd6W31XW6JWS3fmjgxGq3l4uUnStr8PAqU9mOtdf7pFxvS9SDG0Gg3/ndwZrLf OoYW5Eh9pIoN2EwXAu9EsS6oVBTHKmQqan/aq6+BdSN9i5R7NHp5MaqEzOYqoF+W7f0d IDDA== 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=cHBd1LUYgt8nRnA3iCK/TNRnErBYIMJUhPKxNqLLmew=; b=q6De2ZjFD8I2VY88DP9NLcndTmYWYHhP8TK850alyJPVRWLMJrq43v/om6jPZDxqA+ RQTiYn9HN8ZGk/xjx5gW73HMxtEr46Hu0OFg+o9e5h8etQfQ9ntLzd6qa8s1x4oCFqA1 kWoz8X1D4p76K8GedjNfcpmZtYfTo29waWSWTD/pcho/8vIWhCsynBciqYPv/e35Vk70 qZcumA4WjH5Nt4/+w3Q02paKluMe5F/HkrJJqcO0G2de6WEBdyW8pHVo1nkWMOBlgPwc cM0114rOc1rSRCP38y8wGl5TP6RCeR2HeBwNkHMQ1uyF4+16R10ti1GWlL/zy+NCIffq 6Erw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T9vyuAC7; 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 b7-20020a656687000000b004789976b13csi16679859pgw.254.2022.12.08.11.04.07; Thu, 08 Dec 2022 11:04:35 -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=@kernel.org header.s=k20201202 header.b=T9vyuAC7; 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 S229564AbiLHSoS (ORCPT + 65 others); Thu, 8 Dec 2022 13:44:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiLHSoR (ORCPT ); Thu, 8 Dec 2022 13:44:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C2B48424D for ; Thu, 8 Dec 2022 10:44:15 -0800 (PST) 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 34ACC6201E for ; Thu, 8 Dec 2022 18:44:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 655C3C433D2; Thu, 8 Dec 2022 18:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670525054; bh=qu6zltMr3RVYYbEm2nNXjyjuc34po3m1owsgFYOCZUM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=T9vyuAC7cmiVOb0Cb5iTXgHIlW2f8QDkg2myfhF7a6kf8n85tkthzEYQruT3iAOI+ UPXuRaGxxrMjmM+YoR5BP6mB9/fxSfYzNzlb97MtjXFCr3+31LLDEZC7Fc8s5VN3LM EgOwpdZof6MFSHgzurgGAQqw4qDJfQuYX8EhaF2225fTClwsgI/Qr6R5sDnJHPoV1q BQFG+iWk53WVu+WJP6GvrJmqo3xUh590u9xzhv9X0EnYO7zF1q+tYQaiGpSrC8NgJ5 pdRDW+HF8gVbWh8uYqUHnU9uINTi1rd2OQzI9kTtw/r7b2vpTegWMIcCwQqWhtE/lI ypdDwMoWYAEUw== From: Kalle Valo To: Christoph Hellwig Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, debian-kernel@lists.debian.org, debian-boot@lists.debian.org Subject: Re: failed to insert STA entry for the AP (error -2) References: <20221130122807.GA31720@lst.de> <87o7so4nr2.fsf@kernel.org> <20221130125236.GA865@lst.de> <87k03c4mdb.fsf@kernel.org> <20221130133016.GC3055@lst.de> <87sfhx3ap6.fsf@kernel.org> <20221203155227.GA13254@lst.de> <87cz8v2xb2.fsf@kernel.org> <20221207134025.GA21691@lst.de> Date: Thu, 08 Dec 2022 20:44:11 +0200 In-Reply-To: <20221207134025.GA21691@lst.de> (Christoph Hellwig's message of "Wed, 7 Dec 2022 14:40:25 +0100") Message-ID: <87lenh20sk.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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Christoph Hellwig writes: > adding the debian-kernel list due to issues with using debian-installer > daily snapshot to install on my brand new laptop with an ath11k_pci > supported wifi chip. > > It turns out that while d-i comes with the ath11k and ath11k_pci > drivers, but misses the qrtr, qrtr-mki and michael_mic modules that > are needed for the driver to actually work and not just load. s/qrtr-mki/qrtr-mhi/ And also CRYPTO_MICHAEL_MIC is needed. This the copy from Kconfig file which should be an accurate list of dependencies: config ATH11K tristate "Qualcomm Technologies 802.11ax chipset support" depends on MAC80211 && HAS_DMA depends on CRYPTO_MICHAEL_MIC select ATH_COMMON select QCOM_QMI_HELPERS ... config ATH11K_PCI tristate "Atheros ath11k PCI support" depends on ATH11K && PCI select MHI_BUS select QRTR select QRTR_MHI > On Wed, Dec 07, 2022 at 02:49:37PM +0200, Kalle Valo wrote: >> Thanks. But this makes me wonder is it sensible to randomly install a >> set of .ko files and drop the rest, like Debian's installer apparently >> does? The dependency for drivers is pretty well documented in Kconfig >> files, thanks to build testers testing with random configurations, but >> if the installer omits all that there will be problems just like you are >> experiencing. So for me MODULE_SOFTDEP() feels just like a band aid and >> not a robust solution. > > I think a driver that a driver that has a runtime depedency on a > certain module, but doesn't import symbols is always going to be > somewhat problematic. But I also agree that the arbitrary splitting > of kernel modules into separate packages for the installer, or > in fact not packaging them at all for the installer is rather > problematic. I'm not sure what the rationale is behind that, but > I've added the debian-kernel and debian-boot lists. > >> Though I am happy to take your MODULE_SOFTDEP() patch, just wondering if >> there is a better way to solve this. For example net/mac80211 (the >> 802.11 stack) has a lot of crypto dependencies: >> >> select CRYPTO >> select CRYPTO_LIB_ARC4 >> select CRYPTO_AES >> select CRYPTO_CCM >> select CRYPTO_GCM >> select CRYPTO_CMAC >> select CRC32 >> >> And it's not using MODULE_SOFTDEP() at all. > > Yes. I'm not quite sure how the packages for d-i select which > modules to include where, but given that other wifi hardware > seems to work in the installer they must have figured this out > somehow. For older ath driver (ath6kl, ath9k, ath10k) the dependencies were quite simple. ath11k was the first driver requiring MHI and QRTR for PCI devices, so in that regard it's not surprising that this problem comes up only now. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches