From patchwork Tue Feb 15 14:16:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 542789 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp501971imn; Tue, 15 Feb 2022 06:17:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwOmnxzGDPUp5B51iEpakhn9iH0oMTs8sNs2MwnXuIWrtRW5tigyYLxZsf39+MmfrR1LUA X-Received: by 2002:a17:903:40ce:: with SMTP id t14mr4463761pld.160.1644934625636; Tue, 15 Feb 2022 06:17:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644934625; cv=none; d=google.com; s=arc-20160816; b=CPsQLAFeWG+iLCeQaulM7TewZmuPkW1n2de9oNUWbb1s3S+mq9bmLvtf5KnfFmtssM sYiOUulUkQN7M9QzJM9hecRdgRvoyov3igELVEfNcf7634VyERFOW83lV/57fWzpU0Qs 7IGZa022EALKqyEvgcvSetFxXPbKbK2gGP/WHk3Fc7etMKOXW+aq525xcycFSflJ1iE2 tvk9R6nSyY+tWAYi01g9h01n/w10cfqdMYR1oP+GWIa8Uvof6e1OXYgW/PFB73391Cvp q8pGstA4t3DC6AER5gTSybTCgSmd9+xyBQz6uhdNEDBp1hFNDt5KsivcEIaLoSTMx7qf uuWw== 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=hYRG8XeM7V1EDX7uymsrwJU1RATDlAUQXVMD/dRoT3A=; b=RTUbDt7VOPvsli/+yePj+iQAoObaSsWuEEoZInMGUhQJYjaQiN11K/MiLetbx/XLx+ Ns7hEUq8o9jqzhuxTkp60gGcO0o/WFfW51ijbhUOcygEKa5aEAao+fJT/GZruF0zCB1J 89yF0HXILGHdA9R9cmvyp59yNwQcZTIreE7ie/FYvcUzvqJCaz6YmkupQSQzhVsUpll+ Rup3HNWBN+c7X3cFkvNay4nQpam31aufUpC69M76YxhbBJGPRByF3lseCRK1Bdi3vFIS vdDLNOmQf4wONaalhcWgAZYpFDT83mtvprc2KXB8ZBsZklaR4hEPRD08eF7lwmuKHI39 o7yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bXL4YAbS; 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 c5si325967pll.274.2022.02.15.06.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 06:17:05 -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=bXL4YAbS; 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 5348010E602; Tue, 15 Feb 2022 14:17:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE15310E57F for ; Tue, 15 Feb 2022 14:16:47 +0000 (UTC) Received: by mail-lf1-x130.google.com with SMTP id e5so7336618lfr.9 for ; Tue, 15 Feb 2022 06:16:47 -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=hYRG8XeM7V1EDX7uymsrwJU1RATDlAUQXVMD/dRoT3A=; b=bXL4YAbSWX9gQVtW2ksFkHQI0+/CYTR2mgdEqd2taCeCFMG6zyWotY96YaUJaHUFSN Q6VW1v98o3pf25SBSEnE7vyIbuzrNBB15a34deX2Xdu2ivzVN9Xv0vb/Q/YuOxsZPjqu KTGetEh5XBY3FFdOXRVYaE13H6cFmXHZYUD6rsmTIqNXjttWu5f4xg4T1o+q8wMRK67f YGQGAtyYHZvUOIDJyKIVW3LFZdoYW1zNxZ+mUwzOWZ4xy8dOgLjCZ6pZaUNDzX/3hvY+ iHLfF7siobPaPWzKmQ26ENZN41J/CWew1SkXnnWupiNPTJrphSxZT/soOkbZcytVcyur tGyw== 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=hYRG8XeM7V1EDX7uymsrwJU1RATDlAUQXVMD/dRoT3A=; b=oPgqm984I5CoB7d8qLg9yEPKGWAYwSR8tCgQubY9I0QRH7H7l0Gp0fR9NLWcGvxniv tkfKhHb8m1YJj7XDBnpGT14fKng6SuMxlmuqog8H/NzouKPRV3SRrDs2lEowPE+ThDkq cZuftnY6XBAE2lgTuUNjYxksUAlLwcfPYE/JQoThuP4A19wqBR9V3Aj0Mn6uhVJp9kgO ARo/a4sHB3cOeVQjP/VAXbIaVXzorV6fsJ06It7Y9Q/xgO70Yytq1HEVohVQ0rPFBbnT 8H0zNJNVE86/FJzojZxKxwPX3Zc3wLCTNHEpHM2mbE8QxDPMxGinW/TktYDQ5K5fldx6 /HIA== X-Gm-Message-State: AOAM5314kCD/QG2BjlV8N9x7ybGUD1rgp2A14Jow52pTDq7EXXFaGjZs D9tq15qhuaZUlu8NlNTzMcAfyQ== X-Received: by 2002:a05:6512:4012:: with SMTP id br18mr3072889lfb.533.1644934606241; Tue, 15 Feb 2022 06:16:46 -0800 (PST) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id m16sm1018044ljb.131.2022.02.15.06.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 06:16:45 -0800 (PST) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Subject: [PATCH v2 2/8] drm/msm: move struct msm_display_info to dpu driver Date: Tue, 15 Feb 2022 17:16:37 +0300 Message-Id: <20220215141643.3444941-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220215141643.3444941-1-dmitry.baryshkov@linaro.org> References: <20220215141643.3444941-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 Signed-off-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd --- 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 3ab19775a5c3..57b0cd6f917e 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;