Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1068587pxk; Thu, 10 Sep 2020 06:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw26pXFXf2YPFgCy7EIim8uPy2lK6Tck/lsu6ByHR1sjbM7cKb28/3voqJBfdsu/ZDg3kTI X-Received: by 2002:aa7:db85:: with SMTP id u5mr8825591edt.316.1599744159258; Thu, 10 Sep 2020 06:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599744159; cv=none; d=google.com; s=arc-20160816; b=MH1Zn2Txv3U+w9En5kXE+m1DuBnpcgB6xAGMFvcPqEG7fzpE5oF2GjJ6FHBSZl58s+ BNrF/WU9FAxD9h+N//miJfKwGkBvyXk0IG8++8JAYgZJ89/L7z4ZC3yCwd2N6fX6Xf05 njuvRv/uRIoOkyjLJ+Fas6F5SG4od706Po1veoLVp3KkzrCk7SO8m9c3RhBstrtQmLZ2 uD0GxCaQijHRXnJZtiQPIx3diYyUgx+NZJsVW4fiY00GeW7JY5xADOC/aynU2wek1F+y YokaIWN2QOIk8FCcqAN76su95gtVPd3IfsXm2wDmjn0gzZD8uC8IrdYNUASV+tKRLC2c FsAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=C9iCqTmoa/8lsV6H82r1OZMcNx+IM7xI4h4tKw9bvhA=; b=gTb0sLbFmi/VXdp6fi/njzT9KWbhDoA+cTUZVLO+bs7axzdTSrAbJs0QM6kAsWZoYe ZOk4srj3UuLcZrdJjJMJK2ToTFA0Q3FToVSL3EhJLH06t/lmgChI7ao77J719MYpQFAp uNS3LCEAZTdGx0uie/QYoojO+u9GDUT0/vjgt6vPe1VKXwvwJ+3XNvg2Hkh4UIsK8j42 qta2R8CAJQEx6R6a9XQjeUXZQnzdb7r3PM1iFboWFtXw0SSMIeWplZ8o6fL9C6TP31OO 58DnAQok76ozQ4F/W3rK5OST4YLnxElzG83jHp4809hkeat++Pn1M/sMLXzKmVS4han4 126g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=VjstSm6S; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=EAP81zcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 i4si3420321edt.298.2020.09.10.06.22.15; Thu, 10 Sep 2020 06:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=VjstSm6S; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=EAP81zcm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726796AbgIJNT7 (ORCPT + 99 others); Thu, 10 Sep 2020 09:19:59 -0400 Received: from a27-10.smtp-out.us-west-2.amazonses.com ([54.240.27.10]:55914 "EHLO a27-10.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728350AbgIJNTD (ORCPT ); Thu, 10 Sep 2020 09:19:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599743499; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=q1h4X0rhfpIJxvratDwVA1xQ2ilL0QOAEAb+uD7egDE=; b=VjstSm6SLxkPGyaLYcFwWUhmBToXnHG7l+rPcxgvCItWVC0aa+7BTPxCIEiutCBF 2p5s6MXaf3uKMyr0AzVSiTQbQoOyhXGhHgl+aPbEwdjDR+gmpqr4L939wRwraQM7fDN GIchkauHt3Q1jTqkC87trqepleIPWxEz8EL4YeNk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599743499; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=q1h4X0rhfpIJxvratDwVA1xQ2ilL0QOAEAb+uD7egDE=; b=EAP81zcmtP5pM8qeNkBZwikGEcWsITaMeTFgnhhfP/D0RTXC9/1oiApbm+j5aTiQ F3AMLWsXs1oJjeEtga7PvYsGxOczIdA4BGHQWTUacdnXP/yl6EsfMKsQdgLP9RfUZK+ AofoY6SjblTMp97w49y9/GMCbmUqRByEVpP/uixA= 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, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 92023C433CA 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=pillair@codeaurora.org From: "Rakesh Pillai" To: "'Kalle Valo'" Cc: , , References: <1593193990-30366-1-git-send-email-pillair@codeaurora.org> <87y2ls4lbf.fsf@codeaurora.org> <0101017459fdd62b-791355e4-ea88-4142-96a7-06849bcd7b09-000000@us-west-2.amazonses.com> <87k0x51rz3.fsf@codeaurora.org> In-Reply-To: <87k0x51rz3.fsf@codeaurora.org> Subject: RE: [PATCH] ath10k: Use bdf calibration variant for snoc targets Date: Thu, 10 Sep 2020 13:11:39 +0000 Message-ID: <0101017478249a7e-ec85ae99-51da-4af5-9314-c3a6b205795e-000000@us-west-2.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJRm8Tt2m+V2vXQfAtV0J7j7miBFwIt3U/7AmGQD+ACiFXeLKgy8eGg Content-Language: en-us X-SES-Outgoing: 2020.09.10-54.240.27.10 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Kalle Valo > Sent: Monday, September 7, 2020 9:48 PM > To: Rakesh Pillai > Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; > ath10k@lists.infradead.org > Subject: Re: [PATCH] ath10k: Use bdf calibration variant for snoc targets > > "Rakesh Pillai" writes: > > >> > --- a/drivers/net/wireless/ath/ath10k/qmi.c > >> > +++ b/drivers/net/wireless/ath/ath10k/qmi.c > >> > @@ -576,6 +576,8 @@ static int > ath10k_qmi_cap_send_sync_msg(struct > >> ath10k_qmi *qmi) > >> > if (resp->chip_info_valid) { > >> > qmi->chip_info.chip_id = resp->chip_info.chip_id; > >> > qmi->chip_info.chip_family = resp->chip_info.chip_family; > >> > + } else { > >> > + qmi->chip_info.chip_id = 0xFF; > >> > } > >> > >> So you hard code chip_id to 0xff if it's not valid. Is it 100% > >> guaranteed that there never will be a chip id with 0xff? > > > > 0x0 and 0xff are invalid chip id and are are not used. > > If the chip_id read fails, we fallback to the default board data. > > 0xff is used to go to the default board data (Also this is in alignment with > > the current implementation of board_id) > > > > Does that make sense ? > > I'm a bit hesitant, over the years I have seen cases so many cases where > "foo is not used anywhere" and later that foo is actually used > somewhere. 0xff means that there's only 254 different values, but I > guess there are not that many chip ids? So a chip id is very different > from a board id, right? Yes that's correct. Chip id is already being used in case of qca6174 (pci bus) We are bringing this to snoc bus chipset (WCN3990) > > -- > https://wireless.wiki.kernel.org/en/developers/documentation/submittingp > atches