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

Andi Shyti andi.shyti at linux.intel.com
Thu Jun 27 22:36:39 UTC 2024


Hi Nirmoy,

On Thu, Jun 27, 2024 at 06:56:53PM +0200, Nirmoy Das wrote:
> On 6/27/2024 12:04 PM, Andi Shyti wrote:
> > 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!

while at it... merged in

drm-intel-gt-next

Andi


More information about the dri-devel mailing list