From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=67.231.145.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796332977; b=n7aZ/R5H3zGsu1Z2BcZOUlnc0Db8pyuT3d+iTA7UHONJfBtWaiX36YuhgakOCmQbFOg1 Bgf9VZT1/Og+tHgi/lIedge027DIHLWToTBYsJZGwKFqpxGfnGAMwPbHjYRYzRGoz8zvn yaVNCIJR+OBH2GnQOR9IOARqvGrM4lINtL/vda/4mxQ5e4q4IZW9fjAccCT0F0KDB/VAd hChBizBLoA3rJIY0beyfl5ixfCtf52dnicd6x1YuZDOMotH0VtSRXmOZDajUx/2Kyw2Pq FBGnlOyhUwGsZvHDQokMh/er5yEQ3xGGpb5MI0qZkYnr5SE+IBciu0mw8TmDOEGTQrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796332977; h=DMARC-Filter:Received:Received:Received:Received:From:To:CC: In-Reply-To:References:Subject:Message-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Mailer:X-FB-Internal: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-Virus-Version; bh=VjgS2XCXVUm83TK6JOHrqJ7ZwIH+n/Z70yh1oBkIKyI=; b=jlmyLTrWeqskF5b4nUrr3ZwNKK4ZhEtAs072ViiwKIGZHzgBG4KxEntPyiBJivVrQ5Gm 7rr7yf7F1kWTqmDp/TOCC7bNksil/w0hLV0f995siVhNlFs5fKWlOUAo2Gr9Prmj8cECx OcfsMMXt+28qneAdhK3vdg0mqqV01+OhtvyMMXf/Rttxix4454xsb7ZBsnzw3KMGZYcqs V7ex3KM3giKuoyb6H5/kYTtbWlj1PjExCbrE1mfXgKBJ+mhLXpeM6Em0kuK/mBRzQV2le MT0nB7vTZf6SKYol3Z0yODg0r7LjsdWPoWIEQzIn1khtdCYW0Qb84b1uYnk7bs/4Q6Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=kernel.org; spf=pass smtp.mailfrom=meta.com; arc=none smtp.remote-ip=67.231.145.42 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6522A606A322 for ; Thu, 3 Dec 2026 21:22:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6522A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3LAsRn1186778 for ; Thu, 3 Dec 2026 13:22:56 -0800 Received: from maileast.thefacebook.com ([163.114.135.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 4jbg45r2t0-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 13:22:56 -0800 (PST) Received: from twshared80817.17.frc2.facebook.com (2620:10d:c0a8:1c::1b) by mail.thefacebook.com (2620:10d:c0a9:6f::237c) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Thu, 3 Dec 2026 21:22:52 +0000 Received: from devbig197.nha3.facebook.com (localhost [IPv6:::1]) by devbig197.nha3.facebook.com (Postfix) with ESMTP id A116D2FFF94FB; Thu, 3 Dec 2026 13:22:35 -0800 (PST) From: Keith Busch To: Guenter Roeck , Christoph Hellwig , Andrew Stellman CC: Jens Axboe , Sagi Grimberg , Akinobu Mita , , In-Reply-To: <20261202164956.49925-1-bugs@stellman-greene.com> References: <20261202164956.49925-1-bugs@stellman-greene.com> Subject: Re: [PATCH] nvme-hwmon: clamp threshold input before Kelvin conversion Message-ID: <179633295565.3088524.11416475351935248472.b4-ty@kernel.org> Date: Thu, 3 Dec 2026 13:22:35 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 X-FB-Internal: Safe X-Proofpoint-GUID: c1uZ2ztnUNRawtzeA0hoUqS8tr9-ord9 X-Proofpoint-ORIG-GUID: c1uZ2ztnUNRawtzeA0hoUqS8tr9-ord9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA4NSBTYWx0ZWRfX0sSYo60/pgfq 1E+EUVcE9lo2q0EqGQzXlhzOjp2qqQ4+dtdj2VF0ZdrXVELNeVQGCbEOSktPrLMOmBPxiGHLXOf 3fddIYtPy5qIXIqQhGOkzWb31Tq5JVc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA4NSBTYWx0ZWRfX0Bbgy9wzuoSb BMb3q2Igc35O8ggJy9TelCtpjoishWpM3qh+79xLOTP7mN8UfGiAfYfU66102RIBx27tl8qUHpX s6jHGpriJZn0xhfUsJXq+sKsMsam2w7eDYmUAPmt0g7g/NTb84PKZJXq8IEaDAGSc1odMMmHEak vCST/gycoZ1NpHLDPbiJNJkWzrWnaGWPctsPJM+ltPpiMKETUOBOOO/+mBhaJB/dJkvRYYpizeG xNGSCKmmxRzx/AwrOuS2cHgxfhROmEjJbrjxhrpnYZUk/pMfjvED41sjqq4eaAn0rlruP6pugL4 WTCxM7Tia/o073j0BTdL5uco6xF+uZ7tokyOsXw8UZmiNitDbiMU5I+gzSz8fePZoc4RY93qnhM Z/AcdR9zVY7jmwjPJo3tS1Y9BeyHSQU+uOqW0qiPFupIgdJfo150G6Rnc+OWTWSIGBckzDgneqh 1piOzWhiqWOyDcfx7Dg== X-Authority-Analysis: v=2.4 cv=RdwFmFtv c=1 sm=1 tr=0 ts=6b11ddb0 cx=c_pps a=MfjaFnPeirRr97d5FC5oHw==:117 a=MfjaFnPeirRr97d5FC5oHw==:17 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=7x6HtfJdh03M6CCDgxCd:22 a=8elwO82fXORLTBIkMd32:22 a=VwQbUJbxAAAA:8 a=G5SU48O5VvNrvjRAtiAA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_05,2026-12-03_04,2025-10-01_01 On Wed, 2 Dec 2026 11:49:56 -0500, Andrew Stellman wrote: > nvme_set_temp_thresh() calls millicelsius_to_kelvin() before clamping > the value. From reading the code, an input close to LONG_MAX > overflows in that conversion, so the clamp then programs 0 K instead > of the maximum. > > Clamp the millidegree input before converting it. > > [...] Thanks, applied to nvme-7.4. [1/1] nvme-hwmon: clamp threshold input before Kelvin conversion commit: d647c9807cc0b0d3ae6fc4258ee473bb326603a7 -- Keith Busch