Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Zhanjun Dong <zhanjun.dong@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Zhanjun Dong <zhanjun.dong@intel.com>,
	Wajdeczko@freedesktop.org, Michal <Michal.Wajdeczko@intel.com>,
	Alan Previn <alan.previn.teres.alexis@intel.com>,
	Matt Roper <matthew.d.roper@intel.com>,
	Stuart Summers <stuart.summers@intel.com>,
	Jose Souza <jose.souza@intel.com>,
	Michal Wajdeczko <michal.wajdeczko@intel.com>
Subject: [PATCH v12 0/1] drm/xe: Add helper macro to loop each DSS
Date: Thu, 14 Mar 2024 14:07:34 -0700	[thread overview]
Message-ID: <20240314210735.258553-1-zhanjun.dong@intel.com> (raw)

Add helper macro to loop each DSS. This is a precursor patch to allow
for easier iteration through MCR registers and other per-DSS uses.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Suggested-by: Wajdeczko, Michal <Michal.Wajdeczko@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Cc: Jose Souza <jose.souza@intel.com>

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>

Changes from prior revs:
v12:Move for_each_dss to xe_gt_topology.h
v11:Optimized for_each_dss_steering macro and removed xe_gt_topology_get_next_dss.
v10:Change macro pointer type for uint to u16.
    Fix macro parameter typo. Updated function kerneldoc text. 
v9: Updated function kerneldoc text.
v8: Chang range check to assertion. Add function kerneldoc
v7: Updated commit message
v6: Optimized for_each_dss_steering macro
v5: Reduced 2 checkpatch warnings
v4: Revert function name with mcr back
v3: Rename functions with mcr removed
v2: Resend with cover letter

Zhanjun Dong (1):
  drm/xe: Add helper macro to loop each DSS

 drivers/gpu/drm/xe/xe_gt_mcr.c      | 34 ++++++++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_gt_mcr.h      | 14 ++++++++++++
 drivers/gpu/drm/xe/xe_gt_topology.c |  3 ---
 drivers/gpu/drm/xe/xe_gt_topology.h | 11 ++++++++++
 drivers/gpu/drm/xe/xe_gt_types.h    |  6 +++--
 5 files changed, 57 insertions(+), 11 deletions(-)

-- 
2.34.1


             reply	other threads:[~2024-03-14 21:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-14 21:07 Zhanjun Dong [this message]
2024-03-14 21:07 ` [PATCH v12 1/1] drm/xe: Add helper macro to loop each DSS Zhanjun Dong
2024-03-14 22:46 ` ✓ CI.Patch_applied: success for drm/xe: Add helper macro to loop each DSS (rev2) Patchwork
2024-03-14 22:46 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-14 22:47 ` ✓ CI.KUnit: success " Patchwork
2024-03-14 22:58 ` ✓ CI.Build: " Patchwork
2024-03-14 23:00 ` ✓ CI.Hooks: " Patchwork
2024-03-14 23:02 ` ✓ CI.checksparse: " Patchwork
2024-03-14 23:29 ` ✓ CI.BAT: " Patchwork
2024-03-14 23:43   ` Matt Roper

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=20240314210735.258553-1-zhanjun.dong@intel.com \
    --to=zhanjun.dong@intel.com \
    --cc=Michal.Wajdeczko@intel.com \
    --cc=Wajdeczko@freedesktop.org \
    --cc=alan.previn.teres.alexis@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jose.souza@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=stuart.summers@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