From patchwork Wed Jun 1 22:06:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 628885 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 3rKkxy5B7Mz9t5Q for ; Thu, 2 Jun 2016 08:08:06 +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=AN8MOhJR; 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 1b8EJ3-0001hO-8N; Wed, 01 Jun 2016 22:08:05 +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 1b8EJ1-0001XD-BS for linux-snps-arc@lists.infradead.org; Wed, 01 Jun 2016 22:08:04 +0000 Received: by mail-wm0-x243.google.com with SMTP id n184so10069442wmn.1 for ; Wed, 01 Jun 2016 15:07:42 -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=AN8MOhJRZVf7q+d/MksoEVYRptdbGJynMGpOSgQa+HGlsoiW1nEWozEpoFX1rRRr3l kdYem6P/tYOHb2R9Ig5WI7gJ0dR0WfRj/utCePwF2ufDKGLv43z7Qa0rIWkt0wgl19WH RrMchnMvbKqBkT8I06Bh6m3vE/IJrYgKyj5nE= 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=dvgeqxRYweXPhyRDXah9+VUnoM2qukUF7/Kk4wrTq/IA7sy/RSBIma+4wS6l2N1GWW VcDIlz38rPo5khiSKFxUynLB1pFegF6GsMTH81xNb0ixtfH3zJDs1LlQnmSn+ReWIJEX gGGJ/WEcWmFcvtY8BkW+7VWorm36gICnATzeh137SKUVqcRI6hLY4lbIPfZQOeOQW26n nGEEICs0G6uFgy6CNoJjGoXhMI3kmn2p46N3Ap9hcR8HLSuqZOqPa52CAuKKC1URbtw/ B2e9JsiZoDz7t3mbkjFYiRnOa5oAuOn4imY7+fi5ECPVK/d4OfStsTsaGwj1JULrFznp GvDw== X-Gm-Message-State: ALyK8tJVQfBIHbp1YCGYxXl/feJVpmWtiQQFoyxhYf66jmi53PMs5n/GJDmIKhbmdeVnHA== X-Received: by 10.28.59.193 with SMTP id i184mr5829331wma.73.1464818861655; Wed, 01 Jun 2016 15:07:41 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id lf7sm1571508wjb.23.2016.06.01.15.07.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 15:07:40 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 24/38] drm/arc: Implement nonblocking commit correctly Date: Thu, 2 Jun 2016 00:06:47 +0200 Message-Id: <1464818821-5736-25-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1464818821-5736-1-git-send-email-daniel.vetter@ffwll.ch> References: <1464818821-5736-1-git-send-email-daniel.vetter@ffwll.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160601_150803_545056_857F31CC X-CRM114-Status: GOOD ( 10.70 ) 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)