Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp187214ybm; Thu, 28 May 2020 20:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+H7F/I1x8/xfHGdPi5sUJJllIcw/u9DBVOWraPUkD45bA5KRk09262lPed+ro+E/Uqx+q X-Received: by 2002:a17:906:15d8:: with SMTP id l24mr5695439ejd.479.1590721615003; Thu, 28 May 2020 20:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590721614; cv=none; d=google.com; s=arc-20160816; b=D5IHdDkDNcsagArA9QCT0TAZsCHkC+ITEclkq4263V8Ny+oK01jetksjsgaxKTpBem 4jDeaDh1fVrDdr9upem+EZqCZYheurzYsUBYIX2qdf5ouMVuG1rzZQGKRtIO29rCEi12 cuIVl3z/4ZKgmSPxsGMYKQA+Wfz8AizLkbZHxELDauId9dD9MWoAjZqBIV5wPYvyXp61 luGm4DbVMO31T1n+7D8DMkBiFwvhziiOfAn7efiNbjUVcpsi7q0Vm2PXAtDHSgSvTyWK AAS/Yc7wmtki+GOsIAiwzwG8CiG0nfbLjGsewRsaLeqQIinkW9RyQtSkVZbMDioSeCCK uXVw== 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=vCLQVJ0rHf+dyT5VdkzM3xis443r7UJvYGZFswqKoWc=; b=AytJh1IRUUkkHAqFc1tyNhR1uaDxPsTY8pks2UXKO3LqYCL/pakVMeAcmOU5JuQKbr s9hZ23CudcyT4F3h/aHRc5KOkFppncOQ1pWgZ35IyEnwFvv0sIEnYSwUuiEEEd6g7MYS sBjGQ9llo4F0CaYX2YfALA2SJKIMDpHpnyTEbV04dJB3deZ16b/SsAETD9OBYCmYDmEu xUxwE0rrGMlRXqL/bOG3keVGun/++GPfaKGjfUbJw0wuo12Xqog9vRKNiuc1I6dSoGxW 1ZQbnbd7Gw1NZGvyKiabSDQQbWAYGl5o3QryLtw6P1eB7T13SJd4zb9vmT1ZphAzUf4c HqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b="xI21Ip/5"; 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 c11si549270edn.383.2020.05.28.20.06.31; Thu, 28 May 2020 20:06:54 -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="xI21Ip/5"; 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 S2388995AbgE2DCn (ORCPT + 99 others); Thu, 28 May 2020 23:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390240AbgE2DBv (ORCPT ); Thu, 28 May 2020 23:01:51 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2D8C08C5C8 for ; Thu, 28 May 2020 20:01:50 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id q14so593635qtr.9 for ; Thu, 28 May 2020 20:01:50 -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=vCLQVJ0rHf+dyT5VdkzM3xis443r7UJvYGZFswqKoWc=; b=xI21Ip/5b9bIaHLFnLLaru/mvE7C+/Fb8ke1w2Ygc1G0FX2I43/Jy4MYvOD2dcyB8X XLKV1fT+A2HEycxVBOcR6lmb7crugBjxEBFGhe1TPuo0kc5Jo/vM5141GvO2mpjDe4ZX JypOY3fGacPNB++2m+9xkqenk7t0hZ/JDPbGdYTwH/L27r2O+Yjd6qFk9vAUitffNB79 Urf3dPT5K9sZ1hC0u+L2oDvQXvqDx9p9MLPWy56QXB0y60Po8APQNxQ9sonago2ZZ+qf LYRD1cnWSP1389HcwR3uArgMcRB/LF4c+ugN+vy8xTMO94k/EvxNo9qIWXWedtmmWj+o s63g== 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=vCLQVJ0rHf+dyT5VdkzM3xis443r7UJvYGZFswqKoWc=; b=J806OFZnw7tGVEs6U5g0DIZao+8HRe0FOaNY6fUYTUiSE6rNMiztWlUrD87NBr1L/R bvh/HSTepozCM1WPLmZYRDH9nefFlYW6kGmIPgMY4rbBUuKWJ8lDrjhGAF/Svej2YOVQ H7nPGMbCp/l39E+V2gBv6dTQsmEJQIJ6iykatElSMwEm2ZN/fGd1Vfz53zkKFIooG7J8 IOu/dT0F/jMNcLyyLtpTx3Y8TL+gN2+N+j30whCwul+dZT8/1SjvZvmoj7KxHXc7eyEY iFFEKGeaJz3WXMgljacJkKzxflhIDE/ylafT7yh0vRsfmIHm9mjUN8FfNv1/bv7kJf6Y g2rg== X-Gm-Message-State: AOAM5319OoW87kpnguLktbJ/HBiJ0x8SW4hfnlNTorKE1x8x/FdDhiya 3f6Vp6l12Pj5koLZYLfMw+b4fn3x7w4= X-Received: by 2002:ac8:35f4:: with SMTP id l49mr6266772qtb.98.1590721309821; Thu, 28 May 2020 20:01:49 -0700 (PDT) Received: from [192.168.0.189] ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id q24sm7367428qtc.0.2020.05.28.20.01.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 20:01:49 -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> From: Jonathan Marek Message-ID: Date: Thu, 28 May 2020 23:02:15 -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: <20200529025246.GV279327@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 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). 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). >> 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 >>