Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5447816rwb; Mon, 14 Nov 2022 04:59:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fKd0WtoNFXF7pt/5ytdYiMTR2QYo75+v7k4hQT/TaOEXB2hD1etUocwBvPT39c/+5HBgB X-Received: by 2002:a63:d611:0:b0:439:3ca9:94a with SMTP id q17-20020a63d611000000b004393ca9094amr11536076pgg.107.1668430799649; Mon, 14 Nov 2022 04:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668430799; cv=none; d=google.com; s=arc-20160816; b=s0+hNNe31gB4dMJpWSklJ86VEsBkRqC8LNyNhvH0E2rBcP1TZvc10gkm8qJAP/nwNy h/FmeoZsMgquSCZC15x4gDJO1/KPqZ/NSDzDLVsSFGgiRoNDL12B9Nk7u7T8Gcc1JCY2 vtzsZhf1w9u7bJeLb5l/Nx9MX8ciZZk73DC2z3Q5b0q/6DYIzm5XN9gSg+771FveqNja srM05jr/Okx9QPaJZywC6AynrVMtucNtLfJLtiOfgs2CUNU+cDO7l7qCgXewvJNpj2S9 lBA0jgHQu1GqVExLrj12D2zZ+C88xJD6ZhDoKOlERsRseuPQ2i2j9RrfaK6NTFHSMQwk jAFg== 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=nF0I6kdDJTpniSeELo/ZkosFtRsk+tfClxJO5xWyxxk=; b=yO7NSgX9LrifjQVp7J2a6V2Qu1EO/eqaXrapqFIxTY/wKjvmB5V7TzIJkLwVAH6D5C FO/bHD7nzAY24FDpSLZtqG/6rIgF4YBCkJzZklxeTLTFH+R4AInPI/G2i3jANfinBTHK nSFQz8Puv7MxgpJS4shaRPbgAJ0JjNq/x9YfHoJ0Ftj5rkVoqubz9J1AKGw4Hgd54jbW GW/Faw+lmu46JDVP2Ob3uvtCiEroCJIR85V6Il2ZCiBpYt23Xcf21Xpudenaqt31b+0O FzydvSpWYg4XnCxIr5pYImLz31522sZXSpoNAX8onM5AirMXjLH7/IY4tnwXrBSnmwJp TXhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ciRd/Wku"; 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 jd9-20020a170903260900b001843b3789cbsi8697418plb.623.2022.11.14.04.59.49; Mon, 14 Nov 2022 04:59:59 -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="ciRd/Wku"; 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 S237626AbiKNM7k (ORCPT + 66 others); Mon, 14 Nov 2022 07:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237623AbiKNM7j (ORCPT ); Mon, 14 Nov 2022 07:59:39 -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 730C52610C; Mon, 14 Nov 2022 04:59:38 -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 12DBB6117F; Mon, 14 Nov 2022 12:59:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3BDEC433D7; Mon, 14 Nov 2022 12:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668430777; bh=Bqo8VHEKOh4b2/t4IKtYamnmb4QITdYQ/EJfORddcJk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ciRd/Wku/AsQYh4opphPAa7JXWu1GgVorWniVQ5/xseSsNCWOywBbKqe6RMF+ZPFt G4XLEvA51Th350+mE1g8JFpdBaJXwUGEt01zv2OcHVQQgsMNeyw8bIyyEyxHE9MgK8 x7mNGyK+z7+4rb+YiMtLx8krXVUDApP2wfoflnXYB/htCwTaNkLzxeBd7g4PtJcgMH Ojkt0QuIKGoatmlSquzA742Q6lIzXRaB2+gj18z+4/LAOdUm10WWBHSXboOWk2arW0 Bvn6RNUvNce4bquYp1QfM/8t7WzgBzoLL3FElrcoqN6pGlw5u7joVgbfghgHP0jszW 6SoZY3rPqi1Ig== From: Kalle Valo To: Youghandhar Chintala Cc: , , , , , kernel test robot Subject: Re: [PATCH v3] wifi: ath10k: Add WLAN firmware image version info into smem References: <20221111114235.10287-1-quic_youghand@quicinc.com> Date: Mon, 14 Nov 2022 14:59:31 +0200 In-Reply-To: <20221111114235.10287-1-quic_youghand@quicinc.com> (Youghandhar Chintala's message of "Fri, 11 Nov 2022 17:12:35 +0530") Message-ID: <87edu5bsjw.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 Youghandhar Chintala writes: > 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 WCN399X targets. > > Example: > cat /sys/kernel/debug/qcom_socinfo/cnss/name > QC_IMAGE_VERSION_STRING=WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1 > > Reported-by: kernel test robot > > Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1 > > Signed-off-by: Youghandhar Chintala > --- > Changes from v2: > - Removed blank line between trailers > - Changed memcpy to strscpy > - Removed version_string_size > - Added new condition fw_build_id against max length > - Added depends on QCOM_SMEM for ath10k_snoc > --- > drivers/net/wireless/ath/ath10k/Kconfig | 1 + > drivers/net/wireless/ath/ath10k/qmi.c | 34 +++++++++++++++++++++++++ > 2 files changed, 35 insertions(+) > > diff --git a/drivers/net/wireless/ath/ath10k/Kconfig b/drivers/net/wireless/ath/ath10k/Kconfig > index ca007b800f75..e6ea884cafc1 100644 > --- a/drivers/net/wireless/ath/ath10k/Kconfig > +++ b/drivers/net/wireless/ath/ath10k/Kconfig > @@ -44,6 +44,7 @@ config ATH10K_SNOC > tristate "Qualcomm ath10k SNOC support" > depends on ATH10K > depends on ARCH_QCOM || COMPILE_TEST > + depends on QCOM_SMEM > select QCOM_SCM > select QCOM_QMI_HELPERS Is there a reason why you used "depends on"? Other QCOM dependencies used "select", so I'm wondering if QCOM_SMEM should also use select? Please also use ath10k list for ath10k patches, not ath11k. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches