[Bug 212077] AMD GPU discrete card memory at highest frequency even while not in use

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Wed Mar 10 20:55:44 UTC 2021


https://bugzilla.kernel.org/show_bug.cgi?id=212077

--- Comment #6 from Bat Malin (bat_malin at abv.bg) ---
No change in the code of 5.12-rc2...

for (i = 0; i < dep_mclk_table->count; i++) {
                for (j = 0; j < dep_sclk_table->count; j++) {
                        valid_entry = false;
                        for (k = 0; k < watermarks->num_wm_sets; k++) {
                                if (dep_sclk_table->entries[i].clk / 10 >=
watermarks->wm_clk_ranges[k].wm_min_eng_clk_in_khz &&
                                    dep_sclk_table->entries[i].clk / 10 <
watermarks->wm_clk_ranges[k].wm_max_eng_clk_in_khz &&
                                    dep_mclk_table->entries[i].clk / 10 >=
watermarks->wm_clk_ranges[k].wm_min_mem_clk_in_khz &&
                                    dep_mclk_table->entries[i].clk / 10 <
watermarks->wm_clk_ranges[k].wm_max_mem_clk_in_khz) {
                                        valid_entry = true;
                                        table->DisplayWatermark[i][j] =
watermarks->wm_clk_ranges[k].wm_set_id;
                                        break;

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list