Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp741376ybl; Fri, 9 Aug 2019 13:08:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy14p3DubQ4SQvabxDJqWXX1tcT7+AXoM/9JsyXIyhTmQWl2w/KnWyLxVW8aA7vqncYaw7S X-Received: by 2002:a63:2c8:: with SMTP id 191mr18655974pgc.139.1565381335834; Fri, 09 Aug 2019 13:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565381335; cv=none; d=google.com; s=arc-20160816; b=nntntkBqzp96nS4TfcB7z4Qp+ChmAgxyr26f7K53snuEvwe171U5wcNQw+hP7CVEdc FpXEf3c7uLZ0wEPQxPHUK8fPDPTn7scBhf/3LwR2plyc6J19pYechpwEkxXel5ht9ocQ sUpZlD6tmwUQmZSfOEyzvPImRuRxViseOMWhXtitY5ILqI7nFRRyH3jo9ahOzRx2WCW3 yb4wout+luHcY4RCPnZ4pAhiP9vJpTbhkxkOQ9w+/Qq0FVs2yNRLQoaVEehr6eHc7IhO 2POtMfUnSn+yDSN/HDvHfRr2VRZWO3ZEnZehELC0EvTfmC7k79vaxAK4N7sDDk31HdAt 1tAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=NMLbFifS+73GMreowfShzoP6v9voKVMtGkvYa4xe0qA=; b=Qr3PcwAghq/axaLvjHgn7glEMcTg5RdHsGSIyWd7o1JWjd5aahnniecOXZ81/tWUV9 fIQEuZThKkVxWjttMHNS324oTNUQUGbe5B03+o+yB+xpP/5r+E3Zg3HaIqc7hhMuJVY1 6yVSmp3Jh2PSz7sBi1E8zSGUZZ3od7g0AdEQznVsaKFzTZeb6rflYU4lMqcMjsjMaSC9 9OxpK1DjJNoT7FxezdCfZIJfi7fd2dKXXzKr2qhzxghIK+oLLcHxWRT6lGvWVb2oc7aZ uYzcW2/7Wn27ASPD3TEyeD1vJAyaEIu3ShCuIaza/5FloidNHVbuyotwAQZd1UiPzjVL sfcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v19si54047312pff.229.2019.08.09.13.08.39; Fri, 09 Aug 2019 13:08:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726219AbfHIUHj (ORCPT + 99 others); Fri, 9 Aug 2019 16:07:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57652 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfHIUHj (ORCPT ); Fri, 9 Aug 2019 16:07:39 -0400 Received: from p200300ddd71876457e7a91fffec98e25.dip0.t-ipconnect.de ([2003:dd:d718:7645:7e7a:91ff:fec9:8e25]) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hwBAi-0005PW-HC; Fri, 09 Aug 2019 22:07:32 +0200 Date: Fri, 9 Aug 2019 22:07:25 +0200 (CEST) From: Thomas Gleixner To: Linus Torvalds cc: Steven Rostedt , John Ogness , Linux List Kernel Mailing , Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Greg Kroah-Hartman , Andrea Parri , Sergey Senozhatsky , Brendan Higgins Subject: Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation In-Reply-To: Message-ID: References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-10-john.ogness@linutronix.de> <874l2rclmw.fsf@linutronix.de> <20190808194523.6f83e087@gandalf.local.home> <20190808204841.5afcad46@gandalf.local.home> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Aug 2019, Linus Torvalds wrote: > On Fri, Aug 9, 2019 at 4:15 AM Thomas Gleixner wrote: > > > > > > > > But I don't know what a power-off-in-laptop scenario really looks like.. > > > > That's random behaviour. It's hardware & BIOS & value add. What do you > > expect? > > > > I tried on a few machines. My laptop does not retain any useful information > > and on some server box (which takes ages to boot) the memory is squeaky > > clean, i.e. the BIOS wiped it already. Some others worked with a two second > > delay between turning the remote power switch on and off. > > You were there at the Intel meeting, weren't you? Yup. > This is all about the fact that "we're not getting sane and reliable > debug facilities for remote debugging". We haven't gotten them over > two decades, we're not seeing it in the future either. I know. It sucks. > So what if we _can_ get an ACPI update and in the next decade your > laptop _will_ have a memory area that doesn't get scribbled over? No argument here. > Does it work today? Yes it does, but only for very special cases > (basically warm reboot with "fast boot" enabled). > > But they are special cases that may be things that can be extended > upon without any actual hardware changes. I'm all for it. I just tried it out and the ratio was 3 out of 5 retained the data +/- a few bitflips with ~2 seconds power off. The other two were the laptop and that server machine which wipes everything. If that can be avoided with some ACPI tweak especially on the laptop, that would be great. I'm not so worried about the server case. Debugging laptops and random client machines is the real interesting use case. They usually lack serial and even if they have serial then the reporter has not necessarily a second machine to capture the stuff. Thanks, tglx