Received: by 10.213.65.68 with SMTP id h4csp474377imn; Fri, 16 Mar 2018 08:52:06 -0700 (PDT) X-Google-Smtp-Source: AG47ELs2Wbm/O80czKHVZfIiAFnsyIWvFNOpBJxU8Nfb6d4eVo9dis8i/s0n9ge5Dqo8RjbJtokY X-Received: by 10.101.98.137 with SMTP id f9mr1825699pgv.6.1521215526277; Fri, 16 Mar 2018 08:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215526; cv=none; d=google.com; s=arc-20160816; b=LgVKwVa4ZJmZV3lSZq1wTtF5ZC4LH6QdtWL4vC3OVOBk3d8Dmq8P2gBHxdCbdy9qo9 oO/C8QGQZ8GsAjSgRwkU6J+YFbjlmWduj4RSEyAXlPMnx+aWdqFxiYBWAAi1v11Qu3e+ c59YsC+qecq/PQifyfgB7mryPPHw21XxzAMBUvKymABGFlVuZYN6746D0/dBUkTKFHCN BWjokQZRWqh80TkrNTn5EVIfTKInim/HA0mdp0d0+3SL/s96ilITnoLZCiWf4Yhdgn/j eJuYHNDqAJZsnxOdVNEQ/vIiToiup+IL89RSqxgpC7HlFYEfav3haJbVnrLU9jrnyNex 8AGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=b2R3K1MGR381zb/JEvhh3b8EdrG078tvQ3ZdSFBFOHM=; b=C4ewrRhFy1eV+tbNJTic5uKK3wq9wK2DjTAMVhUF2g7ASdvRVZ2O1Mmef7+Aqx7ITp lnTx4QinCdABJtpZ+BtaEclv0Se44OLN4sw1wii3uxMuLM6VvlSFlhTpnYR3HQgxsZ4f hF+k3itYLGRy2tXcoMpxbEHXGadzaL3RViCzn6WF6wyf5Qrj1FovazLKogut7d9Ojo5E QKEoTS/KQPLnqPGiYvjXLzhhTsCfpPg8NyZOCapUwSlhfaol/ljLIj/JCAuktPuDkaSI /QFy0NjLHzVvEMlg6JdQpZcuMbTinjZ3TrooapXctQQZxvFkLhRpMqzL/imLX+OBLgEq pQuA== 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 p66si4864781pfk.100.2018.03.16.08.51.52; Fri, 16 Mar 2018 08:52:06 -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; 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 S965363AbeCPPtF (ORCPT + 99 others); Fri, 16 Mar 2018 11:49:05 -0400 Received: from ale.deltatee.com ([207.54.116.67]:54490 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933817AbeCPPtA (ORCPT ); Fri, 16 Mar 2018 11:49:00 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewrbG-0003pi-25; Fri, 16 Mar 2018 09:48:58 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1ewrbF-0003SA-TH; Fri, 16 Mar 2018 09:48:57 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-ntb@googlegroups.com, linux-crypto@vger.kernel.org, Greg Kroah-Hartman Cc: Arnd Bergmann , Andy Shevchenko , =?UTF-8?q?Horia=20Geant=C4=83?= , Logan Gunthorpe Date: Fri, 16 Mar 2018 09:48:50 -0600 Message-Id: <20180316154852.13206-8-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316154852.13206-1-logang@deltatee.com> References: <20180316154852.13206-1-logang@deltatee.com> X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-crypto@vger.kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de, andy.shevchenko@gmail.com, horia.geanta@nxp.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, MYRULES_NO_TEXT,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 Subject: [PATCH v12 7/9] ntb: ntb_hw_intel: use io-64-nonatomic instead of in-driver hacks X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that ioread64 and iowrite64 are available in io-64-nonatomic, we can remove the hack at the top of ntb_hw_intel.c and replace it with an include. Signed-off-by: Logan Gunthorpe Reviewed-by: Andy Shevchenko Acked-by: Dave Jiang Acked-by: Allen Hubbe Acked-by: Jon Mason # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Mon Jun 19 12:18:31 2017 -0600 # # interactive rebase in progress; onto ae64f9bd1d36 # Last commands done (6 commands done): # pick cf3e4dab2173 io-64-nonatomic: add io{read|write}64[be]{_lo_hi|_hi_lo} macros # r 79b4c4b8490c ntb: ntb_hw_intel: use io-64-nonatomic instead of in-driver hacks # Next commands to do (2 remaining commands): # r 19b6c1f3b15d crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64 # r f3c8723446ef ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header # You are currently editing a commit while rebasing branch 'io64_v9' on 'ae64f9bd1d36'. # # Changes to be committed: # modified: drivers/ntb/hw/intel/ntb_hw_intel.c # --- drivers/ntb/hw/intel/ntb_hw_intel.c | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/drivers/ntb/hw/intel/ntb_hw_intel.c b/drivers/ntb/hw/intel/ntb_hw_intel.c index 156b45cd4a19..5cf40ab21366 100644 --- a/drivers/ntb/hw/intel/ntb_hw_intel.c +++ b/drivers/ntb/hw/intel/ntb_hw_intel.c @@ -59,6 +59,7 @@ #include #include #include +#include #include "ntb_hw_intel.h" @@ -149,35 +150,6 @@ MODULE_PARM_DESC(xeon_b2b_dsd_bar5_addr32, static inline enum ntb_topo xeon_ppd_topo(struct intel_ntb_dev *ndev, u8 ppd); static int xeon_init_isr(struct intel_ntb_dev *ndev); -#ifndef ioread64 -#ifdef readq -#define ioread64 readq -#else -#define ioread64 _ioread64 -static inline u64 _ioread64(void __iomem *mmio) -{ - u64 low, high; - - low = ioread32(mmio); - high = ioread32(mmio + sizeof(u32)); - return low | (high << 32); -} -#endif -#endif - -#ifndef iowrite64 -#ifdef writeq -#define iowrite64 writeq -#else -#define iowrite64 _iowrite64 -static inline void _iowrite64(u64 val, void __iomem *mmio) -{ - iowrite32(val, mmio); - iowrite32(val >> 32, mmio + sizeof(u32)); -} -#endif -#endif - static inline int pdev_is_xeon(struct pci_dev *pdev) { switch (pdev->device) { -- 2.11.0