diff mbox series

drm/etnaviv: fix build error due to change in scheduler struct

Message ID 20180927062739.21156-1-nayan26deshmukh@gmail.com (mailing list archive)
State New, archived
Headers show
Series drm/etnaviv: fix build error due to change in scheduler struct | expand

Commit Message

Nayan Deshmukh Sept. 27, 2018, 6:27 a.m. UTC
The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler
as part of a previous patch.

Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from drm_sched_job
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
---
 drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christian König Sept. 27, 2018, 6:54 a.m. UTC | #1
Am 27.09.2018 um 08:27 schrieb Nayan Deshmukh:
> The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler
> as part of a previous patch.
>
> Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from drm_sched_job
> Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>

Acked-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> index 69e9b431bf1f..e7c3ed6c9a2e 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> @@ -105,7 +105,7 @@ static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)
>   	change = dma_addr - gpu->hangcheck_dma_addr;
>   	if (change < 0 || change > 16) {
>   		gpu->hangcheck_dma_addr = dma_addr;
> -		schedule_delayed_work(&sched_job->work_tdr,
> +		schedule_delayed_work(&sched_job->sched->work_tdr,
>   				      sched_job->sched->timeout);
>   		return;
>   	}
Lucas Stach Sept. 27, 2018, 7:03 a.m. UTC | #2
Am Donnerstag, den 27.09.2018, 08:27 +0200 schrieb Nayan Deshmukh:
> The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler
> as part of a previous patch.
> 
> Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from drm_sched_job
> Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>

Thanks, I guess whoever picked up the patch that gets fixed by this
will pick this into the same tree. Did you also check VC5? I think they
gained a similar timeout extension mechanism.

Acked-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> index 69e9b431bf1f..e7c3ed6c9a2e 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> @@ -105,7 +105,7 @@ static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)
>  	change = dma_addr - gpu->hangcheck_dma_addr;
>  	if (change < 0 || change > 16) {
>  		gpu->hangcheck_dma_addr = dma_addr;
> -		schedule_delayed_work(&sched_job->work_tdr,
> +		schedule_delayed_work(&sched_job->sched->work_tdr,
>  				      sched_job->sched->timeout);
>  		return;
>  	}
Nayan Deshmukh Sept. 27, 2018, 7:12 a.m. UTC | #3
On Thu, Sep 27, 2018, 9:03 AM Lucas Stach <l.stach@pengutronix.de> wrote:

> Am Donnerstag, den 27.09.2018, 08:27 +0200 schrieb Nayan Deshmukh:
> > The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler
> > as part of a previous patch.
> >
> > Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from
> drm_sched_job
> > Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
>
> Thanks, I guess whoever picked up the patch that gets fixed by this
> will pick this into the same tree. Did you also check VC5? I think they
> gained a similar timeout extension mechanism.
>
Thanks. I will have a look at VC5.

Nayan

>
> Acked-by: Lucas Stach <l.stach@pengutronix.de>
>
> > ---
> >  drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> > index 69e9b431bf1f..e7c3ed6c9a2e 100644
> > --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> > +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
> > @@ -105,7 +105,7 @@ static void etnaviv_sched_timedout_job(struct
> drm_sched_job *sched_job)
> >       change = dma_addr - gpu->hangcheck_dma_addr;
> >       if (change < 0 || change > 16) {
> >               gpu->hangcheck_dma_addr = dma_addr;
> > -             schedule_delayed_work(&sched_job->work_tdr,
> > +             schedule_delayed_work(&sched_job->sched->work_tdr,
> >                                     sched_job->sched->timeout);
> >               return;
> >       }
>
>
<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 27, 2018, 9:03 AM Lucas Stach &lt;<a href="mailto:l.stach@pengutronix.de">l.stach@pengutronix.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Donnerstag, den 27.09.2018, 08:27 +0200 schrieb Nayan Deshmukh:<br>
&gt; The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler<br>
&gt; as part of a previous patch.<br>
&gt; <br>
&gt; Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from drm_sched_job<br>
&gt; Signed-off-by: Nayan Deshmukh &lt;<a href="mailto:nayan26deshmukh@gmail.com" target="_blank" rel="noreferrer">nayan26deshmukh@gmail.com</a>&gt;<br>
<br>
Thanks, I guess whoever picked up the patch that gets fixed by this<br>
will pick this into the same tree. Did you also check VC5? I think they<br>
gained a similar timeout extension mechanism.<br></blockquote></div></div><div dir="auto">Thanks. I will have a look at VC5.</div><div dir="auto"><br></div><div dir="auto">Nayan</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Acked-by: Lucas Stach &lt;<a href="mailto:l.stach@pengutronix.de" target="_blank" rel="noreferrer">l.stach@pengutronix.de</a>&gt;<br>
<br>
&gt; ---<br>
&gt;  drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-<br>
&gt;  1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt; <br>
&gt; diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c<br>
&gt; index 69e9b431bf1f..e7c3ed6c9a2e 100644<br>
&gt; --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c<br>
&gt; +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c<br>
&gt; @@ -105,7 +105,7 @@ static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)<br>
&gt;       change = dma_addr - gpu-&gt;hangcheck_dma_addr;<br>
&gt;       if (change &lt; 0 || change &gt; 16) {<br>
&gt;               gpu-&gt;hangcheck_dma_addr = dma_addr;<br>
&gt; -             schedule_delayed_work(&amp;sched_job-&gt;work_tdr,<br>
&gt; +             schedule_delayed_work(&amp;sched_job-&gt;sched-&gt;work_tdr,<br>
&gt;                                     sched_job-&gt;sched-&gt;timeout);<br>
&gt;               return;<br>
&gt;       }<br>
<br>
</blockquote></div></div></div>
Christian König Sept. 27, 2018, 9:28 a.m. UTC | #4
Am 27.09.2018 um 09:03 schrieb Lucas Stach:
> Am Donnerstag, den 27.09.2018, 08:27 +0200 schrieb Nayan Deshmukh:
>> The work_tdr field was moved from drm_sched_job to drm_gpu_scheduler
>> as part of a previous patch.
>>
>> Fixes: 4f07d88d8534 drm/scheduler: remove timeout work_struct from drm_sched_job
>> Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
> Thanks, I guess whoever picked up the patch that gets fixed by this
> will pick this into the same tree. Did you also check VC5? I think they
> gained a similar timeout extension mechanism.

Thanks for pointing that out and yes there is also another reference in 
drivers/gpu/drm/v3d/v3d_sched.c.

Christian.

>
> Acked-by: Lucas Stach <l.stach@pengutronix.de>
>
>> ---
>>   drivers/gpu/drm/etnaviv/etnaviv_sched.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
>> index 69e9b431bf1f..e7c3ed6c9a2e 100644
>> --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
>> +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
>> @@ -105,7 +105,7 @@ static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)
>>   	change = dma_addr - gpu->hangcheck_dma_addr;
>>   	if (change < 0 || change > 16) {
>>   		gpu->hangcheck_dma_addr = dma_addr;
>> -		schedule_delayed_work(&sched_job->work_tdr,
>> +		schedule_delayed_work(&sched_job->sched->work_tdr,
>>   				      sched_job->sched->timeout);
>>   		return;
>>   	}
diff mbox series

Patch

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
index 69e9b431bf1f..e7c3ed6c9a2e 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c
@@ -105,7 +105,7 @@  static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job)
 	change = dma_addr - gpu->hangcheck_dma_addr;
 	if (change < 0 || change > 16) {
 		gpu->hangcheck_dma_addr = dma_addr;
-		schedule_delayed_work(&sched_job->work_tdr,
+		schedule_delayed_work(&sched_job->sched->work_tdr,
 				      sched_job->sched->timeout);
 		return;
 	}