From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: Matthew Brost <matthew.brost@intel.com>
Subject: Re: [PATCH 1/2] drm/xe/guc: Allow to initialize submission with limited set of IDs
Date: Tue, 21 May 2024 09:33:48 +0530 [thread overview]
Message-ID: <409f498a-d1b0-4b4a-82a6-2386c6707485@intel.com> (raw)
In-Reply-To: <20240520212330.2436-2-michal.wajdeczko@intel.com>
On 21-05-2024 02:53, Michal Wajdeczko wrote:
> While PF and native drivers may initialize submission code to use
> all available GuC contexts IDs, the VF driver may only use limited
> number of IDs. Update init function to accept number of context
> IDs available for use.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc.c | 2 +-
> drivers/gpu/drm/xe/xe_guc_submit.c | 4 ++--
> drivers/gpu/drm/xe/xe_guc_submit.h | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index e52b544ac690..807ad53449e4 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -358,7 +358,7 @@ int xe_guc_init_post_hwconfig(struct xe_guc *guc)
>
> guc_init_params_post_hwconfig(guc);
>
> - ret = xe_guc_submit_init(guc);
> + ret = xe_guc_submit_init(guc, ~0);
> if (ret)
> return ret;
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 4efb88e3e056..9a7885a9b4c1 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -278,7 +278,7 @@ static void primelockdep(struct xe_guc *guc)
> fs_reclaim_release(GFP_KERNEL);
> }
>
> -int xe_guc_submit_init(struct xe_guc *guc)
> +int xe_guc_submit_init(struct xe_guc *guc, unsigned int num_ids)
Please add a kernel doc.
> {
> struct xe_device *xe = guc_to_xe(guc);
> struct xe_gt *gt = guc_to_gt(guc);
> @@ -288,7 +288,7 @@ int xe_guc_submit_init(struct xe_guc *guc)
> if (err)
> return err;
>
> - err = xe_guc_id_mgr_init(&guc->submission_state.idm, ~0);
> + err = xe_guc_id_mgr_init(&guc->submission_state.idm, num_ids);
> if (err)
> return err;
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.h b/drivers/gpu/drm/xe/xe_guc_submit.h
> index 4275b7da9df5..4ad5f4c1b084 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.h
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.h
> @@ -12,7 +12,7 @@ struct drm_printer;
> struct xe_exec_queue;
> struct xe_guc;
>
> -int xe_guc_submit_init(struct xe_guc *guc);
> +int xe_guc_submit_init(struct xe_guc *guc, unsigned int num_ids);
>
> int xe_guc_submit_reset_prepare(struct xe_guc *guc);
> void xe_guc_submit_reset_wait(struct xe_guc *guc);
next prev parent reply other threads:[~2024-05-21 4:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 21:23 [PATCH 0/2] Custom GuC initialization if VF Michal Wajdeczko
2024-05-20 21:23 ` [PATCH 1/2] drm/xe/guc: Allow to initialize submission with limited set of IDs Michal Wajdeczko
2024-05-21 4:03 ` Ghimiray, Himal Prasad [this message]
2024-05-20 21:23 ` [PATCH 2/2] drm/xe/vf: Custom GuC initialization if VF Michal Wajdeczko
2024-05-20 21:30 ` John Harrison
2024-05-20 21:50 ` Michal Wajdeczko
2024-05-20 22:04 ` John Harrison
2024-05-20 21:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-20 21:29 ` ✓ CI.checkpatch: " Patchwork
2024-05-20 21:30 ` ✓ CI.KUnit: " Patchwork
2024-05-20 21:41 ` ✓ CI.Build: " Patchwork
2024-05-20 21:44 ` ✓ CI.Hooks: " Patchwork
2024-05-20 21:45 ` ✓ CI.checksparse: " Patchwork
2024-05-20 22:15 ` ✓ CI.BAT: " Patchwork
2024-05-21 0:28 ` ✗ 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=409f498a-d1b0-4b4a-82a6-2386c6707485@intel.com \
--to=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=michal.wajdeczko@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