Message ID | 20240820171652.145673-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 87B56C3DA4A for <linux-arm-kernel@archiver.kernel.org>; Tue, 20 Aug 2024 17:18:02 +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=dx99I4gVjE0nKHxOcEFDps9UKSShAk0pVoAeBRskDVw=; b=Ph0mNy4VsdBjn1Qn8ifxaJ6eZ2 TiTO3kRcr0zyY9NvNCWxik4mQ+TRdHgKeWgL1fA3/fRGeWgx7kVfhz+0+PUcvRNU7dOmAe+v5LjxT n6YgfA1BzbuRT0u8w8skN2Lk5mIRXsH9nhjDnIFAq12VvMQC1jJOy8uRVezzrlFB+RcOsgRihsmIJ 6wPEEiUzA5TJBL/zUwXbkwRLuEGKA07jVuD7umn1gzihQ+BcM0NMWECfaHEojGYwyjg101ptjCGcr BGqkVmXhkquxCFD8HpqqInnV0W4uw3IBM7ptQxPZFKxcm0FLJxYGC0fW066DUl4M6egH7grRYjYcB OCcuGJWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgSUR-000000068ii-0Nbz; Tue, 20 Aug 2024 17:17:51 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgSTi-000000068Ve-2tID for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 17:17:08 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7c1324be8easo4692528a12.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 20 Aug 2024 10:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724174225; x=1724779025; 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=dx99I4gVjE0nKHxOcEFDps9UKSShAk0pVoAeBRskDVw=; b=KdG1d9ni4do1dFUwyWgQSdJsjUOB1KxTdfxAnBJ0Zq2mh7A90KhAUfZmyf7kGq9a60 HelZCMj0O60dXSHd7T99uaNZ4+4W4kLvhaTt391HiC0ZSDuy1RJ0Ve7DM0zdafCz13Oz uXqcF/vP/IBEZiplg52QXEtMJL/FmQe6WTtSYVGleVGF4PsRgiLjFfT71iN5fCyXVYmw oGO3V72J408QAgvNz5Imzj8+i1ZjqNyPsQMQ2QVQ7a1fEfaMzcHzWzmzzFVJ1uockwqg GwQJgHtRxbDYxe/ktKUBLvsCfOYNfheDZ/tW6sSDTnk4p9j+TiA/K2CRMy08tWZ4ev9n QxbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724174225; x=1724779025; 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=dx99I4gVjE0nKHxOcEFDps9UKSShAk0pVoAeBRskDVw=; b=LHadKpw3UQbHWOf8gwMiKFcFb6qGvFcVwBkzgG7GXRUn3p7BEYv+r/t9nSPX89sx9N 1nZsP+aKYAsikuZovD9thtyTLGR5pW3ubKGAmdlXFft5hZm6/OODUxuEWoCsuGbd4bxM vsCy8bHynBSD3NLrDyOKDIZZTgR3DDfzD5w6qeZTjXA9yVJ0wcf12gl3G0S90lbcb1Wj cIlL5TNK5jNvpS7x3a4uEj+enwC4a7VzZWYAPLqW+rtfH+6nORKdp32hWCJVvXtzsgTq U1HbcwrjHyn2dalhBcBcWBBoVHgSnrRjGoii3YqriqPOwzHl/84Sa2jlKtJuPTT4wK3h Jk/g== X-Forwarded-Encrypted: i=1; AJvYcCXi1Lzk3pTCgopEur8nsDGmCik1Ypm5HGx+2bVVOPyhei5uI8z1ZtoMJdDkPOe8xyzwgRInn3kot4foUboE0TWs@lists.infradead.org X-Gm-Message-State: AOJu0Yy0ZpebCy1mpR65deivLrQ0dZqc+/1TogrbnPqfAcjmPqPCTRJ4 d5nE6jDuozXyXN7EFipVGnVXwZYm8NJ4AzssN5nD48QIloC0fuJw X-Google-Smtp-Source: AGHT+IFqPaVzJwjKdCz+zT/UW2wJpDdZc+xGRDH+xt/ijn6H6ZIBqZtSC9ajtEejlFBlcXFWdHaCwg== X-Received: by 2002:a17:90a:ce08:b0:2ab:8324:1b47 with SMTP id 98e67ed59e1d1-2d47327c70bmr5465287a91.15.1724174224643; Tue, 20 Aug 2024 10:17:04 -0700 (PDT) Received: from localhost ([2a00:79e1:abd:bd02:d0ce:e791:dc08:a375]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d3e3171e01sm9721042a91.30.2024.08.20.10.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 10:17:04 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: iommu@lists.linux.dev Cc: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Mostafa Saleh <smostafa@google.com>, Will Deacon <will@kernel.org>, Rob Clark <robdclark@chromium.org>, Boris Brezillon <boris.brezillon@collabora.com>, dri-devel@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-kernel@vger.kernel.org (open list), linux-pm@vger.kernel.org (open list:SUSPEND TO RAM), Marijn Suijten <marijn.suijten@somainline.org>, Nicolin Chen <nicolinc@nvidia.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Sean Paul <sean@poorly.run> Subject: [PATCH v7 0/4] io-pgtable-arm + drm/msm: Extend iova fault debugging Date: Tue, 20 Aug 2024 10:16:43 -0700 Message-ID: <20240820171652.145673-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-20240820_101706_754427_16D14E52 X-CRM114-Status: GOOD ( 10.85 ) 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() 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(-)