From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbb5S-0000A6-4v for qemu-devel@nongnu.org; Mon, 14 Sep 2015 17:14:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbb5R-0002uW-BQ for qemu-devel@nongnu.org; Mon, 14 Sep 2015 17:14:54 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:34132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbb5R-0002u3-2N for qemu-devel@nongnu.org; Mon, 14 Sep 2015 17:14:53 -0400 Received: by obbda8 with SMTP id da8so119001621obb.1 for ; Mon, 14 Sep 2015 14:14:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1442239599.13588.5.camel@redhat.com> Date: Mon, 14 Sep 2015 23:14:52 +0200 Message-ID: From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] virtio-gpu: cursor update not in sync with resource update List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dave Airlie Cc: Gerd Hoffmann , QEMU Hi On Mon, Sep 14, 2015 at 11:08 PM, Dave Airlie wrote: > Currently the kernel driver does this: > > ret =3D virtio_gpu_cmd_transfer_to_host_2d(vgdev, qobj->hw_res_ha= ndle, 0, > cpu_to_le32(64), > cpu_to_le32(64), > 0, 0, &fence); > if (!ret) { > reservation_object_add_excl_fence(qobj->tbo.resv, > &fence->f); > virtio_gpu_object_wait(qobj, false); > } > > before moving the cursor, shouldn't that suffice? > > Do we fail the transfer sometimes? That's apparently not in Gerd tree. --=20 Marc-Andr=C3=A9 Lureau