Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8209974rwp; Wed, 19 Jul 2023 06:51:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGV8u5ykpr/u4yjLwKcAFQkkVyUHYzD2z30wyIy4AaOZvlptt9pDFn3ibQLu0k1eEBd982U X-Received: by 2002:a17:903:32cd:b0:1b8:a936:1905 with SMTP id i13-20020a17090332cd00b001b8a9361905mr2350629plr.38.1689774692090; Wed, 19 Jul 2023 06:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689774692; cv=none; d=google.com; s=arc-20160816; b=0Tn0ta8cqZJE9l1fhNL9OlcsMoQY4JaqvndaMVmXMZL60OwwAYdxla4tHnGOro/kLe ZDdeJXeyCmce+wEpp8vwU8P5r4nrT51QV579sUz3R6O4SniPReW4pNyczxra/doaXcF1 XbpfDQ53i/3PGpf6i5rU62x9yVTk/mvQYMXApuJMIKl5bk4rO4tPqtsUG5yO9NcuZ36k Sa+MADB4YTUah8uLYrq5SbcnmRpG/UcOBlnsKAY2YJivp+MWqujX9FVVYVkGdyIL6v9j o2SdQgb8uB536/+35ykgPbLF3F/fpYI4lmutDsMGP6qwsTQsSPMpXQpPXRw0VK9laFwy t77w== 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=fiA2rXk3ZZs2OY6h2Cf/vyYPv2qYcekCHVJhXNCQmRg=; fh=FQ/w6k7Qz6bMR8FOPJiFU9M7OR2iCyejlVLyqUye3Pc=; b=DOxZ42KDUETl5KnwIXDU9VsIu/hU7sJ7UmoHZN4VmFbVNkR5Wz3y7ysqBjmUXCkq/2 O92POEoci/BujMQNOyzqIeiXu2LN8NwIiivDKW7mHs+beemCro+nn3up8LDrmCI9I9Zn nZoNQH3YsYl34mBABtpwyiQD84fYurvUqNQZWjNEqMNd84LV+1uAYvkWGaspmuj8cnY/ rA7SxMbb/Fpoi7YhgAQHkkcdwnsv9N/jCL8OImJMgS4PmMgkkFO4/y8bgKdBy+XvOcHn b8kCke8e7MgA/L3DGPUQHXilD3p28op/WhZLlhFuJUb+GLEiVEqkGWCWa5NhCLThuK2c 0GJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170902eb8d00b001b9db83bfc8si3559768plg.104.2023.07.19.06.51.18; Wed, 19 Jul 2023 06:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbjGSNeG convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jul 2023 09:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbjGSNeF (ORCPT ); Wed, 19 Jul 2023 09:34:05 -0400 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45083113; Wed, 19 Jul 2023 06:34:04 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2b951a1a03bso6194601fa.0; Wed, 19 Jul 2023 06:34:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689773642; x=1692365642; 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=ch5QBOhh4FZKc92//FFcj4rG6CE12dmRlZdD1fLxA40=; b=L07nUKD+/ml8+7b5I0twxAypEacuMgj7lNsOwNq6nXY1SBnxmtbK0tJ/NDlE2TVC28 eiGfF1PA+XmnJCwdru6XdpH5NiColQVwhNICjtgO8+LoO0grbSzZrdneD4y06IqfAbpW UJFcLRgcz9T5k0+kqi5N4N9OFI4qrVL7fyZ3mXyHmF8TlXy5GD5RpI7+PrRDSmQMGd71 IRgbNfTj6hRrYlFX0CJ9COhRvBWTnIl1+23dWtZkK5oPDR6IDMNCuBgR4DJjm5vlf+Y7 qaJuLAna59b/rv2YPMR/c6oM5aljchdJymfZdGoJYuaAZQU2Wx28PWjhfijTw3OvQZwX N3Fg== X-Gm-Message-State: ABy/qLaTx6LKhC0t11kAAUvtkn4q2pLGM8p/YSpkyMGe6K+VFlkchyAn DnYw0i1GYnfHJjJqGpzVYxQpAPS8enNluDUKvLey3ZwX X-Received: by 2002:a2e:1655:0:b0:2b9:4bc3:c367 with SMTP id 21-20020a2e1655000000b002b94bc3c367mr1416178ljw.5.1689773642193; Wed, 19 Jul 2023 06:34:02 -0700 (PDT) MIME-Version: 1.0 References: <13318886.uLZWGnKmhe@kreacher> <8b89f009-bcfe-3a90-f19e-0b5894a5ebd1@linaro.org> In-Reply-To: <8b89f009-bcfe-3a90-f19e-0b5894a5ebd1@linaro.org> From: "Rafael J. Wysocki" Date: Wed, 19 Jul 2023 15:33:50 +0200 Message-ID: Subject: Re: [PATCH v1 0/7] ACPI: thermal: Use trip point table to register thermal zones To: Daniel Lezcano Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada 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_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Wed, Jul 19, 2023 at 12:46 AM Daniel Lezcano wrote: > > > Hi Rafael, > > On 18/07/2023 20:01, Rafael J. Wysocki wrote: > > Hi Everyone, > > > > This patch series makes the ACPI thermal driver register thermal zones > > with the help of thermal_zone_device_register_with_trips(), so it > > doesn't need to use the thermal zone callbacks related to trip points > > any more (and they are dropped in the last patch). > > Yay! > > > The approach presented here is quite radically different from the > > previous attempts, as it doesn't really rearrange the driver's > > internal data structures, but adds the trip table support on top of > > them. For this purpose, it uses an additional field in struct thermal_trip > > introduced in the first patch. > > > > I have run it on my test-bed systems, but this is not too representative, > > because they each have only one ACPI thermal zone with only one (critical) > > trip point in it. > > Rui created some ACPI fake tables I was able to run them in a KVM > machine with fake thermal zones. > > I can share the setup if you are interested in Yes, please!