Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3097734imu; Thu, 29 Nov 2018 15:36:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VZtGGiSM88j5Ub+0/hfULThPOH4CFUp3yz0cFVIG9mL+pYgDpNTNsNU0XIc4bBL5bvGePM X-Received: by 2002:a62:7a8b:: with SMTP id v133mr3443054pfc.159.1543534560775; Thu, 29 Nov 2018 15:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543534560; cv=none; d=google.com; s=arc-20160816; b=cqH0VMkfiYiMcKz5kW45ncqoQmxPpdpx/sBt+9TLdC25oy6oy/3qhOQfMIptUqFDAW juuZ4SmgL6loRPSBWu+W3IKlsLaHeIzFY0F/u4hU4UTaB4/IwDaNoHxvbHd54cLE9ziU 9BctpGyjpnbuV/F396VrpjhZk40/D7c3yLFVwz3SjKo3izUcVHZkHl8t02U/D27b/RzR mHOul5kFEdCWm2KQI9CGQrJ0SDoxNM15utmUEPQ1quUXaomjLxviEdFkh+lR7VrygvDQ 36hgapw7Wv3/Xr3PpVD17Oys+ox4RNj0b3ds9TULTmIFUzEcMhHQCocdX6OM7GzjNvfJ huuw== 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=icwD0A11Km8vCxTd+qOpF0mw9hR+DOxnr+3u8qTyQzY=; b=pZumFnrXiLmcjDQE9LSAfzTpZdIJHSq0GqoiogG+VXLsDSVOM1BFVyBK+z9m7pocRP i5xtn08+BFSrinQjpCzin+LD5XbondEdez+/DfJ0wenHq7DnANhk617Gkv2R8cXjU4lH 7hgYlNL6D/BuFaryZD6GkixClropMIsCfoYgrsmXmtlQprnWa4UHJALOUYkoZdUi312u 34hM55V1bnovWt8kKHiWGwBIz4tHWxuf9SsrCOlDgpmX4Z3KJg3wjGeRVfkzlIzFtvx3 uFJAdNUss27JcLRFmHCDq4huIzLCxvfpi+fFgy8X9oV/ic8BOtEcUd888fOzZ89JI73/ eHqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wo4WoFgX; 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 d23si3160982pgm.559.2018.11.29.15.35.46; Thu, 29 Nov 2018 15:36:00 -0800 (PST) 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=Wo4WoFgX; 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 S1727030AbeK3Kk4 (ORCPT + 99 others); Fri, 30 Nov 2018 05:40:56 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:45883 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbeK3Kk4 (ORCPT ); Fri, 30 Nov 2018 05:40:56 -0500 Received: by mail-yw1-f66.google.com with SMTP id d190so1519988ywd.12 for ; Thu, 29 Nov 2018 15:33:42 -0800 (PST) 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=icwD0A11Km8vCxTd+qOpF0mw9hR+DOxnr+3u8qTyQzY=; b=Wo4WoFgXSkgIWbJCafjKxpiFoZ0gaLTfP9vYOVtSXYhwynboTnLBNGo43tJ8xMZ4WW yQAoHLL+T0FMoCMKK7zxjy+aZ0vaF+x6ECeSB/Hbz4XQ/qJEbLz1tVlMxwq9/+87jJv6 dfQZSTncHUAgji1pnfT6uTnolUTBylk1ZXYRs= 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=icwD0A11Km8vCxTd+qOpF0mw9hR+DOxnr+3u8qTyQzY=; b=MzLtH1qncYkMElHzvgDnoJz5+ItQSLpna94ZdFetIZgcKzU6pzATLsxLbAgWWHpbPe qo+7l2+4hgAPnmSwcRYWvtD4d/TbFyLl7Ggv6BCy3OmKHzDfOW/fRScxSrtj6INDbGLJ 9LJ0UKkYaWyxAFMwdFAq9iK5SK+b9ErMcbZNMCBeYJylCd2aAY8dVltplzdPjYcPA3TN fVh+/HhsY8LsQtr+sF51mvBbOG/D8PgmRq3q3OsiuGNcjwovkVRibMSSY2k6ti2WirA1 AGJCzwD43+Zbr7wHuTL18AvqAOgPNTL1H5pNUiljb+XlSM5+Ts1f6qlIYY1aeHY5yD+z fi4Q== X-Gm-Message-State: AA+aEWYitPoArdY1dLTTdSy8OHf8Kf+g8g/ryNP+8Pj15JnD1MI3A3DE kg+nh1+EMERR22+DNcc5EQo9imLrPVE= X-Received: by 2002:a81:1b09:: with SMTP id b9-v6mr3511933ywb.248.1543534421803; Thu, 29 Nov 2018 15:33:41 -0800 (PST) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id h145sm985982ywc.72.2018.11.29.15.33.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 15:33:40 -0800 (PST) Received: by mail-yb1-f177.google.com with SMTP id d18-v6so1499020yba.4 for ; Thu, 29 Nov 2018 15:33:40 -0800 (PST) X-Received: by 2002:a25:2349:: with SMTP id j70-v6mr3442478ybj.137.1543534419615; Thu, 29 Nov 2018 15:33:39 -0800 (PST) MIME-Version: 1.0 References: <1488160439-7140-1-git-send-email-nobuhiro.iwamatsu.kw@hitachi.com> In-Reply-To: <1488160439-7140-1-git-send-email-nobuhiro.iwamatsu.kw@hitachi.com> From: Kees Cook Date: Thu, 29 Nov 2018 15:33:28 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 0/5] pstore: ramoops: support multiple pmsg instances To: Nobuhiro Iwamatsu Cc: Anton Vorontsov , 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 Sun, Feb 26, 2017 at 5:54 PM Nobuhiro Iwamatsu wrote: > The following series implements multiple pmsg. This feature allows userspace > program to control individual content aging or priority. I'd like to take a look at this series again, if you're still interested in upstreaming it. :) There were a lot of things that needed refactoring in pstore to sanely deal with this, and I think we're there now. Is this still desired? Thanks, -Kees > > If a pstore backend module(e.g. ramoops) requires the multiple pmsg instances > when registering itself to pstore, multiple /dev/pmsg[ID] are created. Writes > to each /dev/pmsg[ID] are isolated each other. After reboot, the contents are > available in /sys/fs/pstore/pmsg-[backend]-[ID]. > > In addition, we add multiple pmsg support for ramoops. We can specify multiple > pmsg area size by its module parameter as follows. > > pmsg_size=0x1000,0x2000,... > > I did check the operation of this feature on CycloneV (socfpga) Helio board. > > v5: > Add commit: "pstore: Change parameter of ramoops_free_przs()" > - I forgot addition to previous patch series. > Update commit: "pstore: support multiple pmsg instances" > - Fix comment. > - Fix initialization of num_pmsg. > > v4: > Rebase to 4.10-rc5 > The following patches have been removed from this series as similar functions > were modified by other commit. > - pstore: Replace four kzalloc() calls by kcalloc() in ramoops_init_przs() > - pstore: Change parameter of ramoops_free_przs() > - pstore: Rename 'przs' to 'dprzs' in struct ramoops_context > - ramoops: Rename ramoops_init_prz() to ramoops_init_dprzs() > > v3: > Rebase to v4.8. > Split patch. > merged device_create(). > Remove Blank lines. > Update documentiation of DT binding. > Update parsing function of ramoops_pmsg_size, add NULL termination. > Update module parameters for pmsg_size list. > > Hiraku Toyooka (2): > pstore: support multiple pmsg instances > selftests/pstore: add testcases for multiple pmsg instances > > Nobuhiro Iwamatsu (3): > pstore: Change parameter of ramoops_free_przs() > ramoops: Add __ramoops_init_prz() as generic function > ramoops: support multiple pmsg instances > > Documentation/admin-guide/ramoops.rst | 22 ++ > .../bindings/reserved-memory/ramoops.txt | 6 +- > fs/pstore/pmsg.c | 23 +- > fs/pstore/ram.c | 317 ++++++++++++++++----- > include/linux/pstore.h | 1 + > include/linux/pstore_ram.h | 8 +- > tools/testing/selftests/pstore/common_tests | 21 +- > .../selftests/pstore/pstore_post_reboot_tests | 27 +- > tools/testing/selftests/pstore/pstore_tests | 14 +- > 9 files changed, 342 insertions(+), 97 deletions(-) > > -- > 2.11.0 > -- Kees Cook