Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp454303pxk; Thu, 24 Sep 2020 09:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAZXWNbU2V08pt3PaBQn6NEqT+4OnSbem2+9yHccduMgVlspI9bbDD8PhRL90hwz6FqnjQ X-Received: by 2002:a05:6402:503:: with SMTP id m3mr768399edv.45.1600965117412; Thu, 24 Sep 2020 09:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600965117; cv=none; d=google.com; s=arc-20160816; b=bH+62MntLdpMx+1MNhLrKGd4O1bU0C5gYz1xDpZ7CzDVa2SlKhFIQFJ0gTVHAduTA6 qvLQoi758wrz+usRWqs34/quozh4QqCtKeO3Lh28m8d/0Vrjg1BxS5Vh+rji5/h6qVjZ gZNkzweRyRBMeriRkSFpiKR0bpAMjmh+N66Y4+DOOguF+U5LidG4cmn2mlJQ9+/F7QbS JdAu6e5WHZscP/TqbxTMtwXTF6CHkvC3eDK8efToglnjpjwO9SRF476r5GgDffQvKTQO 7vyauAEvkcT+9jCR12ydZftqjrN9gQjS4m+ysa2j9BIf2Cb11BBRqEXW1ERn7ipKoeUF goZw== 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=7yLmKI/5vET6oVISCZDrM5SQf3FU2iPOM2oBQ/UT4Go=; b=KIeKC2e15A6Xqab2jOSIIXl11pJp8KBy3nToo2RGzIgqapKa/MF9cuG4Sjzjb5Ini0 m8nrIvMLQOhxUNyNt4+FLCEy5cqdhHtVMdZF3K2XWG5toibqe9kA9avH2f/yD4Hk6PYd ESRL/0Ixv7lcYaSZZtpQYay93EGHjsJ4YyF7WZMOyXnrpPiBH3pFpCi3YuZhoYJ30nLZ nyxnkFnaa2QsinDc7Pk/iWYBiKAZrnzNIre3xZudLGdWOF9h0V5Qw+3owiUMWuhnvEgr PO+VIe7I9NqwK9i8EhGivQlj9Tfv1iroaV40aHPVt2A8GLULma4ryqtxoPwVcNgDbSuO +ilA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=w3ZJp1Sb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn25si2500154edb.268.2020.09.24.09.31.33; Thu, 24 Sep 2020 09:31:57 -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=@mg.codeaurora.org header.s=smtp header.b=w3ZJp1Sb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727189AbgIXQbM (ORCPT + 99 others); Thu, 24 Sep 2020 12:31:12 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:24560 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbgIXQbL (ORCPT ); Thu, 24 Sep 2020 12:31:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600965070; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=7yLmKI/5vET6oVISCZDrM5SQf3FU2iPOM2oBQ/UT4Go=; b=w3ZJp1SbKdpjKYK42G6rmf4L/bNCNP+WZw0gscWY6b5VsBA8y7c11IB5LkFjsUw9tIBheBvz 10jccye8+eva4iX7iPddQZmjeUebegmpxcIXdzv1Mx0zWhV0C8gLKYvVumzK7Ong3dpsj3UM YE9t/Et9W5Plgs+c3TMK9LGDBi0= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f6cc9cbe051fb32a009b852 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 24 Sep 2020 16:31:07 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 80D57C433CA; Thu, 24 Sep 2020 16:31:07 +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 5C272C433CB; Thu, 24 Sep 2020 16:31:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5C272C433CB 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: Amit Pundir Cc: David S Miller , Jakub Kicinski , Bjorn Andersson , Jeffrey Hugo , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Konrad Dybcio , ath10k@lists.infradead.org, lkml , John Stultz , Sumit Semwal Subject: Re: [PATCH] ath10k: qmi: Skip host capability request for Xiaomi Poco F1 References: <1600328501-8832-1-git-send-email-amit.pundir@linaro.org> Date: Thu, 24 Sep 2020 19:31:02 +0300 In-Reply-To: <1600328501-8832-1-git-send-email-amit.pundir@linaro.org> (Amit Pundir's message of "Thu, 17 Sep 2020 13:11:41 +0530") Message-ID: <87d02bnnll.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-wireless@vger.kernel.org Amit Pundir writes: > Workaround to get WiFi working on Xiaomi Poco F1 (sdm845) > phone. We get a non-fatal QMI_ERR_MALFORMED_MSG_V01 error > message in ath10k_qmi_host_cap_send_sync(), but we can still > bring up WiFi services successfully on AOSP if we ignore it. > > We suspect either the host cap is not implemented or there > may be firmware specific issues. Firmware version is > QC_IMAGE_VERSION_STRING=WLAN.HL.2.0.c3-00257-QCAHLSWMTPLZ-1 > > qcom,snoc-host-cap-8bit-quirk didn't help. If I use this > quirk, then the host capability request does get accepted, > but we run into fatal "msa info req rejected" error and > WiFi interface doesn't come up. > > Attempts are being made to debug the failure reasons but no > luck so far. Hence this device specific workaround instead > of checking for QMI_ERR_MALFORMED_MSG_V01 error message. > Tried ath10k/WCN3990/hw1.0/wlanmdsp.mbn from the upstream > linux-firmware project but it didn't help and neither did > building board-2.bin file from stock bdwlan* files. > > This workaround will be removed once we have a viable fix. > Thanks to postmarketOS guys for catching this. > > Signed-off-by: Amit Pundir Bjorn, is this ok to take? > --- a/drivers/net/wireless/ath/ath10k/qmi.c > +++ b/drivers/net/wireless/ath/ath10k/qmi.c > @@ -651,7 +651,8 @@ static int ath10k_qmi_host_cap_send_sync(struct ath10k_qmi *qmi) > > /* older FW didn't support this request, which is not fatal */ > if (resp.resp.result != QMI_RESULT_SUCCESS_V01 && > - resp.resp.error != QMI_ERR_NOT_SUPPORTED_V01) { > + resp.resp.error != QMI_ERR_NOT_SUPPORTED_V01 && > + !of_machine_is_compatible("xiaomi,beryllium")) { /* Xiaomi Poco F1 workaround */ > ath10k_err(ar, "host capability request rejected: %d\n", resp.resp.error); ath10k-check complained about a too long line, so in the pending branch I moved the comment before the if statement. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches