Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3094069rwb; Mon, 15 Aug 2022 17:59:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uOe1PQCragayQapwXbZpFs66sCxlIx7Ll7SddvgNGt+T2+9TeH4mf58TTdN86hFsg6TKK X-Received: by 2002:a17:906:93f0:b0:730:6b07:102d with SMTP id yl16-20020a17090693f000b007306b07102dmr12001391ejb.237.1660611558851; Mon, 15 Aug 2022 17:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611558; cv=none; d=google.com; s=arc-20160816; b=DZvSELRbx/Ji5SeYNB9nNVFxgMXXIRIn86dt4FBY0KSjzANbMBH25VQjqsTBFthrZ/ 9Glgx3hM69CfejvbKEp1E4IPrRNweaKJeO7kLHDjjBpNyMmq/3HgXCyM1jkIKHP1P+Ve xW/FH8iYXSw+Mh2sCOAIfY6lxFrIKTYnRDsT/7C6AH/ljcW+MwY5AAnnhmxnKn4Pci9x 250r85JZElUCquX8aKWQPOsXZedzDkpaNOHwpzyRd4878LJJ+PA+XEfhZlJtD9uDpJbh EihEck6/pEQOdvko6yn6xgZyBCkoH1Eh+xcP8/gzbE6zTJedkOcIya2kQ8+HqTpohAnK 3MSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sDVeSVyTqNc22GbzD1kxPR6FEGa8VY1FCL+yRrbT7x8=; b=PNop5QYnxhL6YWaxuhRvRWBTKCWbAcYohUxAbf7sAf9sFcq1KZxtGWfEd8jV846He4 va1m1vVgt1icNYmIjqlip97LdQK0XR1ndKoi2+9K6QMMVK7blS6Ktbl+uo9CaZbVxVl2 rELsst7qZB2GrZoXLCArKzbfEu7jAFvtgMTZxrwlA7x5PtllWonkRevqwr/d8ykLnux7 g1HVLfad19gXXcuhU/nw12Batq+X3RKaeOmmKvhqr2U8cM9VRwMZGQQPYpwGNxMDlvml kHXzbNUzYc6+2nW7zKHFFA1zdjKOr0yK1aipEKJj9gfjDDTMdKlVtqbEPbcPWAdemGTF DIAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LETnqG12; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a170906974600b0073062f48dbesi9668220ejy.671.2022.08.15.17.58.53; Mon, 15 Aug 2022 17:59:18 -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=@linuxfoundation.org header.s=korg header.b=LETnqG12; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354433AbiHOXuN (ORCPT + 99 others); Mon, 15 Aug 2022 19:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354541AbiHOXpu (ORCPT ); Mon, 15 Aug 2022 19:45:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E3928C01E; Mon, 15 Aug 2022 13:14:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3F0ADB80EAB; Mon, 15 Aug 2022 20:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A12ECC433D6; Mon, 15 Aug 2022 20:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594463; bh=nXZeYBp97SFK8kYhMdUs3YHMALM+8suLMoNuom0wygM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LETnqG12cz8MOZahEPVgqMc8+otiiKFkl83GRJ3fWfIOEDTLCfEI+EtCubt7/CgcR lLvOSG7zqr33gmUpMD5fPm/eSUOG37R2Qy2nOEJRyTa9NT5S6tenfc3yrIm8q83syo su3bKgvw91wwGC+OUjwO2UYJ45cz/pvV5S+kOe/0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Sasha Levin Subject: [PATCH 5.19 0456/1157] drm/msm/dpu: Fix for non-visible planes Date: Mon, 15 Aug 2022 19:56:52 +0200 Message-Id: <20220815180457.836986086@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Rob Clark [ Upstream commit cb77085b1f0a86ef9dfba86b5f3ed6c3340c2ea3 ] 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 Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/492819/ Link: https://lore.kernel.org/r/20220707212003.1710163-1-robdclark@gmail.com Signed-off-by: Sasha Levin --- 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 b56f777dbd0e..4c5c1f627cb8 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -361,6 +361,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; @@ -1134,6 +1137,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; -- 2.35.1