From: Rodrigo Siqueira Jordao <rjordrigo@amd.com>
To: Melissa Wen <mwen@igalia.com>,
amd-gfx@lists.freedesktop.org, airlied@linux.ie,
alexander.deucher@amd.com, christian.koenig@amd.com,
daniel@ffwll.ch, harry.wentland@amd.com,
Rodrigo.Siqueira@amd.com, sunpeng.li@amd.com, Xinhui.Pan@amd.com
Cc: Qingqing Zhuo <qingqing.zhuo@amd.com>,
Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>,
Jasdeep Dhillon <jdhillon@amd.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] remove DC_FP_* wrappers in dml files
Date: Wed, 30 Mar 2022 08:41:30 -0400 [thread overview]
Message-ID: <1721b4cb-adab-4e5b-070f-c26d0e2c6bbf@amd.com> (raw)
In-Reply-To: <20220326202448.2046077-1-mwen@igalia.com>
On 2022-03-26 16:24, Melissa Wen wrote:
> From FPU documentation, developers must not use DC_FP_START/END in dml
> files, but invoke it when calling FPU-associated functions (isolated in
> dml folder). Therefore, the first patch renames dcn10_validate_bandwidth
> in dml/calcs to dcn_ for generalization, declares dcn10_validate_bandwidth
> in dcn10 - that calls dcn_validate_bandwidth and wraps with DC_FP_*
> accordingly. The second patch removes invocations of DC_FP_* from dml
> files and properly wraps FPU functions in dc code outside dml folder.
>
> Melissa Wen (2):
> drm/amd/display: detach fpu operations from dcn10_validate_bandwidth
> in calcs
> drm/amd/display: remove DC_FP_* wrapper from dml folder
>
> .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 10 ++++++++--
> .../drm/amd/display/dc/dcn10/dcn10_resource.c | 16 ++++++++++++++++
> .../drm/amd/display/dc/dml/calcs/dcn_calcs.c | 19 +------------------
> .../drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 2 --
> .../gpu/drm/amd/display/dc/inc/dcn_calcs.h | 2 +-
> 5 files changed, 26 insertions(+), 23 deletions(-)
>
Hi,
Thanks a lot for your patch!
I reviewed and tested this series and lgtm. Applied to amd-staging-drm-next.
Btw, I agree with Christian. Can you try to find a way to add a
compilation error or warning if the developer tries to add DC_FP_*
inside DML?
Also, about the question of recursive calling to DC_FP_*, it should be
safe if using DC_FP_*.
Thanks
Siqueira
next prev parent reply other threads:[~2022-03-30 12:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-26 20:24 Melissa Wen
2022-03-26 20:24 ` [PATCH 1/2] drm/amd/display: detach fpu operations from dcn10_validate_bandwidth in calcs Melissa Wen
2022-03-28 6:55 ` Christian König
2022-03-28 17:17 ` Melissa Wen
2022-03-28 17:46 ` Christian König
2022-03-26 20:24 ` [PATCH 2/2] drm/amd/display: remove DC_FP_* wrapper from dml folder Melissa Wen
2022-03-30 12:41 ` Rodrigo Siqueira Jordao [this message]
2022-03-30 14:15 ` [PATCH 0/2] remove DC_FP_* wrappers in dml files Melissa Wen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1721b4cb-adab-4e5b-070f-c26d0e2c6bbf@amd.com \
--to=rjordrigo@amd.com \
--cc=Dmytro.Laktyushkin@amd.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@linux.ie \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=jdhillon@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mwen@igalia.com \
--cc=qingqing.zhuo@amd.com \
--cc=sunpeng.li@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®