Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2449815ybg; Thu, 30 Jul 2020 22:55:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoKSWjij08TZCqKDwoBqAbQlQh2I7x4vVeXq4EkrnTKHsBlKFY2lKwj5byb8G90urM7LJq X-Received: by 2002:a17:906:7155:: with SMTP id z21mr2640415ejj.282.1596174953197; Thu, 30 Jul 2020 22:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596174953; cv=none; d=google.com; s=arc-20160816; b=PSoV2A2jR8HThVf8bC8remk/EKLa0KnbyY+j1Aos4PuNSfH03SFcTBNCPL/sH1g2bS FJ4NJTzG4dwtbd/fxHLZ/c8h9S6Y7+qoQqtXHW2nW9WHMclPKWBQ9taHWd/zlsasSAr7 lAh3kNLwiUv27elXq98wkxihM9fKw66tEah6GYJ81tL7dmK+5Y1gGPji3rbXmTY+ttxD bFBP2ZkBPrPWB2ocI2tYUkQO8O72S5gF9HNIFzs3Lu5/s6p/61+cRadR74desL6opZgf NKmFSduYlUBntNM4CHByXSXrmO0ojgLEmLbBSi8UlDflY8IUEcmwh6/irfbTK5c9Bdro c1PQ== 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=Is9oz0WcdC4oayT0KXurF1vgNIwYI6FKERnV58px2yQ=; b=I1KCmtbdfT9QDZz8u9JDT6gmFCowaodJ3VMk80WvNm1iczDWUXFJ9p3NtEkEOKdkc9 0Gn0CwIRN7VcDPCi1Bxzrb/w6McX/t8kRplkaNzsoA9tkvHQeJlZNxKCSIPkMTdUcWje pSqPCwCeNswXD82tIzs/BzdfKBuSDWkTrU0EijVStu83ub9BV/qTu1jSlnfy2oegzEZQ rzkJuWJ2t9OepXMpvvHp7xVrJ0I2/ztQ2YOO6rlOrtNaP+Nt13CFI2P29Wq4kAjYl8Ym egkoH+Y745dFmrz7CLJOPO6oVLYar8EbLBupb5SZZANy+K9+YYs8Rs7+fQj3mCZDqVq0 P5qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+HPx65f; 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 r14si4616492ejy.577.2020.07.30.22.55.28; Thu, 30 Jul 2020 22:55:53 -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=T+HPx65f; 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 S1731152AbgGaFwj (ORCPT + 99 others); Fri, 31 Jul 2020 01:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730644AbgGaFwi (ORCPT ); Fri, 31 Jul 2020 01:52:38 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B43C061575 for ; Thu, 30 Jul 2020 22:52:38 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id e4so3119752pjd.0 for ; Thu, 30 Jul 2020 22:52:38 -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=Is9oz0WcdC4oayT0KXurF1vgNIwYI6FKERnV58px2yQ=; b=T+HPx65fgNudEBURjrQX4qo0u8tnu0dj3iDP1cV+BTCL8y/j4LUor93lChMKi1Jsk+ vdg9mhmNbqrhL9/udDjUihbN5Bolx1RV8wDqTi5lomByyhQ8dJ4yBgxcielqGHS62Ea7 rx9xxs5NmTukhbJaOzLTmx/OknOZlhE1tHBWwB0Bi45k68GIGqA7DH65mPwxMsc4OJIe GvZvqU28Mnpfeynbn4fyApxImnpsNCDKfN78nVugs8mWGW0rEHNnd0a/vN0NvkpDtyU4 nrKtl3z8E6o8rnS8LVFBrZh2yKKD006qOH/vwY4THo3iltRqVVrYWuUafHyOnmLnzuIE xRyQ== 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=Is9oz0WcdC4oayT0KXurF1vgNIwYI6FKERnV58px2yQ=; b=ddXpIb5X8EQPDEFeMw7UbbclpBvslCbrUjYmrbP2Fh/98a5ZStYeHTlwI5VRs+86DR VXszRjCSnE3MTo3onqXON9RsiY8jHa7gnPrWE357aYlqeaszwi9NzyKST9L0gU5z/GeB +tZtmCLTeDAaktmq5HZdLOjVBWkHk2I3iEGYUgOx6h+CeswVym7ipAm6vnlgdM/2zzvL E94hTwjiv+u9xMUeyz+Xq3+xQr48wqpahyjYPSrcz6Qi6C9rxtPF5gQS7Ms5kF/gXseA wo6D1W3j0PrK3+cShYiYLZq3GUtTullIBvPA7Q5XiNANctDTVO6FuUJo8sJEBuXtTD2U bXRw== X-Gm-Message-State: AOAM531+q2+qhHMFxsgJf7YJ0cXPsngF7GhCABHJgwb5MfpQBZz/II56 spFZdYfkj/NOiB8dPzhpmZaWpw== X-Received: by 2002:a17:90a:fd82:: with SMTP id cx2mr2664842pjb.67.1596174757993; Thu, 30 Jul 2020 22:52:37 -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 k6sm4360389pfp.87.2020.07.30.22.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2020 22:52:37 -0700 (PDT) Date: Thu, 30 Jul 2020 22:48:50 -0700 From: Bjorn Andersson To: Konrad Dybcio Cc: Will Deacon , skrzynka@konradybcio.pl, Robin Murphy , Joerg Roedel , Rob Herring , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, DTML , Linux Kernel Mailing List , John Stultz Subject: Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init Message-ID: <20200731054850.GA20825@builder.lan> References: <20200704122809.73794-1-konradybcio@gmail.com> <20200704130922.GB21333@willie-the-truck> <20200705033511.GR388985@builder.lan> <20200721154415.GA5758@jcrouse1-lnx.qualcomm.com> <20200721235650.GN388985@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 Wed 22 Jul 13:11 PDT 2020, Konrad Dybcio wrote: > >Is the problem on SDM630 that when you write to SMR/S2CR the device > >reboots? Or that when you start writing out the context bank > >configuration that trips the display and the device reboots? > > I added some debug prints and the phone hangs after reaching the > seventh CB (with i=6) at > > arm_smmu_cb_write(smmu, i, ARM_SMMU_CB_FSR, ARM_SMMU_FSR_FAULT); > > line in arm_smmu_device_reset. > Sounds like things are progressing nicely for a while there, presumably until the next time the display is being refreshed. Would you be willing to try out the following work in progress: https://lore.kernel.org/linux-arm-msm/20200717001619.325317-1-bjorn.andersson@linaro.org/ You need to adjust drivers/iommu/arm-smmu-impl.c so that arm_smmu_impl_init() will invoke qcom_smmu_impl_init() as it spots your apps smmu. Regards, Bjorn