ath11k: qmi: avoid error messages when dma allocation fails
authorAaron Ma <aaron.ma@canonical.com>
Tue, 28 Sep 2021 09:05:43 +0000 (12:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:18 +0000 (11:05 +0100)
commit16c436fa4f748c6d5a65acf749e6054801784a2f
tree4231d514cbacdaeee68e5afc096cc1bf79ff3984
parentcb77c81d347980f029e2e1ccdb80eb550d50eaf1
ath11k: qmi: avoid error messages when dma allocation fails

commit b9b5948cdd7bc8d9fa31c78cbbb04382c815587f upstream.

qmi tries to allocate a large contiguous dma memory at first,
on the AMD Ryzen platform it fails, then retries with small slices.
So set flag GFP_NOWARN to avoid flooding dmesg.

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210823063258.37747-1-aaron.ma@canonical.com
Cc: "Limonciello, Mario" <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath11k/qmi.c