Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp456693pxx; Thu, 29 Oct 2020 06:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywrUxXLKBlUKQWV+7DRvGp4tfj6j+f4SHWkGuXFXEvls079EjnEVDX2YgOr5Uhty8cVAx3 X-Received: by 2002:a17:906:1a57:: with SMTP id j23mr4243904ejf.291.1603978885843; Thu, 29 Oct 2020 06:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603978885; cv=none; d=google.com; s=arc-20160816; b=RQHRiKS7MpOtygiUNLbH3ojdP4ba8KQxPQ1oociZvC1v4VuPxfA7ufa2eHcJ15SujA EB4hzlQplXZ/+orsTjbW/5JytgNillIhGv1Th5+ZdNM7WD1Evb/l1f9ZrfcdNZlEB4QI XVaaU9OU3eP329v0yWnUCSeit0jA+lINkBhBiYXD5zif2MclxxPXbnq1vpShMQVCcgzq E3f1I7vFm3vkZfsTse8CA+r6c7AfWQQMBRbkb2//mqBROEQ0vim3Ih8otRzCM+SzpCw/ uMYjcDpPBNQ5BdrcdN8FUUBZLZHtKwhLbr5Dr8h7LUngm5uJjPx99dDIx1EoOIrGiAO3 bZqA== 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=eYqdLtfS+KCW7y8GcdPSOq70vc91X3xtwLRcejbVT/A=; b=BtWgVBFzM00X7/re2XgnyGNAmBnCSB3I6uWnhY6Vha+xfj9yUM7sm7mTiH2sMLNzKo E0sZ+IWyrAHxnnxQ97Md9MWyqAsUKtpI3DUZpJCVl0osrOxJnG2yAStpCRX2nQXuVsCv hceF89o6iIVp48yv8GKoWxDUYALtqwC5eQlIfyKy/2HWR1r2W3z+BeS++eZisbynKfrl z07R918t3krfyTzLEpKtj0AIDeEleRFvNgIL9QjDQNKRjyxDlz5ovzWm/P1OrToVOAI4 XSLJnuHQ/nbFomID31ndVZR1XMkfIYEISfdTepIUOp4jj5SaHfrVxqJhsTFG8bXcha0j XxAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AZ+eNPwQ; 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 k19si1737388ejx.75.2020.10.29.06.40.47; Thu, 29 Oct 2020 06:41:25 -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=@linaro.org header.s=google header.b=AZ+eNPwQ; 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 S1726578AbgJ2NkX (ORCPT + 99 others); Thu, 29 Oct 2020 09:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgJ2NkW (ORCPT ); Thu, 29 Oct 2020 09:40:22 -0400 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8638C0613D4 for ; Thu, 29 Oct 2020 06:40:21 -0700 (PDT) Received: by mail-oi1-x241.google.com with SMTP id m128so3195574oig.7 for ; Thu, 29 Oct 2020 06:40:21 -0700 (PDT) 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=eYqdLtfS+KCW7y8GcdPSOq70vc91X3xtwLRcejbVT/A=; b=AZ+eNPwQ3yqgRBOPyOZZXnsc3kwP5mkW9+oTFT7nKBNIHQQ6elUQNp/Ux+IG5ZGpua ACJWDtQNpbEaeKJWEKlcdk0U2xW3Bs3tyPGmvLfM/FZyhrz1x8GKG+M/SAij/1TSiwSX 0iLPegzeZ7RebPnIvpFynA4Mogpe6d0gjMyDN3WfKyJt+0uI0NlTY0hK2NvyNPpnFXSL JR8INEu2YywDRvUDF5Ix6qBTgg3G8lTYfhdoZkqiPDbNDLTuE+oTQTyc00Hd5YiQYOA8 kIWPiVceeg2dN1dObRaEyFyieGDCYJTFRPv7q0wufWNXZhp5wMptNvu/tmmdn2Fy85rF 6FMQ== 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=eYqdLtfS+KCW7y8GcdPSOq70vc91X3xtwLRcejbVT/A=; b=GPpGjd8O6YO5e1fBbObLBbarVDMZ6Vc5oiwuLSM4s13qfS/iVov238Rsu2Qti60ATQ GGlfuVS/sVXzqBBeLbvZs5THLeukNtqFrXyB+PKmnuDxtGVuCD+xPlKn3QTSwpUrCbtH uAPdnIaWLO0FSHYvp4KZPoGcYBPLVLabHTpAAr8M4vllFtn7pk8/QZIDw6iC3kgG5hFF fTk1hGsJ58KfTBy9zK8Ld6xTN9aDxno5nXw95tJcF19b143O9OgdG0AVVtX3fZtk2lm3 dWUSMZCh4Jih/AwUeiZEJUaJcDl4aitAK/YyLAv05gsgsntvRs5lITUvwU/4UguT66c+ kAFw== X-Gm-Message-State: AOAM531QTQyTFvvJMwI+ysrbNg/PRncbJs7xwHf+zNPXHnDNnfWdoroJ bD4F+94KJBglSF9bDgTpeOcoCQ== X-Received: by 2002:a05:6808:254:: with SMTP id m20mr3043991oie.139.1603978820880; Thu, 29 Oct 2020 06:40:20 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 33sm590834otr.25.2020.10.29.06.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 06:40:20 -0700 (PDT) Date: Thu, 29 Oct 2020 08:40:17 -0500 From: Bjorn Andersson To: Rob Herring Cc: Amit Pundir , Kalle Valo , David S Miller , Jakub Kicinski , Jeffrey Hugo , John Stultz , Sumit Semwal , Konrad Dybcio , ath10k@lists.infradead.org, devicetree@vger.kernel.org, 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: <20201029134017.GA807@yoga> References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929190817.GA968845@bogus> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. 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