config: disable CONFIG_PATA_LEGACY
AmpereOne will panic if enable PATA_LEGACY:
this is the panic log:
Unable to handle kernel paging request at virtual address ffffffdffec001f2
Mem abort info:
ESR = 0x96000007
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
Data abort info:
ISV = 0, ISS = 0x00000007
CM = 0, WnR = 0
swapper pgtable: 64k pages, 48-bit VAs, pgdp=0000000011920000
[ffffffdffec001f2] pgd=0000000011f70003, pud=0000000011f70003, pmd=0000000011f80003, pte=0000000000000000
Internal error: Oops: 96000007 [#1] SMP
Modules linked in:
CPU: 146 PID: 1 Comm: swapper/0 Tainted: G W 5.4.241-1-tlinux4-0017-AmpereOne.772ee6bd72 #1
Hardware name: Tencent RC221/TC2-YHMB-A, BIOS 0.37.00 03/12/2024
nvme nvme0: 135/0/0 default/read/poll queues
pstate: 60800089 (nZCv daIf -PAN +UAO)
pc : inb+0x10/0x30
lr : probe_chip_type+0xe8/0x224
......
Call trace:
inb+0x10/0x30
legacy_init+0x2b4/0x32c
do_one_initcall+0x48/0x250
kernel_init_freeable+0x1cc/0x268
kernel_init+0x18/0x118
ret_from_fork+0x10/0x18
Code: d2bfd801 f2dffbe1 f2ffffe1 8b010000 (39400000)
---[ end trace 7cb152e9319d8ed3 ]---
Kernel panic - not syncing: Fatal exception
SMP: stopping secondary CPUs
Kernel Offset: disabled
CPU features: 0x50157,1a008a28
Memory Limit: none
---[ end Kernel panic - not syncing: Fatal exception ]---
Signed-off-by: Huang Cun <cunhuang@tencent.com>