From patchwork Tue May 7 19:18:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10933653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC37A13AD for ; Tue, 7 May 2019 19:18:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAD8B28746 for ; Tue, 7 May 2019 19:18:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AED672894E; Tue, 7 May 2019 19:18:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C7AD28746 for ; Tue, 7 May 2019 19:18:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A9E26E832; Tue, 7 May 2019 19:18:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id 001946E82D; Tue, 7 May 2019 19:18:17 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D3B84611BE; Tue, 7 May 2019 19:18:17 +0000 (UTC) Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3544B61112; Tue, 7 May 2019 19:18:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3544B61112 From: Jordan Crouse To: freedreno@lists.freedesktop.org Subject: [PATCH 0/3] drm/msm: Handle component bind failures a bit better Date: Tue, 7 May 2019 13:18:08 -0600 Message-Id: <1557256691-25798-1-git-send-email-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557256697; bh=D9Kd2zxAWJ5KTUC7BKdUtpmmcLWPJaFJ8dfoo6VXoG8=; h=From:To:Cc:Subject:Date:From; b=DakORPlYuaZKmQjO+kxM5s/lNWxbM499Lkw20ZDGpxjNVZ3y6PDF8vw9oA/O7IYQR CP/d6YI/9rn8OPubpzluMcSIP9KOc2mfbBeGSBsjmOkkovTylMD1TiMEpw6UBDSx3a /OAC8kwl3Ak9zf49CHXmREFdmgd32eSiGqxk8ccY= X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557256696; bh=D9Kd2zxAWJ5KTUC7BKdUtpmmcLWPJaFJ8dfoo6VXoG8=; h=From:To:Cc:Subject:Date:From; b=nSsbEPNT5XMJGYCYYKzFXWHkzfqZ1e+RCuNqOK+sg2rrZt4hD1XDRJ8mqwbnwnYpz vhRm2Livl9+PVbmp2kOJrlF+VyWmwUJlQ4v2mfcfhvhJ7qglf2gvEh5cRb/sSSOQQq 5scjGJ84IOp+15GOlKd+lRKNApENzcy/5XreDRTw= X-Mailman-Original-Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org X-Mailman-Original-Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sravanthi Kollukuduru , linux-kernel@vger.kernel.org, Rajesh Yadav , Jonathan Marek , "Gustavo A. R. Silva" , David Airlie , linux-arm-msm@vger.kernel.org, Sharat Masetty , Douglas Anderson , dri-devel@lists.freedesktop.org, Stephen Boyd , Bruce Wang , Mamta Shukla , Daniel Mack , Andy Gross , Sean Paul , Chandan Uddaraju , Kees Cook MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I somewhat accidently injected an error in the DPU KMS init that caused it to fail and a handful of NULL deferences and errors ended up popping out. Here are some fixes in the interest of robustness. Jordan Crouse (3): drm/msm/dpu: Fix error recovery after failing to enable clocks drm/msm/dpu: Avoid a null de-ref while recovering from kms init fail drm/msm/adreno: Call pm_runtime_force_suspend() during unbind drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 +--- drivers/gpu/drm/msm/adreno/adreno_device.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c | 6 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 9 ++++++--- 4 files changed, 11 insertions(+), 10 deletions(-)