Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5992049rwp; Mon, 17 Jul 2023 12:56:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlFnSrgmpePs1A/NXhR0zcI0NoSPRe9YzkfNdAmcZbNuEQM20OrNaT4A9AveB56pxqraZHE/ X-Received: by 2002:a17:907:97d5:b0:98e:1c4b:10e2 with SMTP id js21-20020a17090797d500b0098e1c4b10e2mr11269314ejc.20.1689623814054; Mon, 17 Jul 2023 12:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689623814; cv=none; d=google.com; s=arc-20160816; b=v9kvuK3AEUsfapuAzf4p9DYPBPQ7Z8oR6mF3o0wbe/Nsxt2qD2uxtvKr2aL6pEoGVJ SH+3cJkkk+yozrueAcVWUNbA8iPC2iEbE/jAsTrv5B2mPxQCK5UFzohOmHWQKON9vhUq x+Jl6evBo3ISHYHH9P51e3A6mYE4KvCuY1pLVNoc9Dx9Q/85jddxwgj7pFXZEz9shzaw puSwmUrLYsP4mbxnh6gQrmEiT9g2QPyCdUgdBTkBnV3mhURtJeSqIsf386oalYNrg8Gy IZrxNlNpOP6tDQgdki78tFCyf+4D3Nuo0wNeKprtWwMS3XIpWftah5h/DmYmWVq+f8Zw veyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:dkim-signature:from; bh=6Sg8oWx5z5RPOq+zJTuN8odXWF5bPvJEjQEBUr14J1U=; fh=FpBBCC+AtxX/f9KBzn8utYN+HMJ/tO6dYABe0I9e+NY=; b=Fi2NpqBIjeMuretlWT+OswZQ6Ov18W4TL9EBsLzY3S01MtzA8EPQkb33c1qfWz/7D5 nWtVjdw+HC/TI1DB50loP/S75sXGWpANFDx5wDuAzH3Owulh7iCEUkkJcVyDYDVyQacH 4NU/6nX5x04zwmjVrfsWIDQnBwRZuySPsiEMFOFq9PHt7+MR4bsay8Y7Ks/hp7ZbSHzI bY9z4G3uil6FNtf0HTa2DIkZ4ROxXlWQYVTBD+rOxh42pzJ+LfFJcmRGHxveYkGsphU5 PXIqkjBLmWYtg84h+V87sYCTtoGUTkrvprKqGoP+F064TPX8H7V+BmdgoJh2REFIQzpc IdXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YP127NvP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c25-20020a170906529900b00993470682e9si79613ejm.739.2023.07.17.12.56.29; Mon, 17 Jul 2023 12:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YP127NvP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjGQTqO (ORCPT + 99 others); Mon, 17 Jul 2023 15:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGQTqM (ORCPT ); Mon, 17 Jul 2023 15:46:12 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B919E1 for ; Mon, 17 Jul 2023 12:46:11 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689623170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6Sg8oWx5z5RPOq+zJTuN8odXWF5bPvJEjQEBUr14J1U=; b=YP127NvP8JgUnAVIWyPjKu0W5k33QSO2kDnMO+7leWChXcSkVywIDm27BXqqafbVRF8wck SW4R+lXxJp6/BMwfsWiWOXbapNhgBvPJfkvjS5oMz8OjKwp9p1ZAbm1WuhlmdTXiTyJvyK tQ0RFgd4KtZijCxdyhQ0gOzGvLQY97/7QLeGnyd3u9xSEPYZgtMBdATLEfv6jErJqpZSKI r8qnjzjjloRwFUbt/OIwCl+HUA0N4XDqTTE+F6XVFEqsQ6dqvSQqIukwgJEbS1wqcvDSZK g529uNTpV3avbyd0w5Lk/B/ohGNNkxxzJW4FtPjRJh8yYGMQ1DufNWZYZZQzCA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689623170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6Sg8oWx5z5RPOq+zJTuN8odXWF5bPvJEjQEBUr14J1U=; b=8LfqOQTcG/Ip3BiMdbFb22scsan9lsHZGyA0cRMM9XkLGHv3Jjcy14SB2IYVXWAoIIGB67 akFFQMCRdR8hE5BQ== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , Douglas Anderson , Aaron Tomlin , Greg Kroah-Hartman Subject: [PATCH printk v3 0/7] various cleanups Date: Mon, 17 Jul 2023 21:52:00 +0206 Message-Id: <20230717194607.145135-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is v3 of a series providing some cleanup in preparation for the threaded/atomic console work. v2 is here [0]. This series provides useful cleanups independent of the threaded/atomic work. Changes since v2: - "NMI safety" patch split into 3 patches: console_unblank, keep non-panic CPUs out, do not lock console on panic flush. - console_unblank() aborts if there are no consoles implementing an unblank() callback. This check is performed before taking the console lock. - Commit messages and comments updated to mention the details discussed in the v2 feedback. John Ogness [0] https://lore.kernel.org/lkml/20230710134524.25232-1-john.ogness@linutronix.de John Ogness (7): kdb: Do not assume write() callback available printk: Reduce console_unblank() usage in unsafe scenarios printk: Keep non-panic-CPUs out of console lock printk: Do not take console lock for console_flush_on_panic() printk: Consolidate console deferred printing printk: Add per-console suspended state printk: Rename abandon_console_lock_in_panic() to other_cpu_in_panic() include/linux/console.h | 3 + kernel/debug/kdb/kdb_io.c | 2 + kernel/printk/internal.h | 2 + kernel/printk/printk.c | 213 +++++++++++++++++++++++++----------- kernel/printk/printk_safe.c | 9 +- 5 files changed, 156 insertions(+), 73 deletions(-) base-commit: 7ec85f3e089aa423a69559bf4555b6218b5a2ef7 -- 2.30.2