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 9B2C4606A690 for ; Thu, 3 Dec 2026 09:16:34 +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=a8Qu6PhZ Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CB0B10E0FE; Thu, 3 Dec 2026 09:16:29 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 19E0A10E0FE for ; Thu, 3 Dec 2026 09:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796289383; x=1827825383; h=message-id:date:mime-version:subject:from:to:references: in-reply-to:content-transfer-encoding; bh=OJ3oMC807al6EY4z/s60s4tUcQOvOT+TslKh0K2zUTU=; b=a8Qu6PhZ/opThV5X2pWYY7Ck95UkXFMls2maEKsrCPw/0pZmnFeAG1M/ YaV4ap+SYDYm9XuaiSl0vIaLYIUkxT4Kfnft//611V/gVEmMJziKzcNlu Vht3VXjIWfm9wDDrRR/94uMpoD57vVJSix8pZRukADpXe3v3fd0Wv/hno wWB3XTw1/o5U7++kxZ3TmVqxx8fjYA6VQ0fYA7/B3VgFhOrV1Lc4OF4U3 SCkyDxG1EnLw2VDfWCLsJGBPlpCO+n2dDPAtpYcVYpag5s901/FYL/Sgw FWCwJhqFZuXeAROeDEVNPBXuYG38AWVlCKYb2afnRXYvl8AwcUJaMiZm0 Q==; X-CSE-ConnectionGUID: QbDRdRGNRWy63TTZbJcO+A== X-CSE-MsgGUID: df+9cCw+QsSeXBAPCE+nhw== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5149842" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5149842" Received: from fmviesa012.fm.intel.com ([10.60.135.152]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 01:16:23 -0800 X-CSE-ConnectionGUID: wvMjb4niRJO3N0/0RuQTpg== X-CSE-MsgGUID: hEKuoeKXQvWnM/uiTXgv+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="15410588" 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 01:16:22 -0800 Message-ID: <3bab8997-08b4-47a7-9bd6-242a5f67a130@linux.intel.com> Date: Thu, 3 Dec 2026 10:16:20 +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 From: "Bernatowicz, Marcin" 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> <6569a288-61c6-43f1-bff7-e962a264e9c2@linux.intel.com> Content-Language: en-US In-Reply-To: <6569a288-61c6-43f1-bff7-e962a264e9c2@linux.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/3/2026 9:18 AM, Bernatowicz, Marcin wrote: > > 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); LGTM, Reviewed-by: Marcin Bernatowicz