Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp431209lqg; Thu, 11 Apr 2024 07:19:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR6LxknppqdpeLzprEHatAHpKLwQQRJNJt6X1wwCp4aPG4tWv5jcj0io4bj7Fok07yjUoU4EdxWZseabuBPVuOQoWnv4vMqudpN7ZJmw== X-Google-Smtp-Source: AGHT+IHP+x2rTCCuTZP4tmG7LDCtCpwxIGu+EF7kkB8tX1dAw+1h9Obqy4xBijmYtunamEhRMOB3 X-Received: by 2002:a19:7507:0:b0:513:d3cb:249f with SMTP id y7-20020a197507000000b00513d3cb249fmr3845383lfe.52.1712845163772; Thu, 11 Apr 2024 07:19:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712845163; cv=pass; d=google.com; s=arc-20160816; b=H69DO1qGnQQ2uwxUy+z5dyLvvu6g6eBJJ6ue5jJoSUDobcAkcENxrP5QgTIPB5wHsL tmaGz8TWpXaLdZu2Abs2nM0vYpOVNjXKpw6ruSuHV85EiqFdWoyyEQ5kc+ZiuWwIkmU0 7sA8BJpL5JphEYuXCDIQS2yYhsDRZNUKjFqP/GeYHfIL3DBrgH5QSed0g69emGZjMaVm +WRN/UmTRiye8RwXGxAlApY8yea3W05pDWPOdNrs4s0BHJl3xlFh43dKx40jyUmKqiMD ci4vC19FZbrd9DnnCVYFiOf5zxk2+iPZ2psMyU6pqotO9tOK9mKY1G88nUJeLpcwSUO2 Yhjw== 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=JdF8TbJ6XCUAykiwO7YxwqEyALXdNC9cLChr84shEds=; fh=Dpf9nEJlKdZuW5R3TU2Q95qHWa4rwnBOWMr0MrjZJ3Y=; b=Hx7hUcvKZgdKSdpEcvTKPqomVOzNHcV99TTg8f6RilCAu9APrv9cW3DYMpbzGoHT/v PT1AUgfPopM8f/PBFxHAAIPkG0lU8USZEr0jiQda0Y9bqlo350cnk3R0CTft5vzEV4oH Zu1gfcccxG+/9QEYc0jgfN6IQUQq0zdhzLUMYi1Pz7QjNBypUwu0dOMupA+95t1+2Ueh ZtIBfEddBdreVbgzxwVLoFlfu/ARFgcHV5XK5+13i6jCGJhsupsj3MktdlTZrW7TeNmB x7LNhbgbITluFsOUcQW0EsMqHSsS9gqjiuk0NTcwIg57eBv4zQ30rXzy2bx2v/iDPwwv eKtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=eRRdMZiK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-140628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z22-20020a50cd16000000b0056e54abd148si789633edi.286.2024.04.11.07.19.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=eRRdMZiK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-140628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5BE7B1F24317 for ; Thu, 11 Apr 2024 14:19:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C0F6149C7F; Thu, 11 Apr 2024 14:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="eRRdMZiK" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8903822096 for ; Thu, 11 Apr 2024 14:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712845145; cv=none; b=BKIuQEBx+ZCEPNkCrYl5Sn3HVun8hTjJqJZlRViuvCgxCjRhTAeZqzUR7/Ig23+dkMVp/oqOLN49svUOJdH0RyqJKRRofja4nOAOg0hWmrTVpEVp6OLALiCKzZeHN+JW97JJSzywKmHKqv0hiSRsClzdSz6sPVWjpC0h60OaomA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712845145; c=relaxed/simple; bh=4aoiyNYDW8jeLy6MMhFifIbAcdv4Nq77FeTI1WAUyos=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bsBAH2dZiDNclt6muPPiMAlJKKbD0eyF7brAnJu3SpRvN4XVvotRdi+8DfIrxT0GPZzFOp+22YSJx/6uQtmhZZz5Z29VsoMpsyNSy82lqLCOGBcrNLVhQ4y/YZc5Ew8ozctKp6p96cfiKr80f0a/Lh4py0MV74fuftY0+osOAJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=eRRdMZiK; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3465921600dso1844542f8f.3 for ; Thu, 11 Apr 2024 07:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1712845142; x=1713449942; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JdF8TbJ6XCUAykiwO7YxwqEyALXdNC9cLChr84shEds=; b=eRRdMZiKXptHSQWDB/Ip8FMS7PiIbaYv5aYQBCrcDfyZ7tVtMjPddhMvJ5J42Q2JQT 0D6CBF//SIInzVAb116AGpCwDAD5/O7IPaoKjLyD10BlTstVrcxmPXoLabEdBo9BTJct VVyjAXCfPfdYIck0R8MCx5jOH7TLr1oTDu7NCFiC/2dRbJZl/LazTnbatReyUMDEy8Qb C3NciaZKbl0MeeFVn62sNGZejjG/XGb+Hl3HVbImuhGkdcwvFXSqF+KtwKit2vlJ7NTb CFxCQPOvXL0pWbIUEOLg/he6kT5ocSxkijhswUu/iSKeu0tmBdYrTO44KCHTutnVkHvy W7XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712845142; x=1713449942; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JdF8TbJ6XCUAykiwO7YxwqEyALXdNC9cLChr84shEds=; b=SRUpgXzFZu3kN82cUxlVQPx5LldXFXIyF0iS037Pjg4/rvakztfe5Q2mvAS9MYpmcc aMuqSlXTAuPqX/DDBIvPt8qr8Uul9NF/CD+SgmORYGBu0uJVF6W3V3BdrPlr+lTy8XW0 q29exDcZO1kdfpcmJv9uYaZVFGkGGAq7jIFu2fNBO0Fd0uwUOdH9IN5RZnqlL0JJdOAJ 9Ey+xKLU4VZyImZ9zuekuaANnIbU6LcplFQcvcR4OwCNHDPtPg/2qhrbLXQuXxbA0ixD f0T3GVroradOZBKPFUch2H06f3hddYYb+ubANSH7Kl/+Gq92urrfI3iEolaefmhzVUed 0Oqg== X-Forwarded-Encrypted: i=1; AJvYcCXNmoZhD2eIrccYjIqAG9UFdRVpFGgFQgoHgCGptcsH3vrg8L6Tmo+FOiUfDQAh5qGjfeuEcOYuKVVSoL1GP1+icAjileQhEuZRfafa X-Gm-Message-State: AOJu0YzigJvZmrh2nBfOjex2KLv+cTFjcOuHoVDZLBJy9XoeFvnqgdqh DjcttvF7YbpaTLlv68MGEuSEjYUSrtUeLtq73d4IVEjiS6EsNQacBO7RbyZKFyqQcZB+FmCbetb 0 X-Received: by 2002:a5d:47a7:0:b0:343:f3d9:a9d5 with SMTP id 7-20020a5d47a7000000b00343f3d9a9d5mr4777239wrb.10.1712845141836; Thu, 11 Apr 2024 07:19:01 -0700 (PDT) Received: from localhost.localdomain ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id w13-20020a5d680d000000b003433bf6651dsm1880039wru.75.2024.04.11.07.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:19:01 -0700 (PDT) Date: Thu, 11 Apr 2024 16:18:59 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Andrew Morton , Josh Poimboeuf , "Peter Zijlstra (Intel)" , Lukas Wunner , Arnd Bergmann , Uros Bizjak , Kefeng Wang Subject: Re: [PATCH printk v4 19/27] printk: nbcon: Add unsafe flushing on panic Message-ID: References: <20240402221129.2613843-1-john.ogness@linutronix.de> <20240402221129.2613843-20-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-20-john.ogness@linutronix.de> On Wed 2024-04-03 00:17:21, John Ogness wrote: > Add nbcon_atomic_flush_unsafe() to flush all nbcon consoles > using the write_atomic() callback and allowing unsafe hostile > takeovers. Call this at the end of panic() as a final attempt > to flush any pending messages. > > Note that legacy consoles use unsafe methods for flushing > from the beginning of panic (see bust_spinlocks()). Therefore, > systems using both legacy and nbcon consoles may still fail to > see panic messages due to unsafe legacy console usage. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr