Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp949417rbd; Thu, 13 Jun 2024 02:10:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEexmvBoWfh4JYhR2W8rkDRBi8i9px6dNhvtkm9cFjgKloOhGtjrQFIxkX9MxZY8QHRi5fdVurASlbDeFj9FRzE0CINxpXxRNRIO1H4Q== X-Google-Smtp-Source: AGHT+IEmHWW4xrAuySOinZBtETxSshJOyKfVkh/1hOIrpxX8Gv2/eCVNb9akCSGmudwnsuA7Uvn3 X-Received: by 2002:a05:620a:450d:b0:795:5316:286d with SMTP id af79cd13be357-797f6113b65mr372838685a.67.1718269854697; Thu, 13 Jun 2024 02:10:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718269854; cv=pass; d=google.com; s=arc-20160816; b=p0TUjGE2bYx6pC43seLi0oJlpi5FpsR3SS1CKNyt8QvCXPcCCrn+6RmZWZQ2tP+D4J oo91a5u7G0Hplxorbs1ZY04pLk/YqX1rRevbdVc8S9+eKaw2EcqevVp3aE7Rqa/CzcR4 BHwq7KYy7a5ID+r2gcda0Wmu2MtL46E1pugTFu9fMf4Eq+RM9T18P2aVhZDVGxU17FDr yOYUmqigZcdPXECn2tJAImTfVWlj02A8gKJ0le/6kQt/wK/OMJU7ixGqxOIp6J+1WhQn G1801Wn0uzJGK0RssUzLqmLTdxWVmNU0aR9icz8cqaoj0wf7LLvRkI+68/DZfzGXM3aO WVEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=n9jaxm5kQkVqHG+HH9v6Rda9sjQ7Qj4IqXmAVHTMYxk=; fh=Suvr1qKveNAxmi8zgGXUU86oVgabJ9Y9LJ7qw7Uh1tU=; b=rLhgtaYdGr61uVzYqUfStCrmSbhG6z9tOUXrNt8J1yGLJsvUkimiJizgFRkXHxICKD L+4YSJNBed7p15Hp3NaCirE4M1s2sdsGNiktsl0opzgx7cZ4Um/T0jl1P6XLKxVTEwAk RMO5O+OdmXOg8XU1OsykSZ8stc05ABQU4LTcMoDJDieOxRscAjshmLFHWJAFga6hXHQH gpVU8HS5xvLWFrTAAFpt73xjL+/b/fxSjZ0AQqSsTwdL7BQ2TQfZMwtzzQfS/Q+Sy3PT C+rmlLfHceX40vx38YD40q6DfNtXT4cDrE0iEa/gnCXFzWfBSV9JI8qdq2iKhpMZsrjo L1Yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=TuJjJkej; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212918-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212918-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798ab9f95c8si91550085a.315.2024.06.13.02.10.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212918-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=TuJjJkej; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212918-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212918-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 70B2E1C22E8F for ; Thu, 13 Jun 2024 09:10:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E56413DBA4; Thu, 13 Jun 2024 09:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b="TuJjJkej" Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F98713DB88; Thu, 13 Jun 2024 09:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.250.239 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269839; cv=none; b=hxk04OyoYyDb47a2I+wcMRu4alLAQnY7CDs01TQgmQGZpig5WOUUZ82MKsk77zsE781vnl50rWUhEONCHHRVWNutGK/ZzsXS1NOXIGVsnxBZ3njeU9IUs7K9XSsGdweWc3/E70eikjWe4Y/+ux6Y2M6Kj1DOK8nrfYsMqH+tgL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269839; c=relaxed/simple; bh=uwgNIsvKzltZ++YyP8KzyRNwS3DxApijGasjMKyMWAU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qlo3TjYwUqdAdXF1OjxMQlVdJdF2rJ5xq/upb/DAG34KCTGAj1ntg+vTlfAdyxzzgMBSrhTGLvbNvbHSskM924XWwj8Vatpd36lV+WLZWH9ieOjq3/1bTQBuI/GgEZ2qfPMRf9FD5GzMG5Fhp96WTqn9bI6+8QeFVf7ftDKBFdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b=TuJjJkej; arc=none smtp.client-ip=85.214.250.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Received: from 8bytes.org (pd9fe9dd8.dip0.t-ipconnect.de [217.254.157.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 0CA191C8182; Thu, 13 Jun 2024 11:10:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1718269836; bh=uwgNIsvKzltZ++YyP8KzyRNwS3DxApijGasjMKyMWAU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TuJjJkejGm0MfLgodYlEkxSB3Ynzcf7M+hp6VHakuN4+1vOgGlqd5oczCJuxEsOGu WqIkjKEwvX2haQyyUhbamusFUYwCEwIIRCIF6VlNfmtASHzYFmsyKRIG6pNAZcLWAd pnJcgXXchWIJBOdBNrJSEPf3B6PIWZ9BgiKB50q/eLtIjLHienBaLr1+0JriUp2iwW xk/7D9LdolUZZ5HhoJPZbmDBRZ1sPVJFbIQcrIIU/1NbVcFDt1gPY6qIkLDBDo8Uvq 6Qd10LFqV3aJzVyIm3o1i+I+IOwZREW/LL6A2t0dHY5MOTvWP1zx9xBezWuv8oVM9D PNrYHh/Swi8LQ== Date: Thu, 13 Jun 2024 11:10:34 +0200 From: Joerg Roedel To: Rob Clark Cc: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Will Deacon , Rob Clark , Robin Murphy , Jason Gunthorpe , Boris Brezillon , Kevin Tian , Joao Martins , "moderated list:ARM SMMU DRIVERS" , "open list:IOMMU SUBSYSTEM" , open list Subject: Re: [PATCH v4 1/2] iommu/io-pgtable-arm: Add way to debug pgtable walk Message-ID: References: <20240523175227.117984-1-robdclark@gmail.com> <20240523175227.117984-2-robdclark@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240523175227.117984-2-robdclark@gmail.com> On Thu, May 23, 2024 at 10:52:21AM -0700, Rob Clark wrote: > From: Rob Clark > > Add an io-pgtable method to walk the pgtable returning the raw PTEs that > would be traversed for a given iova access. > > Signed-off-by: Rob Clark > --- > drivers/iommu/io-pgtable-arm.c | 51 ++++++++++++++++++++++++++++------ > include/linux/io-pgtable.h | 4 +++ > 2 files changed, 46 insertions(+), 9 deletions(-) Acked-by: Joerg Roedel