From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 00:55:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1220613209==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id D7DD26E0E9 for ; Sat, 11 Jun 2016 00:55:26 +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 --===============1220613209== Content-Type: multipart/alternative; boundary="14656065260.BFe92F.7734"; charset="UTF-8" --14656065260.BFe92F.7734 Date: Sat, 11 Jun 2016 00:55:26 +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=3D96488 Bug ID: 96488 Summary: [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: nixscripter@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 124469 --> https://bugs.freedesktop.org/attachment.cgi?id=3D124469&action=3Dedit Histogram kernel backtrace If I compile ImageMagick with OpenCL support, the current version segfaults when I attempt to do any operation which computes a histogram. This is actu= ally done frequently internally, so it's more crippling than it first appears. To reproduce: 1. Get the current latest ImageMagick from GitHub: https://github.com/ImageMagick/ImageMagick 2. Compile it with OpenCL support (--enable-opencl flag) 3. Get an image, and try to equalize its colors (based on the histogram): convert input.png -equalize output.png 4. The segfault will occur LLVM version: r272184 Mesa version: commit d5491a8 ImageMagick version: ade0d8e The source code for the Histogram kernel is in MagickCore/accelerate-kernels-private.h, starting on line 1283. --=20 You are receiving this mail because: You are the assignee for the bug.= --14656065260.BFe92F.7734 Date: Sat, 11 Jun 2016 00:55:26 +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 96488
Summary [r600g]OpenCL driver causes segfault in ImageMagick's Histogr= am kernel
Product Mesa
Version git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter nixscripter@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 12=
4469 [details]
Histogram kernel backtrace

If I compile ImageMagick with OpenCL support, the current version segfaults
when I attempt to do any operation which computes a histogram. This is actu=
ally
done frequently internally, so it's more crippling than it first appears.

To reproduce:

1. Get the current latest ImageMagick from GitHub:
https://github.com/I=
mageMagick/ImageMagick

2. Compile it with OpenCL support (--enable-opencl flag)

3. Get an image, and try to equalize its colors (based on the histogram):

convert input.png -equalize output.png

4. The segfault will occur

LLVM version: r272184
Mesa version: commit d5491a8
ImageMagick version: ade0d8e

The source code for the Histogram kernel is in
MagickCore/accelerate-kernels-private.h, starting on line 1283.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656065260.BFe92F.7734-- --===============1220613209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1220613209==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 00:55:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1509070218==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FC036E0F2 for ; Sat, 11 Jun 2016 00:55:46 +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 --===============1509070218== Content-Type: multipart/alternative; boundary="14656065460.0B0cbdBC.7578"; charset="UTF-8" --14656065460.0B0cbdBC.7578 Date: Sat, 11 Jun 2016 00:55:46 +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=3D96488 nixscripter@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- OS|All |Linux (All) Hardware|Other |x86-64 (AMD64) --=20 You are receiving this mail because: You are the assignee for the bug.= --14656065460.0B0cbdBC.7578 Date: Sat, 11 Jun 2016 00:55:46 +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 nixscripter@gmail= .com changed bug 96488<= /a>
What Removed Added
OS All Linux (All)
Hardware Other x86-64 (AMD64)


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656065460.0B0cbdBC.7578-- --===============1509070218== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1509070218==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 03:26:20 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0015677922==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id BA8EA6E242 for ; Sat, 11 Jun 2016 03:26:19 +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 --===============0015677922== Content-Type: multipart/alternative; boundary="14656155791.4b06Ab.973"; charset="UTF-8" --14656155791.4b06Ab.973 Date: Sat, 11 Jun 2016 03:26:19 +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=3D96488 --- Comment #1 from jano.vesely@gmail.com --- That's because global atomics are not implemented in LLVM backend (despite driver advertising the extensions). Shouldn't be too hard to them. --=20 You are receiving this mail because: You are the assignee for the bug.= --14656155791.4b06Ab.973 Date: Sat, 11 Jun 2016 03:26:19 +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= # 1 on bug 96488<= /a> from jano.vesely&= #64;gmail.com
That's because global atomics are not implemented in LLVM back=
end (despite
driver advertising the extensions).
Shouldn't be too hard to them.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656155791.4b06Ab.973-- --===============0015677922== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0015677922==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 11:45:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1928007420==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DCBC6E276 for ; Sat, 11 Jun 2016 11:45:23 +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 --===============1928007420== Content-Type: multipart/alternative; boundary="14656455231.9F5cf39.17133"; charset="UTF-8" --14656455231.9F5cf39.17133 Date: Sat, 11 Jun 2016 11:45:23 +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=3D96488 --- Comment #2 from Vedran Mileti=C4=87 --- (In reply to jano.vesely from comment #1) > That's because global atomics are not implemented in LLVM backend (despite > driver advertising the extensions). > Shouldn't be too hard to them. Are you sure the hardware has the necessary instructions? Tom Stellard commented on #radeon back in November that implementing global atomics for r600g will be very very difficult[1]. [1] https://people.freedesktop.org/~cbrill/dri-log/index.php?date=3D2015-11-27&= channel=3Dradeon --=20 You are receiving this mail because: You are the assignee for the bug.= --14656455231.9F5cf39.17133 Date: Sat, 11 Jun 2016 11:45:23 +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 96488<= /a> from Vedran Mileti=C4=87
(In reply to jano.vesely from comment #1)
> That's because global atomics are not implemente=
d in LLVM backend (despite
> driver advertising the extensions).
> Shouldn't be too hard to them.

Are you sure the hardware has the necessary instructions? Tom Stellard
commented on #radeon back in November that implementing global atomics for
r600g will be very very difficult[1].

[1]
https://people.freedesktop.org/~cbrill/dri=
-log/index.php?date=3D2015-11-27&channel=3Dradeon


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656455231.9F5cf39.17133-- --===============1928007420== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1928007420==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 13:47:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1726435985==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 343646E1EC for ; Sat, 11 Jun 2016 13:47:02 +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 --===============1726435985== Content-Type: multipart/alternative; boundary="14656528221.fDA40c31D.4190"; charset="UTF-8" --14656528221.fDA40c31D.4190 Date: Sat, 11 Jun 2016 13:47:02 +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=3D96488 --- Comment #3 from nixscripter@gmail.com --- I suspected it was that, based on the word "Atomic" being at fault. Unfortunately, I cannot assist, as I'm not an expert on parallel architectu= re and spending the last half hour reading AMD's documentation won't make me o= ne. But I would ask one question: is anyone even working on this? I'd hate to w= rite off ImageMagick on this platform. --=20 You are receiving this mail because: You are the assignee for the bug.= --14656528221.fDA40c31D.4190 Date: Sat, 11 Jun 2016 13:47:02 +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 96488<= /a> from nixscripter&= #64;gmail.com
I suspected it was that, based on the word "Atomic" =
being at fault.

Unfortunately, I cannot assist, as I'm not an expert on parallel architectu=
re
and spending the last half hour reading AMD's documentation won't make me o=
ne.
But I would ask one question: is anyone even working on this? I'd hate to w=
rite
off ImageMagick on this platform.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656528221.fDA40c31D.4190-- --===============1726435985== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1726435985==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sat, 11 Jun 2016 19:15:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0184948742==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C851C6E338 for ; Sat, 11 Jun 2016 19:15:14 +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 --===============0184948742== Content-Type: multipart/alternative; boundary="14656725142.bc3BB9.18933"; charset="UTF-8" --14656725142.bc3BB9.18933 Date: Sat, 11 Jun 2016 19:15:14 +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=3D96488 --- Comment #4 from jano.vesely@gmail.com --- The instructions are there for EG+. They're tricky to implement because of = the register requirements. However, there might be some weird interaction when using CB with the current stores, and loads from the same WI. I had a version that passed noret variant of global atomic piglit tests, but I'm not sure piglit tests cover all situations. --=20 You are receiving this mail because: You are the assignee for the bug.= --14656725142.bc3BB9.18933 Date: Sat, 11 Jun 2016 19:15:14 +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 96488<= /a> from jano.vesely&= #64;gmail.com
The instructions are there for EG+. They're tricky to implemen=
t because of the
register requirements. However, there might be some weird interaction when
using CB with the current stores, and loads from the same WI.

I had a version that passed noret variant of global atomic piglit tests, but
I'm not sure piglit tests cover all situations.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14656725142.bc3BB9.18933-- --===============0184948742== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0184948742==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sun, 12 Jun 2016 12:41:53 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0422426404==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 334736E36F for ; Sun, 12 Jun 2016 12:41:53 +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 --===============0422426404== Content-Type: multipart/alternative; boundary="14657353132.9bfa3.14344"; charset="UTF-8" --14657353132.9bfa3.14344 Date: Sun, 12 Jun 2016 12:41:53 +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=3D96488 --- Comment #5 from Vedran Mileti=C4=87 --- Can you dig the patch somewhere? I have a Caicos at hand and I would really like to test atomic compare-and-swap. --=20 You are receiving this mail because: You are the assignee for the bug.= --14657353132.9bfa3.14344 Date: Sun, 12 Jun 2016 12:41:53 +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= # 5 on bug 96488<= /a> from Vedran Mileti=C4=87
Can you dig the patch somewhere? I have a Caicos at hand and I=
 would really
like to test atomic compare-and-swap.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14657353132.9bfa3.14344-- --===============0422426404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0422426404==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sun, 12 Jun 2016 23:13:42 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2056405015==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 982B26E39C for ; Sun, 12 Jun 2016 23:13:42 +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 --===============2056405015== Content-Type: multipart/alternative; boundary="14657732221.37eFac.9665"; charset="UTF-8" --14657732221.37eFac.9665 Date: Sun, 12 Jun 2016 23:13:42 +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=3D96488 --- Comment #6 from Jan Vesely --- (In reply to Vedran Mileti=C4=87 from comment #5) > Can you dig the patch somewhere? I have a Caicos at hand and I would real= ly > like to test atomic compare-and-swap. you can try my github branch [0], you'll need the last 5 patches (2-3 can be skipped since it's just revert). but I rebase a lot so things might brake. It passes noret piglit tests, and _noret should work OK, _return variants w= ill give LLVM ERROR: Cannot select. uncommenting the FIXME parts enables return variants, but it will brake for more than one WI as every WI uses address 0 as scratchpad. Jan [0] https://github.com/jvesely/llvm --=20 You are receiving this mail because: You are the assignee for the bug.= --14657732221.37eFac.9665 Date: Sun, 12 Jun 2016 23:13:42 +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 96488<= /a> from Jan Vesely
(In reply to Vedran Mileti=C4=87 from comment #5)
> Can you dig the patch somewhere? I have a Caicos=
 at hand and I would really
> like to test atomic compare-and-swap.

you can try my github branch [0], you'll need the last 5 patches (2-3 can be
skipped since it's just revert).
but I rebase a lot so things might brake.

It passes noret piglit tests, and _noret should work OK, _return variants w=
ill
give LLVM ERROR: Cannot select.
uncommenting the FIXME parts enables return variants, but it will brake for
more than one WI as every WI uses address 0 as scratchpad.

Jan

[0] https://github.com/jvesely/=
llvm


You are receiving this mail because:
  • You are the assignee for the bug.
= --14657732221.37eFac.9665-- --===============2056405015== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2056405015==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Fri, 23 Dec 2016 05:45:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1088365800==" 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 5F64C6F454 for ; Fri, 23 Dec 2016 05:45:34 +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 --===============1088365800== Content-Type: multipart/alternative; boundary="14824719341.ee5bDFA.19140"; charset="UTF-8" --14824719341.ee5bDFA.19140 Date: Fri, 23 Dec 2016 05:45:34 +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=3D96488 --- Comment #7 from nixscripter@gmail.com --- Normally, I would be asking in this comment if there is any progress on thi= s, but I can tell there has been... change, at least. Now instead of crashing, it deadlocks the calling process waiting on a mute= x. Forever, as far as I can tell. LLVM version: r289770 Mesa version: commit 47351b843a Perhaps this is more easily fixed? Or is this getting to the heart of the matter implied in comment 2? --=20 You are receiving this mail because: You are the assignee for the bug.= --14824719341.ee5bDFA.19140 Date: Fri, 23 Dec 2016 05:45:34 +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 96488<= /a> from nixscripter&= #64;gmail.com
Normally, I would be asking in this comment if there is any pr=
ogress on this,
but I can tell there has been... change, at least.

Now instead of crashing, it deadlocks the calling process waiting on a mute=
x.
Forever, as far as I can tell.

LLVM version: r289770
Mesa version: commit 47351b843a

Perhaps this is more easily fixed? Or is this getting to the heart of the
matter implied in comment 2?
        


You are receiving this mail because:
  • You are the assignee for the bug.
= --14824719341.ee5bDFA.19140-- --===============1088365800== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1088365800==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Fri, 23 Dec 2016 15:28:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1574370318==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 703E36E090 for ; Fri, 23 Dec 2016 15:28:19 +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 --===============1574370318== Content-Type: multipart/alternative; boundary="14825068991.E85Bf675B.18342"; charset="UTF-8" --14825068991.E85Bf675B.18342 Date: Fri, 23 Dec 2016 15:28:19 +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=3D96488 --- Comment #8 from Jan Vesely --- (In reply to nixscripter from comment #7) > Normally, I would be asking in this comment if there is any progress on > this, but I can tell there has been... change, at least. >=20 > Now instead of crashing, it deadlocks the calling process waiting on a > mutex. Forever, as far as I can tell. >=20 > LLVM version: r289770 > Mesa version: commit 47351b843a >=20 > Perhaps this is more easily fixed? Or is this getting to the heart of the > matter implied in comment 2? the hang is probably a separate bug. ImageMagick test suite results on my T= urks GPU are: # TOTAL: 86 # PASS: 78 # SKIP: 0 # XFAIL: 0 # FAIL: 3 # XPASS: 0 # ERROR: 5 the errors and failures are accompanied by: Assertion `i < getNumRegs() && "Register number out of range!"' failed. The patches to add support for noret atomics (should be good enough for histogram) are at: https://reviews.llvm.org/D27989 https://reviews.llvm.org/D28067 --=20 You are receiving this mail because: You are the assignee for the bug.= --14825068991.E85Bf675B.18342 Date: Fri, 23 Dec 2016 15:28:19 +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 96488<= /a> from Jan Vesely
(In reply to nixscripter from comment #7)
> Normally, I would be asking in this comment if t=
here is any progress on
> this, but I can tell there has been... change, at least.
>=20
> Now instead of crashing, it deadlocks the calling process waiting on a
> mutex. Forever, as far as I can tell.
>=20
> LLVM version: r289770
> Mesa version: commit 47351b843a
>=20
> Perhaps this is more easily fixed? Or is this getting to the heart of =
the
> matter implied in comment 2=
?

the hang is probably a separate bug. ImageMagick test suite results on my T=
urks
GPU are:
# TOTAL: 86
# PASS:  78
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 5

the errors and failures are accompanied by:
Assertion `i < getNumRegs() && "Register number out of rang=
e!"' failed.

The patches to add support for noret atomics (should be good enough for
histogram) are at:
https://reviews.llvm.org/D27989=

https://reviews.llvm.org/D28067=


You are receiving this mail because:
  • You are the assignee for the bug.
= --14825068991.E85Bf675B.18342-- --===============1574370318== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1574370318==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Thu, 29 Dec 2016 03:25:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1587541463==" 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 04D5A6E087 for ; Thu, 29 Dec 2016 03:25: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 --===============1587541463== Content-Type: multipart/alternative; boundary="14829819510.4835.22903"; charset="UTF-8" --14829819510.4835.22903 Date: Thu, 29 Dec 2016 03:25:51 +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=3D96488 --- Comment #9 from nixscripter@gmail.com --- I have downloaded LLVM r290690 which contains your first diff, manually app= lied your 2nd diff, and compiled it. The resulting library seems to resolve the issue. Once that patch is reviewed and applied to the mainline, I will do one final verification and (hopefully) close this bug. Thanks for all your efforts on this! --=20 You are receiving this mail because: You are the assignee for the bug.= --14829819510.4835.22903 Date: Thu, 29 Dec 2016 03:25:51 +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= # 9 on bug 96488<= /a> from nixscripter&= #64;gmail.com
I have downloaded LLVM r290690 which contains your first diff,=
 manually applied
your 2nd diff, and compiled it. The resulting library seems to resolve the
issue.

Once that patch is reviewed and applied to the mainline, I will do one final
verification and (hopefully) close this bug.

Thanks for all your efforts on this!


You are receiving this mail because:
  • You are the assignee for the bug.
= --14829819510.4835.22903-- --===============1587541463== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1587541463==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Mon, 16 Jan 2017 21:36:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2022230825==" 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 D103E6E543 for ; Mon, 16 Jan 2017 21:36: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 --===============2022230825== Content-Type: multipart/alternative; boundary="14846025680.4a64c.23279"; charset="UTF-8" --14846025680.4a64c.23279 Date: Mon, 16 Jan 2017 21:36: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=3D96488 --- Comment #10 from Jan Vesely --- (In reply to nixscripter from comment #9) > I have downloaded LLVM r290690 which contains your first diff, manually > applied your 2nd diff, and compiled it. The resulting library seems to > resolve the issue. >=20 > Once that patch is reviewed and applied to the mainline, I will do one fi= nal > verification and (hopefully) close this bug. >=20 > Thanks for all your efforts on this! I have just landed the patch. Note that if the kernel uses sub-int(short,ch= ar) vectors. it will generate incorrect code until D27964 (or alternative) is merged. Jan --=20 You are receiving this mail because: You are the assignee for the bug.= --14846025680.4a64c.23279 Date: Mon, 16 Jan 2017 21:36: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

Commen= t # 10 on bug 96488<= /a> from Jan Vesely
(In reply to nixscripter from comment #9)
> I have downloaded LLVM r290690 which contains yo=
ur first diff, manually
> applied your 2nd diff, and compiled it. The resulting library seems to
> resolve the issue.
>=20
> Once that patch is reviewed and applied to the mainline, I will do one=
 final
> verification and (hopefully) close this bug.
>=20
> Thanks for all your efforts on this!

I have just landed the patch. Note that if the kernel uses sub-int(short,ch=
ar)
vectors. it will generate incorrect code until D27964 (or alternative) is
merged.

Jan


You are receiving this mail because:
  • You are the assignee for the bug.
= --14846025680.4a64c.23279-- --===============2022230825== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2022230825==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96488] [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel Date: Sun, 22 Jan 2017 06:59:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0258599797==" 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 179BE6E304 for ; Sun, 22 Jan 2017 06:59:11 +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 --===============0258599797== Content-Type: multipart/alternative; boundary="14850683510.F197BD7.13537"; charset="UTF-8" --14850683510.F197BD7.13537 Date: Sun, 22 Jan 2017 06:59:11 +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=3D96488 nixscripter@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #11 from nixscripter@gmail.com --- I have just tried LLVM r292714, and it does indeed work as advertised. Mark= ing RESOLVED FIXED. --=20 You are receiving this mail because: You are the assignee for the bug.= --14850683510.F197BD7.13537 Date: Sun, 22 Jan 2017 06:59:11 +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 nixscripter@gmail= .com changed bug 96488<= /a>
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Commen= t # 11 on bug 96488<= /a> from nixscripter&= #64;gmail.com
I have just tried LLVM r292714, and it does indeed work as adv=
ertised. Marking
RESOLVED FIXED.


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