Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1989234lqp; Tue, 16 Apr 2024 04:18:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnT4X6At8K52CDazZGV5P5nzc+zfFoPI/hDhy648mECvhBpAekMzxgZ5sElLv4JXM5GMZmQk0st7wIFBpVtQJGRbAj6NFjqNlrUbLzeg== X-Google-Smtp-Source: AGHT+IGMU+1MiQmhY1gw3c+D5uUF4c6Fr2oviv3V81iL7E7VHPk0S4ysYrXNIM5Ng7hiYI7Q6nL3 X-Received: by 2002:a05:6214:110e:b0:69b:1540:50c3 with SMTP id e14-20020a056214110e00b0069b154050c3mr13400446qvs.52.1713266289341; Tue, 16 Apr 2024 04:18:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713266289; cv=pass; d=google.com; s=arc-20160816; b=ye2CFzPxIY+2oTpyK3uvIhROEotWo7LeHj2uDClwJ6so92M6PNDA13LCgPKXIEqLM8 bxPCeg8HdpU/conZiQvAnzvV36+LogevcGn2kNIDu8+oEp8HMFvLwS21/pkirNSb4vqj OExB1jYwmg2j6zwg1pucFu11jMHbk7SU6K8iCAS+xRt0baZrf4bqzGnF9IH2i4nwpEGA QMBED/HmG+U9/iOL9fKT2q6Y98REK91/vC38E6E88a9oPkYTb13lZ/GocN+VsJpU5Z02 TsNqQQFS3g7wCMJxWlmHGmQ5cuk6/YtrJ9b5nyLqfNRtMk94OpADG25EDb2/e2fTJOvX BA4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=duFrP0x3+qNKG3tHLlle3sc6z5Hv/xwPHlK3OcIV2F4=; fh=Unqoom4MtE/FBSFX1blWTtYxv0VO5uearIghL77q4S8=; b=I91JDMIEhGMaYd83I+XH3AAaIvUFi5G2d5o6SOnUNEd5Yxaqs3XbQ2m7XB/usYp3qR iW23NUn4zgqYm8o/GtKh8uKwjCMil6l56jZKgdPdpY3u0d9AbyjFgy+VIc1eBaHXoPz8 KUi9Q9O+R+4DOwLOfNrRsclBg/KXBbwOG11VKRWXuCsU0JJ0r1VDr5g0+m3f4JOiZzJJ kwGDpIszvmXLHjDzqSNC6g13VKfxMn/NVTKvGZimRd2Uij4kXNQTFmmioFfWs5UZ4w45 1j1E4uPTqlPMNUvosW93kXTkMhBGymmLQrn8JJrN3sEn/TY13e0OW5c3qJAGYPmLInpS X/Yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MnC69Yz+; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-146698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146698-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pe17-20020a056214495100b0069b503c0f35si11599617qvb.600.2024.04.16.04.18.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MnC69Yz+; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-146698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146698-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 16EDC1C20BD7 for ; Tue, 16 Apr 2024 11:18:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 552A012882D; Tue, 16 Apr 2024 11:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MnC69Yz+" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18CA0128820 for ; Tue, 16 Apr 2024 11:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713266282; cv=none; b=QHdJLMj+hrQmt29lCMPtE+dnzEAp8EBXGSsiDdXXyYz9tDADHkzY4EuSn8GIQBiy16k2ksg0dDh7j3f1MaKJq43O3WcMBIseWOaUIyRYHhKrcqkBQp+LXqsgVIagqQ3vLjoe3a3EdpIVzq/5ARSgI9jDL5+kozQRUxQ/AS73V3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713266282; c=relaxed/simple; bh=duFrP0x3+qNKG3tHLlle3sc6z5Hv/xwPHlK3OcIV2F4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bL8fBCT13a5+dbv/XfoEZSjIAxWhYvKeuqrNDKBQ+3FQVaSOXLuWDf85Jg+vPeDPKScZuEE1YIZpZ7SfWISezeyLUZ8yZ8inkg1cQpLWmiY7kvO+hau0tr1YYIGAF2xM6pA4w6FMVckLuIFAqONSXdRGjsRR8DxNu9iVUnflIoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=MnC69Yz+; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=duFrP0x3+qNKG3tHLlle3sc6z5Hv/xwPHlK3OcIV2F4=; b=MnC69Yz+ffXS32fDmSHhEEtzGi uWCzvG/izsTyQ9o6+MJEEC3oewhucbyLwrVCZB3K3rAtGXzpPpG1j7vHmZDWOJfcil6bw2CxOU08J u6mCZ588PSMIUAmtbkj82TizUTUJnzKJPymi/He1eHQTcqQspgM8ZfFhsvc8x5j7faZZuHqVniC85 iG/nMiO+JHu8pJ66akDNPt1mDBQhR9dVCProDP1aMrM/ll7enCO7rJsg+LPAQ/UhUyDcN3BYae/5+ v4DW1kvoGx8Od97MXsm6OJyWf+J3+ax1fhBw4jzU5GX7S+UQpvrYxJO3lb6vVl/wRlzIbLQvzHwyj GFVTJbeQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwgov-0000000B2oH-2MEV; Tue, 16 Apr 2024 11:17:52 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 38E5C30040C; Tue, 16 Apr 2024 13:17:49 +0200 (CEST) Date: Tue, 16 Apr 2024 13:17:49 +0200 From: Peter Zijlstra To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH printk v4 27/27] lockdep: Mark emergency sections in lockdep splats Message-ID: <20240416111749.GM40213@noisy.programming.kicks-ass.net> References: <20240402221129.2613843-1-john.ogness@linutronix.de> <20240402221129.2613843-28-john.ogness@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240402221129.2613843-28-john.ogness@linutronix.de> On Wed, Apr 03, 2024 at 12:17:29AM +0206, John Ogness wrote: > Mark emergency sections wherever multiple lines of > lock debugging output are generated. In an emergency > section the CPU will not perform console output for the > printk() calls. Instead, a flushing of the console > output is triggered when exiting the emergency section. > This allows the full message block to be stored as > quickly as possible in the ringbuffer. I am confused, when in emergency I want the thing to dump everything to the atomic thing asap. Storing it all up runs the risk of never getting to the 'complete' point because we're dead.