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 934BD2EACE1; Thu, 3 Jul 2025 15:17:08 +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=1751555828; cv=none; b=X3WxRgafvjFjmI13DsStHr/45vjY0vBwz6vSZ0K4umYlfT1OrPUW5QBLxiiSToUKcYZgNTVVFKm00/e+2NSEM7LBT7YRf86AFghYgXiNv+VXKTTeoCwropYcRP4Ylphrw4sWyT5YEiqy/3JhQtNuC48ayHrtQSiB7uvP+AMinZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751555828; c=relaxed/simple; bh=kBOBw0ntQlwgVgDQ81CZv1woxoyVYnBPllw/60Af4j8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AGnQCJi2C4nMnsOZGqQ38yw8dsrZ5HiCEzskzoGJ1tLVNaAUbQjfotHaupvAVQIHkMAJZIUQ6HeGb0xr8oRKRf2KzIJN/2AmOXzUX57Sn2Zt0Qiewe7Q0tyV8h8YHT7YyGNpAeH+aXp04Xwt9l/7NBNe4ooFlIBgCGnvxfDJ4QM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YzTr2RLY; 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="YzTr2RLY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEB5EC4CEE3; Thu, 3 Jul 2025 15:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751555828; bh=kBOBw0ntQlwgVgDQ81CZv1woxoyVYnBPllw/60Af4j8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YzTr2RLYghYqgwQL8tBp4iJ8FuPBnR9Czkd4L3vTcDTo+fbqh/EjHt9DmXTpt5OZO jMHxMGleEl/BNMlHA1EmD//OaLeRe6JgAEnRj7WM2p8ZfRVwpPSeJj7S6ztZAaf7gT yqZE4QS2s/L8SP53vz5XyUN4X3bGzgbIDQLino5g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jiawen Wu , Simon Horman , Mina Almasry , Paolo Abeni Subject: [PATCH 6.6 103/139] net: libwx: fix the creation of page_pool Date: Thu, 3 Jul 2025 16:42:46 +0200 Message-ID: <20250703143945.197228511@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250703143941.182414597@linuxfoundation.org> References: <20250703143941.182414597@linuxfoundation.org> User-Agent: quilt/0.68 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: Jiawen Wu commit 85720e04d9af0b77f8092b12a06661a8d459d4a0 upstream. 'rx_ring->size' means the count of ring descriptors multiplied by the size of one descriptor. When increasing the count of ring descriptors, it may exceed the limit of pool size. [ 864.209610] page_pool_create_percpu() gave up with errno -7 [ 864.209613] txgbe 0000:11:00.0: Page pool creation failed: -7 Fix to set the pool_size to the count of ring descriptors. Fixes: 850b971110b2 ("net: libwx: Allocate Rx and Tx resources") Cc: stable@vger.kernel.org Signed-off-by: Jiawen Wu Reviewed-by: Simon Horman Reviewed-by: Mina Almasry Link: https://patch.msgid.link/434C72BFB40E350A+20250625023924.21821-1-jiawenwu@trustnetic.com Signed-off-by: Paolo Abeni Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/wangxun/libwx/wx_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/wangxun/libwx/wx_lib.c +++ b/drivers/net/ethernet/wangxun/libwx/wx_lib.c @@ -2368,7 +2368,7 @@ static int wx_alloc_page_pool(struct wx_ struct page_pool_params pp_params = { .flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV, .order = 0, - .pool_size = rx_ring->size, + .pool_size = rx_ring->count, .nid = dev_to_node(rx_ring->dev), .dev = rx_ring->dev, .dma_dir = DMA_FROM_DEVICE,