From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752660AbbCYAA3 (ORCPT ); Tue, 24 Mar 2015 20:00:29 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:35761 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915AbbCYAA1 (ORCPT ); Tue, 24 Mar 2015 20:00:27 -0400 MIME-Version: 1.0 In-Reply-To: References: <1427213239-8775-1-git-send-email-kraxel@redhat.com> Date: Wed, 25 Mar 2015 10:00:25 +1000 Message-ID: Subject: Re: [PATCH] Add virtio gpu driver. From: Dave Airlie To: Daniel Stone Cc: Gerd Hoffmann , virtio-dev@lists.oasis-open.org, "Michael S. Tsirkin" , "open list:ABI/API" , Rusty Russell , open list , "open list:DRM DRIVERS" , "open list:VIRTIO CORE, NET..." , Dave Airlie Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25 March 2015 at 08:50, Daniel Stone wrote: > Hi, > > On 24 March 2015 at 16:07, Gerd Hoffmann wrote: >> +static int virtio_gpu_crtc_page_flip(struct drm_crtc *crtc, >> + struct drm_framebuffer *fb, >> + struct drm_pending_vblank_event *event, >> + uint32_t flags) >> +{ >> + return -EINVAL; >> +} > > I'm not going to lie, I was really hoping the 5th (?) GPU option for > Qemu would support pageflipping. Daniel's comment about conversion to > atomic is relevant, but: do you have a mechanism which allows you to > post updates (e.g. 'start displaying this buffer now please') that > allows you to get events back when they have actually been displayed? Page flip is implemented in a later patch, https://www.kraxel.org/cgit/linux/commit/?h=virtio-gpu&id=1e167e8e964f8e08100d315dd354cc0a4b090841 Since its a long way from an actual display, finding out when something is actually displayed is hard, but when we've posted it to the frontbuffer should be fine. Dave.