Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4442765pxb; Mon, 21 Feb 2022 21:46:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7UOIssi90Vjjm7KwDpFrlJmis3625NDMvHmNJWjXdFC1dFBvA4ZjqP/Tjqb75exTLxN+y X-Received: by 2002:a17:902:8e8a:b0:14f:a673:bb61 with SMTP id bg10-20020a1709028e8a00b0014fa673bb61mr10203898plb.151.1645508782711; Mon, 21 Feb 2022 21:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508782; cv=none; d=google.com; s=arc-20160816; b=O8+xoZoIHroj9yQ39gxNuQAmbjN1h9IcY/lbzZ5TsI8lU4dUn1XqTxDUzrBuyGOOEt z3oJ5RKA8R4yfMfqnxYXCI+QOuQO1AgN3TCOEUpUBmebaLeefp9CFu5ZI2FNWE42paDc AfPTMtQBfwKIosC6v/IeLBg/KEhwLFhE+b3aT7XPYffWMTlQUWjdvmn00i5GUrm/2YC0 C6pkdxp4Mi4EsF2Cb4c25VaZ3i/QLF1btUs2HvEAcfANR7kfSgeI3YoA/LE6EK8WBKvD DPFc5UFGxh7yUT3Lo2U2KASj69uqAiS2O3YvWjan/zwz05D/KSOf9+W7/tZGBwa9GG5i UIRw== 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=LkXCeMETVGrdnKNJuMO1AGVw8fBt1JlBhEXdXZ0UGeg=; b=KgimUzHgQepBSwtlm9COMY22Zw/5tA98DZdXg10oUDkNPbDK0WU1BtVOi1WD7TIdon gjYUeN+Fi8It1dILSkfT2L9wUsDOZ6vSpsMbNGpQEUTPl/waVWJ4dw2gDNxY0HFsq4tz dejNlycimCpbkCTfMUhfMsdlo5bEiswNTZOlJuMtPr+NKyt2oeK6riPcwFqj/beCMhRW 3CWDckIkOfyS0TXRo8vX+u/MsDHQEo6vNWVbPG0p3NLer4NjeAxke7vxDcZQVoUmhUCc JWMJP64A5xNbqcLq6tOfGGrZ+Lbs0YuSQ7DE6Youdbaq3cFKBH44E/6dQv+B2rJcGQdy k9Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F1bl4q0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h11si10306698pfv.60.2022.02.21.21.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=F1bl4q0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEF3FCE925; Mon, 21 Feb 2022 21:11:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238980AbiBVCLQ (ORCPT + 99 others); Mon, 21 Feb 2022 21:11:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiBVCLO (ORCPT ); Mon, 21 Feb 2022 21:11:14 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DF5124BE1 for ; Mon, 21 Feb 2022 18:10:50 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id m22so3036272pja.0 for ; Mon, 21 Feb 2022 18:10:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LkXCeMETVGrdnKNJuMO1AGVw8fBt1JlBhEXdXZ0UGeg=; b=F1bl4q0YkVSasyLLYUbnDjNAHs/HssWBpVQEixgFa3q0BbCDzl/adCunF5UgVrSYQu XjVcTc3q7J0PZ/5zBEaBN77+CRPd09VQ0/66UcbAaO116oMl5q16SMSstiaDP7LSyuhW ik8B+MXMdvmPbKwlRa0mJ/CnZINQD08mgtvVA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LkXCeMETVGrdnKNJuMO1AGVw8fBt1JlBhEXdXZ0UGeg=; b=x1FJt+jJklGgxeTut34dMVK9IlWkNKsr4XM5HCTCDdTJiOt/gGFeKv/7sme+BAip2s FidroL9TwKImD1OS1QEJzq6UnhO9GD9/A2yG3DGOu4+LJJNsY2UFKl1h2vECrRcpMduM rHerxbQ0z8yIwyoujgghXLj4uXgV1K/wvY8uIndeN9feEiT+oonfdQhHUXc40tuKzYYj yl5xpMlMs1gdlwKsllIjzy+UIRVME985zZe1+O+gF31q5HAo4DuzUbjeE5RjFJ4DPU4I KuOvIRJrE94/1qiqCUYRYfLgb4HI97NBESSQEo2TRqvwy7QJpSc8vzsSwkqP0LiOy/f7 MN+Q== X-Gm-Message-State: AOAM533wAwHBAwn2R1tkLrkMx1BIbeUXUzTNzNCkeihrz3fhDlgeHCC2 7ngCd1P47ut22OYJvJ8ZiV4Iag== X-Received: by 2002:a17:902:7403:b0:14f:9f55:f9e6 with SMTP id g3-20020a170902740300b0014f9f55f9e6mr10531823pll.21.1645495849589; Mon, 21 Feb 2022 18:10:49 -0800 (PST) Received: from google.com ([2401:fa00:8f:203:3f16:2239:960e:24f]) by smtp.gmail.com with ESMTPSA id p10sm15181086pfo.209.2022.02.21.18.10.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 18:10:49 -0800 (PST) Date: Tue, 22 Feb 2022 11:10:43 +0900 From: Sergey Senozhatsky To: Sergey Senozhatsky Cc: "Guilherme G. Piccoli" , 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 Subject: Re: [PATCH V6] panic: Move panic_print before kmsg dumpers Message-ID: References: <20220214141308.841525-1-gpiccoli@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 A trivial typo: On (22/02/22 11:06), Sergey Senozhatsky wrote: > @@ -286,6 +289,8 @@ void panic(const char *fmt, ...) > */ > atomic_notifier_call_chain(&panic_notifier_list, 0, buf); > > > + panic_print_sys_info(panic_print & ~PANIC_PRINT_ALL_PRINTK_MSG); > > > kmsg_dump(KMSG_DUMP_PANIC); > > /* > @@ -316,7 +321,7 @@ void panic(const char *fmt, ...) > debug_locks_off(); > console_flush_on_panic(CONSOLE_FLUSH_PENDING); > + panic_print_sys_info(panic_print & PANIC_PRINT_ALL_PRINTK_MSG); I also wonder if we want to CONSOLE_FLUSH_PENDING when PANIC_PRINT_ALL_PRINTK_MSG set.