Received: by 10.223.185.116 with SMTP id b49csp1986521wrg; Mon, 12 Feb 2018 02:15:08 -0800 (PST) X-Google-Smtp-Source: AH8x22760YaasUPDdsNSbFc49pQvwd0P/gTFNMNV1eTMrV+M2c6xOwyX6MeJTobMaDCBzMuJL+5y X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr9929640plb.81.1518430508550; Mon, 12 Feb 2018 02:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518430508; cv=none; d=google.com; s=arc-20160816; b=ffwhuuDt/yMxiAFUBSpV2Q0yxj5HwYlOq2dX6Oj58c+0cQSucrxqUCZ5laeGU8gQ8j necuYhSHtkZLfT0Si4ud7sZb9NXPD7iXQTea7ISXT9wcc718hC0QHzohtkS8HpdzcF98 Eu8buirGI8zguHm342l1nMdaZzWdhxjN3jVTMYsrXKhS3qukk3e7JOwMte5cwLl/RaHI o09FY5TFrj0EQOBN+RUZ0ydP7YceZzHb+7Q7l2076ILfGbvjQxGRm1fXoImPZgm/inBE mBRNwftqEIEAnmNbY2eS7WUIUSQACCdj17qeKsMusUmWtWi+t0xqvZ43kmRDd5VXTvKE qrmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tbh9cMHo8JNVfIhYWXzLlmdoIsKZbIxo7IQkyTzA3ww=; b=Rp2ZA4PbMrv4SLgJxHtXYBkvl3UR/aR6CkGgnh1KfniTjcTa7QhLA9n0xdBuGSH3Y7 JuHj9UBxPoYi/g47BkKREoWC+U+EJkqSn7pcryGnE6gz+Iu7H3RKlf28tZ9kCYqyc1C+ prRs6yBRd+ZtvPmWK2IfGgm39jhTpgiiza3NsN6fEqHm9KbqVOkBYsFSjVbez5qOi1GK wd4NATRZb0l/Tvg8UR3UDM5RzfYbFTxk0iB89ZrBQxEPIDnQwfTSsCYRt9HPOTPyn7qy +e/oIDaHqXf630QMIe2bbIWuDvX+/68tyf03MNabb5Ej1vsBSe/vMmG5KbXY4jomdaig yIdQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p88si6111870pfd.243.2018.02.12.02.14.52; Mon, 12 Feb 2018 02:15:08 -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; 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 S933370AbeBLJpE (ORCPT + 99 others); Mon, 12 Feb 2018 04:45:04 -0500 Received: from mailout3.hostsharing.net ([176.9.242.54]:48681 "EHLO mailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933089AbeBLJpD (ORCPT ); Mon, 12 Feb 2018 04:45:03 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by mailout3.hostsharing.net (Postfix) with ESMTPS id C530A10195070; Mon, 12 Feb 2018 10:45:01 +0100 (CET) Received: from localhost (p4FC5F26C.dip0.t-ipconnect.de [79.197.242.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h08.hostsharing.net (Postfix) with ESMTPSA id 4B229603E052; Mon, 12 Feb 2018 10:45:01 +0100 (CET) Date: Mon, 12 Feb 2018 10:45:00 +0100 From: Lukas Wunner To: Mike Lothian Cc: Tejun Heo , Lai Jiangshan , Alex Deucher , Dave Airlie , Ben Skeggs , Ismo Toijala , nouveau@lists.freedesktop.org, Intel Graphics Development , Liviu Dudau , Linux Kernel Mailing List , Maling list - DRI developers , Hans de Goede , Peter Wu Subject: Re: [PATCH 0/5] Fix deadlock on runtime suspend in DRM drivers Message-ID: <20180212094500.22nvzzzpy6vrbqgc@wunner.de> References: <20180211192314.GA22869@wunner.de> <20180211194154.GB22869@wunner.de> <20180212033947.GA19049@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > > > Is anything else required to trigger it, I started multiple DRI_PRIME > > > glxgears, in parallel, serial waiting the 12 seconds and serial within > > > the 12 seconds and I couldn't reproduce it > > > > The discrete GPU needs to runtime suspend, that's the trigger, > > so no DRI_PRIME executables should be running. Just let it > > autosuspend after boot. Do you see "waiting 12 sec" messages > > in dmesg? If not it's not autosuspending. > > Yes I'm seeing those messages, I'm just not seeing the hangs > > I've attached the dmesg in case you're interested 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. However that is very good to know, so thanks a lot for your testing efforts, much appreciated! Kind regards, Lukas