Displaying 9 results from an estimated 9 matches for "submit_wq".
Did you mean:
submit_id
2025 Jan 22
5
[PATCH] drm/sched: Use struct for drm_sched_init() params
...m_sched_init(&ring->sched, &amdgpu_sched_ops, NULL,
- DRM_SCHED_PRIORITY_COUNT,
- ring->num_hw_submission, 0,
- timeout, adev->reset_domain->wq,
- ring->sched_score, ring->name,
- adev->dev);
+ params.ops = &amdgpu_sched_ops;
+ params.submit_wq = NULL; /* Use the system_wq. */
+ params.num_rqs = DRM_SCHED_PRIORITY_COUNT;
+ params.credit_limit = ring->num_hw_submission;
+ params.hang_limit = 0;
+ params.timeout = timeout;
+ params.timeout_wq = adev->reset_domain->wq;
+ params.score = ring->sched_score;
+ params.name = ri...
2025 Jan 22
1
[PATCH] drm/sched: Use struct for drm_sched_init() params
...uld we use a struct initializer instead of a
> > memset(0)+field-assignment?
> >
> > struct drm_sched_init_params sched_params = {
Actually, you can even make it const if it's not modified after the
declaration.
> > .ops = &panthor_queue_sched_ops,
> > .submit_wq = group->ptdev->scheduler->wq,
> > .num_rqs = 1,
> > .credit_limit = args->ringbuf_size / sizeof(u64),
> > .hang_limit = 0,
> > .timeout = msecs_to_jiffies(JOB_TIMEOUT_MS),
> > .timeout_wq = group->ptdev->reset.wq,
> > .name = "...
2025 Jan 23
1
[PATCH] drm/sched: Use struct for drm_sched_init() params
...> > > memset(0)+field-assignment?
> > >
> > > struct drm_sched_init_params sched_params = {
>
> Actually, you can even make it const if it's not modified after the
> declaration.
>
> > > .ops = &panthor_queue_sched_ops,
> > > .submit_wq = group->ptdev->scheduler->wq,
> > > .num_rqs = 1,
> > > .credit_limit = args->ringbuf_size / sizeof(u64),
> > > .hang_limit = 0,
> > > .timeout = msecs_to_jiffies(JOB_TIMEOUT_MS),
> > > .timeout_wq = group->ptdev->reset.wq,
&...
2025 Jan 23
0
[PATCH] drm/sched: Use struct for drm_sched_init() params
...common_sched_init(struct drm_sched_init_params *params,
>>>>> struct
>>>>> device *dev)
>>>>> +{
>>>>> + memset(params, 0, sizeof(struct
>>>>> drm_sched_init_params));
>>>>> +
>>>>> + params->submit_wq = NULL; /* Use the system_wq. */
>>>>> + params->num_rqs = DRM_SCHED_PRIORITY_COUNT;
>>>>> + params->credit_limit = 1;
>>>>> + params->hang_limit = 0;
>>>>> + params->timeout = msecs_to_jiffies(500);
>>>>> + para...
2025 Jan 23
2
[PATCH] drm/sched: Use struct for drm_sched_init() params
...entical, except for ops and
> > name.
> > + */
> > +static void
> > +v3d_common_sched_init(struct drm_sched_init_params *params, struct
> > device *dev)
> > +{
> > + memset(params, 0, sizeof(struct drm_sched_init_params));
> > +
> > + params->submit_wq = NULL; /* Use the system_wq. */
> > + params->num_rqs = DRM_SCHED_PRIORITY_COUNT;
> > + params->credit_limit = 1;
> > + params->hang_limit = 0;
> > + params->timeout = msecs_to_jiffies(500);
> > + params->timeout_wq = NULL; /* Use the system_wq. */
>...
2025 Jan 23
0
[PATCH] drm/sched: Use struct for drm_sched_init() params
...rote:
> > On Wed, 22 Jan 2025 15:08:20 +0100
> > Philipp Stanner <phasta at kernel.org> wrote:
> >
> > > ?int drm_sched_init(struct drm_gpu_scheduler *sched,
> > > - ?? const struct drm_sched_backend_ops *ops,
> > > - ?? struct workqueue_struct *submit_wq,
> > > - ?? u32 num_rqs, u32 credit_limit, unsigned int hang_limit,
> > > - ?? long timeout, struct workqueue_struct *timeout_wq,
> > > - ?? atomic_t *score, const char *name, struct device *dev);
> > > + const struct drm_sched_init_params *params);
> >...
2025 Jan 23
0
[PATCH] drm/sched: Use struct for drm_sched_init() params
...wrote:
> > On Wed, 22 Jan 2025 15:08:20 +0100
> > Philipp Stanner <phasta at kernel.org> wrote:
> >
> > > ?int drm_sched_init(struct drm_gpu_scheduler *sched,
> > > - ?? const struct drm_sched_backend_ops *ops,
> > > - ?? struct workqueue_struct *submit_wq,
> > > - ?? u32 num_rqs, u32 credit_limit, unsigned int hang_limit,
> > > - ?? long timeout, struct workqueue_struct *timeout_wq,
> > > - ?? atomic_t *score, const char *name, struct device *dev);
> > > + const struct drm_sched_init_params *params);
> >
&g...
2025 Jan 23
0
[PATCH] drm/sched: Use struct for drm_sched_init() params
...00
> > > > Philipp Stanner <phasta at kernel.org> wrote:
> > > >
> > > > > ?int drm_sched_init(struct drm_gpu_scheduler *sched,
> > > > > - ?? const struct drm_sched_backend_ops *ops,
> > > > > - ?? struct workqueue_struct *submit_wq,
> > > > > - ?? u32 num_rqs, u32 credit_limit, unsigned int hang_limit,
> > > > > - ?? long timeout, struct workqueue_struct *timeout_wq,
> > > > > - ?? atomic_t *score, const char *name, struct device *dev);
> > > > > + const struct drm_s...
2025 Jan 22
1
[PATCH] drm/sched: Use struct for drm_sched_init() params
...; +/*
> + * v3d's scheduler instances are all identical, except for ops and name.
> + */
> +static void
> +v3d_common_sched_init(struct drm_sched_init_params *params, struct device *dev)
> +{
> + memset(params, 0, sizeof(struct drm_sched_init_params));
> +
> + params->submit_wq = NULL; /* Use the system_wq. */
> + params->num_rqs = DRM_SCHED_PRIORITY_COUNT;
> + params->credit_limit = 1;
> + params->hang_limit = 0;
> + params->timeout = msecs_to_jiffies(500);
> + params->timeout_wq = NULL; /* Use the system_wq. */
> + params->score = NUL...