From: "Kazlauskas, Nicholas" <nicholas.kazlauskas@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>,
Alex Deucher <alexander.deucher@amd.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not set
Date: Thu, 28 Oct 2021 11:08:31 -0400 [thread overview]
Message-ID: <29b528b0-be09-6f91-b2fc-cbe74ee74176@amd.com> (raw)
In-Reply-To: <CADnq5_NkHjMYMJpXMirvd7KDaOH8kF5t+XE9qiVoeR_DcfMxiA@mail.gmail.com>
On 2021-10-28 10:46 a.m., Alex Deucher wrote:
> Ping
>
> On Wed, Oct 27, 2021 at 6:40 PM Alex Deucher <alexander.deucher@amd.com> wrote:
>>
>> Need to guard some things with CONFIG_DRM_AMD_DC_DCN.
>>
>> Fixes: 0c865d1d817b77 ("drm/amd/display: fix link training regression for 1 or 2 lane")
>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Regards,
Nicholas Kazlauskas
>> ---
>> drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 11 +++++++----
>> 1 file changed, 7 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> index a9e940bd7e83..49a4d8e85bf8 100644
>> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> @@ -840,9 +840,11 @@ static void override_lane_settings(const struct link_training_settings *lt_setti
>> uint32_t lane;
>>
>> if (lt_settings->voltage_swing == NULL &&
>> - lt_settings->pre_emphasis == NULL &&
>> - lt_settings->ffe_preset == NULL &&
>> - lt_settings->post_cursor2 == NULL)
>> + lt_settings->pre_emphasis == NULL &&
>> +#if defined(CONFIG_DRM_AMD_DC_DCN)
>> + lt_settings->ffe_preset == NULL &&
>> +#endif
>> + lt_settings->post_cursor2 == NULL)
>>
>> return;
>>
>> @@ -853,9 +855,10 @@ static void override_lane_settings(const struct link_training_settings *lt_setti
>> lane_settings[lane].PRE_EMPHASIS = *lt_settings->pre_emphasis;
>> if (lt_settings->post_cursor2)
>> lane_settings[lane].POST_CURSOR2 = *lt_settings->post_cursor2;
>> -
>> +#if defined(CONFIG_DRM_AMD_DC_DCN)
>> if (lt_settings->ffe_preset)
>> lane_settings[lane].FFE_PRESET = *lt_settings->ffe_preset;
>> +#endif
>> }
>> }
>>
>> --
>> 2.31.1
>>
next prev parent reply other threads:[~2021-10-28 15:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-27 22:39 [PATCH] drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not set Alex Deucher
2021-10-27 22:39 ` Alex Deucher
2021-10-28 14:46 ` Alex Deucher
2021-10-28 15:07 ` Kazlauskas, Nicholas
2021-10-28 14:46 ` Alex Deucher
2021-10-28 15:08 ` Kazlauskas, Nicholas [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-27 22:39 Alex Deucher
2021-10-27 23:27 ` Lyude Paul
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=29b528b0-be09-6f91-b2fc-cbe74ee74176@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
/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