Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp59752pxm; Tue, 22 Feb 2022 06:22:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0u6WIeAo5ziMyrZ0BC8enN5QXZfm/DiESP56z7KuppiSd+IkYj1LMZ+1kAYqmTTha8Un3 X-Received: by 2002:a17:906:6a04:b0:6cf:db6:bda6 with SMTP id qw4-20020a1709066a0400b006cf0db6bda6mr20003181ejc.738.1645539722104; Tue, 22 Feb 2022 06:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645539722; cv=none; d=google.com; s=arc-20160816; b=f3WuNa5jIac/3i/9WFCRwXEjWGUFxSmHWmMGZDV91zDAqWOb3C7wDyeC3FWQdE+KL/ Fa2mXEWiJl59yNfbZuur24Y0DAB4tcjqPiimE2I73X2oM8ZdRf02qAJGEyitW9eM+5iP HUNXnAK5IVPVb2JBhT9QVjbVqkUCfW5ggov/bcZMb+fGewow5CJcRkFjxodJISd+8G3o n0lKxfePY8TeHkTb5+9lHSUws5enPQgitK98TbBLFKhOPF7SFJpQffshvisWgePrKBdm iSGL+O0qwmZWGD+RK+P+xLcz/LkDkBZAULVzwsKMzo5SFrKhEnOp8t1FjhL/oB3qXfHl YUYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vMej+VrDOD0RBi6P1r9SXmw6cxETn0/Zaidz3Pki5HQ=; b=a/EII4Bo/sdzKUqtDVLEQM97mgEgtxsD5D1IbQAoMn5FgMciGjF758npkxWiRPejEh pn8jozJmuIl2/QwnaNYFpjIvqBiutAbEgDdXxjMrzp4mgfRumqoQKhXGlEGBid3iOuMu 1mh14NjcUP2KQw4Hxi9AxqfdbQ3KCvR6/J9ZzMfuCDH+0PT942QoAr+b8CyUMMsChOls XB+qn/P2Z1GSgLp1WpbEh5NnoekBNtbKiFR7rD3lrr7+REhwVRV1wiOucn3hTfl3e2eD 014Q5dHeajWJJKrbIIOrfBb0U0+YuEtQPBv6Q9rLCsnHTkHtptnXL0lVcJRyh2mpvnDj C+KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=Q0tEkJXu; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy11si9838449ejb.767.2022.02.22.06.21.38; Tue, 22 Feb 2022 06:22:02 -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=fail header.i=@igalia.com header.s=20170329 header.b=Q0tEkJXu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbiBVOLc (ORCPT + 99 others); Tue, 22 Feb 2022 09:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232259AbiBVOLa (ORCPT ); Tue, 22 Feb 2022 09:11:30 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9975115F631 for ; Tue, 22 Feb 2022 06:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vMej+VrDOD0RBi6P1r9SXmw6cxETn0/Zaidz3Pki5HQ=; b=Q0tEkJXudGRQJbKHm7UyeV2+jw V1eiqR7SLbQRtWxkzSgdCYA7dHSKTp16TKCKuhX4NXFPwPtrB4p2eGEzIwXbJkTas6ZPeaZDHamhS n5sYUai7jHk36/ckix3tnKYB/f+uVB6gzIfleG0XKs1JS2u8VKnzhShh72e2UbtU+BAd/BylBhmKe wT3A8pZZiArMPGsC80jmIUp4DGQkSMqgHviui4zS+tQU1mI3T2c7Dvs9Lq33HgnsDUDNAMo8XhJ4T zX+NYEJsC7MrPvYcFiBzsPJeK+nzuvawSi085GeeKuw/xYQ+IZ8yDUJTNieuMZBzGBZz5FjWo8a4y LciR0chw==; Received: from [189.79.213.38] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1nMVsd-000A99-Bo; Tue, 22 Feb 2022 15:11:03 +0100 Message-ID: <7e15bc6a-ceae-aa3a-0a86-18d24181b0ed@igalia.com> Date: Tue, 22 Feb 2022 11:10:48 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH V6] panic: Move panic_print before kmsg dumpers Content-Language: en-US To: Sergey Senozhatsky Cc: linux-kernel@vger.kernel.org, bhe@redhat.com, pmladek@suse.com, akpm@linux-foundation.org, anton@enomsg.org, ccross@android.com, dyoung@redhat.com, feng.tang@intel.com, john.ogness@linutronix.de, keescook@chromium.org, kernel@gpiccoli.net, kexec@lists.infradead.org, rostedt@goodmis.org, tony.luck@intel.com, vgoyal@redhat.com References: <20220214141308.841525-1-gpiccoli@igalia.com> From: "Guilherme G. Piccoli" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 21/02/2022 23:06, Sergey Senozhatsky wrote: > On (22/02/14 11:13), Guilherme G. Piccoli wrote: > [...] > By additional panic_print messages you mean that panic_print_sys_info() > will print everything (except PANIC_PRINT_ALL_PRINTK_MSG) twice? > > Do we really need to dump everything twice? show_mem(), show_state(), > ftrace_dump(DUMP_ALL). That's quite a bit of extra data. > Oh no, we don't print everything twice, that'd be insane heh The patch only anticipates the call site for the panic_print_sys_info() - but as discussed in the first iterations, we couldn't just bring it earlier due to the console replay thing. Hence, we needed to split calls...the first call dumps the information, the 2nd call only does the console replaying if that is set. Cheers, Guilherme