From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDB24606A322 for ; Thu, 3 Dec 2026 08:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RaiL4xcx Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FF7810F937; Thu, 3 Dec 2026 08:19:02 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 98ED810F937 for ; Thu, 3 Dec 2026 08:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796285937; x=1827821937; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=4B8rakvd8/qL3MMZeeKNLQjXdGHWguAvtnBNEEdwbuQ=; b=RaiL4xcxRN3xF2MkxyoorAmGsvhMXQGJi3fnXUfTO2YAW3pY9PB2w/zf Plo9X5jQUzGIAJOW2mwwjyHcZ2NxECS6lLYAvhrqSfoZ6pSbiAz7nk381 3VBLcVVQcihr8BCoiosQ9msSL0k95yn3e4+sglTFonNEY27eBNd67780E HqSXnHRcgQSUfMh3f1xnzA4bFiNQiDM5RYZF/kH4wz7I3Xy0ojVOU+gv7 JWLMUDpc6vz0WQttF2XtVzSU4q8ZvtOWNIFJRRfoWXNQ4J+KBtrxGBEIo zEKzNR2SdLw2OOWMS6SgCXAuKLbI/cxTTIUB8imqui8rh5RLwYDa9czf9 Q==; X-CSE-ConnectionGUID: 25NjeqTfQ+y4rl0Top2T8Q== X-CSE-MsgGUID: vW6QxvKlR5Sgf+s0wbHdgA== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5279796" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5279796" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 00:18:57 -0800 X-CSE-ConnectionGUID: ym+eMS6PT0anuQl9DJr+vg== X-CSE-MsgGUID: TVwciLRdQkWq/nSMynCMqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13556112" Received: from soc-5cg43972f8.clients.intel.com (HELO [172.28.182.154]) ([172.28.182.154]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 00:18:55 -0800 Message-ID: <6569a288-61c6-43f1-bff7-e962a264e9c2@linux.intel.com> Date: Thu, 3 Dec 2026 09:18:53 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/4] drm/xe/pf: Allow to configure execution quantum for range of VFs To: =?UTF-8?Q?Pi=C3=B3rkowski=2C_Piotr?= , intel-xe@lists.freedesktop.org References: <20261201162219.22723-1-piotr.piorkowski@intel.com> <20261201162219.22723-3-piotr.piorkowski@intel.com> Content-Language: en-US From: "Bernatowicz, Marcin" In-Reply-To: <20261201162219.22723-3-piotr.piorkowski@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 12/1/2026 5:22 PM, Piórkowski, Piotr wrote: > From: Piotr Piórkowski > > We already have a helper to configure execution quantum for the PF > and all VFs at once. Add a variant that configures only the given > range of VFs, as we will need it to provision VFs using the VGPU > profile, where only VFs defined by the profile shall be provisioned. > > Signed-off-by: Piotr Piórkowski > --- > drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 22 ++++++++++++++++++++++ > drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 2 ++ > 2 files changed, 24 insertions(+) > > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > index 4935936fff946..d84b5279d7ea2 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c > @@ -2288,6 +2288,28 @@ int xe_gt_sriov_pf_config_bulk_set_exec_quantum_locked(struct xe_gt *gt, u32 exe > return pf_bulk_set_exec_quantum(gt, exec_quantum, PFID, 1 + totalvfs); > } > > +/** > + * xe_gt_sriov_pf_config_bulk_set_vfs_exec_quantum_locked() - Configure EQ for many VFs. > + * @gt: the &xe_gt to configure > + * @vfid: starting VF identifier (can't be 0) > + * @num_vfs: number of VFs to provision > + * @exec_quantum: requested execution quantum in milliseconds (0 is infinity) > + * > + * This function can only be called on PF with the master mutex held. > + * > + * Return: 0 on success or a negative error code on failure. > + */ > +int xe_gt_sriov_pf_config_bulk_set_vfs_exec_quantum_locked(struct xe_gt *gt, unsigned int vfid, > + unsigned int num_vfs, u32 exec_quantum) > +{ > + xe_gt_assert(gt, vfid); > + > + if (!num_vfs) > + return 0; > + > + return pf_bulk_set_exec_quantum(gt, exec_quantum, vfid, num_vfs); > +} > + > static int pf_provision_groups_exec_quantums(struct xe_gt *gt, unsigned int vfid, > const u32 *exec_quantums, u32 count) > { > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h > index 0d45dc9672e7b..3927b5f4d46c4 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h > @@ -58,6 +58,8 @@ u32 xe_gt_sriov_pf_config_get_exec_quantum_locked(struct xe_gt *gt, unsigned int > int xe_gt_sriov_pf_config_set_exec_quantum_locked(struct xe_gt *gt, unsigned int vfid, > u32 exec_quantum); > int xe_gt_sriov_pf_config_bulk_set_exec_quantum_locked(struct xe_gt *gt, u32 exec_quantum); > +int xe_gt_sriov_pf_config_bulk_set_vfs_exec_quantum_locked(struct xe_gt *gt, unsigned int vfid, > + unsigned int num_vfs, u32 exec_quantum); > Could you include at least one patch that uses these new helper functions? > void xe_gt_sriov_pf_config_get_groups_exec_quantums(struct xe_gt *gt, unsigned int vfid, > u32 *exec_quantum, u32 max_count);