Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp65325lqb; Thu, 23 May 2024 10:52:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7lL6dBmW3209D7JBePl3bEtFyULUYCpeaZAiqrMja7y1YE2Lsnq4iWrk3xDj8A0UDxlqLO8x0M3dNCXYmEcW+OrS2fWaVahKKDbiSfw== X-Google-Smtp-Source: AGHT+IGHEP0Qd/x+xckj806fe7RufX3HrX/Ps48M1fSRBwvAry7tdVolPtCIYo3QYIhkKfPBUtHC X-Received: by 2002:a05:6a20:d498:b0:1af:667c:38cc with SMTP id adf61e73a8af0-1b212cc76a0mr190075637.5.1716486761639; Thu, 23 May 2024 10:52:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716486761; cv=pass; d=google.com; s=arc-20160816; b=hREitYcMZ9IZ67BLFim5u4fNb51TXYuNrSdyQcVD80ZZxIms8nNF8Y8Ny3cqwF4spo r/xGWcfaTrUysTw32sRmGEi2EvD89TTDjPnH1SqR/1hjL4W93IK4AQTTsahjS0RP1jzQ hGzlX77N/BpjXl8HGm9BgDrKMFHLcj3Plyoi/Xt1r0MKQGx0DtaDW/Mj7n9xud3ehSXw k6dp14bPVRenkVbdHY4dbjFSYx4jeDrnge5Kh+ve1fHHGuwniNjilMgg/uDOH1+iAs7g SrZuiGCaEL01MEDriBHaMYegWHCNzWTtbJJX4bDG+2HPYDCfJ8vFukNEE89Ui1ys/Xa2 nrLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=G6bfu+bhhkfLjZgMfcumMPy+A+KJDQ31ZI+nlFrepqo=; fh=vDbOWc2e3GDXC7LbRGvE2Hm6LrfrQRhw85+d19fohUc=; b=QNgLcUXuKTM5MTMh9kwfwwlhuy0rQXPGWjKE/iMmqfN8bjUavyxxtlnKhd+LjhgylV bF2GJLxlFmPnmG7PfDq5EHeSTlqTfKv/r0gNdAwUSJfHydv59uw5bKHJ2YZELgrCzlXF siWqe9/Y8F5DvNi0LunRIOmmW8LvdBkzepdXCy21bND30AvOdVmiyQxRcA9Mfb+UC4Et B6S7nqllZ8hvTJiJ/QKjrqjdC39CcM88vMPgf2BqfFO3DyTDiUCAzN6hcSGpkHYMA75A BAv0S/klkw/O3NdUSERdtyZKwgBfrBJLGezaALe8eBwYAlDUJEocXb2ZxvUcoaqUzxDC YWCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ex5zyySz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-187845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412f13ea9si5170499a12.778.2024.05.23.10.52.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ex5zyySz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-187845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AF6C92837C1 for ; Thu, 23 May 2024 17:52:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AE8D7FBDD; Thu, 23 May 2024 17:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ex5zyySz" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DF642628D; Thu, 23 May 2024 17:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716486752; cv=none; b=TQdQLtNtGPo41vyHd6GDaF/4YE7Jh6Ny6kh1/Okh9lnRTuEonfBkZCVQDCQeTnXi7UpJOwuulKduP01RcrV0CfOk3Oh9EWeoCTpMjRSbeIPKAz0OfoEoDAcMT2uksVwTsZsg2faT3jNJYpPma2F9g6gzPtzZYmfRPstYZRd7JHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716486752; c=relaxed/simple; bh=sJKyceLK2hp3R2DtYdyiGb4AR1HaM8zgJkN3aJUGyEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=diABjeGLe/KL4sHVWnoWEP9M3FyeVPLFjFgNnVoWfjnKA1mRs2dLVW4fYj1VgEdTeqsVJXeZ9SP+if16l8c5/AK9jbESCbVT/MDU9Mi5KLu8KBSr/6s4Drts62v3zlB7GTIR1+eklZM2OLGwOQjcWm+XKkiSf+exZ8wiRgcuUgE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ex5zyySz; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2bf5ba9b1ceso63218a91.0; Thu, 23 May 2024 10:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716486750; x=1717091550; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G6bfu+bhhkfLjZgMfcumMPy+A+KJDQ31ZI+nlFrepqo=; b=Ex5zyySzfOmkVC1CDlb/mbSUCaLiLpdkgYsNz22xUTp/b/ZZfAGGKlORP3j6ZYN/6u PNUOgs0HgWiL95i/ov8fRzIiCagu5YVzRyzyZO/DbfUf9KqxEYtIa//s8vsDfjtc+zcE LIIpcWdrxqZkyX2tkvVAmLAy/chlRXXpntJVicKszXH1doUQZGC664QTyeczU+B3p0+r V2D35sxLvfQZG3+i6jBmJxdiOUVqs0uBd+IDCS2CY7U+Jvzaha7+egUGPRopstq9bMnG phG26aSnntjO27H2FFZoy2yG/0cZpZq/004rSwuJEMAsGH7bO67+TPyLfrdaArbsWr/y LJgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716486750; x=1717091550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G6bfu+bhhkfLjZgMfcumMPy+A+KJDQ31ZI+nlFrepqo=; b=X/67ALb4CUcXSWkEgtMyuu29QOWsBxcz3N+cxo2F/dL5rwDrt+7hLx1e0YpS3eGXyP t0JkfyT6s6uFfnrvKUlQeg5986WxbgjNgW9k49OZ2WnYe1h2a63wLr3+wVNLHhxYeVi+ cVr/rRpNe5qi9xAJgbAS4wz+F/m5h/6bs1Pg9Gp4pJv0u6YR5Os5mo4rDtFMmDVGRdqg mV9PumBuO7n7pq0BGqcSqv8LZBHmHSrBiUHLh5r30gCnPIQD4eQBuRF7R9lU70Z2Qrya BPv7k3OjEz0wu4bOdudXODUuTiaNmL9HNSlfEgvT2VtFycoraariReDYDh+l54zR5U8T kvnA== X-Forwarded-Encrypted: i=1; AJvYcCXKc/VJt5GwafH1m5AwnAaVywjE9aisJQih3tbXran9YdsOMI2qnWuAGt9Zy0mysVb86KezTxtf/B4p12qpDb9FeaFFWzWoluAdgGjsp/PwVieHDu4mVCiejBaw7IagaZHlIlDLPs4= X-Gm-Message-State: AOJu0YxA9a84oFaMBycIMrYrdJmEDomqpaFBDEvT5wYdTOfaSZGAdKw1 cPwBeSFWc4q+hOZjzG+gHbU8V9OzjGCFIE2PLRrAy3ORQ18vRDPVuwtXYw== X-Received: by 2002:a17:90a:1788:b0:2ae:6e16:da91 with SMTP id 98e67ed59e1d1-2bd9f461d5fmr5924366a91.29.1716486749999; Thu, 23 May 2024 10:52:29 -0700 (PDT) Received: from localhost ([2a00:79e1:2e00:1301:e1c5:6354:b45d:8ffc]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bdda058d7asm1825463a91.55.2024.05.23.10.52.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:52:29 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Will Deacon , Rob Clark , Boris Brezillon , iommu@lists.linux.dev (open list:IOMMU SUBSYSTEM), Jason Gunthorpe , Joao Martins , Kevin Tian , Konrad Dybcio , linux-arm-kernel@lists.infradead.org (moderated list:ARM SMMU DRIVERS), linux-kernel@vger.kernel.org (open list), linux-pm@vger.kernel.org (open list:POWER MANAGEMENT CORE), Lu Baolu , Marijn Suijten , "Rafael J. Wysocki" , Robin Murphy , Sean Paul Subject: [PATCH v4 0/2] io-pgtable-arm + drm/msm: Extend iova fault debugging Date: Thu, 23 May 2024 10:52:20 -0700 Message-ID: <20240523175227.117984-1-robdclark@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rob Clark This series extends io-pgtable-arm with a method to retrieve the page table entries traversed in the process of address translation, and then beefs up drm/msm gpu devcore dump to include this (and additional info) in the devcore dump. This is a respin of https://patchwork.freedesktop.org/series/94968/ (minus a patch that was already merged) v2: Fix an armv7/32b build error in the last patch v3: Incorperate Will Deacon's suggestion to make the interface callback based. v4: Actually wire up the callback Rob Clark (2): iommu/io-pgtable-arm: Add way to debug pgtable walk drm/msm: Extend gpu devcore dumps with pgtbl info drivers/gpu/drm/msm/adreno/adreno_gpu.c | 10 +++++ drivers/gpu/drm/msm/msm_gpu.c | 22 +++++++++++ drivers/gpu/drm/msm/msm_gpu.h | 8 ++++ drivers/gpu/drm/msm/msm_iommu.c | 18 +++++++++ drivers/gpu/drm/msm/msm_mmu.h | 5 ++- drivers/iommu/io-pgtable-arm.c | 51 ++++++++++++++++++++----- include/linux/io-pgtable.h | 4 ++ 7 files changed, 108 insertions(+), 10 deletions(-) -- 2.45.1