Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3618060pxk; Tue, 29 Sep 2020 01:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDDeFT8xnU+VrtfqjfqoqwYWRMQ2/1zAk3z8FudHW4E9sJXr1IWaaTh+tNViilehKawYk+ X-Received: by 2002:a17:906:82c8:: with SMTP id a8mr2678791ejy.174.1601368178503; Tue, 29 Sep 2020 01:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601368178; cv=none; d=google.com; s=arc-20160816; b=AYd/nBLMacZpSdn8nDUKz/O33+XeaZd+3S1x/8G43m6MW1K0XSSvWo9xK6TifjtuE1 Il29Rzjux9z6xNWMCP/clDkhwimBZvjhwzBwTLslm2r+iAZR4u/tP9U41LEwQ3AXyZfP zHT1vHwKnxT36BC7vZcIN6PeIoH0piDn18kT7KuvqL7f4KAHVayeYEpV1oPmCt/TYprf mhN+JToC6Mgqk+R8slFzq4nNxaipqUxokKG2dSFOVLpHeKKHWAjGAck0pw7WIx9AkL0u AQV5H0lsZ+xUI2gPQfvB2wK2jVp2o8w/LupCk4a4yVb9DVI2Q/hGEeAM76ZBNQIoVpk/ KRZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=0OOcwzqr1dYwT4LposeccPgmKVDcaqiCHCOr1JztWkE=; b=nuQSz6j6T/MVhwKEWPCmDKBtG/cPXozeStxdy0IJajEGMMJM0uPSMTH4DqTj6EI34k wegF3M/6ktHEucXGQPjtW371r1iEWLTSYR14Y0+9GNVpRPQgVvhvoeAnEA0MbS4fWLQ8 wXZagLXPprmBxvSkSCMzbID7w7OOIDWZ9ajoj6rwnBaH3EdCfjsRB/VWuRFLkkul+NJu bov5f9/pifRCWInUrohfyYTdDGUiQf1/Uo2Jsy622kgggDtRNn9wuSBl2tnWoZMYisk2 Ez+3BHKcSmTeLo2+QQFkYIAu5KBeGNr4TjEcYQgutfh+KG9ofShobJcmAvYfi+wqUrOG F2yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=nMRKTjLr; 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 a3si2437632edn.245.2020.09.29.01.29.13; Tue, 29 Sep 2020 01:29:38 -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=nMRKTjLr; 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 S1727699AbgI2I3B (ORCPT + 99 others); Tue, 29 Sep 2020 04:29:01 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:20214 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgI2I3B (ORCPT ); Tue, 29 Sep 2020 04:29:01 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601368140; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=0OOcwzqr1dYwT4LposeccPgmKVDcaqiCHCOr1JztWkE=; b=nMRKTjLreay9zmWTIXKj6EEYA6RKtQ3aXyE0Z/1EkaweiSFr32pCZhQ4jW7vILP2IdgAJNxc vlsFNx6dn81g2IU47529rO7MKfj+0fcDFj5/kgWbB/72N9lLNAJIfXFtR4ZLoT6zNYd9/ckb BvDXr9C1Q828hdIubqon8P5VDYs= 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-n02.prod.us-west-2.postgun.com with SMTP id 5f72f04cbebf546dbbd4c976 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 29 Sep 2020 08:29:00 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 12899C433CB; Tue, 29 Sep 2020 08:29:00 +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=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 091CCC433C8; Tue, 29 Sep 2020 08:28:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 091CCC433C8 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 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: qmi: Skip host capability request for Xiaomi Poco F1 From: Kalle Valo In-Reply-To: <1600328501-8832-1-git-send-email-amit.pundir@linaro.org> References: <1600328501-8832-1-git-send-email-amit.pundir@linaro.org> To: Amit Pundir Cc: David S Miller , Jakub Kicinski , Bjorn Andersson , Jeffrey Hugo , John Stultz , Sumit Semwal , Konrad Dybcio , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lkml User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.5.2 Message-Id: <20200929082900.12899C433CB@smtp.codeaurora.org> Date: Tue, 29 Sep 2020 08:29:00 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Amit Pundir wrote: > 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 > Signed-off-by: Kalle Valo Dropped per discussion. Patch set to Changes Requested. -- https://patchwork.kernel.org/patch/11781801/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches