Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2915534imm; Mon, 16 Jul 2018 17:10:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpccqEBRwIquY1aX7FfSXaaidn73riuLAWdAXW85RpN2x/FAagaYan6vL/ImBK56ltY7fdXX X-Received: by 2002:a63:9741:: with SMTP id d1-v6mr16906719pgo.403.1531786257327; Mon, 16 Jul 2018 17:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531786257; cv=none; d=google.com; s=arc-20160816; b=AnQOtDMKnDr+rgKFuFkC1hSGJF6+E3q0r0aeafEXTYj0iUduXcIdHeb28DiGFfEqA5 CWyLuLZDj/u3adO79Q0jFWJcErzyQjp7zpd4s48DctnibKL66SMZPMDMyc9nJ1cuLJx3 BZWxo4kNbhtiZaJGbL2p0HbyFJQq8t+YrlqwutuI14vKZz6ml0/mnLCTSRUwls6MUq79 knoeO6L6aBvb3JPyAyqvfZrRyaZWAKvNGeYee3tJHyX710wpgqpQMSjV7KHabxhqY5B4 nKtnWamnVctFEj88CqfWNPCifTWoyKqG2DLmWvBuCP1CqJUKl+/tvsSkEXCJAE138eAd 2LWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lCOlnC3PubGs8iAJJ3PHgX7KSJ8WD7zzlwzkx9Ed+TM=; b=NoU8Re752vC4FA+TKbvDkfAs0iRRI6i0FGI8QUE7RwvCc4AjShIMkNwLmhTyee3C8K UGWLuUoueVhGJ21nFdU0JAj8mW1FvzJwldC1TqZBft0YP7cph17xFtgN/J7YJkYlrPVW ltZWoTJ44zpEcCMG771826S53mqdk6qtt6ZU7LfpOA/In6k6TZ1kydIrDIO715YsTxj1 e09TVJVfSFRss2S3e267CgjMXXfZCXfzUGiTgSDxK70z0Vf78agJxWr9QlEsA6OBkvT3 5fKzDHXzb0BSvygBzbdsjH837PFpR/zATN3y7dpLNFug95GL4E6R6HF2q1wwhJSAd0+s XrVw== 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 i4-v6si30689900pgl.435.2018.07.16.17.10.41; Mon, 16 Jul 2018 17:10:57 -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 S1730598AbeGQAic (ORCPT + 99 others); Mon, 16 Jul 2018 20:38:32 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49876 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729466AbeGQAib (ORCPT ); Mon, 16 Jul 2018 20:38:31 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A0D704022414; Mon, 16 Jul 2018 23:59:54 +0000 (UTC) Received: from whitewolf.lyude.net.com (ovpn-124-27.rdu2.redhat.com [10.10.124.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB7C02026D65; Mon, 16 Jul 2018 23:59:52 +0000 (UTC) From: Lyude Paul To: nouveau@lists.freedesktop.org Cc: Karol Herbst , stable@vger.kernel.org, "David Airlie" , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Ben Skeggs" , "Maarten Lankhorst" , "Daniel Vetter" , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , "Lyude Paul" Subject: [PATCH 0/5] drm/nouveau: Fix a lot of nasty RPM bugs and deadlocks Date: Mon, 16 Jul 2018 19:59:24 -0400 Message-Id: <20180716235936.11268-1-lyude@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 16 Jul 2018 23:59:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 16 Jul 2018 23:59:54 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lyude@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes quite a number of runtime PM bugs I found that have been causing some pretty nasty issues such as: - Deadlocking on boot - Connector probing potentially not working while the GPU is in runtime suspend - i2c char dev not working while the GPU is in runtime suspend - aux char dev not working while the GPU is in runtime suspend There's definitely more parts of nouveau that need to be fixed to use runtime power management correctly, such as the hwmon portions, but this series just handles the more important fixes that should get into stable for the time being. Cc: Karol Herbst Cc: stable@vger.kernel.org Lyude Paul (5): drm/nouveau: Prevent RPM callback recursion in suspend/resume paths drm/nouveau: Grab RPM ref while probing outputs drm/nouveau: Add missing RPM get/put() when probing connectors drm/nouveau: Grab RPM ref when i2c bus is in use drm/nouveau: Grab RPM ref when aux bus is in use drivers/gpu/drm/nouveau/dispnv50/disp.c | 12 +++++++++-- drivers/gpu/drm/nouveau/nouveau_connector.c | 21 +++++++++++++++++-- drivers/gpu/drm/nouveau/nouveau_connector.h | 3 +++ drivers/gpu/drm/nouveau/nouveau_drm.c | 10 ++++++++- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c | 12 ++++++++++- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c | 12 ++++++++++- 6 files changed, 63 insertions(+), 7 deletions(-) -- 2.17.1