Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1903043lql; Wed, 13 Mar 2024 11:18:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCtkLI6tM0XGdDxB/GEjPijYUQvGuU09li/MQXOqTPvlmiqoaJbQ7oq35KdXaB+GB5jfKlBI2gDqFqeh9rNH9Z1vy4ogMrCjqUU5Nk7Q== X-Google-Smtp-Source: AGHT+IGZWFyIw96Fo5tl7qOzyFbh/4mgjVxHqysut2O3IbimiT7t5PWDvqat2mwOSx8dZuCO4fFb X-Received: by 2002:a17:906:693:b0:a46:671a:75f1 with SMTP id u19-20020a170906069300b00a46671a75f1mr638606ejb.3.1710353932789; Wed, 13 Mar 2024 11:18:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710353932; cv=pass; d=google.com; s=arc-20160816; b=bv43cH/Uf5SgXxHDt4g84Enxqa9+Hwb5CFNtTuxNQFcec2Z6O2vBaX2izgjLaXmHk4 SPM6aLVyo8A4bfFIKQHR7L70R/s+hgISrhkdHhW3MDS48DATDJStZ2H2a5YDmaESv18C CLLfMcxPcBN18ksuJtbuinNzLrfhOzMNJ0GQCLGgpTauI/cVx2oQDJctmaCkdghopTle E32u5dCtetfxsqGPs9mwOTmFgjfNpvfsY8Q2MRKM+VZ5fAbzZlXlvAjtMDKkYpTlkD4q 6CIJbePV5EdrYX+jpBopjO4N8xEqF5yZfG2isAeYMAlLg3rk3JFVXT5LjT2pjHeDEIbw LCqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4y+qi41MDC6yIjv34ZfCu5XbxvKZ7UnLtOAJxBOESvE=; fh=7iKPWt2PP/bBNgAQmR2EKuQ/fJsIWwj/3gFu/SlKTBY=; b=W+gwfEecDLQVoc9rFVXNRvyP6+lr507jo79o8dAw4k8xaaYk5vmdqloYngIxj1d2eR PcMtNob+AR8fvj+2ljUenNYG29PMb1OJKHd9igk2vsywwcDwXtTwQ57kHvpLGvsC/Xyf UEGYT8IcIaGfaEo9zq05CWjCQ4NVGhMg/qAz8JVXC4ruqvbtKQctbLhXMaYEaQOCPwJn +/EKBF5hKaAJ7Ay74RBpvgYFbsw8w2pf0vU4IPEOuwtWbg9TUPNCnDI3cLPOfk6nQ+4D yI0qE+09WbNvZDa/YUlrjc/3MnZ1EQnqJkDv4OukHeI+MDQmeePT7CUpL0P7BnxY+vOl Il+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AKZv2gZH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id le16-20020a170907171000b00a41a3052edbsi4542354ejc.963.2024.03.13.11.18.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AKZv2gZH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 512231F2AB51 for ; Wed, 13 Mar 2024 17:35:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F053414A4D9; Wed, 13 Mar 2024 16:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AKZv2gZH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9ADB14A0B6; Wed, 13 Mar 2024 16:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348209; cv=none; b=SOSmZCZQ3BKshTIaWwwOwZ6d2h2MiMkdzcAwG5Us+QkrIndMxXqRUJwMzJKfqD60Bw6PaP68dKZv8ar+8o/KJ72cNYxJQT9ZMwdVBIrrhoQxeYcrt5HG52faELYa6WgBEgSclLMf4u4mD0RWafGgRkOxjqoQeXrbCL41exNU9bc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348209; c=relaxed/simple; bh=Fd4BmX0q2dviXv8ZBe0IndRZBVtCPxqAMvzM1rbIf+E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=di8ff25M9bLZC6conCUzk9e4PnqPf2VI7AZp4lbG/SsuvX0iFJqeWDty4bW4G6S4raKLpXpsgeYImOPJj7Hx9h3vfNGoIXo5tzWQJpQ6H5zHt4BLfPWSj0K2lfY3Hkf1DE1G67/wYao2Ag6mwFFVm6zyGiBfhsq3L0F7nxmNpJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AKZv2gZH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEC52C43390; Wed, 13 Mar 2024 16:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348208; bh=Fd4BmX0q2dviXv8ZBe0IndRZBVtCPxqAMvzM1rbIf+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AKZv2gZHAfQDcBItrinvlIU3M3f0oNH2Onwdpn4W4KzhUb2iINBuCZigIiQ/JerId QJq4VUeY721XkonVqFVd8el9Dm0bOUw2seN5p4F/zM4R85zf+h1wFxVGkwcBNXKJe4 NsB3fo1dnUhKInyBEZB+UvI32VVbEIWQLLSKBAzE6ozOS6+MsF8K1MR+h10plFL4Ww 69FwM4UYdQO5whUSiwHuSVKuAnlLZqCmZ7zfw97Z0gt96Zo3mGRsVogG+pOBgQPBdV 1F19rAa+ZocGoh81DKsEc6esgGK5U7qghsdwL6A6fGg+EVnp8CGA9ZF0EJL2uc3ddh JoSzQZ+oQArEA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qingqing Zhuo , Rodrigo Siqueira , Solomon Chiu , Alex Deucher , Sasha Levin Subject: [PATCH 5.15 56/76] drm/amd/display: Re-arrange FPU code structure for dcn2x Date: Wed, 13 Mar 2024 12:42:03 -0400 Message-ID: <20240313164223.615640-57-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313164223.615640-1-sashal@kernel.org> References: <20240313164223.615640-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.152-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.15.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.15.152-rc1 X-KernelTest-Deadline: 2024-03-15T16:42+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Qingqing Zhuo [ Upstream commit ee37341199c61558b73113659695c90bf4736eb2 ] [Why] Current FPU code for DCN2x is located under dml/dcn2x. This is not aligned with DC's general source tree structure. [How] Move FPU code for DCN2x to dml/dcn20. Reviewed-by: Rodrigo Siqueira Acked-by: Solomon Chiu Signed-off-by: Qingqing Zhuo Signed-off-by: Alex Deucher Stable-dep-of: e63e35f0164c ("drm/amd/display: Increase frame-larger-than for all display_mode_vba files") Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/Makefile | 4 ++-- .../amd/display/dc/dml/{dcn2x/dcn2x.c => dcn20/dcn20_fpu.c} | 2 +- .../amd/display/dc/dml/{dcn2x/dcn2x.h => dcn20/dcn20_fpu.h} | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) rename drivers/gpu/drm/amd/display/dc/dml/{dcn2x/dcn2x.c => dcn20/dcn20_fpu.c} (99%) rename drivers/gpu/drm/amd/display/dc/dml/{dcn2x/dcn2x.h => dcn20/dcn20_fpu.h} (94%) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c index b1bf80da3a55f..ab0c6d1910382 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c @@ -52,7 +52,7 @@ static DEFINE_PER_CPU(int, fpu_recursion_depth); * This function tells if the code is already under FPU protection or not. A * function that works as an API for a set of FPU operations can use this * function for checking if the caller invoked it after DC_FP_START(). For - * example, take a look at dcn2x.c file. + * example, take a look at dcn20_fpu.c file. */ inline void dc_assert_fp_enabled(void) { diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index ede11eb120d4f..04b370e7e732e 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -35,7 +35,7 @@ #include "include/irq_service_interface.h" #include "dcn20/dcn20_resource.h" -#include "dml/dcn2x/dcn2x.h" +#include "dml/dcn20/dcn20_fpu.h" #include "dcn10/dcn10_hubp.h" #include "dcn10/dcn10_ipp.h" diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c index 5b8274b8c3845..7c5c1414b7a1c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -35,7 +35,7 @@ #include "include/irq_service_interface.h" #include "dcn20/dcn20_resource.h" -#include "dml/dcn2x/dcn2x.h" +#include "dml/dcn20/dcn20_fpu.h" #include "clk_mgr.h" #include "dcn10/dcn10_hubp.h" diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile index 9009b92490f34..e7bb69ec99b66 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -58,7 +58,7 @@ CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_lib.o := $(dml_ccflags) ifdef CONFIG_DRM_AMD_DC_DCN CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_vba.o := $(dml_ccflags) -CFLAGS_$(AMDDALPATH)/dc/dml/dcn2x/dcn2x.o := $(dml_ccflags) +CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/dcn20_fpu.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_rq_dlg_calc_20.o := $(dml_ccflags) @@ -95,8 +95,8 @@ CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/display_rq_dlg_helpers.o := $(dml_rcflags) DML = display_mode_lib.o display_rq_dlg_helpers.o dml1_display_rq_dlg_calc.o \ ifdef CONFIG_DRM_AMD_DC_DCN +DML += dcn20/dcn20_fpu.o DML += display_mode_vba.o dcn20/display_rq_dlg_calc_20.o dcn20/display_mode_vba_20.o -DML += dcn2x/dcn2x.o DML += dcn20/display_rq_dlg_calc_20v2.o dcn20/display_mode_vba_20v2.o DML += dcn21/display_rq_dlg_calc_21.o dcn21/display_mode_vba_21.o DML += dcn30/display_mode_vba_30.o dcn30/display_rq_dlg_calc_30.o diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.c b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c similarity index 99% rename from drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.c rename to drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c index c58522436291a..d590dc9173637 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c @@ -26,7 +26,7 @@ #include "resource.h" -#include "dcn2x.h" +#include "dcn20_fpu.h" /** * DOC: DCN2x FPU manipulation Overview diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.h b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.h similarity index 94% rename from drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.h rename to drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.h index 331547ba07132..36f26126d574b 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn2x/dcn2x.h +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.h @@ -24,11 +24,11 @@ * */ -#ifndef __DCN2X_H__ -#define __DCN2X_H__ +#ifndef __DCN20_FPU_H__ +#define __DCN20_FPU_H__ void dcn20_populate_dml_writeback_from_context(struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes); -#endif /* __DCN2X_H__ */ +#endif /* __DCN20_FPU_H__ */ -- 2.43.0