Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4996749pxv; Tue, 6 Jul 2021 14:37:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/tUh3PJAZDcQrWxSQoGQ0nGZnQlKGp6eVrq3CcWWpO9svpR29vRzw+drsPemSMk3b/JMQ X-Received: by 2002:a5e:8f03:: with SMTP id c3mr16704085iok.115.1625607466324; Tue, 06 Jul 2021 14:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625607466; cv=none; d=google.com; s=arc-20160816; b=HcZg95RjdaKbqUxklulCInYxDb9nV2+5BuRKfXQShR29MdTwPSIm0mFbm8zRortYNe oWCT3OoYTX2rLxuH2YkaCswJAzAZ7R+bzfRgbk4ptro6J3BCRbyJafTlf4qfaNm8u9bo EbVIUnmwI1+Nhvhmh83goqHXF/IxNUivWYIhZmU+LdwmMTmiJSkMH+6D7JTrlQcs+Eya wc8b2OEaZ7Bte4iK3VpPF0K+PSVLsCITLioFvYGA1Kh+sVH4TiOqG53lJV8J7OhBF391 q+5bYnZ6TIlpiTl61khcyKDLY1A0Jrt1K2IS1NUS5xkZ1XUHk2JWVSNQw6uNW7HsDztn JMzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g1JVJiy081ll+MGQFYrIQnx64nTijHCUrQkv8Wk47Uc=; b=crWV8oM5WpMLbDOeGbDfwy+Ch//yGCGfYMeqSoZArQwO+Auqid3kwqrFX3zcP/kCOD 9w6TDqTt0yJveY5//8KCbES49W4jlabvxpAX+0qrDs1a9nPold/a+huffacAXdn/9cqn YUZF6PURPo6VTo9MQBq4PL41oNRR25MXmNDdVE674to9qeEuxxmWVezA2zztZtyvRAJx /wFQaEOmXSeWcO24DnBPHd0Udr8RTvr0KEstaEl2ipCl1wmekf/OTf4XYVoWx4b1iazs Gp7HCVNNNmIGSxh5Cj30Dz8F7rUfla4De1WaWRlQnVuAwUuYwPjGeoAqEFsAvOUgYvZR FjRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SyDsjtI7; 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 n4si1140196ion.62.2021.07.06.14.37.34; Tue, 06 Jul 2021 14:37:46 -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=SyDsjtI7; 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 S229925AbhGFVjL (ORCPT + 99 others); Tue, 6 Jul 2021 17:39:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbhGFVjK (ORCPT ); Tue, 6 Jul 2021 17:39:10 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2AA9C06175F for ; Tue, 6 Jul 2021 14:36:30 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id s17so1016480oij.0 for ; Tue, 06 Jul 2021 14:36:30 -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=g1JVJiy081ll+MGQFYrIQnx64nTijHCUrQkv8Wk47Uc=; b=SyDsjtI7l4Qry4skD2wvLmbuIkvNN1DlMY1bPGWVilUzHBLHLszzbhcD+3jRO1BOeL lPlxDNr9OBbxW7Z4hlnB9l48IidslH2YiYqrethULXiC1PNWksDnRHAeao6WJawnXMNd 1CCd7Akwq1gi9MNdYTkbDsmSHc0mGNT0DCDNTAOSAUbdYORIfQAqrlv+kEyM+BltHMrD lwqGEKx+C7f4LfErjREh2fdktEV49PtQKKMkYjan0SLl4E4KU/d2PUfDCskbx3eEj3Vc Rx7q4Tj40TD2dFd/+OuyoTCY1cDXjN/i4QianJReUl7zhzm2mzMaWDbTrh9HtraTluUN ntjg== 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=g1JVJiy081ll+MGQFYrIQnx64nTijHCUrQkv8Wk47Uc=; b=RLD2YTTgyA1F3EJZQDCb3BER31aemHPlsDDU2sQedi+VUpxvIgjBBqGEU4peeUU1gy d4dEyQom+WzzCioJpmjLUAvcXU7xwCELp6a39sUlN7HrhEVHzWAX53z7tZmoU0z1RQus hPugvp2ydSp9JI1Hb2fws8y9tX1jJnfPTJ77jcrOCEIFI/HnomosQONU3QOf0bMH73V2 Z5ZsvfDdLygDOOVtBjp8k0rRtKFlmEUmbwMv0U2W9qliwVc40ztSwj6yuLJt7dWS8RTc YNtcGIyxwxeq5nkMq+uZeAtjPmuRQyJDDM1eTYsTNhHBukSwe2Ov4rzaEw52SFt1n5JJ k0Ow== X-Gm-Message-State: AOAM532I4KEQ5pmjehotM/OtlBL0Nm87Sbe9IC14qrlG1npbpIVjYgpi /8NM8dtYg3r5zd5AjbXnWghGtw== X-Received: by 2002:a05:6808:f0a:: with SMTP id m10mr302995oiw.145.1625607390057; Tue, 06 Jul 2021 14:36:30 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id v134sm289352oie.28.2021.07.06.14.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 14:36:29 -0700 (PDT) Date: Tue, 6 Jul 2021 16:36:26 -0500 From: Bjorn Andersson To: Rob Clark Cc: Dmitry Baryshkov , dri-devel , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , freedreno , linux-arm-msm , Jordan Crouse , Rob Clark , Akhil P Oommen , AngeloGioacchino Del Regno , Douglas Anderson , Eric Anholt , "Isaac J. Manjarres" , Joerg Roedel , John Stultz , Jonathan Marek , Konrad Dybcio , Krishna Reddy , "Kristian H. Kristensen" , Lee Jones , "moderated list:ARM SMMU DRIVERS" , open list , Marijn Suijten , Robin Murphy , Sai Prakash Ranjan , Sharat Masetty , Will Deacon , Zhenzhong Duan Subject: Re: [PATCH v5 0/5] iommu/arm-smmu: adreno-smmu page fault handling Message-ID: References: <20210610214431.539029-1-robdclark@gmail.com> <2016473f-2b38-f049-1e8d-04bdf5af6cea@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 04 Jul 13:20 CDT 2021, Rob Clark wrote: > I suspect you are getting a dpu fault, and need: > > https://lore.kernel.org/linux-arm-msm/CAF6AEGvTjTUQXqom-xhdh456tdLscbVFPQ+iud1H1gHc8A2=hA@mail.gmail.com/ > > I suppose Bjorn was expecting me to send that patch > No, I left that discussion with the same understanding as you... But I ended up side tracked by some other craziness. Did you post this somewhere or would you still like me to test it and spin a patch? Regards, Bjorn > BR, > -R > > On Sun, Jul 4, 2021 at 5:53 AM Dmitry Baryshkov > wrote: > > > > Hi, > > > > I've had splash screen disabled on my RB3. However once I've enabled it, > > I've got the attached crash during the boot on the msm/msm-next. It > > looks like it is related to this particular set of changes. > > > > On 11/06/2021 00:44, Rob Clark wrote: > > > From: Rob Clark > > > > > > This picks up an earlier series[1] from Jordan, and adds additional > > > support needed to generate GPU devcore dumps on iova faults. Original > > > description: > > > > > > This is a stack to add an Adreno GPU specific handler for pagefaults. The first > > > patch starts by wiring up report_iommu_fault for arm-smmu. The next patch adds > > > a adreno-smmu-priv function hook to capture a handful of important debugging > > > registers such as TTBR0, CONTEXTIDR, FSYNR0 and others. This is used by the > > > third patch to print more detailed information on page fault such as the TTBR0 > > > for the pagetable that caused the fault and the source of the fault as > > > determined by a combination of the FSYNR1 register and an internal GPU > > > register. > > > > > > This code provides a solid base that we can expand on later for even more > > > extensive GPU side page fault debugging capabilities. > > > > > > v5: [Rob] Use RBBM_STATUS3.SMMU_STALLED_ON_FAULT to detect case where > > > GPU snapshotting needs to avoid crashdumper, and check the > > > RBBM_STATUS3.SMMU_STALLED_ON_FAULT in GPU hang irq paths > > > v4: [Rob] Add support to stall SMMU on fault, and let the GPU driver > > > resume translation after it has had a chance to snapshot the GPUs > > > state > > > v3: Always clear FSR even if the target driver is going to handle resume > > > v2: Fix comment wording and function pointer check per Rob Clark > > > > > > [1] https://lore.kernel.org/dri-devel/20210225175135.91922-1-jcrouse@codeaurora.org/ > > > > > > Jordan Crouse (3): > > > iommu/arm-smmu: Add support for driver IOMMU fault handlers > > > iommu/arm-smmu-qcom: Add an adreno-smmu-priv callback to get pagefault > > > info > > > drm/msm: Improve the a6xx page fault handler > > > > > > Rob Clark (2): > > > iommu/arm-smmu-qcom: Add stall support > > > drm/msm: devcoredump iommu fault support > > > > > > drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 23 +++- > > > drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 110 +++++++++++++++++++- > > > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 42 ++++++-- > > > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 15 +++ > > > drivers/gpu/drm/msm/msm_gem.h | 1 + > > > drivers/gpu/drm/msm/msm_gem_submit.c | 1 + > > > drivers/gpu/drm/msm/msm_gpu.c | 48 +++++++++ > > > drivers/gpu/drm/msm/msm_gpu.h | 17 +++ > > > drivers/gpu/drm/msm/msm_gpummu.c | 5 + > > > drivers/gpu/drm/msm/msm_iommu.c | 22 +++- > > > drivers/gpu/drm/msm/msm_mmu.h | 5 +- > > > drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 50 +++++++++ > > > drivers/iommu/arm/arm-smmu/arm-smmu.c | 9 +- > > > drivers/iommu/arm/arm-smmu/arm-smmu.h | 2 + > > > include/linux/adreno-smmu-priv.h | 38 ++++++- > > > 15 files changed, 367 insertions(+), 21 deletions(-) > > > > > > > > > -- > > With best wishes > > Dmitry