Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2151287pxt; Sun, 8 Aug 2021 13:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydmxno4EgXi4DBKlQvZxnOIuSQ3NP3D4+b+btGysZ9z/yIMVchtFZ28yayyhVYtmiA15XN X-Received: by 2002:a92:1944:: with SMTP id e4mr145095ilm.186.1628454332540; Sun, 08 Aug 2021 13:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628454332; cv=none; d=google.com; s=arc-20160816; b=LsXeoNzKPuYELduTqkPJR80cKatzi5z4NWwmpLMBThlkWhx51nzaa2pqE8nTQGaXl4 Qog8IEv/PbiUqkpXPjmsJUQwA8JYioI56vebx/FGtAa9OB/1LeH443+LBuEjA20u5iur /Dko34LPC+J5XRYyBTmW02nqEJIm71YyiXyNDGvEdIYu6jWTXuTNs44N7qPDF2IYpKuA 7hZDQ1BcQa9bbUsu6nyvjxKBDxyHTcpBYJVL0HYeJTx5/nE1W9G8kR4vk5b49N6fO8Ry 5Mp1B3j5tlMfmDH1+lmIwZCw+2b4bAdD47abpkmw318O/17nragH5IsO0+43vBHUrEGD YFwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=h2d3IinhTSliHxhSFP7VzqO30B17cgoGQmH0LPS4Uh4=; b=OIy2gBdvg+smO1+lUd4TiA2E3TwPbX5E7dNX0USq7GLQTxXFNF9OXPQa55l4qhwIWe cITbtbz7bDqv80cTX+tGd1eg2iKDzhRsXUafzcT6j/NF04568VxPb7/xK6VVkpLyQpsF eNT2Esm/MMACXwIAgX1Nb3SZ58RCXb4+ZZKtPWkDbR3zVGNA8+qDEaxMJ6zoyvizuCuJ wP5Tg9sRcfL6tu4hbb53xUnmf8QhGk8tI4uJSLOedTR+PY372/wSbifSr8sQs3KL6cr5 M0UUfxLnyytOJi1Oq/D5IbUoitywYBZgq10vaNmipq3jqxTMAZHGXnb0AUyG3COBO7+O GOUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si15953518iow.19.2021.08.08.13.25.21; Sun, 08 Aug 2021 13:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230201AbhHHUPt (ORCPT + 99 others); Sun, 8 Aug 2021 16:15:49 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:42088 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhHHUPs (ORCPT ); Sun, 8 Aug 2021 16:15:48 -0400 Received: from [192.168.1.18] ([90.126.253.178]) by mwinf5d25 with ME id f8FT2500A3riaq2038FTyY; Sun, 08 Aug 2021 22:15:28 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 08 Aug 2021 22:15:28 +0200 X-ME-IP: 90.126.253.178 Subject: Re: [PATCH 3/8] drm/ingenic: Use standard drm_atomic_helper_commit_tail To: Paul Cercueil Cc: David Airlie , Daniel Vetter , "H . Nikolaus Schaller" , Paul Boddie , list@opendingux.net, Sam Ravnborg , linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210808134526.119198-1-paul@crapouillou.net> <20210808134526.119198-4-paul@crapouillou.net> From: Christophe JAILLET Message-ID: <0571e7f1-86b2-e673-6347-abf2d79da4c8@wanadoo.fr> Date: Sun, 8 Aug 2021 22:15:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 08/08/2021 à 22:09, Paul Cercueil a écrit : > Hi Christophe, > > Le dim., août 8 2021 at 21:50:04 +0200, Christophe JAILLET > a écrit : >> Le 08/08/2021 à 15:45, Paul Cercueil a écrit : >>> By making the CRTC's .vblank_enable() function return an error when it >>> is known that the hardware won't deliver a VBLANK, we can drop the >>> ingenic_drm_atomic_helper_commit_tail() function and use the standard >>> drm_atomic_helper_commit_tail() function instead. >>> >>> Signed-off-by: Paul Cercueil >>> --- >>>   drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 28 ++++------------------- >>>   1 file changed, 4 insertions(+), 24 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >>> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >>> index bc71ba44ccf4..3ed7c27a8dde 100644 >>> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >>> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >>> @@ -706,29 +706,6 @@ static int >>> ingenic_drm_encoder_atomic_check(struct drm_encoder *encoder, >>>       } >>>   } >>>   -static void ingenic_drm_atomic_helper_commit_tail(struct >>> drm_atomic_state *old_state) >>> -{ >>> -    /* >>> -     * Just your regular drm_atomic_helper_commit_tail(), but only >>> calls >>> -     * drm_atomic_helper_wait_for_vblanks() if priv->no_vblank. >>> -     */ >>> -    struct drm_device *dev = old_state->dev; >>> -    struct ingenic_drm *priv = drm_device_get_priv(dev); >>> - >>> -    drm_atomic_helper_commit_modeset_disables(dev, old_state); >>> - >>> -    drm_atomic_helper_commit_planes(dev, old_state, 0); >>> - >>> -    drm_atomic_helper_commit_modeset_enables(dev, old_state); >>> - >>> -    drm_atomic_helper_commit_hw_done(old_state); >>> - >>> -    if (!priv->no_vblank) >>> -        drm_atomic_helper_wait_for_vblanks(dev, old_state); >>> - >>> -    drm_atomic_helper_cleanup_planes(dev, old_state); >>> -} >>> >> >> Hi, >> if this function is removed, shouldn't: >>   static struct drm_mode_config_helper_funcs >> ingenic_drm_mode_config_helpers = { >>       .atomic_commit_tail = ingenic_drm_atomic_helper_commit_tail, >>   }; >> be updated as well? >> >> I've not seen it in the serie. > > It is there though :) At the bottom of this very patch. > My email client played me some tricks, apparently! Sorry for the noise. CJ >> Just my 2v. >> CJ > > Cheers, > -Paul > > >