Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbdDLC4U (ORCPT ); Tue, 11 Apr 2017 22:56:20 -0400 Received: from regular1.263xmail.com ([211.150.99.134]:45500 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbdDLC4R (ORCPT ); Tue, 11 Apr 2017 22:56:17 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <2c0c44aed72bd49b2ace8b2decdb75a1> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: briannorris@chromium.org, dianders@chromium.org, tfiga@chromium.org, seanpaul@chromium.org, zyw@rock-chips.com, marcheu@chromium.org, mark.yao@rock-chips.com, hshi@chromium.org, Jeffy Chen , Daniel Vetter , Jani Nikula , dri-devel@lists.freedesktop.org, Chris Wilson , David Airlie , Tom Gundersen , Patrik Jakobsson , Dave Airlie Subject: [PATCH v8 0/2] drm: rockchip: Fix rockchip drm unbind crash error Date: Wed, 12 Apr 2017 10:55:28 +0800 Message-Id: <1491965730-31393-1-git-send-email-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 33 Verified on rk3399 chromebook kevin(with cros 4.4 kernel), no more crashes during unbind/bind drm with/out ui service running. Changes in v8: Fix hang when unregistering drm dev with open_count 0 Changes in v7: Address Sean Paul 's comments. Update commit message. Changes in v6: Address Daniel Vetter 's comments. Changes in v5: Fix wrong git account. Changes in v2: Fix some commit messages. Jeffy Chen (2): drm: Unplug drm device when unregistering it drm: Prevent release fb after cleanup drm_mode_config drivers/gpu/drm/drm_drv.c | 19 +++---------------- drivers/gpu/drm/drm_framebuffer.c | 5 +++++ drivers/gpu/drm/udl/udl_drv.c | 2 +- include/drm/drmP.h | 5 +++-- include/drm/drm_drv.h | 1 - 5 files changed, 12 insertions(+), 20 deletions(-) -- 2.1.4