From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2894E1B0F11 for ; Mon, 23 Dec 2024 14:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734965661; cv=none; b=WK6HkDfDkqcGIhKOFSkY2DWbUrBSTAbvq86wPKpx7ISEX3AUFObiXdBnjNZBCzMAlEEWd+lfLPI9IO5yJch8F87/ApzUk2HO8l7qcmLDyE56WUklf4AeWgt9miemk/2VzrSJhDeSM/q7yD6q29W1xhIxwUC+JvnvzFGGRqLX0+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734965661; c=relaxed/simple; bh=qBb+RepxlaQBQfUiJ8jtOEW61pLphvFaO7Ijlb0LmZA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=f1Purf8PUNRs+zGpp/q4QejAjO4eMPoUgtDdYpkx9x6kYWbWB30kHnerUJ0hiIpBR7bBebzsrVVjb6RfBfVtE52j0xbuUUXkmt8GcFaH3mJFOTvleiwwoFd2p7WBEDom0Ec2snJ/Hz/8EWeusPm2xvusaczI+CUkpuERqRmVFGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=F8e7QK1d; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="F8e7QK1d" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BNCudZp002194 for ; Mon, 23 Dec 2024 14:54:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= CMetpNC0r0sdi+rbTHxHMkI5qTPoBE1vQLNl2JxJPRo=; b=F8e7QK1dnVMk5SD9 BBlhQLgeK+yp4+E3lygn5nCYDM6n16D9d7KnejaziWiIUl66uHrvjwhJ/nmXhkpr EkuyGTsUI3W9zGrtxEHPm3IqKJiOhwl1Xl/G5BLb8J1iaLCijeM+Aa7Us/WwTUKR wr0OuLkUCibzNJL6hQjKwa5rQBMDp8laTXKTQK3S/dLl8i94Pppije/a1P2H03tw cTdhOs+f1CY/ZXB1TOjkw42Dr84jI67FHkp+lHIU0AjrYyiwOnN5FlvsccYEkut1 +tAor35CJuH0JCIc79tv6X4ydFxPDG3eO0+h9Rf7Yzfrgq87P7Q24fLC8tfL0vbv 2iFOsA== Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43q8ah8a4u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 23 Dec 2024 14:54:18 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6d8824c96cdso15485646d6.2 for ; Mon, 23 Dec 2024 06:54:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734965657; x=1735570457; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CMetpNC0r0sdi+rbTHxHMkI5qTPoBE1vQLNl2JxJPRo=; b=B5jMHSdS8QLqOWdBGZXWKsWz+Nszuh/LrBz4FFpgRU30o1F2teP7C65r3WzadjrOow 3XBa1tDvHoUAjz7pnhFv8iiwjBe+SZKZydHtg77qytq71hDb9LLBLEDf524YWf1GxxCY PrbWfl2H2jrpi6TGL06HN7vKB74Vgq4LpfqQTdC86VgiQBqEObl5+o6tdgzAnRmeTqrk HCaqwGpw6lRpa0XQ7D+NWPYequRL7suO8ho+Z19sunjr9Rax4Fa1Hx642ZSjfP/BcdOQ y6/7m8kkgj/1HB1dps6ugkayJ0A43nSH911lC6RZc/Un+8XUzC1yf3D5QABs8+4H4slz M5Eg== X-Forwarded-Encrypted: i=1; AJvYcCVL/Qad6TIHyeC8gCxZO8XHIgxbhaMmBzvX8dQ8fkOAQ/70WJBqQR1ABQeXp5tuPMnDtA+YXmro0F6k6yM=@vger.kernel.org X-Gm-Message-State: AOJu0YzLCTG/l/Pl5xf41v+hoybfRB+HDarU09PBYz8djNGj0goUONZ6 5A3e+j/VwCIVa529HIgCwHF8aG37vsnQcWhqq0jpzYEBHBg2GTfTF4vXOks+wNJqBFjtL925tF9 T5OmLdee6htecM26R2LR5v9lVE9EJMujScSBD+jaDROiyW8TwCc0q+CBScKh5XXE= X-Gm-Gg: ASbGncsXQjcEURz5adn20YtAffJV2WQ44T4oJsX5FPKWe9I0ITFp1vIvFOxVNQ+HK8u dCyo62+GEdnMsh6YwV/nnXetTCved8hjfBMOexGwgg1Y0j21OVlRInnzTtoED4ipcqUBi3KvD3E rlKEoXFbpjqtoV7A4+OaKQ76E6UZvK9UL0SmAAFD3bkgM6qtRKlvWzQFb+BvrjyBm/E4gIscFah VyaM59Iznykx8mwEww/EwR9UL6+2HMI74yuRlnEgL6oUx/AFQDqKUxf7/cCm5lrBI3CmDaeG5XI ztA/ok40pAzXh7SKYkYImfLsRhQYfgCdc/w= X-Received: by 2002:a05:6214:20a5:b0:6d4:1f85:3975 with SMTP id 6a1803df08f44-6dd2339fa19mr73953706d6.8.1734965657262; Mon, 23 Dec 2024 06:54:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUHjlXPiR8tK/MMFoP6x2egq/NcpOXsphsui195pchWCXB8kVBb97e8UecvHXUqfznd9wX+A== X-Received: by 2002:a05:6214:20a5:b0:6d4:1f85:3975 with SMTP id 6a1803df08f44-6dd2339fa19mr73953456d6.8.1734965656891; Mon, 23 Dec 2024 06:54:16 -0800 (PST) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aae9a325afbsm311084866b.181.2024.12.23.06.54.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Dec 2024 06:54:16 -0800 (PST) Message-ID: <5b1fa9a3-de58-4ad2-aaf4-f239f7c60ec8@oss.qualcomm.com> Date: Mon, 23 Dec 2024 15:54:14 +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 v6 2/7] drm/msm: adreno: add plumbing to generate bandwidth vote table for GMU To: Neil Armstrong , Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , David Airlie , Simona Vetter , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Akhil P Oommen Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20241217-topic-sm8x50-gpu-bw-vote-v6-0-1adaf97e7310@linaro.org> <20241217-topic-sm8x50-gpu-bw-vote-v6-2-1adaf97e7310@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20241217-topic-sm8x50-gpu-bw-vote-v6-2-1adaf97e7310@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: NgkDzcd3yDtdOCj2WbSt_qsRLoEghNaV X-Proofpoint-ORIG-GUID: NgkDzcd3yDtdOCj2WbSt_qsRLoEghNaV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 clxscore=1015 adultscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412230134 On 17.12.2024 3:51 PM, Neil Armstrong wrote: > The Adreno GPU Management Unit (GMU) can also scale DDR Bandwidth along > the Frequency and Power Domain level, but by default we leave the > OPP core scale the interconnect ddr path. > > While scaling via the interconnect path was sufficient, newer GPUs > like the A750 requires specific vote paremeters and bandwidth to > achieve full functionality. > > In order to calculate vote values used by the GPU Management > Unit (GMU), we need to parse all the possible OPP Bandwidths and > create a vote value to be sent to the appropriate Bus Control > Modules (BCMs) declared in the GPU info struct. > > This vote value is called IB, while on the other side the GMU also > takes another vote called AB which is a 16bit quantized value > of the floor bandwidth against the maximum supported bandwidth. > The AB vote will be calculated later when setting the frequency. > > The vote array will then be used to dynamically generate the GMU > bw_table sent during the GMU power-up. > > Reviewed-by: Akhil P Oommen > Signed-off-by: Neil Armstrong > --- Reviewed-by: Konrad Dybcio Konrad