Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1145162yba; Fri, 26 Apr 2019 15:03:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbl7xUhRaU/MsTLMDqXWnFLFGT0E82OcW3MLoVBbvUzWenEyez3A7kTffTYPXjh34mRwM+ X-Received: by 2002:a62:f20e:: with SMTP id m14mr51118401pfh.228.1556316239186; Fri, 26 Apr 2019 15:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556316239; cv=none; d=google.com; s=arc-20160816; b=N0YFeiL3ToNZEg5cvhiY7wWGc0+LVXxiaA/cSCEjFv1Ojx5/8EjLjFsDiEPrGiyXVA d6+SmAPqCvYnAmNcgzwGtvhDAEp4vr2E2sNtAM5JPtkSEQS7f01i8ZbWd4ctKwUOnyxe 9lkZKYXkN5cOgMPSmxpoIUPiK8r5vreOs2l8zQ4+fZMkuDo2d48hfT9DCmyxU8jBzWAe GuHcpZsAYm7OOg0InjhQXBfWa5uDJw9F+/hicmj4l8JdqTCmzT+USrd49FWysAiqCoBz KgGvccesx1VFfJt/nwU3FcxalcMnhLNGgeMIRBt9yGXpXQI/31sA+LxwM1skUepQ7D68 LoDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BS5MJiT5HrdcX3ERI95iiVbRC6UTS1Yq0TpvT2OvyNg=; b=ZdvfSwVVn4V4qmvxzXQHsUN6pfsZNRvBQ/ioGWOVzf6iRdTl9ttoJbS9eeZZtz5DAx wnysIqdOTtWWS2fZX62QHAJfbnc2IcDk/X6Xo6ekpogk4JvJ7BSD+Z3FABqjcC7fcMYC l9IuWA++7j5euaetVMOE6i+y9JJCiteNF6NaX8UFhh0THlTl6SlI/xlVcjh4U/Ti7l/2 OAPZ/7c5skTg6R4K3lJ5LZObLWN76NVK+tc2SGXKoZ22srASoI2KNQGiUlwOLH9rQhmb oU0vqO4IUa5RgW93VVh7KbplL4gn+OJt+1v9mBaFeoMzgt7wDsndbYFB4Tmg8GHSV/me 4auA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=yJNjghie; 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 m9si23793803pgv.559.2019.04.26.15.03.43; Fri, 26 Apr 2019 15:03:59 -0700 (PDT) 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=fail header.i=@lunn.ch header.s=20171124 header.b=yJNjghie; 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 S1727055AbfDZWCv (ORCPT + 99 others); Fri, 26 Apr 2019 18:02:51 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46217 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbfDZWCv (ORCPT ); Fri, 26 Apr 2019 18:02:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BS5MJiT5HrdcX3ERI95iiVbRC6UTS1Yq0TpvT2OvyNg=; b=yJNjghie4ikHXySQNMVKjndVHE rv1NmCt7iT45nhais9PC7Tz8u7Jvg4rS1TgRVnl6qwd6KRVys40o1P9kB1Ha8txSUrgBeTGoXKF9S BE3k8Gkw8gcQVHz2BRVNKlnIVvIY1xCVIjuizm4LJirqC0Rhl2Rjy33JYKzI7CejzILg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hK8vK-0005ys-RR; Sat, 27 Apr 2019 00:02:26 +0200 Date: Sat, 27 Apr 2019 00:02:26 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: Esben Haabendal , netdev@vger.kernel.org, "David S. Miller" , Michal Simek , Yang Wei , YueHaibing , Luis Chamberlain , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/12] net: ll_temac: Fix support for 64-bit platforms Message-ID: <20190426220226.GW4041@lunn.ch> References: <20190426073231.4008-1-esben@geanix.com> <20190426073231.4008-4-esben@geanix.com> <20190426114013.333e62c8@cakuba.netronome.com> <20190426205912.GI4041@lunn.ch> <20190426140856.78b786ee@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190426140856.78b786ee@cakuba.netronome.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 02:08:56PM -0700, Jakub Kicinski wrote: > On Fri, 26 Apr 2019 22:59:12 +0200, Andrew Lunn wrote: > > On Fri, Apr 26, 2019 at 11:40:13AM -0700, Jakub Kicinski wrote: > > > On Fri, 26 Apr 2019 09:32:22 +0200, Esben Haabendal wrote: > > > > The use of buffer descriptor APP4 field (32-bit) for storing skb pointer > > > > obviously does not work on 64-bit platforms. > > > > As APP3 is also unused, we can use that to store the other half of 64-bit > > > > pointer values. > > > > > > > > Contrary to what is hinted at in commit message of commit 15bfe05c8d63 > > > > ("net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit") > > > > there are no other pointers stored in cdmac_bd. > > > > > > > > Signed-off-by: Esben Haabendal > > > > > > This is a bit strange, the driver stores the host's virtual address into > > > the HW descriptor? Lets try that again Hi Jakub > > Hi Jukub > > I need to start keeping track of all the ways my name gets spelled :) > I find it entertaining :) Sorry. And i prefer entertaining over offended :-) > > This is reasonably common. You need some sort of cookie which links > > the hardware descriptor to the skbuf it points to. The hardware makes > > no use of it, it is just a cookie. > > Right, but accesses to HW descriptor memory ring are significantly > more expensive, especially on platforms which are not coherent with > DMA operations (everything but x86?) > > A preferable design is to have two descriptor rings - one for HW > descriptors and one for software context, no? Modern drivers do that. But this driver seems to be quite old. And if you look at what it is used on, PPC & MICROBLAZE, they are old architectures, i don't think hardware access are that as expensive as for modern architectures. Andrew