From: Matthew Auld <matthew.auld@intel.com>
To: Francois Dugast <francois.dugast@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 3/3] drm/xe/gt_pagefault: Change vma_pagefault unit to kilobyte
Date: Tue, 25 Feb 2025 14:04:42 +0000 [thread overview]
Message-ID: <aa69fa7f-3f1f-4f1f-b387-0cde292015f6@intel.com> (raw)
In-Reply-To: <20250225131753.1170520-4-francois.dugast@intel.com>
On 25/02/2025 13:17, Francois Dugast wrote:
> Increase the amount of bytes that can be counted before the counter
> overflows, while not losing information as the VMA is not expected
> to have sub-kilobyte size.
>
> Suggested-by: Matthew Auld <matthew.auld@intel.com>
> Signed-off-by: Francois Dugast <francois.dugast@intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_pagefault.c | 2 +-
> drivers/gpu/drm/xe/xe_gt_stats.c | 2 +-
> drivers/gpu/drm/xe/xe_gt_stats_types.h | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_pagefault.c b/drivers/gpu/drm/xe/xe_gt_pagefault.c
> index 46701ca11ce0..17d69039b866 100644
> --- a/drivers/gpu/drm/xe/xe_gt_pagefault.c
> +++ b/drivers/gpu/drm/xe/xe_gt_pagefault.c
> @@ -137,7 +137,7 @@ static int handle_vma_pagefault(struct xe_gt *gt, struct pagefault *pf,
> bool atomic;
>
> xe_gt_stats_incr(gt, XE_GT_STATS_ID_VMA_PAGEFAULT_COUNT, 1);
> - xe_gt_stats_incr(gt, XE_GT_STATS_ID_VMA_PAGEFAULT_BYTES, xe_vma_size(vma));
> + xe_gt_stats_incr(gt, XE_GT_STATS_ID_VMA_PAGEFAULT_KB, xe_vma_size(vma) / 1024);
Not sure if this will throw a build error on 32b?
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
>
> trace_xe_vma_pagefault(vma);
> atomic = access_is_atomic(pf->access_type);
> diff --git a/drivers/gpu/drm/xe/xe_gt_stats.c b/drivers/gpu/drm/xe/xe_gt_stats.c
> index 83de2ec92fdc..50a1636773d8 100644
> --- a/drivers/gpu/drm/xe/xe_gt_stats.c
> +++ b/drivers/gpu/drm/xe/xe_gt_stats.c
> @@ -14,7 +14,7 @@
> static const char *const stat_description[__XE_GT_STATS_NUM_IDS] = {
> "tlb_inval_count",
> "vma_pagefault_count",
> - "vma_pagefault_bytes",
> + "vma_pagefault_kb",
> };
>
> /**
> diff --git a/drivers/gpu/drm/xe/xe_gt_stats_types.h b/drivers/gpu/drm/xe/xe_gt_stats_types.h
> index b072bd80c4b9..d556771f99d6 100644
> --- a/drivers/gpu/drm/xe/xe_gt_stats_types.h
> +++ b/drivers/gpu/drm/xe/xe_gt_stats_types.h
> @@ -9,7 +9,7 @@
> enum xe_gt_stats_id {
> XE_GT_STATS_ID_TLB_INVAL,
> XE_GT_STATS_ID_VMA_PAGEFAULT_COUNT,
> - XE_GT_STATS_ID_VMA_PAGEFAULT_BYTES,
> + XE_GT_STATS_ID_VMA_PAGEFAULT_KB,
> /* must be the last entry */
> __XE_GT_STATS_NUM_IDS,
> };
next prev parent reply other threads:[~2025-02-25 14:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 13:17 [PATCH 0/3] Minor improvements to GT stats Francois Dugast
2025-02-25 13:17 ` [PATCH 1/3] drm/xe/gt_stats: Detect and log overflow Francois Dugast
2025-02-25 14:07 ` Matthew Auld
2025-02-25 15:41 ` Lucas De Marchi
2025-02-25 15:46 ` Lucas De Marchi
2025-02-25 17:34 ` Francois Dugast
2025-02-25 17:37 ` Matthew Auld
2025-02-25 13:17 ` [PATCH 2/3] drm/xe/gt_stats: Use atomic64_t for counters Francois Dugast
2025-02-25 13:54 ` Matthew Auld
2025-02-25 13:17 ` [PATCH 3/3] drm/xe/gt_pagefault: Change vma_pagefault unit to kilobyte Francois Dugast
2025-02-25 14:04 ` Matthew Auld [this message]
2025-02-25 13:49 ` ✓ CI.Patch_applied: success for Minor improvements to GT stats Patchwork
2025-02-25 13:49 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-25 13:50 ` ✓ CI.KUnit: success " Patchwork
2025-02-25 14:07 ` ✓ CI.Build: " Patchwork
2025-02-25 14:09 ` ✓ CI.Hooks: " Patchwork
2025-02-25 14:11 ` ✓ CI.checksparse: " Patchwork
2025-02-25 14:30 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-25 20:27 ` ✗ Xe.CI.Full: failure " Patchwork
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=aa69fa7f-3f1f-4f1f-b387-0cde292015f6@intel.com \
--to=matthew.auld@intel.com \
--cc=francois.dugast@intel.com \
--cc=intel-xe@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