Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9612065rwl; Wed, 11 Jan 2023 07:51:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXuNARqDUSADf+JiKqAmz2Ce7GJaV5oGCGgPCFq6dydEwpqRlIqxx3tFI3AnE4UjIzsusyko X-Received: by 2002:a17:90b:8c1:b0:226:effd:7fa8 with SMTP id ds1-20020a17090b08c100b00226effd7fa8mr16618171pjb.10.1673452279589; Wed, 11 Jan 2023 07:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673452279; cv=none; d=google.com; s=arc-20160816; b=zOWvLPckdRYjuLivjmgIbuo+WQjUhv6IuknYg1bPD/R5yDUtrmko/wB+EZ5FtfAxGL yqEKNs/nw+71bcM52tkq0radw8+kYer325awX9z9/okLy5XF5vneqK5hMluakdxPbWHl F2eA0wrKpkKIxIrK6J9uHt2yPqqgFYkKO+UiCz8q8X0KcnqGBFy9L4XYKHjJ8kY/jpwI wrW0lQ8KW1IyzjW/rYtpj6r8VKAts+uixArSsN9qXLhN5ktP+KTjxOaIC3JJ29MbKU9T /9cbswi6MCJl/6RyvGhgr6ZYxL8mp90kK/euTgF9tjfOuw0VfZKcEsyBtQiIemMX1Xwm BzfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xT70OWcz833cuZFvU6lsxCC9SixCafTZ0oSiz97CmfE=; b=jZ5JvCSKfMv40sv02NMyY5Mfox5WW/L0jVgDj/5Jq3gryHpvo+9oS2/QgHYxmDoRxY XsMmeIdh67eY4Bl8YQ0kS3yUMamjJAilresmXX+LxPS2rRUHrEeWnXObfoXEml40pvDI 4bnmbuO9pbVujfZzss6iXuF02tHb5KTNwCG2CfblYlQmEOfwQV6x74ql7gKWowF54FUy 9xSWxDsWGqZk8VzMoBx/7oUeRiNddAhzXS4xUpno2fxubf3Z41D2PIAD846oJhTPgdq7 vIRHbCwnp/J5Ir57UK+ZhdjSLej5xiCNqxRZGzMnIo6TIYF5BBoJ7+x4smzGOJMTtW2c k2ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=a1XgE2AE; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl10-20020a17090b384a00b00223b1092804si20823902pjb.163.2023.01.11.07.51.13; Wed, 11 Jan 2023 07:51:19 -0800 (PST) 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=@suse.com header.s=susede1 header.b=a1XgE2AE; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234315AbjAKPgq (ORCPT + 51 others); Wed, 11 Jan 2023 10:36:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234211AbjAKPgn (ORCPT ); Wed, 11 Jan 2023 10:36:43 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8124A19C2C for ; Wed, 11 Jan 2023 07:36:42 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 75A2F4CA5; Wed, 11 Jan 2023 15:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673451400; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xT70OWcz833cuZFvU6lsxCC9SixCafTZ0oSiz97CmfE=; b=a1XgE2AEDfI2pmKsQcZKd/Nn6GvJw6PpzPFF8zM5YajPNQg1+06otGxSDbhCW14VIwWGAI ndybgQ2FY5cSZZAAH8P41ND2HEAwbq5utx+tW4MDswkJWpZCM6TxqJgmwi2Z11Mpb3ch8F 5aZC/GbFiYxhSvPNqUJnFQSCAfAcGAg= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 13E3D2C141; Wed, 11 Jan 2023 15:36:39 +0000 (UTC) Date: Wed, 11 Jan 2023 16:36:37 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v5 0/8] printk: cleanup buffer handling Message-ID: References: <20230109100800.1085541-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 On Mon 2023-01-09 16:10:52, Petr Mladek wrote: > On Mon 2023-01-09 11:13:52, John Ogness wrote: > > Hi, > > > > This is v5 of a series to cleanup console buffer handling and > > prepare for code sharing with the upcoming threaded/atomic > > consoles. v4 is here [0]. > > > > The main purpose of the series is to introduce two new lockless > > functions to handle reading and formatting of printk messages. These > > functions can then be used from any context, which is important for > > the upcoming threaded/atomic consoles. The series also helps to > > cleanup some of the internal printk interfaces and cleanly separate > > formatting code from outputting code. > > > > Changes since v4: > > > > - Make console_prepend_dropped() a NOP for !CONFIG_PRINTK to > > workaround compiler warnings. > > > > - In devkmsg_read() use printk_get_next_message() for the wait > > condition instead of looping to retry the actual read. > > > > - Add an argument @may_suppress to printk_get_next_message() so > > devkmsg_read() can specify that records should not be skipped > > based on loglevel. > > > > John Ogness > > > > [0] https://lore.kernel.org/lkml/20230105103735.880956-1-john.ogness@linutronix.de > > > > John Ogness (6): > > printk: move size limit macros into internal.h > > printk: introduce struct printk_buffers > > printk: introduce printk_get_next_message() and printk_message > > printk: introduce console_prepend_dropped() for dropped messages > > printk: use printk_buffers for devkmsg > > printk: adjust string limit macros > > > > Thomas Gleixner (2): > > console: Use BIT() macros for @flags values > > console: Document struct console > > The series looks ready for linux-next from my POV. > > I am going to push it into a new branch rework/buffers-cleanup within > two days or so unless anyone speak against it. JFYI, the patchset has been committed into printk/linux.git, branch rework/buffers-cleanup. It it intended for the next 6.3 merge window. Best Regards, Petr