From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jisheng Zhang Subject: Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE Date: Wed, 19 Dec 2018 03:11:16 +0000 Message-ID: <20181219110546.63f68f4b@xhacker.debian> References: <1544533009-12425-1-git-send-email-mw@semihalf.com> <20181216.124120.731491122771817496.davem@davemloft.net> <20181217083735.4c6599b3@windsurf> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Marcin Wojtas , Linux Kernel Mailing List , Antoine Tenart , netdev , =?iso-8859-1?Q?Gr=E9gory_Clement?= , Russell King - ARM Linux , Maxime Chevallier , "nadavh@marvell.com" , Grzegorz Jaszczyk , Stefan Chulski , David Miller , "linux-arm-kernel@lists.infradead.org" To: Thomas Petazzoni Return-path: In-Reply-To: <20181217083735.4c6599b3@windsurf> Content-Language: en-US Content-ID: <085743CFB054304999D36D3A0EABF3B2@namprd03.prod.outlook.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 17 Dec 2018 08:37:35 +0100 Thomas Petazzoni wrote: > Hello Marcin, >=20 > On Mon, 17 Dec 2018 00:25:58 +0100, Marcin Wojtas wrote: >=20 > > Thanks. Indeed, the patch is valid as a fix for current version of SW > > BM. However, because this concept is broken, I will rework it and > > submit patch/patches some time early 2019. =20 >=20 > I know some people are working on XDP support in mvneta, and this work > also needs to change parts of the memory allocation strategy in this > driver. I'd suggest to get in touch with those folks. Antoine can give > you the contact details, I don't have them off-hand. Or perhaps they > will see this e-mail :-) Great. So the problem of current memory allocation is seen, glad to know reworking is going on. Besides the memory waste, there's another issue with commit 7e47fd84b56b it always allocates page, so the rx is mapped with dmap_map_page(), but the unmap routine isn't updated, there's mismatch here. thanks