From patchwork Fri May 21 12:49:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 444686 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp947590jac; Fri, 21 May 2021 05:51:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxoabTHHsW9817JJbv7lgRTX+wycoQH5UNLnRwxw2027wpQggQQCx2K1gvoPpTDcJ3SRPJ X-Received: by 2002:a17:902:6bca:b029:ee:b72c:5585 with SMTP id m10-20020a1709026bcab02900eeb72c5585mr11903658plt.46.1621601477323; Fri, 21 May 2021 05:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621601477; cv=none; d=google.com; s=arc-20160816; b=YTWG9o6g2LykjW/eO6t9Hq+BRQbNknc8ud5SUys77OA3MTnIQsqmoPYiQ5OLY+SiV6 1t+nJIvnkv1KDxBOVg5A2ms95gkXXcvBhKINE7gGeUytugrgkTy41s0pZztqntm5urUI tcwyGd0ZEZspEpVFBgLo/hAC7prB8KGiwDWzfdi7gWY5fVkjr++j1Ih9COFgNnJzthek /j68ri0ri1ihuNJv0lP+zBDzYe697oMhZKTOWn4cgnxYvNx+LPjR7mb7bNafEdjLsMhB l8+DDMg/W4+UqYJ9X/TiuWLRs42yxim8n7ZI5GbTIBmTYp6p/T/7Cz8ZP5tAfiiMMOGs e0ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=Xa0r7CmGJ2U0ZfLVogGI8+ECXe3u9EpA8z+jooPuUYo=; b=OPo5zYG+SjyFN2EjDM53L8u7eU8UispG3s8o8l6Zlk4fTM4pVQclbbiM2g13FjQb78 0Lxx5/ymJ3PfPMvJB2XQmHQEgRIVz3oUzobXyChgf5D6Y69gmt3eI4PUsl9KBNR+E8S8 8jhwtF1Dh8NuffZ2FYzcN+GgsHY0e+s80tcOqhGq0/RJbA7s+jnWRpT6/SXs472v7CjD Pv/m4FNqJf/chrZuB7cIQFrLc2KqQuolqbbOcY/H+n5PulCzkXXeNp55P9SgwVHk0t1R hlA8hjzgzySVYVRrgAhkH/VhHsb+xRtcs6hZ3DstitkARwHIdUKYkypGjWZbkqvO92VU hY3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=eYH2aO+a; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id n28si6775587pgf.393.2021.05.21.05.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 05:51:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=eYH2aO+a; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14D0B6F629; Fri, 21 May 2021 12:51:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABDB86F643; Fri, 21 May 2021 12:51:14 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id B158B613DF; Fri, 21 May 2021 12:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621601474; bh=jEvngLW/cjGIBmD812MSfH6Z7qHrHgE9F0mc+LlnVCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eYH2aO+avVrOJeVmpIWkod3vEau0fORf9Df3DZDMoskPVFvaUvPY+5szCcRutxyor my/mvi2OEBri3/ZHX84NlAG9J6Zi50Ukj4foiizCf540o36gs0yeyf2JOAjTkENiKr IEkFzsYiZ51NtQuzVrPhuQb3pDd/zTwNRyYjDAvn/zDDr82dpjYXzpg2ANpeadLb4Q vYGPdPWRxaonJ8oCAhedKvcyTFZrD0KLhqfFPSqGJF1QfvlPokiljPLqAx4I8l/h9j mGurVFDjsR6red27U+RBw8U0+HIeCtypozMPYBw84krdbWWpiGGB+LADU0cOc4AbTa erFTEMQAFEt+Q== From: Vinod Koul To: Rob Clark Subject: [RFC PATCH 13/13] drm/msm/dsi: Pass DSC params to drm_panel Date: Fri, 21 May 2021 18:19:46 +0530 Message-Id: <20210521124946.3617862-18-vkoul@kernel.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210521124946.3617862-1-vkoul@kernel.org> References: <20210521124946.3617862-1-vkoul@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jonathan Marek , David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Abhinav Kumar , Bjorn Andersson , Vinod Koul , dri-devel@lists.freedesktop.org, Dmitry Baryshkov , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When DSC is enabled, we need to pass the DSC parameters to panel driver as well, so add a dsc parameter in panel and set it when DSC is enabled Signed-off-by: Vinod Koul --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 +++++ include/drm/drm_panel.h | 7 +++++++ 2 files changed, 12 insertions(+) -- 2.26.3 diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index e26545fc82e0..7fc7002eda78 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1700,6 +1700,7 @@ static int dsi_host_attach(struct mipi_dsi_host *host, struct mipi_dsi_device *dsi) { struct msm_dsi_host *msm_host = to_msm_dsi_host(host); + struct drm_panel *panel; int ret; if (dsi->lanes > msm_host->num_data_lanes) @@ -1719,6 +1720,10 @@ static int dsi_host_attach(struct mipi_dsi_host *host, if (msm_host->dev) queue_work(msm_host->workqueue, &msm_host->hpd_work); + panel = msm_dsi_host_get_panel(host); + if (panel) + panel->dsc = &msm_host->dsc->drm; + return 0; } diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 33605c3f0eba..27a7808a29f2 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -171,6 +171,13 @@ struct drm_panel { * Panel entry in registry. */ struct list_head list; + + /** + * @dsc: + * + * Panel DSC pps payload to be sent + */ + struct drm_dsc_config *dsc; }; void drm_panel_init(struct drm_panel *panel, struct device *dev,