Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1017735lqa; Sun, 28 Apr 2024 14:45:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZx5Ud8uPToT/CKz1HffyauRMUkbOWjouMj3WkZZ85Ylkb5EiVU+1hYntqriofwjCu85jkLd1TxzFWhG98PTc8Cv7OWCvFW+QyL4uyAw== X-Google-Smtp-Source: AGHT+IG/iePJiBl5lwqLsvvVLB6z4dp1FU1Ir4JhZJPvTDQSe8VArUwFyVu4amS/LHVurP/eZ94n X-Received: by 2002:a05:620a:992:b0:790:f817:faef with SMTP id x18-20020a05620a099200b00790f817faefmr619363qkx.55.1714340724930; Sun, 28 Apr 2024 14:45:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714340724; cv=pass; d=google.com; s=arc-20160816; b=GOVkZjfSfu8H1ND6Sba/EybM4Gsyw4QaYvTXq5kCzpu25bDYIFBTAuihWrnsXIq6ab hWHCd+apu2JX4Si4PP91kNoG7nQEh70sk5/BLSYoXII7G/zZdjFwUmMkaGZN4h6O9vnA tJbE21VqHvv9TTeEw4Ct+jukSPlQtL0ECaOpo6OOht9zY01v8KoUvRAfFNACLsgQjFPP cZiF3Ykey8eMYXfIsksskhEHVkwTNGCjv1LOarqEsH4/HgiQTTFaWumgGGgpPZVjcLJh HHrk4Swp/PYCnmt/lLjIr/ylhTRJgKykWrHtyA7PcXH5/knBinCcYCBrk5/Ip6U0W6r0 48eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=2mYVzIohol6rcyVfz7dPe9M1StazcAGN0RRtySgQKKg=; fh=Qm+GJnbbxPPO9jwOj0UlD/mJoVCnG99JagSzNyrDfAY=; b=Tu7IKlNh/XzOBF9EHX/xemGBAfn0mzRdZPlgqGS6LPTEdK9cDGZngr3xRRTYbWK99t cYvUlhm/KwSKObvEBhaSGEz3Hbl4HExVFcGzAAXx0H4P15IgbaM11glx6u8qJbnq5poJ qLqXUhdxpaigP7P/+PfNdaeBrIX02g+seht65rPDkoTvqiOwhc8DCsih9QSjui1yASP+ ZZe4Mj/9NFscuawpw7AV2xq44G7KMDkCKQ/M/YAqA1tWjfp3kpPo7tTf/BsshX1Zv80P KmlC+Qeo+XEds+rsmv9fp52RBdkG4UhqHdezQnnfBn2oSxm9AygwaeG+tDoAv9sjrXxs DkbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-161581-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161581-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l24-20020a37f518000000b00790f7c9301esi550884qkk.377.2024.04.28.14.45.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 14:45:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161581-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-161581-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161581-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A4FC71C208AF for ; Sun, 28 Apr 2024 21:45:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3A68B661; Sun, 28 Apr 2024 21:45:19 +0000 (UTC) Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [5.144.164.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B2B617D2 for ; Sun, 28 Apr 2024 21:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.164 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714340719; cv=none; b=XLlY+otXjj68TjNQOgJdl9QbCO2WPw+skupGE0PbOjEg6axdawHYwkBLsi19x/1YeVcYtThPImtaN7+GseiBWyqRgTbzuiiWzGJebyEHZuABXTtBkSdmx9iaco9vDjEXtY7S8p1w77fuWqQeM0aycZgKjiTVV67+MrRYue749+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714340719; c=relaxed/simple; bh=kAVP55YO4U/ubSBWbaDMVA8lpzhP6ZAkZbi2R0GkA5E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B6ntfPdwebzJ+kBCic2afhMuXlixnp0PmgbkqMKTFRKkb4fiWNcqgG/RtNvG5xEr1fV2p7sSQz9y/7e/ln+5WQiXgTv0qJEK0rg2O7IsIIofhVyKn9kcfzNIDDy2fT1WRhA5wZKYKW74QD9i5lyy0aUW8E24Qr2Evyukjom5O+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.164 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 9A1D21F62F; Sun, 28 Apr 2024 23:06:35 +0200 (CEST) Date: Sun, 28 Apr 2024 23:06:34 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Archit Taneja , Chandan Uddaraju , Vinod Koul , Sravanthi Kollukuduru , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jordan Crouse , Rajesh Yadav , Jeykumar Sankaran , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen Subject: Re: [PATCH 5/7] drm/msm/dpu: Correct dual-ctl -> dual-intf typo in comment Message-ID: References: <20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-0-78ae3ee9a697@somainline.org> <20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-5-78ae3ee9a697@somainline.org> <76hjmo4sq6sfjgmnvjoienc5aij74pfjtwevnnls65kxinyaxu@y3yydacvcflm> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76hjmo4sq6sfjgmnvjoienc5aij74pfjtwevnnls65kxinyaxu@y3yydacvcflm> On 2024-04-18 02:30:59, Dmitry Baryshkov wrote: > On Wed, Apr 17, 2024 at 01:57:45AM +0200, Marijn Suijten wrote: > > This comment one line down references a single, "same CTL" that controls > > two interfaces, so the comment should clearly describe two interfaces > > used with a single active CTL and not "two CTLs". > > > > Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") > > Signed-off-by: Marijn Suijten > > --- > > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > > index d9e7dbf0499c..7e849fe74801 100644 > > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > > @@ -428,7 +428,7 @@ static void dpu_encoder_phys_vid_enable(struct dpu_encoder_phys *phys_enc) > > dpu_encoder_phys_vid_setup_timing_engine(phys_enc); > > > > /* > > - * For single flush cases (dual-ctl or pp-split), skip setting the > > + * For single flush cases (dual-intf or pp-split), skip setting the > > It should be fixed, but in the other way: it's 'single-ctl'. See > sde_encoder_phys_needs_single_flush(). As written in the cover letter I was unsure about this comment. You are right that sde_encoder_phys_needs_single_flush() is supposed to return true in pp-split or single-ctl. However, the second part of the comment (right below) is in conflict with another patch that I've sent as part of these series: on a single-ctl setup with dual interfaces, the second INTF needs to be marked for flushing. While that observation and fix is for CMD-mode, the exact same comment is found downstream for video mode: https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers/-/blob/display-kernel.lnx.5.4.r1-rel/msm/sde/sde_encoder_phys_vid.c?ref_type=heads#L794-804 You were fixing exactly that in one of your preliminary Active-CTL patches by making dpu_encoder_phys_vid_needs_single_flush() return for Active-CTL, so we should probably update this comment in the same patch when you send it? (that is: the flush bit needs to be set for the slave intf in Active-CTL. Before Active-CTL, a slave encoder would actually have two CTLs and two INTFs where the flush bit was probably skipped on both slaves?) On a side-note, since the needs_single_flush callback is used elsehwere, I'm unsure if that patch affects things in the wrong way since the downstream file linked above applies the check for CTL_ACTIVE_CFG directly in-line without affecting the callback. - Marijn > > * flush bit for the slave intf, since both intfs use same ctl > > * and HW will only flush the master. > > */ > > > > -- > > 2.44.0 > > > > -- > With best wishes > Dmitry