From patchwork Fri Oct 5 21:03:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Wang X-Patchwork-Id: 10628733 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 B8B6B15E2 for ; Fri, 5 Oct 2018 21:04:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A74E929C1A for ; Fri, 5 Oct 2018 21:04:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B29A29C21; Fri, 5 Oct 2018 21:04:08 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7377329C1A for ; Fri, 5 Oct 2018 21:04:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbeJFEEe (ORCPT ); Sat, 6 Oct 2018 00:04:34 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:41499 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbeJFEEe (ORCPT ); Sat, 6 Oct 2018 00:04:34 -0400 Received: by mail-yb1-f193.google.com with SMTP id e16-v6so5976545ybk.8 for ; Fri, 05 Oct 2018 14:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0qvDrzryWtfYyqvH6/q772QpAE6eIL7rRcFMyOcW1UY=; b=Vc9M1Q5/d8Y9OPh274kdesVmOdDbjiGRdx9Yt4zi0SiQKJfiK3D4tGNeB1S3sdn+UB sjTS0g94yen/VHvuOg6x4K0HzPvHG+3JmOBbIFxCZlBNOWZeXKFJnNXRo9EU3ZKUwpOw zFlX0DKMLkv4K7iiXV/1BYlPq4HUg9kK572qc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0qvDrzryWtfYyqvH6/q772QpAE6eIL7rRcFMyOcW1UY=; b=ePYAypw7Cl2ZbdL/FTv+sj9Iz4xXLTeAHHbCdKvI04m8dIFv/wcNd46B6Vzjsnrzk/ DQ+cA+62D40Zt+a6uOpVADJoJ+cOEp/MbtNZsVLp089fzr2QH2kpaEb1mnXjHEL44yRM MJE3OzW4Pgjyly1pdVtIGC5aG8ujooRlX7LetPVPwzFWlk4rXXV+kBUMnNakUrMhG0Ma CL51tgeI6csCQkf5i7gdgEeyIDGJ1wT6WTTlrb55wmML5PNX16WAIjSZuQnM7R0jlnjo 7aWG2VZ+9OX9yVB2v0hIdOmrNIMY3ZCZ8iYiGPGMLWWTW5o+v3LU9cKlYIzt4JmWsC2k d5YQ== X-Gm-Message-State: ABuFfogkUEO2FyhkJfJPJ+tHsz9Xsw4xA/z1bL94hfRD7U/PTFnYEEZD 3ySy3V4JEcuBPPLp5uaHvd9sTg== X-Google-Smtp-Source: ACcGV63JN+r8t0ZRoH/C4q4WOGqX0UABOpAX3U7fw4MXUijAkCTp7Tn3KbBpePunrXedY99j8h+BFQ== X-Received: by 2002:a25:c1c5:: with SMTP id r188-v6mr1598711ybf.260.1538773445874; Fri, 05 Oct 2018 14:04:05 -0700 (PDT) Received: from bzwang.cnc.corp.google.com ([2620:0:1013:11:6f9e:dcbe:41ef:a61]) by smtp.gmail.com with ESMTPSA id f5-v6sm3496141ywa.39.2018.10.05.14.04.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 14:04:04 -0700 (PDT) From: Bruce Wang To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: seanpaul@chromium.org, jsanka@codeaurora.org, robdclark@gmail.com, abhinavk@codeaurora.org, jcrouse@codeaurora.org Subject: [PATCH v3 0/4] drm/msm: Use atomic helpers for PM suspend/resume Date: Fri, 5 Oct 2018 17:03:59 -0400 Message-Id: <20181005210403.54615-1-bzwang@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Patches 1-2: Changes msm_pm_resume implementation to use atomic helpers and removes the previously used dpu_kms_pm_suspend/resume functions. Patches 3-4: Removes reliance on knowledge about suspend state from crtc and removes dpu_crtc_reset in favour of the atomic helper. v2: Reorganized patch ordering, added removal of suspend state reliance v3: Condesed suspend state reliance patches into one patch (patch 3), added removal of dpu_crtc_reset Bruce Wang (4): drm/msm/dpu: Remove dpu_kms_pm_suspend/resume drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume drm/msm/dpu: Remove suspend state tracking from crtc drm/msm/dpu: Replace dpu_crtc_reset by atomic helper drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 87 +-------------- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 2 - drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 123 ---------------------- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 31 ------ drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 15 +-- drivers/gpu/drm/msm/msm_drv.c | 27 +++-- drivers/gpu/drm/msm/msm_kms.h | 3 - 7 files changed, 19 insertions(+), 269 deletions(-)