public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Bai, Zongyao" <zongyao.bai@intel.com>
To: Shuicheng Lin <shuicheng.lin@intel.com>,
	<intel-xe@lists.freedesktop.org>
Cc: Matthew Brost <matthew.brost@intel.com>
Subject: Re: [PATCH] drm/xe/ggtt: Remove duplicate XE_GGTT_FLAGS_64K macro definition
Date: Thu, 26 Mar 2026 15:32:43 -0700	[thread overview]
Message-ID: <af38ac06-e332-486b-8d02-bd566db35916@intel.com> (raw)
In-Reply-To: <20260316222723.1722591-2-shuicheng.lin@intel.com>

LGTM

Reviewed-by:  Zongyao Bai

On 3/16/2026 3:27 PM, Shuicheng Lin wrote:
> XE_GGTT_FLAGS_64K is defined twice in xe_ggtt.c: once at file scope
> (alongside XE_GGTT_FLAGS_ONLINE) and once inside struct xe_ggtt. The
> duplicate inside the struct was originally the only definition when the
> struct lived in xe_ggtt_types.h, but when commit 4f3a998a173b ("drm/xe:
> Open-code GGTT MMIO access protection") added the file-scope definitions
> for both FLAGS_64K and FLAGS_ONLINE, it did not remove the pre-existing
> one inside the struct.
>
> Remove the redundant definition inside struct xe_ggtt, keeping only the
> file-scope pair at the top of the file.
>
> Fixes: 4f3a998a173b ("drm/xe: Open-code GGTT MMIO access protection")
> Cc: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> ---
>   drivers/gpu/drm/xe/xe_ggtt.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
> index 21071b64b09d..68d54ddfcdb1 100644
> --- a/drivers/gpu/drm/xe/xe_ggtt.c
> +++ b/drivers/gpu/drm/xe/xe_ggtt.c
> @@ -115,7 +115,6 @@ struct xe_ggtt {
>   	/** @size: Total usable size of this GGTT */
>   	u64 size;
>   
> -#define XE_GGTT_FLAGS_64K BIT(0)
>   	/**
>   	 * @flags: Flags for this GGTT
>   	 * Acceptable flags:

  parent reply	other threads:[~2026-03-26 22:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16 22:27 [PATCH] drm/xe/ggtt: Remove duplicate XE_GGTT_FLAGS_64K macro definition Shuicheng Lin
2026-03-17  0:10 ` ✓ CI.KUnit: success for " Patchwork
2026-03-17  0:50 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-18  2:58 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-18  3:01   ` Lin, Shuicheng
2026-03-26 22:32 ` Bai, Zongyao [this message]
2026-03-30 22:16   ` [PATCH] " Lin, Shuicheng

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=af38ac06-e332-486b-8d02-bd566db35916@intel.com \
    --to=zongyao.bai@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=shuicheng.lin@intel.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