From: "Kazlauskas, Nicholas" <nicholas.kazlauskas@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: amd-gfx list <amd-gfx@lists.freedesktop.org>,
Aaron Liu <aaron.liu@amd.com>
Subject: Re: [PATCH] drm/amd/display: Fix white screen page fault for gpuvm
Date: Mon, 13 Sep 2021 15:25:53 -0400 [thread overview]
Message-ID: <36e271a5-0cf4-39e3-401c-2621de431332@amd.com> (raw)
In-Reply-To: <CADnq5_NRi4V-MPm-5JWVbPEtAJ0n7pVvL5K+Wonkvr3YXDoTwQ@mail.gmail.com>
On 2021-09-13 3:13 p.m., Alex Deucher wrote:
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>
> Can you add a fixes: tag?
>
> Alex
Sure, I think the relevant patch is:
Fixes: 64b1d0e8d50 ("drm/amd/display: Add DCN3.1 HWSEQ")
Regards,
Nicholas Kazlauskas
>
> On Mon, Sep 13, 2021 at 3:11 PM Nicholas Kazlauskas
> <nicholas.kazlauskas@amd.com> wrote:
>>
>> [Why]
>> The "base_addr_is_mc_addr" field was added for dcn3.1 support but
>> pa_config was never updated to set it to false.
>>
>> Uninitialized memory causes it to be set to true which results in
>> address mistranslation and white screen.
>>
>> [How]
>> Use memset to ensure all fields are initialized to 0 by default.
>>
>> Cc: Aaron Liu <aaron.liu@amd.com>
>> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
>> ---
>> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>> index 53363728dbb..b0426bb3f2e 100644
>> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
>> @@ -1125,6 +1125,8 @@ static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_
>> uint32_t agp_base, agp_bot, agp_top;
>> PHYSICAL_ADDRESS_LOC page_table_start, page_table_end, page_table_base;
>>
>> + memset(pa_config, 0, sizeof(*pa_config));
>> +
>> logical_addr_low = min(adev->gmc.fb_start, adev->gmc.agp_start) >> 18;
>> pt_base = amdgpu_gmc_pd_addr(adev->gart.bo);
>>
>> --
>> 2.25.1
>>
next prev parent reply other threads:[~2021-09-13 19:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-13 19:11 [PATCH] drm/amd/display: Fix white screen page fault for gpuvm Nicholas Kazlauskas
2021-09-13 19:13 ` Alex Deucher
2021-09-13 19:25 ` Kazlauskas, Nicholas [this message]
2021-09-14 3:37 ` Liu, Aaron
2021-09-14 15:03 ` Harry Wentland
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=36e271a5-0cf4-39e3-401c-2621de431332@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=aaron.liu@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