Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1771425rdb; Thu, 7 Dec 2023 08:21:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1WpOxJtLCnxG6SP+J1nnFZi7mQv4eQhvxjtn9+OKcwzfiXLFcZYrHCVEApCYy5gUuKmwQ X-Received: by 2002:a17:906:ce32:b0:a1c:8b15:fc01 with SMTP id sd18-20020a170906ce3200b00a1c8b15fc01mr1772757ejb.33.1701966094285; Thu, 07 Dec 2023 08:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701966094; cv=none; d=google.com; s=arc-20160816; b=kiKXk/4U2j2dADYHoRkTCY5Pce8xmJ2w+aeENwB/WVEY+gugJI5mz/mZnKF5PD6X8p wf/1t3GAJbYQPflca8c5vAHPvaDXUx9Yl5vKq232T8GdjnIeM7WLNC7O+OZ7fu3g6F5m Lc1pCWXBahfvUOysuFYRHx+MiTxQPYlFbGdtHiyI72QT1HdO15jv0r01foUpxVcbdPZc B4FCuYzy2bHLAuQyFGeujfa1kM4cOy3h/kbZ5s/qJGdyuhu7XzRrvCITMn/izCV2X/qv l7a3k2MgNt+LkKZxen8LaYkx0zoZN+oMlJfODywPDTtFluqScA2RPgEDigOyEmY3X5+Z ygZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=6FCK1yJfShhcdA/hQqDuUHNEBQtXxyKKPNApelvYapQ=; fh=VIk8d8h/gp5mwnJWkMHjxocRqZr7e9CbLioI0chXUQk=; b=iuoN+aDa8qkSZhkPVuoiQtN+vwrtw+4PZLlnBglByHxBBxRxWTpkzKbZoCFp6gsw1g oYgEBRPUuqtrIlbWAUiRT4MLAmaNNGMkhvEIcHDucqGPh12blko45T+vWw5AkdI8E3hP vsiMV4CBCGS0q29P4ChHIivTtpAK2e4y8Foc10TVTcpSPKrkAU6/p3/QKWzRwX4pwJ6z nGvVnS6+mzaseTpwC61dTms6e7oqLLiSUEnqavjXknCKAiw+V+iJhJpGWwFn6+2sqINV eAU7CIDQ/cZo1gsOZaj8huDT98N5xvzb0uyTowl9W/vCZyTN+nOjIxQn1n3dFJfi47tQ MdBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LRO/73Yh"; spf=pass (google.com: domain of linux-wireless+bounces-551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b14-20020a170906d10e00b00a1cf9c39cf3si753122ejz.282.2023.12.07.08.21.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 08:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LRO/73Yh"; spf=pass (google.com: domain of linux-wireless+bounces-551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-551-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 02EB31F20F88 for ; Thu, 7 Dec 2023 16:21:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A111446DF; Thu, 7 Dec 2023 16:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LRO/73Yh" 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 5D2BA3309C for ; Thu, 7 Dec 2023 16:21:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FC9AC433CA; Thu, 7 Dec 2023 16:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701966090; bh=8vGpLp3+bjYjIpmxZeb1wm8wdVrlZJ6LWlZ0kMqu1U8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=LRO/73Yhf+RL7+j+KH0CFfGPtFC53ihdzPXUu2wHSPtxKgnsbJoAROr5qDNr7jIt2 ROdWFOS0x1E/QfWJ/WG9XtJ8EgGXoO3imhJI6RExzhup1qXIbudcS2CkuFWr1mZQMW GGFPpm+NEYZ09w/6sCGMTIFtZL9USO4aCOsuvSWgk5y+XOHyO1oWaRdIIAsb7dco/n /1IlAm2VRMcquosK7sAkCx4lcQlGeSfIUSwRUyyMtwB9O2PMUOi48V9nOz0BCDfFm4 jzuwj5c8uRcydARDn25JxVXF0sxkS+MZFSbmD1lYjrqaEGO2x5tjL+uAA1Z0pFwp9C CbQSxOoNosS/A== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 4/5] wifi: rtw89: 8922a: dump MAC registers when SER occurs From: Kalle Valo In-Reply-To: <20231204080751.15354-5-pkshih@realtek.com> References: <20231204080751.15354-5-pkshih@realtek.com> To: Ping-Ke Shih Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170196608744.2897000.6455822302893464057.kvalo@kernel.org> Date: Thu, 7 Dec 2023 16:21:29 +0000 (UTC) Ping-Ke Shih wrote: > From: Chia-Yuan Li > > To diagnose the reason why firmware or hardware get abnormal, add to dump > MAC registers related to counters and interrupt masks. With these values, > people can classify problems and check if registers values are unexpected, > and then correct them. However, it could possible false alarm because > firmware triggers this SER event by wrong conditions that we should > correct it at firmware or register settings. > > In field, SER might happen under special conditions, and very hard to > happen again, so dump lots of registers to provide rich information to > catch the problem. > > Signed-off-by: Chia-Yuan Li > Signed-off-by: Zong-Zhe Yang > Signed-off-by: Ping-Ke Shih I can understand printing few essential firmware/hardware information to dmesg but from quickly looking at the patch it looks like rtw89 is dumping A LOT of values during a firmware crash. I think that's too extensive and other means should be considered, for example providing the data using coredump framework. This is not a blocker but more like a comment for future design decisions. -- https://patchwork.kernel.org/project/linux-wireless/patch/20231204080751.15354-5-pkshih@realtek.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches