Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2949121ybl; Sun, 11 Aug 2019 12:01:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqycYbA/5PS2G5bIH6d7oriDdXXCL1wvxbmxvONleULK1rLOVPPcuHOeFKtlz3sTdMXoDtC6 X-Received: by 2002:a17:902:f213:: with SMTP id gn19mr30331274plb.35.1565550079051; Sun, 11 Aug 2019 12:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565550079; cv=none; d=google.com; s=arc-20160816; b=pVg0LWW1+J5mOTKCUH1X6IpsZFv16xEXCQJ9m5KdpZ6FaoYosnS1gSWYwX0UpEGxwE iNZjovT1eSkLS9o3W6xa0w/aVlLyBRJaxQ8ykLd04qNJ/OMRZXZV11T1Q4bjJL3zpdo/ MlEU8u+UyahL2IeKvNuw+EAZ9nSBjp2me5SStQ+FGML5UvkBgfTAsv0IqWww3frkjBpp hJxZu+CTlEDSyamJ4XdLanosDkJyvqy4pgaXFGXe12i4eUvF3G44NGZC7AsEG1o5KwO3 4cLe5j1Tb84wJYQ7jAli7kVETe+UTvmHW+jFv7iq8Xjf0wU121XCdLvlexi6K2FQaDAG 7mLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g4HRffWR5sTfOdPb8n2H2gBlNEK3O7QkgVCtkSjBUGc=; b=Mp6iHYwDCFlcPw7hJFBx7rEYb2v9l8xvhhLrtok4V1GDh1EMA+rVWBOTz2hxupiKql FLvpp2TxiBK9cTYA5PUVMX4hCjCbxV0NOs5fpiGK8rtnRosdAHr22cKSw7o5ZK9pd4+E pF67DPjVIKTc9ieXhsfBNeLgVeHoiwefw88kO+VPxXxzHnxQR14XukJhRXtVyNrcs5+z hVqOUctAHTkC+2ira+UpPebOYgbDzghhggkUTi+aONhpqmbx05Q/0qP+0MRrRuJ6pWD/ HWVkXqhsLye05Brqk+Axj+2PE1w+JqP0qTswjdlNUsfvRURCw5uCh3q1S5GoiTOe/u1P XVeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NKH6a5rK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si63146538pgb.482.2019.08.11.12.01.01; Sun, 11 Aug 2019 12:01:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NKH6a5rK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726236AbfHKTAX (ORCPT + 99 others); Sun, 11 Aug 2019 15:00:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45518 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfHKTAX (ORCPT ); Sun, 11 Aug 2019 15:00:23 -0400 Received: by mail-pl1-f193.google.com with SMTP id y8so4924602plr.12 for ; Sun, 11 Aug 2019 12:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=g4HRffWR5sTfOdPb8n2H2gBlNEK3O7QkgVCtkSjBUGc=; b=NKH6a5rKubvrnRjIiAagMdwN7DNFvpDIxEUxLYf+kcaaRrXUD4LXVeEaPzEwnv51Qn 7QZtgmEqhK5E4pjO/rrk1i6VlM2ljoxMczTY2s0GmrCxGCEIRTRvwfm2eZyvt5gl2ail i4BetvPir8rZaPCg6FdYaMlO7QhhsOWiFl05YooTM8FK+qi+aGZytl2RfGMDZccqWYcH c7A1ri271xLpFxZkPBYu7DbHUIaK8beRCewn28rCUTsX9GjAB64fyF3nlcG1issWWlne M1MeftR3HX7ZBV69FKtlbTP5HTcIxgTIQFwFvS9sWY9tl+c2q40uABiEoYtg7El1O0aC FcCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=g4HRffWR5sTfOdPb8n2H2gBlNEK3O7QkgVCtkSjBUGc=; b=rUkVqpOC0+YjBG3d6+oOVOG+KaitivYRcAxzBj/zNEF8GCpMxm+cUbjF3+q4TIOo60 Gb6q86Sa2vO7CiI1ugzxO4K3GIy84fJZcITwPYEKH/Q8L5HHRtC+jex8Dq9cJQlRueud mncJIgdcP6ovqz1klhxYeAoP+mPVtOdf3GM9xXDKQBEM3Z7N4NglQu0aurY74okSmuo0 WyoKs2pwLd5Kgf0LBscG3lThBanS9XZGvIQZJwb8PJsE5T5jNtKKagEkrcXioD/ou3dC oACk8BXip7zCAbnJY2lOrKTPyWyFqZYCYRWqTb+zvDXavs5Zw96vksj+3PB1MQGG/3gl rQ1A== X-Gm-Message-State: APjAAAXf+qXCLfleQGm5Cs9mmQJ+0QsyLbjBsj4cu0HoqOm9uV0FCrDx EQBSYOjOcQ7sobadAm5+zJoquw== X-Received: by 2002:a17:902:e4:: with SMTP id a91mr29498761pla.150.1565550022586; Sun, 11 Aug 2019 12:00:22 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 5sm41932620pgh.93.2019.08.11.12.00.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 12:00:21 -0700 (PDT) Date: Sun, 11 Aug 2019 12:01:59 -0700 From: Bjorn Andersson To: Vivek Gautam Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Will Deacon , open list , robh+dt , David Brown , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Andy Gross , Robin Murphy Subject: Re: [PATCH v3 4/4] arm64: dts/sdm845: Enable FW implemented safe sequence handler on MTP Message-ID: <20190811190159.GQ26807@tuxbook-pro> References: <20190612071554.13573-1-vivek.gautam@codeaurora.org> <20190612071554.13573-5-vivek.gautam@codeaurora.org> <20190805222627.GA2634@builder> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 11 Aug 09:08 PDT 2019, Vivek Gautam wrote: > On Tue, Aug 6, 2019 at 3:56 AM Bjorn Andersson > wrote: > > > > On Wed 12 Jun 00:15 PDT 2019, Vivek Gautam wrote: > > > > > Indicate on MTP SDM845 that firmware implements handler to > > > TLB invalidate erratum SCM call where SAFE sequence is toggled > > > to achieve optimum performance on real-time clients, such as > > > display and camera. > > > > > > Signed-off-by: Vivek Gautam > > > --- > > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > index 78ec373a2b18..6a73d9744a71 100644 > > > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > > > @@ -2368,6 +2368,7 @@ > > > compatible = "qcom,sdm845-smmu-500", "arm,mmu-500"; > > > reg = <0 0x15000000 0 0x80000>; > > > #iommu-cells = <2>; > > > + qcom,smmu-500-fw-impl-safe-errata; > > > > Looked back at this series and started to wonder if there there is a > > case where this should not be set? I mean we're after all adding this to > > the top 845 dtsi... > > My bad. > This is not valid in case of cheza. Cheza firmware doesn't implement > the safe errata handling hook. > On cheza we just have the liberty of accessing the secure registers > through scm calls - this is what > we were doing in earlier patch series handling this errata. > So, a property like this should go to mtp board's dts file. > It would have been nice if the common case was just selected by default, but afaict no safe workaround is needed on Cheza? You mention here that it should (could?) use the scm write based approach instead, would an introduction of that come with another flag? PS. In it's current form it's correct that this should be moved to the device dts files - all but one of them... Regards, Bjorn