From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Sun, 04 Sep 2016 21:31:56 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1218436813==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 672E16E16A for ; Sun, 4 Sep 2016 21:31:56 +0000 (UTC) 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 --===============1218436813== Content-Type: multipart/alternative; boundary="14730247160.4be1C.729"; charset="UTF-8" --14730247160.4be1C.729 Date: Sun, 4 Sep 2016 21:31:56 +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=3D97594 Bug ID: 97594 Summary: [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: arek.rusi@gmail.com Created attachment 126204 --> https://bugs.freedesktop.org/attachment.cgi?id=3D126204&action=3Dedit dmesg for first bad commit With this commit displays off during loading amdgpu, sysrq don't work, boot= is stopped.=20 When i reverted it, amdgpu works as always. dmesg is silent --=20 You are receiving this mail because: You are the assignee for the bug.= --14730247160.4be1C.729 Date: Sun, 4 Sep 2016 21:31:56 +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
Bug ID 97594
Summary [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI= functions" breaks amdgpu support for SI
Product DRI
Version unspecified
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter arek.rusi@gmail.com

Created attachment 12=
6204 [details]
dmesg for first bad commit

With this commit displays off during loading amdgpu, sysrq don't work, boot=
 is
stopped.=20
When i reverted it, amdgpu works as always.

dmesg is silent


You are receiving this mail because:
  • You are the assignee for the bug.
= --14730247160.4be1C.729-- --===============1218436813== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1218436813==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Sun, 04 Sep 2016 21:45:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1684084854==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 012086E2A1 for ; Sun, 4 Sep 2016 21:45:50 +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 --===============1684084854== Content-Type: multipart/alternative; boundary="14730255490.3939.5696"; charset="UTF-8" --14730255490.3939.5696 Date: Sun, 4 Sep 2016 21:45:49 +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=3D97594 --- Comment #1 from Arek Ru=C5=9Bniak --- Created attachment 126205 --> https://bugs.freedesktop.org/attachment.cgi?id=3D126205&action=3Dedit commit: deca1d1 reverted --=20 You are receiving this mail because: You are the assignee for the bug.= --14730255490.3939.5696 Date: Sun, 4 Sep 2016 21:45:49 +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


You are receiving this mail because:
  • You are the assignee for the bug.
= --14730255490.3939.5696-- --===============1684084854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1684084854==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Sun, 04 Sep 2016 21:53:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1074140737==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 930166E2A8 for ; Sun, 4 Sep 2016 21:53:52 +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 --===============1074140737== Content-Type: multipart/alternative; boundary="14730260320.f213ce5cf.8655"; charset="UTF-8" --14730260320.f213ce5cf.8655 Date: Sun, 4 Sep 2016 21:53:52 +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=3D97594 --- Comment #2 from Arek Ru=C5=9Bniak --- sorry for lack of description It's Alex's drm-next-4.9-wip branch. First bad commit:=20 commit deca1d1f16eebfa0d070eed50a221e01cf716ee0 author Tom St Denis drm/amd/amdgpu: Add GRBM lock to various SI functions Add missing lock around SE/SH/INSTANCE selections. --=20 You are receiving this mail because: You are the assignee for the bug.= --14730260320.f213ce5cf.8655 Date: Sun, 4 Sep 2016 21:53:52 +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

Comment= # 2 on bug 97594<= /a> from Arek Ru=C5=9Bniak
sorry for lack of description

It's Alex's drm-next-4.9-wip branch.

First bad commit:=20
commit  deca1d1f16eebfa0d070eed50a221e01cf716ee0
author  Tom St Denis <tom.std=
enis@amd.com>

drm/amd/amdgpu: Add GRBM lock to various SI functions
Add missing lock around SE/SH/INSTANCE selections.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14730260320.f213ce5cf.8655-- --===============1074140737== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1074140737==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Tue, 06 Sep 2016 18:59:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2014080973==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D84016E722 for ; Tue, 6 Sep 2016 18:59:05 +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 --===============2014080973== Content-Type: multipart/alternative; boundary="14731883450.4d9352.23548"; charset="UTF-8" --14731883450.4d9352.23548 Date: Tue, 6 Sep 2016 18:59:05 +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=3D97594 --- Comment #3 from Konstantin A. Lepikhov --- (In reply to Arek Ru=C5=9Bniak from comment #0) > Created attachment 126204 [details] > dmesg for first bad commit >=20 > With this commit displays off during loading amdgpu, sysrq don't work, bo= ot > is stopped.=20 > When i reverted it, amdgpu works as always. >=20 > dmesg is silent Same behavior but on PREEMPT kernel even without mentioned patch. Just to clarify that it could be more general problem than locking in this particul= ar place. --=20 You are receiving this mail because: You are the assignee for the bug.= --14731883450.4d9352.23548 Date: Tue, 6 Sep 2016 18:59:05 +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

Comment= # 3 on bug 97594<= /a> from Konstantin A. Lepikhov
(In reply to Arek Ru=C5=9Bniak from comment #0)
> Created attachment 126204 [details]
> dmesg for first bad commit
>=20
> With this commit displays off during loading amdgpu, sysrq don't work,=
 boot
> is stopped.=20
> When i reverted it, amdgpu works as always.
>=20
> dmesg is silent

Same behavior but on PREEMPT kernel even without mentioned patch. Just to
clarify that it could be more general problem than locking in this particul=
ar
place.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14731883450.4d9352.23548-- --===============2014080973== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2014080973==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Tue, 06 Sep 2016 22:03:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0619799365==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A2DD6E7DA for ; Tue, 6 Sep 2016 22:03:52 +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 --===============0619799365== Content-Type: multipart/alternative; boundary="14731994321.dFbc.20815"; charset="UTF-8" --14731994321.dFbc.20815 Date: Tue, 6 Sep 2016 22:03:52 +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=3D97594 --- Comment #4 from Arek Ru=C5=9Bniak --- Could you share config and patchset for your preempt kernel. If I will have some time I could build it. I'm just curious. I know nothing about what preempt is. I think I should rather call my kerne= l - "generic" but "uname -a" gives me: Linux darkfruit 4.8.0-rc1-20160904 #10 SMP PREEMPT Tue Sep 6 23:01:48 CEST = 2016 x86_64 GNU/Linux So I'm confused about it --=20 You are receiving this mail because: You are the assignee for the bug.= --14731994321.dFbc.20815 Date: Tue, 6 Sep 2016 22:03:52 +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

Comment= # 4 on bug 97594<= /a> from Arek Ru=C5=9Bniak
Could you share config and patchset for your preempt kernel. I=
f I will have
some time I could build it. I'm just curious.

I know nothing about what preempt is. I think I should rather call my kerne=
l -
"generic" but "uname -a" gives me:
Linux darkfruit 4.8.0-rc1-20160904 #10 SMP PREEMPT Tue Sep 6 23:01:48 CEST =
2016
x86_64 GNU/Linux
So I'm confused about it


You are receiving this mail because:
  • You are the assignee for the bug.
= --14731994321.dFbc.20815-- --===============0619799365== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0619799365==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Wed, 07 Sep 2016 03:45:22 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1387157216==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D27166E848 for ; Wed, 7 Sep 2016 03:45:22 +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 --===============1387157216== Content-Type: multipart/alternative; boundary="14732199223.AcDdeC.26673"; charset="UTF-8" --14732199223.AcDdeC.26673 Date: Wed, 7 Sep 2016 03:45:22 +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=3D97594 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tom.stdenis@amd.com --- Comment #5 from Michel D=C3=A4nzer --- Tom, any ideas? --=20 You are receiving this mail because: You are the assignee for the bug.= --14732199223.AcDdeC.26673 Date: Wed, 7 Sep 2016 03:45:22 +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 = Michel D=C3=A4nzer changed bug 97594<= /a>
What Removed Added
CC   tom.stdenis@amd.com


You are receiving this mail because:
  • You are the assignee for the bug.
= --14732199223.AcDdeC.26673-- --===============1387157216== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1387157216==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Wed, 07 Sep 2016 12:05:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1531939629==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id EFF186E9F4 for ; Wed, 7 Sep 2016 12:05:08 +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 --===============1531939629== Content-Type: multipart/alternative; boundary="14732499082.86Db4.9328"; charset="UTF-8" --14732499082.86Db4.9328 Date: Wed, 7 Sep 2016 12:05:08 +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=3D97594 --- Comment #6 from Tom St Denis --- The problem is a double lock. The grbm_idx_mutex lock is taken in gfx_v6_0_get_cu_info() which then calls gfx_v6_0_get_cu_active_bitmap() whi= ch also takes the lock. The fix is to remove the lock and the select from the parent function. I'll attach a patch momentarily. --=20 You are receiving this mail because: You are the assignee for the bug.= --14732499082.86Db4.9328 Date: Wed, 7 Sep 2016 12:05:08 +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

Comment= # 6 on bug 97594<= /a> from Tom St Denis
The problem is a double lock.  The grbm_idx_mutex lock is take=
n in
gfx_v6_0_get_cu_info() which then calls gfx_v6_0_get_cu_active_bitmap() whi=
ch
also takes the lock.

The fix is to remove the lock and the select from the parent function.  I'll
attach a patch momentarily.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14732499082.86Db4.9328-- --===============1531939629== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1531939629==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Wed, 07 Sep 2016 12:05:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0660132957==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 682C06E9F7 for ; Wed, 7 Sep 2016 12:05:18 +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 --===============0660132957== Content-Type: multipart/alternative; boundary="14732499182.F947AA9A.9635"; charset="UTF-8" --14732499182.F947AA9A.9635 Date: Wed, 7 Sep 2016 12:05:18 +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=3D97594 --- Comment #7 from Tom St Denis --- The problem is a double lock. The grbm_idx_mutex lock is taken in gfx_v6_0_get_cu_info() which then calls gfx_v6_0_get_cu_active_bitmap() whi= ch also takes the lock. The fix is to remove the lock and the select from the parent function. I'll attach a patch momentarily. --=20 You are receiving this mail because: You are the assignee for the bug.= --14732499182.F947AA9A.9635 Date: Wed, 7 Sep 2016 12:05:18 +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

Comment= # 7 on bug 97594<= /a> from Tom St Denis
The problem is a double lock.  The grbm_idx_mutex lock is take=
n in
gfx_v6_0_get_cu_info() which then calls gfx_v6_0_get_cu_active_bitmap() whi=
ch
also takes the lock.

The fix is to remove the lock and the select from the parent function.  I'll
attach a patch momentarily.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14732499182.F947AA9A.9635-- --===============0660132957== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0660132957==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Wed, 07 Sep 2016 12:06:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1237356633==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 612F46E885 for ; Wed, 7 Sep 2016 12:06:10 +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 --===============1237356633== Content-Type: multipart/alternative; boundary="14732499700.afBf3.8777"; charset="UTF-8" --14732499700.afBf3.8777 Date: Wed, 7 Sep 2016 12:06:10 +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=3D97594 --- Comment #8 from Tom St Denis --- Created attachment 126274 --> https://bugs.freedesktop.org/attachment.cgi?id=3D126274&action=3Dedit Patch to remove double lock This removes the double lock. It's actually patch #9 in my yet to be RB'ed series of SI cleanups ... --=20 You are receiving this mail because: You are the assignee for the bug.= --14732499700.afBf3.8777 Date: Wed, 7 Sep 2016 12:06:10 +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

Comment= # 8 on bug 97594<= /a> from Tom St Denis
Created attachment 1=
26274 [details] [review]
Patch to remove double lock

This removes the double lock.  It's actually patch #9 in my yet to be RB'ed
series of SI cleanups ...


You are receiving this mail because:
  • You are the assignee for the bug.
= --14732499700.afBf3.8777-- --===============1237356633== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1237356633==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Wed, 07 Sep 2016 18:46:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0913352602==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id EAEE66EACB for ; Wed, 7 Sep 2016 18:46:35 +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 --===============0913352602== Content-Type: multipart/alternative; boundary="14732739952.F785cffF2.12450"; charset="UTF-8" --14732739952.F785cffF2.12450 Date: Wed, 7 Sep 2016 18:46:35 +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=3D97594 --- Comment #9 from Arek Ru=C5=9Bniak --- Thx, works good for me. --=20 You are receiving this mail because: You are the assignee for the bug.= --14732739952.F785cffF2.12450 Date: Wed, 7 Sep 2016 18:46:35 +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


You are receiving this mail because:
  • You are the assignee for the bug.
= --14732739952.F785cffF2.12450-- --===============0913352602== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0913352602==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97594] [amdgpu SI] "drm/amd/amdgpu: Add GRBM lock to various SI functions" breaks amdgpu support for SI Date: Thu, 08 Sep 2016 07:15:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1128976506==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E58DA6ED42 for ; Thu, 8 Sep 2016 07:15:45 +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 --===============1128976506== Content-Type: multipart/alternative; boundary="14733189452.9074f72.10167"; charset="UTF-8" --14733189452.9074f72.10167 Date: Thu, 8 Sep 2016 07:15:45 +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=3D97594 Christian K=C3=B6nig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --=20 You are receiving this mail because: You are the assignee for the bug.= --14733189452.9074f72.10167 Date: Thu, 8 Sep 2016 07:15:45 +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 Christian K=C3=B6nig changed bug 97594<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED


You are receiving this mail because:
  • You are the assignee for the bug.
= --14733189452.9074f72.10167-- --===============1128976506== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1128976506==--