Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2180644ybg; Fri, 5 Jun 2020 07:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMk09q616EfaC6QWj5GrzxiWYAZZupYhBlXzXk/apEBlVCUWR1N6PK2JhWZvfC1djq5a+n X-Received: by 2002:a05:6402:31bb:: with SMTP id dj27mr9841492edb.156.1591367653950; Fri, 05 Jun 2020 07:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591367653; cv=none; d=google.com; s=arc-20160816; b=UJjBS+XzzQnWwdYUziYT2Tx2IGltQPdTauSbrJiJ7NyDAcboR5uKoYkKi8fFrw5fcs uB2t4I/Q7mzOqIix6ta/ZSRCKXAs8AXjIGtFws4Cgm/JmtiGvCs73unoLh/LAK0DnS5P FdkJTobSb1YJ9i0EBmGCXV/coie+NiTemfjgZ9l2DWTLGEstULra45KjxVoGR0AfEije bmEqVP3jZHN3HUmW0N+wiP/MibhQwpT1LqSFZvupEHmSVyCk/yD/q6ziXC1vi4XQ7v/W CHmnLKDf+SWxr0aU55GC3qRmUset6JTfayzYYL7EkxEo2ECRjHPv4bl+0LvOqOch9QjR R9HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WOsCrCTNiZk4z+CHWASXWYuAh1VB0KhtNd4BIKGCzJI=; b=c39sAOXAhsuVDxl86T+F7keYJufhW7rc2bpZRlDYf5WNpTeKDMinaLFOI/rTHFkP+8 Qx5EBsuFr9O70MnsQhLFb4MITDJRdE7D4ZdWDKkV/dM3JRdJv3bd/9YxVlQqT29zOqXQ u6b3wAv6++CebRvS57kcM3wfvbkPIupxXSP4IyRyyxisKKiT9af/cPCKoTNczmlPQIz9 ypqsy2jnqR1qWNXDvfKCrGAJ6l+b5uuW3hoXUIA5vd01mzqMngkKZK1Br20xU7EsmTbL 8GfTgcJwwFAmqQ8FOk5UIgl3TR5BJ53cy3l7S1qWuMaivdPl73ha2Eb8EQtEvD+Nk1I4 Lj6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OUIw/jA7"; 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 q22si2394997edb.325.2020.06.05.07.33.50; Fri, 05 Jun 2020 07:34:13 -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="OUIw/jA7"; 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 S1728146AbgFEObV (ORCPT + 99 others); Fri, 5 Jun 2020 10:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbgFEObU (ORCPT ); Fri, 5 Jun 2020 10:31:20 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86458C08C5C5 for ; Fri, 5 Jun 2020 07:31:19 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id n123so4883494ybf.11 for ; Fri, 05 Jun 2020 07:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WOsCrCTNiZk4z+CHWASXWYuAh1VB0KhtNd4BIKGCzJI=; b=OUIw/jA7GurZ4+wdldpY/tDf9ZOqqgayumJTo2diTmo50FUSPj0nwWMdttY/TJtsXH j9lNXy4OmfX3l7Cg8vE3jEzfXyn+sHapl9ZpX1PoVf2sm5k/yzULPT/TX7D4sfTUpg8V p9tmddxnUfE3GuLyXTdTjrBY3VwIyLbtQdCg0MAYe82KdacOL1AApsNq4ahwOmtkVqc0 CJrXkFYb6LPVrG80d7Oykp2kJj98tolgdAielogldvlmZevSsIIcpFe2TFtQzNLqGNf4 F8dN2FZmwfaJjb3QNkedLVz6JNsR7Nudthi6q6gRu9ceYGHId2/8545yIK6Ygs7EtSXL C6FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WOsCrCTNiZk4z+CHWASXWYuAh1VB0KhtNd4BIKGCzJI=; b=GZKNoF4OTV9EiavOmDH9K4Trq109v2SwK8/ohfMkSYyqv9c8RBKVLWsEvzl+CeqQUd CYx8raF7hY/W9XCUSq6lj9L+zSIZ7bh9yPvdp6cfRRBV7h3uu+nzFgG5HBon5Np4Ipu7 eE7yy1sHnrlTEtvhrAUcB/aW6uuyWLFIvjMKXpag415pgidF8/xkI2zFGlk60ctmqiGh 02U5XELChEv6Ccw6/hAlO3hY4GwBIwOeC2AhZ8SA8eiDnvODSlgLVop5Z4p5Z9TM6Tgh IPSjViPkK84F6mEJOjD/HHqHYoJHNbNJJW9ATnRYli3UTYM9X7fAxY4YA2JQKibMu05G UgpQ== X-Gm-Message-State: AOAM53304h+LTvXhmeguPdI7r97cnGHr3B+am24Z1L1pusF5SfJBNt+f eotDnpgSCXi8CbaA+U8SQaGJ7OVE7KSd0TQLz5xgWg== X-Received: by 2002:a25:b442:: with SMTP id c2mr17737809ybg.273.1591367478104; Fri, 05 Jun 2020 07:31:18 -0700 (PDT) MIME-Version: 1.0 References: <20200524023815.21789-1-jonathan@marek.ca> <20200524023815.21789-2-jonathan@marek.ca> <20200529025246.GV279327@builder.lan> <20200529031520.GA1799770@builder.lan> <91eb7ee0e549b10724c724aebfd91996@codeaurora.org> <8cf134f0-381f-7765-2496-e5abd77f3087@marek.ca> In-Reply-To: From: Nicolas Dechesne Date: Fri, 5 Jun 2020 16:31:07 +0200 Message-ID: Subject: Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node To: Sai Prakash Ranjan Cc: Jonathan Marek , Bjorn Andersson , linux-arm-msm , Andy Gross , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , devicetree-owner@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2020 at 4:14 PM Sai Prakash Ranjan wrote: > > On 2020-06-05 19:40, Jonathan Marek wrote: > > On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: > >> On 2020-05-29 08:45, 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. > >>> > >> > >> Actually I tried out this in SM8150 MTP and it works fine for me, > >> > >> "fastboot set_active a; fastboot set_active b; fastboot set_active a; > >> fastboot oem select-display-panel none; fastboot reboot bootloader; > >> fastboot boot boot-sm8150.img" > >> > >> Also I need to switch slots everytime like above, otherwise I always > >> see some error > >> while loading the boot image. > >> > > > > What is the error? If it is "FAILED (remote: Failed to > > load/authenticate boot image: Load Error)" then flashing/erasing > > boot_a will make it go away ("fastboot erase boot_a") for the next 6 > > or so "failed" boots. > > > > Yes this exact error. The bootloader maintains a 'boot status' in one of the partition attributes. After a certain amount of 'failed' boot , it will switch to the other boot partition. It's the same thing on RB3/DB845c. In our release for DB845c, we are patching the bootloader so that this behavior is bypassed. On typical 'product' there is a user space application that will come and set the partition attribute to indicate the boot was successful. For the record, this is the patch we use on 845c: https://git.linaro.org/landing-teams/working/qualcomm/abl.git/commit/?h=release/LE.UM.2.3.7-09200-sda845.0&id=e3dc60213234ed626161a568ba587ddac63c5158 rebuilding EDK2/ABL requires access to signing tools.. so it might not be possible for everyone. but in case you can, it should be straightforward to reuse this patch. > > > -Sai > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a > member > of Code Aurora Forum, hosted by The Linux Foundation