From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>,
Petr Mladek <pmladek@suse.com>,
linux-mm@kvack.org, usama.arif@linux.dev, hughd@google.com,
willy@infradead.org, ryan.roberts@arm.com,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V3] mm: Standardize printing for pgtable entries
Date: Thu, 9 Jul 2026 12:19:32 +0200 [thread overview]
Message-ID: <f59dc8c8-d2e2-47d0-9f26-f2efb23379a8@kernel.org> (raw)
In-Reply-To: <ak9zcbG_WvLpCCzj@ashevche-desk.local>
On 7/9/26 12:09, Andy Shevchenko wrote:
> On Thu, Jul 09, 2026 at 11:12:58AM +0200, David Hildenbrand (Arm) wrote:
>> On 7/9/26 09:40, Andy Shevchenko wrote:
>
>>>
>>> FWIW, you may move these to be after...
>>
>> We generally don't handle it like that in MM. Maybe one day we'll switch over
>> and document it accordingly.
>>
>> For now, having selected patches doing this differently is not any helpful.
>
> Can you elaborate "differently"? Except a big noise and churn in the commit message
> I do not see any benefit of doing the "old" way. Lately I saw some patch-bot messages
> from Andrew, I assume he updates his scripts towards newer tooling, which may be
> a good sign that the (good) changes are still possible.
Take a look at the patches that go upstream from Andrew, where he still adds
additional Cc above his SOB.
We're planning a transition to a different mm model, as Andrew prepares for his
(partial :) ) retirement. We can discuss such things once the time has come, and
come to an agreement within the MM community.
This is not the time to have this discussion again, let's focus on the details
of the patch here, please.
>
> [...]
>
>>>
>>> The above is quite duplicative with what we have in lib/vsprintf.c. Have you considered
>>> using something from there instead? (Yes, it might require some functions to be wrapped
>>> or dropped from static.)
>>
>> Which part in particular do you have in mind?
>>
>> num_to_str() does not apply due to the u128.
>>
>> We could have u128 variant that we would only provide with __SIZEOF_INT128__
>>
>> int num128_to_str(char *buf, int size, u128 num, unsigned int width)
>>
>> And then have the code pass the value instead of a pointer to the value. A bit
>> tricky to handle this based on conditional __SIZEOF_INT128__ support, but could
>> be done.
>>
>> Not sure if that is really what we want here, though. ptval_bytes_to_hex_str()
>> is pretty ... simple :)
>>
>> I didn't immediately spot a replacement for PTVAL_STR_MAX.
>
> I referred mostly to special_hex_number().
Only the .field_width = 2 + 2 * (size) in special_hex_spec() seems a bit related
(although different, because we don't want the leading 0x).
Like Petr says, I don't immediately see how this can easily be reused, but maybe
there is a way @Anshuman, @Petr
--
Cheers,
David
next prev parent reply other threads:[~2026-07-09 10:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 4:43 [PATCH V3] mm: Standardize printing for pgtable entries Anshuman Khandual
2026-07-09 7:40 ` Andy Shevchenko
2026-07-09 9:12 ` David Hildenbrand (Arm)
2026-07-09 10:09 ` Andy Shevchenko
2026-07-09 10:19 ` David Hildenbrand (Arm) [this message]
2026-07-09 9:15 ` Petr Mladek
2026-07-09 10:11 ` Andy Shevchenko
2026-07-09 10:13 ` Andy Shevchenko
2026-07-09 10:24 ` David Hildenbrand (Arm)
2026-07-09 10:43 ` Andy Shevchenko
2026-07-09 11:12 ` Anshuman Khandual
2026-07-09 11:54 ` Andy Shevchenko
2026-07-10 0:08 ` Andrew Morton
2026-07-10 3:10 ` Anshuman Khandual
2026-07-10 3:32 ` Andrew Morton
2026-07-10 8:16 ` David Hildenbrand (Arm)
2026-07-11 4:58 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f59dc8c8-d2e2-47d0-9f26-f2efb23379a8@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=anshuman.khandual@arm.com \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pmladek@suse.com \
--cc=ryan.roberts@arm.com \
--cc=usama.arif@linux.dev \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox