From patchwork Sun Feb 5 00:35:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 1737585 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=SEPZ/OvG; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=AJXyuXWA; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P8Vqh01BYz23hn for ; Sun, 5 Feb 2023 11:38:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vyRDrSA3TOgtA3klb5XU8JJiqJ3wuN7pPbkf7jdjz1I=; b=SEPZ/OvGOQ5I5s BVbxfWPvQ+C3L1vlxsrsYyfUYCeTx0DhFiPm/J1IQGj7tfHhpDOx0uqhNmIbV30sE2gALe3Ktm/1T p1tfULbyzk2gR2y1OrJKT1YkAZBhFE8ejfaIkEE5ECg2R+N6h04DlVGu7+WmXDteShEtBAwabppW9 qv5lkQ9s71JSGH2bqy/j2OPoY7+1R/ZX1OacjDgcsQIKn99kjqvyv3bM43PP9W6CF67wzFitWmEli gKpu7sw6xFuQCwxjkIzrbzLpK7cpRcESAnSxCBvm2gIerKCRL0uwYJb7Kgmxvi3sxIgvgmLc9qztb nQaTu/UwFjF1YQQJgOJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0b-005lJx-IH; Sun, 05 Feb 2023 00:35:53 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOT0X-005lJF-Um for openwrt-devel@lists.openwrt.org; Sun, 05 Feb 2023 00:35:51 +0000 Received: by mail-pl1-x630.google.com with SMTP id z1so8824239plg.6 for ; Sat, 04 Feb 2023 16:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aPJCmGlYO7EqFW6K6r19ZxG0gkIB6xsobGSrqPA1kCA=; b=AJXyuXWAn2HGButpf22kTmYuATlBHZeQtzr0xf/3FhGVZBsKTVDKa6RXp1HICquaZX qRYQb3H31tCXOpZmkYp9baTtT5bMHoYGXi+whkkLpgL5viknkbwWS5Rfs721g3FJ28t3 U6ulLDQIcmNgEzyIj5ckZHhhbcgXTA2ZqsJAMciWTRv+ah0INBgGLwdQtNhRMMxJ0QTq gDMcs2oNGnFrc+YDKGnc4rCI3+/mcGy9vL9AzVvEENKsVwriLJjc0anZQQLXcpA4i1vT xyT3FONDqNvVe8xCi+CzEGc86Sa8aBtU2ATOLHqCL3aKiCOOD8agJUXkrRy8b3TuHYYy mUGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aPJCmGlYO7EqFW6K6r19ZxG0gkIB6xsobGSrqPA1kCA=; b=mU0Dj2BKzB8dmOW3YQOTsNXGlJgfASh1ImEUKfWZElFK5YQwr0FHBuvpqeZMyxDs1Y R21ofZnvzc5e9vAIq2j2Nl8fpfMu/r2fk9xWiQzCntLKq3V7Frsqj+o/tm9XmGSJr2CS qQEgzDdAV4dA2b/TvDagBN60axc34M7jnEHUbr5lp/MudLyQ6YN8kVEkHnudhBsYQVQI tPxQtZ7SDy11v53ZApVRUssj7c714SaBkkRsy8vi50qyyKKUJkTMpQj4efcYGfOZa9+q Qk4kOS/NsigaELBFjNxfVaAdnuqKMGkIoiO2bPS26azyv7TeyPLZ3tEwcMfQCqgXp4s3 rlag== X-Gm-Message-State: AO0yUKWWqi6YAZxOCl802w0NacZOnM2fjCHSJIPT/N8N5rPUg1H0Cy0p 5EHvERBf4zdS4kjFi6AN4e6LmGjSisY= X-Google-Smtp-Source: AK7set8uq6TDtazFu4X2fDIaPptyEU3fvtdP74nO/HHoJ6JJEGQtz8I0yJ0gt+l6YKIHy4wcwCzV/Q== X-Received: by 2002:a05:6a21:99aa:b0:bc:ccea:a969 with SMTP id ve42-20020a056a2199aa00b000bccceaa969mr19475489pzb.26.1675557348079; Sat, 04 Feb 2023 16:35:48 -0800 (PST) Received: from localhost (104-50-1-205.lightspeed.sntcca.sbcglobal.net. [104.50.1.205]) by smtp.gmail.com with ESMTPSA id i15-20020a63bf4f000000b004f2c088328bsm3759924pgo.43.2023.02.04.16.35.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2023 16:35:47 -0800 (PST) From: Brian Norris To: openwrt-devel@lists.openwrt.org Cc: Brian Norris , Hannu Nyman Subject: [PATCH 1/3] kernel: kmod-ramoops: Include pstore console support Date: Sat, 4 Feb 2023 16:35:33 -0800 Message-Id: <20230205003536.71374-1-computersforpeace@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230204_163550_033627_DE8056BE X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Pstore ramoops support is useful even when there isn't an explicit panic/crash. We can log all kernel messages via a "console", and then retrieve them in the event of some non-kernel-panic reset (e.g. [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:630 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [computersforpeace[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Pstore ramoops support is useful even when there isn't an explicit panic/crash. We can log all kernel messages via a "console", and then retrieve them in the event of some non-kernel-panic reset (e.g., watchdog). Since the buffer memory is already reserved, there isn't much overhead to doing this. The new console files will show up as: /sys/fs/pstore/console-ramoops-N Cc: Hannu Nyman Signed-off-by: Brian Norris --- package/kernel/linux/modules/other.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 2bd15dfe67e1..1369a4ad54f1 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -834,7 +834,8 @@ define KernelPackage/ramoops SUBMENU:=$(OTHER_MENU) TITLE:=Ramoops (pstore-ram) DEFAULT:=m if ALL_KMODS - KCONFIG:=CONFIG_PSTORE_RAM + KCONFIG:=CONFIG_PSTORE_RAM \ + CONFIG_PSTORE_CONSOLE=y DEPENDS:=+kmod-pstore +kmod-reed-solomon FILES:= $(LINUX_DIR)/fs/pstore/ramoops.ko AUTOLOAD:=$(call AutoLoad,30,ramoops,1)