Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp193346ybm; Thu, 28 May 2020 20:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxULs0wcIwqYE+N3tiWbv3hMQ/dy2v2fqdnAOJSZ2UgLygEWQvbok9tJddqatGw8Z1CjKvj X-Received: by 2002:a17:906:b293:: with SMTP id q19mr6104844ejz.412.1590722328161; Thu, 28 May 2020 20:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590722328; cv=none; d=google.com; s=arc-20160816; b=cdNNcrhfG5RWLOQJ4oUCrGsvzeengHoTsRlcnO0zFBWvNbAnaTWAlK9/6CgyRXqChV zAn6Euas+HUiucPFtNopI1LXKBfAkdQy1yfXbRn4f7n0YtfZ5eLlWR1+Wd/yQ6VF1Hs5 17+ppAT7F4a5RlfiWhwy5lt7zYd/GBiXsEXvbj2uLNSZpAebsu3G0g1Cn6cPAIlsCv5P KEK+a9z7MB9UgulkZL5a9bYfztcPXmWCJi9tqf8LtV83iTTliqO87VsKyO5bSjoU6dM8 +4ie5Qhop7QlK/YxYy8+2CM0rpt9FKaJ4kRlF4DduUuGL5+VmYsSt4PhEwmY2AC1uvja lprA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xBYSOZ99yeQDDwcg84UQj/J2oS6UqYxmljieBL0TXDQ=; b=g2AxiEgFQdBvHtO+5UAf/YyjvVPClV9yXIrXddmfbpcTSbiOVEZc2WXhnCXLw/Nn5C oQMqcSt2UvISnT+5R8HrFzIjQ+xn21UZtYnfgzgpYCAWRwDrNOsESRSxeX5Dpff/H123 sT4E5RsgI3pFniZPFir4SsnJKZVYWDbiKCenv59OSI8eGIG3VPCuWyorIkX7h1MsDGVw dYicmlysbW31rjDPxF4OmnzYu8N5rBdl6DAXtxzv+svb+isIDeqRLI9iQ8yJ1TOUh2u/ tkeTT2U0jMejyVinw5nBBeoemmquNBO0sHjx5MOIE9f74i33d6tgxRH84wDbt7qpWafB /6WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R/p0GsIG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s5si2518049ejv.64.2020.05.28.20.18.24; Thu, 28 May 2020 20:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R/p0GsIG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2391787AbgE2DQ2 (ORCPT + 99 others); Thu, 28 May 2020 23:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389625AbgE2DQ1 (ORCPT ); Thu, 28 May 2020 23:16:27 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88B9CC08C5C6 for ; Thu, 28 May 2020 20:16:26 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id bh7so458761plb.11 for ; Thu, 28 May 2020 20:16:26 -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; bh=xBYSOZ99yeQDDwcg84UQj/J2oS6UqYxmljieBL0TXDQ=; b=R/p0GsIG7LAKQvppr80JcPfO0lsLrZ23GICGf/kQTwCTO7sa7RxUTV3pbtf4pk78UQ wL0WnxOJR0MSG3d3XwT2TTYOVjQTfzqS5nAA0FPnvjLrMPs7AAFLOQb/0JlNe385+Yuc aS1rgbzn21sbs1cO6/rbemQzp09pYQEAzUvdHf+V8a//9dbGlpvVUyr6muM84gEl52yE 0yGghTv1SWWlKCQJLpUHXbdlGmK2T9TmpE/lDWVivXYv1Ee7j7s03LA/5tRW7Bd3T4Ud BDQpjKMIyi+BxsRg4cQkY8/qnHQKoymyiPtPAHre+tJ2Tup6KQGlXyl19f/znppy8CY9 Xi4A== 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; bh=xBYSOZ99yeQDDwcg84UQj/J2oS6UqYxmljieBL0TXDQ=; b=GpaWKFx3Bt1+/WKx1lKVdo+kaHNWXSivsTuOXypup/2R+QOO+7sLlr3Cj2lGINB0ls rSKgSB/Ug8VYQ3WIDgNUvt6qYGaIbGrjQPUgreOv/Y5sYB0Ivqo+NWcI6p5GuKzwTKcC Gvr23/IQ9B3oVLVyEm4kmmUPWLpiZUfHz5WrjaS6GG2U8uN+kyDNwkdR8+n6W34SBTkM Sh/LAVOd9EWZRf66t/mMwx59S9s0EtSZnn2oCOuHXVDOf+IEpfjabViYFMnfNrvLbpZW q3TC3GyeNuUtfVAJkLa0PJO2oBOjSrQ5WJiJ7ejbt6EFbaKlPPtMfiZvFci2Pyx2TGuv V+cQ== X-Gm-Message-State: AOAM531wtyWS1ULga54CnbdNYF2zyPRYgB5sPjbYYu2TBmKK2FM+yL6R olP1p3wsrsjRVhUYtRmWgxdVNw== X-Received: by 2002:a17:902:b216:: with SMTP id t22mr7045362plr.36.1590722185946; Thu, 28 May 2020 20:16:25 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m2sm5745815pfe.41.2020.05.28.20.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2020 20:16:25 -0700 (PDT) Date: Thu, 28 May 2020 20:15:20 -0700 From: Bjorn Andersson To: Jonathan Marek Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node Message-ID: <20200529031520.GA1799770@builder.lan> References: <20200524023815.21789-1-jonathan@marek.ca> <20200524023815.21789-2-jonathan@marek.ca> <20200529025246.GV279327@builder.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 28 May 20:02 PDT 2020, Jonathan Marek wrote: > > > On 5/28/20 10:52 PM, Bjorn Andersson wrote: > > On Sat 23 May 19:38 PDT 2020, Jonathan Marek wrote: > > > > > Add the apps_smmu node for sm8150. Note that adding the iommus field for > > > UFS is required because initializing the iommu removes the bypass mapping > > > that created by the bootloader. > > > > > > > Unrelated to the patch itself; how do you disable the splash screen on > > 8150? "fastboot oem select-display-panel none" doesn't seem to work for > > me on the MTP - and hence this would prevent my device from booting. > > > > Thanks, > > Bjorn > > > > I don't have a MTP, but on HDK855, "fastboot oem select-display-panel none" > combined with setting the physical switch to HDMI mode (which switches off > the 1440x2560 panel) gets it to not setup the display at all (just the > fastboot command isn't enough). > Okay, I don't think we have anything equivalent on the MTP, but good to know. > With HDK865 though that doesn't work and I have a hack to work around it > (writing 0 to INTF_TIMING_ENGINE_EN early on in boot will stop video mode > scanout and it won't crash). > Then we need to sort this out in the arm-smmu driver before we can enable the apps_smmu node on 8250. I did receive some guidance from Will on the subject and have started looking into this. Thanks, Bjorn > > > Signed-off-by: Jonathan Marek > > > --- > > > arch/arm64/boot/dts/qcom/sm8150.dtsi | 91 ++++++++++++++++++++++++++++ > > > 1 file changed, 91 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > index a36512d1f6a1..acb839427b12 100644 > > > --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > @@ -442,6 +442,8 @@ ufs_mem_hc: ufshc@1d84000 { > > > resets = <&gcc GCC_UFS_PHY_BCR>; > > > reset-names = "rst"; > > > + iommus = <&apps_smmu 0x300 0>; > > > + > > > clock-names = > > > "core_clk", > > > "bus_aggr_clk", > > > @@ -706,6 +708,7 @@ usb_1_dwc3: dwc3@a600000 { > > > compatible = "snps,dwc3"; > > > reg = <0 0x0a600000 0 0xcd00>; > > > interrupts = ; > > > + iommus = <&apps_smmu 0x140 0>; > > > snps,dis_u2_susphy_quirk; > > > snps,dis_enblslpm_quirk; > > > phys = <&usb_1_hsphy>, <&usb_1_ssphy>; > > > @@ -742,6 +745,94 @@ spmi_bus: spmi@c440000 { > > > cell-index = <0>; > > > }; > > > + apps_smmu: iommu@15000000 { > > > + compatible = "qcom,sdm845-smmu-500", "arm,mmu-500"; > > > + reg = <0 0x15000000 0 0x100000>; > > > + #iommu-cells = <2>; > > > + #global-interrupts = <1>; > > > + interrupts = , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + , > > > + ; > > > + }; > > > + > > > remoteproc_adsp: remoteproc@17300000 { > > > compatible = "qcom,sm8150-adsp-pas"; > > > reg = <0x0 0x17300000 0x0 0x4040>; > > > -- > > > 2.26.1 > > >