Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4921270imc; Mon, 25 Feb 2019 13:40:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ0XgLErb/m2UPxG+74s4YIFhPlY2Ze50i0t4/2gBfp643XI6ChMdSkwN5oXPqGqr+P4GIN X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr22532953plo.90.1551130856853; Mon, 25 Feb 2019 13:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551130856; cv=none; d=google.com; s=arc-20160816; b=AkUKyjPokSFCQWFt8YhwxvL2lo/E2goveVst4H8K12fntEm980dDMv9DwXxbDT5g3e MoLGfIkEsmVbrtMEmEsHXlNYsbgcA9heyBOs05BwbkdwQ+81Mi6BoRqSFNLrrwHoYWAq jsdDz503QG0+G5+CP6S+h9fmbaoSwzdfcLMEwRhcZuVIVDjVbP/sJCwAxahazaz8JxFR yzBc4S4LX345YR8kPcVJeWxOoJTpbiLaiOfQKZRitRRA6jgFieZql8rNnI0Fhu9yNh4o 4SJ4TgaVejZ0E9m6uNraDRWqr7ZYPUiqdAEO6YjwoBeqoO3PUsvpk8bs0+gdfS2bO5Ac uMPQ== 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=NVw3LyoG0KtzdFyYdILGpxMFQqDwgSBnYbo+TonhMfM=; b=wk17uiGwkfdrA/BHYpdk0//YR2lRv2ioM3KzrW9L+ZiZByAFhvu7VA3xBYXkWnKL32 /AY8hEkTGanwPQYHnTTvpt8X+PX2FU5ZKbQzE4k0YcmsUnsPoi3C7s3l5+z3NjrfLgWc E27WJkILGhox21CH9ZzCsXX9T2VOY5nAxnc2aYJ57ylyIwlFjMnSnSCm7pC0Eq8Tvaj5 Xoqha1rGgaUMsQ5+i77yDG1fbmQPG7EX/gpCrYf2iadDMzdRx5p5wkgZNGL0oobe2wK7 80iHQESxA0Zzc8/ZFdsrlHJEebmMWRL2/HjWRtI/xDhkqPDGZi1tWkDNxSVP+wAlUXEj L7EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wYaVzo0r; 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 a8si8217042ple.346.2019.02.25.13.40.41; Mon, 25 Feb 2019 13:40:56 -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=wYaVzo0r; 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 S1731999AbfBYVfz (ORCPT + 99 others); Mon, 25 Feb 2019 16:35:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:42158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732618AbfBYVft (ORCPT ); Mon, 25 Feb 2019 16:35:49 -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 9525621841; Mon, 25 Feb 2019 21:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130549; bh=WxxZoOTv+3ju1FEgM4Dx8QJknMpyNVmfMrHXIVZNSlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wYaVzo0rdBwA/zpwNa3iQ56da2eEWLRmCpHUsC3jGVosInwCeEMbq6a16uN1Zh7sP esxPa2UUUaGja0pOsmb1m6SbeVo8Pv8vlFtlhmwOLk8SJEyON9Yjw46/mr1I+se2hH eyeRln89t2p4WGrVkSpB3OSemkhd3sIRCLCLv9/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?=D0=AF=D1=80=D0=BE=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B5=D0=BC=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= , "Rafael J. Wysocki" , Alex Deucher Subject: [PATCH 4.20 157/183] gpu: drm: radeon: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime Date: Mon, 25 Feb 2019 22:12:10 +0100 Message-Id: <20190225195121.444774739@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. ------------------ From: Rafael J. Wysocki commit 450d007d199e632a1a4c4b91302deacd7d56815f upstream. On HP ProBook 4540s, if PM-runtime is enabled in the radeon driver and the direct-complete optimization is used for the radeon device during system-wide suspend, the system doesn't resume. Preventing direct-complete from being used with the radeon device by setting the DPM_FLAG_NEVER_SKIP driver flag for it makes the problem go away, which indicates that direct-complete is not safe for the radeon driver in general and should not be used with it (at least for now). This fixes a regression introduced by commit c62ec4610c40 ("PM / core: Fix direct_complete handling for devices with no callbacks") which allowed direct-complete to be applied to devices without PM callbacks (again) which in turn unlocked direct-complete for radeon on HP ProBook 4540s. Fixes: c62ec4610c40 ("PM / core: Fix direct_complete handling for devices with no callbacks") Link: https://bugzilla.kernel.org/show_bug.cgi?id=201519 Reported-by: Ярослав Семченко Tested-by: Ярослав Семченко Signed-off-by: Rafael J. Wysocki Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_kms.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -172,6 +172,7 @@ int radeon_driver_load_kms(struct drm_de } if (radeon_is_px(dev)) { + dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP); pm_runtime_use_autosuspend(dev->dev); pm_runtime_set_autosuspend_delay(dev->dev, 5000); pm_runtime_set_active(dev->dev);