<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Christian,</p>
<p><br>
</p>
<p>In fact, the change from spinlock to atomic is quite painful. When I started, I thought it was easy but later I found there might be race condition here and there. Now I think the change looks more robust. In kernel source, there are several other drivers
 used the same trick.</p>
<p><br>
</p>
<p>On the other hand, I think the logic itself might be optimized considering the locking. But I had spent quite some effort to maintain original logic.<br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Alex Bin<br>
</p>
<p><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Christian König <deathsimple@vodafone.de><br>
<b>Sent:</b> Thursday, June 22, 2017 3:35 AM<br>
<b>To:</b> Xie, AlexBin; amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> Re: [PATCH 1/3] drm/amdgpu: fix a typo</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Am 22.06.2017 um 04:42 schrieb Alex Xie:<br>
> Signed-off-by: Alex Xie <AlexBin.Xie@amd.com><br>
<br>
With the commit message fixed as Michel suggested patches #1 and #2 are <br>
Reviewed-by: Christian König <christian.koenig@amd.com> as well.<br>
<br>
On patch #3 Marek needs to take a look, cause I don't know the logic <br>
behind that.<br>
<br>
Regards,<br>
Christian.<br>
<br>
> ---<br>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +-<br>
>   1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c<br>
> index 7635f38..94c27fc 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c<br>
> @@ -494,7 +494,7 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,<br>
>                                 &e->user_invalidated) && e->user_pages) {<br>
>   <br>
>                                /* We acquired a page array, but somebody<br>
> -                              * invalidated it. Free it an try again<br>
> +                              * invalidated it. Free it and try again<br>
>                                 */<br>
>                                release_pages(e->user_pages,<br>
>                                              e->robj->tbo.ttm->num_pages,<br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>