From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110674] Crashes / Resets From AMDGPU / Radeon VII Date: Mon, 12 Aug 2019 16:57:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0924165278==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id CAED46E58E for ; Mon, 12 Aug 2019 16:57:16 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0924165278== Content-Type: multipart/alternative; boundary="15656290363.d584c8cb4.25469" Content-Transfer-Encoding: 7bit --15656290363.d584c8cb4.25469 Date: Mon, 12 Aug 2019 16:57:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110674 --- Comment #89 from Tom B --- > It should return -EINVAL instead. Maybe then it would reset and try again= instead of just ignoring it and continuing with initialization anyway, lea= ding to instability. If you look at vega20_send_msg_to_smc_with_parameter:=20 static int vega20_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t parameter) { struct amdgpu_device *adev =3D hwmgr->adev; int ret =3D 0; vega20_wait_for_response(hwmgr); WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_90, 0); WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82, parameter); vega20_send_msg_to_smc_without_waiting(hwmgr, msg); ret =3D vega20_wait_for_response(hwmgr); if (ret !=3D PPSMC_Result_OK) pr_err("Failed to send message 0x%x, response 0x%x\n", msg, ret); return (ret =3D=3D PPSMC_Result_OK) ? 0 : -EIO; } It returns 0 on success and -EIO on failure, which is then in turn returned from vega20_set_fclk_to_highest_dpm_leve. Where did you see the check/retry= on EINVAL? Perhaps -EIO should be -EINVAL? --=20 You are receiving this mail because: You are the assignee for the bug.= --15656290363.d584c8cb4.25469 Date: Mon, 12 Aug 2019 16:57:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 89 on bug 11067= 4 from Tom = B
> It should return -EINVAL instead. M=
aybe then it would reset and try again instead of just ignoring it and cont=
inuing with initialization anyway, leading to instability.

If you look at vega20_send_msg_to_smc_with_parameter:=20

static int vega20_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,
                uint16_t msg, uint32_t parameter)
{
        struct amdgpu_device *adev =3D hwmgr->adev;
        int ret =3D 0;

        vega20_wait_for_response(hwmgr);

        WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_90, 0);

        WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82, parameter);

        vega20_send_msg_to_smc_without_waiting(hwmgr, msg);

        ret =3D vega20_wait_for_response(hwmgr);
        if (ret !=3D PPSMC_Result_OK)
                pr_err("Failed to send message 0x%x, response 0x%x\n&q=
uot;, msg,
ret);

        return (ret =3D=3D PPSMC_Result_OK) ? 0 : -EIO;
}


It returns 0 on success and -EIO on failure, which is then in turn returned
from vega20_set_fclk_to_highest_dpm_leve. Where did you see the check/retry=
 on
EINVAL? Perhaps -EIO should be -EINVAL?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15656290363.d584c8cb4.25469-- --===============0924165278== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0924165278==--