Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4478726pxk; Wed, 30 Sep 2020 04:11:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAdigBS0stXBAe9wcgobZe8ToE6FLGHfIfvw9V4iCt4pWk4DsOGoFUCICY8nK5aYvTQFWm X-Received: by 2002:a50:cd99:: with SMTP id p25mr2036469edi.119.1601464319452; Wed, 30 Sep 2020 04:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601464319; cv=none; d=google.com; s=arc-20160816; b=TK8htry1nF4Yr3fUbXg+rJkIrafqE6XJqSh5Vwods6CenT7lA9Lue7bpmd7pySPua3 cOsnteG6yZ2fxWu4ezYa/EVDw7NjI398RFxh2pwZs1qeqqoi9PL6zFwuaXahGHGvzQXY /mPNnQFrtAml2cmKl7R7LcBFCTarJTYIZzf9a3L71ovjt6k6Mc7rq+y/gZG8YPFG2Oy2 FxG086q1SUkWtS9uvzIqaAnu3Ss/gwLw7D62eeilAZy9TOOuRCO+Pz/e1bqBs0vE93Ko axjtOc9IFWmxAeO3Oca3j7l2x6U0hU5BOu+/63CmK4muRAFa3Xrj/FocaGkpJR2szGrc wTJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1mgERC2re+LsQHv7WHehbQUmBGbS8iq333nN2VyixEQ=; b=JqX8RPborTuSiViZhxYTk7RQPYBr6+IrDm5zwjDYL7EMw67720246W5QBLPIG7IEf+ eXBop5qN+ygdP6J8koCYVFWLnafp6BTDSySJ8nV+GCpiWwY5K0OVV/MhvKq7bkXfWhis fjHYxx0KvWgFJjwQBJsErTOKo8ClyWXxf2Eg+eAsEMjcWshevjdHwCBDRSv296ReQwul mYrJmFYE0rfeKB7ZYASUbil9rKzN2Tac7p7X9PWBB2p0xs84mGFzAlw7pjBfzPu3YJEt zi1rj93vVWjw4uVjC5ERRjVGkbM+B8193IcO31LMKRA2eajhPied6i/ZcOk+krappokT wHaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lef71amH; 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; 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 a3si1117381ejd.238.2020.09.30.04.11.36; Wed, 30 Sep 2020 04:11:59 -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=@linaro.org header.s=google header.b=Lef71amH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728235AbgI3LKW (ORCPT + 99 others); Wed, 30 Sep 2020 07:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbgI3LKV (ORCPT ); Wed, 30 Sep 2020 07:10:21 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F315C0613D1 for ; Wed, 30 Sep 2020 04:10:21 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id w5so1311353wrp.8 for ; Wed, 30 Sep 2020 04:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1mgERC2re+LsQHv7WHehbQUmBGbS8iq333nN2VyixEQ=; b=Lef71amHGweagbo5hPClbodyOxYqqm3V53cYc6ws5IcSNCyHr7PnFK7gFhvd9e9vzi 7tpBe5IwPJ3viwdbl7PQY3ffMe4uAAS99/CpCU9PV7j0kasr8bRQGdndMwgpgseocmWU MEX7yRxAF0WjqKbl+FuNs1A6L+JGqOYs2rue+iuOpIGuYHYIidz7810IEbZSPRRcx9no oHEcP4Ccwbn4ToFGWvDiIagOwvS1UxSqXBtUJ53Iw/KNAYjv3sugX4CLJv2mikGGyiyc 3YZBRuxb54ev35XxIcvUwsL3w92YyCrdTqXpA0YReGp0eoHj8UVgVZNsKHedEW8xLRsD YHKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1mgERC2re+LsQHv7WHehbQUmBGbS8iq333nN2VyixEQ=; b=n4xZCGpvpz4XWdUUFDy4Ys015lohS2dkJ9ZUZCos7L4xEjEcXhJUKdCZtnXv1cf2gd P6mzVHz6x9+ykKaOmQCBRaRpt72WxkTSR8SY9nPpYRXGV8r1+G9FsdnEw6cuE+X2zcHu QJNzTEx5Ze8XuJMgjZmjHIFzWgWq/+a+VJ5kWCi/ZbPsGkh2wcmkjOV/xunfgiQFTzvr BSARGBndOFvb5Vz/ajZd3IJMb5EPFsO39oOuLAeaGWKeQIM22tRQUaAhR0c0/DJXfMR8 HClVUnL8mMaJXPFWRZzNKbY0ab4aN9a28UIg5WoQaR6OvguGJHorpfJVwC2Mxb63DL5A KiOg== X-Gm-Message-State: AOAM530UR+r//Nz260Y//w5ord1MvlTQgC/QtwAsa7BVm2efDLOvF+zN vjRYU8rcBHwQ4VqQGamU321vUp3jpu3eE9U81I/qEA== X-Received: by 2002:adf:e952:: with SMTP id m18mr2478350wrn.171.1601464219892; Wed, 30 Sep 2020 04:10:19 -0700 (PDT) MIME-Version: 1.0 References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> In-Reply-To: <20200929190817.GA968845@bogus> From: Amit Pundir Date: Wed, 30 Sep 2020 16:39:43 +0530 Message-ID: Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests To: Rob Herring Cc: Kalle Valo , David S Miller , Jakub Kicinski , Bjorn Andersson , Jeffrey Hugo , John Stultz , Sumit Semwal , Konrad Dybcio , ath10k , dt , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Sep 2020 at 00:38, 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. This is a valid concern and I'm not sure about the other devices, but on PocoF1 I have tried all the three released firmware version updates: WLAN.HL.2.0.c3-00257-QCAHLSWMTPLZ-1 WLAN.HL.2.0.c3-00445-QCAHLSWMTPLZ-1 WLAN.HL.2.0.c3-00534-QCAHLSWMTPLZ-1 and none of them works without this skip host-cap patch or equivalent hack. PocoF1 is already 2+ years old device and sadly I do not expect any major vendor update coming its way. > > 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. I don't know the technical details of the ath10k/qmi driver, but I'm OK if we just ignore the return value of ath10k_qmi_host_cap_send_sync() and move along. Regards, Amit Pundir > > Rob