Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1832274pxu; Tue, 24 Nov 2020 09:56:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDPVgfNOlTlI/O4ZCjd+IRBWxAHE/9n6KPdHh9QsOe5BUJs5M1iTu0XLAr95OGulks0vEn X-Received: by 2002:a17:906:748:: with SMTP id z8mr4797383ejb.546.1606240583846; Tue, 24 Nov 2020 09:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606240583; cv=none; d=google.com; s=arc-20160816; b=vrnVQ+wpBQNENIQhMz1Yml4spf0LoUx0liB87aVCribVvx2j8dHEwRLWHP1dlLOQkP J1+NF166K0OvuxLeReiGiUe9MSNV+le2yVh66YBwaQWhsEE7AUx/e2wfC+5pVgKfeFh7 6z8RQea31ya00lnmVs1YxozCNsk+ciPZM0mdjSHLxiJjTr0w8Cbzv0NmlkYFTAPiJb+t Rm+SynSyThHg8Uxk9mTPdhVEJuQx4W2ebs9QUrqV91AwhF3yMriRBFcFOuAW4I8nzXEN t6QBL8/fIarcZukdTWAJOIfOkTjPQ5eDjgf5p5UR1rRUhtMilcpJ/U2AXiuSchzf7xL7 aSZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dgZcAum397p2JLnSMu9Tfx6bFmJxJljXgwdxIBft2qU=; b=vc2Sv63zRxDrhwNVM0RMHF8CKBpfM0u0se9aXuwmZ+b2vyeSfPD1Cv6qAHk5KhDtzV p7ChxqhOu6eVnNX2QLEOFSM9WDPGAXjQpVA+U4TErk18pYidDQ4Dqw6LG+ewbkDgzsht LJHdUWdSjPiHquyHNcVnvhDqMFHN7364y9Nzm362xAeSnnvvGg+74wLb7txHyJbHiKEG e0dJSHbzIdoIKq5A+pXIPjc5HriGWhDXOKUThyYQwzWns/2NCbiHcx5ZQTsr1wAiaslg DSSZ/GJ+a5hK3AAGZti0d8KZSqipbeMLNdqS7kGgtYaBDc2nTBpIyoAmfjclmMXOQfLa IsPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OOAeaexT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si8787426edu.169.2020.11.24.09.56.00; Tue, 24 Nov 2020 09:56:23 -0800 (PST) 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=@linaro.org header.s=google header.b=OOAeaexT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404166AbgKXRvv (ORCPT + 99 others); Tue, 24 Nov 2020 12:51:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404152AbgKXRvv (ORCPT ); Tue, 24 Nov 2020 12:51:51 -0500 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF363C0617A6 for ; Tue, 24 Nov 2020 09:51:50 -0800 (PST) Received: by mail-ot1-x343.google.com with SMTP id z24so6155358oto.6 for ; Tue, 24 Nov 2020 09:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dgZcAum397p2JLnSMu9Tfx6bFmJxJljXgwdxIBft2qU=; b=OOAeaexTNdWrtNkAmYHlsVBFA5sTlRmOiCsFvy4pL27tRynQOBBbcqmUn3veDD2lRu lwC1uI8VTYahxiSjJiZjhClgMUfsBfBbBkWftfy7pihRRTdR5mN7hCA2SgMzS8pi7a/7 OjPm6zaaP2vN9Geb6kS6S3Zi2N+ksSftuK+iKFOWNvgpnE9Ie5mhgB0Z8xyWNqfNKyit 436vILyqH/QaPh7syOXlp48jgjaa+WuY3DzwxmE9dXEbtemLjqqaP5OlUfq4j5GRtDpS IK119lCxbp3A5toiNMhLqDofinxMJTRFtIbrNRL5d4oipX5KnUaWN3vXZ/rRK+D7wGLX 8kfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dgZcAum397p2JLnSMu9Tfx6bFmJxJljXgwdxIBft2qU=; b=o+B938Sz9Q5O+ayY+/xd5+HIU6cbkzf0PNONSrwz/3m7YFMXXIeyxd7A/lgrNNXM9l r8faFzqT+MUguoUF+c6ahWpAkxRrTPdmatvwxiSaNXBgIEmkNB96qw3kdbu2EFmUMJFf iA3rx7XWQWgXsktZkcJ7k3pmLQlnZf8OiniNBJaKvWZEcHoTm0er45nxHX+fWthsdbAc JmkTH8XnaTRxk01wxfkzZIfhjzdhoF/q7deidCHf+ty6pFTnVBYNsUjobS9DtDZVTu5i ocL2DtVGD/zMOpIi3lDu6o8K5TtdZl+1d1V62RzNcxirVtAU+7YQazLkEywl5cO2eSkQ S/iQ== X-Gm-Message-State: AOAM531W6Qh1UffLIG7gfRJ9EmC8iHdcf021xixgJlw9eLIr3SfxoCf0 6DB5abOZniq6VPTOorj7Bezrwg== X-Received: by 2002:a9d:1f5:: with SMTP id e108mr4289207ote.309.1606240310256; Tue, 24 Nov 2020 09:51:50 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id u10sm10051960oig.54.2020.11.24.09.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 09:51:48 -0800 (PST) Date: Tue, 24 Nov 2020 11:51:46 -0600 From: Bjorn Andersson To: Amit Pundir , Rob Herring Cc: Kalle Valo , David S Miller , Jakub Kicinski , Jeffrey Hugo , John Stultz , Sumit Semwal , Konrad Dybcio , ath10k , dt , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lkml Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests Message-ID: <20201124175146.GG185852@builder.lan> References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> <20201029134017.GA807@yoga> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. Regards, Bjorn > I'm OK to go back to my previous of_machine_is_compatible() > device specific hack, for now, > https://patchwork.kernel.org/project/linux-wireless/patch/1600328501-8832-1-git-send-email-amit.pundir@linaro.org/ > till we have a reasonable fix in place or receive a vendor firmware > drop which fixes this problem (which I believe is highly unlikely > though, for this 2+ years old device). > > Regards, > Amit Pundir > > > > > That said, in the devices I've hit this I've managed to get newer > > firmware working, which doesn't have either problem. > > > > Regards, > > Bjorn