Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp396524rdb; Tue, 16 Jan 2024 03:59:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlzCmMxatqqKEbpqh7PV+mm47CPxjfDjH+hUqsQBM3ydPgQ2iSuYUJ57bMp0Q8YeIp+/G2 X-Received: by 2002:a17:906:35d6:b0:a2d:49ba:378e with SMTP id p22-20020a17090635d600b00a2d49ba378emr2217957ejb.81.1705406392788; Tue, 16 Jan 2024 03:59:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705406392; cv=none; d=google.com; s=arc-20160816; b=saaLMkq40dAHRdzvE4dg5dE5CrH2WtfuUtY/KU+7hf3m6FqgrpF4fg03cgMBu4C15/ fMXR0NftsMwrnex/M22I2+E19CxNgZSLe+afLW7AQY3VCYFntCnDJ/JC9MIx8MdjHjb7 EvQyVzlTKT0oQb6AuoGUfAkM59QrPIG4upceERKEgS2NWDVRF66CClTi9h0n016ql5AR StsVMbTOoY50g5+CqvYZ6AkTW23IxroEXXW0YTl8Yzn/zji0YVmBiA6+hH14dUA/Yk0v wtrYAqsuKB1EuG5qBgtNIvhjnL8s5zZEK8PI9XH2pKkX+MyKEkRTpkiZEYxTISCmGH2P kbQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4mY+tIwBKHmUxob9qZlCJ14coqBFslOG9Pxb8dXi/Ag=; fh=LqN9yXlirs7SaORcq4yV7K0Xiyn4Cd9vq3BPqWczS58=; b=im+GRprJxnekDH8sVtlc7/VY1yukCZB1X4SxnS78EJV+3SzIUardG4/gKrP9HRI9CY wK97WgseijCXd+oeu6K6T+hMBoX0Lp2moWOSgWk3wxM4UsEihhcswcW9gSXrqSEA47U2 OoUXq+sjcK1ICnDGjJb491b/p6oy4A8iRJceeDuE8FeQEdsZaRwAuvAWJh6vDcwt8Eti O+iyXhAXrhVT6ivaa03wvqIcBoom7j68KSaxKbvyLfKzp9slR8aQ1MNJ/QKhVfRiUWhw nmIM7JfqGzzUYY1QIwBP26TurcGMmHLA3y+X5DUngOZs1Qptf/IVDqUOoc5p9FRRjBPP XqJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DMbwMIhW; spf=pass (google.com: domain of linux-kernel+bounces-27354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l11-20020a17090615cb00b00a2d5ec4ba96si2435893ejd.97.2024.01.16.03.59.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 03:59:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DMbwMIhW; spf=pass (google.com: domain of linux-kernel+bounces-27354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 895CF1F240B2 for ; Tue, 16 Jan 2024 11:59:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2F031B96E; Tue, 16 Jan 2024 11:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DMbwMIhW" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 978751B944 for ; Tue, 16 Jan 2024 11:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40e779f0273so18124215e9.2 for ; Tue, 16 Jan 2024 03:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705406380; x=1706011180; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4mY+tIwBKHmUxob9qZlCJ14coqBFslOG9Pxb8dXi/Ag=; b=DMbwMIhWc9YAULkQpaZV2B2+1jhwM3RsttaozkThlzJfMQUrNLED/13rYnU+6gzOsa aHTAIbI0ZQavKHIeT81zLRKVaN7OOu2zThFDLQNCas/qKLuzLKx0v880ihTpesWwMNWo EasgmGRrScjGOCPRHQm/lNoane+Q3OUeqxmCTnhUR+eeea6w9uWK2SPfWkR1fmZbrycW 9SR1EAhbXpvk6ytjhP1Sy+J7Ek4mnOP9SGf9d/D8sDV4K/9ZylZx1U7Jb0vGIpkt40dc JEsn84fOn88nIMjmPq3n6WABJRe6PoYJI4TBG1uav3Fy00dDotlnk03P0EtT09nfi2ef WsSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705406380; x=1706011180; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4mY+tIwBKHmUxob9qZlCJ14coqBFslOG9Pxb8dXi/Ag=; b=o757a2Lza9CnEhcNhXLoprwO2buzz8wSE4wZ0UtaweKk3Uoa5r1I/xlzxNyZfSIoOa 5QdVOR8xdJUYUrSMVzOH3ESypHfoPBBxMkzlFLLbRSLVDSQiVNWffukArqUOPSkIqyXP dm+3rokZLMu1OOJS9sriERDvwPwQBkhhBmTvRD9//b0JpFO/wVjttDFRabWql3q+XedQ Vnk6B65dn6Smy64feqaqrx30RvFGsCGcRVENXNMMm9m4cLxwHrzjoKcZy4+UVzy0O9II qY0+UHsiAY2uztW6s1qF6GPDMYfnmG62Xv0FTs8jhhnPlTuZN5dNMnk11WxCyHcEGCTN Yz4w== X-Gm-Message-State: AOJu0YyFzJ7fHVLF5wPByWRRtq7YItelve7dzNTKxdI2X5BfdiJGWqmd p40hwqLfCvqFIq4ErqGn8G1lS3IKMNfToA== X-Received: by 2002:a05:600c:211a:b0:40e:6ba4:e056 with SMTP id u26-20020a05600c211a00b0040e6ba4e056mr2674818wml.18.1705406379859; Tue, 16 Jan 2024 03:59:39 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:fab3:687:ead6:5b40]) by smtp.gmail.com with ESMTPSA id p31-20020a05600c1d9f00b0040e6ea6d2d0sm3279722wms.24.2024.01.16.03.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 03:59:39 -0800 (PST) From: Daniel Lezcano To: andersson@kernel.org Cc: Amit Pundir , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] arm64: dts: qcom: sdm845: Fix wild reboot during Antutu test Date: Tue, 16 Jan 2024 12:59:20 +0100 Message-Id: <20240116115921.804185-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running an Antutu benchmark makes the board to do a hard reboot. Cause: it appears the gpu-bottom and gpu-top temperature sensors are showing too high temperatures, above 115°C. Out of tree configuratons show the gpu thermal zone is configured to be mitigated at 85°C with devfreq. Add the DT snippet to enable the thermal mitigation on the sdm845 based board. Fixes: c79800103eb18 ("arm64: dts: sdm845: Add gpu and gmu device nodes") Cc: Amit Pundir Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 32 ++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..20fefd6af0f8 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4764,6 +4764,8 @@ gpu: gpu@5000000 { interconnects = <&mem_noc MASTER_GFX3D 0 &mem_noc SLAVE_EBI1 0>; interconnect-names = "gfx-mem"; + #cooling-cells = <2>; + status = "disabled"; gpu_opp_table: opp-table { @@ -5603,12 +5605,25 @@ gpu-top-thermal { thermal-sensors = <&tsens0 11>; trips { - gpu1_alert0: trip-point0 { + gpu1_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu1_alert1: trip-point1 { temperature = <90000>; hysteresis = <2000>; type = "hot"; }; }; + + cooling-maps { + map0 { + trip = <&gpu1_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; gpu-bottom-thermal { @@ -5618,12 +5633,25 @@ gpu-bottom-thermal { thermal-sensors = <&tsens0 12>; trips { - gpu2_alert0: trip-point0 { + gpu2_alert0: trip-point0 { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu2_alert1: trip-point1 { temperature = <90000>; hysteresis = <2000>; type = "hot"; }; }; + + cooling-maps { + map0 { + trip = <&gpu2_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; aoss1-thermal { -- 2.34.1