Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2672751pxb; Sun, 24 Jan 2021 16:17:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjhg+0eUNbGsFGBmwZmUWlX42qsOO7wlKersQEMz4yGMuCuu21rdT/cVv4FWXhq2K6t/n1 X-Received: by 2002:a17:906:1796:: with SMTP id t22mr2020204eje.372.1611533858487; Sun, 24 Jan 2021 16:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611533858; cv=none; d=google.com; s=arc-20160816; b=eh71Lb1svod5lxDLrtPsbljOYES1uIW7i1sVYOZmMxQSLMjPIj4E+mx69jfniRZOsg gon+4QArGR1F7cbytnjqN+bLnkgB/UKUwXuvZxfCil6dcoKB8uigbFr+gHVIoZxM4hyk G+6HMT5funmuZlFQ8vtgQzdiMU97AxfaCIEsM24YHmYoE7+e4ZsysnxiMFZthwrwZ9RF X1ReXGqK3zg9lulfibmC8TPXBHr/8EmpGIZeV1hUySOsJGblbkjk1KVuX0lOsjfvDJ9y J3gfuF1o1mr8sO9+WoPFpEYtFrVp7ICETqKBBcUwKcxGDBu1+YIGJ/gkbCAO95fCaNjs tB4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v13CrLqCHZLoeNF+FejvCG7boXfPy0E+ZaPv20O0qSE=; b=oas042gx9gMEhPA+T+RlPlPOdv48nJaLU2QJvsp4z4Jfn8RFKj28mzP5LmlDRdExXM 3LSCFmhmaQRCw2nuUjMaQDOwfOkdC5N8qoo+VeqyJ2TmKMOWv+TRbfN06XLCenzBUFEH TSPn1bMIHsM0psO5krJhGRyWAaWtVhHkWSi5IpiT9F+j4wi7YhPQqpWfukHteW2GTS15 +kvy4PORbIuS9goco2jE4Ag4anueu13cpI6CXScfb9AOxHxMwWCVqVURVTawiKQCyc5p xhVu9u/+utEYc3wn4tQVt82Jg1DGM+NsOB9IqT6gOsrE/4hPQBvvET4FKSKL32R9bPvT 64bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=ZTys71IW; 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 z3si6800052edp.327.2021.01.24.16.17.15; Sun, 24 Jan 2021 16:17:38 -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; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=ZTys71IW; 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 S1726619AbhAYANf (ORCPT + 99 others); Sun, 24 Jan 2021 19:13:35 -0500 Received: from onstation.org ([52.200.56.107]:35086 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbhAYALe (ORCPT ); Sun, 24 Jan 2021 19:11:34 -0500 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id D68943EA88; Mon, 25 Jan 2021 00:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1611533357; bh=NX04KDq22imvna2j2KPjU62cAJRCEXT8lTRLg6sU+9M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZTys71IW91sT6zb8BsXKM4Z3CwcgI6qowbfvayR2iwYFDP+Dcwdtph0pjhHUik6ik Qjqhko3nVgog/EN8ikkXbaf+DTy14IgQZoe6pgCURs1+IHao6gUlhFnCjwIyF7WE4d ODQtZGIouWhWgkLKWc4j/1grPYVXDigIT9++KJVU= Date: Sun, 24 Jan 2021 19:09:16 -0500 From: Brian Masney To: Konrad Dybcio , Iskren Chernev Cc: Bjorn Andersson , 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 Subject: Re: [PATCH 1/4] ARM: dts: qcom: msm8974: add gpu support Message-ID: <20210125000916.GA22513@onstation.org> References: <20210124135610.1779295-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 24, 2021 at 03:56:06PM +0100, Konrad Dybcio wrote: > 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] Hi Iskren, I believe that the Nexus 5 GPU frequencies are documented in the downstream kernel at: https://github.com/AICP/kernel_lge_hammerhead/blob/n7.1/arch/arm/boot/dts/msm8974-gpu.dtsi#L67 I am fairly certain that the qcom,bus-freq property is an index into the qcom,msm-bus,vectors-KBps property above. This will map to the interconnect and operating points in the upstream kernel. Note that the actual implementation in a3xx_gpu.c and a4xx_gpu.c currently has this snippet to set the bus speed: /* * Set the ICC path to maximum speed for now by multiplying the fastest * frequency by the bus width (8). We'll want to scale this later on to * improve battery life. */ icc_set_bw(icc_path, 0, Bps_to_icc(gpu->fast_rate) * 8); icc_set_bw(ocmem_icc_path, 0, Bps_to_icc(gpu->fast_rate) * 8); This should be fine for the time being. You'll want to document it correctly in device tree though. If the v2 changes too much, then feel free to drop my name from the patch. I thought that I had made these changes already but apparently not. :/ Brian