From patchwork Fri Nov 16 18:42:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10686775 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 77D7617DE for ; Fri, 16 Nov 2018 18:42:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 676F72D812 for ; Fri, 16 Nov 2018 18:42:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AEE72D839; Fri, 16 Nov 2018 18:42:43 +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 D5D962D823 for ; Fri, 16 Nov 2018 18:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390356AbeKQE4M (ORCPT ); Fri, 16 Nov 2018 23:56:12 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:38801 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390397AbeKQE4M (ORCPT ); Fri, 16 Nov 2018 23:56:12 -0500 Received: by mail-yw1-f66.google.com with SMTP id i20so3093668ywc.5 for ; Fri, 16 Nov 2018 10:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NWJYRQ6sTJ4EWPIjuk3Ns9242jCsLMzinujGenahiME=; b=C4vYPpJIwhziFsw6lK1rzVA6mrm0TvIl/OSogHrnSI6FWsJ6TPFy+A5sTg/0RlFgkB qsT3t77+iyCGO0HZP8M6LQgv7iZJ5IHmUhnfCEsTUarWlx99MIUK0qrJwiXfvWEQf5gE xDGGNUymiUQYSRJn+q5CX579eQiyQjqV8J2nFTsmMXxwcaYB61GUrlc+MbexZ1HQJNP8 0GFc0FWHWv+lwfj55cdIWSQ0lUHKjg43BgzrTd3IYGoTNd4BU+aNhswohqG3C292XHHe 6mxDEKyX0EZDabS0vGW7sIxIcXKL8k9cEKiM9J4tT3V2RtxWhYFTZswLaeW96GXE6k5v /dbw== 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=NWJYRQ6sTJ4EWPIjuk3Ns9242jCsLMzinujGenahiME=; b=JXsnG3mTW4J3QbTWAF9i7/V5moXXOUe930e0dt5INjoHxVoM7HyyoQDJtMoo8kk2JK W5zH7NShntVLq4ryUlbvcjI5izl3Zb+xKiTcRNWih9+WnAXwEhH0W34JlR2QmnKODgmu sbUmiIFZoYfCe1VApPy5T/9JA3svgsYleBamvh0FHgtdB4OU6sZqoTIfWHN7yel8t6nk VObvaeVjKI4sB8tKkewW3sxaYEdkTrYi5XGESfZW5+PPHdnlFRnVX1l8PqjI8yoFLDzl 3ygHeP7ojhuwHkXXSGsYwdSwNVlf9IbdmfzHuWgP9jizlM40B4g+13ySl8DFp2HjbMKE 2Iiw== X-Gm-Message-State: AGRZ1gLwPY58uZElb5RE+Syv8xytJlcvctGrbB5ySZioYQtLlmnYK9Jj fGa4HP+YZGI3XrcYasGh6y4NRw== X-Google-Smtp-Source: AJdET5cdQQwgiMnZmmNlWJziECcNvfEk1uZQoari3NzZGNufT4ubNA7jD1NtvlHjZZJpn4ZcHko2iA== X-Received: by 2002:a81:6f03:: with SMTP id k3mr10996163ywc.424.1542393760130; Fri, 16 Nov 2018 10:42:40 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id b144sm5359134ywa.33.2018.11.16.10.42.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 10:42:39 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: robdclark@gmail.com, jsanka@codeaurora.org, Sean Paul Subject: [PATCH v2 00/24] drm/msm: Various dpu locking and legacy cleanups Date: Fri, 16 Nov 2018 13:42:10 -0500 Message-Id: <20181116184238.170034-1-sean@poorly.run> X-Mailer: git-send-email 2.19.1.1215.g8438c0b245-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 From: Sean Paul This was originally 3 patchsets, but none have gotten full review, so I figured I'd package the v2's all up into one set so it's easier to track. Set 1- https://lists.freedesktop.org/archives/dri-devel/2018-November/196170.html Set 2- https://lists.freedesktop.org/archives/dri-devel/2018-November/196184.html Set 3- https://lists.freedesktop.org/archives/dri-devel/2018-November/196276.html Thanks, Sean Sean Paul (24): drm/msm: dpu: Remove dpu_power_handle_get_dbus_name() drm/msm: dpu: Remove unused trace_dpu_perf_update_bus() drm/msm: dpu: Remove dpu_power_client drm/msm: dpu: Don't use power_event for vbif_init_memtypes drm/msm: dpu: Handle crtc pm_runtime_resume() directly drm/msm: dpu: Remove power_handle from core_perf drm/msm: dpu: Include dpu_io_util.h directly in dpu_kms.h drm/msm: dpu: Move DPU_POWER_HANDLE_DBUS_ID to core_perf drm/msm: dpu: Remove dpu_power_handle drm/msm: dpu: Fix typo in dpu_encoder drm/msm: dpu: Add ->enabled to dpu_encoder_virt drm/msm: dpu: Move crtc runtime resume to encoder drm/msm: dpu: Don't drop locks in crtc_vblank_enable drm/msm: dpu: Grab the modeset locks in frame_event drm/msm: dpu: Stop using encoder->crtc pointer drm/msm: dpu: Add modeset lock checks where applicable drm/msm: dpu: Move pm_runtime_(get|put) from vblank_enable drm/msm: dpu: Remove crtc_lock from setup_mixers drm/msm: dpu: Remove vblank_callback from encoder drm/msm: dpu: Use atomic_disable for dpu_crtc_disable drm/msm: dpu: Don't bother checking ->enabled in dpu_crtc_vblank drm/msm: dpu: Separate crtc assignment from vblank enable drm/msm: dpu: Remove vblank_requested flag from dpu_crtc drm/msm: dpu: Remove crtc_lock drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 37 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h | 22 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 216 +++++----------- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 15 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 97 ++++--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 24 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 76 ++---- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 6 +- .../gpu/drm/msm/disp/dpu1/dpu_power_handle.c | 240 ------------------ .../gpu/drm/msm/disp/dpu1/dpu_power_handle.h | 217 ---------------- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 43 +--- 12 files changed, 204 insertions(+), 790 deletions(-) delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_power_handle.c delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_power_handle.h