cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12

Bug #2053020 reported by torel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Incomplete
Undecided
Unassigned

Bug Description

[Bug Description]

Syslog riddled with

[ 6285.349570] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12

on system Huawei TS200-2280 w/Kunpeng920-6426

[Steps to Reproduce]
1) Booted Ubuntu 22.04.4 w/ 5.15.0-94-generic
2) dmesg | grep cma_alloc

[Actual Results]
root@n012:~# dmesg |grep cma_alloc
[ 0.470356] cma: cma_alloc: reserved: alloc failed, req-size: 4096 pages, ret: -12
[ 0.687299] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.687854] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.688256] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.688641] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.689037] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.689369] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.689698] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.690038] cma: cma_alloc: reserved: alloc failed, req-size: 256 pages, ret: -12
[ 0.715941] cma: cma_alloc: reserved: alloc failed, req-size: 4 pages, ret: -12
[ 5.603118] cma_alloc: 65 callbacks suppressed
[ 5.603120] cma: cma_alloc: reserved: alloc failed, req-size: 48 pages, ret: -12
[ 5.603141] cma: cma_alloc: reserved: alloc failed, req-size: 48 pages, ret: -12
[ 6.434164] cma: cma_alloc: reserved: alloc failed, req-size: 64 pages, ret: -12
[ 6.434188] cma: cma_alloc: reserved: alloc failed, req-size: 16 pages, ret: -12

[Expected Results]
no fail

[Reproducibility]
100%

[Additional information]
root@n012:~# inxi -b
System:
  Host: n012 Kernel: 5.15.0-94-generic aarch64 bits: 64 Console: pty pts/0
    Distro: Ubuntu 22.04.3 LTS (Jammy Jellyfish)
Machine:
  Type: Server System: Huawei product: TaiShan 200 (Model 2280) v: N/A
    serial: XXXXXXXXXXXXX
  Mobo: Huawei model: BC82AMDD v: V200R022C00 serial: XXXXXXXXXXXX
    UEFI: Huawei v: 6.65 date: 09/20/2023
CPU:
  Info: 2x 64-core Model N/A [MCP SMP] speed: 0
Graphics:
  Device-1: NVIDIA GA102GL [A40] driver: nvidia v: 545.23.08
  Device-2: Huawei Hi171x Series [iBMC Intelligent Management system chip
    w/VGA support]
    driver: hibmc-drm v: N/A
  Display: server: X.Org v: 1.20.14 driver: X: loaded: modesetting
    gpu: hibmc-drm resolution: 1: 3840x2160~60Hz 2: 3840x2160~60Hz
  OpenGL: renderer: llvmpipe (LLVM 15.0.7 128 bits)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1
Network:
  Device-1: Huawei HNS GE/10GE/25GE RDMA Network driver: hns3
  Device-2: Huawei HNS GE/10GE/25GE Network driver: hns3
  Device-3: Huawei HNS GE/10GE/25GE RDMA Network driver: hns3
  Device-4: Huawei HNS GE/10GE/25GE Network driver: hns3
  Device-5: Mellanox MT28908 Family [ConnectX-6] driver: mlx5_core
  Device-6: Mellanox MT28908 Family [ConnectX-6] driver: mlx5_core
  Device-7: Huawei HNS GE/10GE/25GE RDMA Network driver: hns3
  Device-8: Huawei HNS GE/10GE/25GE Network driver: hns3
  Device-9: Huawei HNS GE/10GE/25GE RDMA Network driver: hns3
  Device-10: Huawei HNS GE/10GE/25GE Network driver: hns3
Drives:
  Local Storage: total: 2.83 TiB used: 419.33 TiB (14796.5%)
Info:
  Processes: 1506 Uptime: 1h 55m Memory: 1005.61 GiB used: 826.43 GiB (82.2%)
  Shell: Bash inxi: 3.3.13

[Resolution]
Probably related to Bug #1933302 for focal.

Revision history for this message
torel (torehl) wrote :

Duplicate of bug #1933301 ?

Revision history for this message
Ike Panhc (ikepanhc) wrote :

No, this issue is not duplicate of #1933301.

As I understand, cma_alloc tries to allocate continuous memory for specific usage, e.g. DMA, framebuffer.
When it fails, it falls back to use traditional memory allocation and drivers/applications get what it needs.

Unless we find out function has broken due to cma_alloc failing, I won't consider this is a bug.

I will set this bug to "Imcomplete" and let us know if any function is broken with cma_alloc failing.

Many thanks.

Changed in kunpeng920:
status: New → Incomplete
Revision history for this message
torel (torehl) wrote :

Added cma=128M to kernel parameters.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.