All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format.patch added to mm-unstable branch
@ 2023-06-13 20:03 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-06-13 20:03 UTC (permalink / raw)
  To: mm-commits, vbabka, minchan, iamjoonsoo.kim, quic_yingangl, akpm


The patch titled
     Subject: mm/page_owner/cma: show pfn in cma/page_owner with hex format
has been added to the -mm mm-unstable branch.  Its filename is
     mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Kassey Li <quic_yingangl@quicinc.com>
Subject: mm/page_owner/cma: show pfn in cma/page_owner with hex format
Date: Tue, 13 Jun 2023 17:25:33 +0800

cma: display pfn as well as pfn_to_page(pfn)

page_owner: display pfn in hex rather than decimal

Link: https://lkml.kernel.org/r/20230613092533.15449-1-quic_yingangl@quicinc.com
Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/cma.c        |    4 ++--
 mm/page_owner.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

--- a/mm/cma.c~mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format
+++ a/mm/cma.c
@@ -483,8 +483,8 @@ struct page *cma_alloc(struct cma *cma,
 		if (ret != -EBUSY)
 			break;
 
-		pr_debug("%s(): memory range at %p is busy, retrying\n",
-			 __func__, pfn_to_page(pfn));
+		pr_debug("%s(): memory range at pfn 0x%lx %p is busy, retrying\n",
+			 __func__, pfn, pfn_to_page(pfn));
 
 		trace_cma_alloc_busy_retry(cma->name, pfn, pfn_to_page(pfn),
 					   count, align);
--- a/mm/page_owner.c~mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format
+++ a/mm/page_owner.c
@@ -418,7 +418,7 @@ print_page_owner(char __user *buf, size_
 	pageblock_mt = get_pageblock_migratetype(page);
 	page_mt  = gfp_migratetype(page_owner->gfp_mask);
 	ret += scnprintf(kbuf + ret, count - ret,
-			"PFN %lu type %s Block %lu type %s Flags %pGp\n",
+			"PFN 0x%lx type %s Block %lu type %s Flags %pGp\n",
 			pfn,
 			migratetype_names[page_mt],
 			pfn >> pageblock_order,
_

Patches currently in -mm which might be from quic_yingangl@quicinc.com are

mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-13 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-13 20:03 + mm-page_owner-cma-show-pfn-in-cma-page_onwer-with-hex-format.patch added to mm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.