<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Could you test and review it? On hand, I have no env.<br>
<br>
Regards,<br>
David Zhou<br>
<br>
<p dir="ltr" style="display:inline"><span style="color:#888888"><span style="font-size:0.81em">发自坚果 Pro</span></span></p>
<style type="text/css">
<!--
* body
{padding:0 16px 30px!important;
margin:0!important;
background-color:#ffffff;
line-height:1.4;
word-wrap:break-word;
word-break:normal}
div
{word-wrap:break-word;
word-break:normal}
p
{word-wrap:break-word;
word-break:normal;
text-indent:0pt!important}
span
{word-wrap:break-word;
word-break:normal}
a
{word-wrap:break-word;
word-break:normal}
td
{word-wrap:break-word;
word-break:break-all}
-->
</style>
<div class="x_quote">
<div style="margin:0 0px; font-size:105%"><font color="#629140" style="line-height:1.4"><span>Marek Ol?醟 <maraeo@gmail.com> 于 2017年9月30日 下午11:56写道:</span></font></div>
<br type="attribution">
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">The idea sounds good.<br>
<br>
Marek<br>
<br>
On Sat, Sep 30, 2017 at 3:55 AM, Chunming Zhou <zhoucm1@amd.com> wrote:<br>
> My mean is like the attached, I revert part of yours.<br>
><br>
> Regards,<br>
><br>
> David zhou<br>
><br>
><br>
><br>
> On 2017年09月29日 22:15, Marek Olšák wrote:<br>
>><br>
>> On Fri, Sep 29, 2017 at 4:13 PM, Marek Olšák <maraeo@gmail.com> wrote:<br>
>>><br>
>>> On Fri, Sep 29, 2017 at 4:44 AM, Chunming Zhou <zhoucm1@amd.com> wrote:<br>
>>>><br>
>>>><br>
>>>> On 2017年09月13日 04:42, Marek Olšák wrote:<br>
>>>>><br>
>>>>> From: Marek Olšák <marek.olsak@amd.com><br>
>>>>><br>
>>>>> For amdgpu.<br>
>>>>><br>
>>>>> drm_syncobj_create is renamed to drm_syncobj_create_as_handle, and new<br>
>>>>> helpers drm_syncobj_create and drm_syncobj_get_handle are added.<br>
>>>>><br>
>>>>> Signed-off-by: Marek Olšák <marek.olsak@amd.com><br>
>>>>> ---<br>
>>>>> drivers/gpu/drm/drm_syncobj.c | 49<br>
>>>>> +++++++++++++++++++++++++++++++++++++++----<br>
>>>>> include/drm/drm_syncobj.h | 4 ++++<br>
>>>>> 2 files changed, 49 insertions(+), 4 deletions(-)<br>
>>>>><br>
>>>>> diff --git a/drivers/gpu/drm/drm_syncobj.c<br>
>>>>> b/drivers/gpu/drm/drm_syncobj.c<br>
>>>>> index 0422b8c..0bb1741 100644<br>
>>>>> --- a/drivers/gpu/drm/drm_syncobj.c<br>
>>>>> +++ b/drivers/gpu/drm/drm_syncobj.c<br>
>>>>> @@ -262,8 +262,14 @@ void drm_syncobj_free(struct kref *kref)<br>
>>>>> }<br>
>>>>> EXPORT_SYMBOL(drm_syncobj_free);<br>
>>>>> -static int drm_syncobj_create(struct drm_file *file_private,<br>
>>>>> - u32 *handle, uint32_t flags)<br>
>>>><br>
>>>> You can add a new parameter for passing dma fence, then in patch3, you<br>
>>>> can<br>
>>>> directly use it for AMDGPU_FENCE_TO HANDLE_GET_SYNCOBJ.<br>
>>>><br>
>>>> otherwise the set looks good to me.<br>
>>><br>
>>> Sorry I just pushed this.<br>
>><br>
>> Actually, you commented on a deleted line. The function already has<br>
>> dma_fence among the parameters.<br>
>><br>
>> Marek<br>
><br>
><br>
</div>
</span></font>
</body>
</html>