From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 69723] Computer freezes with kernel 3.11.0 / 3.12-rc1 (with bug 68235's patches applied) when dpm=1 on r600g (Cayman) Date: Fri, 08 Nov 2013 06:32:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1787962232==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B9E94F0483 for ; Thu, 7 Nov 2013 23:50:29 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1787962232== Content-Type: multipart/alternative; boundary="1383892366.bC8A3aBF2.30836"; charset="us-ascii" --1383892366.bC8A3aBF2.30836 Date: Fri, 8 Nov 2013 06:32:46 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=69723 --- Comment #26 from Alexandre Demers --- Alex, in drivers/gpu/drm/radeon/ni_dpm.c, when we are limiting the sclk and mclk to the max speed according to vddc and vddci, aren't we screwing possibly something with mclk? I mean, could we be setting a mclk value that is wrong? We have two conditions where we can max mclk value, but we are not looking at the lowest one. I think it should be something like this instead to be sure we are using the most restrictive value: /* Select the lowest mclk value according to the most restrictive between vddc and vddci*/ if (max_mclk_vddc || max_mclk_vddci) { max_mclk_vddcx = (max_mclk_vddc > max_mclk_vddci) ? max_mclk_vddci : max_mclk_vddc; } for (i = 0; i < ps->performance_level_count; i++) { if (max_sclk_vddc) { if (ps->performance_levels[i].sclk > max_sclk_vddc) ps->performance_levels[i].sclk = max_sclk_vddc; } if (max_mclk_vddcx) { if (ps->performance_levels[i].mclk > max_mclk_vddcx) ps->performance_levels[i].mclk = max_mclk_vddcx; } } I'm also quoting you: "Not exactly. Mclk is tied to vddci (memory interface voltage), but both mclk and sclk (and the core display clock) are tied to vddc (core voltage)." Which means, mclk shouldn't run at its max speed if vddc is not at its max value, isn't it? Otherwise, we may encounter stability problem. -- You are receiving this mail because: You are the assignee for the bug. --1383892366.bC8A3aBF2.30836 Date: Fri, 8 Nov 2013 06:32:46 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 26 on bug 69723 from
Alex, in drivers/gpu/drm/radeon/ni_dpm.c, when we are limiting the sclk and
mclk to the max speed according to vddc and vddci, aren't we screwing possibly
something with mclk? I mean, could we be setting a mclk value that is wrong? We
have two conditions where we can max mclk value, but we are not looking at the
lowest one. I think it should be something like this instead to be sure we are
using the most restrictive value:
    /* Select the lowest mclk value according to the most restrictive between
vddc and vddci*/
    if (max_mclk_vddc || max_mclk_vddci) {
        max_mclk_vddcx = (max_mclk_vddc > max_mclk_vddci) ? max_mclk_vddci :
max_mclk_vddc;
    }

    for (i = 0; i < ps->performance_level_count; i++) {
        if (max_sclk_vddc) {
            if (ps->performance_levels[i].sclk > max_sclk_vddc)
                ps->performance_levels[i].sclk = max_sclk_vddc;
        }
        if (max_mclk_vddcx) {
            if (ps->performance_levels[i].mclk > max_mclk_vddcx)
                ps->performance_levels[i].mclk = max_mclk_vddcx;
        }
    }

I'm also quoting you: "Not exactly. Mclk is tied to vddci (memory interface
voltage), but both mclk and sclk (and the core display clock) are tied to vddc
(core voltage)." Which means, mclk shouldn't run at its max speed if vddc is
not at its max value, isn't it? Otherwise, we may encounter stability problem.


You are receiving this mail because:
  • You are the assignee for the bug.
--1383892366.bC8A3aBF2.30836-- --===============1787962232== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1787962232==--