From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: [PATCH v4 2/2] drm/xe/oa: Extend OAM unit hwe assignment for new dGfx
Date: Wed, 29 Jul 2026 16:06:45 -0700 [thread overview]
Message-ID: <20260729230645.3052178-3-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20260729230645.3052178-1-ashutosh.dixit@intel.com>
dGfx vecs hwe's for media version 35.00 and later follow the same
assignment to OAM units as vcs engines.
Bspec: 77977
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index b3acbcd678b7c..cb526de0ef87f 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -2577,10 +2577,11 @@ static u32 __hwe_oam_unit(struct xe_hw_engine *hwe)
return XE_OA_UNIT_INVALID;
else if (!IS_DGFX(gt_to_xe(hwe->gt)))
return XE_OAM_UNIT_SCMI_0;
- else if (hwe->class == XE_ENGINE_CLASS_VIDEO_DECODE)
- return (hwe->instance / 2 & 0x1) + 1;
- else if (hwe->class == XE_ENGINE_CLASS_VIDEO_ENHANCE)
+ else if (hwe->class == XE_ENGINE_CLASS_VIDEO_ENHANCE &&
+ MEDIA_VERx100(gt_to_xe(hwe->gt)) < 3500)
return (hwe->instance & 0x1) + 1;
+ else
+ return (hwe->instance / 2 & 0x1) + 1;
return XE_OA_UNIT_INVALID;
}
--
2.54.0
next prev parent reply other threads:[~2026-07-29 23:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 23:06 [PATCH v4 0/2] drm/xe: Changes for Xe3p_HPM media Ashutosh Dixit
2026-07-29 23:06 ` [PATCH v4 1/2] drm/xe/mcr: Take vcs1/vecs1 into account for first media slice Ashutosh Dixit
2026-07-30 22:30 ` Matt Roper
2026-07-29 23:06 ` Ashutosh Dixit [this message]
2026-07-29 23:14 ` ✓ CI.KUnit: success for drm/xe: Changes for Xe3p_HPM media (rev4) Patchwork
2026-07-29 23:56 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-07-30 4:03 ` ✗ Xe.CI.FULL: " Patchwork
2026-08-03 0:03 ` ✓ CI.KUnit: success for drm/xe: Changes for Xe3p_HPM media (rev5) Patchwork
2026-08-03 0:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-03 1:44 ` ✓ Xe.CI.FULL: " 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=20260729230645.3052178-3-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=umesh.nerlige.ramappa@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