Received: by 10.223.185.116 with SMTP id b49csp3759514wrg; Tue, 13 Feb 2018 07:21:18 -0800 (PST) X-Google-Smtp-Source: AH8x224gbtLW3398j95rF93GKZlbeIXnQmgHPQOT9sD3gi1Qk6sDKvcGzXEzLL2gvgtcQDKDx9pL X-Received: by 2002:a17:902:8302:: with SMTP id bd2-v6mr1400627plb.295.1518535278221; Tue, 13 Feb 2018 07:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518535278; cv=none; d=google.com; s=arc-20160816; b=sSoOZlIaad+9QXeV5/ovPMmssEUj7ro4C0dp86q4h3MwlRSZhnLKV83vnCI3c1uTht 3lSRwSlqEDYAujDm7jmaAVabb7CuTkuPfzIN8/H1wRAsY6QK9gHWOxwMGKwv3MmAprT+ 0T3NoO+klB3c7+uD11iKb2uxqqyju9hmzTOigaV7r37/cZQhm+SFojJIWD5XtGY/94Cw CkvzaSC7WvMz4xfdIiXj2MxE8nJDbGdezwWJYEF/x10v5NbLDKFxB2w24O9+3D70kpeU J0AUA+CwBxs43VMze/F00JGW8ng/mgS9S8Z9vg2OBH5Sz89ikZ1lM5JPxvzsYJl25GpS CKIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=du4o+C3wpZzNx6M1d+k5DbP+HOpO6AzymRQEhx0SKc0=; b=OYX045o+2rzRC2VJmhyAwaIz6a0tvdS6lGjpPg7oYIRSdwt6rblWg6oDzivdUopqL9 s0TBkacZMTXyzvsqpQoaXsopWdb/v0QONVA6PGNHgAVRHK+2LEbhyAC1Gv/CehVGSXpQ DfcS+Y5S6lyj/+NpEhs8Jzr02byDYDE5RT9IR/EAqwdAF7aFWtquoXhCvEuzK58CpEoc nHezENg71EZ09PsNRs63GrCXvzvzeI6f4b76ejgMw1cnBWJ6OaG6/1EaN8AOd2YrS5xl Hb1uv8ievR1OgiGNChjA3V5wwM67IIiuNg0RBjyH2NfqRRBLQD+LeowHl7QU1pYsBGj8 wLvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XKm8LOSx; 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 a23si1206948pgd.610.2018.02.13.07.21.03; Tue, 13 Feb 2018 07:21:18 -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=XKm8LOSx; 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 S965075AbeBMPTk (ORCPT + 99 others); Tue, 13 Feb 2018 10:19:40 -0500 Received: from mail-yw0-f182.google.com ([209.85.161.182]:32849 "EHLO mail-yw0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964828AbeBMPTg (ORCPT ); Tue, 13 Feb 2018 10:19:36 -0500 Received: by mail-yw0-f182.google.com with SMTP id x84so3083490ywb.0 for ; Tue, 13 Feb 2018 07:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=du4o+C3wpZzNx6M1d+k5DbP+HOpO6AzymRQEhx0SKc0=; b=XKm8LOSxROUvYf6NB0rfXK+njNhhlHv7v6Dxsc4r1GTdOnWOm0NyxO48UrDCLUPv/u m1PWciEqITlT+cgECC8ci/zvL1UN7WAcWPA27OXsx0+mxx/B5/m9VjnLi9A/jzEZrmxB Xq0p8GiVsIoq+EFnQwR0HuNZGBUmLTZkGVb6iVXFir0qmGIFqHDL5k4WkavCgSW9bD9W C/Ys5PAnWrW0uaR7emwehKinhAMmZfxwh0AMnGvoIY5ld6+W2K8JoX7Q3PGPDowTdDoi fdBTBEwTZwJoxZBWjrd9TcwrwPw0lSA3Cqvg2BVHO1kwe2EAMFfDI8u2yIZ0ubmrpj7f eZhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=du4o+C3wpZzNx6M1d+k5DbP+HOpO6AzymRQEhx0SKc0=; b=KNHweyRoquQ6BTwQ0kevyxI/wqqQKlmkyUCJhmRpSIc+xAp7cU06ug8Xpgnxuw4XOm IF/gcKsn/YevcOke+o5WGuDvj4GmvVUx4e9/yLbR6u1HYtLWgdb0LlaHgOsrtlx3QgGS FSPhLJhbfJe/IskyaNlHaM8v6QKIyo59Kg7EK6lmA3TXoJlVBSF5HNHkGz7R5Q5G0CRn AcDHq0XFP+xb5NJadD3aI3Jz8m9zZ0cMSeWW9vY1aGMev8PK7Xt8RfhS2aXqBrY2yG+L Hd6LqH4fnZwBKgFiK628/9/asP3s/OQ6jf2HzHS0S+VbJQ4ITkfOXUM/bXZ/2joPyB78 kPZw== X-Gm-Message-State: APf1xPDaGpQSI7IHpYPmWuuY09CBEkFDKsJWksakNC1n0MR3EmnAbNP7 o48fRmkFRVVyDf6G8q/elyrlrfMIHt4VNLSH9wk= X-Received: by 10.13.225.85 with SMTP id k82mr974340ywe.118.1518535175535; Tue, 13 Feb 2018 07:19:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.103.133 with HTTP; Tue, 13 Feb 2018 07:19:35 -0800 (PST) In-Reply-To: <20180213081713.GA8239@wunner.de> References: <20180211192314.GA22869@wunner.de> <20180211194154.GB22869@wunner.de> <20180212033947.GA19049@wunner.de> <20180212094500.22nvzzzpy6vrbqgc@wunner.de> <20180213081713.GA8239@wunner.de> From: Alex Deucher Date: Tue, 13 Feb 2018 10:19:35 -0500 Message-ID: Subject: Re: [PATCH 0/5] Fix deadlock on runtime suspend in DRM drivers To: Lukas Wunner Cc: Mike Lothian , Ismo Toijala , Hans de Goede , nouveau , Intel Graphics Development , Lai Jiangshan , Linux Kernel Mailing List , Maling list - DRI developers , Alex Deucher , Ben Skeggs , Tejun Heo , Dave Airlie , Liviu Dudau , Peter Wu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 3:17 AM, Lukas Wunner wrote: > On Mon, Feb 12, 2018 at 01:58:32PM -0500, Alex Deucher wrote: >> On Mon, Feb 12, 2018 at 4:45 AM, Lukas Wunner wrote: >> > On Mon, Feb 12, 2018 at 09:03:26AM +0000, Mike Lothian wrote: >> >> On 12 February 2018 at 03:39, Lukas Wunner wrote: >> >> > On Mon, Feb 12, 2018 at 12:35:51AM +0000, Mike Lothian wrote: >> >> > > I've not been able to reproduce the original problem you're trying to >> >> > > solve on amdgpu thats with or without your patch set and the above >> >> > > "trigger" too >> > >> > Okay the reason you're not seeing deadlocks is because the output poll >> > worker is not enabled. And the output poll worker is not enabled >> > because your discrete GPU doesn't have any outputs: >> > >> > [ 0.265568] [drm:dc_create] *ERROR* DC: Number of connectors is zero! >> > >> > The outputs are only polled if there are connectors which have the >> > DRM_CONNECTOR_POLL_CONNECT or DRM_CONNECTOR_POLL_DISCONNECT flag set. >> > And that only ever seems to be the case for VGA and DVI. >> > >> > We know based on bugzilla reports that hybrid graphics laptops do exist >> > which poll outputs with radeon and nouveau. If there are no laptops >> > supported by amdgpu whose discrete GPU has polled connectors, then >> > patch [5/5] would be unnecessary. That is for Alex to decide. >> >> Most hybrid laptops don't have display connectors on the dGPU and we >> only use polling on analog connectors, so you are not likely to run >> into this on recent laptops. That said, I don't know if there is some >> OEM system out there with a VGA port on the dGPU in a hybrid laptop. >> I guess another option is to just disable polling on hybrid laptops. > > If we don't know for sure, applying patch [5/5] would seem to be the > safest approach. (Assuming it doesn't break anything else.) I don't have any objections. I see no reason to leave out the amdgpu changes. Alex