, Quan, Evan
, Ma, Le
主题: Re: [PATCH v2 2/2] amdgpu/pm: Fix possible array out-of-bounds if SCLK
levels != 2
[AMD Official Use Only - General]
Ping
From: Powell, Darren
Sent: Wednesday, May 11, 2022 1:44 AM
To: amd-gfx@lists.freedesktop.org
Cc: Lazar, Lijo
: Fix possible array out-of-bounds if SCLK
levels != 2
[v2]
simplified fix after Lijo's feedback
removed clocks.num_levels from calculation of loop count
removed unsafe accesses to shim table freq_values
retained corner case output only min,now if
clocks.num_levels == 1 && now >
[v2]
simplified fix after Lijo's feedback
removed clocks.num_levels from calculation of loop count
removed unsafe accesses to shim table freq_values
retained corner case output only min,now if
clocks.num_levels == 1 && now > min
[v1]
added a check to populate and use SCLK shim table