Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6226687imu; Wed, 30 Jan 2019 10:58:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN5RM2XyBxSK3CwtgOxH82FY9h7O1y59ZlqaOZPRXAfaN2OXnwlvjq5LH2lBSdQJJtm35vkZ X-Received: by 2002:a63:5723:: with SMTP id l35mr27669012pgb.228.1548874687577; Wed, 30 Jan 2019 10:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548874687; cv=none; d=google.com; s=arc-20160816; b=0rBoJlsa3dSFbL8ix4IpkE4dgqKoXly5fZr5x8pz4fDwSG534cCVkWBDP5BrxCmdSy 3Itkln6MsGnYDdfgNCAFKX0b53BseLyx1bbIlnY4Ujo3ALu6MLnRW/KBUyikq/B+4Cfy OqgSxRBRcNFHZiqZCmi/Cc+ac5zKJjmD0Ec2f9+sVAentYvqorMr0pnFk4QLH+euS9Ij ugJfxi8nChZEc9uK8WobuTYgdHrJjtDU9YeZ4/14hssRWc/ZQG+otviHyK7NrSFXPbLC o/J1N+YC+/Y9USToWrWlINHjbCKNJpBBnddRiw96AAzI4DZDEUUDDzUhzkgK+EL9k0gw Mjwg== 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=s4H+MWh/dES/Ms4FXiZklCwn4GhqLleEMus9FXGLxxo=; b=XoVczg71viJ5ViBzwguprGi6imlIJe5ktr8sO300KheleqbbUsqeE1HPO1YNJ72JLx YoX9HR6bBTnZvX4y6AK7NfDKTFuijlnLjKpazONza/LrMRKK3UTpmHMZeY9KUauMm7Ob v/W5u19YQtGZsoFAXP+queQc0/+6U+kcNYu+B/VoifY3DPRb7j84iQFJziUB3ewoJrQw fJzgkcZJ2NuYOQpHPbox/oJbkFX/4QUt4VLTWsGF3+Ed0dyJ97FQBANMKpgUewCYKof3 uCpYuajwN+4el5yUslXtHbKAYkeQyLsoKf9D5AO86uytLww++px8dr+OU4TM/ZkJa5jU AzEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jrmkeiyJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si2243166plj.94.2019.01.30.10.57.51; Wed, 30 Jan 2019 10:58:07 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jrmkeiyJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733307AbfA3S5m (ORCPT + 99 others); Wed, 30 Jan 2019 13:57:42 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40586 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732343AbfA3S5m (ORCPT ); Wed, 30 Jan 2019 13:57:42 -0500 Received: by mail-ot1-f66.google.com with SMTP id s5so548041oth.7 for ; Wed, 30 Jan 2019 10:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s4H+MWh/dES/Ms4FXiZklCwn4GhqLleEMus9FXGLxxo=; b=jrmkeiyJv5z21YXhH0wtf1bxDLIqRek/IsthQLmaoMF6mvxiKFCfRdXM7emIDs4p1s terTzTZ+/0OgAFz3KcFtoGLp0BRUljSsZo9eUX4UouJDv4NJ80xmbbcE1kliKnMeNd1z XF9fiNkIfAQnXIZw/Kujryh+hV+lvgzhVpLcaKuCX2xhXe8dAvbEIxUlODE0/7v3h0JL Ifli0fyzCEi0qQPkde68j2BaqfI6l2F4jalfs1TVS4VDRhMsjTMbS1+ceeMsRUqkxsG/ DDLjK3zkHiBxQLc5njnxT5NTb+PbW/oLdDD3BwZDYqqUzy7nWQBf8XPcn7mnE/kyS381 WmVg== 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=s4H+MWh/dES/Ms4FXiZklCwn4GhqLleEMus9FXGLxxo=; b=cY28POYhw3+DQD6gfyPSPs4wF0oQkS5P+Pqo/RoyGVH0UwxJVCWt/Y9cowZ0j2vm49 uQvzlobkkvBy5gw/nrfPnYx5ecwhsu+wniw+XDj/uzWrxCbLod/+lI1GTmVab/F9GhrE ENLqe+3cfyOvJqjRJZXp+GdfFcueDDgWM8yFII6ZS0AHk4C85eTUakNFcR9UgOHRd3zk G4gL12tI4AbmdByLOznVBVhUYPJnYv4Wx/kWEgVjR6yh5LKU9fszHPlhKs9Eh9xtQ+vG 7X7vRoHK5vSmloMp2/uzZ8K2xJJtjUNExAQ/rJlFByAx39wnR26NP3N+V9Snpnt6/GNs Rx0A== X-Gm-Message-State: AJcUukfFTxKblf3mW6l4XskLofWUcg1qLKu6/J2t3VOawJPAJWUEe6C/ KqIezbbWBAOZe0s5fmFrk2OmXdO1gqgglEA1pnEiaw== X-Received: by 2002:a9d:775a:: with SMTP id t26mr22254635otl.32.1548874661692; Wed, 30 Jan 2019 10:57:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dan Williams Date: Wed, 30 Jan 2019 10:57:30 -0800 Message-ID: Subject: Re: [PATCH] nfit: Collect shutdown status for NVDIMM_FAMILY_HYPERV To: Dexuan Cui Cc: Ross Zwisler , Vishal Verma , Dave Jiang , "Rafael J. Wysocki" , Len Brown , "linux-nvdimm@lists.01.org" , "linux-acpi@vger.kernel.org" , Josh Poulson , Stephen Hemminger , Haiyang Zhang , "driverdev-devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" , Michael Kelley , Sasha Levin , KY Srinivasan 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 Wed, Jan 30, 2019 at 10:49 AM Dexuan Cui wrote: > > > See http://www.uefi.org/RFIC_LIST ("Virtual NVDIMM 0x1901"): > "Get Unsafe Shutdown Count (Function Index 2)". > > Let's expose the info to the userspace (e.g. ntctl) via sysfs. > > Signed-off-by: Dexuan Cui > --- > drivers/acpi/nfit/core.c | 51 ++++++++++++++++++++++++++++++++++++++ > drivers/acpi/nfit/hyperv.h | 26 +++++++++++++++++++ > 2 files changed, 77 insertions(+) > create mode 100644 drivers/acpi/nfit/hyperv.h Looks ok to me, but if we grow any more of these "shutdown count" retrievals I'll want to take a look at being able to call acpi_nfit_ctl() earlier in the init process so that this data marshaling can be unified.