Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp152640lqp; Tue, 21 May 2024 23:26:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFkGInQA+05Q8ljxNDFycwtauViEhtDJwYDC5ERnYOwz0Y/mZPdHrKAxpdSdBjcNVk/BX2DSHELWbYuwvNcCSE8u5yj/IwYckMFJ4PtQ== X-Google-Smtp-Source: AGHT+IGzDMHrUfFxqQLilITzVUAxemVkWmZ+4VtOAupQYo+q2+6yCeLPYcPzJedlvJIdkgHVT/io X-Received: by 2002:a17:90a:ca86:b0:2b6:209f:c36b with SMTP id 98e67ed59e1d1-2bd6047a8f2mr14478685a91.22.1716359174840; Tue, 21 May 2024 23:26:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716359174; cv=pass; d=google.com; s=arc-20160816; b=EFAaFiN/VRTuCHfe4EQz6OvK6E55FBWBwrO71S4vgJiACcr0lHyYLuhKER4Sgf0QTJ IZbMOcNVeqTQ2NvtMjcrWmVqoKzIMsbCm5ep713z7rc8mC7nec2mqRbCsgKCCvNyt51I OdATb6OtDWwFmHgp+RCrDPmOqCGxBPVJIxyNZe9Os7mpBI9uBtR7Wqmm6aimgEJfy6ua znWnNUVNjSfTNd3zkaXBMuPnNejDOzJJ5u+Yt7vfeC+KxbF0B5JyOq/uxFRszefBlfpJ dh+eUzvZgzk4M5rKATadC6/dS6SHwJtDeUEx8dkM3+oGle5PyhCfe6ZN8BCJ/TOVwaJF 7IXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=QTZe1zFzdkSYzyWKCJT5gwUK2Y3k8Ui8hrHsuYKTseY=; fh=vaX28zyYnuUIQNoIaiH96Dze9JmRrJ4sAxEVeu+Uvz8=; b=uGcgS7AxN5GzFyCSAKthEfHZlUMnvMKxbQTHB2M0RGl59rpguE2f/Iu+Ek6IB2fwbo RrQLLjvq90YjWPnQmtfWiaHl6CbcPRqZPSFt22CRG/L7izmTmjbFtkz862Z0TlW99YhP wD/1T0lx6ZzDghOvgf3ZGNJfTPDVGLJsWP8XLm6UbnaWSne1Y51pjiSa/JHoBkbiEHqH jNDUuOA0coqmaQ3FsSzoUEJkBFE4w/TcIyAdzm/U1Ti+9Npad0PYdyuJgGRq07xPcscZ bS64o+mZswUsRfPg/HEvf8NmVj8B7DgMseYgCz+vYZraHANyxsCLykzxSkIv+PrDiWwa x36w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zaefPGFo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-185806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628ea79absi3380070a91.103.2024.05.21.23.26.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:26:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zaefPGFo; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-185806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 67FFF2827DD for ; Wed, 22 May 2024 06:26:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31BD7B3E1; Wed, 22 May 2024 06:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zaefPGFo" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BF3D78C98 for ; Wed, 22 May 2024 06:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359159; cv=none; b=sSvx/oaDE4I+04ak01sZ5tf6RWrMyOxOo6vks/6OB5hUuGLztvbwgX19GgUcKcWEwflV5FiCKL4tI1X/GWEwUgNShZT65jubqDCF8EmHY//Oyy5wT7jc2AScIa9v5ffwAvZUXkiTmnW3gXpaRUGEtUCmu7OwpTxUNQ/RfhWNrYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359159; c=relaxed/simple; bh=fH+OSt9OM8UNGfwVeAJVCDuCmITk5njhlKqnGjulroc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PLibKViOnfho9dN2HQtrPMECP+3nuQ/j2At0btzyjRqLjB+eihelKMyCAYYJhLXfAt7+ZAP8Odahb6zJ5oLxZuAj2CglgYzvGKD/+WLC3z+ABYMjLQ046M1WRe3Ld+Gab8dvNPB1vAD+ffJ5q+PYUYebHXDMVM9qeOjqxXVQhi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zaefPGFo; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51f2ebbd8a7so7560325e87.2 for ; Tue, 21 May 2024 23:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716359156; x=1716963956; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=QTZe1zFzdkSYzyWKCJT5gwUK2Y3k8Ui8hrHsuYKTseY=; b=zaefPGFotmjyw8qeisgrXWZElZhBYoJpkUaz6YkQGu2UyxKkEHVhCfE7d2lQrsd2Hw 13o3imJC+Ebz4aCWZKFXL8Qoj70klwTfYYktsSSw3jUcyHtv8hfkt+lMefmWCEW9pLTJ YtcgEEiJsJWDXHA7pNbNmuOHBnG1SvhREMQ843tfYJXod+mk0E2/zrs6mnjsEINc6vz3 vrsLOwcOp2X61bT6wDthh/RxzBtiqWlBR7hCMviE7UiDZ1ZJMcLnGnLCUCWtQHNDZghk aR9NSTWWjRBhl7tRf4Oe/sjceGOmfl5KANv63F8jUpcdlPYBDQcWLzwrDZOffXUe563G otsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716359156; x=1716963956; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QTZe1zFzdkSYzyWKCJT5gwUK2Y3k8Ui8hrHsuYKTseY=; b=HFas0qghexMgHDEA+BIpOPbCjdBX3FPpTGICj1yzttHbpK5dS8ZWtsdREihxHRLxOA +ipEgM1nM4CKoJtQzySSPwZ4Xuw5jGsHPksKo7kSjt5uR8Cw5r9k3Un/O2UE2//gXXdi cImEwhUlNf4e4hEK5ZfSjaUESZkC5Oos7u9Cd17eY8tPx0xtl/N7w3oa/wUrgZl+vD/J 7yHaZkCbBG00KoN3DL+rzORs5Tgw6djpns/nDX9QtUn5iuEXIh1G7ZzYFFUSyjr/gIip yMPXFIyI/w9FvBhwHq9t3KkCH2xwaCL/TlZqHPDLUe7e/n87L/JtmDGfHJwLs03lawD8 7Psw== X-Forwarded-Encrypted: i=1; AJvYcCVWTCzmsSml6eijHozt2S3c1mQXPJbDTK5oZijZ39Z0NSprY7PHMSGhRU0d3voc2foN+wc8IYpSyE9BWyS6DWMcA3uvN/2Us+Mnkb8l X-Gm-Message-State: AOJu0Yy2KPSQfYyNleu4IYRl1V+pUR/ol5pPAS7LDcdM6+dLA55xVGOL kEX0gvUHBKdvdp1YIur1btX1lh5s/BpLvA8BZhNZ2PoeeWbdon71Qk3Fiv8MCig= X-Received: by 2002:a05:6512:1cb:b0:51e:f2bb:158a with SMTP id 2adb3069b0e04-526bfc02c09mr459245e87.64.1716359156371; Tue, 21 May 2024 23:25:56 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f35ad4d0sm4910023e87.49.2024.05.21.23.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:25:55 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 22 May 2024 09:25:53 +0300 Subject: [PATCH v3 1/3] drm/display: split DSC helpers from DP helpers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240522-panel-sw43408-fix-v3-1-6902285adcc0@linaro.org> References: <20240522-panel-sw43408-fix-v3-0-6902285adcc0@linaro.org> In-Reply-To: <20240522-panel-sw43408-fix-v3-0-6902285adcc0@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Caleb Connolly , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , Vinod Koul , Caleb Connolly Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3888; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=fH+OSt9OM8UNGfwVeAJVCDuCmITk5njhlKqnGjulroc=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmTY/xRFUSLJsGA2LrooHaFUmFf6vDxUFO1mrq0 vHNzs2ntYeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZk2P8QAKCRCLPIo+Aiko 1cRVB/41qAd9/BJy4mTQfxR1VHMssNg03EIjqlJi4ZoifXTNOaJ87ZjhtvO6fPhmqozbkGBdXzA WBAsNnLMXnytQg5E9GBa7zA+nAOpO4L4s2Ux5PjB5GWlKF3D1hsfrwbjRJeAnfpvvELjaxqhPvZ 7Fe73Ovu0fDwIV2mhOQJmx2RAUi0q2C13z+fKgZ6QAfKK8IPstuoSH9/NwifZBKQdbGGMPqXIes w8JePzXY3EkOY3fbAQiYgiXNgFQ7ATcBQW6dkJNpUUYeqD74T+dKNjgJq4tK5un2zi68dX9X+2J 0qkcRw7g74nfGjN1F14uHrkALsZqPa0MqlcusfZVfIXzh2DQ X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Currently the DRM DSC functions are selected by the DRM_DISPLAY_DP_HELPER Kconfig symbol. This is not optimal, since the DSI code (both panel and host drivers) end up selecting the seemingly irrelevant DP helpers. Split the DSC code to be guarded by the separate DRM_DISPLAY_DSC_HELPER Kconfig symbol. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/amdgpu/Kconfig | 1 + drivers/gpu/drm/display/Kconfig | 6 ++++++ drivers/gpu/drm/display/Makefile | 3 ++- drivers/gpu/drm/i915/Kconfig | 1 + drivers/gpu/drm/msm/Kconfig | 1 + drivers/gpu/drm/panel/Kconfig | 4 ++-- 6 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig index 22d88f8ef527..b69d5c4a5367 100644 --- a/drivers/gpu/drm/amd/amdgpu/Kconfig +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig @@ -6,6 +6,7 @@ config DRM_AMDGPU depends on !UML select FW_LOADER select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HDCP_HELPER select DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/display/Kconfig b/drivers/gpu/drm/display/Kconfig index 864a6488bfdf..f524cf95dec3 100644 --- a/drivers/gpu/drm/display/Kconfig +++ b/drivers/gpu/drm/display/Kconfig @@ -59,6 +59,12 @@ config DRM_DISPLAY_DP_TUNNEL_STATE_DEBUG If in doubt, say "N". +config DRM_DISPLAY_DSC_HELPER + bool + depends on DRM_DISPLAY_HELPER + help + DRM display helpers for VESA DSC (used by DSI and DisplayPort). + config DRM_DISPLAY_HDCP_HELPER bool depends on DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/display/Makefile b/drivers/gpu/drm/display/Makefile index 17d2cc73ff56..2ec71e15c3cb 100644 --- a/drivers/gpu/drm/display/Makefile +++ b/drivers/gpu/drm/display/Makefile @@ -6,7 +6,8 @@ drm_display_helper-y := drm_display_helper_mod.o drm_display_helper-$(CONFIG_DRM_DISPLAY_DP_HELPER) += \ drm_dp_dual_mode_helper.o \ drm_dp_helper.o \ - drm_dp_mst_topology.o \ + drm_dp_mst_topology.o +drm_display_helper-$(CONFIG_DRM_DISPLAY_DSC_HELPER) += \ drm_dsc_helper.o drm_display_helper-$(CONFIG_DRM_DISPLAY_DP_TUNNEL) += \ drm_dp_tunnel.o diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index 5932024f8f95..117b84260b1c 100644 --- a/drivers/gpu/drm/i915/Kconfig +++ b/drivers/gpu/drm/i915/Kconfig @@ -11,6 +11,7 @@ config DRM_I915 select SHMEM select TMPFS select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HDCP_HELPER select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HELPER diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index 1931ecf73e32..6dcd26180611 100644 --- a/drivers/gpu/drm/msm/Kconfig +++ b/drivers/gpu/drm/msm/Kconfig @@ -111,6 +111,7 @@ config DRM_MSM_DSI depends on DRM_MSM select DRM_PANEL select DRM_MIPI_DSI + select DRM_DISPLAY_DSC_HELPER default y help Choose this option if you have a need for MIPI DSI connector diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 982324ef5a41..4a2f621433ef 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -547,7 +547,7 @@ config DRM_PANEL_RAYDIUM_RM692E5 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE - select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for Raydium RM692E5-based @@ -905,7 +905,7 @@ config DRM_PANEL_VISIONOX_R66451 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE - select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_DSC_HELPER select DRM_DISPLAY_HELPER help Say Y here if you want to enable support for Visionox -- 2.39.2