Files
ack-tegra/mm
Henry Dong b4d3ec1582 ANDROID: mm: support __GFP_NORETRY in __alloc_contig_verify_gfp_mask
Currently, __alloc_contig_verify_gfp_mask() rejects __GFP_NORETRY because
it is not in the allowed action_mask. This causes cma_alloc() calls that
pass __GFP_NORETRY to fail immediately during mask verification in
alloc_contig_range().

Support __GFP_NORETRY by adding it to the allowed action_mask and
cc_action_mask. Furthermore, adjust the construction of gfp_cc_mask
so that if the caller explicitly requested __GFP_NORETRY, we respect
it and do not force __GFP_RETRY_MAYFAIL, avoiding conflicting retry
directives for the underlying migration/compaction.

This allows cma_alloc() with __GFP_NORETRY to fail quickly when the
range cannot be allocated, rather than retrying heavily or failing
immediately due to invalid GFP flags.

Bug: 519847597
Test: Local build and flash verification
Change-Id: I1bee0b838ac957d08a24358d100d20b8ef7babeb
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Henry Dong <donghenry@google.com>
2026-08-11 21:33:30 -07:00
..
…
2025-11-20 13:43:57 -08:00
…
…
…
2026-06-02 16:29:16 +01:00
…
2025-09-13 16:55:07 -07:00
…
…
…
2026-05-29 05:34:24 -06:00
…
…