From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95202C433E0 for ; Fri, 31 Jul 2020 05:54:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F9FE2084D for ; Fri, 31 Jul 2020 05:54:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3aUxKlw1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T+HPx65f" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F9FE2084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fNZZsg9eXLQSNVt7/yWcOVt/dJlKxkT5tPCFb0beA9c=; b=3aUxKlw1/Lu9VOypRp+x8Mv8r NwGOcJZr5rCu72UzB2fGzQD0MuUJrF33BDtuhrwybn9qVugwMtfJkc6+UF+2P/NgTUUnSZWkQElxM crsDCtnLYIioRsZXZg1lLUi1NmDHQLyQ7rKp9A4VdCT6bWIgQZJbmYgnP1WbCBtYzYCd2Eia9BNsh iukFeX6l2y8Ws0zbYfgosmuGPtaTUGQTfOUsiAvGWgmlqdUO3jlxASPMrSPxpU/OLmomFuKGvc5He oSt9dyusnB6VkB7AgF03fGr64kEfTW/y2uUp4ZGtZvDu4MCmpj9QjeqoR8HWxwVxfLxJFvyJMz+az hm0+7Dncg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1NyG-0007Ud-Gw; Fri, 31 Jul 2020 05:52:44 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1NyE-0007Tf-EX for linux-arm-kernel@lists.infradead.org; Fri, 31 Jul 2020 05:52:43 +0000 Received: by mail-pj1-x1044.google.com with SMTP id kr4so4430618pjb.2 for ; Thu, 30 Jul 2020 22:52:40 -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=W4n1cEXiTig9HkGVvzKIuss4QbYWtgpPue2rZUigIVfIYlQ4FNBlk8pT+H43pMJbD8 6rfa6AzSNgjSCFRW4rIB+Qn1Lrn9yXE2NHFZ/lox/qzccCODv2ke1hkCT5V44YqccAD6 FIXy5MI6NRnc0fflKE4EYUbhrzIWKQdKE0A9tseFmtTUyV67VpBPLKgzyUS9THOqq/yq Gn2KPaaeushyCyzZmp4IaFJHcCskIV6n1dn7Xz0T0Ko955QKRx3O1rU0Rci4NJz/1TwZ uwavnCDReMhnh8yXpVBSvInF1OPy3TzCBoGdlS31Ob+5710DMQp5ZQ7z77dcRQuzhoI/ 1yQg== X-Gm-Message-State: AOAM532RTC3sfnvmAELWGaGmyyywUP8dTJwQmqGOuho4yrmetpLtZNuL +L8oGaLiBkdgpTxlBNF/eiU3qQ== X-Google-Smtp-Source: ABdhPJwx3vBThEbfSeGBoL9hNvNZyU1Q4RNIGLqBu9j0WBIoW6X1bMtfz0R1dAPxFdWb26AAhctwbQ== 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 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200731_015242_517356_657043CD X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: DTML , skrzynka@konradybcio.pl, Will Deacon , Joerg Roedel , Linux Kernel Mailing List , iommu@lists.linux-foundation.org, Rob Herring , John Stultz , Robin Murphy , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel