Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4699598rwd; Tue, 30 May 2023 08:42:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RP0d4JiAOFo4tUCXurq46U1KbeERmMIvQ1p02CpvSfCCHacWD3xNEQPF0qSKxXSpVjN88 X-Received: by 2002:a05:6a20:841a:b0:106:11fa:192c with SMTP id c26-20020a056a20841a00b0010611fa192cmr3086742pzd.61.1685461359046; Tue, 30 May 2023 08:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685461359; cv=none; d=google.com; s=arc-20160816; b=bui7pGj63TOZt2isPcesVN36/U/tIoOLqz+IF8Shz7ssivXYuHJpOnDuz4eg0BLGBf /4pukFz5iM9XdCvFl0qAysUf2d5MS5Qb/kByAOpsB0S+qWVuvim4svT+fzYtnGA2YYRW McaDsTZC2HH6b7p1ScLG6Rhj4EbgDAS4SndC+2HWMUs2mZy9AKUzLOScEIe093OUQrPw bjrsQZgFRdftJu6wj2iU4B15XCzcLjLMRhMFeysUEv7HCjxHPXKK+oxbih8gCy9vOije k5alml+rAbyCZ8/88JqhiiQTZCReZrWKemW7wdwP+LsQsvtrq8xNqns0UzOxq+rTaUIw pwVg== 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=skSq/3wjBOOrOFYaFyqU5datAvG+hJCy5UlbCpb6VpU=; b=UPzxkPOEywjUFU9Efg3oKRUWX/1aS+c6v/qEYeugqc/Jh0cBlk0pHUigGx/pXuhRJ+ Pmy/Sv2YNdQMsLCbG/FDK3IjlcHt0uB8GCmv+vxgd4RmW5RI3E5Aol+YIvC+w6nXGriH KYczyjZlKd2KI9eQiKzXzCGjbGUZNsn5rO3wPBghO3cJnLpqdcmadHgA3tmLoIhpCOWf v/615LIIHtihurIjlw+QC4O+LbHifzph6B4FUzPca7FwV3xJUxEUVGnIsDi0WiigXO6H qBThuz+ycLgCYPuaII84l2rdq42r9mFZv3UY0Sj1nCOKvsOuvL/YfJNEoOMPRYKXbgpl 5Dcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NH8a+1Al; 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 z10-20020aa7958a000000b0064fbc57845dsi1905109pfj.133.2023.05.30.08.42.26; Tue, 30 May 2023 08:42:39 -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=NH8a+1Al; 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 S230402AbjE3Pfo (ORCPT + 99 others); Tue, 30 May 2023 11:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbjE3Pfk (ORCPT ); Tue, 30 May 2023 11:35:40 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D1B121; Tue, 30 May 2023 08:35:25 -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 34UCJp1K024095; Tue, 30 May 2023 15:35:17 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=skSq/3wjBOOrOFYaFyqU5datAvG+hJCy5UlbCpb6VpU=; b=NH8a+1AlJziAmcV58Qt/0Gt45OzWRQgtcf2UZE3UemSkxfPrh2XzLf2EPJN2jNleZ2A7 c+NdupLmhSd5vVx6dq701ZbCSABoVYrUjuKlpXcgs9Vp/axXAlG4L60bu07ZRHNoV9Ku lTWOCfrkE/6IKITYCAQAtkGXqeVoy+KvzqB3zfmiccKXjtaXEvT7lbcd4RLzIf61tUKR cVzGgRvzfxiRjO+dJxC1IGDnwfxKoqEtFlKoXNg1hLENlGKz81LtXMxNKoLtyh76qtS0 kLr4Hbp7atuzko1gSeoial2xddN3p69pbmrZWZRgVBBI0xuGT4BSfQADhH5YReVvidy+ MA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qw83csgq6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 15:35:16 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34UFZFns025420 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 15:35:15 GMT Received: from hu-bjorande-lv.qualcomm.com (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.986.42; Tue, 30 May 2023 08:35:15 -0700 Date: Tue, 30 May 2023 08:35:14 -0700 From: Bjorn Andersson To: Manivannan Sadhasivam CC: Konrad Dybcio , Bjorn Andersson , Rob Clark , Dmitry Baryshkov , Sean Paul , Akhil P Oommen , , , , , , Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: sc8280xp: Add GPU related nodes Message-ID: <20230530153514.GB3643653@hu-bjorande-lv.qualcomm.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230529084614.GA5633@thinkpad> X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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-ORIG-GUID: Iaw4nqPVzVr6xQzEOckkqYwyln9jy74X X-Proofpoint-GUID: Iaw4nqPVzVr6xQzEOckkqYwyln9jy74X 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-05-30_11,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 bulkscore=0 mlxlogscore=917 priorityscore=1501 spamscore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300125 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,URIBL_BLOCKED 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 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. Regards, Bjorn