Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2436492pxb; Sun, 24 Jan 2021 06:59:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+ZbzYnOAq0ALo0oNVIYYPH0/Sp3HuvLLI3s8qZunOk3TaYXLi3bW0ia5sQgCbb4sci8hw X-Received: by 2002:aa7:d40f:: with SMTP id z15mr1590714edq.276.1611500382571; Sun, 24 Jan 2021 06:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611500382; cv=none; d=google.com; s=arc-20160816; b=CERFxJH6JU46LW/Af43tD89TXlULUYII5YQVKyh8rO60YLHoXZP63UX6iBd+BlD2sj kv2Q3LC11daJeL/m7blHBOUS+7MN696sBOOETyv9RcY2G9pvfa7HQxSot63EkrMCiPN3 bGekvB6fROUlxBaiqjsjIh8MgtgipwBB1q5MDV03o6tsYkqrWMqrSJ/KGnMk6zpfuRpB FqcOc255mleHp4q3Mpov8KAdXcLwlG+JnTj69IBd25YhqTOY7SDNEaoWCW0CJz9u7lUJ QY39otaW9AKXkCMMybFlxfAcAonjUdSq3zZg75/ZGHikFc1U+Ice1itEf4aq14K+pjmE NFZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=tMUAYDbMfAL/L4Mae/1sBcnracTaVe2b/yG3Hmq5s3Q=; b=N9ElnTh1YxaUuTbQGiNtl4apQtcr4q+q9mF5Gllc5ZLMky7G1vp5lTpGXcaMmdsEDI DRx8B4GlkGs23FvLJfRE8RcUzSItZQyE0css63T+SVAPgyZieXCGMS0sBThNlovWd3FK BVFKf7OCUW9nRBBrRUgG/xrCVhhxIRy8HbC5QvPWjc1RTQrQi4yFiE7z9+6w1QLvhrrj PNJza4HNlAAFQtWjBPnFg7h1oOrIN9Vcs8bkZj474uuSqBajGEPVlmDvl3ktfEDwfaOG 4Xb6hFhlRFeMWS32sVhSWjntxvZFF7qMv7K3U4pS8+2O2P3oWPh4Uv5+yT+m7LUQcBwP 4nEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si6095684edu.286.2021.01.24.06.59.17; Sun, 24 Jan 2021 06:59:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726065AbhAXO5H (ORCPT + 99 others); Sun, 24 Jan 2021 09:57:07 -0500 Received: from relay06.th.seeweb.it ([5.144.164.167]:56493 "EHLO relay06.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbhAXO5G (ORCPT ); Sun, 24 Jan 2021 09:57:06 -0500 Received: from [192.168.1.101] (abaf224.neoplus.adsl.tpnet.pl [83.6.169.224]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id BD1153EBDD; Sun, 24 Jan 2021 15:56:07 +0100 (CET) Subject: Re: [PATCH 1/4] ARM: dts: qcom: msm8974: add gpu support To: Iskren Chernev , Bjorn Andersson Cc: Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Samuel Pascua , Alexey Minnekhanov , Brian Masney References: <20210124135610.1779295-1-iskren.chernev@gmail.com> From: Konrad Dybcio Message-ID: Date: Sun, 24 Jan 2021 15:56:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210124135610.1779295-1-iskren.chernev@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > + gpu_opp_table: opp_table { > + status = "disabled"; Is there a good reason to disable this? > + opp-800000000 { > + opp-hz = /bits/ 64 <800000000>; > + }; No. A330 can't go lightspeed (unless there's some secret ultra-binned msm8974pro-v4-ad-5g). [1] > + > + opp-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + }; > + > + opp-275000000 { > + opp-hz = /bits/ 64 <275000000>; > + }; > + }; IMHO we should create separate DTs for all revisions of 8974 (sigh) and keep the opp tables in there, only leaving a lowest-common-denominator one here (which according to downstream and the msm/drm driver would be 27000000 /27MHz/) to make it at least probe for everybody.. On a note, max GPU frequencies (based on [1] and grepping for gpu-pwrlevels or qcom,gpu-freq downstream) are: * 578 MHz for PRO (so -AC) * 550 MHz is mentioned in [1] but not downstream.. * 450 MHz for everything else (v2.2 has more DVFS steps) > + // iommus = <&gpu_iommu 0>; I *think* you're going to need more gpu contexts (user/priv/spare), but don't quote me on that. Konrad [1] https://www.anandtech.com/show/7846/the-difference-between-snapdragon-800-and-801-clearing-up-confusion