Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp268481rdb; Wed, 17 Jan 2024 00:58:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtE8HbHT0OBTUD8FtVCdwwhyvpxOFdv493WsCVhEcHbjzkjnHF9tXAYYD0LFWYCc32CC6Z X-Received: by 2002:a05:6358:50c1:b0:170:2421:fa03 with SMTP id m1-20020a05635850c100b001702421fa03mr11390620rwm.41.1705481926382; Wed, 17 Jan 2024 00:58:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705481926; cv=pass; d=google.com; s=arc-20160816; b=YE+O+8qrV+Gsd+kprkglgyYvEZ1Yx7vedx4Ei1qiEw4YuA40DWz77EWGB824InyTqR aeWEbMgDGu20reQEr9n/EwXXCWvjcuRAVkC9aL8sxsJTX7WnqYFZS85hUzgaTIHv3edw TwmIdiQI7KIVrw1SJVocnXdmKX0QKDg/QyN9VrxI9zBnM0ADlfIMHkrBiuPi/8ppGywF JRRw2gbpYWfoT7IgXOlKaOpXZtfL+J5kowP7NzIIzqtya19AFm1JsRSAidGRG2ZXbYrX m00DxaUzrC/wVc/6dK/F1/vguWCtin+lqDtDTp38M/0iXoNDm1Napts5qX3t59ToBkj7 J6BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=L7QdZytG8HX8yZnE4xXZ1QjJeD90kxvZiLDIyaYpVfI=; fh=2UGyKc87B52f7sIwEYl9g+SBtVnXUiLMuSlEko54uMQ=; b=NBXADyJWrtdrigI8KGWlAZGw1APg3AOxTvi3QU4sRQNhIeLAOqeURFXc7TOS11mun9 G3RiX2oktFl9p38m7WB/HQfDkfQw2yDFVWob/3uFWKjN1lH7sok5oUHF+Yv1GNsBx3Qu RNXLSHzl1LMg7KdI75wjTZoL1Hlw7DBmJ4OOZkuCgc0DBRVGOP2mBXRgrCESwacxO1vV IZxTPthwwbzjyRIjf661gyNYqcbEbHNd86x1qak3AWlAZJbgUZF6mx3yqsGijQxJiyDi Z55MhTro69UY7N0Yo+zXfLlxQ2vVH1a+E/kd+czMfJ9YVtWJW46yC1dHJfPnhEl/mY5u YTgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNKPv2AP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e9-20020a639a49000000b005ce3c33c303si13488670pgo.301.2024.01.17.00.58.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 00:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VNKPv2AP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2087-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0A7F7289006 for ; Wed, 17 Jan 2024 08:58:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EA61134AC; Wed, 17 Jan 2024 08:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VNKPv2AP" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B6C912E76 for ; Wed, 17 Jan 2024 08:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705481919; cv=none; b=F5f1ANnzkPJSaL4Ub5ncMa854UxDEjM7wrOxwOOw8tcrCopIOxU4WdQGqfcgJutndDqBLPNtEoxOYVbdTX7HBKW4DF32gf+sOoDrK4SN9cJLcZ/EpchbJzlv5hS0MK1VMGOnLxTZsi7DHRSxXJtuEqA8AHz+qCBxJQSK8elDUlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705481919; c=relaxed/simple; bh=GQYAeT3FGcdKFmr/md39DR9fddQy/57aTXTBeURZwKs=; h=Received:DKIM-Signature:From:To:Cc:Subject:References:Date: In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type; b=I5m8HWloGkGd/cV3A5hw1dTLU7JP0Ac8rOdnZt1BgMLDgW8h7FYHRFaw5cDjGLcLspJtIL8Z0Kta21o22RDmBCkM/2IshzX79Myb8JxGLzPMSs5L1cVwPmj9dqiMoWlTqb7ohQS9Nn+nsAVQpxyn6xbOHEFoLfE3NHgkLWQ+5Bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VNKPv2AP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0AFCC43609; Wed, 17 Jan 2024 08:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705481918; bh=GQYAeT3FGcdKFmr/md39DR9fddQy/57aTXTBeURZwKs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VNKPv2AP+BvueTWQVDEueA+mIn7bhx2tJERrxnhhu8inxCPJ6IEHt6m/kEWMaeIWU it/PhiAnbI3TWz3SpvbODA+GvLuNa8/sckGgc4muzQR04gCfrBxlsOfBlfWFjfHNpK 6vmZNDefS9TtsXQy/oQAM6hcX+bZLcGMH4jmtjPAacH7+7mIYMrrWLtpqvwx776Abc j9Xs159JKWC46r3XVqeFFNnOlGhVmKx0wtgLKhQQA9SgAly5Dqw6Dxo07LY8UgFDbm 7LxsO3bjwdwytBva7B9gE85yTkNZbWLGlr67y3qWfeoO11EKwvNPdCaB28Oe0uNJh2 W2PMFdsSD8vEQ== From: Kalle Valo To: Baochen Qiang Cc: , Subject: Re: [PATCH] wifi: ath12k: add support for collecting firmware log References: <20240115023726.2866-1-quic_bqiang@quicinc.com> Date: Wed, 17 Jan 2024 10:58:36 +0200 In-Reply-To: <20240115023726.2866-1-quic_bqiang@quicinc.com> (Baochen Qiang's message of "Mon, 15 Jan 2024 10:37:26 +0800") Message-ID: <87ttnc5oar.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Baochen Qiang writes: > Currently there is no way to collect firmware log because firmware > does not send it to host. Also host does not handle WMI_DIAG_EVENTID > which is used by firmware to upload firmware log. > > So add support for it by firstly enabling firmware log upload via a > QMI message, and secondly processing WMI DIAG event to expose it to > userspace via trace event. > > This change applies to both WCN7850 and QCN9274. > > Tested-on: WCN7850 hw2.0 PCI > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Baochen Qiang I did some cosmetic changes like reverse xmas tree, debug messages etc. > +static int ath12k_qmi_wlanfw_wlan_ini_send(struct ath12k_base *ab, bool enable) As enable was always true I removed it. We can add it back later if it's needed. > +struct qmi_wlanfw_wlan_ini_req_msg_v01 { > + /* Must be set to true if enablefwlog is being passed */ > + u8 enablefwlog_valid; > + u8 enablefwlog; 'enablefwlog' is really awkward and it's used in several places, why not 'enable_fwlog' which is far more readable? I could change that in the pending branch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches