Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5015077imu; Wed, 19 Dec 2018 04:16:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XcBnVvBgj4U5UjXfl9Op7/irbYJX+Iu0NQH3g2W116oyAobZYdzv9mgsRtWjuw7tEYFFlQ X-Received: by 2002:a63:c748:: with SMTP id v8mr19601611pgg.108.1545221768221; Wed, 19 Dec 2018 04:16:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545221768; cv=none; d=google.com; s=arc-20160816; b=FsUrzNknQnbvZ/psh+gskgAo0VpqwYwvsNUjmdXW+j8O8U1pHkdb1W5YjdVWosNMnd lQ9Glz5rVz8x9WVyluttsc9JXpIFjdoMNSDvkFml0LY8XzDBk4egDpp29RwFUBCKPNtx PvbYZNMiwlqyFxR1HQiuotu5r2YoN1h8GyGYEvkoVYcm7FaS16F/xtWEtpJMcgvU35nQ vhTFZGTk9EMAz0Ek/S/i5vRBpoPQN0ixjQax7T1XQiRKFs57MrVH5J44AdJapEl03bus IWGtZzbmXEkPJnFTqpOkBW2gm7i7Nt1k8GnTLSczdUCTzVK6P/Q8kJl/Ai4jieAo/OXM ASQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kOYJwKxQ0pGsj3DpVVNDVwNG3VaOkHgQH3xL3tx3odE=; b=UDI4RP+SgD+TZfxMWRJ4EKnUtnmRVDEk93UT8Z2JPTgMNwMPo2BWnAp/MH+wIG03Sw 3PjACWz56+boBsyOqHTFbBdm1uihwqGJyPCAmC/Xp6cE8KR6aa/VIakfy4JyvvTdtOGY pfE17ymp8f6nDVCv9aERoF0WJ5dCcr/X+HFy2uM7iMAjapqqNuA49QFSCvDwS1gm3Jkm OqZcfcJ6joFAggvurfQCmrjiicM+CwhQNudmjsPvDJIxDrPLe415bjUWRJnPIiJ1ZFII gyBAiigNleGar+PyzMn3wzU74d7zpyfiPZmiWGvc1eSZC8ZY1XWOj+wF4nL3DW8LpocH 2kXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iHjlnvH5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si16631130pfm.37.2018.12.19.04.15.48; Wed, 19 Dec 2018 04:16:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iHjlnvH5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728690AbeLSJYu (ORCPT + 99 others); Wed, 19 Dec 2018 04:24:50 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:38426 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728013AbeLSJYu (ORCPT ); Wed, 19 Dec 2018 04:24:50 -0500 Received: by mail-it1-f194.google.com with SMTP id h65so8422545ith.3 for ; Wed, 19 Dec 2018 01:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kOYJwKxQ0pGsj3DpVVNDVwNG3VaOkHgQH3xL3tx3odE=; b=iHjlnvH5p8to2RGQWe+2S61K2RyFxMveoU/sAAxWBmx3RefbM2gk+0ZphN2rypGfoI rXZqyp2CQy5qsaOHsmI3YxrskF3IZRwdWCmpuZmt7Bmuk3FB/vwXVl8ruYZRZQ4emsdo AmSTy4gMKZZVO/MQVKTf2fcd5peFim2EMxmQJOpY7qaMsmUXtoKEq7wEWr9sYMTxAfLp okVJBvgJBC6yWu9vkPAMjQfqCIeVTekcGZFMk4aMrXAM3Y0I9REuPjV8E5NV5hpVdoTZ B05CdV7kbowl9eJDe2fp/tLbshm56PZKvfjsvwWf6vYEg4XYnQ6nqZionUR8VhTgdKzs 2oMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kOYJwKxQ0pGsj3DpVVNDVwNG3VaOkHgQH3xL3tx3odE=; b=Z8uf0M5QfYX9oZMtKRyWSCTjZawxbkJIG7pveGQ29Lsca2BcmDpAeWwaHznXWUeow/ nc/9WsEVymdBHYCtekfedZ9XZ/A8MGMJMLuxQILdix8o8xuYlyKnNXef69rvHBs5h3ev y9HJdf+fsao1GWjXyS2ZbkscjRBRiLw1BEqq7LE+T4s+ApiJsjKr78WKj88j7RS/rwiZ jxCMYfgzkMUwgQBGBF+uycAysYb/GBflsTR1o0LIyIVq3cpJepZQkAzBZPWMYIW0YUcY rAntx+FnLYw50iMeF/Urb/NPyzxKFcz5naVyuK8vmDv/SLe9DuJZlFwiPYCMa82QLKBv Fuvw== X-Gm-Message-State: AA+aEWYlWH0KccjdrD8teh+ltbmOAhDlHU9g+90wuL/FKnT+Z6HXotV0 e61++NN+oXxSz18vxHPfGixNGJrQClHBGj084Uyh9Q== X-Received: by 2002:a02:7696:: with SMTP id z144mr18385618jab.102.1545211489228; Wed, 19 Dec 2018 01:24:49 -0800 (PST) MIME-Version: 1.0 References: <1544533009-12425-1-git-send-email-mw@semihalf.com> <20181216.124120.731491122771817496.davem@davemloft.net> <20181217083735.4c6599b3@windsurf> <20181219110546.63f68f4b@xhacker.debian> In-Reply-To: <20181219110546.63f68f4b@xhacker.debian> From: Marcin Wojtas Date: Wed, 19 Dec 2018 10:24:37 +0100 Message-ID: Subject: Re: [PATCH net] net: mvneta: fix operation for 64K PAGE_SIZE To: Jisheng Zhang Cc: Thomas Petazzoni , Linux Kernel Mailing List , Antoine Tenart , netdev , =?UTF-8?Q?Gr=C3=A9gory_Clement?= , Russell King - ARM Linux , Maxime Chevallier , "nadavh@marvell.com" , Grzegorz Jaszczyk , Stefan Chulski , David Miller , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jisheng, =C5=9Br., 19 gru 2018 o 04:11 Jisheng Zhang n= apisa=C5=82(a): > > > On Mon, 17 Dec 2018 08:37:35 +0100 Thomas Petazzoni wrote: > > > Hello Marcin, > > > > On Mon, 17 Dec 2018 00:25:58 +0100, Marcin Wojtas wrote: > > > > > 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. > > > > 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. > Indeed, despite the upcoming rework, which will be more complex, how about I submit a quick patch for this? Best regards, Marcin