Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp304926lqb; Tue, 16 Apr 2024 17:07:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTB8XtLikr411B8tXOQdtIKbjHuCHigw6aGbAlLwU5vf5muyFGHhm0JU2P1Nj1qksivQskosZOkBaBQxxblUSlLpEVy66jXiviBstCkg== X-Google-Smtp-Source: AGHT+IFHQbR1mv8/EeYWv/1esAVsmbTatJt8z3iE8NWoTzoHsNlEM70GzURKkKX2Bwl1nVPlroI/ X-Received: by 2002:a17:907:6e8c:b0:a4e:3fad:b973 with SMTP id sh12-20020a1709076e8c00b00a4e3fadb973mr11182460ejc.65.1713312423898; Tue, 16 Apr 2024 17:07:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713312423; cv=pass; d=google.com; s=arc-20160816; b=OxhptOLgS+Mi3RqiwQSgrXx8Y+FBN3MFWcvluI7iIofIyeHipG10HNOtAYcG6SjM5w MfwpYwRwpMJVYf1W77KzzdfCDjI6/wdrDu8Y4mZysWF03e83I2ot5ryprxdH2ia5xBAY 1B3WbV6cCUxb6+uF1VO+iGYEKzNspbyZtUJlNfQ8HEpkcU/21PXzKIvd2JP2aaD9VbyF zILNMo712XT0Eq8WFqLEsZwwfFbT6g1N32gq0UkodUYSBYcB/3r3P331Mf2lvZ+m0aCb HnU55F6mqCy84rmhwW+xAA42KlVbyv7TGifjmHJPyq5WDnIFoRIoS7zRt1a8MH+wcyyW sITw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=bVOYFy7F/6NDfmJ+qyFLML7jWfpRbWuhQzXujggScrs=; fh=EaVNV8gKHS73tSa0PfwfCJhAdPfizlMjT2zacFzFq/Y=; b=gYs3l7uCdDpoQD/wPcCokz1aNnTVxlBTzNb7iy8z6NYAAy2UUzdvwxzZc+cS5j43T+ cYSDQ3ppfqwW38R7uM6TXkNkxKnyFzgnC9k71BhcD9EvvWvkZTWscZYCe3DPVB9G/srn saPMpz+pJHnbQmmiHyHbJakaDtkknmhAJT5OMB0UcsZtybyi+MdDhP5hO2NPmiFa504g pL4UTtMtAvVeZRtaTNsebOij1r9lBc/z1AlhFbfIE1luGVNM+SqJfnpPCrcO5m/KCybn AhamwfpxX3UzagxM+qkm+V+LRG4tyByVqNCkbmyFF6CDRY784d9pZ+Tlvqc+fnQ4cGFe Bezg==; 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-147772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147772-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l7-20020a170906a40700b00a5202b5fa47si6046887ejz.880.2024.04.16.17.07.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 17:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-147772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147772-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E34751F24258 for ; Tue, 16 Apr 2024 23:58:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7348713B7AF; Tue, 16 Apr 2024 23:57:51 +0000 (UTC) Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) (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 9B1A813A896 for ; Tue, 16 Apr 2024 23:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713311870; cv=none; b=UCpzwSrOhjJKi0cQYjI2vjqTLwjIDTxDsgOIZKhtQNjYHg73Tmcb8bkko28JP4qnXof7BEchU3Alr88BZPrZLbFqlsk2P93jPKPsaXjqNTZHWK26WehI25/TkLfYIKDn9QlDQl34rFAwI8idwl+lHcszIrtLyROxGL+gxbxTJNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713311870; c=relaxed/simple; bh=9QpYWFlDk7dpKjtswDkzFrbc8q7R2ogVFo1jYxLjeaM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C7U/Ew7fMq3wC6Qmnu3Nij3Yp6c6N7a4MGcUOBVcZ/1qUkmEQ96z410B6i30Hh5KQbMQ+I6VDLenACSIcWVndGPl8rKYqoJoRm3o0W6SZKx+irV236YIE2oBiFlBNqRn0JKIJJ/f+JKt/Kybk1mvZ7ws3vvGX7FevIGTIxE7xuI= 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.169 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 Marijn-Arch-PC.localdomain (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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id CE7D73F012; Wed, 17 Apr 2024 01:57:46 +0200 (CEST) From: Marijn Suijten Date: Wed, 17 Apr 2024 01:57:43 +0200 Subject: [PATCH 3/7] drm/msm/dpu: Always flush the slave INTF on the CTL 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-3-78ae3ee9a697@somainline.org> References: <20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-0-78ae3ee9a697@somainline.org> In-Reply-To: <20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-0-78ae3ee9a697@somainline.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Archit Taneja , Chandan Uddaraju , Vinod Koul , Sravanthi Kollukuduru Cc: 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 , Marijn Suijten X-Mailer: b4 0.13.0 As we can clearly see in a downstream kernel [1], flushing the slave INTF is skipped /only if/ the PPSPLIT topology is active. However, when DPU was originally submitted to mainline PPSPLIT was no longer part of it (seems to have been ripped out before submission), but this clause was incorrectly ported from the original SDE driver. Given that there is no support for PPSPLIT (currently), flushing the slave INTF should /never/ be skipped (as the `if (ppsplit && !master) goto skip;` clause downstream never becomes true). [1]: https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers/-/blob/display-kernel.lnx.5.4.r1-rel/msm/sde/sde_encoder_phys_cmd.c?ref_type=heads#L1131-1139 Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c index fc1d5736d7fc..489be1c0c704 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c @@ -448,9 +448,6 @@ static void dpu_encoder_phys_cmd_enable_helper( _dpu_encoder_phys_cmd_pingpong_config(phys_enc); - if (!dpu_encoder_phys_cmd_is_master(phys_enc)) - return; - ctl = phys_enc->hw_ctl; ctl->ops.update_pending_flush_intf(ctl, phys_enc->hw_intf->idx); } -- 2.44.0