Commit fcf31a02 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Tomasz Nowicki
Browse files

FROMLIST: mei: use kvmalloc for read buffer



Read buffer is allocated according to max message size, reported by
the firmware and may reach 64K in systems with pxp client.
Contiguous 64k allocation may fail under memory pressure.
Read buffer is used as in-driver message storage and not required
to be contiguous.
Use kvmalloc to allow kernel to allocate non-contiguous memory.

Fixes: 3030dc05 ("mei: add wrapper for queuing control commands.")
Reported-by: default avatarRohit Agarwal <rohiagar@chromium.org>
Closes: https://lore.kernel.org/all/20240813084542.2921300-1-rohiagar@chromium.org/


Tested-by: default avatarBrian Geffon <bgeffon@google.com>
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
(am from https://lore.kernel.org/r/20241015123157.2337026-1-alexander.usyskin@intel.com/

)

BUG=b:353710056
TEST=fixes local repro

Change-Id: Ib8da0d2b3a4cc61fa1e76278bb7f9b660ec3a875
Signed-off-by: default avatarBrian Geffon <bgeffon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/5934606


Reviewed-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: default avatarJeffrey Kardatzke <jkardatzke@google.com>
Signed-off-by: default avatarHubert Mazur <hmazur@google.com>
Signed-off-by: default avatarTomasz Nowicki <tnowicki@google.com>
parent a601c3a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment