From patchwork Thu Feb 17 03:53:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 543350 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp88845imn; Wed, 16 Feb 2022 19:54:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEQYf6c/uSlAH4BO9DDA9IgKuRPd/8BDQpkTEn6215hfbMJ1dOWw0HkRqoS3PKSqQQBx74 X-Received: by 2002:a17:90b:1283:b0:1b9:cfb1:9cad with SMTP id fw3-20020a17090b128300b001b9cfb19cadmr5355503pjb.82.1645070049706; Wed, 16 Feb 2022 19:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645070049; cv=none; d=google.com; s=arc-20160816; b=uIJgyRmw6r1FyVPjz7yXmb8pSsIlycw5c82/0UOBb0JUZ6msQU5IQiInjxQAAlNELW T9lqV1ixway34RDvgEKWMtkuqjE+vK3iGoh/xu5vrAQb2t6ykRrs2Ie3q9x95sLtbojY cewIL/MYY9Dj/9Hng7PHJT+xsw/RpNXLh+IfD8sUE4YU6NetiViMXA9G5Nslc0dmcOma o0AkRQiaGsIBRlfeqWFARu7JlFiYEJJfGZwMeeN4tZOU2KE/93dPwnnhJtUW3U+Mze+M xY4rPh9DFY38m9AQ4hrr0TAsmLi1KYESap6Um0CszeS0Yw6lAlNuHnNpgfr+A+mXuz83 Cw4g== 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=0kyxRMMBG2gpm69Eogx/Pqcstxzhu1JTR7Us2wGmBvY=; b=ojoG003lE/XKI/pKEvT6DypsaEocgrB743oEQKI0zItagPAKguemtFm8J0tGYdYObR UZsuvbL94m2/iLbx4o1DQdewyreRKrqWHBEkJ4l1DYoZNFySszOAkdtERQzNqw4Q33QE 5107goaUpmfwwAZKrHPkN+fofvhR0adVJYxSUnrgdfLrXBNqwrUkzLH8Y/dOU2WoM0eW sJL6/9bg4jkoEIKfrqs/p34sViPzoQCHpxIBJ73GIICj9isvCpwuh0wlH+kGiYftoEqb v0HXcMOasPUXhpBVvQ1IMsnu3FJ/46pD2f0+1e8SqUGZ+ElOpNJWiJAJppkSflg7og9Y VzSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fKV36McY; 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=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v7si414111pfu.8.2022.02.16.19.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 19:54:09 -0800 (PST) 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=@linaro.org header.s=google header.b=fKV36McY; 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=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C49710E789; Thu, 17 Feb 2022 03:54:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id CD4B110E75F for ; Thu, 17 Feb 2022 03:54:03 +0000 (UTC) Received: by mail-lj1-x233.google.com with SMTP id bx31so6440570ljb.0 for ; Wed, 16 Feb 2022 19:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0kyxRMMBG2gpm69Eogx/Pqcstxzhu1JTR7Us2wGmBvY=; b=fKV36McY3ySvJQwBRVQSuXKAstnJZQcBQRIuW05OzVCs7WnOqmkmKW4/+PbXwA18n/ HiuJIUpyCQW87rPyh8GbIiZpfpNgXJtXBehB3MufCtb4XiQqriewEYgZXXQuKpOXq0gP 9FFOSnSZBCb19/h5skw6QKaT8ZtdyS4Coywy7gs+htHnrsOH+YKvTHzX04ANp+I4VCcl vbDysr3lHt8QGupfuz5WMrMRosE0J/gLlpuKXIfMAAK+xR44Uu3pxeMKixTzm/0t78cK N1Kok1Zldl0FNTr4ABFP6TNhYuSUQj7BhdIaGW3HB66VgNZer7Gi1RLFzm9PIScrKeBB ORtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0kyxRMMBG2gpm69Eogx/Pqcstxzhu1JTR7Us2wGmBvY=; b=ygMShk8WO/21x36zaLZRv0XumqpoZOz2J+w4+3kDHKd3adMLEbOxSzBXKiG6PGzqRu vxUpsJXdzv4ydADDkhH0wpH4nq2M3nAhAgUmazSs4eivOGtMS3X2dmikdY4hSQphSGLj zJRgKXE2kC5y3ASp7YDPpTGpLnYq6AczNyAzEWAaxP/L1XNMztO8hacyGN54dDqYDKWb SwjsVloQAJUJPPOrrDEJxEdkaMiQZ3vPYTamV7kluqz+zl/6FIL/BAD7D8xpEywFewb3 MrmzqvQ2ym6irWliqO4X+cG/1hgrjLcqgEIIpcx5Rfg+7kAo8xm4fOnjmbEjpazzKS3m swbw== X-Gm-Message-State: AOAM530G8ywCvukFGb9LWCfm/1inMXoLyCy46N2ddraNltbFsegys68q v972iQuWCVD0qgU9RTe/iO2fZQ== X-Received: by 2002:a05:651c:1547:b0:244:8a9b:d0a1 with SMTP id y7-20020a05651c154700b002448a9bd0a1mr882457ljp.53.1645070042135; Wed, 16 Feb 2022 19:54:02 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id h9sm1575454ljb.77.2022.02.16.19.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 19:54:01 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v2 2/7] drm/msm: move struct msm_display_info to dpu driver Date: Thu, 17 Feb 2022 06:53:53 +0300 Message-Id: <20220217035358.465904-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217035358.465904-1-dmitry.baryshkov@linaro.org> References: <20220217035358.465904-1-dmitry.baryshkov@linaro.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: David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The msm_display_info structure is not used by the rest of msm driver, so move it into the dpu1 (dpu_encoder.h to be precise). Reviewed-by: Abhinav Kumar Reviewed-by: Stephen Boyd Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 18 ++++++++++++++++++ drivers/gpu/drm/msm/msm_drv.h | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h index e241914a9677..ebe3944355bb 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h @@ -34,6 +34,24 @@ struct dpu_encoder_hw_resources { void dpu_encoder_get_hw_resources(struct drm_encoder *encoder, struct dpu_encoder_hw_resources *hw_res); +/** + * struct msm_display_info - defines display properties + * @intf_type: DRM_MODE_ENCODER_ type + * @capabilities: Bitmask of display flags + * @num_of_h_tiles: Number of horizontal tiles in case of split interface + * @h_tile_instance: Controller instance used per tile. Number of elements is + * based on num_of_h_tiles + * @is_te_using_watchdog_timer: Boolean to indicate watchdog TE is + * used instead of panel TE in cmd mode panels + */ +struct msm_display_info { + int intf_type; + uint32_t capabilities; + uint32_t num_of_h_tiles; + uint32_t h_tile_instance[MAX_H_TILES_PER_DISPLAY]; + bool is_te_using_watchdog_timer; +}; + /** * dpu_encoder_assign_crtc - Link the encoder to the crtc it's assigned to * @encoder: encoder pointer diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index d7574e6bd4e4..16f9e25ee19e 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -109,24 +109,6 @@ struct msm_display_topology { u32 num_dspp; }; -/** - * struct msm_display_info - defines display properties - * @intf_type: DRM_MODE_ENCODER_ type - * @capabilities: Bitmask of display flags - * @num_of_h_tiles: Number of horizontal tiles in case of split interface - * @h_tile_instance: Controller instance used per tile. Number of elements is - * based on num_of_h_tiles - * @is_te_using_watchdog_timer: Boolean to indicate watchdog TE is - * used instead of panel TE in cmd mode panels - */ -struct msm_display_info { - int intf_type; - uint32_t capabilities; - uint32_t num_of_h_tiles; - uint32_t h_tile_instance[MAX_H_TILES_PER_DISPLAY]; - bool is_te_using_watchdog_timer; -}; - /* Commit/Event thread specific structure */ struct msm_drm_thread { struct drm_device *dev;