Mesa for Linux PPC

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 10902
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa for Linux PPC

Post by xeno74 »

FYI:
Link wrote: Hello Christian,

Well some time past, I would like to inform you that I managed to make it work, well no longer with a HD6970 but with another card, I would like to warn you about Mesa 24.2.x, it's causing problems in big endian related to not having 3D acceleration, I suggest not updating and staying on mesa 24.1.x, we had more analysis into it https://gitlab.freedesktop.org/mesa/mesa/-/issues/11933 and https://gitlab.freedesktop.org/mesa/mesa/-/issues/12048

Have a great week, best regards,
Link.
User avatar
sailorMH
Posts: 272
Joined: Wed Aug 28, 2013 7:01 pm
Location: Czech republic

Re: Mesa for Linux PPC

Post by sailorMH »

Hello,
after a longer time I installed Debian 3.11 on Sam460LE. Mesa version is 10.3.2-1.

I tested HD6870 (r600_dri.so) and receive error: radeon: ring 0 test failed,disabling GPU acceleration:

Code: Select all

[  +0.005330] [drm] Initialized
[  +0.003243] [drm] radeon kernel modesetting enabled.
[  +0.005809] [drm] initializing kernel modesetting (BARTS 0x1002:0x6738 0x1682:0x3103 0x00).
[  +0.008574] [drm] register mmio base: 0xe90000000
[  +0.004734] [drm] register mmio size: 131072
[  +0.180043] ATOM BIOS: BARTS
[  +0.003124] radeon 0001:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[  +0.008926] radeon 0001:81:00.0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF
[  +0.007688] [drm] Detected VRAM RAM=1024M, BAR=256M
[  +0.004892] [drm] RAM width 256bits DDR
[  +0.003999] [TTM] Zone  kernel: Available graphics memory: 376164 kiB
[  +0.006470] [TTM] Zone highmem: Available graphics memory: 1031524 kiB
[  +0.006546] [TTM] Initializing pool allocator
[  +0.004397] [TTM] Initializing DMA pool allocator
[  +0.004815] [drm] radeon: 1024M of VRAM memory ready
[  +0.004994] [drm] radeon: 1024M of GTT memory ready.
[  +0.005026] [drm] Loading BARTS Microcode
[  +0.004063] [drm] Internal thermal controller with fan control
[  +0.011376] [drm] radeon: dpm initialized
[  +0.004147] [drm] GART: num cpu pages 262144, num gpu pages 262144
[  +0.051834] [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000).
[  +0.007212] radeon 0001:81:00.0: WB enabled
[  +0.004230] radeon 0001:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffc01c00
[  +0.010120] radeon 0001:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffc01c0c
[  +0.026922] radeon 0001:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0xf9032118
[  +0.010135] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  +0.006631] [drm] Driver supports precise vblank timestamp query.
[  +0.006114] radeon 0001:81:00.0: radeon: MSI limited to 32-bit
[  +0.005866] ppc4xx_setup_msi_irqs: fail allocating msi interrupt
[  +0.006082] [drm] radeon: irq initialized.
[  +0.221024] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)
[  +0.008832] radeon 0001:81:00.0: disabling GPU acceleration
I am using custom kernel from Spectre660, https://www.amigans.net/modules/newbb/v ... post151556

Please, do you know if this error is repairable?
Using of r600_dri.so from Debian 7 ( like in Pegasos 2 case some year ago ) not works. Also error is different thanthe Pegaos 2 one ( that time r_300 ring test succeeded ).
I will be glad for every idea.

Many thanks!

P.S. Spectre660 said, that there was no working graphics hardware acceleration on Sam460
P.P.S. Now I will Try Debian 8 on A1222+ ;-)
A1200, Micro A1-C (G3/1.2 GHz), AmigaOne XE (G4/1.4 GHz), Pegasos II (G4/1.33 GHz), Sam440ep, Sam440ep-flex, Sam460LE, AmigaOne X1000
Efika 5200b, Pegasos I, Powerbook, Mac Mini (1.83 GHz), iMac, Powermac Quad

AmigaOS, MorphOS, linux, MacOS X
User avatar
xeno74
Posts: 10902
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa for Linux PPC

Post by xeno74 »

Link wrote:
Hello everyone, I hope everything is alright.

I wonder if it could be possible to apply this patch for mesa 25.2.x, it fixes indirectly for big endian machines. The issue is it can only be applied for mesa25.2, on mesa 25.3-git it doesn' work anymore. The patch was made by caciottax86
https://gitlab.freedesktop.org/mesa/mesa/-/issues/13952

Best regards,
Link.

Code: Select all

--- a/src/loader/loader_dri_helper.c
+++ b/src/loader/loader_dri_helper.c
@@ -54,10 +54,10 @@
    { PIPE_FORMAT_R8G8B8A8_SRGB, __DRI_IMAGE_FOURCC_SABGR8888 },
    { PIPE_FORMAT_X8B8G8R8_UNORM, DRM_FORMAT_RGBX8888 },
    { PIPE_FORMAT_A8B8G8R8_UNORM, DRM_FORMAT_RGBA8888 },
-   { PIPE_FORMAT_X8R8G8B8_UNORM, DRM_FORMAT_BGRX8888 },
-   { PIPE_FORMAT_A8R8G8B8_UNORM, DRM_FORMAT_BGRA8888 },
    { PIPE_FORMAT_B8G8R8X8_UNORM, DRM_FORMAT_XRGB8888 },
    { PIPE_FORMAT_B8G8R8A8_UNORM, DRM_FORMAT_ARGB8888 },
+   { PIPE_FORMAT_X8R8G8B8_UNORM, DRM_FORMAT_XRGB8888 },
+   { PIPE_FORMAT_A8R8G8B8_UNORM, DRM_FORMAT_ARGB8888 },
    { PIPE_FORMAT_R8G8B8X8_UNORM, DRM_FORMAT_XBGR8888 },
    { PIPE_FORMAT_R8G8B8A8_UNORM, DRM_FORMAT_ABGR8888 },
    { PIPE_FORMAT_B10G10R10X2_UNORM, DRM_FORMAT_XRGB2101010 },
Post Reply