Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753491AbdFVQtv (ORCPT ); Thu, 22 Jun 2017 12:49:51 -0400 Received: from ale.deltatee.com ([207.54.116.67]:53859 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753442AbdFVQtZ (ORCPT ); Thu, 22 Jun 2017 12:49:25 -0400 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-ntb@googlegroups.com, linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Stephen Bates , Logan Gunthorpe Date: Thu, 22 Jun 2017 10:48:10 -0600 Message-Id: <20170622164817.25515-1-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-ntb@googlegroups.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org, arnd@arndb.de, gregkh@linuxfoundation.org, sbates@raithlin.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH 0/7] cleanup issues with io{read|write}64 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: 1795 Lines: 45 Hi, Presently, the 64bit IO functions are not very usable in drivers because they are not universally available in all architectures. This leads to a bunch of hacks in the kernel to work around this. (See the last 3 patches in this series.) As part of my switchtec_ntb submission which added another one of these warts, Greg asked me to look into fixing it[1]. So this patchset attempts to solve this issue by filling in the missing implementations in iomap.c and io.h. After that, the alpha architecture is the only one I found that also needed a fix for this. Finally, this patchset removes the hacks that have accumulated in the kernel, thus far, for working around this. This set is based off of v4.12-rc6. Thanks, Logan [1] https://marc.info/?l=linux-kernel&m=149774601910663&w=2 Logan Gunthorpe (7): drm/tilcdc: don't use volatile with iowrite64 iomap: implement ioread64 and iowrite64 asm-generic/io.h: make ioread64 and iowrite64 universally available alpha: provide ioread64 and iowrite64 implementations ntb: ntb_hw_intel: remove ioread64 and iowrite64 hacks drm/tilcdc: clean up ifdef hacks around iowrite64 crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64 arch/alpha/include/asm/io.h | 2 ++ arch/alpha/kernel/io.c | 18 +++++++++++ arch/powerpc/include/asm/io.h | 2 ++ drivers/crypto/caam/regs.h | 29 ----------------- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 8 +---- drivers/ntb/hw/intel/ntb_hw_intel.c | 30 ----------------- include/asm-generic/io.h | 54 ++++++++++++++++++++++++------- include/asm-generic/iomap.h | 4 --- lib/iomap.c | 62 ++++++++++++++++++++++++++++++++++++ 9 files changed, 127 insertions(+), 82 deletions(-) -- 2.11.0