Message ID | 20240717163627.43423-1-robdclark@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B9E1C3DA42 for <linux-arm-kernel@archiver.kernel.org>; Wed, 17 Jul 2024 16:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4TKuZ+LLWKFD2SRhsXU6njcd+7Nl5m44Gcrf0C6YsTI=; b=2hJ586G1HhDdwATn9zhASGDwE1 /aQ8Xv2jhQqDoGHNyJAx4JX53jpjbah+6bahZklV5cACiH4bMmenzi4zYmzP9CMyAwhfMzAbo2mlK 6KQn7pbeMe3OOySVw8Vd2wn8zgBuEt2ikMU0h5lf/B06AwNM9ntBzrvWUz2cwAhXMilnUKYNWiYGF xpoC7pJiNqsDqeVqXDlUGgthxxQS3k0iNQgZzCwHF/H7hH0u7IvYdn+rcqeA4hgklykwiEsTOpDJ0 TciNChNGMc/JBVLncABPlF/y0TavbCgF81po+BqF0366HE4pjaI5zZiSw8PvPf1fg1QM4ziK+2HUa BBJg+wFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sU7eP-0000000EN4o-3FjP; Wed, 17 Jul 2024 16:37:09 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sU7dy-0000000EMx3-2XAK for linux-arm-kernel@lists.infradead.org; Wed, 17 Jul 2024 16:36:49 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1fb3e9e32ffso38196635ad.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 17 Jul 2024 09:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721234201; x=1721839001; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4TKuZ+LLWKFD2SRhsXU6njcd+7Nl5m44Gcrf0C6YsTI=; b=MnMwL4/iuRveScxyRwNLWwFhYRV7HvVNTrStp+tzmPY//9tNP0pX1slYgkDSzs9GmJ LN2QOpww21+72BADlDmlwhmhW6ntncmE0IqXxj7V0rAfUmP6F7vXhScyexisQiEaCkhX D2GcTfmrnuSDiOY3ntKCtfBVIqwmdmCtC/6HcVsvkgvOJ4wHaHJipLm/p3irsecIH0N5 gLYa3Qz3ipo85ZE3e7RfZpEw9wAZJc2lOjhqQrO5fYpCOpC3G896KHKaBLWICH3E1TQ+ L9rvfwq0mYrnA64nDoKhReL3bEhcEp11XM87DbDYMb3zqDp6o0BdO+PmgvJsDPmHACLj WJNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721234201; x=1721839001; 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=4TKuZ+LLWKFD2SRhsXU6njcd+7Nl5m44Gcrf0C6YsTI=; b=Dt5oEPOGc/xk9YkOJYod5wOXDXfPXxNgfYuALcjpacqLcnQxnGQcrsQmo5w0OStX8l ncyRpIWzeMYbDuIQ1B/s0siMWOw53ssKxGVsHbLYZWWcnoE+8yfhJF1U57XXKPmulBxK eXduEv7SEtdz+7Fpq9esGtAUNl/8imWe9fl1FQy/h9PkHR36jTKpqCjHrxIYLm64kLiQ QpQ5YrJ16G76t2/gedFd2aPduoJG64V5KsUGS0YBpz9F7Jh2R20adx0j0lGtamWSVz0Q sZ/vH/epfc5uVGzXd+GrkevVwZB/IBD051HNmPFAWnrl52lsiJiGS/qTf1jz/d1dbcH2 YWJg== X-Forwarded-Encrypted: i=1; AJvYcCVxoBjY8tjc5oZDHAVeCL+StvGssHxLU6cEh4rjSBQUMUwOk1wEzlq4dxqKhaQ0iITVuWUJcZ93BRu2Ob7G4wOp1k2ZjoGTx2+IWDgGip0ha2wwC6w= X-Gm-Message-State: AOJu0YyPDqWobFQs1WcMgnjQC1ud9IAoF3Vx7cbnt52ZgEESnGC2p6cg YrxhT0CXEoYHebQ6UR17LuTaC3DHIonUtTnKYRxJUGE/OskJ8pw2 X-Google-Smtp-Source: AGHT+IHEmLpSAb65L1ZZEAG7DejWL9QRUnhbkb1WfvjNwqFc5ST7wh4b/x5LadbiinMc04M/Mvyhlw== X-Received: by 2002:a17:902:eccc:b0:1fb:6ea1:5e with SMTP id d9443c01a7336-1fc4e562501mr19451975ad.44.1721234201188; Wed, 17 Jul 2024 09:36:41 -0700 (PDT) Received: from localhost ([2a00:79e1:2e00:1301:e1c5:6354:b45d:8ffc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fc0bc27178sm77113815ad.134.2024.07.17.09.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 09:36:40 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: dri-devel@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, iommu@lists.linux.dev, Will Deacon <will@kernel.org>, Rob Clark <robdclark@chromium.org>, Boris Brezillon <boris.brezillon@collabora.com>, Jason Gunthorpe <jgg@ziepe.ca>, Joao Martins <joao.m.martins@oracle.com>, Konrad Dybcio <konrad.dybcio@linaro.org>, 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:SUSPEND TO RAM), Marijn Suijten <marijn.suijten@somainline.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Sean Paul <sean@poorly.run>, Steven Price <steven.price@arm.com> Subject: [PATCH v6 0/2] io-pgtable-arm + drm/msm: Extend iova fault debugging Date: Wed, 17 Jul 2024 09:36:20 -0700 Message-ID: <20240717163627.43423-1-robdclark@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240717_093642_670241_20176921 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
io-pgtable-arm + drm/msm: Extend iova fault debugging
|
expand
|
From: Rob Clark <robdclark@chromium.org> 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 v5: Drop the callback approach v6: Make walk-data struct pgtable specific and rename io_pgtable_walk_data to arm_lpae_io_pgtable_walk_data 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 | 9 +++++++ drivers/gpu/drm/msm/msm_gpu.h | 8 ++++++ drivers/gpu/drm/msm/msm_iommu.c | 22 +++++++++++++++ drivers/gpu/drm/msm/msm_mmu.h | 3 ++- drivers/iommu/io-pgtable-arm.c | 36 ++++++++++++++++++------- include/linux/io-pgtable.h | 17 ++++++++++++ 7 files changed, 95 insertions(+), 10 deletions(-)