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 \(Arm\)" X-Patchwork-Id: 59681 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3625947lbb; Wed, 13 Jan 2016 13:52:22 -0800 (PST) X-Received: by 10.98.64.6 with SMTP id n6mr44486pfa.41.1452721942214; Wed, 13 Jan 2016 13:52:22 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id hz1si4463098pac.132.2016.01.13.13.52.21; Wed, 13 Jan 2016 13:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org 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" 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); }