Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1126071pxb; Fri, 22 Jan 2021 07:47:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzf0FZHuhgcjSDw6hq/oScIJKlvIu/kZIr1IP5dt0G1YD5DY+DMsFOxkIkChwpX9QyXdmB X-Received: by 2002:a17:906:2496:: with SMTP id e22mr3092538ejb.99.1611330457323; Fri, 22 Jan 2021 07:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611330457; cv=none; d=google.com; s=arc-20160816; b=qK37xOXhIkY72PvyEMIWbmigN9w07NYOSxBA6RH6o0Bc0jWinvS61gpkINuEBA8RmN XNAOjQkbm1hB4/wCPFqRCKn0vXIpoghFyzsTcIM73/rxXpBsmn4sJZE9xEFfkYIINTJF LZ7wVccoA8295L6Evtx+F9m2dxmi9tkIk3FXWmrs4oyzt9sb8mMl73ZPBw8H3djGYZTD dg0jiAlC7cGznaA138BsziXyE3RYv6nDoJMOs7mdNX5Q2bJMhSoGlDvr+N04lEWx8TVf xhHX6wNNkoEILiNafHWqalojcBr1LFL2uOj0pn+VkwuIbu8/xwPyYDN5IlfkDj7/NQk8 eRCQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K4tBN3UqRd2JFp5dOkW0pIxBzfL7/OQGxIiy7IOUbzg=; b=ecrUzCHJQ+58ot/r/HLRK2q5CaXO4lKVuyeXc/2Vxg98HlWsmEj/lvMYIbfVMdMYuy JXcmT+PKGwvH+BVVKrRRmhlL6vwti7vxfyaVLTHHkwEKQK5JIVYkEr5wY8fUEjIUWtdf Ct/VmFkX62uD1rFjvMQ91We9/fv+NN8K38Ez6Pwv2jPSJVwmRsstUFI6oo0G1noC4h9H RKZMW2d0DYTuuz+LK+ACzXOup2hwUl3XrWD0OcVomnOtXvPbJ5a3qeFNnUs0ftGTSVCL Aq1DSyg+thTf9iqKtYbykL4DkMwWxvAL7FYbwAfia5EqQ23gK7nxdfB09HjbnDxfn3Oe wVBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D67s9HAW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si3346626ejg.566.2021.01.22.07.47.12; Fri, 22 Jan 2021 07:47:37 -0800 (PST) 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=pass header.i=@linuxfoundation.org header.s=korg header.b=D67s9HAW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729151AbhAVPp6 (ORCPT + 99 others); Fri, 22 Jan 2021 10:45:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:39308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728589AbhAVOXQ (ORCPT ); Fri, 22 Jan 2021 09:23:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0158923B7C; Fri, 22 Jan 2021 14:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611325062; bh=EObke+J1RsHKcbk4dvp1s8i82tHpd7T+q7jt78/dGoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D67s9HAWirYh6xWDfOr9gKJzeTv9y15P/RN+aMHTNAw+Qo+a7sGQyMSU1fXDcczsH eOHO7ymJ167gTcGPBk8ZkiwyPOx/iSTVxiOEPcDcciLS0BH8Znvp8twpKDPKDERRVg pmyiavgIsdjb099D3KmMhrphYMlLmo9Bp5Xi1fqQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadim Pasternak , Jiri Pirko , Ido Schimmel , Jakub Kicinski Subject: [PATCH 5.4 18/33] mlxsw: core: Increase critical threshold for ASIC thermal zone Date: Fri, 22 Jan 2021 15:12:34 +0100 Message-Id: <20210122135734.322039388@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210122135733.565501039@linuxfoundation.org> References: <20210122135733.565501039@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Vadim Pasternak [ Upstream commit b06ca3d5a43ca2dd806f7688a17e8e7e0619a80a ] Increase critical threshold for ASIC thermal zone from 110C to 140C according to the system hardware requirements. All the supported ASICs (Spectrum-1, Spectrum-2, Spectrum-3) could be still operational with ASIC temperature below 140C. With the old critical threshold value system can perform unjustified shutdown. All the systems equipped with the above ASICs implement thermal protection mechanism at firmware level and firmware could decide to perform system thermal shutdown in case the temperature is below 140C. So with the new threshold system will not meltdown, while thermal operating range will be aligned with hardware abilities. Fixes: 41e760841d26 ("mlxsw: core: Replace thermal temperature trips with defines") Fixes: a50c1e35650b ("mlxsw: core: Implement thermal zone") Signed-off-by: Vadim Pasternak Reviewed-by: Jiri Pirko Signed-off-by: Ido Schimmel Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c @@ -19,7 +19,7 @@ #define MLXSW_THERMAL_ASIC_TEMP_NORM 75000 /* 75C */ #define MLXSW_THERMAL_ASIC_TEMP_HIGH 85000 /* 85C */ #define MLXSW_THERMAL_ASIC_TEMP_HOT 105000 /* 105C */ -#define MLXSW_THERMAL_ASIC_TEMP_CRIT 110000 /* 110C */ +#define MLXSW_THERMAL_ASIC_TEMP_CRIT 140000 /* 140C */ #define MLXSW_THERMAL_HYSTERESIS_TEMP 5000 /* 5C */ #define MLXSW_THERMAL_MODULE_TEMP_SHIFT (MLXSW_THERMAL_HYSTERESIS_TEMP * 2) #define MLXSW_THERMAL_ZONE_MAX_NAME 16