From patchwork Mon Feb 4 16:15:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10796033 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 D6E0C13B4 for ; Mon, 4 Feb 2019 16:15:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C231E2ADB8 for ; Mon, 4 Feb 2019 16:15:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5BFD2B3B1; Mon, 4 Feb 2019 16:15:56 +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 742762ADB8 for ; Mon, 4 Feb 2019 16:15:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 082916E571; Mon, 4 Feb 2019 16:15:53 +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 7416E6E56C; Mon, 4 Feb 2019 16:15:52 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3D02E60915; Mon, 4 Feb 2019 16:15:51 +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 09B0960134; Mon, 4 Feb 2019 16:15:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 09B0960134 From: Jordan Crouse To: freedreno@lists.freedesktop.org Subject: [PATCH v1 0/6] drm/msm: Improved a6xx GMU reset Date: Mon, 4 Feb 2019 09:15:38 -0700 Message-Id: <1549296944-17285-1-git-send-email-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.7.4 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: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Marek , Arnd Bergmann , David Airlie , linux-arm-msm@vger.kernel.org, Sharat Masetty , Douglas Anderson , dri-devel@lists.freedesktop.org, Stephen Boyd , Rob Herring , Sean Paul , Mamta Shukla , Thomas Zimmermann , Andy Gross , Colin Ian King , Daniel Mack MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is a stack of changes for 5.1 (if I'm not already too late). The bulk of the changes implement a better GMU reset sequence using the new gpucc power domain added in 5.0. If a GMU fault occurs during runtime we try to do a standard GPU recovery and if the fault happens during GMU start then try to fail somewhat gracefully than BUG_ON. There will be a DT change to go along with this, but we can send that along after the core code is merged. The downside for not having the domain properly listed is that the runtime reset sequence probably won't work which is no worse than it is today. Jordan Crouse (6): drm/msm/a6xx: Remove unwanted regulator code dt-bindings: drm/msm/a6xx: Add GX power-domain for GMU bindings drm/msm/gpu: Attach to the GPU GX power domain drm/msm/a6xx: Make GMU reset useful msm/drm/a6xx: Turn off the GMU if resume fails drm/msm/a6xx: Remove an unused struct member .../devicetree/bindings/display/msm/gmu.txt | 10 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 200 +++++++++++++-------- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 9 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 20 +-- drivers/gpu/drm/msm/adreno/a6xx_gpu.h | 3 +- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + 6 files changed, 144 insertions(+), 99 deletions(-)