Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754723AbdFXPcL (ORCPT ); Sat, 24 Jun 2017 11:32:11 -0400 Received: from ale.deltatee.com ([207.54.116.67]:60785 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751338AbdFXPcJ (ORCPT ); Sat, 24 Jun 2017 11:32:09 -0400 To: Richard Henderson , linux-kernel@vger.kernel.org References: <20170624115707.30095-1-horia.geanta@nxp.com> <20170624151308.6348-1-rth@twiddle.net> <787b4be1-ce9e-6838-27b6-0cd9f8d7805f@twiddle.net> Cc: linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, Ivan Kokshaysky , Matt Turner From: Logan Gunthorpe Message-ID: <721fd59b-b807-86bf-a39c-bab0b33c57c0@deltatee.com> Date: Sat, 24 Jun 2017 09:32:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <787b4be1-ce9e-6838-27b6-0cd9f8d7805f@twiddle.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.191.165 X-SA-Exim-Rcpt-To: mattst88@gmail.com, ink@jurassic.park.msu.ru, linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, rth@twiddle.net X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH] alpha: provide ioread64 and iowrite64 implementations X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 33 On 24/06/17 09:25 AM, Richard Henderson wrote: > On 06/24/2017 08:19 AM, Logan Gunthorpe wrote: >> Hey, >> >> On 24/06/17 09:13 AM, Richard Henderson wrote: >>> All Alpha hosts except for Jensen provide 64-bit I/O operations. >>> >>> Jensen is EISA only, so there ought not be any devices that even >>> attempt such operations. But just in case, use 2 32-bit operations. >> >> Thanks for this, Richard. >> >> However, I was recently enlightened by the existence of the >> linux/io-64-nonatomic* headers. This is where the 2 32-bit operation >> functions belong. So you should probably remove them from this patch and >> let drivers that need them just include those headers. > > This has nothing to do with drivers. > > This is all about providing 64-bit operations for the 99.999% of alphas > that do have them. As per the discussion with Arnd and Alan, that's not what they want. Arches that have native 64bit operations should supply them. For drivers that want to use them in the presence of arches that don't supply them, they simply include one of the linux/io-64-nonatomic helper headers. So, IMO, the Jensen inq and outq funtions in your patch, which I did read, should probably just not be provided. Logan