Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4252201imw; Thu, 7 Jul 2022 15:37:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sjqEL+uZHZWN1lq0oqcD7v8rALFM3IQTfTfOGUw4DqZoeZY7bKKl7RnFjv2EjSzTu1ZH9P X-Received: by 2002:a17:907:971b:b0:72a:b002:7c87 with SMTP id jg27-20020a170907971b00b0072ab0027c87mr357476ejc.393.1657233449932; Thu, 07 Jul 2022 15:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657233449; cv=none; d=google.com; s=arc-20160816; b=aZXzBhh4Jf9KXZxS0WgJEJ0Fl8ghyq3QEcwtCUuiFGsJ1W/wRQMsUFZACx8zH4+zDa a7vvOtIakJuVXS9D1610fx5z6DkSw/rcgX02XTzCLjTfqz5YAdyrhtuN+3exU3xYW5Gl fNfJTcBrz9fzMfCvJJoIQydrOc5NeqIJmDg3lHEOTMn3MDeZqqOQVVxbmWo0gjVxj2pd rLRongo2TF3G3fe2kA7LHHveR5LZbls4HO4MRuQOB82cCGCLuRDJeIZSSzFGf7EjYeAa BtsLytFPHHZIRb7xj+aMDzE5laV0Og40mQzOlNGYLV1f6joxL4Q2YZgN6BN66MCE8gqg v8JA== 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=bxnC823s2jQTCTW1F00fQ9L9FPUuS6prikA03g2KwGA=; b=WnosnTzmslt1k0RMBV9rmY5+Nc0PJUF2oGsq5J/7rMiZ6RfpVwH+6sYAkNt86X9OR/ zEU9vGmHk9JZ/oW08/oF70Z4mAd1f8WqpEPolR3gS2zb00mpsRzKcLWI0Lfn/hdvmmA7 jnjgfuW9u4PWBxwUxegnwzqKoXi0ymFhEAMyAG9F2ZAeTf3EGvBg1tt9ae1CGcxzSvJM GGBZu6DQliQoSl+HI+LW94cfW5og0qBvqkUk66JAv9m+eyy+NcQHWtuaxBr/pHIX/hA5 FjUffrdmFk21V2DAgJT2awbPvw/kPsNUonI2i6dhZneYd9Q5TAMIliFAI5HJF2NlhGq8 AxWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=eptQZV1e; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a056402274900b004358eb8f787si26137179edd.447.2022.07.07.15.36.57; Thu, 07 Jul 2022 15:37:29 -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=@quicinc.com header.s=qcdkim header.b=eptQZV1e; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236861AbiGGW2O (ORCPT + 99 others); Thu, 7 Jul 2022 18:28:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236535AbiGGW2N (ORCPT ); Thu, 7 Jul 2022 18:28:13 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B335065D47; Thu, 7 Jul 2022 15:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1657232892; x=1688768892; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=bxnC823s2jQTCTW1F00fQ9L9FPUuS6prikA03g2KwGA=; b=eptQZV1e5MDhcuFHnnFT1cN7FmslzPoUBhOd9hgdCJJWgJtZmJlzs/cG YWd1TWgUgfzcXzAxjkcSI+EA+RB8vV1PXrFpJtbCiafy3iKGeRluuO72w zkerOMMUO8aGFHdG5xf0KsI+SIuvRICKUpq3aPWArzZwBM3H9cnOoRAsa Y=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 07 Jul 2022 15:28:12 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 15:28:12 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 7 Jul 2022 15:28:11 -0700 Received: from [10.111.163.64] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 7 Jul 2022 15:28:09 -0700 Message-ID: <5112b6fd-32c3-c447-61e1-828d5a0aa7c6@quicinc.com> Date: Thu, 7 Jul 2022 15:28:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/msm/dpu: Fix for non-visible planes Content-Language: en-US To: Rob Clark , CC: Rob Clark , David Airlie , , open list , Sean Paul , Dmitry Baryshkov , Jessica Zhang , , Fernando Ramos , Mark Yacoub References: <20220707212003.1710163-1-robdclark@gmail.com> From: Abhinav Kumar In-Reply-To: <20220707212003.1710163-1-robdclark@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 7/7/2022 2:20 PM, Rob Clark wrote: > From: Rob Clark > > Fixes `kms_cursor_crc --run-subtest cursor-offscreen`.. when the cursor > moves offscreen the plane becomes non-visible, so we need to skip over > it in crtc atomic test and mixer setup. > > Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar Will pick up the fixes tag from Dmitry's r-b. > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > index 4dd0ce09ca74..4ba000951a90 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c > @@ -422,6 +422,9 @@ static void _dpu_crtc_blend_setup_mixer(struct drm_crtc *crtc, > if (!state) > continue; > > + if (!state->visible) > + continue; > + > pstate = to_dpu_plane_state(state); > fb = state->fb; > > @@ -1195,6 +1198,9 @@ static int dpu_crtc_atomic_check(struct drm_crtc *crtc, > if (cnt >= DPU_STAGE_MAX * 4) > continue; > > + if (!pstate->visible) > + continue; > + > pstates[cnt].dpu_pstate = dpu_pstate; > pstates[cnt].drm_pstate = pstate; > pstates[cnt].stage = pstate->normalized_zpos;