From patchwork Wed Dec 15 10:43:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 12677977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AADACC433EF for ; Wed, 15 Dec 2021 10:44:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vDYHJfDqeDIYojrtUk5FZXuzzYTu/tWtC012QTpNy8I=; b=eawAVvWuAqRm8N 3PtsB1U1VczbJDOEjrFitrk2dYuqHFvLTJkPsKmlPE9SvpkloBfv4wc1XQ4hazirg/VLdUiZqBeJi 26pySqWR+cyOVTRjenJAljwHIslVtNDy/S4D43vklVvLvKDYSIDtxeeFGFTYO6yNWLyR3NQs61Kzt zf4/vC7VtTsxAQSHPaJkYey6ONNV9eTq/2fRrZfGErQ0XrJEuOV879pnq1HSU9eiW8obuNTR81jVR UpLFnle9i7//YqIl2MTMuYdYHC5v8TOK8TWVNp/evrcSqwsb/BvkEdY64arwmh3iL9D29p6iET1sx HFx6stdXZBTzKRTW+BaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxRlX-000DUi-UL; Wed, 15 Dec 2021 10:44:07 +0000 Received: from smtp-out2.suse.de ([195.135.220.29]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxRko-000DFr-Ih; Wed, 15 Dec 2021 10:43:24 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4601E1F382; Wed, 15 Dec 2021 10:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1639565001; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=M2oalJH/koH3roTDPDbPSrvJue1i8o+dUOZK+n2x69g=; b=dfzvyDT/oZssAW6P5PRwf4LbbkB0n/PE91+XthjAV3IWhhqI1q2IdUYG1klgx8xKJg4NI2 xFgjZ3CGlSMTHEO/I5dhzdiZuRR9rcAT2Bpn79yUXDL2ZSgP+9IN1qTSxSUqTdLG/lqLVP lZlvojmtJJE1FvjV4CcVMaz56pKTrns= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1639565001; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=M2oalJH/koH3roTDPDbPSrvJue1i8o+dUOZK+n2x69g=; b=Xvr0A3vYEvRf7IvTydmZLjcghPcqKy7Jq8qGRY0vRo94entLQawFpekUISARriGABGY6Uj yemJ3KmIrtHiJqAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EECD413B1C; Wed, 15 Dec 2021 10:43:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SVlROcjGuWH1eAAAMHmgww (envelope-from ); Wed, 15 Dec 2021 10:43:20 +0000 From: Thomas Zimmermann To: mripard@kernel.org, maarten.lankhorst@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, jani.nikula@linux.intel.com Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v2 0/5] drm/dp: Move DisplayPort helpers into own module Date: Wed, 15 Dec 2021 11:43:12 +0100 Message-Id: <20211215104318.18866-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_024322_795452_BD5D8D73 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Split-off DisplayPort functions from KMS helper library and move them into their own module. Reduces the size of drm_kms_helper.ko by ~50%. This patchset is part of an on-going effort to reduce the minimum binary size of the DRM core and helpers. It's helpful for systems with early-boot DRM graphics, which requires DRM to be linked into the kernel image. v2: * move helper library into subdirectory (Jani) * also move DP AUX bus helpers Thomas Zimmermann (5): drm/dp_mst: Remove trailing whitespace. drm/dp: Move DP declarations into separate header file drm/dp: Move DisplayPort helpers into separate helper module drm/dp: Move public DisplayPort headers into dp/ drm/dp: Move DisplayPort AUX bus helpers into dp/ drivers/gpu/drm/Kconfig | 8 +++++ drivers/gpu/drm/Makefile | 12 +++---- .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 4 +-- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 2 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 +- .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 4 +-- .../drm/amd/display/dc/core/dc_link_dpcd.c | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 2 +- drivers/gpu/drm/amd/display/dc/os_types.h | 2 +- .../gpu/drm/amd/display/include/dpcd_defs.h | 2 +- .../gpu/drm/amd/display/modules/hdcp/hdcp.h | 2 +- drivers/gpu/drm/bridge/Kconfig | 4 +++ drivers/gpu/drm/bridge/analogix/Kconfig | 2 ++ .../drm/bridge/analogix/analogix-anx6345.c | 2 +- .../drm/bridge/analogix/analogix-anx78xx.c | 2 +- .../drm/bridge/analogix/analogix-i2c-dptx.c | 2 +- .../drm/bridge/analogix/analogix_dp_core.h | 2 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 2 +- drivers/gpu/drm/bridge/cadence/Kconfig | 1 + .../drm/bridge/cadence/cdns-mhdp8546-core.c | 2 +- .../drm/bridge/cadence/cdns-mhdp8546-core.h | 2 +- drivers/gpu/drm/bridge/parade-ps8640.c | 4 +-- drivers/gpu/drm/bridge/tc358767.c | 2 +- drivers/gpu/drm/bridge/tc358775.c | 2 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 +-- drivers/gpu/drm/dp/Makefile | 9 +++++ .../gpu/drm/{drm_dp_helper.c => dp/drm_dp.c} | 6 ++-- drivers/gpu/drm/{ => dp}/drm_dp_aux_bus.c | 4 +-- drivers/gpu/drm/{ => dp}/drm_dp_aux_dev.c | 6 ++-- drivers/gpu/drm/{ => dp}/drm_dp_cec.c | 2 +- .../drm/{ => dp}/drm_dp_dual_mode_helper.c | 2 +- drivers/gpu/drm/dp/drm_dp_helper_internal.h | 33 +++++++++++++++++++ drivers/gpu/drm/dp/drm_dp_helper_mod.c | 22 +++++++++++++ .../gpu/drm/{ => dp}/drm_dp_mst_topology.c | 6 ++-- .../{ => dp}/drm_dp_mst_topology_internal.h | 2 +- drivers/gpu/drm/drm_crtc_helper_internal.h | 27 --------------- drivers/gpu/drm/drm_dsc.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 14 -------- drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +- drivers/gpu/drm/gma500/intel_bios.c | 2 +- drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/i915/display/intel_bios.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_types.h | 4 +-- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 4 +-- .../drm/i915/display/intel_dp_link_training.h | 2 +- drivers/gpu/drm/i915/display/intel_lspcon.c | 2 +- drivers/gpu/drm/msm/Kconfig | 1 + drivers/gpu/drm/msm/dp/dp_audio.c | 2 +- drivers/gpu/drm/msm/dp/dp_aux.h | 2 +- drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- drivers/gpu/drm/msm/edp/edp.h | 2 +- drivers/gpu/drm/msm/edp/edp_ctrl.c | 2 +- drivers/gpu/drm/nouveau/Kconfig | 1 + drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 +- drivers/gpu/drm/nouveau/nouveau_connector.h | 2 +- drivers/gpu/drm/nouveau/nouveau_dp.c | 2 +- drivers/gpu/drm/nouveau/nouveau_encoder.h | 4 +-- drivers/gpu/drm/panel/panel-edp.c | 4 +-- .../gpu/drm/panel/panel-samsung-atna33xc20.c | 4 +-- drivers/gpu/drm/radeon/atombios_dp.c | 2 +- drivers/gpu/drm/radeon/radeon_connectors.c | 2 +- drivers/gpu/drm/radeon/radeon_dp_mst.c | 2 +- drivers/gpu/drm/radeon/radeon_mode.h | 4 +-- drivers/gpu/drm/rockchip/Kconfig | 1 + .../gpu/drm/rockchip/analogix_dp-rockchip.c | 2 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- drivers/gpu/drm/rockchip/cdn-dp-core.h | 2 +- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 +- drivers/gpu/drm/rockchip/rockchip_rgb.c | 2 +- .../drm/selftests/test-drm_dp_mst_helper.c | 2 +- drivers/gpu/drm/tegra/Kconfig | 1 + drivers/gpu/drm/tegra/dp.c | 2 +- drivers/gpu/drm/tegra/dpaux.c | 2 +- drivers/gpu/drm/tegra/sor.c | 2 +- drivers/gpu/drm/xlnx/Kconfig | 1 + drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 +- include/drm/{ => dp}/drm_dp_aux_bus.h | 0 .../drm/{ => dp}/drm_dp_dual_mode_helper.h | 0 include/drm/{ => dp}/drm_dp_helper.h | 0 include/drm/{ => dp}/drm_dp_mst_helper.h | 2 +- include/drm/drm_dsc.h | 2 +- 86 files changed, 173 insertions(+), 133 deletions(-) create mode 100644 drivers/gpu/drm/dp/Makefile rename drivers/gpu/drm/{drm_dp_helper.c => dp/drm_dp.c} (99%) rename drivers/gpu/drm/{ => dp}/drm_dp_aux_bus.c (99%) rename drivers/gpu/drm/{ => dp}/drm_dp_aux_dev.c (98%) rename drivers/gpu/drm/{ => dp}/drm_dp_cec.c (99%) rename drivers/gpu/drm/{ => dp}/drm_dp_dual_mode_helper.c (99%) create mode 100644 drivers/gpu/drm/dp/drm_dp_helper_internal.h create mode 100644 drivers/gpu/drm/dp/drm_dp_helper_mod.c rename drivers/gpu/drm/{ => dp}/drm_dp_mst_topology.c (99%) rename drivers/gpu/drm/{ => dp}/drm_dp_mst_topology_internal.h (94%) rename include/drm/{ => dp}/drm_dp_aux_bus.h (100%) rename include/drm/{ => dp}/drm_dp_dual_mode_helper.h (100%) rename include/drm/{ => dp}/drm_dp_helper.h (100%) rename include/drm/{ => dp}/drm_dp_mst_helper.h (99%) base-commit: 3f422828221d9ceefcddef0be33561b1646a1cbe prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24 prerequisite-patch-id: d7624cd450e9961cb3a1efa61f906213316ab2a5 --- 2.34.1