-
Posts
11 -
Joined
-
Last visited
-
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
@usual userHi, I solved this problem. As you said before, the GPU is out of box for using. But I just test `glxinfo -B` using `Xvfb`, which is a virtual desktop, so it always shows `llvmpipe`. Now I try to use xrdp after searching in our forum. Thanks for your help!!!!!!!!!!!!!! name of display: :11.0 display: :11 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Panfrost (0xffffffff) Device: Mali-T860 (Panfrost) (0xffffffff) Version: 22.3.6 (just using the preinstalled by armbian) Accelerated: yes Video memory: 3860MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 3.1 Max compat profile version: 3.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 OpenGL vendor string: Panfrost OpenGL renderer string: Mali-T860 (Panfrost) OpenGL core profile version string: 3.1 Mesa 22.3.6 OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none) OpenGL version string: 3.1 Mesa 22.3.6 OpenGL shading language version string: 1.40 OpenGL context flags: (none) OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Hi, I don't know that at first. Now I built Armbian from the official repo and installed it to my board. Thanks anyway! -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
I am using Armbian, so I install all the dependencies manually, and the compilation process all runs ok. However, GPU still does not work. -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Bro, I want to give up now. I have checked in the documentation of Debian. All the requirements that GPU works normally have been fulfilled, I have no idea why GPU still does not work. 1. Panfrost [ 4390.653912] panfrost ff9a0000.gpu: clock rate = 500000000 [ 4390.657185] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 status 0x0 [ 4390.657223] panfrost ff9a0000.gpu: features: 00000000,00000407, issues: 00000000,24040400 [ 4390.657240] panfrost ff9a0000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 [ 4390.657260] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1 [ 4390.660559] [drm] Initialized panfrost 1.2.0 20180908 for ff9a0000.gpu on minor 1 2. Mesa name of display: :1.0 display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Mesa/X.org (0xffffffff) Device: llvmpipe (LLVM 15.0.6, 128 bits) (0xffffffff) Version: 22.3.6 Accelerated: no Video memory: 3860MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.5 Max compat profile version: 4.5 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 OpenGL vendor string: Mesa/X.org OpenGL renderer string: llvmpipe (LLVM 15.0.6, 128 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.3.6 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.3.6 OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 3. Device Tree &gpu { status = "okay"; mali-supply = <&vdd_gpu>; }; -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
update: trying to adjust the config of meson to make GPU work. Here is the command I use now. meson setup --reconfigure builddir/ \ -Dprefix=/usr/local/mesa \ -Dplatforms=x11 \ -Degl-native-platform=drm \ -Dgallium-drivers=panfrost \ -Dvulkan-drivers= \ -Degl=enabled \ -Dgles1=enabled \ -Dgles2=enabled \ -Dopengl=true \ -Dgbm=enabled \ -Dshared-glapi=true \ -Dbuildtype=debug But, the Device becomes softpipe now...... name of display: :1.0 error: XDG_RUNTIME_DIR is invalid or not set in the environment. MESA: error: ZINK: failed to choose pdev glx: failed to create drisw screen display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Mesa (0xffffffff) Device: softpipe (0xffffffff) Version: 24.0.7 Accelerated: no Video memory: 3860MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 3.3 Max compat profile version: 3.3 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 Memory info (GL_ATI_meminfo): VBO free memory - total: 63 MB, largest block: 63 MB VBO free aux. memory - total: 2084 MB, largest block: 2084 MB Texture free memory - total: 63 MB, largest block: 63 MB Texture free aux. memory - total: 2084 MB, largest block: 2084 MB Renderbuffer free memory - total: 63 MB, largest block: 63 MB Renderbuffer free aux. memory - total: 2084 MB, largest block: 2084 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 4293114354 MB Total available memory: 4293118215 MB Currently available dedicated video memory: 63 MB OpenGL vendor string: Mesa OpenGL renderer string: softpipe OpenGL core profile version string: 3.3 (Core Profile) Mesa 24.0.7 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 3.3 (Compatibility Profile) Mesa 24.0.7 OpenGL shading language version string: 3.30 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.1 Mesa 24.0.7 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
I rebuilt the mesa of `24.0.7` and install it to my /usr directory, and here is the result. 1. output of clinfo: : CommandLine Error: Option 'polly' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options [1] 13034 abort clinfo 2. output of glxinfo -B name of display: :1.0 did not find extension DRI_Mesa version 1 did not find extension DRI_Mesa version 1 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 38 Current serial number in output stream: 39 3. command used to compile the mesa meson -Db_ndebug=true -Dopengl=true -Dgles1=disabled -Dgles2=enabled -Degl=enabled -Dplatforms= -Dvulkan-drivers=panfrost -Dgallium-drivers=panfrost -Dgallium-opencl=icd -Dgallium-rusticl=true -Dplatforms=x11 -Dprefix=/usr builddir/ ninja -C builddir/ -j6 ninja -C builddir/ install I believe that I have screwed the system. Now I need to reinstall the system.......😂 -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Hi, can you share all the requirements that are required for making the GPU work? I want to check it one by one. -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Hi, It seems that this file you mentioned is the latest version of mesa. Did you mean that I need to build the latest version of mesa from source code? Does this mean the configuration in kernel? GPU staffs, like panfrost, drm etc., are already enable in the kernel compile configuration.😂😂 I already tried to enable `BUILD_DESKTOP=yes`, and try to reinstall again. Thanks for your information!!!! -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Thanks for the reply! I have built a unofficial version armbian myself from mainline, but the ‘glxinfo -B’ still shows llvmpipe as GPU device. -
Can we make RK3399 GPU work on Linux Kernel 6.X
Hand Rawing replied to Hand Rawing's topic in Rockchip
Can you share or tell me which image are you using? -
[ 11.309397] panfrost ff9a0000.gpu: clock rate = 500000000 [ 11.316882] panfrost ff9a0000.gpu: EM: OPP:200000 is inefficient [ 11.317248] panfrost ff9a0000.gpu: EM: created perf domain [ 11.320588] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 status 0x0 [ 11.321594] panfrost ff9a0000.gpu: features: 00000000,00000407, issues: 00000000,24040400 [ 11.322812] panfrost ff9a0000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 [ 11.324483] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1 [ 11.357056] [drm] Initialized panfrost 1.2.0 20180908 for ff9a0000.gpu on minor 1 It seems Panfrost driver was loaded, but the GPU doesn't produce any interrupts: 83: 0 0 0 0 0 0 GICv3 51 Level panfrost-gpu 84: 0 0 0 0 0 0 GICv3 53 Level panfrost-mmu 85: 0 0 0 0 0 0 GICv3 52 Level panfrost-job I tried build and install the latest version of `mesa`, which just not work. And `glxinfo -B` still shows that GPU is a virtual GPU. display: :1 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Mesa/X.org (0xffffffff) Device: llvmpipe (LLVM 15.0.6, 128 bits) (0xffffffff) Version: 24.0.6 Accelerated: no Video memory: 3792MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.5 Max compat profile version: 4.5 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 OpenGL vendor string: Mesa/X.org OpenGL renderer string: llvmpipe (LLVM 15.0.6, 128 bits) OpenGL core profile version string: 4.5 (Core Profile) Mesa 24.0.6 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.5 (Compatibility Profile) Mesa 24.0.6 OpenGL shading language version string: 4.50 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 I am wondering if I can use the GPU on kernel 6.x, because I found that the case in this forum that can enable GPU for rk3399 all use the legacy version kernel, like 4.X. By the way, I am using the kernel from https://github.com/ophub/amlogic-s9xxx-armbian. Anyone can give me some tips or interpretation? Thanks in advanced!!!!