CHROMIUM: ASoC: Intel: Skylake: Use SG allocation for SKL-based firmware load
Resign from ->alloc_dma_buf() and use snd_dma_alloc_pages() directly.
For data i.e.: base firmware binary transfer, make use of SG allocation
to better adapt to memory-limited environment. For BDL descriptor, given
its small size this is not required.
BUG=b:171808591, b:239715995, b:235443521
TEST=eve with memory restricted via 'mem=4G' command line parameter.
Run youtube either via the browser or via ARCVM, and run suspend/resume
cycles. Without this patch it consistently fails on the first or second
resume. With this patch I haven't been able to get a failure.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Tested-by: Ross Zwisler <zwisler@google.com>
Change-Id: I4743bff75ff32479ab0cb58dd3a4b54454722355
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3792265
Reviewed-by: Matt Davis <mattedavis@google.com>
Auto-Submit: Ross Zwisler <zwisler@google.com>
Commit-Queue: Ross Zwisler <zwisler@google.com>
Commit-Queue: Matt Davis <mattedavis@google.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Commit-Queue: Curtis Malainey <cujomalainey@chromium.org>
(cherry picked from commit e0c146992a299687730908d3817465af81d12db3)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3793110
Reviewed-by: Ross Zwisler <zwisler@google.com>
1 file changed