[U-Boot] Regression due to "efi_loader: efi_allocate_pages is too restrictive"

Commit aa909462d018 "efi_loader: efi_allocate_pages is too restrictive" causes a failure (synchronous abort) in the command "dhcp zImage" on board p2371-2180 (Jetson TX1). Reverting this commit alone solves the problem. According to the exception dump, elr/pc is in efi_allocate_pages(), which makes sense given the content of the patch. Do you have any ideas? Thanks.
Failure log:
U-Boot 2018.07-00378-gaa909462d018 (Jul 31 2018 - 13:06:57 -0600)
TEGRA210 Model: NVIDIA P2371-2180 Board: NVIDIA P2371-2180 DRAM: 3.5 GiB MMC: sdhci@700b0000: 1, sdhci@700b0600: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment
Failed (-5) In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0 Tegra210 (P2371-2180) # pci enum Tegra210 (P2371-2180) # dhcp zImage
Warning: eth_rtl8169 using MAC address from ROM BOOTP broadcast 1 DHCP client bound to address 10.20.204.52 (2 ms) Using eth_rtl8169 device TFTP from server 10.20.204.51; our IP address is 10.20.204.52 Filename 'zImage'. Load address: 0x80080000 Loading: "Synchronous Abort" handler, esr 0x96000044 elr: 000000008015a8b0 lr : 000000008015a8a8 (reloc) elr: 00000000dff6f8b0 lr : 00000000dff6f8a8 x0 : 0000000000000000 x1 : 000000017ffff000 x2 : 00000000dda2dc20 x3 : 0000000080000000 x4 : 0000000000000000 x5 : 0000000000000000 x6 : 0000000000000015 x7 : 00000000dda1cf58 x8 : 00000000dda36030 x9 : 0000000000000008 x10: 0000000000000000 x11: 00000000dda1c774 x12: 0000000000000000 x13: 00000000dda1c768 x14: 0000000000000004 x15: 00000000ffffffff x16: 0000000000002080 x17: 0000000000010000 x18: 00000000dda22dd0 x19: 0000000000000001 x20: 00000000dda1d048 x21: 00000000dff8dcae x22: 00000000dff97823 x23: 00000000dff9c000 x24: 00000000dffed000 x25: 00000000dffed5b4 x26: 0000000000000000 x27: 00000000dffef000 x28: 00000000dffef000 x29: 00000000dda1cff0
Resetting CPU ...
participants (1)
-
Stephen Warren