Message ID | 20240826171546.6777-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 4CE36C5321E for <linux-arm-kernel@archiver.kernel.org>; Mon, 26 Aug 2024 17:17:12 +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=Vcql72JPQTQ2OTkoapF5mbW4vnMiQPQvKYGW7HfPhkQ=; b=uTZkTtypxtC2nInmNmK8n8awQq GTuMFL+uDvA7iv+rgkChlCjrSpCEuM+GM9QXbIxeC+WChHou4NaENsLDkh7xwsME6SiWWthHSydWk SssSbbpyBEzzhDuZ7ZKo/mpUmBKadzGN4SiC/LHpfktcdyL7NNCjLtrkuVHsRCM0OTMSJkHIORCEx 6/ENnDoa/G11Q+CBxUgXFkomHoJfeFa058oYtH/5aNBpaXRMoDzvjdxIT1eQZhZbhfE9bJcfl1AVh r6vC7Z8fJo9Cdgk+YeLPES/G1VQK64gkkScJ7A1V96rHN9e7w9aoepb4U/8Xv+OVbNSvjoCRuF+hZ DFrN+KLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sidKt-00000008ANd-3G3B; Mon, 26 Aug 2024 17:16:59 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sidJr-00000008A5y-2Z66 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 17:16:03 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-71430e7eaf8so3545039b3a.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 26 Aug 2024 10:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724692554; x=1725297354; 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=Vcql72JPQTQ2OTkoapF5mbW4vnMiQPQvKYGW7HfPhkQ=; b=ZndGP8l/3fFqevWM14SN1BZ6fyHb10SHHR9aWNqwI8raUL7+CuqeHi7uxCGtVUlKYk J+a1XRoXEpcKxBZnF2D03DBRACkYLvqLDyC1J9yzJYQEE17GGBHs8vRKtt6sB0bZSRHK LWHSoPq80xWrbsdPd4X1EM1IRq4AG4GwGqSFBuR4/I+lVcSzoI8yVqof7pUgbm0zRCeZ NaFZv6WHC9r0Q1G+pmoY9KSVCtdwUPU3SHgd/9blhLCAMtlHexaricBbvSHMb/1cBdGK 8q1+Cv8h42zjJuS8OOrSg2D20PhxZOVa3/gAgsBHvdwkQ9fT/CCcjrwbmAiCfma4H4MN l+vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724692554; x=1725297354; 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=Vcql72JPQTQ2OTkoapF5mbW4vnMiQPQvKYGW7HfPhkQ=; b=lm+6BNEU2m4QQS2yvbtfjBwud1wQjtfttCZIeNow6y5/OQN+IEKmf+M5JAcU57IrVD /peEiqz7wL949FC65JUAziWIuzc70GrFotB2ecTX3V1NVJW6wdwTWgg4O0mdGDMiun0F uPdk6uTHP+brtVpXjr4xIWkZurcFPviEXom6gHE10BPcTh3wXJnIQ+O29YYvfJdXIZLF Zgm6DMY/MMwbOZi4nDzRyOdtvaZEKrIUBW9arbS8nJP4CWjlVOxkd6rVk6xPsWLtqnwj fKF28rPXAYVr2UKG5znGPJf7rIGhqfCHEDYoGnnzD+7pn0gun3Zj61zX6x2/2o888eHM LnyQ== X-Forwarded-Encrypted: i=1; AJvYcCUU+NJhE654xIFR1MMvxnqsp8Rs68AD7vW9lNoTIkluoqTg0OB2qhCXMSaBrG8u8iLJCKYa5To2q4N/Bh9QLR4q@lists.infradead.org X-Gm-Message-State: AOJu0Yy77aI7Cz2jr48zB9k4qMpV7kBMfHYHyKb1ODqc4ykeWQxHY8NU s5xHWXHzHQ4gBYkitetFInYNRzomczUpR4dn/qGnw2rrzvD8eR0i X-Google-Smtp-Source: AGHT+IHqCiVZD8k41tBXvr0tubaCtVb1j37tqzR+PZ1WdzT88DIUTlpRPwV6ErHFhiO0ftk2Eidn8w== X-Received: by 2002:a05:6a20:4f89:b0:1cc:bb4e:a905 with SMTP id adf61e73a8af0-1ccbb4ea95amr1234779637.1.1724692553998; Mon, 26 Aug 2024 10:15:53 -0700 (PDT) Received: from localhost ([2a00:79e1:2e00:1301:12e9:d196:a1e9:ab67]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7cd9acdca6asm6761815a12.48.2024.08.26.10.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 10:15:53 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: iommu@lists.linux.dev Cc: Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Rob Clark <robdclark@chromium.org>, Boris Brezillon <boris.brezillon@collabora.com>, dri-devel@lists.freedesktop.org (open list:DRM DRIVER for Qualcomm Adreno GPUs), freedreno@lists.freedesktop.org (open list:DRM DRIVER for Qualcomm Adreno GPUs), Jason Gunthorpe <jgg@ziepe.ca>, Joao Martins <joao.m.martins@oracle.com>, Kevin Tian <kevin.tian@intel.com>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-arm-kernel@lists.infradead.org (moderated list:ARM SMMU DRIVERS), linux-arm-msm@vger.kernel.org (open list:DRM DRIVER for Qualcomm Adreno GPUs), 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>, Ryan Roberts <ryan.roberts@arm.com>, Sean Paul <sean@poorly.run> Subject: [PATCH v8 0/4] io-pgtable-arm + drm/msm: Extend iova fault debugging Date: Mon, 26 Aug 2024 10:15:37 -0700 Message-ID: <20240826171546.6777-1-robdclark@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_101555_839942_144176C8 X-CRM114-Status: GOOD ( 11.32 ) 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 v7: Re-use the pgtable walker added for arm_lpae_read_and_clear_dirty() v8: Pass pte pointer to callback so it can modify the actual pte Rob Clark (4): iommu/io-pgtable-arm: Make pgtable walker more generic iommu/io-pgtable-arm: Re-use the pgtable walk for iova_to_phys 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 | 147 +++++++++++++++--------- include/linux/io-pgtable.h | 15 +++ 7 files changed, 158 insertions(+), 56 deletions(-)