Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp877392pxb; Wed, 1 Sep 2021 11:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeFua63ZsUymx4WFJrUxtQXRDvFNvcpLErNiXcHdY3OrO3CbfsxUN5ZLWbsJlhwLCQ912S X-Received: by 2002:a17:906:85da:: with SMTP id i26mr1014996ejy.163.1630522509157; Wed, 01 Sep 2021 11:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522509; cv=none; d=google.com; s=arc-20160816; b=SB/r62UbF783uf5hF1zAkclxgQdPS4M0oCdQm6leZvTLrvjMJlW8REIoddHOTpUizZ 9uNO9aKv3CRM0rMmt1B9x0GMuc3K8E/m9xpnKuS3dt0Is3bLgocqPQBSJGPD8JMQibbd 5gLkruNyaHBsZ2XiqCFqik5XDY2wYrKF/ZgTgCQWSYh7ONqgq61drO3l3y52t954Cepk et3eDBgoXRhSruGeJ36nPi+OFQdrF+sZdVQgfhFo/+7r2pwls0w2VVZRpTiIx0iFlf/d +TtBInRcZ67sBoXgWrGLYp6kaplbnc/qloZ+ycuaXInWLRVmj65rOzX4OrbO8I7gU4er xeOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:wdcironportexception :ironport-sdr:ironport-sdr:dkim-signature; bh=UCo9hsxkO5NyS3WXlwEHMZG6FQjaJLpgAaAlCoWCK+U=; b=TpwXew3W+10rdGe/W4D+z6Q5qjqI6ApWYfXgzdiIgtxg2g/RcckQZSMc1FsnoTPjLA NADjwalrXWNVLzI+ftMym3CzLC3wNAXOhHA4mubGQ5jMa9YV3cCVZuvRrzZo1qLksukT zsYiWwH949J3evZbXTMzjiuGdcsPHUNUzWfPz/zXJze8RCOy++MvwVavdi6+4hkHwD4Q /A/pAjJDyJgtFK46s6IAmnDCb/sbGynxAZZmjGe4o0sgmQaHU4ouM3gxtzAX8uNuD4He RFZ9ZlxqN6vLmnleEN/IVATP/ks1xEe9YyQU4kdImXqFZSQRASxPlhMa6hpdrY4xPJem yGvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=n1qeWZ1I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp9si539938ejc.163.2021.09.01.11.54.46; Wed, 01 Sep 2021 11:55:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=n1qeWZ1I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344001AbhIAMn1 (ORCPT + 99 others); Wed, 1 Sep 2021 08:43:27 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:63892 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343761AbhIAMiQ (ORCPT ); Wed, 1 Sep 2021 08:38:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1630499839; x=1662035839; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Wu7IeLEdZDNNGywR65jKMi2ZL76+lV8AJClR21YY6KM=; b=n1qeWZ1IkmTFWCzAszx2o1vQrJUquz+C40YkH2YesetCB+Rh1HBwDaad Em5P2Wk2EleYWOk4x6KLL5cHoqZ5ZUrq6B/pQ2UlicNHKHYGt7PIyG5O3 I7hqYRcaAi9Qn+Ws4Om5PP8LMWeA3Oi6JSHx3wRzXTtw1i8se/8bfHg+F GX7sSDOROya0gkqnLYCGq7mp+Io3J5o0bfr+rja4ynYOF2xt+mmLRTr3H 8HXH5RVT0Uxxencf4d9R9MdBZSzNjJMsibHl6hCObqSjJn1ufuWL5uKNz kzphi2Nb1lrbFKgf4Z0qmFlRLGRG1GgMPGns7u5Hb5d3t42q2iFn2ZLVf Q==; X-IronPort-AV: E=Sophos;i="5.84,369,1620662400"; d="scan'208";a="290548565" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 01 Sep 2021 20:37:19 +0800 IronPort-SDR: hskPRIrCkjduReIsqaTPqM5wv3z6xNrRsqyX+W2mxUKbuhXjoCbECfp5shmkFmMTW4gjidRSG1 sqBDiWPFJ0k7kv3t+MhxnetkdqzHf19y3BpCJ8ppQPZq21bVbg5ZhPn1ex97Eibq2b5UfYh5ja JmjNHP6/Oi1UtdmXCOLaeAVPJMu5LiR9mv4bnJahtjw0Fuabn43ecmQq5xKjbLPQ7kvzAwk/i1 MfTYlytf21vH+oxo/N4NnYYrlDBSBSzpntQOvKK9EKddaEj3qPI8UIni3pSMI0S75L/lAKMk4V xm8tLmc8GJhkR6VpKuwPo0UU Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 05:12:24 -0700 IronPort-SDR: 9Ee4cJBdnkhR1pgWywv96zGQ0YJvqmUZcycuSnOujUZFVK1HzgSZ3gwV4ezyNeiFodW5qOqslN h6u5o66WEgGw/XW+z/jCO8EKt1Wr4UQ1bIllenViC26HxXgjCyFqPkoXqPw8LjWtHE1R5aX6/N KiA4rcDd1fpPH7dR78d/1Usw4NDX+t4PwqaLRTUDp5DBHly4wtpkVx7tTntchziKg6rVSYZH5N dW7dGi0umDndt8O4e+8vqUOUsLPVhXB345VJJid1Du0RoRvQfTBkaaaWpwjHaD1+Ar2AUAzzve BGM= WDCIronportException: Internal Received: from bxygm33.sdcorp.global.sandisk.com (HELO BXYGM33.ad.shared) ([10.0.231.247]) by uls-op-cesaip01.wdc.com with ESMTP; 01 Sep 2021 05:37:17 -0700 From: Avri Altman To: "James E . J . Bottomley" , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Bart Van Assche , Adrian Hunter , Bean Huo , Avri Altman Subject: [PATCH 0/3] Add temperature notification support Date: Wed, 1 Sep 2021 15:37:04 +0300 Message-Id: <20210901123707.5014-1-avri.altman@wdc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UFS3.0 allows using the ufs device as a temperature sensor. The purpose of this optional feature is to provide notification to the host of the UFS device case temperature. It allows reading of a rough estimate (+-10 degrees centigrade) of the current case temperature, and setting a lower and upper temperature bounds, in which the device will trigger an applicable exception event. A previous attempt [1] tried a comprehensive approach. Still, it was unsuccessful. Here is a more modest approach that introduces just the bare minimum to support temperature notification. Thanks, Avri [1] https://lore.kernel.org/lkml/1582450522-13256-1-git-send-email-avi.shchislowski@wdc.com/ Avri Altman (3): scsi: ufs: Probe for temperature notification support scsi: ufs: Add temperature notification exception handling scsi: ufs-sysfs: Add sysfs entries for temperature notification Documentation/ABI/testing/sysfs-driver-ufs | 38 +++++++++++++ drivers/scsi/ufs/ufs-sysfs.c | 63 +++++++++++++++++++++- drivers/scsi/ufs/ufs.h | 12 +++++ drivers/scsi/ufs/ufshcd.c | 28 ++++++++++ drivers/scsi/ufs/ufshcd.h | 29 ++++++++++ 5 files changed, 169 insertions(+), 1 deletion(-) -- 2.17.1