Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3614755pxb; Mon, 24 Jan 2022 13:34:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJys2Qr9QppI0KSba4HHjzqdBwyCw21UM1qP14UWWIjH+C6C/tlX8DiQPYrrsmw2GzAUvkf0 X-Received: by 2002:a17:903:22c4:b0:14b:4035:e166 with SMTP id y4-20020a17090322c400b0014b4035e166mr9061280plg.144.1643060040467; Mon, 24 Jan 2022 13:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060040; cv=none; d=google.com; s=arc-20160816; b=BdHh9G6SxEy7pGrbQ9mnqvhs893gGdmVt8zAlz7VEMtF0RRplGd4T7YSrreQZSZzdu C35bXKaKqMV5y4UKz4RmULcc+Em/zGIdfRj/Jya8dCHK4AjTbzli8e0y8N/yaedxRyDx 2supzKYLVc4ROAeS/KeE+Wb2I2EQ6QET5+aljfrl4ttbkikwm1tVbTFmkWP0QOyh8fLZ nB9OV1eU0Tcu9luSCE9FLYdDSn90vfDZ11p8tSAiyMN/cgH5cqoXnr2bUOttbmXmkKTb AFiqAsGoiKlGfYOSXjKAbj1Fy571EpkNdvJiORT3vnWWdjDeky68nQmY1EPn14LAexiT Nujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Mcfx/Bw8btwyzjrm+JZ9PQUWaLt9nI1aDLJn0quUhrA=; b=X5KXzCbLyA3Xexejcu2rdwrJrm7liPu0zTM3Tt9fuylEC6TgfpyUesV1wE6AbrRPX7 /1r28Y0cjstSWu8ESeobo3SO85japTe0UtysJGwkfOUYCyvgsdPgOe58/Oj7tsFAHgNt dAvVhnDPsN2OhQ9LKjQuKLOErBIEKD1fn7Nwsj7KXBoVWvGPCJ9RxOk5a8dJBxTGQs2j vJCf2D4sk3Rfxd54gxPv1Xdz6N+13rnzxB9FPn0LkBjqopuTIGRSvliXfDMFSxOSsg7Y zHU9nW6yw0ASpMybRWSvpCqzWBPOPpU40xu5re+eGC+IcSJaMQXq9v7vRNd9fZT/aO/I 3OtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdILDd0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si13347313pgm.471.2022.01.24.13.33.48; Mon, 24 Jan 2022 13:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdILDd0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447298AbiAXVKY (ORCPT + 99 others); Mon, 24 Jan 2022 16:10:24 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:39928 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390780AbiAXUqS (ORCPT ); Mon, 24 Jan 2022 15:46:18 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B610960B28; Mon, 24 Jan 2022 20:46:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96CECC340E5; Mon, 24 Jan 2022 20:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057176; bh=q18wRBnCv2k58Fxjm5AjDgHriZlgmiylV6kF/Ik9r9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdILDd0l38CpkMuPzRuNG5oOiq0xMQjq79t4e9Od/knxCma98pJzF9XrziM/gBSZR JksDR0XYo0G317WpMq0H4elj3SinG6fWY78v1ZrJCuDpZg8oGMkyuyFd5SHsM+zqG0 PEwspGjszNCGbTH3Z8dCZqMlDwtVfze0Vw4fIuYM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaron Ma , Kalle Valo , "Limonciello, Mario" Subject: [PATCH 5.15 727/846] ath11k: qmi: avoid error messages when dma allocation fails Date: Mon, 24 Jan 2022 19:44:04 +0100 Message-Id: <20220124184126.083992973@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Ma 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 Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210823063258.37747-1-aaron.ma@canonical.com Cc: "Limonciello, Mario" Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath11k/qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -1770,7 +1770,7 @@ static int ath11k_qmi_alloc_target_mem_c chunk->vaddr = dma_alloc_coherent(ab->dev, chunk->size, &chunk->paddr, - GFP_KERNEL); + GFP_KERNEL | __GFP_NOWARN); if (!chunk->vaddr) { if (ab->qmi.mem_seg_count <= ATH11K_QMI_FW_MEM_REQ_SEGMENT_CNT) { ath11k_dbg(ab, ATH11K_DBG_QMI,