Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Subject: [PATCH 0/4] Introduce GuC context ID Manager
Date: Wed, 10 Jan 2024 18:46:18 +0100	[thread overview]
Message-ID: <20240110174622.409-1-michal.wajdeczko@intel.com> (raw)

While we are already managing GuC IDs directly in GuC submission
code, using bitmap() for MLRC and ida() for SLRC, this code can't
be easily extended to meet additional requirements for SR-IOV use
cases, like limited number of IDs available on VFs, or ID range
reservation for provisioning VFs by the PF.

Michal Wajdeczko (4):
  drm/xe/guc: Move GUC_ID_MAX definition to GuC ABI header
  drm/xe/guc: Introduce GuC context ID Manager
  drm/xe/kunit: Add basic tests for GuC context ID Manager
  drm/xe/guc: Use GuC ID Manager in submission code

 drivers/gpu/drm/xe/Makefile                   |   1 +
 drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c | 136 ++++++++
 drivers/gpu/drm/xe/xe_guc_fwif.h              |   2 +
 drivers/gpu/drm/xe/xe_guc_id_mgr.c            | 292 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_id_mgr.h            |  22 ++
 drivers/gpu/drm/xe/xe_guc_submit.c            |  37 +--
 drivers/gpu/drm/xe/xe_guc_types.h             |  21 +-
 drivers/gpu/drm/xe/xe_uc.c                    |   5 +
 8 files changed, 479 insertions(+), 37 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_guc_id_mgr_test.c
 create mode 100644 drivers/gpu/drm/xe/xe_guc_id_mgr.c
 create mode 100644 drivers/gpu/drm/xe/xe_guc_id_mgr.h


base-commit: d6ef9c52d8d2ae4c85bc598b74a259db081fff26
-- 
2.25.1


             reply	other threads:[~2024-01-10 17:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10 17:46 Michal Wajdeczko [this message]
2024-01-10 17:46 ` [PATCH 1/4] drm/xe/guc: Move GUC_ID_MAX definition to GuC ABI header Michal Wajdeczko
2024-01-22  3:15   ` Matthew Brost
2024-01-10 17:46 ` [PATCH 2/4] drm/xe/guc: Introduce GuC context ID Manager Michal Wajdeczko
2024-01-22  3:53   ` Matthew Brost
2024-03-13 22:09     ` Michal Wajdeczko
2024-01-10 17:46 ` [PATCH 3/4] drm/xe/kunit: Add basic tests for " Michal Wajdeczko
2024-01-10 17:46 ` [PATCH 4/4] drm/xe/guc: Use GuC ID Manager in submission code Michal Wajdeczko
2024-01-22  4:10   ` Matthew Brost
2024-01-10 22:08 ` ✓ CI.Patch_applied: success for Introduce GuC context ID Manager Patchwork
2024-01-10 22:09 ` ✗ CI.checkpatch: warning " Patchwork
2024-01-10 22:10 ` ✓ CI.KUnit: success " Patchwork
2024-01-10 22:17 ` ✓ CI.Build: " Patchwork
2024-01-10 22:18 ` ✓ CI.Hooks: " Patchwork
2024-01-10 22:19 ` ✓ CI.checksparse: " Patchwork
2024-01-10 22:56 ` ✗ CI.BAT: failure " Patchwork
2024-01-11 20:30   ` Michal Wajdeczko

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=20240110174622.409-1-michal.wajdeczko@intel.com \
    --to=michal.wajdeczko@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