From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: intel-xe@lists.freedesktop.org,
"Lucas De Marchi" <lucas.demarchi@intel.com>,
"Thomas Hellstrom" <thomas.hellstrom@linux.intel.com>,
"Piotr Piórkowski" <piotr.piorkowski@intel.com>,
"Jakub Kolakowski" <jakub1.kolakowski@intel.com>,
"Marcin Bernatowicz" <marcin.bernatowicz@linux.intel.com>
Subject: Re: [PATCH] drm/xe: Enable SR-IOV for PTL
Date: Thu, 6 Feb 2025 17:40:24 -0500 [thread overview]
Message-ID: <Z6U6WDFF1t29Az_t@intel.com> (raw)
In-Reply-To: <20250206214545.940-1-michal.wajdeczko@intel.com>
On Thu, Feb 06, 2025 at 10:45:45PM +0100, Michal Wajdeczko wrote:
> We should now have sufficient changes in the driver to run it on
> PTL platforms in the SR-IOV Physical Function (PF) mode, that would
> allow us to enable SR-IOV Virtual Functions (VFs), and successfully
> probe our driver in the VF mode on enabled VF devices.
>
> To unblock SR-IOV PF mode you need to load xe with modparam:
>
> xe.max_vfs=7
>
> Then to enable VFs it is sufficient to use:
>
> $ echo 7 > /sys/bus/pci/devices/0000:00:02.0/sriov_numvfs
>
> Note that in default auto-provisioning all VFs are allocated with
> some amount of shared resources (like unlimited GPU execution and
> preemption times, fair GGTT space, fair GuC context IDs range, ...)
>
> However with CONFIG_DEBUG_FS enabled it is possible to tweak most
> of the SR-IOV configuration parameters using attributes like:
>
> /sys/kernel/debug/dri/0000:00:02.0/gt0/
> ├── pf
> │ ├── contexts_spare
> │ ├── doorbells_spare
> │ ├── exec_quantum_ms
> │ ├── ggtt_spare
> │ ├── preempt_timeout_us
> │ ├── sched_priority
> │ └── ...
> ├── vf1
> │ ├── contexts_quota
> │ ├── doorbells_quota
> │ ├── exec_quantum_ms
> │ ├── ggtt_quota
> │ ├── preempt_timeout_us
> │ ├── sched_priority
> │ └── ...
> ├── vf2
> │ └── ...
> :
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Cc: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
> ---
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> Cc: Jakub Kolakowski <jakub1.kolakowski@intel.com>
> Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_pci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index e8ef7d6b4db8..6a8e82aff385 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -367,6 +367,7 @@ static const struct xe_device_desc ptl_desc = {
> PLATFORM(PANTHERLAKE),
> .dma_mask_size = 46,
> .has_display = true,
> + .has_sriov = true,
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> .require_force_probe = true,
> };
>
> --
> 2.47.1
>
next prev parent reply other threads:[~2025-02-06 22:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 21:45 [PATCH] drm/xe: Enable SR-IOV for PTL Michal Wajdeczko
2025-02-06 22:40 ` Rodrigo Vivi [this message]
2025-02-06 23:40 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-06 23:40 ` ✓ CI.checkpatch: " Patchwork
2025-02-06 23:42 ` ✓ CI.KUnit: " Patchwork
2025-02-06 23:58 ` ✓ CI.Build: " Patchwork
2025-02-07 0:00 ` ✓ CI.Hooks: " Patchwork
2025-02-07 0:02 ` ✓ CI.checksparse: " Patchwork
2025-02-07 0:21 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-07 6:50 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-07 17:25 ` Michal Wajdeczko
2025-02-07 13:24 ` [PATCH] " Kolakowski, Jakub1
2025-02-07 13:29 ` Bernatowicz, Marcin
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=Z6U6WDFF1t29Az_t@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jakub1.kolakowski@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=marcin.bernatowicz@linux.intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=piotr.piorkowski@intel.com \
--cc=thomas.hellstrom@linux.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