From patchwork Thu Oct 18 19:58:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10647983 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 261D5112B for ; Thu, 18 Oct 2018 19:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 181EE28E6B for ; Thu, 18 Oct 2018 19:58:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BFE828E7A; Thu, 18 Oct 2018 19:58:50 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 9671528E6B for ; Thu, 18 Oct 2018 19:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbeJSEBX (ORCPT ); Fri, 19 Oct 2018 00:01:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33288 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725139AbeJSEBX (ORCPT ); Fri, 19 Oct 2018 00:01:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EAF7460866; Thu, 18 Oct 2018 19:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539892727; bh=1rqkGbRHZnhpmXRaxZl8DPi/HDYM+p6+9RkUlFZzxPg=; h=From:To:Cc:Subject:Date:From; b=HMJzDp3krIM/Y/+T2Pfcqxx/dLdPBZ7AdzRojgAI38z3oz5ykadUexPawH/FX0rZ5 UMAwIJJaObpZw5l1ZKLMOTwDEp6cuVEfo2jjWVKwUj7f0OZnTg0myvgtAxXNdyvc4k ZiFvD/GHrrV4J4oHwUpOl1u9PjEPrs1GkPtATpQU= Received: from jcrouse-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 BD48D60913; Thu, 18 Oct 2018 19:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539892727; bh=1rqkGbRHZnhpmXRaxZl8DPi/HDYM+p6+9RkUlFZzxPg=; h=From:To:Cc:Subject:Date:From; b=HMJzDp3krIM/Y/+T2Pfcqxx/dLdPBZ7AdzRojgAI38z3oz5ykadUexPawH/FX0rZ5 UMAwIJJaObpZw5l1ZKLMOTwDEp6cuVEfo2jjWVKwUj7f0OZnTg0myvgtAxXNdyvc4k ZiFvD/GHrrV4J4oHwUpOl1u9PjEPrs1GkPtATpQU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BD48D60913 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: freedreno@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, seanpaul@chromium.org, abhinavk@codeaurora.org Subject: [PATCH 00/11] DPU cleanups Date: Thu, 18 Oct 2018 13:58:25 -0600 Message-Id: <20181018195836.15885-1-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.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 I've been working on various methods to automate code cleanup strategies and I'm using dpu as my guinea pig. I started out by trying to identify unused or lightly static inline functions and then that morphed to very small functions in general and that then identified a few general areas of cleanup such as debugfs init/destroy and the dpu_hw_blk_init users. Jordan Crouse (11): drm/msm/dpu: Remove dpu_dbg drm/msm/dpu: Use DEFINE_SHOW_ATTRIBUTE drm/msm/dpu: Remove dpu_crtc_get_mixer_height drm/msm/dpu: Remove dpu_crtc_is_enabled() drm/msm/dpu: Cleanup some container_of helper functions drm/msm/dpu: Cleanup callers of dpu_hw_blk_init drm/msm: Make irq_postinstall optional drm/msm/dpu: Remove dpu_irq and unused functions drm/msm/dpu: Debugfs related cleanups drm/msm/dpu: Further cleanups for static inline functions drm/msm/dpu: Clean up dpu_media_info.h static inline functions drivers/gpu/drm/msm/Makefile | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 59 +- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 16 +- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 47 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 78 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 54 - drivers/gpu/drm/msm/disp/dpu1/dpu_dbg.c | 2393 ----------------- drivers/gpu/drm/msm/disp/dpu1/dpu_dbg.h | 103 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 55 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 2 +- .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 12 +- .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.c | 10 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.h | 2 +- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 9 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 18 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 18 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 24 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h | 15 - .../gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 18 +- .../gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 20 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_irq.c | 66 - drivers/gpu/drm/msm/disp/dpu1/dpu_irq.h | 59 - drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 134 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 38 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 11 +- drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.h | 15 +- .../gpu/drm/msm/disp/dpu1/msm_media_info.h | 164 +- drivers/gpu/drm/msm/msm_drv.c | 6 +- 39 files changed, 181 insertions(+), 3358 deletions(-) delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dbg.c delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dbg.h delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_irq.c delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_irq.h