From: bugzilla-daemon@freedesktop.org
Subject: [Bug 105760] [4.17-rc1] RIP:
smu7_populate_single_firmware_entry.isra.6+0x57/0xc0 [amdgpu] RSP:
ffffa17901efb930
Date: Wed, 11 Jul 2018 14:31:12 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1627364934=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 0D7096E192
for ; Wed, 11 Jul 2018 14:31:13 +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
--===============1627364934==
Content-Type: multipart/alternative; boundary="15313194722.BD2De5.30354"
Content-Transfer-Encoding: 7bit
--15313194722.BD2De5.30354
Date: Wed, 11 Jul 2018 14:31:12 +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=3D105760
--- Comment #21 from Thomas Martitz ---
Created attachment 140560
--> https://bugs.freedesktop.org/attachment.cgi?id=3D140560&action=3Dedit
workaround
The attached workaround makes resuming generally work on my system. The pro=
blem
seems to be that the memory that smu_data->header is pointing to changes be=
hind
the code's back. (I used printk inside smu7_populate_single_firmware_entry()
and saw that the pointer (&toc->entry[0]) passed to it is widely different =
from
what the caller sees, so I think the structure pointed to by toc gets
overwritten)
I assume this is some mapped memory and some HW component in the GPU writes=
to
it while the CPU is using it, isn't it? If so, the proper fix would be to
prevent that but I don't know what's the proper way of doing it in this
context.
I hope the experts can take a look into the patch for more insight and a re=
al
fix.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15313194722.BD2De5.30354
Date: Wed, 11 Jul 2018 14:31:12 +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 # 21
on bug 10576=
0
from Thomas Martitz
Created attachment 140560 [det=
ails] [review]
workaround
The attached workaround makes resuming generally work on my system. The pro=
blem
seems to be that the memory that smu_data->header is pointing to changes=
behind
the code's back. (I used printk inside smu7_populate_single_firmware_entry()
and saw that the pointer (&toc->entry[0]) passed to it is widely dif=
ferent from
what the caller sees, so I think the structure pointed to by toc gets
overwritten)
I assume this is some mapped memory and some HW component in the GPU writes=
to
it while the CPU is using it, isn't it? If so, the proper fix would be to
prevent that but I don't know what's the proper way of doing it in this
context.
I hope the experts can take a look into the patch for more insight and a re=
al
fix.
You are receiving this mail because:
- You are the assignee for the bug.
=
--15313194722.BD2De5.30354--
--===============1627364934==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============1627364934==--