Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7150610ybi; Mon, 8 Jul 2019 15:39:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMvs1ItkM2+471aBNdOVZ8MRa3737nl4aSoQsDuH9zZzzjC0vtFJ54cceWgMYXsufalHuh X-Received: by 2002:a63:6ec6:: with SMTP id j189mr27068720pgc.168.1562625591200; Mon, 08 Jul 2019 15:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625591; cv=none; d=google.com; s=arc-20160816; b=WIY3gLATSMXwAaqVghjmNCt1fOUIXX8lXS5N7tgsfmULL+v+vpAzFw1SKuQqDLX33M LED2UbcTrxeI+QfLIqOk62G3KorTKrx9reie/PiwtgBCzDe9hAJX09qdoP4njvMI2pYs d/CtJq94ex+29WdmToXRoycUJpviiR4ziHJvfeNfJJ/ANvr5ZOqdvS3JNiG52zaz5J/b MHUTNemu/fOvsoY0uv9P9g9Gdh9mlAVT0JcazmBvxS0Bpcf1gzO4+xh9t0qUNpY7hdUO U4SzqLu77QRIPSS7dJoaDkvVFv0uVSC4ZfmVrHQC9rw4pGINuHaINTO5dsOnEnDYfH3s boBg== 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=wEdLBu/MvsU/pOpuA7NZcOx1BlBSAe7+WBpdHujGN64=; b=MydKVmyXpewlw+2P9x372Akkjo/SVLPJWJjhjK3H6XMeXn3umWO3Wxpjrk//AlOBUM NhrWjK1Hdk23oW8aHJcJz5SLoz34MgODbx+MLE78y3GorcEvXPW54LpwArx0m0IJxtxk 9hNU1I2bug6fhOK6ihPyzIiWu6Dcl3DonHFj4Nljnoal4sMrDgbdMPR0Fp79rOAsK+JE iOXJBSF/HQhtTD4FvnjOcqPeOvV9c3lFE3OujKS3klZ1ZiZJP1KFM42e11JDE82PUtgH jtSeNAu5JZrUf/qiQg3+i09ioZncsT05q2NxHHDyN6SEjj3zXssbnH+SDglWAYrbh7Ab mRUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F3RmA1JN; 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 c127si20379693pfc.191.2019.07.08.15.39.36; Mon, 08 Jul 2019 15:39:51 -0700 (PDT) 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=F3RmA1JN; 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 S2390498AbfGHPeO (ORCPT + 99 others); Mon, 8 Jul 2019 11:34:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:36216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390471AbfGHPeC (ORCPT ); Mon, 8 Jul 2019 11:34:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 31B9A20651; Mon, 8 Jul 2019 15:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562600041; bh=+7FiTRrLiAJdrxgP+15TtcJzC8osl96ZZyLt6gKPPFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F3RmA1JNbjjYPA72IWaOYoPTLVrjoFl+MxQbjwm5PfD9IWKi3CLZ4StpMZPWG4ZRY 3B9ZXzNitV6Gwjnix5d4J8gM1T1BQ4YHuWH06LkzK6VofMI8SwK1qh8dBwW8+Roomr cOrNovw+JrWgwU6jEz5me8wWO263Ny4hRMbzJDVI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Quan , Alex Deucher , Huang Rui , Rex Zhu , Likun Gao , Lyude Paul Subject: [PATCH 5.1 74/96] drm/amdgpu: Dont skip display settings in hwmgr_resume() Date: Mon, 8 Jul 2019 17:13:46 +0200 Message-Id: <20190708150530.449312447@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150526.234572443@linuxfoundation.org> References: <20190708150526.234572443@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Lyude Paul commit 688f3d1ebedffa310b6591bd1b63fa0770d945fe upstream. I'm not entirely sure why this is, but for some reason: 921935dc6404 ("drm/amd/powerplay: enforce display related settings only on needed") Breaks runtime PM resume on the Radeon PRO WX 3100 (Lexa) in one the pre-production laptops I have. The issue manifests as the following messages in dmesg: [drm] UVD and UVD ENC initialized successfully. amdgpu 0000:3b:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring vce1 test failed (-110) [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block failed -110 [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-110). And happens after about 6-10 runtime PM suspend/resume cycles (sometimes sooner, if you're lucky!). Unfortunately I can't seem to pin down precisely which part in psm_adjust_power_state_dynamic that is causing the issue, but not skipping the display setting setup seems to fix it. Hopefully if there is a better fix for this, this patch will spark discussion around it. Fixes: 921935dc6404 ("drm/amd/powerplay: enforce display related settings only on needed") Cc: Evan Quan Cc: Alex Deucher Cc: Huang Rui Cc: Rex Zhu Cc: Likun Gao Cc: # v5.1+ Signed-off-by: Lyude Paul Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c @@ -325,7 +325,7 @@ int hwmgr_resume(struct pp_hwmgr *hwmgr) if (ret) return ret; - ret = psm_adjust_power_state_dynamic(hwmgr, true, NULL); + ret = psm_adjust_power_state_dynamic(hwmgr, false, NULL); return ret; }