From patchwork Sun Jul 14 11:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Rapha=C3=ABl_Gallais-Pou?= X-Patchwork-Id: 13732683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D73B5C3DA42 for ; Sun, 14 Jul 2024 11:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2n5TCQJ2aZTml13MKx0tGjckXVIFB7K8BA9Nly4+9wo=; b=ngKwfeFpiTvxGY OoVNqF4NH15DSth04PTjUPhkiMr/SAddvc7UvUKRMQ2gqx2QqTXEhMxOBaam9OqEhjmo11gIycZjP xnMYzt+k0TcJe272KLd9FMuecbAq1IfmCpD17WuFUAS82z5Zjtkx2zmmoKZAlhUNyu+bTreyTSun1 PNnGfqZtzu76zosHpSRmTwR5SXs6lj3xwjVuW/qxoKogkK/b+aYqN8ePbtVGzktBPUOxD0htsV81g AXL4wW6EXnmo6F+MFXriKPtB/JVf9sNjyHSGjay/LuRo6GmDIQAcCgGY0x+eLXT+bRnbGGgVHMcJi aTiaVNugUHJEUFM6y9Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSxdg-00000004Lcr-02Qt; Sun, 14 Jul 2024 11:43:36 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSxdL-00000004LXt-3fj4 for linux-arm-kernel@lists.infradead.org; Sun, 14 Jul 2024 11:43:17 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4272738eb9eso24754885e9.3 for ; Sun, 14 Jul 2024 04:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720957393; x=1721562193; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=2n5TCQJ2aZTml13MKx0tGjckXVIFB7K8BA9Nly4+9wo=; b=l5b1v5rHMvgWL5sRPTT05Ar/RYefVSHTxjZkkBDeTthtMngJkPtEU5n1vL3lBtF7SY co854Nzp2GaE9tDOnQ09j3ba/X+/QIrTPWWCYT9AYDlkp2t+hD5cyb/WA28rHw6jApij oNjHZ8phsSHqbFpt2AvzQMNSx39NDhNrST7234wJ4ueIWsun4KezhXL1HkXzT28C20tW 6juTuv9QIIt0c8uuwr5yQIBSX+X9yu8ZTY0myqk1jAXG2QiquMLZRkIPefpDnGmoAnzk 2P1/j8/rzrGIgJBVrf9j9iYazb5TfOqrL/h2D8SBuDzPpTNf3krVurSfohN79PWhRWtI +LoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720957393; x=1721562193; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2n5TCQJ2aZTml13MKx0tGjckXVIFB7K8BA9Nly4+9wo=; b=al49MDZz10C+/KgevPO3P3xDc4izNKqYnvIrpmhkNUVYAs8ALZya5mM1N2PZcd8v2a bT7jyMuCWpbOzroMxZqS94fy9Z34G7HVpdnRS4L55OjAe9fcd19XcbCwPUJB+2wzL3sd /de6dfJGhoStBrFqGwXAPMV0ut5qXIwn6hyEMQLCKcpkw/b/oLlwDuG3F4SgNvjmWWiF ja12yw+13kJJ9hLVh3OeXhZyGg4to+N+CrkX6peD05s6mflbXhwtdDGKoqkrLMmb9JEG /1k1DbN220yyZ+S1+sv6e5y+ZH1hOvDoUbyaJR39plZ2e4Wm3ajDqd3FVBljHh91mIzn 6rkw== X-Forwarded-Encrypted: i=1; AJvYcCX5EBzng8jw024ZZ+/jm6V/y5f3ap3+6E8vvQi6yR3UOKUp4Z+4CYSxoRQH+cVu9n+mfnqrv2RZZ2V6c5tacqmBC51GmZCbH7HoXsZAN1exnaCuA+g= X-Gm-Message-State: AOJu0Yxuf1BNxyj6vsUZP3XNw1aZqymFREk4B1lQ63io9meLI775SYOU tdnQxWrEgFSRK5e0XBnVQpYD7m8LNSHXu3QsqwqgbJYjCY6u2/b3 X-Google-Smtp-Source: AGHT+IExNrbXa/f2Lp9GuK2cGefWfniERXAX71ycVDSa7Qqxj4fnPg2Z1sso2yeSttZjeaTAepYziw== X-Received: by 2002:a05:600c:b48:b0:426:8c36:5841 with SMTP id 5b1f17b1804b1-4268c459b89mr102803385e9.23.1720957392745; Sun, 14 Jul 2024 04:43:12 -0700 (PDT) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427a5edb454sm48887395e9.32.2024.07.14.04.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 04:43:12 -0700 (PDT) From: Raphael Gallais-Pou Subject: [PATCH v3 0/2] Add thermal management support for STi platform Date: Sun, 14 Jul 2024 13:42:44 +0200 Message-Id: <20240714-thermal-v3-0-88f2489ef7d5@gmail.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALS5k2YC/2WNzQ7CIBAGX6XZs5hCQdGT72E8UFjaTfoXaIim6 btLe6mJx/myM7tAxEAY4V4sEDBRpHHIUJ0KsK0ZGmTkMoMohSwV12xuMfSmY9pfhJJCG+tvkK+ ngJ7ee+n5ytxSnMfw2cOJb+t/I3FWsqvz1lTopJL1o+kNdWc79rA1kji8/O3wRPZqrysl0SmO+ Out6/oFDGIXy9YAAAA= To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Maxime Coquelin , Alexandre Torgue , Patrice Chotard , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240714_044315_942344_27B61B05 X-CRM114-Status: GOOD ( 15.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series enhances the st_thermal driver in order to enable support for thermal zones. The changes include: 1. Replace deprecated PM runtime macros with their updated counterparts. 2. Implementing devm_* based thermal of zone functions within the driver. 3. Updating the stih418 device-tree. The device-tree patch depends on an earlier patch sent to the mailing list [1]. As it is currently implemented, an alert threshold of 85°C is set to trigger the CPU throttling, and when the temperature exceeds the critical threshold of 95°C, the system shuts down. There is for now no active cooling device on the platform, which explains the use of the cpufreq framework. [1] https://lore.kernel.org/lkml/20240320-thermal-v3-2-700296694c4a@gmail.com Signed-off-by: Raphael Gallais-Pou --- Changes in v3: - Fix unmet dependency in [2/2] - Remove no more used variable in [2/2] - Remove already merged patch in soc tree - Link to v2: https://lore.kernel.org/r/20240625-thermal-v2-0-bf8354ed51ee@gmail.com Changes in v2: - Add Patrice's R-b - Edit patch [2/3] to remove unused struct - Link to v1: https://lore.kernel.org/r/20240518-thermal-v1-0-7dfca3ed454b@gmail.com --- Raphael Gallais-Pou (2): thermal: st: switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() thermal: sti: depend on THERMAL_OF subsystem drivers/thermal/st/Kconfig | 2 ++ drivers/thermal/st/st_thermal.c | 32 +++++++++++--------------------- drivers/thermal/st/st_thermal_memmap.c | 2 +- drivers/thermal/st/stm_thermal.c | 8 +++----- 4 files changed, 17 insertions(+), 27 deletions(-) --- base-commit: 3fe121b622825ff8cc995a1e6b026181c48188db change-id: 20240518-thermal-8f625428acf9 Best regards,