Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2868854rwb; Mon, 15 Aug 2022 12:59:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR68dMa7Nnqw5FGpCfPGDUv57Q31uQSLFVRk8d3G+UcGfP9YDNqHdIU1/Ys491g7kxMUX+R4 X-Received: by 2002:a05:6a00:140d:b0:52a:d561:d991 with SMTP id l13-20020a056a00140d00b0052ad561d991mr17676358pfu.46.1660593577834; Mon, 15 Aug 2022 12:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660593577; cv=none; d=google.com; s=arc-20160816; b=Vpq7VoW3sf2UXzZCLJ/9d0fJ6hDXqAHFME2Cb2W+krQIanYEg66N9rsD0qMK6+3Sfv NNJ4a06g3/aENqPBABcL+GunKq23yGEw6mvRL/AKiEv08jZ9MDF5WIMEG5gJLMqDOAkO neWCe7AaMLh3Z08qcmj6cB/pX46DWQ2IHsbkzr4RvBlk7kCRAingrgLB4Xrt7ON5hC0o XFhk9FcJEiqPTGr9HeB3DNyaI/olkCU3YGGnJqsfJr5pjDSYITm8oxpQmdOX6KQdiNEK VxX5qZ/RXHdCqm/GSlp2zzVmGzVvJoLR9nuf0R7io+QEAai0DfahZBsmlvwsDBHZrheG MR2g== 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=x/Y7IUSTtLtWdnAYFyWq2tfQh90wDQy/5+moQ4QVQbY=; b=Vp8GIq3Aq6dYvMCx3A/7dpoVdEx7e3gb/s4lTcWtOgOlgll/AcUZ5krLqvbZ2xcbh3 8/qlrIe3yI1JuZMj9iCqre+FF0F2aZmpEWoDo2o3rVdyq/PIOZ5a5xX8rbOPCtoj5KnB lGfWQlj9Reg5AyjVdtm9cVIS6RDbX6JfmEJD31miDNqEQnWxf3BvK8Ot+5g9l0xW005L gPIEc1p2Wv7JRTjvHkjxcTDBreSMvFUZEyntrorvBrCsE446PIld2cc3r2fj4tts4KUv JohJrRglWRcCLIhVm1Qnl4WFwigAGnj3Q8gbPtYO4iFL//avRV8QNbFd48X1pIpTSZ+o sXQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TklbjKTt; 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 u3-20020a655c03000000b004150f91b921si7013672pgr.210.2022.08.15.12.59.15; Mon, 15 Aug 2022 12:59:37 -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=TklbjKTt; 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 S244836AbiHOS7Q (ORCPT + 99 others); Mon, 15 Aug 2022 14:59:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244944AbiHOS4V (ORCPT ); Mon, 15 Aug 2022 14:56:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D09B53207D; Mon, 15 Aug 2022 11:30:51 -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 790B4B8106E; Mon, 15 Aug 2022 18:30:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C78B1C433D7; Mon, 15 Aug 2022 18:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588249; bh=0r83TGpcAX7q/Cw7qOMQx30enfCYni4wKmfou4vNh/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TklbjKTtiFP9nY/y7iygYB6QalvVeN94EDyPnf3sjd7eooFAUuMkCrTd3x343dudC cJChAegqi33PzwSGCaRlgc2DwdFuVcS/ZRn2wuaZ+chgPalnwqpWbujZORe7QMGLM9 VeSCUy564HfDG//dOHHuY567GDTKDwXj65NQV+PM= 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.15 325/779] drm/msm/dpu: Fix for non-visible planes Date: Mon, 15 Aug 2022 19:59:29 +0200 Message-Id: <20220815180351.184909912@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 7706a7106122..2186fc947e5b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -230,6 +230,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; @@ -976,6 +979,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