Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3569974pxb; Tue, 19 Apr 2022 05:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGuV7ZKDdMY27tM6NyZv6yDID3zTJnd9KQJUE1OYjSyUtDsP+JsqXmyvYLN+0+ZgKEgYwp X-Received: by 2002:a17:90b:1e4e:b0:1d2:8dba:67fb with SMTP id pi14-20020a17090b1e4e00b001d28dba67fbmr11916487pjb.55.1650372273141; Tue, 19 Apr 2022 05:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650372273; cv=none; d=google.com; s=arc-20160816; b=d85BJKVx30yiIyPbqEggnI4Yb3qTznocemfbxMMGPisVv+6Phg9svm4ttT428VrPmV p7zCxO7KPnTu7gyPh7OTty2R1nDnv7ISlVSSN8KgAHFWt/W8KvrhEhKGPBP/A8nUW77K MfdiPBqOHhPlagQaebAzXhGfXIbLScOADB/hGDP0mRuU3Ih+YUth7IBHlAU2zgpHhY5y 2de/ultMzRIh+TXg5KGooWHH9MiMyJf2dKx3L3fjwyB00t9nSPnk5VN3yivyyZ+Exawj Ggd+VghKKTwUXqYzn39I/koBIGO0nzId4rC/hS0VfeaXaopaVnY4DbUOtNCxgCISE70P /RpA== 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=byzCDG1AVQmFShzTRqWirR/+SxdMcgBsHORXqCqYDxE=; b=OiC/9/GSwOmzE57Gde/CMPXow7g54MDAORFsXSVtKMAHPevrYCRXPvtldQ4z8Swfin YqML77pptfHRHgLAJvsuE41ecLXOD+vpMgxPc4RRFYGOX+Gr3gOpKBrmCf4oupGkmip/ hPw+VCmUvCnXnp7GpTqcma1uTP0Iwfy9OdO6q8yyxngjsn8xhGNdxZZ07aghSprVsBq9 7x5rNvxUbJgvm6MKghMrWNsOkwuqJWgN9T0EvyCat/qcf/JJ8jFaSUMrHsMTPWTWQ2QD PaRQKP71OT+WbkDQFc5AV8phG6R8bfZaqzHVmv8srKnw2xL3oeEFe4wU3hisQsA7VT2f HOFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sgDftx2b; 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 f17-20020a056a00239100b004fdcc444adcsi12727214pfc.82.2022.04.19.05.44.15; Tue, 19 Apr 2022 05:44:33 -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=sgDftx2b; 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 S238996AbiDRMhB (ORCPT + 99 others); Mon, 18 Apr 2022 08:37:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbiDRMa2 (ORCPT ); Mon, 18 Apr 2022 08:30:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8091C24BD2; Mon, 18 Apr 2022 05:23:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AA3D560EF4; Mon, 18 Apr 2022 12:23:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE7B1C385A7; Mon, 18 Apr 2022 12:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284628; bh=fkf5ldK1t7XscBFXOpFzJDYdU3w9kmWDjQui+LrUG/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgDftx2bl+eh3JsACW1Sl5ratK6/phRM+FvDDso6mb+GXZxy1I9ss366yx99He9+n TrfSKz5TjVOsNyVNoB2dtv8PFc4H1VoVzT0rVOB2XFLkKVccOHyM7krSeCiqo6u6l7 9unqxL3OwEiAy/wyW/mRAOT3utd5uE7xbg7UWSdg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anthony Koo , Alex Hung , Chiawen Huang , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.17 136/219] drm/amd/display: FEC check in timing validation Date: Mon, 18 Apr 2022 14:11:45 +0200 Message-Id: <20220418121210.700622301@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 7d56a154e22ffb3613fdebf83ec34d5225a22993 ] [Why] disable/enable leads FEC mismatch between hw/sw FEC state. [How] check FEC status to fastboot on/off. Reviewed-by: Anthony Koo Acked-by: Alex Hung 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/core/dc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 62bc6ce88753..78e17a4af4ab 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1495,6 +1495,10 @@ bool dc_validate_seamless_boot_timing(const struct dc *dc, if (!link->link_enc->funcs->is_dig_enabled(link->link_enc)) return false; + /* Check for FEC status*/ + if (link->link_enc->funcs->fec_is_active(link->link_enc)) + return false; + enc_inst = link->link_enc->funcs->get_dig_frontend(link->link_enc); if (enc_inst == ENGINE_ID_UNKNOWN) -- 2.35.1