From patchwork Fri Jun 19 22:07:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 11615249 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BBCA14DD for ; Fri, 19 Jun 2020 22:07:37 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31F3B22261 for ; Fri, 19 Jun 2020 22:07:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.b="meBgXr2K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31F3B22261 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D4B5710FC72A0; Fri, 19 Jun 2020 15:07:36 -0700 (PDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::541; helo=mail-ed1-x541.google.com; envelope-from=dan.j.williams@intel.com; receiver= Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id ED79810FC6C8A for ; Fri, 19 Jun 2020 15:07:17 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id o26so8867592edq.0 for ; Fri, 19 Jun 2020 15:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=FofYLR7vERDCGqlrwGl+40IK2EVftz+ALwz0eB3/bUI=; b=meBgXr2KKhTwAXn2DBEPg60WdxLEP8hcHROFDw7sHf9QzqKP+k/KNEXYX0nZ1Iyw1g eYtdBtGVXeEGwfbI2SwfVu6xR1vKVqiyKuF1w4pu98I0TKIut6a/5ETKB7s5oiRVdlD0 UCF9kKsGnOsacua84JzFCEUd4SZzAIObS/Na35vus4q+btPg+crAA0HsR+h7w/GZSaGa 4QdIzJhvU+ezSap6Cl+o6UBJr75hHNXZHh8a/9vuia39NOueoIEs7s4XiLotDwDkxUm9 5+D3FDL7C9rm6vLae5XOPQnCiIB/+kFi+Te/5w2rKzwUo1Bjlkrl1UYw9VVlDQeuZjP/ rjsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=FofYLR7vERDCGqlrwGl+40IK2EVftz+ALwz0eB3/bUI=; b=NaB7HplsR6A9BWVj4MZdAoFuNqhYn2JwCd5rr+HAkDhPguH81rlMAU8PlF2AaPNMeb UWGhPLPfF8nkkMTOC1+bVNd9NENqLvLYRLJCE0nCncJJp4mROYkHQsVQ9DFHVeMzY8+Y vIWchpTv0FXOkZ+9+dgHRkIy58pg4bMz3WipTJlkY/HHjoK2R7JHitSQUsOqw6oTZ8uO 08ujApn9+S0EMTpjxhQ7u45/ISDvAiohnYb9cT02DpAfbIATm/396JQbYRZIlaYGeyT0 79DExpQk7VwFs7yhM8l4gFqR0GU0zwNESZfjzDjLmYik6ExE6PVTeTmGuOfHpadJU6Bx ozPg== X-Gm-Message-State: AOAM531HkFeOGAr+Q1+lb7iT41YIsg2GY8MCx484RfXO30PqLTwJ4hc5 GgokD9MlSnYcRjCgCUFJ+IDBz/zmH4TSZvrnONg82g== X-Google-Smtp-Source: ABdhPJwCp6dTqzKzDVUhjKyDf+BUdP0V+rF4Eef2dzh03xSHrJJYr0aEkvPS/WNz9UDYajBbITDB+uE1A7YvriLC1Y8= X-Received: by 2002:aa7:d6c1:: with SMTP id x1mr5349272edr.154.1592604435655; Fri, 19 Jun 2020 15:07:15 -0700 (PDT) MIME-Version: 1.0 From: Dan Williams Date: Fri, 19 Jun 2020 15:07:04 -0700 Message-ID: Subject: [GIT PULL] libnvdimm for v5.8-rc2 To: Linus Torvalds Message-ID-Hash: 3J2STZD3R7GLK4S5XVBLTOXLNIDZAM4A X-Message-ID-Hash: 3J2STZD3R7GLK4S5XVBLTOXLNIDZAM4A X-MailFrom: dan.j.williams@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Linux Kernel Mailing List , linux-nvdimm , Vaibhav Jain , Michael Ellerman , "Aneesh Kumar K.V" X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-5.8-rc2 ...to receive a feature (papr_scm health retrieval) and a fix (sysfs attribute visibility) for v5.8. Vaibhav explains in the merge commit below why missing v5.8 would be painful and I agreed to try a -rc2 pull because only cosmetics kept this out of -rc1 and his initial versions were posted in more than enough time for v5.8 consideration. === These patches are tied to specific features that were committed to customers in upcoming distros releases (RHEL and SLES) whose time-lines are tied to 5.8 kernel release. Being able to track the health of an nvdimm is critical for our customers that are running workloads leveraging papr-scm nvdimms. Missing the 5.8 kernel would mean missing the distro timelines and shifting forward the availability of this feature in distro kernels by at least 6 months. === I notice that these do not have an ack from Michael, but I had been assuming that he was deferring this to a libnvdimm subsystem decision ever since v7 back at the end of May where he said "I don't have strong opinions about the user API, it's really up to the nvdimm folks." [1] This pull request includes v13 of papr_scm set, and it looks good to me. Please consider pulling, I would not normally have broached asking for this exception, but Vaibhav made sure to have less than 24 hour turn around on all final review comments. This has been in -next all week with no reported issues. [1]: http://lore.kernel.org/r/875zcigafk.fsf@mpe.ellerman.id.au --- The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-for-5.8-rc2 for you to fetch changes up to 9df24eaef86f5d5cb38c77eaa1cfa3eec09ebfe8: Merge branch 'for-5.8/papr_scm' into libnvdimm-for-next (2020-06-19 14:18:51 -0700) ---------------------------------------------------------------- libnvdimm for 5.8-rc2 - Fix the visibility of the region 'align' attribute. The new unit tests for region alignment handling caught a corner case where the alignment cannot be specified if the region is converted from static to dynamic provisioning at runtime. - Add support for device health retrieval for the persistent memory supported by the papr_scm driver. This includes both the standard sysfs "health flags" that the nfit persistent memory driver publishes and a mechanism for the ndctl tool to retrieve a health-command payload. ---------------------------------------------------------------- Dan Williams (1): Merge branch 'for-5.8/papr_scm' into libnvdimm-for-next Vaibhav Jain (6): powerpc: Document details on H_SCM_HEALTH hcall seq_buf: Export seq_buf_printf powerpc/papr_scm: Fetch nvdimm health information from PHYP powerpc/papr_scm: Improve error logging and handling papr_scm_ndctl() ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods powerpc/papr_scm: Implement support for PAPR_PDSM_HEALTH Vishal Verma (1): nvdimm/region: always show the 'align' attribute Documentation/ABI/testing/sysfs-bus-papr-pmem | 27 ++ Documentation/powerpc/papr_hcalls.rst | 46 ++- arch/powerpc/include/uapi/asm/papr_pdsm.h | 132 ++++++++ arch/powerpc/platforms/pseries/papr_scm.c | 420 +++++++++++++++++++++++++- drivers/nvdimm/region_devs.c | 14 +- include/uapi/linux/ndctl.h | 1 + lib/seq_buf.c | 1 + 7 files changed, 618 insertions(+), 23 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-papr-pmem create mode 100644 arch/powerpc/include/uapi/asm/papr_pdsm.h