From patchwork Wed Jan 13 21:52:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 8028541 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A9A8E9F32E for ; Wed, 13 Jan 2016 21:52:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 450D4204D3 for ; Wed, 13 Jan 2016 21:52:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1590320525 for ; Wed, 13 Jan 2016 21:52:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5A866E7D7; Wed, 13 Jan 2016 13:52:20 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABFB76E7D7 for ; Wed, 13 Jan 2016 13:52:19 -0800 (PST) Received: by mail-oi0-f46.google.com with SMTP id w75so71749928oie.0 for ; Wed, 13 Jan 2016 13:52:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lV6B9TyT1ybv2j9m95ed4iP1clmdcmGBva3Ooned/KU=; b=ODWr8jBFU7PIH83S3H8Gx+Qv03xy0a9knnHa57qKYk/zyvDOAhDQDOsXyVLEIUEiMo h2Osk1nKyVYG0OsjGVYHfiBQZchW0jc4YnP2CJuyiPmK5A6KNUVenQJGAvjv06GzldsZ X90wWFYHLaVks359QWNHchryNaxtPF9qxiWLh9TuKbzy3HdvUWL84vHPGnHtBP8EnFqH gWEUe0rZR6ZBXjbBvNNCOXYPSxCBhAtsi2TdspYIpJOP5g4MKSI9Y4fSIAacOG91nYLC 5RLUkcfEx6P7cagDpFZGRSBc4nfR6ZXcg5cychpltkJUp5qP4Nx08puntPx6yF9PK/GN oQmg== X-Gm-Message-State: ALoCoQk76MBmCI2/plwQAP34SBtAA5/Yn9l+gW3XxWnpRW9ZNBu3m+XWXNaJQNwcqKX1W/16nVD/BzaT/Ai20wfvEOO+Ydi0CA== X-Received: by 10.202.211.80 with SMTP id k77mr424232oig.98.1452721939083; Wed, 13 Jan 2016 13:52:19 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id kf2sm1650334oeb.11.2016.01.13.13.52.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jan 2016 13:52:18 -0800 (PST) From: Rob Herring To: Dave Airlie Subject: [PATCH 2/4] drm: virtio-gpu: ensure plane is flushed to host on atomic update Date: Wed, 13 Jan 2016 15:52:08 -0600 Message-Id: <1452721930-14714-3-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452721930-14714-1-git-send-email-robh@kernel.org> References: <1452721930-14714-1-git-send-email-robh@kernel.org> Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This fixes drawing updates when updating planes with atomic API. Signed-off-by: Rob Herring --- drivers/gpu/drm/virtio/virtgpu_plane.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index 6b9ad59..af121cf 100644 --- a/drivers/gpu/drm/virtio/virtgpu_plane.c +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c @@ -84,6 +84,11 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane, plane->state->crtc_h, plane->state->crtc_x, plane->state->crtc_y); + virtio_gpu_cmd_resource_flush(vgdev, handle, + plane->state->crtc_x, + plane->state->crtc_y, + plane->state->crtc_w, + plane->state->crtc_h); }