From patchwork Sun May 29 18:35:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 627517 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rHpNn14WDz9sXR for ; Mon, 30 May 2016 04:36:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ffwll.ch header.i=@ffwll.ch header.b=YqTyOFnm; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b75ZH-000831-KL; Sun, 29 May 2016 18:36:07 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b75ZF-00080p-2y for linux-snps-arc@lists.infradead.org; Sun, 29 May 2016 18:36:05 +0000 Received: by mail-wm0-x243.google.com with SMTP id a136so16123260wme.0 for ; Sun, 29 May 2016 11:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UrQqplWl3zPA6KiIO4Z7sLBDQrOblVjAUZB8jsiWl/w=; b=YqTyOFnm7U8qmS0tqAhoWqFV3cuHTZQhLul89/4GOSN3Bx/JaF1574ND9sk9sJd/zy HAaXLI/EuhpSTzqr+OnAEjdpF891rwJXFqb8YBSAs6gmKmUkfwsNmHLuyhUkxuZmWePd P858NflSfL4YuGceTUQOZumIziLmo/MwmTRV0= 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=UrQqplWl3zPA6KiIO4Z7sLBDQrOblVjAUZB8jsiWl/w=; b=Xs2sebSfW2ivgk1eigurFBznAvbyDH4vDwrtGVWvRvZC7qNlsV1wVOMqRif8eyYTew kP8W13xZMlmNTTMK0TheHWqalaLIdwKvCEvsastrTwXQKgdQDNYAeL4hMAunXJFMTlBA nVObzzonbAC7J8BXg/ve9g88GrLou5Md9EJptrTTEMAiPEEP01heTC1O1qgMB3wRGIm+ nrGFnP8uTVL4wsuk5GPzov5Y+aeXmDVQgnb2EsB0J37ZhNdYLo6Hv/0mAc8vfniRFF6q EtgOpKN7oTJYXjjvJN8Omq2ysxxqrGBmur7pux5/9//P1yD83wdPiWDYxSAqOE73iNyc 6+YA== X-Gm-Message-State: ALyK8tIhGRYn+VeXk7jK1KQeupbD4jZE1Xmap/6HOpPdG5zeBRH7zOUhx6GvxWogJtc9/A== X-Received: by 10.28.102.196 with SMTP id a187mr6973813wmc.99.1464546944231; Sun, 29 May 2016 11:35:44 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id h2sm7761550wjv.15.2016.05.29.11.35.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 May 2016 11:35:43 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 15/26] drm/arc: Implement nonblocking commit correctly Date: Sun, 29 May 2016 20:35:12 +0200 Message-Id: <1464546923-13439-16-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1464546923-13439-1-git-send-email-daniel.vetter@ffwll.ch> References: <1464546923-13439-1-git-send-email-daniel.vetter@ffwll.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160529_113605_278391_8565DE68 X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:243 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , Alexey Brodkin , Carlos Palminha , Daniel Vetter , linux-snps-arc@lists.infradead.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Committing with block it is not. Thanks to the fixed up vblank event handling we can just use the helper support for nonblocking commits now. Cc: Carlos Palminha Cc: Alexey Brodkin Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Daniel Vetter --- drivers/gpu/drm/arc/arcpgu_drv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c index d407fd79a400..a92e533531c3 100644 --- a/drivers/gpu/drm/arc/arcpgu_drv.c +++ b/drivers/gpu/drm/arc/arcpgu_drv.c @@ -32,17 +32,11 @@ static void arcpgu_fb_output_poll_changed(struct drm_device *dev) drm_fbdev_cma_hotplug_event(arcpgu->fbdev); } -static int arcpgu_atomic_commit(struct drm_device *dev, - struct drm_atomic_state *state, bool async) -{ - return drm_atomic_helper_commit(dev, state, false); -} - static struct drm_mode_config_funcs arcpgu_drm_modecfg_funcs = { .fb_create = drm_fb_cma_create, .output_poll_changed = arcpgu_fb_output_poll_changed, .atomic_check = drm_atomic_helper_check, - .atomic_commit = arcpgu_atomic_commit, + .atomic_commit = drm_atomic_helper_commit, }; static void arcpgu_setup_mode_config(struct drm_device *drm)