From patchwork Tue Oct 19 16:23:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1543472 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HYfG86f8Hz9sR4 for ; Wed, 20 Oct 2021 03:24:32 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mcrub-000545-20; Tue, 19 Oct 2021 16:24:25 +0000 Received: from mail-pj1-f41.google.com ([209.85.216.41]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mcruW-0004xU-6q for kernel-team@lists.ubuntu.com; Tue, 19 Oct 2021 16:24:20 +0000 Received: by mail-pj1-f41.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so246562pjb.5 for ; Tue, 19 Oct 2021 09:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=59k5SMCciRObPA50YZfotQaxibT0zxNqJ5WlQ1c3bX4=; b=ev/AWZYYlpIO02euD+0R0NMYbwJiSj5eQCO+SZmcrHnx5bcNMknhHEYtTH9WhMhC+V 1Hl7oferjgD+p7wcbj19hgU7k0TvawhQXZg0xaWVn1vJQF2i4gvdYRlzVBT1paCUpLb6 zx3GleFyD1yMq/2jYv1PNpQj+2EZ/fmfS62V+CFnE7K3/+gI2Y9GTG3K3No6eRN4jW9/ XePzIKs9UbDsoTlhIo9B1NUzGKcSkyA9Ak46vh10JNONTqCYuUYO2fd9poFMyqLUI4BK iT+kEFa80RzjMlYtflEUxBtjtkSNaq9DUMht6W8f7qxo2Jg64GFerZoOVBui4oxMK/0s zjjQ== X-Gm-Message-State: AOAM533KqiCxrd2/tOIzvCCrJJz+QZajMj4RIYAfCsIDclr9Y5xuxFpJ kSH7dEKDoKUrnD54zjx4y0ZevQSXQug= X-Google-Smtp-Source: ABdhPJx+YfnNo3Yx+i5peXQ6Epmo7WxVA+DEbLNsZwiaUDiMbIeABoi4ygVDMqGVjOJlhUNEWNftxg== X-Received: by 2002:a17:90a:9f44:: with SMTP id q4mr976564pjv.136.1634660657366; Tue, 19 Oct 2021 09:24:17 -0700 (PDT) Received: from localhost (220-142-196-159.dynamic-ip.hinet.net. [220.142.196.159]) by smtp.gmail.com with ESMTPSA id i13sm16231565pgf.77.2021.10.19.09.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 09:24:17 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 04/25][SRU][OEM-5.14] ath11k: qmi: avoid error messages when dma allocation fails Date: Wed, 20 Oct 2021 00:23:47 +0800 Message-Id: <20211019162408.1407525-5-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211019162408.1407525-1-vicamo.yang@canonical.com> References: <20211019162408.1407525-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.41; envelope-from=vicamo@gmail.com; helo=mail-pj1-f41.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Aaron Ma BugLink: https://bugs.launchpad.net/bugs/1939528 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 (cherry picked from commit b9b5948cdd7bc8d9fa31c78cbbb04382c815587f) Signed-off-by: You-Sheng Yang --- drivers/net/wireless/ath/ath11k/qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index b5e34d670715e..d6270e96d46cf 100644 --- 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_chunk(struct ath11k_base *ab) 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,