Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4185236pxb; Mon, 8 Feb 2021 09:53:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFv/Ik5O/D3FxyLBuAWnxVBxuZ4la1ripMVHz5cF7xB4CAbdpnth0op//F8ir4hsUISPcL X-Received: by 2002:a17:907:2710:: with SMTP id w16mr18493642ejk.73.1612806827548; Mon, 08 Feb 2021 09:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612806827; cv=none; d=google.com; s=arc-20160816; b=f6E7Y9MkkhIK8nyaXJ4eR/CY45WpM+aWhlwvrfAkvWYHW3WFVywM9djMoZ1jdInNVC M+jMt7CJ2A1pYBsHBX51VIrkf7ONSkkqY/7hFsddKYdhUVGoob5IcU0Jq7x/YpXnRDWA Lg9mX8eVgbwPgWaSGTVCzNeSyV9PUGtfGUks2M4n7o2C2TitdCv32LqIMRPdG1GQ0UGC GQ83hBpNLxUX2a1bSVwzQGnRP2nfkDzfnElYMxBHFdTgG+xQpjGWWOZxLIvb4RKMYtm4 r8hX/54bBOrMlS7SZQSlKXuah8HJeVnSx8UMF/tesKr+eO8qTeqfPVzFUMhBYVoyvESV actg== 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=hqIt/UwNUJoQOM09qoHwRbtdcgdq4vD+X81GKl6pUvg=; b=CWf3KXnxy2eQq4tZUw0rAw0d0cDbycqzNS2yoVHzmqeragNhz2G+HTCtSupyVcsu1h z2ERem0k/erP66DXlaixk3qhL2TWu40y6fVJS1M7ss1j9wv7Hna4m+yHE5g+Qy/frtxf AmY4K347NMwzR0EyW7m40IHYvy1YN36aB7nZk97zeEkPuyiZAM9J3xOdK+mY4e086Jz6 DiDkfTdXsfE61NwP1pvvf/MKQ/uSL7eTVtQwbUl9mc22d52kmE5pJI+toWdP4e3QYXEu W3l+VSB66Vk8LLXohJqvO8B80jl9RW8JWhfhCIWJMElKrDx9U/GsspySLU270cu61LMz SA2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIROg9GE; 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 n10si11556686ejb.368.2021.02.08.09.53.24; Mon, 08 Feb 2021 09:53:47 -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=dIROg9GE; 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 S235001AbhBHRuz (ORCPT + 99 others); Mon, 8 Feb 2021 12:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234961AbhBHRtG (ORCPT ); Mon, 8 Feb 2021 12:49:06 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED67C0617AA for ; Mon, 8 Feb 2021 09:48:24 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id m7so16447037oiw.12 for ; Mon, 08 Feb 2021 09:48:24 -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=hqIt/UwNUJoQOM09qoHwRbtdcgdq4vD+X81GKl6pUvg=; b=dIROg9GEeJLWJ7XzvQzbHYvDvby5DZSA5wtm0HUz+hH2dGsD3gA6Kmiit0wOe4THHY PFGw2biv/f4Jt3Pmu2/yyyDY6LEptMbHzdQ093MuxDa5rv4qROkzjHFekTzKF0PccSag v3r7b0aWCGMpeHb+QlgQX8AjF6YRATpuqzJPQFniDXHWE5/CII87sM/T9ni8CoMBw341 RejS20ewHvzHs7IB9RLQzcF872UhB3z273h10F15S/qg96XUWfScRkkdo8oNT36Yr0Vq Z7et1TtnD0QGfzFZPQny/zxIOrbUVuzRjznOwu0qz/L39S1XAGXn9/iDbEdrbU1gQ/hb SzaA== 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=hqIt/UwNUJoQOM09qoHwRbtdcgdq4vD+X81GKl6pUvg=; b=gANtdvSjVmX6k083D7P9a93CKZSvy4nXLMnKNH2LcOHk/uF0LmlPDbC9fcEnIbfOvF kZOzJbaItbBUi8htQL6DsbfpNzGgNGbPASTzXneI3D74ZtjyeKfAxL6JLFVcLaVtZiuJ zh/KIdsazhT4wYpBK1/VuwWdXmY0znfRvI4gDFcMsWZVFFQ49fChil+fLA7hPb0nzQ69 UlQtOkJZHE8kdCC2ZjAXHI8lpjLIwAquq8QidrWzIhqr2YzT0OAmPAlCqhNm6uMZ03hY HGps1woZPAmUjUuYKvZK82Qn5jwrQIXM3OpjZYjqavy/5orXsCwnuGhV9aHHLTL7sG1H K4Dg== X-Gm-Message-State: AOAM532r+k1PNM5Eva70CkyVQ/nPPeiIiQTtoarirorEkXwfKtdOV0Kr P47rSXpFCQArN2smV9VJs6eKwg== X-Received: by 2002:a54:4689:: with SMTP id k9mr12050417oic.149.1612806503972; Mon, 08 Feb 2021 09:48:23 -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 c17sm853063otp.58.2021.02.08.09.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 09:48:22 -0800 (PST) Date: Mon, 8 Feb 2021 11:48:20 -0600 From: Bjorn Andersson To: Kalle Valo Cc: Amit Pundir , Rob Herring , dt , netdev@vger.kernel.org, Jeffrey Hugo , linux-wireless@vger.kernel.org, lkml , ath10k , John Stultz , Jakub Kicinski , Konrad Dybcio , Sumit Semwal , David S Miller Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests Message-ID: References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> <20200929190817.GA968845@bogus> <20201029134017.GA807@yoga> <20201124175146.GG185852@builder.lan> <87sg8heeta.fsf@codeaurora.org> <87czxa4grv.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87czxa4grv.fsf@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon 08 Feb 11:21 CST 2021, Kalle Valo wrote: > Amit Pundir writes: > > > Hi Kalle, > > > > On Mon, 7 Dec 2020 at 22:25, Kalle Valo wrote: > >> > >> This is firmware version specific, right? There's also enum > >> ath10k_fw_features which is embedded within firmware-N.bin, we could add > >> a new flag there. But that means that a correct firmware-N.bin is needed > >> for each firmware version, not sure if that would work out. Just > >> throwing out ideas here. > > > > Apologies for this late reply. I was out for a while. > > No worries. > > > If by that (the firmware version) you mean "QC_IMAGE_VERSION_STRING", > > then that may be a bit tricky. Pocophone F1 use the same firmware > > family version (WLAN.HL.2.0.XXX), used by Dragonboard 845c (which has > > Wi-Fi working upstream). > > I'm meaning the ath10k firmware meta data we have in firmware-N.bin > (N=2,3,4...) file. A quick summary: > > Every ath10k firmware release should have firmware-N.bin. The file is > created with this tool: > > https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder > > firmware-N.bin contains various metadata, one of those being firmware > feature flags: > > enum ath10k_fw_features { > /* wmi_mgmt_rx_hdr contains extra RSSI information */ > ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX = 0, > > /* Firmware from 10X branch. Deprecated, don't use in new code. */ > ATH10K_FW_FEATURE_WMI_10X = 1, > > [...] > > So what you could is add a new flag enum ath10k_fw_features, create a > new firmware-N.bin for your device and enable the flag on the firmware > releases for your device only. > > I don't know if this is usable, but one solution which came to my mind. It sounds quite reasonable to pass this using firmawre-N.bin instead of DT, however that would imply that we need to find firmware-N.bin in the device-specific directory, where we keep the wlanmdsp.mbn as well - and not under /lib/firmware/ath10k For other devices (e.g. ADSP, modem or wlanmdsp.mbn) we're putting these in e.g. /lib/firmware/qcom/LENOVO/81JL/ and specifies the location using a firmware-name property in DT. Regards, Bjorn > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches