From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Subject: [PATCH 0/3] PF: migration-friendly auto-provisioning
Date: Wed, 5 Nov 2025 19:32:49 +0100 [thread overview]
Message-ID: <20251105183253.863-1-michal.wajdeczko@intel.com> (raw)
Instead of trying very hard to find the largest fair number of GuC
IDs that could be allocated for VFs on the current GT, pick some
smaller rounded down to power-of-two value that is more likely
to be provisioned in the same manner by the other PF instance.
num VFs | num contexts | num doorbells
--------+--------------+--------------
63..32 | 1024 | 4
31..16 | 2048 | 8
15..8 | 4096 | 16
7..4 | 8192 | 32
3..2 | 16384 | 64
1 | 32768 | 128 (regular PF)
1 | 64512 | 240 (admin only PF)
Only if the above values can't be satisfied, fallback to estimated
largest available value.
Michal Wajdeczko (3):
drm/xe/pf: Use migration-friendly context IDs auto-provisioning
drm/xe/pf: Use migration-friendly doorbells auto-provisioning
drm/xe/tests: Add KUnit tests for PF fair provisioning
.../xe/tests/xe_gt_sriov_pf_config_kunit.c | 162 ++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 37 ++++
drivers/gpu/drm/xe/xe_sriov_pf_helpers.h | 11 ++
3 files changed, 210 insertions(+)
create mode 100644 drivers/gpu/drm/xe/tests/xe_gt_sriov_pf_config_kunit.c
--
2.47.1
next reply other threads:[~2025-11-05 18:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 18:32 Michal Wajdeczko [this message]
2025-11-05 18:32 ` [PATCH 1/3] drm/xe/pf: Use migration-friendly context IDs auto-provisioning Michal Wajdeczko
2025-11-06 14:24 ` Piotr Piórkowski
2025-11-06 16:55 ` Michal Wajdeczko
2025-11-05 18:32 ` [PATCH 2/3] drm/xe/pf: Use migration-friendly doorbells auto-provisioning Michal Wajdeczko
2025-11-06 14:39 ` Piotr Piórkowski
2025-11-05 18:32 ` [PATCH 3/3] drm/xe/tests: Add KUnit tests for PF fair provisioning Michal Wajdeczko
2025-11-06 16:09 ` Piotr Piórkowski
2025-11-06 16:59 ` [PATCH v2 " Michal Wajdeczko
2025-11-05 21:28 ` ✗ CI.checkpatch: warning for PF: migration-friendly auto-provisioning Patchwork
2025-11-05 21:30 ` ✓ CI.KUnit: success " Patchwork
2025-11-05 22:46 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-11-06 9:50 ` ✗ Xe.CI.Full: " Patchwork
2025-11-06 17:13 ` ✗ CI.checkpatch: warning for PF: migration-friendly auto-provisioning (rev2) Patchwork
2025-11-06 17:15 ` ✓ CI.KUnit: success " Patchwork
2025-11-06 17:53 ` ✓ Xe.CI.BAT: " Patchwork
2025-11-07 14:52 ` ✗ Xe.CI.Full: failure " 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=20251105183253.863-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