From patchwork Wed Jan 24 04:25:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770449dyi; Tue, 23 Jan 2024 20:27:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6Ta1F7t9iPIm03PrFhP57auP6ikqvMZvO0vQsIoiLTditi4IyXjd9+gu6GK9MAHGaqjm9 X-Received: by 2002:aca:f11:0:b0:3bd:74ee:db14 with SMTP id 17-20020aca0f11000000b003bd74eedb14mr834878oip.86.1706070427439; Tue, 23 Jan 2024 20:27:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070427; cv=pass; d=google.com; s=arc-20160816; b=SpgqVHX6K9XEEfgdCHyycYcILn3QrGXkNwHWbBGzZ9wgzp/mzdjeW+Z3whpqmVQ9+m 9tSxtt4CUWRg4vtdxqaQwgMpYkddmiMDXF34wm5iQdXSpiM3fdjO1RTGVfVn3P/rdz5Z DCHS4cVHSCAI8uvYKRlGjKW/XMMKbceWQ9cwiUTZXf7FAsWLyivv5VJhXVCInwUGOTHq WAtb6RhVqL+bw+Vz7aitbJOdWvaWJAUCjIRUT78hu/Ti5HF/3YDTaR9x4PRs0jrXYpjN /c1A84EL2EB37ydUSv2fbBo9Ht0HhbBlSScY4EI6WYfOdMLZ8MZGOjzIEl7yX8x2MspD 7cDA== 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=TOnkT3GPqAZyv4K107NWfhQ6gHvUulqo+58RTD/8Iho=; fh=eiRFmcZ78uFp6XgR0ZTNmbTuotKvWKGdIs+XR9FfNYQ=; b=lmumeYSvSdKG4lJ7/jeyzjXQtOrT2KNBIZWDY/e1D7nh0kTGgIfweTD2q18ya9/1Xa KMcf+nhleMieYTIwxSjLLl9VSn248c/XMAYw+Fb0RDaCNH9D9TkIVvOooSLs6JmX9mJx YLuo229NqsnPeqNqiMXWotTO3QmITTsBNbW3oT7OecTPD/8Rtsfv6i3802Uaa+m7M8rc fNGqeJtnPPW+K84Tc2ab5hj3eYJeYVL97PRlmYUH6PyAQW2u8ZlzIjYHOJBL0z6OXeum x5egdVtPpYV9KCxtXqkaY7QRm9sToIkKaaEGmrhg6gsljyaD2ZW+hFpq89qiXPWgyLeT Qbrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JRIc9g+J; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x26-20020a0cb21a000000b0067a90d3023esi9974626qvd.279.2024.01.23.20.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:27:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JRIc9g+J; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B8381C216EC for ; Wed, 24 Jan 2024 04:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51FB91755B; Wed, 24 Jan 2024 04:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JRIc9g+J" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 B430BBE61; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; cv=none; b=byG8xyvPB6UtX5oafPBYhwcZzIWy6yXtfnJ5xfvB1Wo4DIMhKOCTzQTVyeultLt8DUAX8yubRDH+mdcXu0DPwhZ56RJLNjc55kVPUxsFoQPFh4q40b385IptMH4yQxpoiOEcENUtRJaqpSHpJGSLEoL533gr3qDBgwAHd6tpR08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; c=relaxed/simple; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=XOYNCYk4NXpUKHOjr82ZBFn3owrKXVN76TbHwkm/ZfeewN94QZDjHPT9cmg8058ylPP44dczm3NqE9FIUqBSlP3ZLmHKWOO8KPzcML593VDA00aA42I5PcbNOJVrNDswnIds+J60HcIUSi4dA1mNBn50LbBcXEQxGxSJAybPNTQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=JRIc9g+J; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42CNT010773; Wed, 24 Jan 2024 04:25:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=TOnkT3GPqAZyv4K107NWfhQ6gHvUulqo+58RTD/8Iho =; b=JRIc9g+Jdyye9twU0oP3djCRzqcoeXeRV2CBxOVlm3sLIHYmPD+c2TpMIdN pDB0Iki3I0flJGuvdiepmW4wpLLAE6g+XtjQko1W+XCFEEYQOd9gvJaKV6b7VGtz PIMvRBlXBBVDl0Z37jZdSvif0pRnCds9GHMz750ayqb8cg2Ce/dAcg/gQHnZ1z0o JXmE2PpY6JRzXWMysKH5g2D/1TXrQJPEa+OECuuDs4u4wiHMDOZS2w7RFVC5GMi9 Y/yNFwuaanIS9bLAkwSQ4cOGLOcUYkoQm90wZthPYNdFQxaA9OYtLeGUm+0CsDyz nVyLthBKM+0RElRH8O/W1NAl8Mw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh0rqqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:19 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PI4F025240 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:18 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:21 -0800 Subject: [PATCH v3 7/8] arm64: dts: qcom: sa8295p-adp: Enable GPU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-7-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070316; l=1267; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; b=8L8LGvvXrTZprWKujHEYg6mHQuHThh2WooIrUUQOkTF7759b/0mQ0BGq6BmzIBNkG71z1DgHy XE5HLHTPVlUCEhjIHV1syG3LqQ/VOa59rI8aGTt5A7+lMa0V2aTaEYe X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: jUfiQa7axnCpgRJllbjeiDVc7fGpbxmo X-Proofpoint-ORIG-GUID: jUfiQa7axnCpgRJllbjeiDVc7fGpbxmo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=870 adultscore=0 mlxscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944504208860813 X-GMAIL-MSGID: 1788944504208860813 With the necessary support in place for supplying VDD_GFX from the MAX20411 regulator, enable the GPU clock controller, GMU, Adreno SMMU and the GPU on the SA8295P ADP. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index bd0962f39fc5..78e933c42c31 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -108,6 +108,13 @@ edp3_connector_in: endpoint { }; }; }; + + reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg = <0 0x8bf00000 0 0x2000>; + no-map; + }; + }; }; &apps_rsc { @@ -286,6 +293,28 @@ vdd_gfx: regulator@39 { }; }; +&gpucc { + vdd-gfx-supply = <&vdd_gfx>; + status = "okay"; +}; + +&gmu { + status = "okay"; +}; + +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sa8295p/a690_zap.mbn"; + }; +}; + +&gpu_smmu { + status = "okay"; +}; + &mdss0 { status = "okay"; };