opnsense-src/sys/arm
Jason A. Harmening 64f4e2bdf5 Avoid waiting on physical allocations that can't possibly be satisfied
- Change vm_page_reclaim_contig[_domain] to return an errno instead
  of a boolean.  0 indicates a successful reclaim, ENOMEM indicates
  lack of available memory to reclaim, with any other error (currently
  only ERANGE) indicating that reclamation is impossible for the
  specified address range.  Change all callers to only follow
  up with vm_page_wait* in the ENOMEM case.

- Introduce vm_domainset_iter_ignore(), which marks the specified
  domain as unavailable for further use by the iterator.  Use this
  function to ignore domains that can't possibly satisfy a physical
  allocation request.  Since WAITOK allocations run the iterators
  repeatedly, this avoids the possibility of infinitely spinning
  in domain iteration if no available domain can satisfy the
  allocation request.

PR:		274252
Reported by:	kevans
Tested by:	kevans
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D42706

(cherry picked from commit 2619c5ccfe1f7889f0241916bd17d06340142b05)

MFCed as a prerequisite for further MFC of VM domainset changes.  Based
on analysis, it would not hurt, and I have been using it in productions
for months now.

Resolved the trivial conflict due to commit 718d1928f874 ("LinuxKPI:
make linux_alloc_pages() honor __GFP_NORETRY") having been MFCed before
this one.
2025-10-23 08:18:48 +02:00
..
allwinner IfAPI: Retire if_etherbpfmtap() and if_bpfmtap() 2025-09-08 10:26:04 +02:00
altera/socfpga sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
annapurna/alpine sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
arm arm nexus: Use bus_generic_rman_* 2025-02-27 08:09:20 -05:00
broadcom/bcm2835 Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
conf sys: add conf/std.debug, generic debugging options 2024-10-09 10:44:35 +02:00
freescale Revert "sound: Make device registration more intuitive" 2024-11-14 17:25:41 +01:00
include atomics: Constify loads 2025-01-16 19:06:53 +01:00
mv armada38x: implement gateclk clkdev methods 2025-03-04 11:11:46 -04:00
nvidia Avoid waiting on physical allocations that can't possibly be satisfied 2025-10-23 08:18:48 +02:00
qemu sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
qualcomm arm/qualcomm: Fix a typo in a source code comment 2024-12-31 10:32:06 +01:00
rockchip sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
ti Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
xilinx Use bus_delayed_attach_children instead of its inline implementation 2024-11-30 21:46:05 -05:00