mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] Order 4 allocation failures in the MEI client driver
@ 2024-08-13  8:45 Rohit Agarwal
  2024-08-19 13:15 ` Arnd Bergmann
  0 siblings, 1 reply; 9+ messages in thread
From: Rohit Agarwal @ 2024-08-13  8:45 UTC (permalink / raw)
  To: tomas.winkler, arnd, gregkh; +Cc: linux-kernel, Rohit Agarwal

Hi All,

I am seeing an inconsistent allocation (kmalloc) failure in the mei client driver [1]
in chromebooks. The crash indicates the driver is requesting for an order 4 allocation
that is unavailable at that particular snapshot of the system.

I am new to this and do not know the history behind the roundup to order
4 [2]. According to the sources, order 4 allocations are not guaranteed and
should be avoided most of the time. And considering the chromebooks
limited memory, this may become an expected behavior.

Can we have more details on this as to why order 4 allocation is
required? Or can we have a lower order allocation request that can be
helpful for low memory platforms?

Some solutions that I explored and weren't applicable/helpful here:
1. using a vmalloc/kvmalloc instead of kmalloc (Due to DMA usage).
2. using a scatter gather list (Would require a lot of rework in the driver and still
not sure if that would work as it would require changes in the underlying layer as well)
3. retry mechanism (would help in few instances only).
4. allocating from the DMA pool?

Please help in this query and help me correct my understanding wherever wrong.
Thanks in advance!!!

Thanks,
Rohit.

[1] https://github.com/torvalds/linux/blob/master/drivers/misc/mei/client.c#L500
[2] https://lore.kernel.org/lkml/20180731063544.25540-10-tomas.winkler@intel.com/


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-25 10:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-13  8:45 [RFC] Order 4 allocation failures in the MEI client driver Rohit Agarwal
2024-08-19 13:15 ` Arnd Bergmann
2024-08-19 16:46   ` Winkler, Tomas
     [not found]   ` <4d6f3331-5a9c-46f2-8e27-3484ba6f6eab@chromium.org>
2024-08-21 11:17     ` Arnd Bergmann
2024-08-22 13:27       ` Winkler, Tomas
2024-08-22 16:39         ` Arnd Bergmann
2024-08-22 21:00           ` Winkler, Tomas
2024-09-24  5:45             ` Rohit Agarwal
2024-09-25 10:30               ` Usyskin, Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®