Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp803356rdb; Fri, 2 Feb 2024 04:45:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IERtrlXhN8oPSG6LuZ4NHSlNTqZgkNr0pO5+kDYGlkudazkNS1f6E4vynkDWkrdl4IVlhSb X-Received: by 2002:a17:902:ec90:b0:1d9:3320:14b2 with SMTP id x16-20020a170902ec9000b001d9332014b2mr2619178plg.46.1706877932789; Fri, 02 Feb 2024 04:45:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706877932; cv=pass; d=google.com; s=arc-20160816; b=I/KiY6prf9/jfF7GqI7nI67r8EXM8Y7LsoXEw2Ai6veEsgkLVtijbG8wYYuxSwY3cX CZt67J7G0LDKQF/4mzscPWZPrKwJNtafMShPRNteJoTDnGPNdTJ+nr8RaOgR0kOifiu4 gENOlLG969hiSS6YlxnIjlROLehXsikPGaGoQOVY5cum6R/Cy7EYZAQfnVMomi8XgK7s yX8FCHX6s6rjcD0Y5qbflamJ/uDuI5s2DTe90OREbsOsHTUdqZyPL3CddUAP1wGDpyo9 /A33gTFtqlCIc9lvT+nRvKsrlCMl3R2X3bG2CbrDwHYsfCLSPJC9xlfJBY8CA8okPhvd z+Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=JEhP/kvo7+H18lNfoFAvBKQU0xRqI+1E+89VLjha/LM=; fh=bhIyH7j6MZ2GyQr/JkT6v1N5bqL7VVscqkUBypokma0=; b=jAs2Y6TWFdBEKPMFveDclbL/uFkwAXwkQD87uP5MK43Dm8xscoj0NfqMflGOzyvIFm ZtTfsZAOaY/xQKLYk/2ZeRk7AjBIGpIIBapRYGECNE6/u3JC113wSCqqzo4P50Mv+CLD dxAogJq9NK7oV1zImIXe+6bZxG5oytrNzqzBlZgJv//ZpJUXtV1+2aZp8rkLcQgIjZe0 PrARvGnRvEHsRQeXjS0LtuER4KiMnjeBg1ZaU6mzJZmFDFstRScsoqPW1vaXi1YWHvdv ZXPYIhurnZh4CkV6WgglAHtfF38ay6c/P+5r53FVfYH0HcomFJ5MYWCZAfrcrvNrp3Qf QQHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DXYOI+0D; 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-49831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCX7Tb/JPkb5fYe/dBNff7iuabXiVNmEhNzL1RGcAEfEr60dYmqwBrvn490xUQy93UNreqm3AU+dBsPe7zNwohF0/Ja4Qc5zH9BRHAgYNg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z5-20020a170903018500b001d9834f295csi31867plg.226.2024.02.02.04.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 04:45:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DXYOI+0D; 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-49831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49831-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8B64AB26872 for ; Fri, 2 Feb 2024 12:21:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449A914198E; Fri, 2 Feb 2024 12:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DXYOI+0D" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 3462313F01B for ; Fri, 2 Feb 2024 12:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706876442; cv=none; b=Z0hAXBRGc0P2+qQRm8hmRjKloLPgnPBLiE7H3wRbMdEQx5zxa0sPgREPy65H54AXMAk/mwyHlJ/yUjUmZhRo1am2OsqEirdoLZSaZXFajVUr+9cfIxpgJt07U/BJuBXV6FhpzGI00vo2qGKl7iKQng/J2q8yNkW8IWgiKLII6P0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706876442; c=relaxed/simple; bh=9YZopy2TeHxgP0yzQOepMLgIqTR9PKUUU3JWfTdcnPQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VeRMAfe7UbqKY1j/gyaVZFjTsUSR1J16fyWfrD3M1PGbEKI/s1b+tlKFf4q0+rPeqwmD/RkFTh2fxW1axVeFNM3RnyxJr2evO3DV+V+e4Jq63KCtBdmFCJGaDACicUK0G4RlteiHDkwX8Ud9FhQOyboAaDQFYah9Gq4Ex79fgnI= 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=DXYOI+0D; arc=none smtp.client-ip=209.85.208.45 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-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so2465141a12.2 for ; Fri, 02 Feb 2024 04:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706876438; x=1707481238; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JEhP/kvo7+H18lNfoFAvBKQU0xRqI+1E+89VLjha/LM=; b=DXYOI+0DtyivwCwv748yuNyE6v5ouygyQUVod8y4XFjv3wHF40AStY6xY2axOY8FdA u4KqjfDxJYodVieQDXmBTWA+KZw/2HKg3uDN9XLRP9HRXwCk7OeboksbsyOKp9yQYahg rc+cUQO6Vls0Vke1tf0sVCqwanYOxSaQSfPGIymPPparts2bBAan4E1MFzFfgRYu+TIw 6fttIMZG6c7ZJOLQWRatOHE4921tYv6iVE6svSa/RHmbXp4VckT6oqF1Y2zV/6sFWgR9 yEwZqew4k8V3oPDNys8SjG87pMhjpiZeNui5eZ+bWJHr3+WhKMbQMZIaesLUB6AKHFbr CqGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706876438; x=1707481238; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JEhP/kvo7+H18lNfoFAvBKQU0xRqI+1E+89VLjha/LM=; b=rYcrgSze3uQAWKn00C6n1XigeouCOE9Emy8ANZV2im7Y+Ue7KGToKvS6gPqJ8N1zx9 MOCCCunCH3GFH/lZe3TDQdlYIPTVSUX3/qJe845fOl1fVn+6UdOg4NGh1O+LZBEhYsKs IM2hbSUYDMNC4+yO3qnajy1SD+TQXNw44eVPi/oYfulflRR9p+dK62xeFVeVBu/NEUz+ frcrfypfj0BkPH3fOjLb0nMbr2sm1CzMBbMwBWibiMCh1wTWhF9SwCPvQ90RfY1Q7hZC vJARITafuTueWMJF6thG//xOPwctPpJEXJXGf7TxCcA5sDlXxCrstwe2FSv+pHljV9fl 34pg== X-Gm-Message-State: AOJu0Yx0HMZxkt4iRm/XCHLba9dCcXWGDhMw2jmNLWN/Nk7pWUzo5bcS v1Cku5qMJGZc5JU7BM1YOP3Evu0Z5cq/2ue3fnA/Yr+QqyX8NfQ3JUF9lRk5rv4= X-Received: by 2002:a05:6402:33d6:b0:55f:eb11:8937 with SMTP id a22-20020a05640233d600b0055feb118937mr1116681edc.33.1706876438268; Fri, 02 Feb 2024 04:20:38 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUJ6CB6Kd/kBE2Og35lVxEEr7zhoybwpRuUZxuZrNZb6PCSVMO9J6jrihRsKrEf+yTKDKKIKv8jHcNnEfRZxsw+oQfXamBlKp4bJjgEOoRvdWcsSx0mStzcmemh0cLGQC2sBeHAeUnP9a+V0QkUQUhIXmq6OAAgQT7kZaZZDvgPQIGpBtjc77ZKZlLoEPaGY4SYoQJj9kcy0Z74BN1yDaAOVqx2VTno4UdFz2sMDJAs8j6BvabP6inxjXYhqgO4BvT3sn8TO6SLAD0nRcIuEacV+SUO9qu4uYwIpTuXNJKL7PDoYD45CKXDkFGmSWAYBe0riRz5W1XdzaXOpfDw13RzFP+A3FfNwJt0FA5j/24e8BPpNZuZFbu3T35yvOtRSkwb0vaxMeZtpg== Received: from [192.168.159.104] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id c16-20020aa7c990000000b0055ef1d4fcb5sm751602edt.9.2024.02.02.04.20.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 04:20:37 -0800 (PST) Message-ID: <7527574c-8faa-4ccb-9387-8563f75be3ab@linaro.org> Date: Fri, 2 Feb 2024 13:20:36 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 2/2] arm64: dts: qcom: msm8953: Add GPU Content-Language: en-US To: Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vladimir Lypak Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240125-msm8953-gpu-v1-0-f6493a5951f3@z3ntu.xyz> <20240125-msm8953-gpu-v1-2-f6493a5951f3@z3ntu.xyz> <4539846.LvFx2qVVIh@z3ntu.xyz> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anz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Content-Transfer-Encoding: 8bit On 27.01.2024 18:32, Luca Weiss wrote: > On Freitag, 26. Jänner 2024 00:50:43 CET Konrad Dybcio wrote: >> On 1/25/24 22:56, Luca Weiss wrote: >>> From: Vladimir Lypak >>> >>> Add the GPU node for the Adreno 506 found on this family of SoCs. The >>> clock speeds are a bit different per SoC variant, SDM450 maxes out at >>> 600MHz while MSM8953 (= SDM625) goes up to 650MHz and SDM632 goes up to >>> 725MHz. >>> >>> To achieve this, create a new sdm450.dtsi to hold the 600MHz OPP and >>> use the new dtsi for sdm450-motorola-ali. >>> >>> Signed-off-by: Vladimir Lypak >>> Co-developed-by: Luca Weiss >>> Signed-off-by: Luca Weiss >>> --- >>> >>> arch/arm64/boot/dts/qcom/msm8953.dtsi | 115 >>> +++++++++++++++++++++++ >>> arch/arm64/boot/dts/qcom/sdm450-motorola-ali.dts | 2 +- >>> arch/arm64/boot/dts/qcom/sdm450.dtsi | 14 +++ >>> arch/arm64/boot/dts/qcom/sdm632.dtsi | 8 ++ >>> 4 files changed, 138 insertions(+), 1 deletion(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi >>> b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 91d083871ab0..1fe0c0c4fd15 >>> 100644 >>> --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi >>> @@ -1046,6 +1046,94 @@ mdss_dsi1_phy: phy@1a96400 { >>> >>> }; >>> >>> }; >>> >>> + gpu: gpu@1c00000 { >>> + compatible = "qcom,adreno-506.0", "qcom,adreno"; >>> + reg = <0x01c00000 0x40000>; >>> + reg-names = "kgsl_3d0_reg_memory"; >>> + interrupts = ; >>> + >>> + clocks = <&gcc GCC_OXILI_GFX3D_CLK>, >>> + <&gcc GCC_OXILI_AHB_CLK>, >>> + <&gcc GCC_BIMC_GFX_CLK>, >>> + <&gcc GCC_BIMC_GPU_CLK>, >>> + <&gcc GCC_OXILI_TIMER_CLK>, >>> + <&gcc GCC_OXILI_AON_CLK>; >>> + clock-names = "core", >>> + "iface", >>> + "mem_iface", >>> + "alt_mem_iface", >>> + "rbbmtimer", >>> + "alwayson"; >>> + power-domains = <&gcc OXILI_GX_GDSC>; >>> + >>> + iommus = <&gpu_iommu 0>; >>> + operating-points-v2 = <&gpu_opp_table>; >>> + >>> + #cooling-cells = <2>; >>> + >>> + status = "disabled"; >>> + >>> + zap-shader { >>> + memory-region = <&zap_shader_region>; >>> + }; >>> + >>> + gpu_opp_table: opp-table { >>> + compatible = "operating-points-v2"; >>> + >>> + opp-19200000 { >>> + opp-hz = /bits/ 64 <19200000>; >>> + opp-supported-hw = <0xff>; >>> + required-opps = <&rpmpd_opp_min_svs>; >>> + }; >> >> If you remove all OPPs but this one, can the GPU still spit out pixels? > > Yep, phosh is starting and is rendering at a few fps. > > fairphone-fp3:~$ cat /sys/devices/platform/soc@0/1c00000.gpu/devfreq/1c00000.gpu/min_freq > 19200000 > fairphone-fp3:~$ cat /sys/devices/platform/soc@0/1c00000.gpu/devfreq/1c00000.gpu/max_freq > 19200000 > fairphone-fp3:~$ cat /sys/devices/platform/soc@0/1c00000.gpu/devfreq/1c00000.gpu/cur_freq > 19200000 Interesting.. Reviewed-by: Konrad Dybcio Konrad