Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp1599161rwb; Sat, 3 Sep 2022 20:54:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR71zH7UEyLSTAmpXrh/SRLG7dz5prkzfhSwhBicv8U1OLKLBiCl96CLXx9SPLQd9xuMzE7y X-Received: by 2002:a17:903:41c2:b0:174:6cec:8d0d with SMTP id u2-20020a17090341c200b001746cec8d0dmr16084628ple.123.1662263690170; Sat, 03 Sep 2022 20:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662263690; cv=none; d=google.com; s=arc-20160816; b=zH2Y+IwoyxlcXPVCuSYZ7UtGwvbOEQYMH2F3T8cF5eC4HWxTVXqkyaOXscbsnk5jeU XP3/8x3Z0XeCk7t0i7pTWeFuyJgY6X/TSGaoG00dn/VuQS3mzYBFgDkAS7MteE0SZXkB YN38WHV4U6uEIo7tVUZ5uHRxJITicxHV45e+aL3cnaJKXbgoAVOJs9ntYJAi1ZYYNZsY 6vAYQqE1LoRajdi+DQAin9yi16YHPfUVGMflW8M3X1eYjeM+cc7XzNmcsrYklcLjbYHR MkbCAgxdVxONJ/SpjrpSvJrpcy7xO0139oYgI4/7ZA8A8oAuAhf4pepaVgBj3ejNi2/w 1D1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=0XXu/7DvRXDjmgtdk2so2BnsRSmyqUu6JOo0IYyP3A0=; b=NQYI8oblhX18CLLDwAP0vejrpDASgENBQFtRTkMcqNOrXdvX1yWTmkwB688/rAZlC6 zxdpW3IotpJLeixzgzL3x1nNd7uxHq20r4Ic+F4et6pLk49L7PTkXVu9ZwP4ofFWynN4 tNEZtslgq+7so3kx3yi3USIXT0hsaYXBEKaDq5RHu3405vD772aPbfrIHblUepslhYzA 9hyK06B6E/Px1qsafUpqjg5Ev+trQk+dBgb2mZbBq3sO4hhn1CfamATRsCTi8yKKWAW7 socMAFQXU6a0e+JwOVDlPyomE35wPM67eo0RUXjij0jQRC/LAHgnRd5adePtWoN+7gK5 GBTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=xuCAiKHP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=BVl0MxPG; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a056a00124e00b00537f8876799si6927605pfi.51.2022.09.03.20.54.28; Sat, 03 Sep 2022 20:54:50 -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; dkim=pass header.i=@sholland.org header.s=fm2 header.b=xuCAiKHP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=BVl0MxPG; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbiIDDYx (ORCPT + 99 others); Sat, 3 Sep 2022 23:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiIDDYs (ORCPT ); Sat, 3 Sep 2022 23:24:48 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9E2E020; Sat, 3 Sep 2022 20:24:42 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 003895C00B3; Sat, 3 Sep 2022 23:24:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 03 Sep 2022 23:24:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1662261880; x= 1662348280; bh=0XXu/7DvRXDjmgtdk2so2BnsRSmyqUu6JOo0IYyP3A0=; b=x uCAiKHP6q6NKkjf6wYDENnaVnPJQhuiCqIjpGEYBY5HTUgHCFZkwmIk8dKwdhtGA OM4ibytOqLASxjKlYVu11EbyRe+v7h3TMUzgqA36gMFGsPLPASncx7j1NY4ndu+A B2qlflsNUZE5oMcgjW3DvloYAkka8xYa+iD8Z+tBYOFpGP2dzD05pk/caCdfKqwj B0SwuOFxUCYP6ES64Kt994ibldA82n5qE7MP+ESoLqt8Pqsckcy7ySgy8LAlSTud RZMl790hanLPJdVl5jI2K7qguEPmyjQxmq3WBttavsqet1qtRcmXxlzGTiwVZcNy lGiaUDxRaTwWOSvoknyaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1662261880; x= 1662348280; bh=0XXu/7DvRXDjmgtdk2so2BnsRSmyqUu6JOo0IYyP3A0=; b=B Vl0MxPGF0gpLofnYY0JShxJKIuMVf/s0o/152ScCPuDzR7LRTGoMUnm7MJticb8t Z9/U1s0oKNPuBKc/CemlngEIRvC9mCa7EtblEavItvW514mdu51ZzFhfhCdxEBRy QmpyVfZIQpsUza/cc18bJ/GAD+7VdCrjXdu45+BDoiAz5YT+qY/I+SJmJantJpl4 JKV7Vq0g8zHQjYYFEzKRcoesz5BHzVLBlhm5ECLJHfysUDWx/yac4SiyVAGhpK3k sW2CpyTQrWiwTtmcKVLZddJX1AkgU6wpOgoK5iTw+JdRrIdyZrtfjEbTW3ACysgD GQiyezu80+q5oO/kVQmuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelfedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedtvddvudelveeuleegveduiefggeegheffgefhjeduhfeigfei vedthfduleegueenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhl rghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Sep 2022 23:24:39 -0400 (EDT) Subject: Re: [PATCH v2 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Chen-Yu Tsai , Jernej Skrabec , Rob Herring , Krzysztof Kozlowski , devicetree , linux-arm-kernel , linux-sunxi@lists.linux.dev, linux-kernel References: <20220821173051.155038-1-peron.clem@gmail.com> <20220821173051.155038-3-peron.clem@gmail.com> <72f901e6-f646-336b-70e6-2747363944ab@sholland.org> From: Samuel Holland Message-ID: Date: Sat, 3 Sep 2022 22:24:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 8/27/22 11:49 AM, Clément Péron wrote: > Hi Samuel, > > On Tue, 23 Aug 2022 at 05:16, Samuel Holland wrote: >> >> On 8/21/22 12:30 PM, Clément Péron wrote: >>> Add a simple cooling map for the GPU. >> >> It would be good to document where the trip point temperatures came from. > > If I remember correctly, I got those when getting the dtb from my > Beelink GS1 when it was running vendor Android with the oldest > Allwinner kernel. > > But now that you ask I double check with the "new" vendor kernel source: > https://github.com/Allwinner-Homlet/H6-BSP4.9-linux/blob/master/arch/arm64/boot/dts/sunxi/sun50iw6p1.dtsi#L2034-L2053 > > And It's different from what I got in the past. > The throttling starts when the GPU is already very hot (95, 100 and > 105°C) and seems to only disable the highest frequency (756, 624 and > 576MHz). > Which let the GPU running at 0.91V @ 540MHz. > > Which is far to be the lowest possible consumption for the GPU (0.81V > @ 336MHz would be better in the hottest situation) > > I'm not an expert but either I could just try to copy/paste the same > behavior or try to have a more smooth cooling map (70, 85, 100°C). > > What do you think? I would generally prefer something conservative, to be appropriate for most boards. But I do not have any strong opinion on the exact trip points used; I am fine with adjusting them. Mostly I want to know the source of the cooling map -- where the numbers came from, and what changes were made. That provides context if we want to change the map in the future, or if we run in to issues on some other board. Regards, Samuel