Bug 101584

Summary: clover: ethminer -G --benchmark: ring buffer overflow, GPU faults
Product: Mesa Reporter: Christoph Haag <haagch>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 99553    
Attachments: dmesg
without X

Description Christoph Haag 2017-06-25 09:21:19 UTC
Created attachment 132229 [details]
dmesg

Tested with my RX 480 on mesa git and Linux 4.11 and 4.12-rc.

To reproduce, get https://github.com/ethereum-mining/ethminer
in libethash-cl/ethash_cl_miner_kernel.cl add
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
then cmake . and make and in ethminer/ run ./ethminer -G --benchmark

it outputs some progress and at 97% something goes wrong and I get GPU faults and/or GPU hangs.

Interestingly with the closed source OpenCL runtime from amdgpu-pro it fails at 97% too.
Comment 1 Christoph Haag 2017-06-28 01:36:51 UTC
Created attachment 132290 [details]
without X

Thanks to a tip from tom stellard I tried it without X (after exiting sddm). 

I've tried to start the miner with "real work" from a pool as recommended:

GPU_FORCE_64BIT_PTR=0 GPU_MAX_HEAP_SIZE=100 GPU_USE_SYNC_OBJECTS=1 GPU_MAX_ALLOC_PERCENT=100 GPU_SINGLE_ALLOC_PERCENT=100 ./ethminer --farm-recheck 200 -G -S eu1.ethermine.org:4444 etc. etc.

I get gpu faults, but no hangs or other issues and the system is usable normally after exiting the miner.

The -G --benchmark mode still has worse troubles with hangs etc.
Comment 2 GitLab Migration User 2019-09-25 17:59:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1270.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.