Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3086158rwb; Mon, 15 Aug 2022 17:47:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR7iYoAVulhnj0oaa0N3HAUFI19rpqQ70oJVwMLTS1oSGOFQDgYreTfsR1tjuIO95Mj9pzmY X-Received: by 2002:a05:6402:d45:b0:43c:b9f5:9ed1 with SMTP id ec5-20020a0564020d4500b0043cb9f59ed1mr16961648edb.309.1660610848429; Mon, 15 Aug 2022 17:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610848; cv=none; d=google.com; s=arc-20160816; b=Y724DsH+T5ZXDf3tWpO5JxvsQV8PwMLNKqapWmXB8FX9lCQoPl7ThvYg8QcHlsVTdV U5x+BsOUHV5KLhJVgbOWkCxkaCIRp/zvji/WVt/uKUCLZNhmRkV+J+OxVpU4KsGhyvDk XIXVJSiAcMB+W3xnn9uZDwFJ4uIH+q4jxHN9wKVIhi2haMpeONnC+cnX9TWnL70N6O6x LAl9wEU31eeqRmM2f2MpYa6JjWgCeYP9GTWjopjIZK/pvbo1Y4adeYCAlcY5HapFwNiq zmq8z4CG0e4H4nsgDJJJL1xYLARIea6fcnxrLo2hve5y4FVCr5QHpyQHsFYJ+2WHTxCx JqQw== 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=yyZ6QLzOIRBE41p3axixvyYBS/qqhJQn+rGIPWIHyBY=; b=Ol4WC79uie9aSzqJoPW81ZjhxQeD1oR7IEuI23aPrwwybBj9xP8buqcH79HdqByxNr gD7Kp0MGi+lOvCYqaZ07BisiRRLLtji5NPoWnkhPDQnToUSGpclRJLcN6NvzfTKaZ3v4 WrazX9jwa29cEgzTMCl2m7YZgn4Cf6fSN61aRksV8tswXqOj2dXcHkaEoMXcmWoL2yQ+ pQZbFLiiotuboBB4xQX+4/75gHS1DvzXDXGFKLrMD24Tt35kTuit88PkcSzTNPuvNrmb zqJXsR5dSNvrnf+kwooV70BUMdFgkpiA7rn/X9fgmrf+NTf+JLnpm75w/Q+BZULhEyzE wsQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fgxp0xoV; 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 wz14-20020a170906fe4e00b007385dfb42c7si3083886ejb.565.2022.08.15.17.47.03; Mon, 15 Aug 2022 17:47:28 -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=fgxp0xoV; 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 S1343869AbiHOVRN (ORCPT + 99 others); Mon, 15 Aug 2022 17:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348066AbiHOVIC (ORCPT ); Mon, 15 Aug 2022 17:08:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872373C8FA; Mon, 15 Aug 2022 12:18:15 -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 1B440B81115; Mon, 15 Aug 2022 19:18:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FBDDC433C1; Mon, 15 Aug 2022 19:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591092; bh=ndmVlTPDED50pu5GSZoOJaw1o/lfGAtkCF85mjTLRXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fgxp0xoVpRqu5nqthZtfBgbSbKdouo+hmWD4ZkIrv5pbWXSm4Y3prZQCp4SAeRvD6 7zClizCss36ebCcm0E0A2ZoviGTaYvpm8/Zu/Bobx3P6Bnjn0ACJ6GPAAaWwdfSr/k 4dVlo5qGXSWVl7H7vNyL7zqYUBobfRvHK+pf9qbo= 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.18 0429/1095] drm/msm/dpu: Fix for non-visible planes Date: Mon, 15 Aug 2022 19:57:08 +0200 Message-Id: <20220815180447.456371119@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 16ba9f9b9a78..32715399a7c1 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; @@ -1125,6 +1128,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