Received: by 10.223.185.116 with SMTP id b49csp2525740wrg; Mon, 12 Feb 2018 10:59:30 -0800 (PST) X-Google-Smtp-Source: AH8x226Eln6A2bvfN009u67zml8JJZAnb2C0i0McUdsFOhJMqiVInN7yvhJPX8TahDQrF/FVpGFQ X-Received: by 2002:a17:902:a617:: with SMTP id u23-v6mr11646177plq.201.1518461970120; Mon, 12 Feb 2018 10:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518461970; cv=none; d=google.com; s=arc-20160816; b=Q0kYYujl89/9bMb0f8/TyR8fdVew2LBdJR9aMqHZR3fpPXw+wFxHkOSmDatIeyjBdl 3BpvW7irvsC/QaijeIrSzUCbIBlH7nZoO1lxcS0SoxCct7Bei2bJTnUGJu2b54+1YC7N 091sxI4xO7eFVhJ9xaOtMVfxDno4qOdCQPwVE1rdGl4yamW3k7ro7dR8x71SXjrVGwrH hAOZQK2ghUTCFYsznFBNQr6/ciaXNESfhFmsTbhzBP8HJD+5PTAu6NaCtWwtcYnTVSEG ByDR9EXSqs2FTvjtOOrEcOTOWi+sXVoNfZhf7X7NZV2AhvHjHIydCw//XCJdCWk5u+Gh v3Vw== 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=rhxLH3QOE9Zz0RX8hUduL/Rski+FKySgVM0XZXulOV4=; b=UoiEdurZPJ6eER6g2L5yGn8+CB+HHcFVMtu+7OxwWwaS8zjlndZBZ4O99o3bMZLo9L JsbZ0C8fOVq/8AyZpmZiSebr8UgI+ueJDuQ9fxtDvZkdmCSl9HYv1fq5vfX8JCe2jOwK 1ClbiieARMlY/WbGkgyXRWhO4BGurmud10rkUgvrILNZzydHFkTTGahaDOnU8JBMrkiH n4e6aXmhFRxB29OqMoodfIlCGmtty2dsYFZ5g1Z38WMcynlk/5V/yIDevkzLZvNn91Q5 o8O5/7Oyy238BiLMEekd+yvswa8KUmVybDOrkPoveKBvXsWbEAMtnVAYqOrqNNz6hRw8 wBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HK6JVGWU; 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 z9si394295pgp.675.2018.02.12.10.59.15; Mon, 12 Feb 2018 10:59:30 -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=HK6JVGWU; 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 S1753760AbeBLS6e (ORCPT + 99 others); Mon, 12 Feb 2018 13:58:34 -0500 Received: from mail-yw0-f174.google.com ([209.85.161.174]:46990 "EHLO mail-yw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752881AbeBLS6d (ORCPT ); Mon, 12 Feb 2018 13:58:33 -0500 Received: by mail-yw0-f174.google.com with SMTP id c78so10606828ywb.13 for ; Mon, 12 Feb 2018 10:58:32 -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=rhxLH3QOE9Zz0RX8hUduL/Rski+FKySgVM0XZXulOV4=; b=HK6JVGWUqdVHAAvHlQLxnDID+2ttshJbqtBFyqjc5NT1RYAa1Lp12R92IXpwcbxPlr 3lwb8iAlzyjn3f9avAoZsq+RpxZxDIjr7eLDlEVqHy/PUNnwpJ15RrGRR6nnFSxxb6Nw hO5lf/OYpVwTa/eA7scuTse1kiUivfg2gPzDECPdK+aZPXtPmYyN3z3MJiS+yCj+fV6F 65Sk7wsJqwrOwrfaNpRN+9bkXha1YNya9KmVmenoETAyx1lRUDtHJ8yLdpHim58C5wWw UdqqiwbsFsejk2aTW8JctsbT8nNxJMuvJ6YQM1oSL76rcvofZafG0kYs/QD0X2XJBw1b gI7Q== 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=rhxLH3QOE9Zz0RX8hUduL/Rski+FKySgVM0XZXulOV4=; b=ox/eNPPueuB732e14t16UnX10R89C7/4ZWTfSXoQhg1EANTkBaBYWpzRvCctnIIaia kYi+cE9oqOud/jmdpaUV8MyC9e1rs/447195rqk2+0yo+s9nZwpZv+PHw+Ze+0vXBaVi GIfmUf9uGs+u1l0aWMTuBnnTJav1DAVn3/ht3Dx2EU3pKXhXrDZTfuWa6vk3GPW3GxHZ BMy5LZoQ5+aPeyiVPwm+wmyb7odYDZjS0jFS+QhM1mLUKEC6q6hPZp0UMrJ9A744ySJ3 cRmwexer681CoX+0XwCotAANAYNG7p4phZ1B+Ror7UTZ8zm68114TzxQ8NbmCbhFSIFS 9EpQ== X-Gm-Message-State: APf1xPBmafa2jmO69mTH5Lon2Z/2BESKX+ChVqfanW8fKw8vOEZjsg41 qnPFlZyD1UqKFPuocrNyJlyE6hkIsZ/nN/U2JYY= X-Received: by 10.129.193.9 with SMTP id f9mr549171ywi.25.1518461912499; Mon, 12 Feb 2018 10:58:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.103.133 with HTTP; Mon, 12 Feb 2018 10:58:32 -0800 (PST) In-Reply-To: <20180212094500.22nvzzzpy6vrbqgc@wunner.de> References: <20180211192314.GA22869@wunner.de> <20180211194154.GB22869@wunner.de> <20180212033947.GA19049@wunner.de> <20180212094500.22nvzzzpy6vrbqgc@wunner.de> From: Alex Deucher Date: Mon, 12 Feb 2018 13:58:32 -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 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 >> > > >> > > 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. 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. Alex > > However that is very good to know, so thanks a lot for your testing > efforts, much appreciated! > > Kind regards, > > Lukas > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel