Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4716848pxb; Tue, 28 Sep 2021 02:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZRKIWMOUlzxXM/eR17TbHOPgZu1B1440WJaW+y9KSamDL96MR9OrUo8dDrWUO/StROMqc X-Received: by 2002:a17:90b:38cf:: with SMTP id nn15mr4364547pjb.81.1632821128493; Tue, 28 Sep 2021 02:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632821128; cv=none; d=google.com; s=arc-20160816; b=mjr4Wm4wNcblrcAmzw8dT2Wzi2J1ZAR7WjPOAZbm4WGQ80RzwtwuBEbwe2/9POy1Y9 Rs9j4QsC+CozAyiVltAoh84MtNbyaQ3NDdLjlLiKsPc8GtWrqCMkUPSmiuSDG59QYPXa uwZ5QLHO8+E/G7yR5mO2yf7uSrJmHmtRFr6lY7AtrW9ortLpr5UD1zpxuYh4foFEbhiv KCDeHC0kuA/v0tUWiSZCrEuJQPI5TMX478UZoEH6JQV8n3db4Td5LWL4PwBHV0awQJaB yAZVAl7let1BMWeebsFBq9cAt3U8syWA2CFdy+4+nkvYcCYvZ4Arj2FAhv0lMKp8nRZ0 XVjw== 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:dmarc-filter:sender :dkim-signature; bh=8g1WmO4zsI0Qad1a7UPKfzGAjqJuKEOek2wPadV/g+g=; b=hKNSW9284/88GarCerhNLIwZSCKCRHUlddjgCPql7VgqwSzFUJGH62dONe5ytvEysJ GssubDHdmNMntgLrwoK+XylybAxq8p+LHOlNjm89WRfIOY2YVgPDSeoslg0X+SRMCPxB btxrmS0ZfeXwMjEv88G0SOW5ayDKfaYHfYoLocSNPcQl4IIyKGysSEufHVKHKqtXGdMY 6V4Yhpz4hqbx6q7Q6c1CObpw33UI8vRT7K9OCpUU5Ie94AKJ+5TvOtH3rFnUczza3E+a Qx+2omMA3LjtnrL6S0MDjeBo4A67iFrhzcesn59j9OVyuqE5AHT/TcIsVR47PR2KK3sf VH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=oSEgOStP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc15si880324pjb.128.2021.09.28.02.25.13; Tue, 28 Sep 2021 02:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=oSEgOStP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239880AbhI1J0U (ORCPT + 78 others); Tue, 28 Sep 2021 05:26:20 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:34155 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239708AbhI1J0S (ORCPT ); Tue, 28 Sep 2021 05:26:18 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632821079; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=8g1WmO4zsI0Qad1a7UPKfzGAjqJuKEOek2wPadV/g+g=; b=oSEgOStPTwnPwp4heu/VJbXR3wFHHgq30Bq7E2e+pspZwKfwJgMoTsRUVgwQXCcBDVk/btSQ 9kBEZp8s6TxRdFgHLUlIxTGz1q9FfK0T9ZOSS+z02pCfjf/gP6PtXVg0/X1y2AfsWL1Mhz2V QmnQ22v/vWH4WSWtjYXnUNjVttQ= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 6152df4b713d5d6f96a30938 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Sep 2021 09:24:27 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 70C56C4360D; Tue, 28 Sep 2021 09:24:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id E3BFDC43460; Tue, 28 Sep 2021 09:24:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org E3BFDC43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Anilkumar Kolli Cc: Jouni Malinen , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 4/4] ath11k: add caldata download support from EEPROM References: <20210721201927.100369-1-jouni@codeaurora.org> <20210721201927.100369-5-jouni@codeaurora.org> <875yuqrp4d.fsf@codeaurora.org> <53726bfd2c5d7911dc8433e7fd82d238@codeaurora.org> Date: Tue, 28 Sep 2021 12:24:22 +0300 In-Reply-To: <53726bfd2c5d7911dc8433e7fd82d238@codeaurora.org> (Anilkumar Kolli's message of "Mon, 27 Sep 2021 10:12:35 +0530") Message-ID: <87ee99qchl.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Anilkumar Kolli writes: > On 2021-09-24 20:34, Kalle Valo wrote: >> Jouni Malinen writes: >> >>> From: Anilkumar Kolli >>> >>> Firmware updates EEPROM support capability in QMI FW caps, send QMI >>> BDF >>> download request message with file type EEPROM, to get caldata >>> download >>> from EEPROM. Firmware takes more time to update cal data from >>> EEPROM, so >>> increase QMI timeout. >> >> The commit log would need more explanation how this patch works. >> > > FW advertizes calibration data support from EEPROM through > 'eeprom_read_timeout' in QMI FW Capability message. Ath11k sends BDF > download request with file type 'ATH11K_QMI_FILE_TYPE_EEPROM'. FW has > logic to read calibration data from EEPROM and process the calibration > data. FW takes more time to process the calibration data from EEPROM > so increase QMI timeout to 10msec. Thanks, I now copied the updated commit log below. And do note that the timeout is 10 s, not 10 ms. ath11k: add caldata download support from EEPROM In some devices the calibration data is stored to EEPROM within the device so add support for that. The firmware advertises the calibration data support from EEPROM through 'eeprom_read_timeout' in the QMI firmware capability message. ath11k sends boardfile download request with file type 'ATH11K_QMI_FILE_TYPE_EEPROM'. The firmware has logic to read calibration data from EEPROM and process the calibration data. As now the firmware takes more time to process the calibration data from EEPROM so increase QMI timeout to 10 seconds. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01838-QCAHKSWPL_SILICONZ-1 -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches