Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp906479imj; Fri, 15 Feb 2019 08:44:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IabvgEac4a0kx3QmgqvplboZSdlf3Ve451NkhXAON8ei/SVWjIPhwRjINYb9+rNpbj7ZZbC X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr10797447plg.250.1550249063434; Fri, 15 Feb 2019 08:44:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550249063; cv=none; d=google.com; s=arc-20160816; b=FkBdb5uXm8y6+VAXY0kPVFuvMx/9LWpshBivadli6Z97P+IL1+hCUvkioCBCr0uowk G2Jr4UMEs2xSMGShbM9lhUktB2S6fhTDmHwDiJZPBbx+PJ6aoRbHTG+ZSVmOMZzAbdpD 9mL+xadXCmMG/zPIPHpbhpnpebSg9513mlcTsgJJBxyg9JbYGuDTZdjbNunruk7Z46Fp IsiL4xdhT0kuWJ0MKCkwaG7lzpTSgAoZj05/lMeH6riZWKkcGYT4L1lk+5ErEpn01UrP RVjeuJmt68+0Bmx5H+BYPvuRltHQhWmrnZZ338exaapwvC1jedoKKcS4uj4LMVmfBS11 EVKQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5poziK9O5Oug3vQdWW8BPc4uRkJvkttpWR2oJESFLtk=; b=eKVuTgWEZukR5TSywr8CG0Jgp20A2nUD2ktNAeA0JwiSEJmZdcqo05sBVN7u/KhUAB JLgY61nm2IoV/zTvb0CB66XPILRTKBvwv6Y8ZvcjRG0M66cDylFhx66x3R3Lrmvt6ers EpeH4kwiTWa1kTiOAVsCxgeYFHFSsMTRKE0wS/ZOk7ulpGhxyqiWAF+wGvfi0KfShEo7 bdtOnyx6uX6XRNIL8xv5V86bIZ4n03qEhHuZM7Mn/DuitI9vk+2+9dlHe7+XNZuYc/1j qAokuyCJ9uVWw/O4pQ/NxYU84VMf2dZyPBadRhOVKK6dSe/E5asveeVDcLNH97/wQSe7 hv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I4lxt5bT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si5718055plr.211.2019.02.15.08.44.07; Fri, 15 Feb 2019 08:44:23 -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=@gmail.com header.s=20161025 header.b=I4lxt5bT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732776AbfBOQBT (ORCPT + 99 others); Fri, 15 Feb 2019 11:01:19 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46470 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbfBOQBS (ORCPT ); Fri, 15 Feb 2019 11:01:18 -0500 Received: by mail-wr1-f66.google.com with SMTP id i16so2634879wrs.13; Fri, 15 Feb 2019 08:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5poziK9O5Oug3vQdWW8BPc4uRkJvkttpWR2oJESFLtk=; b=I4lxt5bTEpPFtdR1k8oJ8nlIKYZwevamv1pYWibplzry/19j0zwYI/sKt5HQOen6Cl +EJERPB2PRTzGQvF3gh18tO16ZSKnpejhwKV+NGWHJpRT3nmqlfqjR/0cBdh9IoXWOW9 n4Pn8bympn6p2WGhozaWuCXl3QqDQcLeCL64fRLJ4iVNpJ7lAGonOkPARD+BQM9+d1gP xgf1HHh3YmMw0NOXcvgoE+i/BUSlUx7bKnS1vgoS21IqhzSEwUvZQwYkOxKrpmXjiWVS MmUoGCf/V6blMu/nyY6y15KcG04cMK473fHt0qkzIAfOqZfC7AbHVeWpFi5E1knkEh/M Z5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5poziK9O5Oug3vQdWW8BPc4uRkJvkttpWR2oJESFLtk=; b=jfp7C5bryQdWjNm9d61n/Gu3dJA3fQbySHic7369Fr0rr85knbCakWSAEA47HeQmS8 Mkk6NGG23aE6Z1Zb1+nmdbdLi96DJsldyPrwMyUpH8rfgdGT9f4/hzwGX9nNiIako8Hf iUmtWdrjJSnEQK+KIrjWAkhmxd4Guc7rXP5dA+giDQ0dki0bL/OYEtRUix70vnVv6SxA ZD0MyRLN5BFIcJ5w+mD1HfsJ2cULnpTGiyq3nY4bxSyDkV9v9VYzt1qQzQUwWa1EEzG8 rh2MTDNspfJHKWL3DTGEK1+S4TTatEE/B4ivVgxvlGIIFNGGPGDbXmR7CAOolvPOzJzE sP1A== X-Gm-Message-State: AHQUAuaXbLfuCUXLa/rRnJbvZV/A43TMGE1d6B/uoQUPHOL9w6Bdmkoe nCoE8KmeC7mcwLXAIHEgshp/5LRUF5j/lZJQ9VQ= X-Received: by 2002:a05:6000:1152:: with SMTP id d18mr7708711wrx.128.1550246476907; Fri, 15 Feb 2019 08:01:16 -0800 (PST) MIME-Version: 1.0 References: <2281684.8tZHfIXjiu@aspire.rjw.lan> In-Reply-To: <2281684.8tZHfIXjiu@aspire.rjw.lan> From: Alex Deucher Date: Fri, 15 Feb 2019 11:01:04 -0500 Message-ID: Subject: Re: [PATCH] gpu: drm: radeon: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime To: "Rafael J. Wysocki" Cc: Alex Deucher , David Zhou , Linux PM , LKML , amd-gfx list , =?UTF-8?B?0K/RgNC+0YHQu9Cw0LIg0KHQtdC80YfQtdC90LrQvg==?= , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 10:39 AM Rafael J. Wysocki wrot= e: > > From: Rafael J. Wysocki > > 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. Do other similar drivers like amdgpu and nouveau need the same fix? I'm not too familiar with the direct_complete feature in general. Alex > > Fixes: c62ec4610c40 ("PM / core: Fix direct_complete handling for devices= with no callbacks") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D201519 > Reported-by: =D0=AF=D1=80=D0=BE=D1=81=D0=BB=D0=B0=D0=B2 =D0=A1=D0=B5=D0= =BC=D1=87=D0=B5=D0=BD=D0=BA=D0=BE > Tested-by: =D0=AF=D1=80=D0=BE=D1=81=D0=BB=D0=B0=D0=B2 =D0=A1=D0=B5=D0=BC= =D1=87=D0=B5=D0=BD=D0=BA=D0=BE > Signed-off-by: Rafael J. Wysocki > --- > drivers/gpu/drm/radeon/radeon_kms.c | 1 + > 1 file changed, 1 insertion(+) > > Index: linux-pm/drivers/gpu/drm/radeon/radeon_kms.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux-pm.orig/drivers/gpu/drm/radeon/radeon_kms.c > +++ linux-pm/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); > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx