Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4924226imc; Mon, 25 Feb 2019 13:45:07 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibu8bYN1mt1EYf25aWc3muIhGUNvdeH+vGJ0sw/VlNcbeztTFfuOskMBxfHAIeLahSaB8l/ X-Received: by 2002:aa7:87c6:: with SMTP id i6mr22168105pfo.208.1551131107691; Mon, 25 Feb 2019 13:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551131107; cv=none; d=google.com; s=arc-20160816; b=l9bmpYL+IrxzygMiod6u2ToMCmrzVd2nWNSW4IOQLg+j3fDgSi0AEtIbo4WLCz3j9i FcoDJJ8t9Nrn/4MADzG1oJyo52gl2pB488NHwRBAH8uqWTFuQBvfjw8QG1sCUjPtRhTo scHI81HSN61G6LcIG+HT92z56AbdKoYH7ODqWPtLQLneJWw0z+q3uvttC6xVAyUF8MbS P4V1nvjYEwrIx2sRK8CwXRmwRuMuk7SFH8rYezz6uruW7hiWtVXPqPWgmRKzAU09GfDW 7OhHrawj0Cr8qIS4ofY3854i0Nffj5bpipLXPAMgiBOGCwNg1oqoK1DZbqAb3bG7TSD4 x83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AdidFMDF9bkAGILqvDbbx0her6macio3PHLUbXfoyRg=; b=eVlOn9qpugJnTU4vTDb4sEPGREqmSC1XEAF0lanaq/G0IIXP6uMmZKhWxM0LvDpMLa CpdCuUVbQ+sBfY3ORK2Y4Cloo10GCw6YBWNEFastQs9iVnZYVJM+qzgKtcHeojaT0U/u cAd0GzVNecE/cil3ahftDO95e8Fb/dUNkJrcSr1tLuJO7Z0luyEVNI68Tba7nlxDAdM4 F0lSyL33tp/tTRPDJuOwinR1oqCOI0n/wmbaLR/UQaY1VfAdWZ/Z+PUA6NwecTLsIqjc clFzG/rtWB+bPVkWYfMYKr4cfB2r0bZGHrh66tVhO2x+lQL7qCMPHn4Ic0dn5ksW986F mwBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pdQO1PEG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si10500211pgc.327.2019.02.25.13.44.52; Mon, 25 Feb 2019 13:45:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pdQO1PEG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731710AbfBYVcN (ORCPT + 99 others); Mon, 25 Feb 2019 16:32:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:37740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729752AbfBYVcM (ORCPT ); Mon, 25 Feb 2019 16:32:12 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D950E21848; Mon, 25 Feb 2019 21:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130331; bh=PHfjuMHWZe3hmZzt6/QtNTWKFv4oJ4s2kgrVJafN8Uw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pdQO1PEGlnFTsuZfQ5qjR9JWJj0Ud5G1J7WWUqu4twiXh1SX2SLTJWw07625cT2QT EtojpOb9n7PiHC7XVTNE/4PyJQgsFTjYhng0Ij378JdBK8kHttRJHfmD0wzxPhZ8JI NxmJfp2gXoaIbAfx5neMEC5PK763xucE4MmFvgiI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Charlene Liu , Chris Park , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 4.20 087/183] drm/amd/display: fix PME notification not working in RV desktop Date: Mon, 25 Feb 2019 22:11:00 +0100 Message-Id: <20190225195109.230078077@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195054.748060397@linuxfoundation.org> References: <20190225195054.748060397@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 20300db4aec5ba5edf6f0ad6f7111a51fbea7e10 ] [Why] PPLIB not receive the PME when unplug. Signed-off-by: Charlene Liu Reviewed-by: Chris Park Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index 4443a916a0fb6..e84275f15e7ad 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -1000,7 +1000,7 @@ void dce110_enable_audio_stream(struct pipe_ctx *pipe_ctx) pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio); - if (num_audio == 1 && pp_smu != NULL && pp_smu->set_pme_wa_enable != NULL) + if (num_audio >= 1 && pp_smu != NULL && pp_smu->set_pme_wa_enable != NULL) /*this is the first audio. apply the PME w/a in order to wake AZ from D3*/ pp_smu->set_pme_wa_enable(&pp_smu->pp_smu); /* un-mute audio */ @@ -1017,6 +1017,8 @@ void dce110_disable_audio_stream(struct pipe_ctx *pipe_ctx, int option) pipe_ctx->stream_res.stream_enc->funcs->audio_mute_control( pipe_ctx->stream_res.stream_enc, true); if (pipe_ctx->stream_res.audio) { + struct pp_smu_funcs_rv *pp_smu = dc->res_pool->pp_smu; + if (option != KEEP_ACQUIRED_RESOURCE || !dc->debug.az_endpoint_mute_only) { /*only disalbe az_endpoint if power down or free*/ @@ -1036,6 +1038,9 @@ void dce110_disable_audio_stream(struct pipe_ctx *pipe_ctx, int option) update_audio_usage(&dc->current_state->res_ctx, dc->res_pool, pipe_ctx->stream_res.audio, false); pipe_ctx->stream_res.audio = NULL; } + if (pp_smu != NULL && pp_smu->set_pme_wa_enable != NULL) + /*this is the first audio. apply the PME w/a in order to wake AZ from D3*/ + pp_smu->set_pme_wa_enable(&pp_smu->pp_smu); /* TODO: notify audio driver for if audio modes list changed * add audio mode list change flag */ -- 2.19.1