* [PATCH] drm/nouveau: Remove forgotten TODO
@ 2025-04-09 9:14 Philipp Stanner
2025-04-09 11:02 ` Danilo Krummrich
0 siblings, 1 reply; 4+ messages in thread
From: Philipp Stanner @ 2025-04-09 9:14 UTC (permalink / raw)
To: Lyude Paul, Danilo Krummrich, David Airlie, Simona Vetter
Cc: lists.freedesktop.org, nouveau, linux-kernel, Philipp Stanner
commit ebb945a94bba ("drm/nouveau: port all engines to new engine module
format") introduced a TODO to nouveau_chan.h, stating that an
unspecified rework would take place in the "near future".
Almost 13 years have passed since this "near future", so it can be
safely assumed that the TODO is not needed anymore. Besides, its content
is useless anyways since it does not specify *what* should have been
done.
Remove the TODO.
Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
drivers/gpu/drm/nouveau/nouveau_chan.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.h b/drivers/gpu/drm/nouveau/nouveau_chan.h
index 016f668c0bc1..3b73ec91c4ff 100644
--- a/drivers/gpu/drm/nouveau/nouveau_chan.h
+++ b/drivers/gpu/drm/nouveau/nouveau_chan.h
@@ -33,7 +33,6 @@ struct nouveau_channel {
u64 addr;
} push;
- /* TODO: this will be reworked in the near future */
bool accel_done;
void *fence;
struct {
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] drm/nouveau: Remove forgotten TODO
2025-04-09 9:14 [PATCH] drm/nouveau: Remove forgotten TODO Philipp Stanner
@ 2025-04-09 11:02 ` Danilo Krummrich
2025-07-31 15:46 ` Philipp Stanner
0 siblings, 1 reply; 4+ messages in thread
From: Danilo Krummrich @ 2025-04-09 11:02 UTC (permalink / raw)
To: Philipp Stanner
Cc: Lyude Paul, David Airlie, Ben Skeggs, Simona Vetter,
lists.freedesktop.org, nouveau, linux-kernel
(+ Ben)
On Wed, Apr 09, 2025 at 11:14:14AM +0200, Philipp Stanner wrote:
> commit ebb945a94bba ("drm/nouveau: port all engines to new engine module
> format") introduced a TODO to nouveau_chan.h, stating that an
> unspecified rework would take place in the "near future".
>
> Almost 13 years have passed since this "near future", so it can be
> safely assumed that the TODO is not needed anymore. Besides, its content
> is useless anyways since it does not specify *what* should have been
> done.
>
> Remove the TODO.
>
> Signed-off-by: Philipp Stanner <phasta@kernel.org>
> ---
> drivers/gpu/drm/nouveau/nouveau_chan.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.h b/drivers/gpu/drm/nouveau/nouveau_chan.h
> index 016f668c0bc1..3b73ec91c4ff 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_chan.h
> +++ b/drivers/gpu/drm/nouveau/nouveau_chan.h
> @@ -33,7 +33,6 @@ struct nouveau_channel {
> u64 addr;
> } push;
>
> - /* TODO: this will be reworked in the near future */
> bool accel_done;
After having a brief look, it seems that it may has actually been reworked;
there is only a single use of accel_done, which is in FIRE_RING(), where it is
set to true. But it doesn't seem to be read from anywhere.
So, I think we should remove both, the TODO and the accel_done field.
@Ben: Maybe you remember the history of this.
- Danilo
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/nouveau: Remove forgotten TODO
2025-04-09 11:02 ` Danilo Krummrich
@ 2025-07-31 15:46 ` Philipp Stanner
2025-07-31 15:51 ` Danilo Krummrich
0 siblings, 1 reply; 4+ messages in thread
From: Philipp Stanner @ 2025-07-31 15:46 UTC (permalink / raw)
To: Danilo Krummrich, Philipp Stanner
Cc: David Airlie, Ben Skeggs, Simona Vetter, nouveau, linux-kernel
On Wed, 2025-04-09 at 13:02 +0200, Danilo Krummrich wrote:
> (+ Ben)
>
> On Wed, Apr 09, 2025 at 11:14:14AM +0200, Philipp Stanner wrote:
> > commit ebb945a94bba ("drm/nouveau: port all engines to new engine module
> > format") introduced a TODO to nouveau_chan.h, stating that an
> > unspecified rework would take place in the "near future".
> >
> > Almost 13 years have passed since this "near future", so it can be
> > safely assumed that the TODO is not needed anymore. Besides, its content
> > is useless anyways since it does not specify *what* should have been
> > done.
> >
> > Remove the TODO.
> >
> > Signed-off-by: Philipp Stanner <phasta@kernel.org>
> > ---
> > drivers/gpu/drm/nouveau/nouveau_chan.h | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.h b/drivers/gpu/drm/nouveau/nouveau_chan.h
> > index 016f668c0bc1..3b73ec91c4ff 100644
> > --- a/drivers/gpu/drm/nouveau/nouveau_chan.h
> > +++ b/drivers/gpu/drm/nouveau/nouveau_chan.h
> > @@ -33,7 +33,6 @@ struct nouveau_channel {
> > u64 addr;
> > } push;
> >
> > - /* TODO: this will be reworked in the near future */
> > bool accel_done;
>
> After having a brief look, it seems that it may has actually been reworked;
> there is only a single use of accel_done, which is in FIRE_RING(), where it is
> set to true. But it doesn't seem to be read from anywhere.
>
> So, I think we should remove both, the TODO and the accel_done field.
>
> @Ben: Maybe you remember the history of this.
Since we didn't get an answer – how do we want to continue with that,
Danilo?
P.
>
> - Danilo
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/nouveau: Remove forgotten TODO
2025-07-31 15:46 ` Philipp Stanner
@ 2025-07-31 15:51 ` Danilo Krummrich
0 siblings, 0 replies; 4+ messages in thread
From: Danilo Krummrich @ 2025-07-31 15:51 UTC (permalink / raw)
To: phasta; +Cc: David Airlie, Ben Skeggs, Simona Vetter, nouveau, linux-kernel
On 7/31/25 5:46 PM, Philipp Stanner wrote:
> On Wed, 2025-04-09 at 13:02 +0200, Danilo Krummrich wrote:
>> (+ Ben)
>>
>> On Wed, Apr 09, 2025 at 11:14:14AM +0200, Philipp Stanner wrote:
>>> commit ebb945a94bba ("drm/nouveau: port all engines to new engine module
>>> format") introduced a TODO to nouveau_chan.h, stating that an
>>> unspecified rework would take place in the "near future".
>>>
>>> Almost 13 years have passed since this "near future", so it can be
>>> safely assumed that the TODO is not needed anymore. Besides, its content
>>> is useless anyways since it does not specify *what* should have been
>>> done.
>>>
>>> Remove the TODO.
>>>
>>> Signed-off-by: Philipp Stanner <phasta@kernel.org>
>>> ---
>>> drivers/gpu/drm/nouveau/nouveau_chan.h | 1 -
>>> 1 file changed, 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.h b/drivers/gpu/drm/nouveau/nouveau_chan.h
>>> index 016f668c0bc1..3b73ec91c4ff 100644
>>> --- a/drivers/gpu/drm/nouveau/nouveau_chan.h
>>> +++ b/drivers/gpu/drm/nouveau/nouveau_chan.h
>>> @@ -33,7 +33,6 @@ struct nouveau_channel {
>>> u64 addr;
>>> } push;
>>>
>>> - /* TODO: this will be reworked in the near future */
>>> bool accel_done;
>>
>> After having a brief look, it seems that it may has actually been reworked;
>> there is only a single use of accel_done, which is in FIRE_RING(), where it is
>> set to true. But it doesn't seem to be read from anywhere.
>>
>> So, I think we should remove both, the TODO and the accel_done field.
>>
>> @Ben: Maybe you remember the history of this.
>
> Since we didn't get an answer – how do we want to continue with that,
> Danilo?
Removing the unused accel_done and the corresponding TODO should be fine, let's
do that.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-31 15:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 9:14 [PATCH] drm/nouveau: Remove forgotten TODO Philipp Stanner
2025-04-09 11:02 ` Danilo Krummrich
2025-07-31 15:46 ` Philipp Stanner
2025-07-31 15:51 ` Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox