Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1973309lqz; Tue, 2 Apr 2024 03:35:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDv5jhQF/8F/zT1MwgCAKUyi+PJz4ELDfmSdY/OHok+3+eO0NZ+0Unj9xAiokdImywiBTb8uKrXdjl82bfjlRQzzkmVRODx4+kFWaYRg== X-Google-Smtp-Source: AGHT+IFQJtbHc3Ww5PcvJnkiivfHQ0dmlj4FCHkZpk1R7TxcsxJD5Jh4WtgvTdB/s3vpLqUs0mCw X-Received: by 2002:a17:903:1c8:b0:1e2:817c:cdce with SMTP id e8-20020a17090301c800b001e2817ccdcemr559939plh.27.1712054142186; Tue, 02 Apr 2024 03:35:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712054142; cv=pass; d=google.com; s=arc-20160816; b=J5CLyVyqwlR7X4KcGhqOdy3sjZ5Ni2F5uXfnC8mX4RywKM1UPIYgvKIldeJHxmGbIF VqiGS3pCkyJn6J24kVkK6hjL49N+bij9DZPLutz5KWNQGpg/fUEWShR94bpKZ8Vh3+/h mxzJ0UYs4pxy2oWIjyBKLaxd+xTtTxLKFFCkHZinbokj0v/8orV1v4WLJzDcNiQKhlMr B1hJESYBTpu+gciVDE8RdJ5ODQQ22hO3KrTNPKk9qtIDmDWssqR2UUaXvUqlMARAflzo LNp87Lbi67U3elocjv+WePTHEMKCRd7ZPIYHmoI3HQVoZpuS2Sm32KL4U9qxg6GIuc5R NVLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=STfe/Rz3uPOTuqu4DrUcO9QjfwomKLwaXdLP6m2yfFc=; fh=+2TKxjry7GSyKzhljEDpnzD39O1td2QW5ucqkepsHPc=; b=nZ2ukfEUPqPJczy9A/i+2xoK4pxgKn/GDvgwKySWww+80l4NZUjNT+G/3Efcq2aVWY e8Wn4zNJ1vyNyNAi6TtF61/VJRIw3Raw9in3XFyyIuwjegbmNoQ2F8Qpazsg4GLyO/hg B9SuKxNrSVTTJdfkQrtb8mzroNZrSiRlgEIvK8hQwc0frrPiA2g2D/N7Y/eKoIte91lM H93mjyLqV1LnUMBleqqG83PZtGNckyVSggatT5DomJ3muJvx7C8PO9bPXAVRHxw0PBjD Dutdukj8A3/95zPv6GA66lApyd09KlToVj96pSd3UKcGKyhZDXRnUKOjfzZDkqb4hONV GHqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P+wvg4Xr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lk3-20020a17090308c300b001defa2d6abasi11067192plb.71.2024.04.02.03.35.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P+wvg4Xr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 D88712855E6 for ; Tue, 2 Apr 2024 10:35:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECA9369954; Tue, 2 Apr 2024 10:34:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="P+wvg4Xr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DU0xq7e6" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 905B8657B5; Tue, 2 Apr 2024 10:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054063; cv=none; b=m2hvFWAELyyWeLqWv4TuU4CKNI0lNclI+EM3N7JQ+KatEPKKZl9tyMes1G43K4EJRffTQxLZ6emY0d82BbqjWCIwJpF5oYzy95WOKKh1mFatafontaAsSUaiSQXkRwkA1tOP8aBXFfGhynnlbpfOhJngSSaI+rj5ObPRRGsD0d8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054063; c=relaxed/simple; bh=Q4MlAhRm+AkBxTUeVkfth/yvDYTiPwojE4biBVagZF4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KjImjdoG4AuCJgfJusTzNBCCWhnKx/h43/HJK401KHH1kTkywfT4ThjHE0mDNETU3mCkmcek7GxGuiphFU6foUo1W6T6FRWB0/tZ1grsXZQj++uHD3nzxePyYqMP0SNe8ZPnGf5KZnCbFHyqwRaW0VtVDvoc7tyouBSwNE1Wjlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=P+wvg4Xr; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DU0xq7e6; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 2 Apr 2024 12:34:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712054056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=STfe/Rz3uPOTuqu4DrUcO9QjfwomKLwaXdLP6m2yfFc=; b=P+wvg4XrkSa8qrUqLFplrxzRc04v5G0AvSoJPkYGlnle/rjdCGNtOirGpbAtrYWaEZXYxt 4MJNjH23Yd4yTmtC6fiUTr4j0YItovd5T8MM6bnEgHMaQd3WCYoVcqZJt98XClr1A2bQe2 86VQaBn4BpbWfcBmBxUvBtS0TWVcPjz5xNjJ68Yg7zn5kErEW5RBvG/JnPBoNim7zKkTLj 78kAn6brpoybVRsNrDCx9Yjbb2U7LYCZj13nQI4+NPCiAshU7C4wpu64BBEUVwNmIsEIhu MbcWc1vc4KSf48ABCVdipi6cgNLlfjGLDXIDQQNwJeOtHVrG4JrSXM0zo9pt4Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712054056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=STfe/Rz3uPOTuqu4DrUcO9QjfwomKLwaXdLP6m2yfFc=; b=DU0xq7e60IJtZQNOzYay7B8VjNffiXJvrNL+NVaf3TXBUWY82qsg3vKThsIZFpW6m3IDhW k+pyEg7w0w0dUpDQ== From: Sebastian Andrzej Siewior To: "John B. Wyatt IV" Cc: John Ogness , Petr Mladek , Clark Williams , Juri Lelli , Derek Barbosa , Bruno Goncalves , "John B. Wyatt IV" , LKML , linux-rt-users Subject: Re: NMIs reported by console_blast.sh with 6.6.20-rt25 Message-ID: <20240402103414.KkkX5RuV@linutronix.de> References: <20240322122921.U3WRsO4X@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: On 2024-03-27 19:44:20 [-0400], John B. Wyatt IV wrote: > > where is this output from? The `ret' opcode usually does not cause a > > trap. My guess is that the machine has been interrupted by an external > > user at this position. >=20 > Just before the sysrq that crashes the system. so this is intentional. =E2=80=A6 > > Side note: This is using early_printk, correct? >=20 > I believe so, but it might be preempted? This is the part it stopped in. >=20 > static void io_serial_out(unsigned long addr, int offset, int value) > { > outb(value, addr + offset); > } The function is invoked in NMU context so it can't be preempted. > > According to this, someone issued a `crash' via sysrq. Why? > >=20 >=20 > This is part of the console_blast.sh script that John Ogness sent me. >=20 > Please see below: =E2=80=A6 Okay. Then everything works as it should=E2=80=A6 > > > NMI Backtrace for 6.6.20-rt25 no forced preemption with tuned through= put-performance profile > > > ----------------------------- > >=20 > > This and the following backtrace shows the same picture: The CPU is > > crashing due to proc/sysrq request and does CPU-backtraces via NMI and > > polls in early_printk, waiting for the UART to become idle (probably). > >=20 > > I don't see an issue here so far. >=20 > Luis Goncalves discussed it with me after reading your response. Thank > you for your help. The NMI was needed to flush the buffers upon the > system crashing itself. Does this part about NMI watchdog need to be > documented? Not sure about that one. There is an _a_ _lot_ to be printed from NMI and the NMI watchdog might trigger if nothing is triggering the NMI-watchdog during the print job. Also, the crash was requested. Sebastian