From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Ohad Sharabi <osharabi@habana.ai>
Cc: intel-xe@lists.freedesktop.org, obitton@habana.ai, kelbaz@habana.ai
Subject: Re: [PATCH v2] drm/xe/oa: Don't use hardcoded values
Date: Sun, 21 Jul 2024 08:11:46 -0700 [thread overview]
Message-ID: <87frs2dbkd.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20240721071335.101234-1-osharabi@habana.ai>
On Sun, 21 Jul 2024 00:13:35 -0700, Ohad Sharabi wrote:
>
> The current implementation uses hardcoded values instead of common defines.
>
> v2:
> - Make the commit a regular commit instead of a fixup commit
> - slightly modify commit message
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
> ---
> drivers/gpu/drm/xe/xe_oa.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
> index 6d69f751bf78..3ef92eb8fbb1 100644
> --- a/drivers/gpu/drm/xe/xe_oa.c
> +++ b/drivers/gpu/drm/xe/xe_oa.c
> @@ -641,7 +641,7 @@ static void xe_oa_store_flex(struct xe_oa_stream *stream, struct xe_lrc *lrc,
> u32 offset = xe_bo_ggtt_addr(lrc->bo);
>
> do {
> - bb->cs[bb->len++] = MI_STORE_DATA_IMM | BIT(22) /* GGTT */ | 2;
> + bb->cs[bb->len++] = MI_STORE_DATA_IMM | MI_SDI_GGTT | MI_SDI_NUM_DW(1);
> bb->cs[bb->len++] = offset + flex->offset * sizeof(u32);
> bb->cs[bb->len++] = 0;
> bb->cs[bb->len++] = flex->value;
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-07-21 15:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-21 7:13 [PATCH v2] drm/xe/oa: Don't use hardcoded values Ohad Sharabi
2024-07-21 7:19 ` ✓ CI.Patch_applied: success for " Patchwork
2024-07-21 7:19 ` ✓ CI.checkpatch: " Patchwork
2024-07-21 7:20 ` ✓ CI.KUnit: " Patchwork
2024-07-21 7:32 ` ✓ CI.Build: " Patchwork
2024-07-21 7:34 ` ✓ CI.Hooks: " Patchwork
2024-07-21 7:35 ` ✓ CI.checksparse: " Patchwork
2024-07-21 7:55 ` ✓ CI.BAT: " Patchwork
2024-07-21 9:00 ` ✗ CI.FULL: failure " Patchwork
2024-07-21 15:11 ` Dixit, Ashutosh [this message]
2024-07-22 5:36 ` [PATCH v2] " Dixit, Ashutosh
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=87frs2dbkd.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=kelbaz@habana.ai \
--cc=obitton@habana.ai \
--cc=osharabi@habana.ai \
/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