Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2959786yba; Mon, 6 May 2019 14:35:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzZfD507OvG9H7Tzbk1rPkPwgABn6bu7af5W2zLsek47495n+MY0fpGTcZAfeo3HgrIhen X-Received: by 2002:a63:1055:: with SMTP id 21mr34788377pgq.200.1557178519379; Mon, 06 May 2019 14:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557178519; cv=none; d=google.com; s=arc-20160816; b=kG8eypsfbwJ4TBcU5OglYvVcCpzBvQmwywlWptASzfg6JNPluL6qPrZHV4HvI2boy7 zm9D0nV6yg4y1kcdPp22T7wuoFyI2ahwhWoBIwl8yZ2tlcGUox1sswBJ2woFLo0bCyGl 4Dqthqq6W8EO8PHqDD58cyfhphgWTfKWN5LKNTElh9acrbHoqdsedhZ581O7wOdDBM/T XM6xx6wW0e70/OB+7Hfdm4sqBLG89gXIa4993u89pKV2GWejKBoh1uUG2iayUCOm8yOZ ubqZ7jJgl3yIMYDEqgI/hLQ/+jIp0+bmbcZgOSEnqFpPSi1fKCa9+9jToe8XK/ajR8Mt 10aw== 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=S/7sTRjw8WOsbOaYGziIs8jBaQSnp3Sr+Jh8GNgXCqE=; b=uhsimc8sN5pByUngJ7NsckqYxCsGxeAn41MlZikqQFVutYlDLSdMUMKxE+LHjfRFSx 9hv7txrvHNnIyIXcCv9Uk2dQaI26EJYeBgRXAQaCdC30Q6Poagn0Q2EqNgn+I0K3T9vT uK71f+IlFaHqXpWumDvWNG/7PrHLTtiyMTT4s5zYlzUr/cJ9B6Lz3VPf/8frPLRZXeEM 9/etk+RE9VHEc0gD2yrTEx9DBYMLIRljw6n1X4Qbs7ndOB9Im2lCFNChK362ukiwszJX 6IRL6TE+l/BsF7NDUocbyHiWM+8Ag4r6UMcSRsbbNMT84QmDuGT4uvp7x1mAFSpQzO9c QPhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hdhfOh66; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w125si18181133pfw.137.2019.05.06.14.35.03; Mon, 06 May 2019 14:35:19 -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=@kernel.org header.s=default header.b=hdhfOh66; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbfEFVeN (ORCPT + 99 others); Mon, 6 May 2019 17:34:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:38456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfEFVeM (ORCPT ); Mon, 6 May 2019 17:34:12 -0400 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4953D20830 for ; Mon, 6 May 2019 21:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557178451; bh=6ekGxk1cgLDq3WsKx5cmGBr/cNA9+TIZZTguJ/soLIg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hdhfOh66K1gA4j0VEG9xPa0LH1QlVqPUDFtnznYSEsbudy40JPhqU3EAZMsPSz9GN 8tnpeFT3qN9YZ1oYL/k9zghyzTiAUGiTz7ioKZEtSyrcGfmRqPp3G/7IsYJpxiCCuW Did/vpksAzUaIydS2IcAxaDlTqcSLzS2jfj36A1U= Received: by mail-qt1-f174.google.com with SMTP id d13so16676971qth.5 for ; Mon, 06 May 2019 14:34:11 -0700 (PDT) X-Gm-Message-State: APjAAAXA+nYlGj8+wbPN22MFqxw92xKbg86MJQSxlwTJnKb35qZx1pPh 72O+iaOYTqS0vvDRLnnlPHNO2AK+KSYU86trAA== X-Received: by 2002:ac8:3862:: with SMTP id r31mr5076391qtb.26.1557178450547; Mon, 06 May 2019 14:34:10 -0700 (PDT) MIME-Version: 1.0 References: <20190503174730.245762-1-dianders@chromium.org> In-Reply-To: From: Rob Herring Date: Mon, 6 May 2019 16:33:59 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] pstore/ram: Improve backward compatibility with older Chromebooks To: Kees Cook Cc: Douglas Anderson , Anton Vorontsov , "open list:ARM/Rockchip SoC..." , Julius Werner , Guenter Roeck , Matthias Kaehlcke , Brian Norris , Colin Cross , Tony Luck , LKML 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 On Mon, May 6, 2019 at 4:10 PM Kees Cook wrote: > > From: Douglas Anderson > Date: Fri, May 3, 2019 at 10:48 AM > To: Kees Cook, Anton Vorontsov > Cc: , , > , , , > Douglas Anderson, Colin Cross, Tony Luck, > > > > When you try to run an upstream kernel on an old ARM-based Chromebook > > you'll find that console-ramoops doesn't work. > > > > Old ARM-based Chromebooks, before > > ("ramoops: support upstream {console,pmsg,ftrace}-size properties") > > used to create a "ramoops" node at the top level that looked like: > > > > / { > > ramoops { > > compatible = "ramoops"; > > reg = <...>; > > record-size = <...>; > > dump-oops; > > }; > > }; > > > > ...and these Chromebooks assumed that the downstream kernel would make > > console_size / pmsg_size match the record size. The above ramoops > > node was added by the firmware so it's not easy to make any changes. > > > > Let's match the expected behavior, but only for those using the old > > backward-compatible way of working where ramoops is right under the > > root node. > > > > NOTE: if there are some out-of-tree devices that had ramoops at the > > top level, left everything but the record size as 0, and somehow > > doesn't want this behavior, we can try to add more conditions here. > > > > Signed-off-by: Douglas Anderson > > I like this; thanks! Rob is this okay by you? I just want to > double-check since it's part of the DT parsing logic. I'll leave it to you. It does fall into the case of supporting downstream bindings that weren't reviewed (IIRC reviewed maybe, but not accepted) which isn't great precedent. OTOH, it's a small change for a largish number of devices. Rob