Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4769447rdb; Fri, 15 Sep 2023 11:37:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTA6rjoAdD3/R0L3hKfEQsmuUw4vw08iV0XsAQNVFp+MVVdh0uSyd8f+HcO4ENaI5bnpNE X-Received: by 2002:a17:902:eaca:b0:1bd:f71c:3af3 with SMTP id p10-20020a170902eaca00b001bdf71c3af3mr2404865pld.32.1694803063224; Fri, 15 Sep 2023 11:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694803063; cv=none; d=google.com; s=arc-20160816; b=ugP8NLG+aLc+t5Tmf6L2Cqv+nHeba7ccSPz6no4Nqfh3NVSvc3qIvpQRg0ZnjnW8Pd Wjw6Z4cQqjwfFcG9/+L2ZZvux0GIfigOuzc1Vn3XUTroKJT8c3PqyjARu4gBA0Ucwf3f Y6qeXKewqI7a1sZI1Y35cjyQogiw8cA5e0dmsAtEZ3kJ53CT8e4j1Yud87fOhsTQJYS+ aaZEC3kEFRNktcEYVnSAwuiQGL5iiuUnMEr/0nipLjMOiQAfeo5x7lXNnQY3zjoaAEH+ XpFLkh1I4N3oH8etF0yJS8DGuf4NTC8NZa1K5fnctxypjAosmWoZoW9XDDVQw1a4cZoT v5dA== 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=4ZgXzmDwcApmJoueBiYmEnyctIBcVAVpj2XK2plbBnQ=; fh=T9VKCl0Ppm30gx9lQfMQ2aUeZhDNLmq6BNwiKx9E8/w=; b=Zq9ebk8lE5pqelS3pI3IYTSAzZgMQ/3rvfdzMn1cLodIq+F98frvD3yBeJo5uBwP2k 5li+fgnwZhzzQNfgK7vpfODcOyD+V+BemG85eJ+82cabd2euruauaLRGmGmNgXLGPT5s KWglkU0bb2e8ftYdiX5NxpAvcZ8jlLS9n+UKTawZtTsbcsJ/Czf32EEMTH2O4TNvie4p RBqBVjPr4WRzCtFDEkQt/waupDb3Lk83ZKVOsqmvtHZ/TohwA8bGKhIyG0TxPbHnkAoN tI7dzHi6mSAIwxpG1a323YQqUWF8t6oJ4BsoiwI2L0y1wpcXfpL1ZVhOYhZfFSytTb6/ auaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DAbxsENx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u9-20020a170903124900b001c33d33975esi3996604plh.133.2023.09.15.11.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 11:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DAbxsENx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 365A582B8DBB; Fri, 15 Sep 2023 01:24:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbjIOIYE (ORCPT + 99 others); Fri, 15 Sep 2023 04:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbjIOIYB (ORCPT ); Fri, 15 Sep 2023 04:24:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBB2C4C1C for ; Fri, 15 Sep 2023 01:21:54 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D946B2185F; Fri, 15 Sep 2023 08:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1694766064; 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=4ZgXzmDwcApmJoueBiYmEnyctIBcVAVpj2XK2plbBnQ=; b=DAbxsENxRHr+HWKe7Pilg8t1GN0UxWpgjfmYB28cU0aPXfx+5A2PQP3u/jJ7wM9o1zlRiz IN6IzmX7PtIwQUk1u4kVS0Z+l/wusDfoo9/EVzauIKFEFT8zdPQqAx+yUmeS6/nQVcKooE nRrTSvDiYQXNhADiQ+YLBHe0G/kV8oE= Received: from suse.cz (pmladek.tcp.ovpn2.prg.suse.de [10.100.208.146]) (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 9F71C2C142; Fri, 15 Sep 2023 08:21:04 +0000 (UTC) Date: Fri, 15 Sep 2023 10:21:04 +0200 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 v4 7/8] printk: nbcon: Add emit function and callback function for atomic printing Message-ID: References: <20230908185008.468566-1-john.ogness@linutronix.de> <20230908185008.468566-8-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230908185008.468566-8-john.ogness@linutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:24:04 -0700 (PDT) On Fri 2023-09-08 20:56:07, John Ogness wrote: > From: Thomas Gleixner > > Implement an emit function for nbcon consoles to output printk > messages. It utilizes the lockless printk_get_next_message() and > console_prepend_dropped() functions to retrieve/build the output > message. The emit function includes the required safety points to > check for handover/takeover and calls a new write_atomic callback > of the console driver to output the message. It also includes > proper handling for updating the nbcon console sequence number. > > A new nbcon_write_context struct is introduced. This is provided > to the write_atomic callback and includes only the information > necessary for performing atomic writes. > > Co-developed-by: John Ogness > Signed-off-by: John Ogness > Signed-off-by: Thomas Gleixner (Intel) Reviewed-by: Petr Mladek Best Regards, Petr