Call for testing: spi-mem driver for Aspeed SMC controllers

Lei Yu yulei.sh at bytedance.com
Wed Mar 9 12:58:57 AEDT 2022


> >>>>
> >>>> I don't see why. Is that the same kernel version and config ?
> >>>>
> >>>> May be check the allocations in
> >>>>
> >>>>      /proc/vmallocinfo
> >>>
> >>> It shows a large area as below:
> >>>
> >>>    0xc1d30472-0x406b4a0c 268439552 __devm_ioremap_resource+0x178/0x1f0
> >>> phys=0x20000000 ioremap
> >>
> >> Is CONFIG_VMSPLIT_2G set ?
> >
> > Yes, it's enabled in aspeed-g6/defconfig
>
> The OpenBMC tree only has a aspeed_g5_defconfig.

It does have aspeed-g6/defconfig and CONFIG_VMSPLIT_2G is enabled:
https://github.com/openbmc/openbmc/blob/master/meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g6/defconfig#L33

>
> How much RAM do you have ? Could check the totals in meminfo ?

Our system (and QEMU model) has 2GiB.

Boot with `vmalloc=500M`:
# cat /proc/meminfo
MemTotal:        1984880 kB
MemFree:         1860700 kB
MemAvailable:    1882116 kB
Buffers:               0 kB
Cached:            63796 kB
SwapCached:            0 kB
Active:            13728 kB
Inactive:          71988 kB
Active(anon):        340 kB
Inactive(anon):    37012 kB
Active(file):      13388 kB
Inactive(file):    34976 kB
Unevictable:        3624 kB
Mlocked:               0 kB
HighTotal:        446464 kB
HighFree:         353148 kB
LowTotal:        1538416 kB
LowFree:         1507552 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         25600 kB
Mapped:            40356 kB
Shmem:             11804 kB
KReclaimable:       7712 kB
Slab:              17944 kB
SReclaimable:       7712 kB
SUnreclaim:        10232 kB
KernelStack:         872 kB
PageTables:         2080 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      992440 kB
Committed_AS:     105768 kB
VmallocTotal:     516096 kB
VmallocUsed:        2436 kB
VmallocChunk:          0 kB
Percpu:              232 kB
CmaTotal:          65536 kB
CmaFree:           65052 kB


More information about the openbmc mailing list