Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1971820rwe; Fri, 2 Sep 2022 06:48:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5erx+gGdl2dK3ynOaiZJr1BhkhOVN+F0jPJ4Tl2yjvJwO3KqHCUwEdz8kFx8A2VysJRMaz X-Received: by 2002:a63:f947:0:b0:430:93fb:fa5d with SMTP id q7-20020a63f947000000b0043093fbfa5dmr5567072pgk.374.1662126517949; Fri, 02 Sep 2022 06:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662126517; cv=none; d=google.com; s=arc-20160816; b=Cr9wK5cxFtJCR2gfHMLChrVUXS7L9Y2efwEcAfNU6QjXmVVlvjJQG2g2HqknptVKSv ecFeCUWmJbMZ2a6GVOmxzcXpQLbQQfRsgFQKBzO8VbehNOMZ/zWd3bpgOyTqDPHV/uU9 alI82rexp6RicOMHAKoTRq70FhFs/s0XM+mjsRu6v0Ksa9nV4A+aQr6wyVs9IN8rCnnS QOGEH+A+E2qahoyQasudUt/cyMnsLtSxWx5fjwkOSpubTJNn7LRTFl5UvtoS94bCkVCE Mv9F7+qvJmv0Am3fmyk28uf4MIcr1169VoYSKG4xT7K+UMey1QCFfO8yru2yrM1Nbjy0 OzjQ== 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=vUOQlucxhdODIBnly9SDv7WD5QdcyfOmE6XzOnvbb7I=; b=Pf7QkGmLejjhEOwwCUI9/yL1tEilTl2CRxocOfx3mQS/wrLYYo+aXZDnFC4GpONTlj 8Er73X269E6Xy4RPRvh0F/9qeeFHoi3TUfFiviVizslAPPxbSaKqiHRekQCaGYxweMx4 hQ45gPQj023sQvcC6W3q9taoT6QVGQ51c2dGMEFbJQEC5+PCaygf6Nt4Ed0HlguG+wZU DLxf7GUH7JUB+0LfxkHkh994EOfQlqTYoimJladllT+ackgWi4Ga/SaEFcnsinHmhwYD e/fk3QKeVo0wYYmQzdeqKTG2eEyfuEfhB7hcGwwxapUYh2ltiLHhpuUNmJ+mZ0/XdH2A Ke4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ahxpi54y; 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 j17-20020a633c11000000b004068c3147fbsi1995309pga.543.2022.09.02.06.48.20; Fri, 02 Sep 2022 06:48: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=ahxpi54y; 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 S237752AbiIBMxD (ORCPT + 99 others); Fri, 2 Sep 2022 08:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237832AbiIBMwM (ORCPT ); Fri, 2 Sep 2022 08:52:12 -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 E02A7E3C15; Fri, 2 Sep 2022 05:37:16 -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 09656B82ADC; Fri, 2 Sep 2022 12:36:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51248C433D6; Fri, 2 Sep 2022 12:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662122176; bh=bjudZrNeUpvg5Lss11TNiew6QgCwcwuADvT+V+h6Z04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ahxpi54yCNQxaoH3zJ4dYIuDXL+z0OXX3JE+fxqc8nkkz6cQpqBliDfRVS2Rv9h0i w7aBrklwiXCrDJsrsKgukB0zATjFXE+6c9hhVJCzV2JjmF2e5HRmFpi2dv61Jap4Aw 6BDaQwaZyHXR+Tk77L5NqjIuab944CAwIhPOc/pA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anthony Koo , Tom Chung , Chiawen Huang , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 37/72] drm/amd/display: Device flash garbage before get in OS Date: Fri, 2 Sep 2022 14:19:13 +0200 Message-Id: <20220902121406.001515134@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902121404.772492078@linuxfoundation.org> References: <20220902121404.772492078@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: Chiawen Huang [ Upstream commit 9c580e8f6cd6524d4e2c3490c440110526f7ddd6 ] [Why] Enabling stream with tg lock makes config settings pending causing the garbage until tg unlock. [How] Keep the original lock mechanism The driver doesn't lock tg if plane_state is null. Reviewed-by: Anthony Koo Acked-by: Tom Chung Signed-off-by: Chiawen Huang Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index e3a62873c0e70..d9ab279915355 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -108,6 +108,7 @@ void dcn10_lock_all_pipes(struct dc *dc, */ if (pipe_ctx->top_pipe || !pipe_ctx->stream || + !pipe_ctx->plane_state || !tg->funcs->is_tg_enabled(tg)) continue; -- 2.35.1