Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp767649ybl; Fri, 10 Jan 2020 06:25:16 -0800 (PST) X-Google-Smtp-Source: APXvYqywNuoawKgTYGb/4TWJjz4vlOzn96APy6ucLdqnoNyyYMXJqfhvhYTCy2RV6xr8q711rMwq X-Received: by 2002:a9d:74c4:: with SMTP id a4mr2903665otl.119.1578666316721; Fri, 10 Jan 2020 06:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578666316; cv=none; d=google.com; s=arc-20160816; b=ANUtw1Yy61z37nlL5yIFHHCqWx2BWmvTbi20/QlFjskTxNVzpo40G8Mj6E1L12PbdW xcDu0sl57eq45vY+b0xOJTnlusP7Y8go7G3Z5c5Bm6yCoNfibWDcLsnGORY3qLxwHf74 wIwaD2QGmRcAznDMI2pVgNqEXzLvue3nRl7nRTEkVdeLaOGjGyiox178wP6Hvg/g26Lx h3nMcHvNPKN5oad454T1i493nItdolFMw7JDffzyJ7Ki/wv4QXfQy9TRiUFcUhDOmMj7 XZFt30LJIeQSxXbyY6AWR8xhS/lftiXsnioue8dYdpKAxhrnbvpaXehoMk5yyzZ16H5K eSpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/LqUWTGBt5gIEmNEJ7QzFyPyiWRNbMxwiltxq0x8igc=; b=u6v1sOsHzODMsMfHKGfh0s10Io4VB2CAJmdxGqqS10e7FjuuNCVHQ3SiTWhA0Ek0uY quV2ABXPCdLNvs7xSJRNeZRFjxkjd5TWXIBvOIgkF1t1v/8829Z+bP9ZzIxcmBnzwwWL x1Nn/NiXbDwgScg8wHcgOBLHx/mIqfMcN1L1gz2Ro6msPmc4UJyPROCoraEK6uW5ymLA PSOCaR+6pabmvjYwOghV4q3ddiun+hZIQxBD8uKaPLOsLJItAjLKuyFZCY5Az8TQcXCA sv/1HE3Zp+TifC2r/ijaupWJGBivYqp51BGkWjEeJGRiVSof6nj6EL0XOFsNyLuL1U8C +n/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Gp+lCFbh; 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 c21si1404483otr.223.2020.01.10.06.25.04; Fri, 10 Jan 2020 06:25:16 -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=fail header.i=@lunn.ch header.s=20171124 header.b=Gp+lCFbh; 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 S1728141AbgAJOW6 (ORCPT + 99 others); Fri, 10 Jan 2020 09:22:58 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:59604 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727803AbgAJOW6 (ORCPT ); Fri, 10 Jan 2020 09:22:58 -0500 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=/LqUWTGBt5gIEmNEJ7QzFyPyiWRNbMxwiltxq0x8igc=; b=Gp+lCFbhq8KoEC210hcrrMI+wF 0JmIiELjl9bsPWXOe+seRjm5/SPB27amgsTcYWk3K7slz6nTL7Ap4HOtQKZQxxSen6qMer/4I6JEo yAvQ+UulpPXYSX6w61WiKyIYOL/UICkN8rDzumQnp6aSzIjQp9ojDzMowUF4uRGZOLNk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1ipvBa-0007bd-5w; Fri, 10 Jan 2020 15:22:50 +0100 Date: Fri, 10 Jan 2020 15:22:50 +0100 From: Andrew Lunn To: Andre Przywara Cc: "David S . Miller" , Radhey Shyam Pandey , Michal Simek , Robert Hancock , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/14] net: axienet: Autodetect 64-bit DMA capability Message-ID: <20200110142250.GH19739@lunn.ch> References: <20200110115415.75683-1-andre.przywara@arm.com> <20200110115415.75683-13-andre.przywara@arm.com> <20200110140852.GF19739@lunn.ch> <20200110141303.2e5863ab@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110141303.2e5863ab@donnerap.cambridge.arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 02:13:03PM +0000, Andre Przywara wrote: > On Fri, 10 Jan 2020 15:08:52 +0100 > Andrew Lunn wrote: > > Hi Andrew, > > thanks for having a look! > > > > To autodetect this configuration, at probe time we write all 1's to such > > > an MSB register, and see if any bits stick. > > > > So there is no register you can read containing the IP version? > > There is, and I actually read this before doing this check. But the 64-bit DMA capability is optional even in this revision. It depends on what you give it as the address width. If you say 32, the IP config tool disables the 64-bit capability completely, so it stays compatible with older revisions. > Anything beyond 32 will enable the MSB register and will also require you to write to them. So you are saying there is no way to enumerate the synthesised configuration of the IP. Great :-( Do Xilinx at least document you can discover the DMA size by writing into these upper bits? Does Xilinx own 'vendor crap' driver do this? Thanks Andrew