Re: [radeonsi] RUSTICL and AMD_DEBUG=useaco SIGFAULT / SIGABRT

2023-07-12 Thread Timur Kristóf
Hello Dieter,

Please note that RadeonSI + ACO combination is very experimental at the
moment, so it is expected that some things will break. For this
concrete issue, take a look at this MR to see if it helps:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24112

It is of course very possible that there will be other issues after
this which will need to be investigated further.

In the future, I recommend opening an issue on Mesa GitLab:
https://gitlab.freedesktop.org/mesa/mesa/-/issues

Best regards,
Timur

On Tue, 2023-07-11 at 15:09 +0200, Dieter Nützel wrote:
> Hello List,
> 
> running clinfo under RUSTICL on my Polaris 20, RX580 explode with ACO
> compiler.
> 
> AMD_DEBUG=useaco
> 
> RUSTICL_ENABLE=radeonsi
> RUSTICL_FEATURES=fp64
> 
> 
> Greetings,
> Dieter
> 
> 
> (gdb) r
> Starting program: /usr/bin/clinfo
> Downloading separate debug info for system-supplied DSO at 
> 0x77fc7000
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Downloading separate debug info for 
> /usr/local/lib64/libRusticlOpenCL.so.1
> [New Thread 0x7fffebfff6c0 (LWP 2435)]
> [New Thread 0x7fffeb6bd6c0 (LWP 2436)]
> [New Thread 0x7fffeaebc6c0 (LWP 2437)]
> [New Thread 0x7fffea6bb6c0 (LWP 2438)]
> Number of platforms   1
>    Platform Name   rusticl
>    Platform Vendor Mesa/X.org
>    Platform Version    OpenCL 3.0
>    Platform Profile    FULL_PROFILE
>    Platform Extensions 
> cl_khr_byte_addressable_store cl_khr_create_command_queue 
> cl_khr_extended_versioning cl_khr_icd cl_khr_il_program 
> cl_khr_spirv_no_integer_wrap_decoration
>    Platform Extensions with Version    
> cl_khr_byte_addressable_store    
> 0x40 (1.0.0)
>    
> cl_khr_create_command_queue  
> 0x40 (1.0.0)
>    
> cl_khr_extended_versioning   
> 0x40 (1.0.0)
>   
> cl_khr_icd 
>    0x40 (1.0.0)
>   
> cl_khr_il_program  
>    0x40 (1.0.0)
>    
> cl_khr_spirv_no_integer_wrap_decoration  
> 0x40 (1.0.0)
>    Platform Numeric Version    0xc0 (3.0.0)
>    Platform Extensions function suffix MESA
>    Platform Host timer resolution  1ns
> 
>    Platform Name   rusticl
> Number of devices 1
>    Device Name AMD Radeon RX 580 
> Series (polaris10, LLVM 17.0.0git, DRM 3.52, 6.4.2-1.ge2dafc9-
> default)
>    Device Vendor   AMD
>    Device Vendor ID    0x1002
>    Device Version  OpenCL 3.0
>    Device UUID 
> -0100---
>    Driver UUID 
> 414d442d-4d45-5341-2d44-5256
>    Valid Device LUID   No
>    Device LUID -
>    Device Node Mask    0
>    Device Numeric Version  0xc0 (3.0.0)
>    Driver Version  23.2.0-devel 
> (git-0695ead057)
>    Device OpenCL C Version OpenCL C 1.2
>    Device OpenCL C Numeric Version 0x402000 (1.2.0)
>    Device OpenCL C all versions    OpenCL
> C   
>    0xc0 (3.0.0)
>    OpenCL
> C   
>    0x402000 (1.2.0)
>    OpenCL
> C   
>    0x401000 (1.1.0)
>    OpenCL
> C   
>    0x40 (1.0.0)
>    Device OpenCL C features    
> __opencl_c_integer_dot_product_input_4x8bit_packed   
> 0x80 (2.0.0)
>    
> __opencl_c_integer_dot_product_input_4x8bit  
> 0x80 (2.0.0)
>   
> __opencl_c_fp64    
>    0x40 (1.0.0)
>   
> __opencl_c_int64   

X Crashes after Installing Mesa Driver

2023-07-12 Thread Chen, Jinyi (Joey)
[AMD Official Use Only - General]

Hi,

I have built and install mesa driver. I install it to system so xorg boots up 
with it. But I am encountering black screens and flashes.


I first did a local install to a directory. It successfully functions with 
applications like glxinfo and glxgears when I export the LD_LIBRARY_PATH to the 
custom Mesa driver I created. But LD_LIBRARY_PATH seemed to be set after xorg 
loads (even when I put it in /etc/environment). So after I did a system install 
instead. However, when I try to initiate the X server using the debug Mesa 
driver, I encounter a flickering black screen. I have experimented with various 
versions of Mesa, including the main branch, 23.0, and 23.1. It works without 
installing amdgpu but does not work after installing amdgpu. My os is Ubuntu 
22.04.

To build Mesa, I followed these steps after downloading the source code from 
https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/

meson setup builddbg/
meson configure builddbg/ -Dbuildtype=debug
meson install -C builddbg/



I have also tried without specifying build type.



 Can you share the steps you build mesa and how do you attach it to xorg? 
Thanks in advance for your help!


Best,
Joey