Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2500422imm; Thu, 2 Aug 2018 12:39:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMrpS6WcjszLbyNWLGNzSYqhzzfWY+NTo60d3hs7mfjS81ih2CvqE1Afrb5SmpKPW+GlIp X-Received: by 2002:a62:3601:: with SMTP id d1-v6mr894091pfa.41.1533238773352; Thu, 02 Aug 2018 12:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533238773; cv=none; d=google.com; s=arc-20160816; b=BE8mPZjDo3BY0hEegua5lU8JzMANMozx0MSBTOoYfGP72rMeLGiHBaEJsLhQUlQPnx Voshkn0+srwY0eMqPe2QWWtjEU+U90q8e+XQ9yy2dGG5kdf0hb3oPYJRywDMe66hiRRe 39ja4WfqhRQ1LKO6DTPfFH/Uxszw3jRmMxEPejuzkIvTfGKuzOtWy7DckvsohY8eHIpm TRtF/pD8MXl3ccwMoYn8qoPEUhRX0Q5mHbw6wAVmEy4g+/soGJvRYba8OyAq8kmekXqx 1MRXhXWcc4JFnrakuz8SIwiM4xnHdtn/YstE4oVH5tijHveqWF0DR18a5mTbpkVzJKzk Kspg== 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 :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=6htxVkzpYwbFRd0K9Ruu7q6MTSiLsU0m6IJbm2GImF0=; b=Xmm4TOp9NviyVHEl7Vdy33ozK26TJfuG7p0kH8fa6vmMJxqZQtURlj4pwYCkTzGR6A uIQVngsN7zKfzxXEX1NIcAifjXpyssdfDBrweMOB7NvoJ9pCyZ4fNpb9EjzK5NqPESPA /W+NhTv5Ob3zfqyljgRQwciVlPBCjdf56NsdSFs71jjt8cuRwm10QCokWRuTOnVPWebU EDvZgN77SNwpY6pTsp1gT35wABtjJyykwIk7Uuz+WH5z/6s7p7/k1UFe8HVYKRY/PSbR UB1bgaC7qCiYCsqXBs/iLmIDtEyDQm9Z2O/oaviJPg9vNurY1/wKP1vQUcObkZ0dVwpz BPxg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t80-v6si2976999pfk.228.2018.08.02.12.39.16; Thu, 02 Aug 2018 12:39:33 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727136AbeHBV3s (ORCPT + 99 others); Thu, 2 Aug 2018 17:29:48 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:39464 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbeHBV3s (ORCPT ); Thu, 2 Aug 2018 17:29:48 -0400 Received: by mail-qt0-f196.google.com with SMTP id q12-v6so3648643qtp.6 for ; Thu, 02 Aug 2018 12:37:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=6htxVkzpYwbFRd0K9Ruu7q6MTSiLsU0m6IJbm2GImF0=; b=N88uQCBjeIs7KnBeN+Us4JRBxQ2OrRvD6Z+VrYQs7dIVED0hBSnPKcclyHGHw8xXCT zeGOOPksI4ehOf6UCSXzfGQ/GGqot+2KdjFPphJ9U/U+EZExeianhoRANebAbeGJfJie 5dO2F3G92DI5fY6oggo8+7a937HwbJ21mXXubIKbayjVa/ANOvX740zAMCtgnS53hPJp XRr4JStDs2F5Sc1EhI92J3WUAXcEISFDJHB1VCow3/wMkHHXs6mKGG/axxv4lFZAelm+ EAh6c2Ucq9xxUD1E/2DcEbTUhXLlooV2M5VhT/N0rC86nSvqLQTCIUniqgqeZbcq5QM2 86hw== X-Gm-Message-State: AOUpUlHw42abiMMsvhn84x6Vh8I9UAXMUUGR9WuBzgJweG7+D2FLr4kV suKJERM46BGapf54+chePgKvgg== X-Received: by 2002:ac8:82e:: with SMTP id u43-v6mr915385qth.88.1533238634690; Thu, 02 Aug 2018 12:37:14 -0700 (PDT) Received: from dhcp-10-20-1-11.bss.redhat.com ([144.121.20.162]) by smtp.gmail.com with ESMTPSA id j86-v6sm3328458qkh.60.2018.08.02.12.37.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Aug 2018 12:37:14 -0700 (PDT) Message-ID: Subject: Re: [PATCH v4 2/8] drm/nouveau: Enable polling even if we have runtime PM From: Lyude Paul To: Lukas Wunner Cc: nouveau@lists.freedesktop.org, Peter Ujfalusi , stable@vger.kernel.org, Ben Skeggs , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Thu, 02 Aug 2018 15:37:12 -0400 In-Reply-To: <20180802191405.GB6180@wunner.de> References: <20180801211459.7731-1-lyude@redhat.com> <20180801211459.7731-3-lyude@redhat.com> <20180802191405.GB6180@wunner.de> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.4 (3.28.4-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org oooh, thanks for pointing that out. I should have grepped for this function before doing that commit. There also appears to be another duplicate drm_kms_helper_poll_enable() in nouveau_vga.c which also looks equally suspecious as being useless. I will fix this up and also remove that other duplicate call in the next version of this On Thu, 2018-08-02 at 21:14 +0200, Lukas Wunner wrote: > On Wed, Aug 01, 2018 at 05:14:52PM -0400, Lyude Paul wrote: > > --- a/drivers/gpu/drm/nouveau/nouveau_drm.c > > +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c > > @@ -592,10 +592,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned > > long flags) > > pm_runtime_allow(dev->dev); > > pm_runtime_mark_last_busy(dev->dev); > > pm_runtime_put(dev->dev); > > - } else { > > - /* enable polling for external displays */ > > - drm_kms_helper_poll_enable(dev); > > } > > + > > + /* enable polling for connectors without hpd */ > > + drm_kms_helper_poll_enable(dev); > > + > > I'm wondering why drm_kms_helper_poll_enable() is called here at all. > Does the invocation in nouveau_display_init() not suffice? Can there > be a situation when nouveau_display_init() is not called despite there > being connectors that need to be polled? > > Thanks, > > Lukas -- Cheers, Lyude Paul