Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp536428lqr; Wed, 5 Jun 2024 13:12:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXu92JEhRaa5g2i/7TUp9Td3P6Dv0QalKsoHCM1YDPhe2hjOLlviwgVee2Gvmxg0hGv36gYD8hnU1F30C0eVjnZZmUVAGRHHZw7Rm61Uw== X-Google-Smtp-Source: AGHT+IGulGf26jQqGXEEDyXkrT5cR3tCbQ/nFBgtv9bF1neh5EDdV1YluIYrYY7j0O1yXtHIJYm2 X-Received: by 2002:a05:6808:146:b0:3c9:b61d:cda3 with SMTP id 5614622812f47-3d20425b2c6mr3260954b6e.11.1717618358784; Wed, 05 Jun 2024 13:12:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717618358; cv=pass; d=google.com; s=arc-20160816; b=Fh/x2lSOIg4q0P6yNFX5b+qTtl41k8ZZNtA2A1qiXGeB2TVgDG5UhpkUZCsYOcrHCA FmASabfAWQxU1Gcpd1XHjYPudgyHup0+/OFGerS/Lu1oZnHrhGpAb0DKkovbYT01eQYC sLPVm8Xs2RZo1E5k36WxUwmI3AB6cwzKiV5V9olhz69NpfX4Lhy8nTTfq2onH2f7J5g7 DJ7gVBUwsOKTYmk3a8B5Q2GCS2+abjRXX+68s7JAQ9Ric1roU8cneocedFlIWAzJx/uh HlwdzkVHpIfRKp5rP601dshizQKuHWECSCxxMTRDcxJcSxsE1nujN3C6cHI7pTbxm/pU uq5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=2zhSqnuAi2a4A8OlqdMxl1Xx25B3ZvBd8bPE6idYqUw=; fh=iIHlVq1ypKZY9SkoLzakIIKxVscDvEa6NbJITzLtxjg=; b=no2zc1zuXp03uJmIcfUO7Vdhg15xylCSl152CqvjBEdcPSDf8tO006pIJI1WxlyP4I lyCPAmtKCvy1giybj00JQ+2wmcSLZN0GPT5IL7qbpyf32LC105Hc2/LmIXgZfib4wAnn no6HmLkbtkP05/30YiK3pk4aB2pYPTI3faeW4EX0whSNycAvBPJxIBH1aUmPUscY0lnS MmroNwaqBiAIFRoMuQPC91E+BuHzUfievmuWK4hpcN+IrVmEUAOep5AdDQql1kRRnx/E m+BhSm4vBCdk+EutcOdroDO/Ds4CBo5m/jV1PXyXsiaS5YUD+YiQOCNdec5UUJ01SLpp ux/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dJzKGhlu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-203158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203158-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7951fc617e2si136396985a.647.2024.06.05.13.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dJzKGhlu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-203158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203158-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 730A01C22C89 for ; Wed, 5 Jun 2024 20:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4669915EFAB; Wed, 5 Jun 2024 20:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dJzKGhlu" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 B4D5F15E5DF for ; Wed, 5 Jun 2024 20:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717618238; cv=none; b=sgmtVaFlpINXW9RltdjF+bIrvOoUGSdRk0FiUoy9Hkvq7Gk8de0f8sg8Pj2AvT8toBMkwE3mG2d73SfJLNCjWAtfC3ZE8eRI6gI6qUlTih0vmDnWe5+JVO3M2vaarWTW7BhYoeIJYAiZZfr0HVkk1BpMaTXPIpy9J2Pu8skKI2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717618238; c=relaxed/simple; bh=0JBK/nMl5cHZdGnJCndW0tz6llOA7aiaSZQ/G+fHoQ8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NdpQ1nC2ieyPIdYSj49aRnTu9bLT6GWr0Zm9lEhyOWZ75Z+dgFGs3jaun4UNwjHi+wZoBbpTkt+I7k34AroXC7dsEbTYZlgF7b14Lb/knUte6QOWsPkTHuxG4qnYsy9tOpsCfBRtepy17wlPRtcv1zmp0oVFMlPYHscHdVq+eJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dJzKGhlu; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a68a288b8a4so11732766b.2 for ; Wed, 05 Jun 2024 13:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717618234; x=1718223034; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2zhSqnuAi2a4A8OlqdMxl1Xx25B3ZvBd8bPE6idYqUw=; b=dJzKGhluCCCr4ysVAwh5sufGIvlXoyGVdkE6aRZfBu6NIEk/hrcdXB4P00ShQpVKRN +egmqWd+GVCoSxXX0Lxw8T9RZQNGQPJlgwEDLb/QqhQUBgG9j4ApcIGpfsvbc2uf2Qnw ov0ujBbJODWjC16dZKGHyNA8xwjvf1D/h9dYkw+xnvZPVpDdSAQrVHtXIxe+xMdktid6 kKTxfrkTzaU36kNF7WXVeJvXM+70nzDCT/P6ZYZStSheO+JW82IjSSHwJo/9s+Re4TV0 EbfCcdLkWWRE9zWxVHWpfkJwIQ06JxSbCRtfv4SY1Om+srKp992k6L2mXWMR1FR2n6ta fO6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717618234; x=1718223034; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2zhSqnuAi2a4A8OlqdMxl1Xx25B3ZvBd8bPE6idYqUw=; b=wgh8xrM62hVlzYVHUtkd14/EDEdun8t9W2VJx8oLwlyeCYzv9kvcTyUwDpPTgnADPS jtZfupa07i6z58m8dRG8h1Gvjf+yBDyoglWAnwu7fIIbODakyu3QibE9O837gExKNtHe CMAiZQWfLs4hQigOYaSmLePG8sqKKTl8kpLUNBvnA+Lu1E4kyHbNXNoKxbH0j/IgXLaY uyr0BkH1plGamz2+B3B23OpUcsfpvZDcHryeVhb8qPFnm+DosZugQPbqEX7/Ro6NUjD3 o7v5LiTasA3KgIzNQoX1kt/lDzjmoe5+4t4BRF+WzVsFA9tEF1EaEU2Y0pnrX06zuCoe tfRw== X-Forwarded-Encrypted: i=1; AJvYcCWiS55vE4gvF/GZq5ihqngapeWYptqF/mmpGoG5QOCSBEwhM0Jo5QD06SzHY9/MXkFdkf0x9nwDSR+WdXBvrVccuRNg7V8T73zrde03 X-Gm-Message-State: AOJu0YwkNgjdFqO4fh8UU0tllJY648Ar/mjlG1OyfBd2mfix9/HElN9t dI233llQ8y845/iD9Cvd5d8SBrGjb3bSBSNbuHgiidxW30Nfk1yMBCWW1Hl7SLw= X-Received: by 2002:a50:9f2b:0:b0:578:881e:7b77 with SMTP id 4fb4d7f45d1cf-57a8bc9c0aamr3181953a12.34.1717618233978; Wed, 05 Jun 2024 13:10:33 -0700 (PDT) Received: from [127.0.1.1] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31be4e36sm9717473a12.53.2024.06.05.13.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:10:33 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Jun 2024 22:10:20 +0200 Subject: [PATCH v2 7/7] arm64: dts: qcom: sm8550: Wire up GPU speed bin & more OPPs 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: 7bit Message-Id: <20240605-topic-smem_speedbin-v2-7-8989d7e3d176@linaro.org> References: <20240605-topic-smem_speedbin-v2-0-8989d7e3d176@linaro.org> In-Reply-To: <20240605-topic-smem_speedbin-v2-0-8989d7e3d176@linaro.org> To: Bjorn Andersson , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, Neil Armstrong , Konrad Dybcio X-Mailer: b4 0.14-dev Add the speedbin masks to ensure only the desired OPPs are available on chips of a given bin. Using this, add the binned 719 MHz OPP and the non-binned 124.8 MHz. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index c55a818af935..5f5ddfe205b0 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2119,48 +2119,67 @@ zap-shader { memory-region = <&gpu_micro_code_mem>; }; - /* Speedbin needs more work on A740+, keep only lower freqs */ gpu_opp_table: opp-table { compatible = "operating-points-v2"; + opp-719000000 { + opp-hz = /bits/ 64 <719000000>; + opp-level = ; + opp-supported-hw = <0x1>; + }; + opp-680000000 { opp-hz = /bits/ 64 <680000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-615000000 { opp-hz = /bits/ 64 <615000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-550000000 { opp-hz = /bits/ 64 <550000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-475000000 { opp-hz = /bits/ 64 <475000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-401000000 { opp-hz = /bits/ 64 <401000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-348000000 { opp-hz = /bits/ 64 <348000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-295000000 { opp-hz = /bits/ 64 <295000000>; opp-level = ; + opp-supported-hw = <0x3>; }; opp-220000000 { opp-hz = /bits/ 64 <220000000>; opp-level = ; + opp-supported-hw = <0x3>; + }; + + opp-124800000 { + opp-hz = /bits/ 64 <124800000>; + opp-level = ; + opp-supported-hw = <0x3>; }; }; }; -- 2.43.0