[AMD Official Use Only - Internal Distribution Only]
Hi Harry,
Checked Lee Starnes's patch. It does not fix the issue but does preserve the tradition of assigning the number of probed modes to aconnector->num_modes, which appears elsewhere in AMD code. I observed in some cases the memory leak is not reproducing (or not
detected) even without mine or Lee's fix. Maybe that's why Lee thinks it may fix the leak.
Another way to fix the issue is to not wipe out the probed list by calling INIT_LIST_HEAD() in amdgpu_dm_connector_ddc_get_modes(). But I am not entirely sure what other impact will that do.
I am checking out how everyone is handling resume from S3 so would like some second opinions.
Regards
Regards
Stylon Wang
MTS Software Development Eng. | AMD
O +(886)
2-3789-3667 ext. 23667 C +(886) 921-897-142 ---------------------------------------------------------------------------------------------------------------------------------- 6F, 3, YuanCyu St (NanKang Software Park) Taipei, Taiwan
From: Deucher, Alexander <Alexander.Deucher@xxxxxxx>
Sent: November 11, 2020 12:55 AM To: Wentland, Harry <Harry.Wentland@xxxxxxx>; Wang, Chao-kai (Stylon) <Stylon.Wang@xxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx> Cc: Kazlauskas, Nicholas <Nicholas.Kazlauskas@xxxxxxx> Subject: Re: [PATCH] drm/amd/display: Fix memory leaks in S3 resume
[AMD Official Use Only - Internal Distribution Only]
Ah, sorry, I missed that part of the patch.
Alex
From: Wentland, Harry <Harry.Wentland@xxxxxxx>
Sent: Tuesday, November 10, 2020 11:42 AM To: Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Wang, Chao-kai (Stylon) <Stylon.Wang@xxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx> Cc: Kazlauskas, Nicholas <Nicholas.Kazlauskas@xxxxxxx> Subject: Re: [PATCH] drm/amd/display: Fix memory leaks in S3 resume It's missing the "drm_connector_list_update" call which I assume is important.
Stylon, can you review Lee Starnes's patch? Is the drm_connector_list_update call maybe not needed? Thanks, Harry On 2020-11-10 11:26 a.m., Deucher, Alexander wrote:
|
_______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx