From: Arunpravin Paneer Selvam <arunpravin.paneerselvam@amd.com>
To: "Christian König" <christian.koenig@amd.com>,
"Ma Jun" <Jun.Ma2@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/buddy: Fix drm buddy info output format
Date: Mon, 7 Aug 2023 18:16:51 +0530 [thread overview]
Message-ID: <7da03cc3-eb0d-4f97-1f3f-e38f1f862039@amd.com> (raw)
In-Reply-To: <ed0b3a5c-9e81-6fee-aba1-5d1c9ca89130@amd.com>
[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]
looks good to me as well.
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
On 8/7/2023 12:17 PM, Christian König wrote:
> Am 04.08.23 um 08:56 schrieb Ma Jun:
>> [1] Change pages to blocks to avoid confusion.
>> [2] Fix output format to align the output info.
>>
>> Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
>
> Of hand looks good to me, but Arun should probably judge.
>
> Christian.
>
>> ---
>> drivers/gpu/drm/drm_buddy.c | 8 ++++----
>> 1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_buddy.c b/drivers/gpu/drm/drm_buddy.c
>> index 3d1f50f481cf..ef3dd15c334a 100644
>> --- a/drivers/gpu/drm/drm_buddy.c
>> +++ b/drivers/gpu/drm/drm_buddy.c
>> @@ -781,15 +781,15 @@ void drm_buddy_print(struct drm_buddy *mm,
>> struct drm_printer *p)
>> count++;
>> }
>> - drm_printf(p, "order-%d ", order);
>> + drm_printf(p, "order-%2d ", order);
>> free = count * (mm->chunk_size << order);
>> if (free < SZ_1M)
>> - drm_printf(p, "free: %lluKiB", free >> 10);
>> + drm_printf(p, "free: %8llu KiB", free >> 10);
>> else
>> - drm_printf(p, "free: %lluMiB", free >> 20);
>> + drm_printf(p, "free: %8llu MiB", free >> 20);
>> - drm_printf(p, ", pages: %llu\n", count);
>> + drm_printf(p, ", blocks: %llu\n", count);
>> }
>> }
>> EXPORT_SYMBOL(drm_buddy_print);
>
[-- Attachment #2: Type: text/html, Size: 3413 bytes --]
prev parent reply other threads:[~2023-08-07 12:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-04 6:56 [PATCH] drm/buddy: Fix drm buddy info output format Ma Jun
2023-08-07 6:47 ` Christian König
2023-08-07 12:46 ` Arunpravin Paneer Selvam [this message]
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=7da03cc3-eb0d-4f97-1f3f-e38f1f862039@amd.com \
--to=arunpravin.paneerselvam@amd.com \
--cc=Jun.Ma2@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.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