Re: reservation questions

2018-03-06 Thread Liu, Monk
-devel@lists.freedesktop.org Subject: Re: reservation questions e.g. the excl fence is with the same ctx (but later) of the one in shared list. Well it's not on the same context, but it is guaranteed to not complete before all shared fences. See for example how it is used in amdgpu_copy_b

Re: reservation questions

2018-03-06 Thread Christian König
oenig, Christian *Sent:* Tuesday, March 6, 2018 7:11:50 PM *To:* Liu, Monk *Cc:* dri-devel@lists.freedesktop.org; Chris Wilson *Subject:* Re: reservation questions Hi Monk, your check isn't correct because you still haven't understood the semantics here. the assumption that all shared

Re: reservation questions

2018-03-06 Thread Liu, Monk
From: Koenig, Christian Sent: Tuesday, March 6, 2018 7:11:50 PM To: Liu, Monk Cc: dri-devel@lists.freedesktop.org; Chris Wilson Subject: Re: reservation questions Hi Monk, your check isn't correct because you still haven't understood the semantics

Re: reservation questions

2018-03-06 Thread Christian König
g, Christian; Chris Wilson; dri-devel@lists.freedesktop.org *Subject:* Re: reservation questions ok, that's good point ... *From:* Koenig, Christian *Sent:* Tuesday, March 6, 2018 6:42:44 PM *To:* Liu, Monk; Chris Wilson; dri

Re: reservation questions

2018-03-06 Thread Liu, Monk
ay, March 6, 2018 6:47 PM To: Koenig, Christian; Chris Wilson; dri-devel@lists.freedesktop.org Subject: Re: reservation questions ok, that's good point ... From: Koenig, Christian Sent: Tuesday, March 6, 2018 6:42:44 PM To: Liu, Monk; Chris Wilson; dri-

Re: reservation questions

2018-03-06 Thread Liu, Monk
ok, that's good point ... From: Koenig, Christian Sent: Tuesday, March 6, 2018 6:42:44 PM To: Liu, Monk; Chris Wilson; dri-devel@lists.freedesktop.org Subject: Re: reservation questions Hi Monk, that is to remove the problem that allocating memory could

Re: reservation questions

2018-03-06 Thread Christian König
vation_object_add_shared_fence); *From:* Chris Wilson *Sent:* Tuesday, March 6, 2018 6:10:21 PM *To:* Liu, Monk; dri-devel@lists.freedesktop.org; Koenig, Christian *Subject:* Re: reservation questions Quoting Liu, Monk (2018-03-06 09:45:19) > call reserv

Re: reservation questions

2018-03-06 Thread Christian König
Chris Wilson ; Koenig, Christian *Subject:* Re: reservation questions sorry, I have some mistake in previous thread, correct it as followings. 1) considering below sequence: call reservation_object_add_shared_fence, now assume old->shared_count is now 3 call reservation_object_add_shared_fen

Re: reservation questions

2018-03-06 Thread Liu, Monk
2018 6:10:21 PM To: Liu, Monk; dri-devel@lists.freedesktop.org; Koenig, Christian Subject: Re: reservation questions Quoting Liu, Monk (2018-03-06 09:45:19) > call reservation_object_add_excl_fence, > it set obj->fence->shared_count to 0, and put all shared fence from obj->fence >

Re: reservation questions

2018-03-06 Thread Liu, Monk
_ From: Koenig, Christian Sent: Tuesday, March 6, 2018 6:05:27 PM To: Liu, Monk; dri-devel@lists.freedesktop.org; Chris Wilson Subject: Re: reservation questions Am 06.03.2018 um 10:56 schrieb Liu, Monk: sorry, I have some mistake in previous thread, correct it as followings. 1) considering below s

Re: reservation questions

2018-03-06 Thread Chris Wilson
Quoting Liu, Monk (2018-03-06 09:45:19) > call reservation_object_add_excl_fence, > it set obj->fence->shared_count to 0, and put all shared fence from obj->fence > without waiting signaling. > (this action looks inappropriate, I think at least before put all those shared > fences > we should dma_w

RE: reservation questions

2018-03-06 Thread Liu, Monk
en we add an excl fence to resv, how to deal with shared ? current logic is just put the all do we need to wait on their signaling before putting them ? thanks /Monk From: Liu, Monk Sent: 2018年3月6日 17:57 To: dri-devel@lists.freedesktop.org; Chris Wilson ; Koenig, Christian Subject: Re: reservati

Re: reservation questions

2018-03-06 Thread Christian König
k * * *From:* Liu, Monk *Sent:* Tuesday, March 6, 2018 5:45:19 PM *To:* dri-devel@lists.freedesktop.org; Chris Wilson; Koenig, Christian *Subject:* reservation questions Hi Christian & Chris two question regarding resv:

Re: reservation questions

2018-03-06 Thread Liu, Monk
e in obj->fence is already put. /Monk From: Liu, Monk Sent: Tuesday, March 6, 2018 5:45:19 PM To: dri-devel@lists.freedesktop.org; Chris Wilson; Koenig, Christian Subject: reservation questions Hi Christian & Chris two question regarding resv: 1)

reservation questions

2018-03-06 Thread Liu, Monk
Hi Christian & Chris two question regarding resv: 1) considering below sequence: call reservation_object_add_shared_fence, now assume old->shared_count is now 3 call reservation_object_add_shared_fence, now assume old->shared_count is now 4, call reservation_object_reserve_shared, now obj->stag