Thread (149 messages) 149 messages, 20 authors, 2025-11-13

RE: Radeon NI: GIT kernel with the nislands_smc commit doesn't boot on a Freescale P5040 board and P.A.Semi Nemo board

From: "Deucher, Alexander" <Alexander.Deucher@amd.com>
Date: 2021-04-30 15:26:54
Also in: amd-gfx, dri-devel

[AMD Public Use]

+ Gustavo, amd-gfx
-----Original Message-----
From: Christian Zigotzky <redacted>
Sent: Friday, April 30, 2021 8:00 AM
To: gustavoars@kernel.org; Deucher, Alexander 
[off-list ref]
Cc: R.T.Dickinson <redacted>; Darren Stevens <darren@stevens- 
zone.net>; mad skateman [off-list ref]; linuxppc-dev 
[off-list ref]; Olof Johansson [off-list ref]; 
Maling list - DRI developers [off-list ref]; Michel 
Dänzer [off-list ref]; Christian Zigotzky [off-list ref]
Subject: Radeon NI: GIT kernel with the nislands_smc commit doesn't 
boot on a Freescale P5040 board and P.A.Semi Nemo board

Hello,

The Nemo board (A-EON AmigaOne X1000) [1] and the FSL P5040 Cyrus+ 
board (A-EON AmigaOne X5000) [2] with installed AMD Radeon HD6970 NI 
graphics cards (Cayman XT) [3] don't boot with the latest git kernel 
anymore after the commit "drm/radeon/nislands_smc.h: Replace 
one-element array with flexible-array member in struct NISLANDS_SMC_SWSTATE branch" [4].
This git kernel boots in a virtual e5500 QEMU machine with a VirtIO-GPU [5].

I bisected today [6].

Result: drm/radeon/nislands_smc.h: Replace one-element array with 
flexible-array member in struct NISLANDS_SMC_SWSTATE branch
(434fb1e7444a2efc3a4ebd950c7f771ebfcffa31) [4] is the first bad commit.

I was able to revert this commit [7] and after a new compiling, the 
kernel boots without any problems on my AmigaOnes.

After that I created a patch for reverting this commit for new git test kernels.
[3]

The kernel compiles and boots with this patch on my AmigaOnes. Please 
find attached the kernel config files.

Please check the first bad commit.

Thanks,
Christian

[1]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.
wikipedia.org%2Fwiki%2FAmigaOne_X1000&amp;data=04%7C01%7Calexand
er.deucher%40amd.com%7C0622549383fb4320346b08d90bcf7be1%7C3dd89
61fe4884e608e11a82d994e183d%7C0%7C0%7C637553808670161651%7CUnkn
own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=PNSrApUdMrku20hH7dEKlJJ
TBi7Qp5JOkqpA4MvKqdE%3D&amp;reserved=0
[2]
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.
a miga.org%2Findex.php%3Ftitle%3DX5000&amp;data=04%7C01%7Calexander
.deucher%40amd.com%7C0622549383fb4320346b08d90bcf7be1%7C3dd8961f
e4884e608e11a82d994e183d%7C0%7C0%7C637553808670161651%7CUnknow
n%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1ha
WwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=B8Uvhs25%2FP3RfnL1AgICN3Y4
CEXeCE1yIoi3vvwvGto%3D&amp;reserved=0
[3]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforu
m.hyperion-
entertainment.com%2Fviewtopic.php%3Ff%3D35%26t%3D4377&amp;data=
04%7C01%7Calexander.deucher%40amd.com%7C0622549383fb4320346b08d
90bcf7be1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C63755380
8670161651%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIj
oiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=TokXplD
Tvg3%2BZMPLCgR1fs%2BN2X9MIfLXLW67MAM2Qsk%3D&amp;reserved=0
[4]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.
k ernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%
2Fcommit%2F%3Fid%3D434fb1e7444a2efc3a4ebd950c7f771ebfcffa31&amp;d
ata=04%7C01%7Calexander.deucher%40amd.com%7C0622549383fb4320346
b08d90bcf7be1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6375
53808670161651%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL
CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=JC
M4xvPEnWdckcTPbQ2Ujv%2FAiMMsFMzzl4Pr%2FRPlcMQ%3D&amp;reserve
d=0
[5] qemu-system-ppc64 -M ppce500 -cpu e5500 -m 1024 -kernel uImage - 
drive format=raw,file=MintPPC32-X5000.img,index=0,if=virtio -netdev
user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -append "rw 
root=/dev/vda" -device virtio-vga -usb -device usb-ehci,id=ehci 
-device usb- tablet -device virtio-keyboard-pci -smp 4 -vnc :1 [6] 
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforu
m.hyperion-
entertainment.com%2Fviewtopic.php%3Fp%3D53074%23p53074&amp;data
=04%7C01%7Calexander.deucher%40amd.com%7C0622549383fb4320346b08
d90bcf7be1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6375538
08670161651%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQ
IjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=RXfSlY
A3bDEFas0%2Fk2vMWsl2l0nuhS2ecjZgSBLc%2Bs4%3D&amp;reserved=0
[7] git revert 434fb1e7444a2efc3a4ebd950c7f771ebfcffa3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help