Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp54425rwr; Wed, 19 Apr 2023 17:52:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2pd+ZqKM5yIgUROJliyRsE47GB8jPqtmvLORVkoYi72sfD75blKygDlxIRGXbpx+lJWE7 X-Received: by 2002:a17:902:ea03:b0:19b:64bb:d546 with SMTP id s3-20020a170902ea0300b0019b64bbd546mr4765317plg.18.1681951936755; Wed, 19 Apr 2023 17:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681951936; cv=none; d=google.com; s=arc-20160816; b=u1OmnjQ2Cg3rSyLsy/MpBIAU4NpUDAGmS/keT5liqxVE5HRns2Sy6irrdBPsS1+9Bc UQhmi1W90h1mF42+Bo2qO9zSJGy1W0GcvJdWiUPFvG0HvNT0CCVRn7bmok2qZ4c60OMc JlupT2rCLyiXC8408xL7pc4qUStR6DPjOpI0+STOD4xeWBw3FhtbWeHrLtNlAqe9uJzP 6NF7mDvyW3EYqlnZAoCkwPE6+NDVvOSXl+qNVT7HH+AmTMxLXbp+R4jOrpkEeZcsb3Vm A/FLtW6TpFH9No+keFEeh16KT/iCl3x441e0s9Bkghyt/rOM0jivpot2nCJaeMwgfdFD hEhQ== 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=nBTNgbwSnEqrTM/8Zo3F3tUjXoH2/yS/Mjd7eOQXnxA=; b=k3GRNfczTVD+xamkFsLuMeodvI5r3dFl16sOozQnsy8we4Nf6KvxzU9FTrJln1fBok F0vyldNVfzQGsMY8JaYRZ+2Y2ylJhf/FAadAfu7pS97rYy+vP+Q0sxJ8gi6Rx/5OX8la ErEl6YJ2DZTtAgPfabCsTigbePTLwAkgPWWwSBKgUV7+Ax2TvcgFPZmBypf6ValEP1lL +l8Q/B3dBE7iJ88Fmqj6tAUyEvdlj0yGsdyS6LNES05cSnDk95TMsQqTMosdVQoH4dGp 6wyuBk6KSuL4EQEpCWuJfAAC3Los6mZGsqXi7RtuDAPJkp9vhEzzPnFZOiCzLiIeqP1d MTzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d4mVL2ra; 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 l12-20020a170903120c00b0019ca1961bc1si288062plh.108.2023.04.19.17.52.02; Wed, 19 Apr 2023 17:52:16 -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=d4mVL2ra; 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 S232395AbjDTAu2 (ORCPT + 99 others); Wed, 19 Apr 2023 20:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232628AbjDTAuM (ORCPT ); Wed, 19 Apr 2023 20:50:12 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767A05FE9 for ; Wed, 19 Apr 2023 17:49:34 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id h4so1013284ljb.2 for ; Wed, 19 Apr 2023 17:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681951771; x=1684543771; 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=nBTNgbwSnEqrTM/8Zo3F3tUjXoH2/yS/Mjd7eOQXnxA=; b=d4mVL2ra6uk1DxPznvuIlP+NohLtEcADu43dZmKn68AbF9I1zDQUZtYdsL9Ka0fhK3 yBoz6Y7I3MnVwjpbhFc9Th4t+ZXspnyWt7Lc6y12HI5yaJ6oqi4MJEWpl1d7uYP8stbM LNKY3VIrY9nuQjCTDZIOnB5RGi61FRnWR7cQ4mUK/Zf7IQ/ucseIb93BUhbJqZoJKQ/m z7tRSVl+KOi6Rk5qzuPo+pDa1Dr99MX2uMLjhsgfGnfHbDtTrro1EULq4qpm9VahfKvA VpcozY7D8YtZNPLSSDC+bUNOOjPLdDTCgCy4RrCInmG9axwD2Gd/JZj5qr3K9X17LUen jbhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681951771; x=1684543771; 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=nBTNgbwSnEqrTM/8Zo3F3tUjXoH2/yS/Mjd7eOQXnxA=; b=OcRMczysmgOKmZPQn2t/AiV8J/UEaFNt3P+T0EF3sFr6u7RkgC81RBrb4yMZSAp2im A/ulMD0qRaQSS2L0xYJ8jZqvAHcxVFP8pv1eqYA5mJkrzWlcR1eWFZUMIo0YD7+X6BUz F65wGEVcr8mRYwKqWLh9nRgoDJAQKjtGM2wMEV3wWUo3aZNnbhF+Ijc+hBAq/Mo4M/bd 3A61HqrRL1CmJ8dvZIGDz8Ohia3owp7zQS/9SyiZ+Ydy1DVez1xlKyG9cgQ4zJjvyoh3 ZNISEK/0hZdYExTKnJVKtRzfdvyN/dqHZ7+qIqa7HRlSwv2BNIZY15tROtMnYtoK2tXZ G2dA== X-Gm-Message-State: AAQBX9cBuPEx2VrywZ2WKDNwH8tCbK3f5wTw4JQTRmF+2HB73DymkMxu 0UaGloW9RGonkMCA9M/zxx0Wfg== X-Received: by 2002:a2e:6e0f:0:b0:2a8:bd3a:d418 with SMTP id j15-20020a2e6e0f000000b002a8bd3ad418mr2264178ljc.52.1681951771044; Wed, 19 Apr 2023 17:49:31 -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 w4-20020a2e9584000000b002a8bae7f9e8sm17599ljh.129.2023.04.19.17.49.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 17:49:30 -0700 (PDT) Message-ID: Date: Thu, 20 Apr 2023 03:49:29 +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: [PATCH v2 09/17] drm/msm/dpu: Move autorefresh disable from CMD encoder to pingpong 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: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jordan Crouse , Archit Taneja , Sravanthi Kollukuduru References: <20230411-dpu-intf-te-v2-0-ef76c877eb97@somainline.org> <20230411-dpu-intf-te-v2-9-ef76c877eb97@somainline.org> From: Dmitry Baryshkov In-Reply-To: <20230411-dpu-intf-te-v2-9-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: > This autorefresh disable logic in the physical command-mode encoder > consumes three callbacks to the pingpong block, and will explode in > unnecessary complexity when the same callbacks need to be called on the > interface block instead to accommodate INTF TE support. To clean this > up, move the logic into the pingpong block under a disable_autorefresh > callback, replacing the aforementioned three get_autorefresh, > setup_autorefresh and get_vsync_info callbacks. > > The same logic will have to be replicated to the interface block when it > receives INTF TE support, but it is less complex than constantly > switching on a "has_intf_te" boolean to choose a callback. > > Suggested-by: Dmitry Baryshkov > Signed-off-by: Marijn Suijten > --- > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 60 ++-------------------- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 47 +++++++++++++++-- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h | 25 ++------- > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 4 ++ > 4 files changed, 57 insertions(+), 79 deletions(-) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry