Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2513019imm; Mon, 24 Sep 2018 05:44:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV618URjdH39CrHmdzZ8YUqcWXas/q5mcDxXktbZUaaGv+Oi+03YWEoFKe2b2KfHJb7BrxgV9 X-Received: by 2002:a65:498b:: with SMTP id r11-v6mr9618669pgs.153.1537793053463; Mon, 24 Sep 2018 05:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793053; cv=none; d=google.com; s=arc-20160816; b=IBJs1oQO15YRxZUfrzDyXf8pBB005npqdSbY3YfiBHDfSfiepPzjWlZu1mnw627RZ0 vsOGwQIHSXHIrvV3MRdKGw4CIOy+wDx7+73FyDvG9yGIBGVbyN2lweDB08o/Z+9JAsiL JlrqrEiTnUuorE+N+yNM9S62aWvGNevQ6CcYjeE4dJiAkbahpNvokdPe0aZUOXexaKiQ gQUJnwYHEHsf+yyXN+oiRZytqG14/61LQBv8CEXx8GEIoJtxx7VuhMjBW4/Bp2xIgpBl M04MH3pKIRpcd22CO8ZLmizLdGgWoqX6TPdmRSMRFDS4WLFK2rifDZhWPVGVytlKHur4 WCBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=BI7rvzKr9xUsFQOHKafVRYZ+h619D5WToUpjGWehX3Q=; b=FNJ8yNsua93rIIZUe0zy0gCPjNKHfLoJjJW1T/xK3rJkaYQrryDLwg3OSWaEHKHX1j kgSOhj0P+nNpuoIbhSp28xQY9/Jak0elvqA9KRt5n4fxRUB7mzD5EygGpolPQ9hc/Txa CSfMgoavxeUlpj404xBh5klA38MR3HTIAGvDIsFbkMW3rSfXK0tfkjDF9PdoINlddkMt JtkEH4TAySW/5A0z3Bz6fqhgV1L6CfSb3jVygNJnZ2fo0Bb5YtL2xNW1MfulEscAaGwN SuoMsxcPYJYwN6aah16MQrpwOqXuGbvBGAmCXI1DjcmVfNfKqAWFBeNCaj0Gjbnuq3oK LfSA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9-v6si36365060pfg.234.2018.09.24.05.43.58; Mon, 24 Sep 2018 05:44:13 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388926AbeIXSo6 (ORCPT + 99 others); Mon, 24 Sep 2018 14:44:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59386 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388300AbeIXSo5 (ORCPT ); Mon, 24 Sep 2018 14:44:57 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 58B0A109A; Mon, 24 Sep 2018 12:42:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Williams , Sasha Levin Subject: [PATCH 4.18 194/235] tools/testing/nvdimm: Fix support for emulating controller temperature Date: Mon, 24 Sep 2018 13:53:00 +0200 Message-Id: <20180924113123.735833180@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Williams [ Upstream commit e5d772fbe7685aae0dff99f3b54158a0ec32155e ] In addition to populating the value the payload also needs to set the "controller temperature valid" flag. Fixes: cdd77d3e1930 ("nfit, libnvdimm: deprecate the generic SMART ioctl") Signed-off-by: Dan Williams Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/testing/nvdimm/test/nfit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c @@ -1308,7 +1308,8 @@ static void smart_init(struct nfit_test | ND_INTEL_SMART_ALARM_VALID | ND_INTEL_SMART_USED_VALID | ND_INTEL_SMART_SHUTDOWN_VALID - | ND_INTEL_SMART_MTEMP_VALID, + | ND_INTEL_SMART_MTEMP_VALID + | ND_INTEL_SMART_CTEMP_VALID, .health = ND_INTEL_SMART_NON_CRITICAL_HEALTH, .media_temperature = 23 * 16, .ctrl_temperature = 25 * 16,