Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3944155yba; Tue, 7 May 2019 09:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzS8GwTdK14SHt86qNLTX9HEdKZwZCSNGAaQtXhBxXHlSPMCDqMh9QQ84jsL8MoH3VwStU X-Received: by 2002:a65:51c8:: with SMTP id i8mr40039281pgq.175.1557246505526; Tue, 07 May 2019 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557246505; cv=none; d=google.com; s=arc-20160816; b=WK8NWyu0kiNoXMEh+a5TQmpcaPaVicDQL0F1D9sh8vhXRFaV9eVzgyKf7EM+sFf2jX Dk1eNxnZskQ7r0/ejq32AtY1136JXatNiZyDFFAw1zOv7S8soJGW2xOiDRwAoH0/84F6 ZXfDQyFWO8m+ogjUzObVFHrPtH35MlCy00iFAjavNaW8lj40GLpxHUrueEb4L+ezUqVC 9vNJUq0oLv9kFhL3OyXSqTP9tY1Z1m7Ts8qszfPlCmVvTJNbPE0teSfVBoP8eRCUswYc ErDB12N2wvJMWSsjnVYw1cSqiIVvBcBSY8NVi2FLv+ToTZJ4M1I0pR4Wy2knxDxp21Jq N7iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XZBHeLaF7S92v0l4QxOY+7+a7SVFf3e4IMU1a/EyhZU=; b=dbo2KcJXYm8VBG/iokF33o4VDyVY4/j/dfSLM/6tKla2L5Yinjud4a1qpcCnW3qnHC jXfW5uKdgCi5C5fRcYFNne6IoHAUqhBF4ZRqOalsZn5byQaAW5qEq23Ad/3VNCAvWiA8 Om4KvQxSN33b3MLokxRVOmfKvTK4iCEOSbAO2nSXBosA+ywp+SOJbN+kQ0k7RmqZKVfb TYZU9BL92sEx0qfjhy1KfKiA5eDKcdSOiox6lFPvXjxLV5mqwOm4D1R7X82gGydTAE2w Q56sJKDQMT9Hh0S3kVWrhM2PH0ZET76mxL+qp9lf4CLOmugrIzjuUCwpjCsE/rqz3J9v LhrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FdE5v5Nk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si18514919pgi.354.2019.05.07.09.28.10; Tue, 07 May 2019 09:28:25 -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; dkim=pass header.i=@chromium.org header.s=google header.b=FdE5v5Nk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726801AbfEGQZr (ORCPT + 99 others); Tue, 7 May 2019 12:25:47 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:40603 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfEGQZr (ORCPT ); Tue, 7 May 2019 12:25:47 -0400 Received: by mail-vs1-f65.google.com with SMTP id c24so3887948vsp.7 for ; Tue, 07 May 2019 09:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XZBHeLaF7S92v0l4QxOY+7+a7SVFf3e4IMU1a/EyhZU=; b=FdE5v5Nkjtfn+/19+R0Pk3wYCQgRQYC24hOLprsBD12gsCEw/431JDUAphm0qonEL4 VRGScFvxEPxHEa4donrqLG9WEjBuCQEQw2IunnnzXAJctRb0o9c7zeZc9oktalXGCDgP Y9xq30nQkr7eKpuXyjdiYOywWimZcvZ86oVD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XZBHeLaF7S92v0l4QxOY+7+a7SVFf3e4IMU1a/EyhZU=; b=mxc4q5qRgVxcZuOx4hGY7tSNjz+R46rXlUfMJci5ueMxmW7USe0BURek62Aafw8ZxL 6+IfQrnypfAGBabWiQCImhcgwSbBA+H/ORx3Qe3jLtY2MdzhSaY0IMMaCFgJELzD7OGG 98W3g0v56qDGpe2ucbk5W45CudsXoh1wVdte5B1rOdjrjuCeRhhhXxdqwwwQJ9JAwcMe MFxClXij8wWJYqCiK6w0Bt2my43LIr3RyAWsOsJYD7SS3v+N0L6J2sm4IsSBRQZ4EboH u/L+MTCZriXyo2xeS0t+zYhh+ZpRBUif42zSIkSOKipBN4RGl3UHfbA1HlJ0jZlklZSH 0PvQ== X-Gm-Message-State: APjAAAUBY2IXaJ81tDWoz8oe0w8IKQybvtzCKLkOlAMKZugcWT5L5UpI vBCIaDsLWDwpYvHFWz2brNidJRWRoeo= X-Received: by 2002:a67:bc1a:: with SMTP id t26mr15883794vsn.23.1557246345971; Tue, 07 May 2019 09:25:45 -0700 (PDT) Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com. [209.85.222.41]) by smtp.gmail.com with ESMTPSA id w136sm1002845vkw.18.2019.05.07.09.25.43 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 09:25:44 -0700 (PDT) Received: by mail-ua1-f41.google.com with SMTP id v7so3945501ual.6 for ; Tue, 07 May 2019 09:25:43 -0700 (PDT) X-Received: by 2002:ab0:2692:: with SMTP id t18mr17168546uao.106.1557246342369; Tue, 07 May 2019 09:25:42 -0700 (PDT) MIME-Version: 1.0 References: <20190503174730.245762-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Tue, 7 May 2019 09:25:32 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] pstore/ram: Improve backward compatibility with older Chromebooks To: Brian Norris Cc: Kees Cook , Anton Vorontsov , "open list:ARM/Rockchip SoC..." , Julius Werner , Guenter Roeck , Matthias Kaehlcke , Colin Cross , Tony Luck , Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, May 6, 2019 at 2:40 PM Brian Norris wrote: > > On Fri, May 3, 2019 at 10:48 AM Douglas Anderson wrote: > > When you try to run an upstream kernel on an old ARM-based Chromebook > > you'll find that console-ramoops doesn't work. > > Ooh, nice! I still get annoyed by old depthcharge firmware. It's > almost as if we should have gotten an upstream binding approved before > baking it into firmware... > > > --- a/fs/pstore/ram.c > > +++ b/fs/pstore/ram.c > > > @@ -703,6 +704,23 @@ static int ramoops_parse_dt(struct platform_device *pdev, > > > > #undef parse_size > > > > + /* > > + * Some old Chromebooks relied on the kernel setting the console_size > > + * and pmsg_size to the record size since that's what the downstream > > + * kernel did. These same Chromebooks had "ramoops" straight under > > + * the root node which isn't according to the upstream bindings. > > The last part of the sentence technically isn't true -- the original > bindings (notably, with no DT maintainer Reviewed-by) didn't specify > where such a node should be found: > > 35da60941e44 pstore/ram: add Device Tree bindings > > so child-of-root used to be a valid location. But anyway, this code is > just part of a heuristic for "old DT" (where later bindings clarified > this), so it still seems valid. I agree that it was unclear in the past, but it is true that being under the root node is not according to the _current_ upstream bindings, right? ;-) > > Let's > > + * make those old Chromebooks work by detecting this and mimicing the > > s/mimicing/mimicking/ Kees: if you want me to spin with this typo fix then please let me know. Otherwise I'll assume it's less work for you to just fix it yourself when applying. -Doug