Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1215390rdb; Wed, 20 Sep 2023 03:04:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEN7Hp/gFHq0TEMHYboQHSIgOrdWyjkhJg4vCWy8pfrrVEDnZN/alNxHWhPY41tmg66uxnS X-Received: by 2002:a17:902:d502:b0:1b9:de75:d5bb with SMTP id b2-20020a170902d50200b001b9de75d5bbmr2081600plg.7.1695204269455; Wed, 20 Sep 2023 03:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695204269; cv=none; d=google.com; s=arc-20160816; b=yEBHUeNh9dGOlQ5PNYXbdGibYXfmRrRFxCkkt/s/3LgieM86itazUnKTreGyYPtJkO s9mrtaQO6jxqUOm2ULnSIP/S2m5bwbhFsHbqz/F8HvTJZBGy/qxNMsYibJl5mw/fVeof OuaUBeU1DAJhJPzZ1MePziO3gG5zNxQxx6Gay721oMqJBT3ovaOlQs/LKZNd/ngkLUoM XR/1dabz8ZjEPAm6qrDupcikHemBh+aT+0meSLqdjGrktZvqVEHlfy3wskZsi2Wtm34I l8LLxoVwBpZJB5BoecxgVyPvOxOVKoMzh+q8+4bfvrt9KGFjUUiMR4YPAJRUwXfgXPmf h74w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=2Osa4QtwByaVjtPZZI3ylG9yTBAe8SJZtvu6g8H8XiQ=; fh=aEhZy4Hrk8/tf7w4JT0Bbe9XLWOi3+rvW+yyHLibTwk=; b=Iiwvh47MfNABecw0tYcLZSwq2d6cWea7EY6p/C2idVuS64OKHCzs9OJ+qeYCIthINh N2p0Xi2xc9imcC8BX6uTJoOo1DnmIQA0mxIO1I2pHFmuNXtooUWhTkbzEgZz+P/nCFnd syoIM+ZZUfkCLtVbfyXrstscrGhlTR/wv8G1n2TPeWqyNBj3j2rOcZSDMEDjvVoT50No AAAZY7xVvaktsKiMFGzC+3IRplclLe8w+Eetxq1CvLaSki1oNCAtT6a64+wFKiVkvzrm wUroazqyy+xgL7isv8I9PWWC3dIIg12ia7XjjqQnhMbp4kNIULdNsdDu1sWeQDen6f8J lZIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a14-20020a170902ecce00b001c413905d87si11069196plh.49.2023.09.20.03.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 18A4A80213A8; Wed, 20 Sep 2023 02:55:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234243AbjITJzS convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Sep 2023 05:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234263AbjITJzH (ORCPT ); Wed, 20 Sep 2023 05:55:07 -0400 Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E18EEA; Wed, 20 Sep 2023 02:55:01 -0700 (PDT) Received: by mail-oo1-f53.google.com with SMTP id 006d021491bc7-5733d11894dso1143853eaf.0; Wed, 20 Sep 2023 02:55:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695203700; x=1695808500; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bjJLFT8aYZmJIG1InbR35s+9z4+ZwViYLByBPUHAjdo=; b=BBb5ag9Pj0Hcxu4vEjItLJlP7vFlsbU7gRkwFRK2psBu7O/tlz2PSlaA5gaGco3p+v L8p6CpyEjwDpgGHvP1UEPPP1cFKu7LZki3Rrh96CWn18ARHnqHZp1I42htUGFVQDEOGT yOiUUMD4jNSPXyMf0846l1Nor0gphZkW3dYyDJZMPoGyFZNu0hVXSjjnTUBLPX5CrQAm /7sUhysqbNne9OzXgPM8Ub5KME7UrMi2DPltmQk3Y5i9sDX0W8pm127MNEDLJbmHIJgU ma7X1v3jHzKPPlBTwsm9VAprj4NwAIrq5JWKGD5dvwKxl6lIStSzFmfu/XOdpHw8B1Ip LcjA== X-Gm-Message-State: AOJu0YzbMIZKO+eQA7tWkBBENrveCh1wO5iCyarRrWuSjXMBTbVYztQn +oOyQmyvXBPlRq6Y8EKbThuQmUt2pD61wjVQfd052C2T X-Received: by 2002:a4a:2a4e:0:b0:573:3a3b:594b with SMTP id x14-20020a4a2a4e000000b005733a3b594bmr1817199oox.1.1695203700711; Wed, 20 Sep 2023 02:55:00 -0700 (PDT) MIME-Version: 1.0 References: <12296181.O9o76ZdvQC@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 20 Sep 2023 11:54:48 +0200 Message-ID: Subject: Re: [PATCH v1] thermal: core: Drop trips_disabled bitmask To: Ido Schimmel Cc: "Rafael J. Wysocki" , Linux PM , LKML , Srinivas Pandruvada , Zhang Rui , Daniel Lezcano Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:55:32 -0700 (PDT) On Wed, Sep 20, 2023 at 10:12 AM Ido Schimmel wrote: > > On Tue, Sep 19, 2023 at 08:54:37PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > After recent changes, thermal_zone_get_trip() cannot fail, as invoked > > from thermal_zone_device_register_with_trips(), so the only role of > > the trips_disabled bitmask is struct thermal_zone_device is to make > > handle_thermal_trip() skip trip points whose temperature was initially > > zero. However, since the unit of temperature in the thermal core is > > millicelsius, zero may very well be a valid temperature value at least > > in some usage scenarios and the trip temperature may as well change > > later. Thus there is no reason to permanently disable trip points > > with initial temperature equal to zero. > > > > Accordingly, drop the trips_disabled bitmask along with the code > > related to it. > > > > Signed-off-by: Rafael J. Wysocki > > I guess I was copied because of commit f1b80a3878b2 ("thermal: core: > Restore behavior regarding invalid trip points"). That's correct. > Since then we stopped > relying on this behavior with commit 5601ef91fba8 ("mlxsw: core_thermal: > Use static trip points for transceiver modules"). > > Tested your patch and didn't see any regressions: > > Tested-by: Ido Schimmel Thank you!