Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp524895ybi; Thu, 30 May 2019 02:27:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqztbmCDCdc17vBuaN+njUgO+X2itQzBN8/mPgLA3W2xl+tuZjxl0UKQ/MlvejtLYfudVrac X-Received: by 2002:a63:ed16:: with SMTP id d22mr2874956pgi.35.1559208445302; Thu, 30 May 2019 02:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559208445; cv=none; d=google.com; s=arc-20160816; b=cCNkqkqxNAwDynONO+XHzAYcSbdPmUkGMcb4xVsfcxKC1Xd4bqKAIJzt+ZnE0VvpSO vbDJFMe513Zhaj51sJrykd4+Bp8+uAKm2Q4H9/HfSJ997Ll6szKb8X77a9TMAvjvoPt9 QRUPT9V7j9VN7pdUQvRrVRcoVFi/npglzLyIb1myXbZ9MAaTfNRdy+rSZfKZPYPz3StK DZ7Da5D1sYN5gpeFGX8+8EmltY2FnJoWwb682TG3j+P8oTtUBwjH50u02clXJno8ptx2 0EFkyk1+6XgunRkvx0qhA3Mtz2oAbRj+/mFhMi/RSSe+/KscX3xjpqrx75on/qiHM59x 0FhQ== 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 :message-id:date:subject:cc:to:from; bh=vf8V7nVcbpLRt+lvXA8WD8yV6VTtnob3gDmq4bCLt0A=; b=QYEidAxdsDapX/PSgooy8ZyvuoruV5uc6hlwbVdM1Es9W8fK0enzb5tSdEc6bpCVWN 3qYLaUIv3KnPqjXGLPr6tp2ypjgCw3ONPZC/KM0inKt9pmF7iyXBmol1+cVfC7iJQyn2 Rxvuxmdrg6B+Ck+bYojsenH6iXU8e3EsT7guSPz+HV4rTSMtcYFHJWPT6rKfK11FI0x6 WGkHZ6mMWKNlstdZ7IcFjP5NCxvumOvJbTjdUz+w02E1FVQ3BlLxgDmJbFqeJGgReunK Qzkdbrl3AhP8bTuP6VDuiPuYKDKq8PAcAMSrgoPQqXH394YwFQXVgnYi7mwAiJWB8oia OsWg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si2794979pff.159.2019.05.30.02.27.10; Thu, 30 May 2019 02:27:25 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfE3JZE (ORCPT + 99 others); Thu, 30 May 2019 05:25:04 -0400 Received: from mga07.intel.com ([134.134.136.100]:12824 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbfE3JZE (ORCPT ); Thu, 30 May 2019 05:25:04 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 02:25:03 -0700 Received: from jkrzyszt-desk.igk.intel.com ([172.22.244.18]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 02:25:01 -0700 From: Janusz Krzysztofik To: intel-gfx@lists.freedesktop.org Cc: Chris Wilson , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Michal Wajdeczko , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [RFC PATCH 0/1] drm/i915: Split off pci_driver.remove() tail to drm_driver.release() Date: Thu, 30 May 2019 11:24:25 +0200 Message-Id: <20190530092426.23880-1-janusz.krzysztofik@linux.intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I do realize more work needs to be done to get a clean hotunplug solution, however I need your comments to make sure that I'm going in the right direction. So far I have no good idea how to resolve pm_runtime_get_sync() failures on outstanding device file close after successfull driver unbind. Thanks, Janusz Janusz Krzysztofik (1): drm/i915: Split off pci_driver.remove() tail to drm_driver.release() drivers/gpu/drm/i915/i915_drv.c | 17 +++++++++++++---- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_gem.c | 10 +++++++++- 3 files changed, 23 insertions(+), 5 deletions(-) -- 2.21.0