From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47B8735A931; Fri, 9 Jan 2026 12:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767960121; cv=none; b=SDEzPRkMVzNTeYPmqAXAfh4Un2N465X3Y359fxeS+ZtNBsJuqgeMmijQxXYPsEXXvG2Ylw7NQFpiZ1pvdXSCgEwq5xbaE7N/tLPK5t4k0//t2tjDU1TTMFBFTwWHpChyFgnargIRpzw3TGwbHD9kE6KGzg0hlJZuAnxLE/tPzno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767960121; c=relaxed/simple; bh=Gj/h+CkUVDOU6JE3SYy4COJ3Ie1vHADW7FB5BlWzDjM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lkhom10UqrsaPotPnp/FT6R4zTuKJgxeufrAoRa35mSiAacun50D57M/yYHtHBO/nzyrdyJVTTzf3xKWe/Nk6iRsIXZn8MVfSS/EO65UnWBpAQnpYSB2wmH6gHF4Pr+XCo5vNWIcq/f6msV4VXAGu2S1SKjDNFRfyAYtxK65w48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bDNxEVbm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bDNxEVbm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B122BC4CEF1; Fri, 9 Jan 2026 12:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767960121; bh=Gj/h+CkUVDOU6JE3SYy4COJ3Ie1vHADW7FB5BlWzDjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bDNxEVbm/w/dZOBT/iTTiaLd07D1xPpEObVdgn6HzchtqkoW5X1t7IlK6GX20okfT efXJxB1c14eAMDYfZ6ioi1n6NEDU/tqPmUceciUJf/HTo16L3KRuEefNaN9eMrh/sE M9JFUDs3E4rVVJnj1ZUUxdnw0pWbjzkEqBKUrh0o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Zhang, Liyin(CN)" , Thangaraj Samynathan , Simon Horman , Jakub Kicinski Subject: [PATCH 6.6 293/737] net: lan743x: Allocate rings outside ZONE_DMA Date: Fri, 9 Jan 2026 12:37:12 +0100 Message-ID: <20260109112145.033410162@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109112133.973195406@linuxfoundation.org> References: <20260109112133.973195406@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thangaraj Samynathan commit 8a8f3f4991761a70834fe6719d09e9fd338a766e upstream. The driver allocates ring elements using GFP_DMA flags. There is no dependency from LAN743x hardware on memory allocation should be in DMA_ZONE. Hence modifying the flags to use only GFP_ATOMIC. This is consistent with other callers of lan743x_rx_init_ring_element(). Reported-by: Zhang, Liyin(CN) Signed-off-by: Thangaraj Samynathan Reviewed-by: Simon Horman Link: https://patch.msgid.link/20250415044509.6695-1-thangaraj.s@microchip.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/microchip/lan743x_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -2633,8 +2633,7 @@ static int lan743x_rx_process_buffer(str /* save existing skb, allocate new skb and map to dma */ skb = buffer_info->skb; - if (lan743x_rx_init_ring_element(rx, rx->last_head, - GFP_ATOMIC | GFP_DMA)) { + if (lan743x_rx_init_ring_element(rx, rx->last_head, GFP_ATOMIC)) { /* failed to allocate next skb. * Memory is very low. * Drop this packet and reuse buffer.