Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2296570pxb; Fri, 5 Feb 2021 14:11:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTRdNcb8+24a+ZQonMh1HM5kXAYxNHKXG9fRrLG1b1dKEB+GrN3W4JA0DoL6AanFQ0mXQJ X-Received: by 2002:a17:906:7687:: with SMTP id o7mr6014304ejm.209.1612563113796; Fri, 05 Feb 2021 14:11:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612563113; cv=none; d=google.com; s=arc-20160816; b=YaKi9oaHV4hwIzCpkd7RrJinwlVxqrM/B0dbzRj8rkrI5aL2qS94plx5rDsmNF0lw8 lT9pAGYC42BfXArcKGXq9vvLLfE1Ap35TtDAeY+O89W/Y8RaWLcWtVjg45p8VQpa7QjF w/+MlkO/sMARN9v+qD9HN57KKbhtwzATLjeCGuzbFhdtU3bNp4MMyuvC9892yzSk2UwB cfkevvY1Tjq2aYQCmOjYwRGOpTb+rSBE+JKyrAACc9ty+6YDIwOg5msUW0l0DEKcZPzT ug6mO6KDc93FuN/GLbDbmaM25H1K+y/Vathz2fLYkTvJlY89NmQu7VlwLs6SqDN0KSjm p1oQ== 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=KnWKQWDwW+6dA4jrADIjC0aGjYk2/al5QQXhAely1X8=; b=QWUwz5jibuRdLC4A6V9VuHppf864Z3MWCW/G03Ecqkh5BsImRUv30eoSGUxNXL2jtg ul87Z8yP1VVC+jWY9dAahfXt16MadXY3neETbKCTSyZfYGo6JXQOXmg7UYNnBcSl1bp0 7pjXkNqpH8uhAc4rJvIlpTuVLZc/REyfPa+cFUjP23yvI2d8J8RBVbpoqu+10/3Jt8iN OU+laey66QPJ/SsiAB59F6NEQAQdHSUWlQs43T62oBbSoi16kRCdki3iBgqYizFI2L2K lBeN6oHgK4heIo3/tOjRJRekrSIkX7UpUcOPPOPKtwzK7UQwtTiNbCbZQ4KAho+W9Pj4 ZlDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yBZSwXZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si5933876edu.340.2021.02.05.14.11.29; Fri, 05 Feb 2021 14:11:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yBZSwXZ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232852AbhBEWKe (ORCPT + 99 others); Fri, 5 Feb 2021 17:10:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:45254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232946AbhBEO5X (ORCPT ); Fri, 5 Feb 2021 09:57:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08E7E65024; Fri, 5 Feb 2021 14:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612534273; bh=Tn1QHHcsJqiutpk3sC7RqJ7WncRkDf7SD0f8luhEqt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yBZSwXZ6yaebD9lWDXOinoMcQ26CuL1Q3Dmmz8lA8/782ztZ95DhpZR/OSC3Y7Zq/ sTwlOcZx+BjN4FxCklLxqDjkphBY6QyHYuj3GCPJo7XbpB6aeu4PUwxjwZlWK2j5l6 W4DEyR3odkmPBu5hcwrlo7/HtPlzZUC7RKyWqV+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Wheeler , Vladimir Stempen , Aric Cyr , Anson Jacob , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 50/57] drm/amd/display: Fixed corruptions on HPDRX link loss restore Date: Fri, 5 Feb 2021 15:07:16 +0100 Message-Id: <20210205140658.127197314@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205140655.982616732@linuxfoundation.org> References: <20210205140655.982616732@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Stempen [ Upstream commit 4b08d8c78360241d270396a9de6eb774e88acd00 ] [why] Heavy corruption or blank screen reported on wake, with 6k display connected and FEC enabled [how] When Disable/Enable stream for display pipes on HPDRX, DC should take into account ODM split pipes. Tested-by: Daniel Wheeler Signed-off-by: Vladimir Stempen Reviewed-by: Aric Cyr Acked-by: Anson Jacob Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 004e2b32e02fa..17e6fd8201395 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -3023,14 +3023,14 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd for (i = 0; i < MAX_PIPES; i++) { pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off && - pipe_ctx->stream->link == link) + pipe_ctx->stream->link == link && !pipe_ctx->prev_odm_pipe) core_link_disable_stream(pipe_ctx); } for (i = 0; i < MAX_PIPES; i++) { pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; if (pipe_ctx && pipe_ctx->stream && !pipe_ctx->stream->dpms_off && - pipe_ctx->stream->link == link) + pipe_ctx->stream->link == link && !pipe_ctx->prev_odm_pipe) core_link_enable_stream(link->dc->current_state, pipe_ctx); } -- 2.27.0