Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1852756rwb; Tue, 29 Nov 2022 21:24:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GXLN7n9JtV75iyo1swiLYCi9oGDKVDUbV8+yAAl87GF1jSYYbj+83pfxlXdD6XdlITmS/ X-Received: by 2002:a63:2d44:0:b0:46f:7e1c:2bb7 with SMTP id t65-20020a632d44000000b0046f7e1c2bb7mr36441484pgt.368.1669785847986; Tue, 29 Nov 2022 21:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669785847; cv=none; d=google.com; s=arc-20160816; b=0YCyT5r1djdEzkWULuOO99jYO6X4PSmVqa37KHWGNBdLNDgCP1af1iX7QGN+/zgwvS NtH53RsRqqljfspBV79gR6a4fIMGRqglnfsPcFDB1HuMLD+f+KkWiKRxbsgXJrUsDPg0 KUtjvhIFY7+j7nCcNe8HcfxbvdGX+xOZmlp2nBzZAgFBNFQ7qwuojk3zulzFVTDfRKfK Kx6z7FYNQGiOtjHPKAknVQaUn4O0LkH2rZnZQNBMXeAkq1P13ifrpKXtgJ3Sase3Lukk VvNGXYVoeLlchT/EuvYyk89NQGTsOLQ92uqT3onw8Up4u1FBy6HPxT7In6/0OBLHzFfM l02w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=DCSleRMMJ2p57ueCOPywmaHJ67mHILAYJNrcY1t5G/Y=; b=Fesq5I731n1UpViuSPs5e49u5AxHNO4+ZQ60c3ZOpaZ4PbWx7pGCS17pQB1+PX/VjF fQLwzBba1PIuSqAOUlbUoN+nXe6ZZ52XYFeaQCXSb17+0JzAhC7zzSczbT17OO8W7+Ba 86P0sT/PG556wUGC6l/11KZC5NX8rc7d0iAnl+fBWi5ceCaoq3PDqTbZmXlppmCDfw0e kZEmudnX9eQqJlMwElwEBZceLkccafeBZsMkyTn7Meuq9Llx2PPkm22QgMQKu1h/s4Qs abDHvtKuQfIfTSDWmRiASlGWlFn8sPlP49v/6Kadj1c8tKZ6z+vg4xEwMMPtxksrdbrv zUlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5LsRBBm; 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 s7-20020a63e807000000b0045d60c88ad2si372781pgh.164.2022.11.29.21.23.56; Tue, 29 Nov 2022 21:24:07 -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=X5LsRBBm; 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 S233369AbiK3FPN (ORCPT + 67 others); Wed, 30 Nov 2022 00:15:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233497AbiK3FOd (ORCPT ); Wed, 30 Nov 2022 00:14:33 -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 8603A1658B; Tue, 29 Nov 2022 21:14:12 -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 247F061A0D; Wed, 30 Nov 2022 05:14:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC373C433D6; Wed, 30 Nov 2022 05:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669785251; bh=CqrmiuOOxenDGqbbJzSkLOlZlAOT8xZfVDi8NlAoucg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=X5LsRBBmSdMxilT7u1kEOnYe1lcKIhr0qRADdbDRXYrFsTm6sVEujTgKxCUkNV3rQ +qWzWRJ1xa7zhDoS4Ce94E10R+Zry4YJOWhaWl0snQqpJH0pvDRX0dGRV2SxKvX0W1 yqA2ZqCaHXV96Wv1cJU/IRHBQCJ7HsykzNNBaHN86cAvwq8/OkiJG908gRR4J5f0/g TbaX/DWOeTEz1oOg8Tx5qrgv2wWSQF0sQshbq5UFeizM21Mro4wD5smfET6tLOFnT2 mHQTtOusPTzAzsuU8OjlXoeJ9XvH1FP8dB/ZLlkjXS5NSyASvHjago/qe2MjgUi5z7 FQIEBOEoV7Kgw== From: Kalle Valo To: Nathan Chancellor Cc: Youghandhar Chintala , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mpubbise@quicinc.com, rameshn@qti.qualcomm.com Subject: Re: [PATCH v4] wifi: ath10k: Store WLAN firmware version in SMEM image table In-Reply-To: (Nathan Chancellor's message of "Tue, 29 Nov 2022 09:01:13 -0700") References: <20221117180534.2267-1-quic_youghand@quicinc.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Wed, 30 Nov 2022 07:14:05 +0200 Message-ID: <87sfi13tya.fsf@kernel.org> 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 Nathan Chancellor writes: > On Thu, Nov 17, 2022 at 11:35:34PM +0530, Youghandhar Chintala wrote: > >> In a SoC based solution, it would be useful to know the versions of the >> various binary firmware blobs the system is running on. On a QCOM based >> SoC, this info can be obtained from socinfo debugfs infrastructure. For >> this to work, respective subsystem drivers have to export the firmware >> version information to an SMEM based version information table. >> >> Having firmware version information at one place will help quickly >> figure out the firmware versions of various subsystems on the device >> instead of going through builds/logs in an event of a system crash. >> >> Fill WLAN firmware version information in SMEM version table to be >> printed as part of socinfo debugfs infrastructure on a Qualcomm based >> SoC. >> >> This change is applicable only for SNOC/QMI based targets. >> >> Example: >> cat /sys/kernel/debug/qcom_socinfo/cnss/name >> QC_IMAGE_VERSION_STRING=WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1 >> >> Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1 >> >> Signed-off-by: Youghandhar Chintala >> --- >> Changes from v3: >> - Changed patch title >> - Changed naming conventions >> - Removed MAX_BUILD_ID_LEN usuage >> - Added condition to call API >> - Changed depends on QCOM_SMEM to select QCOM_SMEM > > You cannot blindly select user configurable symbols that have > dependencies, otherwise you end up with Kconfig warnings. I see the > following warning in -next when CONFIG_HWSPINLOCK is disabled: > > WARNING: unmet direct dependencies detected for QCOM_SMEM > Depends on [n]: (ARCH_QCOM [=y] || COMPILE_TEST [=n]) && HWSPINLOCK [=n] > Selected by [m]: > - ATH10K_SNOC [=m] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && ATH10K [=m] && (ARCH_QCOM [=y] || COMPILE_TEST [=n]) > > That should likely be changed back to 'depends on'. The reason the other > QCOM symbols are selected is because they are not user-selectable, so > they have to be selected by the configurations that need them. Thanks, I didn't realise this. I'll send a patch changing it to 'depends on'. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches