Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp756245ybl; Fri, 10 Jan 2020 06:14:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwxccsYwokuGa0xVQF4lwv6G0s0duTQ1bJCOok+qlTYnDc0TtDCdcsST4858605H60gO0or X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr2829449otq.274.1578665698962; Fri, 10 Jan 2020 06:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578665698; cv=none; d=google.com; s=arc-20160816; b=HSYYBCizLdTdw3xeSwBnlHIj3QlQf+/4tkoonkFXYPfYk/yuuxFwrnlI7Vu61l7/PN v7D/ZRGOQ7jNjpdRPJ41voTZWQjxiDk4qKkdHmoyHTFfb8G6a+4UNE+neK1hCaFAlOst y7kVd4aHr0f9sAWLlA7OvHPn69sV5WmF5OimL25SsgnJRCg2gkz62zmgjv8Q2AO61vUm qNSSfGusCcE9CbgnZI6NMEeB0k43eq//lsCOWnF7wBdocWHoa1pajdakjE7FzSMyiemt d/NpYirKJ6HbcP+zHeYvdooQUXrX1AwDskHb66WlYtjxnz6pq0h9ChiH2if6QPGvUk1p vC9Q== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=jnXJx/O7eV436jQDVxmIahIcGqrGAcVZ58/1A6RJTvY=; b=jcAb07xTYghHOMmgPPygrJtpQ0AU8VVMjYd/0gfHyiCnmolwaSJs2+NO5TsOcs8VOT dCbYnzJhqo0Xf4YsYJ+xrmfBawPq7G9wzxUeGUDH+tnQ8Zfir4tqyH1ozI1m6gdf3TYc YT3GQolDkSpdZhV7Gpq2bPyrwFLgsjhYWxod9+SS0KiBtCks/AFu2NiKmC1G/o0rIkgG P1Tyfq4To8aJLYsmpkeYCU7+NQRE8gJ/rEltXG16cfZL2/isJ7/xNmKnatrFGA+WdE3x ItK9DEupJe13pRmU3xFKyNnpiyU2Ruvt00bwaXhVwgMb5IX8mBGIKReJUZocnurZQEle oTbw== ARC-Authentication-Results: i=1; mx.google.com; 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 s128si1116532oig.204.2020.01.10.06.14.47; Fri, 10 Jan 2020 06:14:58 -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; 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 S1728167AbgAJONJ (ORCPT + 99 others); Fri, 10 Jan 2020 09:13:09 -0500 Received: from foss.arm.com ([217.140.110.172]:45160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbgAJONJ (ORCPT ); Fri, 10 Jan 2020 09:13:09 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E075B328; Fri, 10 Jan 2020 06:13:08 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B292E3F534; Fri, 10 Jan 2020 06:13:07 -0800 (PST) Date: Fri, 10 Jan 2020 14:13:03 +0000 From: Andre Przywara To: Andrew Lunn 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: <20200110141303.2e5863ab@donnerap.cambridge.arm.com> In-Reply-To: <20200110140852.GF19739@lunn.ch> References: <20200110115415.75683-1-andre.przywara@arm.com> <20200110115415.75683-13-andre.przywara@arm.com> <20200110140852.GF19739@lunn.ch> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Andre