Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1239851rwd; Thu, 1 Jun 2023 12:27:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WJdiw9J+BT9snnjZksf8sG2C2kRghgrpACas3oqgNW8Exh2owWYvUfQdK6acIiiHUxDwd X-Received: by 2002:a05:6a20:914e:b0:111:3998:7dd4 with SMTP id x14-20020a056a20914e00b0011139987dd4mr6719677pzc.44.1685647675153; Thu, 01 Jun 2023 12:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685647675; cv=none; d=google.com; s=arc-20160816; b=tlcKaRE7MCyT6sT9NuY2Jniy5Zm4RTHhqguuKQ0Rfs+MGLFpMOHWoXOlK/kLqsUrj5 1HpUkkPqZ9EaAW1HBpLPQcwXkWfgUlcreSv+Df5uMipVLInCevh7yvINFs0N+HDUmE+b srlJyEu3zOA1MeaNbpOdsw9rSyZLPpj17mS1ouyCVoiHGWS9QT1P58kLINzqQOdcGvYc 7ZUxRNuvOv+IQyvUUJ7ILp+Rm/IbwQ+RwjdkCqJmpf+U39Us1xodZrXozdc9rily/X+P yGPzsNvzp29Ey6Q7jg1Ai+kG1TukcFVleKBWXsjHBOYKZP65C0arMomQLoMbGh9sfCWq kHoA== 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=/o27oaTZwom7lgPceWI/6gu5Br5ovRQKkXhKmeNeyuE=; b=M6mdoVisRQXZzZSMLR4lDbE/w4lHJjZBU9YvGYucsS6g0zJvsO2DnpfygbH0+ineFQ 501pLlUwiAEPo5hwx2dfqTDko7ah1ZnNgBlgv1Iq/a/6iUxYiQS0QZtd4GOYienjafNn BdK5/3Ok4Uz973f1AJe3PPjWNgif0yYK8Z3tzJvx9AisZjWdB0QLe2EYr1PfsJS4CWyZ lnwvtgvsNXLPhX/rmZ+hZ+GUc22YzD/SjFF3HZrQIuEUY10udH/IZXzdhDzqyo/Njzx3 7eFg2H6PMW3CFL9SiroXc7DQEk4h0vTwCC3z7heD40jjbX4uej49dTrf4pdQoDmqIFoi sI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A8H1zCd8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a633f0e000000b0054294720d57si63415pga.617.2023.06.01.12.27.42; Thu, 01 Jun 2023 12:27:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=A8H1zCd8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbjFASvc (ORCPT + 99 others); Thu, 1 Jun 2023 14:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230492AbjFASva (ORCPT ); Thu, 1 Jun 2023 14:51:30 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181D9197; Thu, 1 Jun 2023 11:51:29 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 351Fh8rQ010572; Thu, 1 Jun 2023 18:51:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=/o27oaTZwom7lgPceWI/6gu5Br5ovRQKkXhKmeNeyuE=; b=A8H1zCd8XwBt8n3x2ln3ZgOeqFxA5IKhD8SL4LYfAmf55rTTffH8kKvg79UPc1XrShcl lZvrTiSXbonGw0l3huQbmv7Sgi0OQq57MCZPRhp45j0DVJNpUFseS5WzJuLqUmmI1rjX f1gKZnNjEAx5E3aSE4sS6bP+juOdti97heV9kK91boD9KUn24Vyr52/U2dWNWlhHHZSS yEBShlbKlAZuV0UTPFzZ5YpjrSbgGNzpWdIZvIw2Ke7Zu01MvGXa4Tw7UaHGoOLmyORD t1VRK+J30g/DlODr2ocvKPqdrYA+1ynqmiuR64dF5DgL9WFCTwJmlkzkweIvHAooZ5M3 NQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qxqyd9kax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 18:51:24 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 351IpNxB030625 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 18:51:23 GMT Received: from akhilpo-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 1 Jun 2023 11:51:19 -0700 Date: Fri, 2 Jun 2023 00:21:17 +0530 From: Akhil P Oommen To: Bjorn Andersson CC: Manivannan Sadhasivam , Konrad Dybcio , Bjorn Andersson , Rob Clark , Dmitry Baryshkov , "Sean Paul" , , , , , , Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: sc8280xp: Add GPU related nodes Message-ID: References: <20230523011522.65351-1-quic_bjorande@quicinc.com> <20230523011522.65351-3-quic_bjorande@quicinc.com> <097944b0-fa7a-ad4d-1c3d-e74ab2b977de@linaro.org> <20230528170717.GG2814@thinkpad> <20230529084614.GA5633@thinkpad> <20230530153514.GB3643653@hu-bjorande-lv.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230530153514.GB3643653@hu-bjorande-lv.qualcomm.com> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: l4PvP01TFZIut_KzpnBA0p8yEAcT8jnW X-Proofpoint-GUID: l4PvP01TFZIut_KzpnBA0p8yEAcT8jnW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-01_08,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=816 phishscore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306010163 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2023 at 08:35:14AM -0700, Bjorn Andersson wrote: > > On Mon, May 29, 2023 at 02:16:14PM +0530, Manivannan Sadhasivam wrote: > > On Mon, May 29, 2023 at 09:38:59AM +0200, Konrad Dybcio wrote: > > > On 28.05.2023 19:07, Manivannan Sadhasivam wrote: > > > > On Tue, May 23, 2023 at 09:59:53AM +0200, Konrad Dybcio wrote: > > > >> On 23.05.2023 03:15, Bjorn Andersson wrote: > > > >>> From: Bjorn Andersson > [..] > > > >>> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > [..] > > > >>> + gmu: gmu@3d6a000 { > [..] > > > >>> + status = "disabled"; > > > >> I've recently discovered that - and I am not 100% sure - all GMUs are > > > >> cache-coherent. Could you please ask somebody at qc about this? > > > >> > > > > > > > > AFAIU, GMU's job is controlling the voltage and clock to the GPU. > > > Not just that, it's only the limited functionality we've implemented > > > upstream so far. > > > > > > > Okay, good to know! > > > > > It doesn't do > > > > any data transactions on its own. > > > Of course it does. AP communication is done through MMIO writes and > > > the GMU talks to RPMh via the GPU RSC directly. Apart from that, some > > > of the GPU registers (that nota bene don't have anything to do with > > > the GMU M3 core itself) lay within the GMU address space. > > > > > But those aren't shared memory accesses. > > > > > That doesn't justify the fact that cache coherency is needed, especially > > MMIO writes, unless GMU could snoop the MMIO writes to AP caches. > > > > In reviewing the downstream state again I noticed that the GPU smmu is > marked dma-coherent, so I will adjust that in v3. Bjorn, Would you mind sharing a perf delta (preferrably manhattan offscreen) you see with and without this dma-coherent property? -Akhil. > > Regards, > Bjorn