Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2473952imm; Thu, 2 Aug 2018 12:11:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMkJz9YnYGirwjQ0yEdhVkFWR1rlJiWZGeslvJ+tzU4CYTzpSfF1Zmu3sg8Y6ECFPjsiIn X-Received: by 2002:a63:24c:: with SMTP id 73-v6mr725014pgc.252.1533237112343; Thu, 02 Aug 2018 12:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533237112; cv=none; d=google.com; s=arc-20160816; b=r8LnB8VEnPAaKRdV0wkTQtFCQhtAmMaUW52TkYQ465OVnPNtGFeYhsiDqqoaOjSRrx aMH4wH2N2GURXoy39pYcDvEcu/x/JFDDNqGmfTch4aGHh0EAB67m8Q4uxrCm2BYKx0dk lh6B2ptAHhNL9pWcdZftEn+zEQ6e2PGz2RlifXE+u5ZGUMRILDlm5+7pPLWqfo33maH/ 7qP8NjbdK3WqJYRy9mN3ovIzknHaZIcTNDJZohLtFvof7l9mrOaJRTtfbuBKvFrHPMUC I8+DhQtogmH4NrfMY33sMcI2OrSOPlZXD3ckz3ggRKINmo4PDKHqa1yt3liXAr4DkQsZ yqFg== 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=+ZKpQfdrfGdnJ1rewXf71r/0V5MALcNZg9xlT4s0ASs=; b=Jfv1endb5Oj/kBBHiBLk1E7lAeZt1F1ZStbRS4MtFtcC14Pjj/FpXGRt/w271PnuWg QUpHXwZqIdiFusikjwDSDSVQSXlkxJ2gUXCuvC7fh7zj+wJgGGblHdaYCIp02QnXf1o1 tpwKx75D8mG202f3iLoix7MJEuZQ/CeJ8SY06Gd3sH52XSDSTMUmPvsh31X+MXp4lNyq vnZoTsxO8wKkJbITziv6RFYGBxIm66dnSygx4ZnZX2QM2d0qvF/c9yr6enhqhwC8MrxE x2s/v2uy8mqdH/KirZyzyZUB5zPdk2Z7sz69ZnWFcEKbMH35SdKNl/bnrO3WsMX2RZKt xGQQ== 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 g6-v6si1924023plp.204.2018.08.02.12.11.36; Thu, 02 Aug 2018 12:11:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731423AbeHBVDR (ORCPT + 99 others); Thu, 2 Aug 2018 17:03:17 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:45443 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbeHBVDR (ORCPT ); Thu, 2 Aug 2018 17:03:17 -0400 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 bmailout3.hostsharing.net (Postfix) with ESMTPS id 69C88100DA1A6; Thu, 2 Aug 2018 21:10:48 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 092A9355EE; Thu, 2 Aug 2018 21:10:47 +0200 (CEST) Date: Thu, 2 Aug 2018 21:10:47 +0200 From: Lukas Wunner To: Lyude Paul 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 Subject: Re: [PATCH v4 1/8] drm/nouveau: Fix bogus drm_kms_helper_poll_enable() placement Message-ID: <20180802191047.GA6180@wunner.de> References: <20180801211459.7731-1-lyude@redhat.com> <20180801211459.7731-2-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180801211459.7731-2-lyude@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lyude, thanks a lot for your persistence in attacking these runtime PM issues in nouveau. v4 of this series looks very good overall. I only have comments on patches 1, 2 and 8. On this patch 1 it's merely a nit: On Wed, Aug 01, 2018 at 05:14:51PM -0400, Lyude Paul wrote: > --- a/drivers/gpu/drm/nouveau/nouveau_drm.c > +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c > @@ -835,7 +835,6 @@ nouveau_pmops_runtime_suspend(struct device *dev) > return -EBUSY; > } > > - drm_kms_helper_poll_disable(drm_dev); > nouveau_switcheroo_optimus_dsm(); > ret = nouveau_do_suspend(drm_dev, true); > pci_save_state(pdev); This third hunk in the patch lacks an explanation in the commit message. I think its rationale is that drm_kms_helper_poll_disable() is already invoked in nouveau_display_fini(), which gets called on ->runtime_suspend, hence need not be invoked once more in nouveau_pmops_runtime_suspend(). Thanks, Lukas