Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1092268yba; Fri, 26 Apr 2019 14:00:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzypAJtCg07ftrC3Lenx9+qwnwGk2Pqf9LIhbK4qe1f60bd8dHH/kMXB3DrzS/yp5ZYFzZa X-Received: by 2002:aa7:92d1:: with SMTP id k17mr49634102pfa.91.1556312449261; Fri, 26 Apr 2019 14:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556312449; cv=none; d=google.com; s=arc-20160816; b=ntrP1bn5s6NiCai6rt6jUDnDniHOrvk7h63AtFS9hUlSlhksx13GSDvzDhSOBpZV4c YOMP156CYvAKBuRV2rx8xBt85zkfA0F5bGabARsWHEfrTCmVVNFYhcXQfWPiGB+Muhc3 a/OUR1qs/Jcrl7c2OWq9jSxUA3122zX01UqPh/4dBii6+yt/SVbpMMKcCVUsfK0LqTdg heVFN9hSMxgDBQNEqLk6IyH7BrzMPQPMO2viQND8+LEEK4d+zYL7QYrmpcp4cVbLHR8L 7fBuEUltrpP3Z+v7uWGE1g1Q4VsO/dQiIQH5jBomKplC4KvgiF0eIh3l4a6rIudKdyWS ZIXw== 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=OCh7hT70whp/+unoMK2jqCVOcBFEvfKRG5b+VUOJD2I=; b=X5EBoX2kmNie4IZlCWCndch5H9A0m5DiE/c336Gi15F40fMqQCo9DXNpNiGiHfm/EK WLnaexzQETd/dw9Qs0CozxxNIZxVHJAyB/os3ltyRqxnacgheI+4ptGd8y0RISZcUeny a8t2aSLg46L7KQUymyUipwQtxy0UCHRW1QtE93FS4JWAzsQ4NvE7BLluszkDx3qo6J2L G0ajl1dFOeb2bbIbZScNgZikOiTTx2C1X+GmadotrgShk2L7NGgB2a/SWfXCl2q2v0ht LoXjuHh9V/JWIradg00Xfcdv6kABFABvfxV2dXThO53VeUZkElwYSpdDb8JBk0oIf79X 2BFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=1CU5hz3n; 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 y5si26222986pfm.191.2019.04.26.14.00.32; Fri, 26 Apr 2019 14:00:49 -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=1CU5hz3n; 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 S1726824AbfDZU7h (ORCPT + 99 others); Fri, 26 Apr 2019 16:59:37 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46043 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfDZU7h (ORCPT ); Fri, 26 Apr 2019 16:59:37 -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=OCh7hT70whp/+unoMK2jqCVOcBFEvfKRG5b+VUOJD2I=; b=1CU5hz3nVs7ef8TMlXNAhWk/KB Vj2QqJiBl+W/gF58XyYvADOZDqrxI3rRwOJkNmnxn1f+4jFw6p00hkERkOWbAnIDt1iwvAumCTd5q Mjb48qJv4PHQhJctGvPCQIj/cav01dzGvhmBQTXpQSAb6Pt5h3oDcwjCAnLclCs+pJvY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hK7w8-0004ty-B9; Fri, 26 Apr 2019 22:59:12 +0200 Date: Fri, 26 Apr 2019 22:59:12 +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: <20190426205912.GI4041@lunn.ch> References: <20190426073231.4008-1-esben@geanix.com> <20190426073231.4008-4-esben@geanix.com> <20190426114013.333e62c8@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190426114013.333e62c8@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 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? Hi Jukub 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. Andrew