Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp923755rdb; Tue, 19 Sep 2023 14:40:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJTQj/PUHm3OyqGSShPazcwNmBYDz1PtPu1QdCjG72lxNleZAu+XfjkbU588mAXlSRJx56 X-Received: by 2002:a05:6a20:9706:b0:14c:d0d2:326d with SMTP id hr6-20020a056a20970600b0014cd0d2326dmr657401pzc.61.1695159646997; Tue, 19 Sep 2023 14:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695159646; cv=none; d=google.com; s=arc-20160816; b=QJ76eI1mVlFhtOmmve/7GOt7NEjrNGr/NiuQUuez0HtCUg8kzmmgPcP+VS4RCJlC6W 7IDmX6iTgV0x5y3Q48g/wOry/w3Lwa9Xt3Yn3HCvB7RVriQWKxT8Bz0GoA2bP5ZR55C6 RKNhSAYWnVU3vcwxn45Z25bBYkqYzmZ29BTOChhmlBv7CrjaPY+JH3eS0COF9QLmGmjQ O3lv4VGJgfwgL3SECs3vDIG2KDSHuPK8CUmM9/7bW2qEIcyGvvLf6sSyBpyIi0Qm9BZC JtV7ji5bVCi/eCD1XETTZnTTEZhvQVky9Ifzn+pjf1qqNxszBarONVJldFE69wmjPVgf 1qkQ== 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=V5GqvT7I7TwNxkIgcBAkxvwIrrsobgjxUNhAyhO2TG0=; fh=T9VKCl0Ppm30gx9lQfMQ2aUeZhDNLmq6BNwiKx9E8/w=; b=jVxIrF3Gm5RGxY7NqLbVt7Wou7rRDIyYukuLkr5QeYooWZBdTI99EfoMKO3OpcbEd8 KWzeOIDgsne8IGmZIiN46LPTSS5AmRXniFz9/6pyV+Me+pGiZ+vO3dIvsp4QkuS48s/o ei5v7XKReTWxwVNTXt4bccw83rCoP4v7K+M+p5pHB5VvyIbZ/Y1Hhzro88yLPAVgmrQL 7FNrMXRdQWzJQgER+5h4U1jl5G8zV6Mf9iTElVf+NdZLwFboz4Nx/BZdo6LM3yxAUQpZ gsLRzuSzQoZUqX3OmneEbKw0EnqrsVRqFtQuSNi7QSYQ58p6nJj9Fzfm0HM0CrGGbd/H LbsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=WFhcrZBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id k7-20020a635607000000b005774452aa3dsi4526169pgb.497.2023.09.19.14.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 14:40:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=WFhcrZBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id B947C80398E2; Mon, 18 Sep 2023 09:19:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbjIRQTu (ORCPT + 99 others); Mon, 18 Sep 2023 12:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbjIRQTe (ORCPT ); Mon, 18 Sep 2023 12:19:34 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C1C2359F for ; Mon, 18 Sep 2023 08:59:05 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 160EB1FF4F; Mon, 18 Sep 2023 14:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695047746; 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=V5GqvT7I7TwNxkIgcBAkxvwIrrsobgjxUNhAyhO2TG0=; b=WFhcrZBp9GRwPncyU4nO8fMBLecSSAJP9vYbBL6xd0muDFlkPkRt7DKkCB2lE279Hhpnmz /guvbkOZRIwdFX65x8JwDTT1Ok2XVAnoXYGTRu8IMw2TJQCM/+QwEMmMmduYGiKABO0adb oPle5fmpvlKAu6TeRZ3K4/pstbdmHHo= Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [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 B18022C142; Mon, 18 Sep 2023 14:35:45 +0000 (UTC) Date: Mon, 18 Sep 2023 16:35:44 +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 v5 6/8] printk: nbcon: Add sequence handling Message-ID: References: <20230916192007.608398-1-john.ogness@linutronix.de> <20230916192007.608398-7-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916192007.608398-7-john.ogness@linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:19:55 -0700 (PDT) On Sat 2023-09-16 21:26:05, John Ogness wrote: > From: Thomas Gleixner > > Add an atomic_long_t field @nbcon_seq to the console struct to > store the sequence number for nbcon consoles. For nbcon consoles > this will be used instead of the non-atomic @seq field. The new > field allows for safe atomic sequence number updates without > requiring any locking. > > On 64bit systems the new field stores the full sequence number. > On 32bit systems the new field stores the lower 32 bits of the > sequence number, which are expanded to 64bit as needed by > folding the values based on the sequence numbers available in > the ringbuffer. > > For 32bit systems, having a 32bit representation in the console > is sufficient. If a console ever gets more than 2^31 records > behind the ringbuffer then this is the least of the problems. > > Co-developed-by: John Ogness > Signed-off-by: John Ogness > Signed-off-by: Thomas Gleixner (Intel) Reviewed-by: Petr Mladek Best Regards, Petr