[PATCH] drm/i915/gem: Suppress oom warning in favour of ENOMEM to userspace

Nirmoy Das nirmoy.das at linux.intel.com
Thu Jun 27 16:56:53 UTC 2024


Hi Andi,

On 6/27/2024 12:04 PM, Andi Shyti wrote:
> Hi Nirmoy,
>
> On Wed, Jun 26, 2024 at 04:33:18PM +0200, Nirmoy Das wrote:
>> We report object allocation failures to userspace with ENOMEM
>> so add __GFP_NOWARN to remove superfluous oom warnings.
> I think this should be the default behavior.
Yes, when drivers handle ENOMEM situation which is the case for i915/gem 
code
>   ENOMEM doesn't
> necessarily mean that there is a kernel failure. Most of the time
> we just run out of memory, deal with it :-)
>
> Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>

Thanks!


>
> Thanks,
> Andi


More information about the dri-devel mailing list