Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2815099pxb; Mon, 18 Apr 2022 08:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWyvkHgl2uGGoKVS49uCGhiPnDrhCeqzwhIC031lkUzUCrsbFVxuFPgHQvXq4xvMder8vp X-Received: by 2002:a17:906:7943:b0:6df:e5b3:6553 with SMTP id l3-20020a170906794300b006dfe5b36553mr9593367ejo.398.1650296883216; Mon, 18 Apr 2022 08:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650296883; cv=none; d=google.com; s=arc-20160816; b=gYvtL8K/7j7l73kgL+ClyteNbC4Kr0eJRwA9oK57MzkcQE/uaYUtpB7uGDrfQMjkTr vRwuBIOQ8KuDlifS7Havna2MiVexW5+YvQfN7kAsDSJ/pIPjYaUMuMpEFhfB4Sce5XAk hyccjdqkyx3J+Zd9hxnuz5WEJsuOUsG1ikRQx6gyb3Zgg3zocmqiLEz1A1cxmL++Avym B+jz0t80dtVPXJy0odDMNTd4cDuOg4RzI3IVyHKpgCLAbiq205WDGOARdjcu+dJHOWB8 KEwD5bScM8n6ogxfbanD4tSCHeDyiC+VesHZl40sa9yzuurMj+fm6z0fA+m15XgGHJLV K8gw== 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=wAsklSamhvhxblMnwF8JkjHcNArmNb3s2Jviod+Kzdk=; b=KjktCpIszpIUpetRNt9nJz7aMW6ecs3TK8bNYhEUvXZczbvmTlvda+E8awucCDvmWc 8OYEPb60qQ/dslJsVStW3eCRI3/TsktYoSdoNIycOCh+AbPavhB64deuh2hdEQa0LJXW esVAb/Hb73oqAcFOz2EEMFI5Efa8HY+g+gWq8F4z4h++DMX4wrBHj/KqRTzCw3ftWUgN TZDemVlJNNPEHBD7PFwDSea4ynNcvQrGo6YpowzrMqLCypF1YfoAJsqpF3L9GNwzlNqD FxETC3NT7LLmCT6qIMAIClKknOGxRUo0N+Cn7PvedpZHZClGK5q/tUS7e/5vrEsCB60y GDIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kJtK3qFT; 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 z24-20020a1709064e1800b006dfc9a27ec9si6174774eju.789.2022.04.18.08.47.38; Mon, 18 Apr 2022 08:48:03 -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=kJtK3qFT; 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 S236974AbiDRMfg (ORCPT + 99 others); Mon, 18 Apr 2022 08:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240121AbiDRM3V (ORCPT ); Mon, 18 Apr 2022 08:29:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C883237E9; Mon, 18 Apr 2022 05:23:18 -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 3136E60F01; Mon, 18 Apr 2022 12:23:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 286D4C385A7; Mon, 18 Apr 2022 12:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284597; bh=+ejOrvs9N56pFSmkdeef6otjykKTRwH3KNG1uuMcZYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kJtK3qFTYjo9bIioRvdf3jUYHlC8cBfP8ETwx3Kqecn6Xz8ljCGRQtetL29VMZJtM VlOx/hgr8ROa3aQbXTqAiZS9odqP4ow3FBUtuGg9res5uo4z/K2Yb0cNAobNQJoIQr s1Zip1XUv1DIWXR6k5mZfndXvLO7hU1E0XXpHX4A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wayne Lin , Alex Hung , Roman Li , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.17 165/219] drm/amd/display: Fix allocate_mst_payload assert on resume Date: Mon, 18 Apr 2022 14:12:14 +0200 Message-Id: <20220418121211.501993388@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: Roman Li [ Upstream commit f4346fb3edf7720db3f7f5e1cab1f667cd024280 ] [Why] On resume we do link detection for all non-MST connectors. MST is handled separately. However the condition for telling if connector is on mst branch is not enough for mst hub case. Link detection for mst branch link leads to mst topology reset. That causes assert in dc_link_allocate_mst_payload() [How] Use link type as indicator for mst link. Reviewed-by: Wayne Lin Acked-by: Alex Hung Signed-off-by: Roman Li Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 90c017859ad4..24db2297857b 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -2693,7 +2693,8 @@ static int dm_resume(void *handle) * this is the case when traversing through already created * MST connectors, should be skipped */ - if (aconnector->mst_port) + if (aconnector->dc_link && + aconnector->dc_link->type == dc_connection_mst_branch) continue; mutex_lock(&aconnector->hpd_lock); -- 2.35.1