Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2535554pxu; Mon, 7 Dec 2020 09:00:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtb+hy/b70aylQ47gxPJPe2sVfUwYhdJxLP6rr7z+PU1JQCHuiVvH82RyQbOkdVpY3TIYd X-Received: by 2002:a17:906:3ad5:: with SMTP id z21mr19314844ejd.35.1607360412686; Mon, 07 Dec 2020 09:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607360412; cv=none; d=google.com; s=arc-20160816; b=S6sWKZLxbsoPqg685L6JRuXUHFN1VdJBOaLPVshGLHUZdst+bpVQi7/H4VD/LQw8DU Num8yH8K6fPbba9Gz3xm+fraunGrB9ts/zT9FgPKDBscrJ8d8Shm+qWcASYXmRmDhMJA v6oq+Sckan5kT1a/QuCplbM3CWdx7i6hlEPpDaA7ev1ORU6XOf1s9BiieFhFQ4C6YzPD cDENhQJGhcUyrFIbmiy+n62In6PFJvzcgRGGuZrd+YOxulE3276et1BkZZfHRqC0ym7C Rmtyahe9x4gL/2rqlRQehxqzIrbFmhN59jOp3OE53H2OuHDPZOZ3T08BBdcX5o6E58jK 0BCw== 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=VJAXM+Oeu7491cqbnrZxYWK6ucFYOKCdR/LCWfgCzyU=; b=LQ2h+GBYyBYTBz9Ct9ZDLZiNfGPJN0Qx64IPHPu327BYi1MVLsJ6stTzY2HNPiNfpO 8f5bYwGfm3a8TPCrUwXX9CKEclk1LEX97ebjyHLiRaGyzu/pKa+FbAHNVrZ7Z1IcPgUM KUeG0nKFzCE5ZuRiTezNVPTDMj4xkJ/ARm2CYhyQQSRA+TTWY1C5klJrCCpjeyczhNsF hqfmwTGwQSgz3xJK38wnJZ7EBXivZBfA5mXbz2tCqVC4uJ0YK1eXmHrwEYtcxmg5NEmB iAiE/XPFjNzyWPfCURWrGoK/mxvN9yDWfljJDWHGQcGCDg8uLRnJ/YuIt2RuhEJ90wy1 XIYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lsatu7L6; 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 j23si6975800eja.53.2020.12.07.08.59.48; Mon, 07 Dec 2020 09:00:12 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=lsatu7L6; 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 S1726698AbgLGQ4E (ORCPT + 99 others); Mon, 7 Dec 2020 11:56:04 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:10050 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgLGQ4E (ORCPT ); Mon, 7 Dec 2020 11:56:04 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607360140; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=VJAXM+Oeu7491cqbnrZxYWK6ucFYOKCdR/LCWfgCzyU=; b=lsatu7L6GCMOXfKODDRLL066b4oc7SKisSJHgktdDPLpAk6wVraosQO96IDd1d17irYU9X6V 4aBwmxrs4CJDxv0ZekT3/vARmGVD35JB38Ft74ALdMl5bXrqDJwy2Sj5f9sfYzxY8pnjAoOe apwF70jt0GM5IXFuv/7QmK9pS2M= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 5fce5e88f06acf11ab3a40cf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 07 Dec 2020 16:55:36 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4A824C43462; Mon, 7 Dec 2020 16:55:36 +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, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 36998C433CA; Mon, 7 Dec 2020 16:55:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 36998C433CA 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=kvalo@codeaurora.org From: Kalle Valo To: Bjorn Andersson Cc: Amit Pundir , Rob Herring , dt , lkml , Jeffrey Hugo , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Konrad Dybcio , ath10k , David S Miller , John Stultz , Jakub Kicinski , Sumit Semwal Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> <20201029134017.GA807@yoga> <20201124175146.GG185852@builder.lan> Date: Mon, 07 Dec 2020 18:55:29 +0200 In-Reply-To: <20201124175146.GG185852@builder.lan> (Bjorn Andersson's message of "Tue, 24 Nov 2020 11:51:46 -0600") Message-ID: <87sg8heeta.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bjorn Andersson writes: > On Tue 03 Nov 01:48 CST 2020, Amit Pundir wrote: > >> Hi Rob, Bjorn, Kalle, >> >> On Thu, 29 Oct 2020 at 19:10, Bjorn Andersson >> wrote: >> > >> > On Tue 29 Sep 14:08 CDT 2020, Rob Herring wrote: >> > >> > > On Fri, Sep 25, 2020 at 11:59:41PM +0530, Amit Pundir wrote: >> > > > There are firmware versions which do not support host capability >> > > > QMI request. We suspect either the host cap is not implemented or >> > > > there may be firmware specific issues, but apparently there seem >> > > > to be a generation of firmware that has this particular behavior. >> > > > >> > > > For example, firmware build on Xiaomi Poco F1 (sdm845) phone: >> > > > "QC_IMAGE_VERSION_STRING=WLAN.HL.2.0.c3-00257-QCAHLSWMTPLZ-1" >> > > > >> > > > If we do not skip the host cap QMI request on Poco F1, then we >> > > > get a QMI_ERR_MALFORMED_MSG_V01 error message in the >> > > > ath10k_qmi_host_cap_send_sync(). But this error message is not >> > > > fatal to the firmware nor to the ath10k driver and we can still >> > > > bring up the WiFi services successfully if we just ignore it. >> > > > >> > > > Hence introducing this DeviceTree quirk to skip host capability >> > > > QMI request for the firmware versions which do not support this >> > > > feature. >> > > >> > > So if you change the WiFi firmware, you may force a DT change too. Those >> > > are pretty independent things otherwise. >> > > >> > >> > Yes and that's not good. But I looked at somehow derive this from >> > firmware version numbers etc and it's not working out, so I'm out of >> > ideas for alternatives. >> > >> > > Why can't you just always ignore this error? If you can't deal with this >> > > entirely in the driver, then it should be part of the WiFi firmware so >> > > it's always in sync. >> > > >> > >> > Unfortunately the firmware versions I've hit this problem on has gone >> > belly up when receiving this request, that's why I asked Amit to add a >> > flag to skip it. >> >> So what is next for this DT quirk? >> > > Rob, we still have this problem and we've not come up with any way to > determine in runtime that we need to skip this part of the > initialization. This is firmware version specific, right? There's also enum ath10k_fw_features which is embedded within firmware-N.bin, we could add a new flag there. But that means that a correct firmware-N.bin is needed for each firmware version, not sure if that would work out. Just throwing out ideas here. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches