Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp422020lqm; Wed, 1 May 2024 05:07:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVT8sl+KFydLKH3lYZJY9Ec9tmMVq1MQ4CE0MX0/5cTnGX5g7WMV6Jb2YpEx6kNpvPHzZGqjQ5VTr40aFZU2/fg4UB6KDW2rEfcdQUaGw== X-Google-Smtp-Source: AGHT+IHqMZEvUdMxErHvoqCbqwtL5Rirh0UXppKml9yD1RWnS04WF99pp0xn0YsNVsNFSzejPvJL X-Received: by 2002:a05:6214:62e:b0:6a0:c8de:f78b with SMTP id a14-20020a056214062e00b006a0c8def78bmr2327207qvx.24.1714565269703; Wed, 01 May 2024 05:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714565269; cv=pass; d=google.com; s=arc-20160816; b=by7Di7pYd3gQjYWoa8ZOEzeN0fnDgMh9Mi/7JOhMJXeomzRzR2a+1Z7g3gj3E5oa0E bi9bOEtNcx41Wua1kUxhWfODPJkFZQj47MdrWjKI6o6G2RZkcmme1k20uiyZqeKHj6yL NDHQAv/AAVubB3oLGG5LdNpOTQEXOn8pvWSoc2vQnPGPQxondSR1T21aAE1p7f6KwzCd /A653R8xFEaEZixVxKV5jJvKBD5JVZHcQTJ7v/J1+hIWpKQikv9/IgeddkGKuJiFOGHD YabD2AaQnkTckAs5yzvIElLELZ7uBucRBv4vnQ3a6JK82JnM479EZowYVYh99skr8VCq C5TA== 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; bh=BTOQ2Q1R3Evah53a4Y8lQIjUlDiQf+ZrS+xwKr9y1bc=; fh=9BRLvA6WpQx7+lB0BcLLP2+7aa3svnAXAizl30440Rc=; b=HVWinM0AP8fKRKkRiohH+j495+yhs9sqf8akbyYHlNywt96UlG1EdUSGesdqK5waTh wo9QjBR4XgniEEki/1fay8YqMx5kmEKuUDYP+7pdXANtrBQNZLCpMRQiEXtLs6IherL9 G6VHrDapT2rSSK629gIUtDzMXMmVScYP6zRhQP8srgi5KFL8wKBiG5M5vDXLgVSy7YLj vbvcHiEJKzm8WNTMJfjPNnXh7mDWAVUzYF0ihbAXhWS41VViaetwBRTA+NMaU0TUSGGF //e5lBqVF9Gu93RFKt4bVgG64CTPDX0BRUBAty+qv9CyFFazH0J7+B9FZfaVsTkgYPH0 EPQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-165211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ib15-20020a0562141c8f00b006a0846da5d6si21286854qvb.559.2024.05.01.05.07.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-165211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 6F74B1C213B2 for ; Wed, 1 May 2024 12:07:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E4C384D22; Wed, 1 May 2024 12:07:42 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D240C83CB0; Wed, 1 May 2024 12:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714565261; cv=none; b=VU+t1W1CKAqeNeoI1vdQEqxCXJYnyzI/Qh0fKMh5jIh2A6+y0CsO5qsAoY4w+W0x2xwWdG9oNyfX4i3tqbWSqkL4bEGLxdw7TVTvWQZety56A6sCXv0WlhcaquR/dVILEyUfBivMDZ5a5mbco7pIXM5X45ngav42rTbxernGQmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714565261; c=relaxed/simple; bh=KRSiba1Wfe1AyV1Ikzz7ypfhE6bSK4FEWZ0s092Z/9c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MBFZIYCjRuh+mgYefTgCBbRVoujcIDALXF6ys3ieXIhWSd7uTNzB3JMJe8ThMEe6ZU4SEGwW+q80VUNNUJ8DRRcjsKMuBx28+nMqlLLz4SNomlg/kz6y4fsue5/RETtTWHB3yor09uDOgPIJtBwlglWk8BbFyCpVgT6xZSmgDhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CE03C113CC; Wed, 1 May 2024 12:07:38 +0000 (UTC) Date: Wed, 1 May 2024 13:07:36 +0100 From: Catalin Marinas To: Maxwell Bland Cc: linux-mm@kvack.org, Will Deacon , Jonathan Corbet , Andrew Morton , Ard Biesheuvel , Mark Rutland , Christophe Leroy , Alexandre Ghiti , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ptdump: add intermediate directory support Message-ID: References: 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: On Tue, Apr 30, 2024 at 11:05:01AM -0500, Maxwell Bland wrote: > Add an optional note_non_leaf parameter to ptdump, causing note_page to > be called on non-leaf descriptors. Implement this functionality on arm64 > by printing table descriptors along with table-specific permission sets. > > For arm64, break (1) the uniform number of columns for each descriptor, > and (2) the coalescing of large PTE regions, which are now split up by > PMD. This is a "good" thing since it makes the behavior and protection > bits set on page tables, such as PXNTable, more explicit. > > Before: > 0xffff008440210000-0xffff008440400000 1984K PTE ro NX SHD AF NG UXN M... > 0xffff008440400000-0xffff008441c00000 24M PMD ro NX SHD AF NG BLK UXN... > 0xffff008441c00000-0xffff008441dc0000 1792K PTE ro NX SHD AF NG UXN M... > 0xffff008441dc0000-0xffff00844317b000 20204K PTE RW NX SHD AF NG UXN ... > > After (tabulation omitted and spaces condensed): > 0xffff0fb640200000-0xffff0fb640400000 2M PMD TBL RW x NXTbl UXNTbl ME... > 0xffff0fb640200000-0xffff0fb640210000 64K PTE RW NX SHD AF NG UXN MEM... > 0xffff0fb640210000-0xffff0fb640400000 1984K PTE ro NX SHD AF NG UXN M... > 0xffff0fb640400000-0xffff0fb641c00000 24M PMD BLK ro SHD AF NG NX UXN... > 0xffff0fb641c00000-0xffff0fb641e00000 2M PMD TBL RW x NXTbl UXNTbl ME... > 0xffff0fb641c00000-0xffff0fb641dc0000 1792K PTE ro NX SHD AF NG UXN M... > 0xffff0fb641dc0000-0xffff0fb641e00000 256K PTE RW NX SHD AF NG UXN ME... > > v3: > - Added tabulation to delineate entries > - Fixed formatting issues with mailer and rebased to mm/linus > > v2: > - Rebased onto linux-next/akpm (the incorrect branch) > > Signed-off-by: Maxwell Bland > --- > Thank you again to the maintainers for your review of this patch. > > To Andrew Morton, I apologize for the malformatted patches last week.It > will hopefully never happen again. I have tested mailing this patch to > myself and have confirmed it cleanly merges to mm/linus. > > Documentation/arch/arm64/ptdump.rst | 184 +++++++++++++--------- > arch/arm64/mm/ptdump.c | 230 +++++++++++++++++++++++++--- > include/linux/ptdump.h | 1 + > mm/ptdump.c | 13 ++ > 4 files changed, 332 insertions(+), 96 deletions(-) Is this v3 replacing v2 here: https://lore.kernel.org/r/20240423142307.495726312-1-mbland@motorola.com or it goes on top? The patch versioning and subject change confuses me. -- Catalin