Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4689278pxb; Wed, 20 Apr 2022 08:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsR6bDYSux8uA+jGYMn+cyb6+pDfqOjYwPWPidb718WXUFlNHWsttvICnIQLCei19WmgCU X-Received: by 2002:a05:6402:32aa:b0:41d:9250:d0b7 with SMTP id f42-20020a05640232aa00b0041d9250d0b7mr24041689eda.17.1650467605506; Wed, 20 Apr 2022 08:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650467605; cv=none; d=google.com; s=arc-20160816; b=OB0meqHfNloYlSgqI39LXYL93jT1BadPbuH7E1JliDxHdHuFy3yxJY9kUvEm8y4c0h KAgkJwBI8AN86EQPLtZyGMx6Cdrpg/JdZqBSYUkR56gi/cx1DKiGDM6CJMbpmqMFpB5e GYrGQG2zGqXrWk2FIVy1G7U5mfA7EjJwRMiXX7i1/GNVnt/ytfDtNTI4c33yte7OV/H0 y48J/+lFxh+5CxkXWIETx2UuEjGR4sCuTd/NRPtVGyKxGALMHC4fJDgK2iobhigJBTLR JrRlzQy782V2ZDVaKaTbeHQR14ymbUtgpfQ+BzjleEw46Za1gTX14Se1OcAtUcF9gh+t WxPQ== 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=R6YSp4wC36cWf1qH8ORzn7FZ/k+OxV6iXarZabyjT1w=; b=Oc8oa0QO/D3cffg/2zZVtu5xUMJMsGvsXNvP91LxT9VEppmS7db3u7BWk+Ft7aet6/ 3xaHoodwupYe6zL4qgHWD4Rh8T/n+r1qM/cvROMOlHrr6VfPFlpwaAWxyr1Qrgl73yR8 gpIN9fJ+Hwmzr6MmGNJyVWYh/dNL3icNYOCZ95DvpGmYo03V+gYRgDzhPyRV2zpkCqKx WvLyYC672ar8+dSwoVfvdFVdBfKr4rxR0UBYfF7BMtwD/H3nFzePidiuxnj0+NnuGqO0 1hHzPn3NDPf3xintO3rtvrs3OhojI9Usrl6vkLD5VpsEr8EJnp4TaGI9e0KP9+deEOFr iDHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fY0inlDL; 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 jo25-20020a170906f6d900b006e8979efbc1si1989992ejb.546.2022.04.20.08.12.58; Wed, 20 Apr 2022 08:13:25 -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=fY0inlDL; 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 S241476AbiDRNVU (ORCPT + 99 others); Mon, 18 Apr 2022 09:21:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241460AbiDRNDG (ORCPT ); Mon, 18 Apr 2022 09:03:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 070AA338A4; Mon, 18 Apr 2022 05:43:30 -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 AEA69B80E59; Mon, 18 Apr 2022 12:43:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2156AC385A1; Mon, 18 Apr 2022 12:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650285807; bh=9bSQ4S1IDUAnhmQfnggx2NYyttspU22heoTUTR8pNyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fY0inlDLd1ogSB5n1xIl074T+KUNmLdYoxb7RwI76ap6YjwleZ86lya+WKJsYp4Yq L0xk7Da4j7oXUG9L/3mmw2TtPhwXBtE/Kwkygd1aSIZl5Q6IXZs4iz5qGM9LE9Cxhz GPDgahSwBzZb2JJR52fjK/JIhVh6qS5m/pWbyUww= 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.4 31/63] drm/amd/display: Fix allocate_mst_payload assert on resume Date: Mon, 18 Apr 2022 14:13:28 +0200 Message-Id: <20220418121136.200190338@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121134.149115109@linuxfoundation.org> References: <20220418121134.149115109@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 c5231c50c412..de33864af70b 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1210,7 +1210,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