Message ID | 20240626204033.255813-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 9C433C30653 for <linux-arm-kernel@archiver.kernel.org>; Wed, 26 Jun 2024 20:43:06 +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=AbOHayuQJNiEIov1gYrLNhraOo1uckdkGZa6Izlq/48=; b=gNuv/dNiKtaa9qVsB1tnkCqreF mXSEdwSOn0Sh+yJwSbJBWMPMDelIaHkJHqk6zZA/vcrCTL3iB8ItyoXKG/2SpxMtXJ4FuiAqzZwNl ki+wqeTsjBby/TKatBd/CPuZFYLWM4/55e1DfFNhWw4w4pBFRdN44pdsH8WmkGoVIPuEN2uMSrsED 740kCAGzfJ+fRxKC5bHmDH0PjPUojE4s2cJ+wPJUkgoaBfoRE4mrHgNUBodpyPwSOtWSfTaBuHdEw mKIDxkd5TyhAY2uLk6n1Oa+Zk1hU8mf2tmxiuLdtOPi3J5wSeaHgRFnlFbXLB0A+rKgwqkDgDG7MI hlaEFI/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMZTh-00000008I4E-1esn; Wed, 26 Jun 2024 20:42:53 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMZRZ-00000008H0I-0UN9 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 20:40:43 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-70df2135426so4660773a12.2 for <linux-arm-kernel@lists.infradead.org>; Wed, 26 Jun 2024 13:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719434440; x=1720039240; 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=AbOHayuQJNiEIov1gYrLNhraOo1uckdkGZa6Izlq/48=; b=hCJf0c/mAM3z2rOv/ykGc7DPF417wzdO26hHHuTUyL+YIBtIYwycSERgrDHEor8KAu EAnCwhLdNMOe9B1t605zQfqR1wwZqo9ywteyeXz75onQgkY1ijrgGPD92uP1zmsh7yfN riva+HCqjE2BZxmbufMoleXqfSi27kHh86KoVv8KKRCqEfuBRnRvWyFVuxFLw3E4UNR9 nICi8lTA19yU2MUoVFkRiEJS51vk/rW6c/n/cNbqE0u1u4FTkUfhkHsWK9aZZStSYWX+ aCLRX3/PFKcqH1oVOhjJVB166NpGLhDYVu8dqthizvdiPW2/iWLzp4K3ekuMf93WrCB+ hr5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719434440; x=1720039240; 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=AbOHayuQJNiEIov1gYrLNhraOo1uckdkGZa6Izlq/48=; b=OGtUmt3elg+MVnf5CTV+KkzISXAzyn09LUCCcCGU2PBHYtvqBffFUTbRZpPa5XQJDx FaxPD7BX/wg68+WbR0qlfp+noZzD3eIMui/5yjx9xSU6jv3SmBB9A01yoz4yRkTAL5si Hpg+swag1uLyxpkD539rX+vqEXP7iHXaglqGP0OwUVRuWBhdOT9karIbHb255YXXs4JW BWmKZVbuD1gQcLoa7bcvbz/fOOAVyEwdoqohLfDMCCPe7eCHFawxNo/jkmsXATC8REAb m/RFlXODw3ZOTabwDcXz81/EPh7lZN95lTuklJD6dK9MokghVTWcx7Mijkta78hiF507 S5ug== X-Forwarded-Encrypted: i=1; AJvYcCWQ80XKV5o07MrANLhSBUw+3ofAeVJtWEC7aqC+hRFNRIf+tmgZVNq4AJf74n3lEWNZiPdI90wnG+GgHg4jVTccyqnWDDz/iAYW+dhCvVmzq5HNgR8= X-Gm-Message-State: AOJu0Yz1oPVoxJTsw5/XpcKp2E4q1uIm/Pnw1x/wVB2NpW/zNIdHuQP5 pb+h6j/JalmznKJnl9yotD9p/jSookZWtKQrHi43StWzD+4DEkCe X-Google-Smtp-Source: AGHT+IF3IekAjZVaykmQWQEV/CWbBuXRqd14xzAhjMZ8QLFh0Na24yFedXvOlLwgPR38grbkYKuKzQ== X-Received: by 2002:a05:6a20:6387:b0:1bd:1e0f:efa3 with SMTP id adf61e73a8af0-1bd1e0ff0dbmr5381451637.4.1719434439963; Wed, 26 Jun 2024 13:40:39 -0700 (PDT) Received: from localhost ([2a00:79e1:2e00:1301:e1c5:6354:b45d:8ffc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f9eb323636sm103241125ad.102.2024.06.26.13.40.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 13:40:39 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: iommu@lists.linux.dev Cc: linux-arm-msm@vger.kernel.org, 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>, Joerg Roedel <jroedel@suse.de>, 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:POWER MANAGEMENT CORE), Lu Baolu <baolu.lu@linux.intel.com>, Marijn Suijten <marijn.suijten@somainline.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Sean Paul <sean@poorly.run> Subject: [PATCH v5 0/2] io-pgtable-arm + drm/msm: Extend iova fault debugging Date: Wed, 26 Jun 2024 13:40:25 -0700 Message-ID: <20240626204033.255813-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-20240626_134041_191345_FECD2FF5 X-CRM114-Status: GOOD ( 10.15 ) 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 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 | 25 ++++++++++++++++++ drivers/gpu/drm/msm/msm_mmu.h | 3 ++- drivers/iommu/io-pgtable-arm.c | 34 ++++++++++++++++++------- include/linux/io-pgtable.h | 16 ++++++++++++ 7 files changed, 95 insertions(+), 10 deletions(-)