Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2106776pxb; Mon, 11 Oct 2021 22:15:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfRjEPTCCoXVKH+JEutOEVHwz9u3I+1tOhzKTB/CsoMO69HwftRlyI1rfLNGXgxCMTjnv7 X-Received: by 2002:a17:906:c248:: with SMTP id bl8mr6596355ejb.360.1634015718610; Mon, 11 Oct 2021 22:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634015718; cv=none; d=google.com; s=arc-20160816; b=vsAhqTnQ6krcjRveR3tqMaNHe4tiT9Bdr/vemnIiHIfIDhisK9wQ6WiVwBt2wUK5W5 o3uqCWrY1ImDbIOxKH/bspNmzqknOESuADB+m2ZXUMo9mEHf4et9nToh9ZbhK4PEfHaq ZL9HawAFLwz9tARBwjYSRaJx6Zn1IYtg6z9ut4FtE1dL/dqZhciJVdCXjKM3fVAULVsi TwEjjsxjtQskdCOCf99+9hS/2aIzlOvxfwhrOpasHFR7SpQGyg2PZr72frLr/UPquCC3 e5n3A2oETR/p9GHnYZ9vjEgJOWfUs1otfIFmvVPcIr5yzMqzAVraRxn37d5qDI++OfGC 1EVw== 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=ewy6nzJ9f9n9mIG+k3m0sYDU1XuPo3jv+zFPGhYiSug=; b=t+eqUKBfFpQsPBfPsQWRv4uCZd3LzMkAjltkjivZ0dkunnbPlWlo20jo1N1CMWnOCF WZ4YXLS/+t3TFRhvE/8vejQ1w5oGkts1aDzypvxpw63HeeH0qVU2qJ87yE6QFIO3BCwR OqgZeQRZnwxEztfOk/wCqXhRYGZbNmRkg5XXrNlTgsVhEzDkAD6vEWUzUAIFwoEYBcWV tMXjk50hDwd/HbGIjj+dJeKc+SudqWHZf4Y2d5orsKOrIbjfCm4fN1Nw9Vki5UMQBzR0 ltdBE1w4XBQG9pn5a2rNucPQo93IrydIP3fFP5vRZUAZLZ7Cg2D6JRcxbAiqVAeTXuR/ opYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kAKvz0v0; 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 e6si2176221ejj.64.2021.10.11.22.14.55; Mon, 11 Oct 2021 22:15:18 -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=kAKvz0v0; 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 S232254AbhJLFQy (ORCPT + 63 others); Tue, 12 Oct 2021 01:16:54 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:42057 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbhJLFQy (ORCPT ); Tue, 12 Oct 2021 01:16:54 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634015693; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=ewy6nzJ9f9n9mIG+k3m0sYDU1XuPo3jv+zFPGhYiSug=; b=kAKvz0v03L9MVAy90EaKOnDN0Xs1Y9c+WmAojkiOLS4dNBKljgo6EuHsVx4LNjyy0E7K6vT4 4FNoe/+KeQWGpteXUIGY5PklYIDEj3LPTXf6Xc0e9TogaAifXgr7KKquz6zUNswZeUPjERL7 bY/X3djfiSMMCScHk5yA4bQsLd8= X-Mailgun-Sending-Ip: 198.61.254.9 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-n05.prod.us-east-1.postgun.com with SMTP id 616519cb446c6db0cb053314 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 12 Oct 2021 05:14:51 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DEC4BC4360C; Tue, 12 Oct 2021 05:14:50 +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 autolearn=no autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (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 A24A3C4338F; Tue, 12 Oct 2021 05:14:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org A24A3C4338F 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=codeaurora.org From: Kalle Valo To: greearb@candelatech.com Cc: linux-wireless@vger.kernel.org Subject: Re: [PATCH] mt76: mt7915: add debugging for MCU command timeouts. References: <20211011205406.23485-1-greearb@candelatech.com> Date: Tue, 12 Oct 2021 08:14:47 +0300 In-Reply-To: <20211011205406.23485-1-greearb@candelatech.com> (greearb's message of "Mon, 11 Oct 2021 13:54:06 -0700") Message-ID: <878ryy25a0.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org greearb@candelatech.com writes: > From: Ben Greear > > Print information about whether the message is the first timeout, > and also print info if we manage to recover after a timeout. > > Signed-off-by: Ben Greear > --- > > NOTE: Not sure this is really something folks would want upstream, but > maybe it helps someone else trying to debug this driver. If the patch is not ready for upstream it's a good idea to mark it as RFC, that way the maintainers can skip it automatically. > + if (mdev->first_failed_mcu_cmd) { > + dev_err(mdev->dev, "MCU: First success after failure: Message %08x (cid %lx ext_cid: %lx seq %d)\n", > + cmd, FIELD_GET(__MCU_CMD_FIELD_ID, cmd), > + FIELD_GET(__MCU_CMD_FIELD_EXT_ID, cmd), seq); > + mdev->first_failed_mcu_cmd = 0; > + } > + else { > + // verbose debugging > + //dev_err(mdev->dev, "MCU: OK response to message %08x (cid %lx ext_cid: %lx seq %d)\n", > + // cmd, FIELD_GET(__MCU_CMD_FIELD_ID, cmd), > + // FIELD_GET(__MCU_CMD_FIELD_EXT_ID, cmd), seq); > + } No C++ comments and no commented out code, please. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches