答复: [PATCH v2 2/2] amdgpu/pm: Fix possible array out-of-bounds if SCLK levels != 2

2022-06-15 Thread Feng, Kenneth
, 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

Re: [PATCH v2 2/2] amdgpu/pm: Fix possible array out-of-bounds if SCLK levels != 2

2022-06-15 Thread Powell, Darren
: 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 >

[PATCH v2 2/2] amdgpu/pm: Fix possible array out-of-bounds if SCLK levels != 2

2022-05-10 Thread Darren Powell
[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