public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tom Lendacky <thomas.lendacky@amd.com>
To: Vishnu Pratap Singh <vishnu.ps@samsung.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: show_mem producing invalid output
Date: Fri, 10 Jul 2015 12:33:04 -0500	[thread overview]
Message-ID: <55A001D0.508@amd.com> (raw)

Hi Vishnu,

Commit 49abd8c28046 ("lib/show_mem.c: add cma reserved information")
causes the following output (last four lines shown):

...
261888 pages RAM
0 pages HighMem/MovableOnly
18446744073709545533 pages reserved
8192 pages cma reserved

The very large "pages reserved" number is obviously invalid and is
the result of the subtraction in the printk where "reserved" is less
than "totalcma_pages".

This is from an arm64 system.

Thanks,
Tom

             reply	other threads:[~2015-07-10 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10 17:33 Tom Lendacky [this message]
     [not found] <47.BF.25195.F5743A55@epcpsbgx4.samsung.com>
2015-07-13 13:36 ` show_mem producing invalid output Tom Lendacky

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=55A001D0.508@amd.com \
    --to=thomas.lendacky@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vishnu.ps@samsung.com \
    /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