From patchwork Wed May 15 15:17:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10944917 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BFEF912 for ; Wed, 15 May 2019 15:17:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7BD51FF13 for ; Wed, 15 May 2019 15:17:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAA551FF41; Wed, 15 May 2019 15:17:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F99A1FF13 for ; Wed, 15 May 2019 15:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbfEOPRu (ORCPT ); Wed, 15 May 2019 11:17:50 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:32781 "EHLO mail-pf1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfEOPRu (ORCPT ); Wed, 15 May 2019 11:17:50 -0400 Received: by mail-pf1-f171.google.com with SMTP id z28so155098pfk.0 for ; Wed, 15 May 2019 08:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tJrsEwTh6VOB02i4tRZ48loA1l+OFahBfphYUwfCgro=; b=tPsgOk71tnB8xagO6PUFhXjz3i9qZNiAXfBCL5MYt0mXGBkMALJe1RzJ4Hd2j8irsy mTz+a3Y4ADvFdd3+h7Gnl34SabrZUgv+j0TJkvZW8kq0hN5ISlqTFCJ+l3dVZ/tBOhwg RGx4ThGXFosH52Uk4NGvRcty0i6ZITB0N6ZTGHb1vpPj5lNTeCDyqRGTpVQWPzrsHSo/ XOfUcGxRTxSULZWzCa1y6RQ+5JgWaGs4ZzAGquPzCeXTtYwA5eNVkQJrGMLtCV7fSMdA AbVJOHZ87SjTEXMP3VXN++xAcTkGW1JTM1dgolZaEsrpx5jG7NmHk/AVJF2OVcZ6ehuL MdNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tJrsEwTh6VOB02i4tRZ48loA1l+OFahBfphYUwfCgro=; b=dgpjTebx2BcLsZiDoItdyRW3K+Q4CBUUM1zTikCPqhiJzeAConUje5DTdXuxLlTJpE zIiRjenwoOzYKRFBfIjuHMilxcOvGZBh5Zfto18TV7LANTXeanwt3vBWvAlfW84kQIoY rs3czum1Ggz3qX0IE6QJRscem021ZhvWgHgLTUAEuAqRbr8+tw51RWooc9Jy0wsiVr5O tYd4izP6dYcIokV8bQH8bPPSPJwF3u9ILab2pMiP8i1ZIMFnSfDjIAUnj6g1y5vHxKP7 NdM2caEDYUDdyRp5VI5DAL31k75czadeVGRfyVxAeXs7Mp2WY6zIvI44+JNpA4DHwwtm 55XA== X-Gm-Message-State: APjAAAVr3n7KspeGh4yGsiF/y11L26SnzRifMWN3K4MiBJWK+5RXXP9j DWudly5KVvdld+PnjId541o= X-Google-Smtp-Source: APXvYqxRbyYBXB4Zw73wrOyVJ2+L9aw93QKTrYM++mNstEXwa3i3xJ4zz4BRtr7zUTmCFkzui03Jrw== X-Received: by 2002:a62:38cc:: with SMTP id f195mr48138547pfa.15.1557933469671; Wed, 15 May 2019 08:17:49 -0700 (PDT) Received: from mita-MS-7A45.lan ([240f:34:212d:1:b16d:d4:d5a2:4dca]) by smtp.gmail.com with ESMTPSA id 85sm5544888pgb.52.2019.05.15.08.17.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 May 2019 08:17:48 -0700 (PDT) From: Akinobu Mita To: linux-nvme@lists.infradead.org, linux-pm@vger.kernel.org Cc: Akinobu Mita , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Subject: [PATCH 0/2] nvme: add thermal zone devices Date: Thu, 16 May 2019 00:17:15 +0900 Message-Id: <1557933437-4693-1-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The NVMe controller reports up to nine temperature values in the SMART / Health log page (the composite temperature and temperature sensor 1 through temperature sensor 8). The temperature threshold feature (Feature Identifier 04h) configures the asynchronous event request command to complete when the temperature is crossed its correspoinding temperature threshold. This provide these temperatures and thresholds via thermal zone devices. Akinobu Mita (2): nvme: add thermal zone infrastructure nvme-pci: support thermal zone drivers/nvme/host/core.c | 368 ++++++++++++++++++++++++++++++++++++++++++++++- drivers/nvme/host/nvme.h | 24 ++++ drivers/nvme/host/pci.c | 5 + include/linux/nvme.h | 4 + 4 files changed, 397 insertions(+), 4 deletions(-) Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Keith Busch Cc: Jens Axboe Cc: Christoph Hellwig Cc: Sagi Grimberg