Alloc_bootmem_low_pages failed

Hi,

I want to allocate a memory pool for DMA buffer before mem_init(), but when I connected the HDMI cable and power on, the memory will not be available. When I unplug the HDMI cable and boot again, the memory can be successfully requested.

1.Code information

2.OK case…( without HDMI Cable)
without_HDMI

3.NG case… [with HDMI cable] (Always Rebooting system…]
with_HDMI

4. Power is 5v/5A
5. JetPack 4.5.1
6. Kernel Image source is "L4T 32.5.1"

Jetson Nano does not have this problem.

 What is the cause of the problem?

Hi,

Will you see kernel panic from display driver if you hotplug the HDMI cable after the eagleeye driver is ready?

Hi,

  more information is as below,

  I just setup user name and password after installed OS by SDK, I **do not** login the desktop environment,

  the HDMI cable plug-in before power,  I checked the boot log by UART, the memory pool **could be allocated** by alloc_bootmem_low_pages() function.

  After I login the desktop environment for the first time and power off,

  OK case,
  1) plug**-out** HDMI cable
  2) power on
  3) alloc_bootmem_low_pages() **is OK**,
  4) after the login information display, I plug-in HDMI cable, I can log-in the 
      desktop environment.

  Fail case
 1) plug**-in** HDMI cable
 2) power on
 3) alloc_bootmem_low_pages() **is NG**,
 4) continue rebooting....
 
  5) if I plug-out HDMI cable during rebooting, the alloc_bootmem_low_pages() 
     became OK.

Hi,

 I reduce the size from 394MB to below case,

318MB is fail.

   ![318mbfail|594x125](upload://cZ8JL8WeKg2GwG2DAgnzmIK3KNP.jpeg) 

317MB is ok.

  ![317mb)o|690x285](upload://iVYlyGBOSQQfD0ZOdgGEVLwQNKD.jpeg)

Hi,

I reduce the size from 394MB to below case,

318MB is fail.

318mbfail

317MB is ok.