Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp555721lqp; Fri, 5 Apr 2024 01:43:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXID8txn3sMdY2pgsTCqQ7JI0rWbcjzsOdSh3p2gCUsV6PrlECzORkaPKajf7HM+YkLYRDSWhN5HmGJ8K+SSchgdAnJS2WgkUcegYotnw== X-Google-Smtp-Source: AGHT+IHvyZZ1iJ01UAqY80tYy6AO+BQKoWIEkLgsgs3kCtLgkF14ED9qWsBQ5YSFOx0jK1up5luF X-Received: by 2002:a19:5e51:0:b0:516:cec0:1fb8 with SMTP id z17-20020a195e51000000b00516cec01fb8mr766357lfi.65.1712306639603; Fri, 05 Apr 2024 01:43:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712306639; cv=pass; d=google.com; s=arc-20160816; b=kO+tU5PcuYlhyaoVHIi8NN3gQ98JhfbjQZlmxHlku4+Q9wgflH6CefSTanNYUfVBPi t+I9VgcC+TzZU6147q4H82Vm929powWQJDaj1F2vr/+rULAB96HkELRGcnBDfIfNb3rF k1pigM9wRDN/NMcoaozkzGRycDFpGiJ0JW9aowY9QvUykZoSOQX7ChKV6Qz4Ul3HBo4U rjBZJTQdPVaIqCUwCc9CvJBu+iN1K9it3OVdyMAQGCcUnKCtz5G8EpGqDV/NHmT1uABB JDud74OGjmSDQX6nSo/P9K9lIgq7P4Exnxkk9Jy2G6bpiargLXQTTW4ZhdLtm/jGriy/ 4c2A== 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=X04cOGIXIpn74O231A72oQJ+8vGZIsJ7iLKhJyEMwh4=; fh=HzQ0CAJTd9w+Z0+6J4P/lSrBOpDlXF05H1jLQ7zvk94=; b=ep/ZpTSeNyJUVEG8AdGABh40xJmbUpmCAzwBN6hl0vVRDpFgaREjqv9otznwzG9ClJ nTkzooVg29sWL1NsyUZTwyiBsB8lHvl5HeiukjvDIZGMR3xcHlZ3XKMT/wK3HLBloBqt KqRz1t4eqOu7Oosut/Pomo+5YWvpGQuVvxH30QV8+lULQ2eY7j0RSxbZmmC3B5Aw6A5i q7wSv3AQlc9dcrnM5sZfPAyihJSE1lYsjnXAP6AV7ZLlDgS+UrP8ysJ04iYhQSil6kd3 g+1vHOyC7rN8Qg7EPM1trpcxHSBytigxQibIdTCxLTNQ60VLEhCgNycoP7a8lfOxX6bz dx7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KuhftbVR; 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-132668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132668-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. [147.75.80.249]) by mx.google.com with ESMTPS id a14-20020a170906190e00b00a4e05cf0054si521947eje.313.2024.04.05.01.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KuhftbVR; 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-132668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132668-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 2A10D1F23747 for ; Fri, 5 Apr 2024 08:43:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE9AC161319; Fri, 5 Apr 2024 08:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KuhftbVR" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 0FDD61607A8 for ; Fri, 5 Apr 2024 08:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712306505; cv=none; b=V9qapdfJg4GFcVX7WA5C/VkjP6c/W5O8swmi1d4pQz7S92x3Y6jfBPVJpPInY1WjBf7nZSAmOZw/Ix4rDKpHU81NgwQXPmWB55xZkk3BKBds8F0QGXLHNM0Xz0MTN7z9ptF4M6xcTuS+PtJ1lwLl9yyjGWrSnR2eA0J8J8WGq28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712306505; c=relaxed/simple; bh=PVrRjCh0+m8251gZ7iZZ6NbUkAGAD83HtonfciqKPAs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QPAVDzhu3BaulL6JsjhgKQBnkGPEJ6Vg7QB5mVaBjSthZkcc/QPsoHeoKrRlOALjts9ZMpbHHeDxqea3+vs4u4Yuvor7rRsf4/3BqFE5Lw/eQPreOjUhs93sn4WWklZl1+gY5lWZGKtx/oZ0uffRdrsUOwKwtHY6ramM+RZvfBo= 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=KuhftbVR; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d485886545so33962651fa.2 for ; Fri, 05 Apr 2024 01:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712306502; x=1712911302; 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=X04cOGIXIpn74O231A72oQJ+8vGZIsJ7iLKhJyEMwh4=; b=KuhftbVRV8fo2Od+ewwdK06hc205ol+IrtoxLvx4I95W/ZoAKD1oti7ZKlny0ix9Ca 44VaZFbUw1L+cpNPOW8vJjh/KTk+ya570qxTdXtfoLRy6XL9rylUHvVCmn+rOlM8Ah4F R0FQHCTCraazWNE/dQp0Vacw3+5Aos2COKQVrm77jM/1tGPM7jenVZ4StrKX4zbefxFo SRoRZiZJmA+K7mL+daOqWvrVhoRdDwFfmEcpGcDQR2udgH6fQSDXKcPaJmOOGXTKVPjJ YFJYYs/xhovOzlCMV2XYI5U9eIwVypCdfdzVPSVYJlbjCiNZiZXQICWubDWkaIM86KD0 nq/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712306502; x=1712911302; 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=X04cOGIXIpn74O231A72oQJ+8vGZIsJ7iLKhJyEMwh4=; b=YkPc3skfLrMJ/v6TAC2+5H/S+uSPckfxbXPuVZR/MzSj0hp9GCGqO0qzkt81H5SwBl OD4tCx3Js65Y7dGI5DUeNggqBtElshBQ39tWSWCCvU6KENxiCUA4PXXYNWIijSIStmPm CEq212u0zXGpKUeZa5rG3WXIhB/Sy3aO51RKKoc2Fg7AUQVIeznc/A0vmYi5VV2MOUGF 106zIvbmIQEQlg/Ckn+yISQJCIYz2dTw+KcX0b4yoXfc7VAccRMCz3lG3GaunVm0AbB1 0XE97cEbuazYTHZvm4FMC5goOhTtpKkGWfaxn5cA9EJo5ok+fTb8WFrzQLgnWDatbWsK MeGQ== X-Forwarded-Encrypted: i=1; AJvYcCVZasVAp6MDTWYVeGQY4A4xpnYHC4ztWtaB8AGQkcgmjsFNPvOcW4nKQgaMCeNRIhk7WjC6/90s3LmMl73pJNi/t0AR0WEDk0yyu60v X-Gm-Message-State: AOJu0Yx2F9dRwXTKBYAxUfMAFoSJDN7iwMusQSYw6o0raihvSicmh0WO 3Kfqd7jhnagHt0vZdEt3B9yrjQ2xMLXs8v2fpz+6U64NmY9Eh+Hy9EHw1V1HRfo= X-Received: by 2002:a2e:980a:0:b0:2d6:c749:17bc with SMTP id a10-20020a2e980a000000b002d6c74917bcmr897025ljj.31.1712306502374; Fri, 05 Apr 2024 01:41:42 -0700 (PDT) Received: from [127.0.1.1] (netpanel-87-246-222-101.pol.akademiki.lublin.pl. [87.246.222.101]) by smtp.gmail.com with ESMTPSA id y3-20020a05651c020300b002d429304a20sm116880ljn.8.2024.04.05.01.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:41:42 -0700 (PDT) From: Konrad Dybcio Date: Fri, 05 Apr 2024 10:41:34 +0200 Subject: [PATCH 6/6] 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: <20240405-topic-smem_speedbin-v1-6-ce2b864251b1@linaro.org> References: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@linaro.org> In-Reply-To: <20240405-topic-smem_speedbin-v1-0-ce2b864251b1@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.13-dev-0438c 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. 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 5cae8d773cec..2f6842f6a5b7 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2087,48 +2087,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.40.1