Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp79634rwr; Wed, 19 Apr 2023 18:15:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YDy8RUIkxZEe9ZwHrt/YJKIuOYsy2/49+GY9ZFtMAlEr/9I9+pN0n2P81ObpZ6GKDCJ2DX X-Received: by 2002:a17:90b:3504:b0:240:7f0d:9232 with SMTP id ls4-20020a17090b350400b002407f0d9232mr36777pjb.3.1681953326935; Wed, 19 Apr 2023 18:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681953326; cv=none; d=google.com; s=arc-20160816; b=DQbMwRsfR6INKOofsdI2tfDnjw5XFr1ODYDQMTMvVL8RJpYlb1yVQ08Obm0N7edBJv qL9DlxuTza5yaPU3TYs/ly1t2kfq+0rmdXRvj1w7ser65byphuIFyhO1JBih1Mn3i+jh ufY0kPZB2TsGuWfCaYBIE9wv7XaPd2fXKMnmI+KBDIb6JaeA/2TwDbsHi0Eg63BKhpGP 119vWHEzp+r2XO9WsSDl6VvoEcaIsiBgLAGolI51bl9LjUJMe4tZFV0OsoPSVypIIzqc YKu5qcEDl6swJC7NYjQFzSJ+gEqx+JF2xQt/V9UjWpoF10afYLgGsKmYgxbVcDVdpFlB 5Row== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=21nptXt3cg+q1Dc02GTtpl0ccYXLvq/yqLo2KDOgpRw=; b=0Hny7aQX5e4oKx20cVpSHkYAmRuASTTW33rEIBeOHb55xVIsBYElZxfwb6E20tX73/ /IPVhOFHjClvWHJuBip5zaFF42mNF9GgOp1u3EcJUpA6Agvgiqyz9L87m3/wfhGioiuy l2zEtm6jg6oF/O559UcIPBkI5mLukMFIUSzxUl5ex+T9V0LmxCorgbKCPH/oP+y3DHga HGbVLnAbWNOIZFp/DcN5JSN5VZrNptiXo+MNzqsTI4E0KXzLouIf3WAtmlxqKz6Oflph 7hgeGc5Wi0E47wtPRdmwshDFkh7SN3CZ/hpHav030vbgPhjzhoN1tSVsDhyjRIaPmAmP oUqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxkJnyU8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a635c11000000b0051909d663desi100651pgb.481.2023.04.19.18.15.14; Wed, 19 Apr 2023 18:15:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxkJnyU8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjDTBMl (ORCPT + 99 others); Wed, 19 Apr 2023 21:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbjDTBMj (ORCPT ); Wed, 19 Apr 2023 21:12:39 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950D044AC for ; Wed, 19 Apr 2023 18:12:31 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id z38so961093ljq.12 for ; Wed, 19 Apr 2023 18:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681953149; x=1684545149; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=21nptXt3cg+q1Dc02GTtpl0ccYXLvq/yqLo2KDOgpRw=; b=fxkJnyU8icPIp/1qZzwMsW4MAEuaR6QIt7EytgE1TnnVWnDpUJ0PgBlPXKAm+cOBgf 3GQPMpv71Q6pQBakCcemnzr7qLRagEBIA22W9DVCQMa62vwLf+hgaOV/7anvdrw+SKaw iLXGJsZyPZ+NPp4lApFtLxZhB2ibaxq2EvcNOY5H2O3HA8KsGpRq5jwDc+fC/iuMEne/ WUnrsRrMFSphEu2RWxa8k7fH3eXutm4Kuudd8fLaAnEGtydGCtjf8ym3LgrX6cVxfsKX B/lPpxI0Ox6B8xv3ekLlr3ZHFCOJ5PeBoaU6VzSFLikDWcbYtEVWafmGq1zRfQKJaBW9 98Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681953149; x=1684545149; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=21nptXt3cg+q1Dc02GTtpl0ccYXLvq/yqLo2KDOgpRw=; b=f3zMmNgluTM1LRT7W3m+s69LxiXT3r+tqwkVR7AQEXCdRwVaKvrmAxUTRMhBXibyVg YewIrXYXkpkgGEFIQiIaN4SOOyNW5K4dWiHRVo2scCszSsy3VL64+9K8o7eRauHFPGCZ shAMaLvFFvFKbJLsbm1ituibx1B5luARGg0D3ekPTA14Z9liSTjTIqQ2HkR2M8TTa58N 9l4sy97/ySTuyVtM/kpKkwvadjtHy31Js15QDA+caCqVAHWCZecbLdwiLANX87SmEprX 9c5TAM9RxJ9/af/YfGd/CuHxPPFnx3CriU17Yz9BSFIyoaChPTpXTuNffPeoxa3gTwFv cgqQ== X-Gm-Message-State: AAQBX9cZrSXKJ0P9xpRyx4JLfPMeJxjJuJZBKVxQzmhBEob9cTkmhEo/ /Y8UZ5Uvqb3Z73FYQvYf/6b5FA== X-Received: by 2002:a2e:834c:0:b0:29b:6ead:6d92 with SMTP id l12-20020a2e834c000000b0029b6ead6d92mr2381880ljh.23.1681953149392; Wed, 19 Apr 2023 18:12:29 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id a21-20020a05651c011500b002a8bc2fb3cesm27546ljb.115.2023.04.19.18.12.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 18:12:28 -0700 (PDT) Message-ID: <8b3d3379-1217-9f48-b761-06bf13169d0f@linaro.org> Date: Thu, 20 Apr 2023 04:12:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [Freedreno] [PATCH v2 15/17] drm/msm/dpu: Merge setup_- and enable_tearcheck pingpong callbacks Content-Language: en-GB To: Marijn Suijten , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Adam Skladowski , Loic Poulain , Bjorn Andersson , Kuogee Hsieh , Robert Foss , Vinod Koul , Rajesh Yadav , Jeykumar Sankaran , Neil Armstrong , Chandan Uddaraju Cc: Archit Taneja , Jami Kettunen , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jordan Crouse , Konrad Dybcio , Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , freedreno@lists.freedesktop.org, Sravanthi Kollukuduru References: <20230411-dpu-intf-te-v2-0-ef76c877eb97@somainline.org> <20230411-dpu-intf-te-v2-15-ef76c877eb97@somainline.org> From: Dmitry Baryshkov In-Reply-To: <20230411-dpu-intf-te-v2-15-ef76c877eb97@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/04/2023 23:21, Marijn Suijten wrote: > These functions are always called consecutively and are best bundled > together for simplicity, especially when the same structure of callbacks > will be replicated later on the interface block for INTF TE support. > The enable_tearcheck(false) case is now replaced with a more obvious > disable_tearcheck(), encapsulating the original register write with 0. > > Suggested-by: Dmitry Baryshkov > Signed-off-by: Marijn Suijten > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 10 ++++------ > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 10 ++++++---- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h | 11 +++++------ > 3 files changed, 15 insertions(+), 16 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry