Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp201472ybm; Thu, 28 May 2020 20:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEGZaeH2ZNRFE1z6tKfLkLYDd380nPz12/GM13ypjlrk1mtX1nUR1YyqAFmTra1jwoxwcS X-Received: by 2002:a17:906:4ada:: with SMTP id u26mr2669896ejt.368.1590723386680; Thu, 28 May 2020 20:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590723386; cv=none; d=google.com; s=arc-20160816; b=mHDViK/4jTevKWOFD8ufNq0mpbzGJImUfjsmSy/xQCPME9kcinmxrB3AtD3LGwgxa9 cdYgOA1+dBh5tLd9vn8BAyT7WS7rQLdm/cJC4RBAwIxCxSDFbm70FLjnB29QT7za65s/ EIvceTucoI+wUQsLLcSMRR7pDDjO5zk/DEsnr/d3tuOxlmTQg/edPlmBz3LXXjIg7MJe z4jtC+pNgywmNe2ojIa1jPW/fJw6qkUUH+F/ISX5Hbud9+Qab/1fLojcWetDLrBOyD7b j1xbMRpoAOSU+RzO26M98wsC3O7yDZV7RXxmljM+W+rYrr1QyyPvVFVONgu+EhJisuEI PdWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tyQ6R9zPHdER38OPNGcXMf3Y34VIQ+4iMgNDMwi1+Qw=; b=pznaJ2FrdDuoLGCkplsFNu3cjtc7pVigXF5TnzjNI6LcSd/KbQrhUcRuLTUAIWG3pX ZlmkG1mH6rEQKharYMsug4T8HJophUDqROq0sduodTOd5h7d1SIzdxA5020s03kCPWpt Fwy955tx21r9QFoGvTEMiMBNonAG4p+xrnX/StZoumm4+p8uFRU+sI1ScuGG8aPUCO0g I1AGc5CIHpOSsREF9jzrazdoFxYKsrMAOMA44KnmvrWMSPyk881zCo/sFZNrOdo6/ORV tlYAa+WSWgjq+2eDUHJCsypsC0UF2fv9xJn1xGZ+aEMDy2bcsNxJWGYSkTk0FNayXDYg 4laQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=chanZ80S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc3si4718980ejb.140.2020.05.28.20.36.02; Thu, 28 May 2020 20:36:26 -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=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=chanZ80S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436649AbgE2DeJ (ORCPT + 99 others); Thu, 28 May 2020 23:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436574AbgE2DeG (ORCPT ); Thu, 28 May 2020 23:34:06 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D478C08C5C8 for ; Thu, 28 May 2020 20:34:06 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id b27so1050503qka.4 for ; Thu, 28 May 2020 20:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tyQ6R9zPHdER38OPNGcXMf3Y34VIQ+4iMgNDMwi1+Qw=; b=chanZ80SvsBSV9iu/NMRLWDs1dH98echwP5mSuqC77tdDqO6ptpp8qxA8IbcsnnpLu 3oWFPxTPCQ5Mvwlnq2b9gBoH0VNKPTMlL7cVEqawqpZyg4Om8gHVSQNsKqjk0ZiAZHsk qhsp4yfD1QM3KHvEZpRY6BvKR44u55vFVDOLAPbj6Tk/I3ExEijsOJVEgJ+wp6wzUo4J HNnWA0UDqaQi+Bo58fvxGRADorC1VX71HGnmqTKO0D7Qo3TIYB/M29Ns8+ErYoVWP9U4 enwrn62aA5MDh77UQEi5SP12CiFhvD9OPpMiBn7uBUO01ViJUM8NbuxManbqTI7RhGPo Zejw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tyQ6R9zPHdER38OPNGcXMf3Y34VIQ+4iMgNDMwi1+Qw=; b=YMYuYYtUSoDMdrsPjiWr0PO7VjW8HrCctDU1kGvI3Z/JUPWbxoKlpRJ839wn30zL3p XMxV6fv4gTpzS4xo5ALVSl1pTh39H89G8XgGJobD5aga0CwqdX+AEwu7+eu2kk0c6zDV hgdenoUBFQYi3E3+z5Gdn+GhA+nAdH3Yn9sMvenotYd4VZgfmxCXRUvTmyPHt4iaAbPF 5QH7tVTekceYrGTrJMAUfKjXkwz+DS+izVzdAEt2QCUNW3KZjU8n0ZjRYKcsHb0Wp4XF FTc/bPJqW5JM9akvvt1xQ9QUFnaqgDLI+ifhn5Nny6KMAkmPlscSQWqlTu6SUvUWjeYT xOPA== X-Gm-Message-State: AOAM531fpDlnnKMYo10o+mLyKQpnZD2R0QCtYG4ROB5fwX0eOyOfaaQa vArdPldwPnBq8SvKmEJRdyLD4iwH9Ds= X-Received: by 2002:a37:af02:: with SMTP id y2mr6149497qke.389.1590723245397; Thu, 28 May 2020 20:34:05 -0700 (PDT) Received: from [192.168.0.189] ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id e16sm7305168qtc.71.2020.05.28.20.34.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 20:34:05 -0700 (PDT) Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Andy Gross , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20200524023815.21789-1-jonathan@marek.ca> <20200524023815.21789-2-jonathan@marek.ca> <20200529025246.GV279327@builder.lan> <20200529031520.GA1799770@builder.lan> From: Jonathan Marek Message-ID: <00b8f010-1ae1-45b2-8dd0-a1b582861a2e@marek.ca> Date: Thu, 28 May 2020 23:34:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200529031520.GA1799770@builder.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/28/20 11:15 PM, Bjorn Andersson wrote: > 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. > That's annoying because a lot depends on apps_mmu. GPU is an exception with its own MMU but pretty much everything else uses apps_smmu (does it make sense to add USB nodes if it won't work without apps_smmu?) Is this something that will get resolved soon? FWIW, I have another sm8250 board which does not need the workaround (its bootloader does not set up the display). AFAIK modifying the bootloader to not set up any display is a trivial modification (assuming that's an option). > 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 >>>>