Received: by 10.223.176.5 with SMTP id f5csp1731080wra; Sun, 28 Jan 2018 07:12:53 -0800 (PST) X-Google-Smtp-Source: AH8x227UNYJEsxaqAqL5KgFATvgMUloDbsMPqco7uNvIuWP6aOX8YJu0M/hrVvw7gR/ZDsjvtBLG X-Received: by 2002:a17:902:6683:: with SMTP id e3-v6mr19016794plk.22.1517152373844; Sun, 28 Jan 2018 07:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517152373; cv=none; d=google.com; s=arc-20160816; b=fMP/gc+o5xqrNClQ2QNAl4bfeELej3AD2cCj9Q/zbPT9NkW9164RFNclR2HCM79Nx3 NqrzCSnxxvSugVAAg3xbxJI8zzD/xIGIlozLHOV2pkLLPltWIuLDhMD4DttVLfr1D6cN oVgJNo+b66x+uiu15PIfYT7pA6fQ3iiHCfyDl/GCTxAci5efqCCRGopia57N2MS6JVTS 2RYyBmd0iEuISvrtB5XgMd4rTATB5P+n7LgiunwCf5MiwQlrK+I286tXomYkacVHgiI1 HoGRhHd5/91RVYgsepaKIhHsEHwTqoRDL+1G0qRL5wD8LEQNAvfwIWzeruq9EiYwTo+I 5DyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=sueY5ZvknFcjo8wgYXbx/79cUWujB6WIF2DBxMtvh2o=; b=o4y+33GhUCfPZ47d1i0f6x8EsTn/BgY244R9gJE11hMwiYUyQUxkov6TT57dNwxbQw ynoFRjMkBtXYSB3v9NgBghBQH3qEfiOS3geeZkXEtx+Ct+4qy1WoqDxn8tQx8oThUrBa I63///2YDAud5iRp3xrtLVCIrbxnbe5IKUjKjUNGrIV7vKCtDWAURjLoHF+gYkRSyr/c Pqwny5IZ6m2srEZ0pA+tpYKcuuSUelPpzan6rdZvkb48hoi8ixWgCABJW9VSQIA9wdDf kq/AG1cxMXffnBJE5TjPF0VrdOQ/XkfM91y8bd0XH5jClk4Pz6/Bzw8cuusCOuyfqXOC KYag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xrxbnCzq; 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 v2si5876635pgq.213.2018.01.28.07.12.36; Sun, 28 Jan 2018 07:12:53 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xrxbnCzq; 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 S1752022AbeA1PLi (ORCPT + 99 others); Sun, 28 Jan 2018 10:11:38 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43772 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbeA1PLg (ORCPT ); Sun, 28 Jan 2018 10:11:36 -0500 Received: by mail-wr0-f194.google.com with SMTP id t16so4506727wrc.10 for ; Sun, 28 Jan 2018 07:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=sueY5ZvknFcjo8wgYXbx/79cUWujB6WIF2DBxMtvh2o=; b=xrxbnCzqYtrSlxZ9CJhjWFLY0MJHK96XrkGnZxIN+cTTbEagtsGnaSwt0a2ynNVGvv 3s+B6RagF5xyYgaqB9LG0VpHehCrgxQRDpVSUW/MJp8Iid+TpddmpiMouLexC7WZlx71 vG99Mc37eRAotj8U99pg/KdH1luc8n7MnG0FiBNQY/gtgH/MxlNF/wAotVit6F+xR2Ih M3R3ve/Oyw8U9yXqw5hxSd3suSRV+xx66KrzGwuEGJtL77LeHdI8Xro5vX5KKrvAQZav xDSLuGCC5fSAP+JuK+b37zCIqDi/KvCQXJ5cBJJhXP7v2+68AeDIIBPbhRrA1r2lyRYZ 1J/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sueY5ZvknFcjo8wgYXbx/79cUWujB6WIF2DBxMtvh2o=; b=ctEj61r2xqODHj17iFWpuXTv89ge1kVPtg7uKc3x1i0YEEeLa4OBePP4ekj2VIYQte uAQ/lB6qP1fnXitftk/JIkRUbn1zAenJc1UsEUi4Y0Udpmk/wjqh1l5ZeStEv4Wk0FML 3jb/jMVsuTpsd2CbKwbE3BmEndv6kNSTFCUhf010XCkvvMxfgupHkznXMkad6xGEdL+i tczZU9o54Yq83dw1bLpJVKJ9btSNO5xOJdL9ifiq832Yftgb0IkvOdSVbJsVszwJfuHP V4fXem68NimCe5a59jliyzaAkGOLNUqpmO06xmh1smLFVfdhye04a9USti3EXq1z3g55 CM9A== X-Gm-Message-State: AKwxytcZpzs3Y3lXq0MbczQWIQ8JxH4VlbA/CcY3dYYfD/cGQRBDxLnJ xz20QvW+q2Zv/sTcU6VQChywjQ== X-Received: by 10.223.175.34 with SMTP id z31mr1911894wrc.35.1517152295242; Sun, 28 Jan 2018 07:11:35 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id 204sm10340942wmx.0.2018.01.28.07.11.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 07:11:34 -0800 (PST) From: Corentin Labbe To: dledford@redhat.com, hal.rosenstock@gmail.com, sean.hefty@intel.com, swise@chelsio.com Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Corentin Labbe Subject: [PATCH] IB/cxgb3: remove cxio_dbg.c Date: Sun, 28 Jan 2018 15:11:29 +0000 Message-Id: <1517152289-25052-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cxio_dbg.c is uncompiled since commit 2b540355cd2f ("RDMA/cxgb3: cleanups") 10 years after, we could remove it. Signed-off-by: Corentin Labbe --- drivers/infiniband/hw/cxgb3/cxio_dbg.c | 206 --------------------------------- 1 file changed, 206 deletions(-) delete mode 100644 drivers/infiniband/hw/cxgb3/cxio_dbg.c diff --git a/drivers/infiniband/hw/cxgb3/cxio_dbg.c b/drivers/infiniband/hw/cxgb3/cxio_dbg.c deleted file mode 100644 index 97dbe728520a..000000000000 --- a/drivers/infiniband/hw/cxgb3/cxio_dbg.c +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright (c) 2006 Chelsio, Inc. All rights reserved. - * - * This software is available to you under a choice of one of two - * licenses. You may choose to be licensed under the terms of the GNU - * General Public License (GPL) Version 2, available from the file - * COPYING in the main directory of this source tree, or the - * OpenIB.org BSD license below: - * - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * - Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. - * - * - Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS - * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN - * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -#ifdef DEBUG -#include -#include -#include "common.h" -#include "cxgb3_ioctl.h" -#include "cxio_hal.h" -#include "cxio_wr.h" - -void cxio_dump_tpt(struct cxio_rdev *rdev, u32 stag) -{ - struct ch_mem_range *m; - u64 *data; - int rc; - int size = 32; - - m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); - if (!m) - return; - - m->mem_id = MEM_PMRX; - m->addr = (stag>>8) * 32 + rdev->rnic_info.tpt_base; - m->len = size; - pr_debug("%s TPT addr 0x%x len %d\n", __func__, m->addr, m->len); - rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); - if (rc) { - pr_debug("%s toectl returned error %d\n", __func__, rc); - kfree(m); - return; - } - - data = (u64 *)m->buf; - while (size > 0) { - pr_debug("TPT %08x: %016llx\n", - m->addr, (unsigned long long)*data); - size -= 8; - data++; - m->addr += 8; - } - kfree(m); -} - -void cxio_dump_pbl(struct cxio_rdev *rdev, u32 pbl_addr, uint len, u8 shift) -{ - struct ch_mem_range *m; - u64 *data; - int rc; - int size, npages; - - shift += 12; - npages = (len + (1ULL << shift) - 1) >> shift; - size = npages * sizeof(u64); - - m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); - if (!m) - return; - - m->mem_id = MEM_PMRX; - m->addr = pbl_addr; - m->len = size; - pr_debug("%s PBL addr 0x%x len %d depth %d\n", - __func__, m->addr, m->len, npages); - rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); - if (rc) { - pr_debug("%s toectl returned error %d\n", __func__, rc); - kfree(m); - return; - } - - data = (u64 *)m->buf; - while (size > 0) { - pr_debug("PBL %08x: %016llx\n", - m->addr, (unsigned long long)*data); - size -= 8; - data++; - m->addr += 8; - } - kfree(m); -} - -void cxio_dump_wqe(union t3_wr *wqe) -{ - __be64 *data = (__be64 *)wqe; - uint size = (uint)(be64_to_cpu(*data) & 0xff); - - if (size == 0) - size = 8; - while (size > 0) { - pr_debug("WQE %p: %016llx\n", - data, (unsigned long long)be64_to_cpu(*data)); - size--; - data++; - } -} - -void cxio_dump_wce(struct t3_cqe *wce) -{ - __be64 *data = (__be64 *)wce; - int size = sizeof(*wce); - - while (size > 0) { - pr_debug("WCE %p: %016llx\n", - data, (unsigned long long)be64_to_cpu(*data)); - size -= 8; - data++; - } -} - -void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int nents) -{ - struct ch_mem_range *m; - int size = nents * 64; - u64 *data; - int rc; - - m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); - if (!m) - return; - - m->mem_id = MEM_PMRX; - m->addr = ((hwtid)<<10) + rdev->rnic_info.rqt_base; - m->len = size; - pr_debug("%s RQT addr 0x%x len %d\n", __func__, m->addr, m->len); - rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); - if (rc) { - pr_debug("%s toectl returned error %d\n", __func__, rc); - kfree(m); - return; - } - - data = (u64 *)m->buf; - while (size > 0) { - pr_debug("RQT %08x: %016llx\n", - m->addr, (unsigned long long)*data); - size -= 8; - data++; - m->addr += 8; - } - kfree(m); -} - -void cxio_dump_tcb(struct cxio_rdev *rdev, u32 hwtid) -{ - struct ch_mem_range *m; - int size = TCB_SIZE; - u32 *data; - int rc; - - m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); - if (!m) - return; - - m->mem_id = MEM_CM; - m->addr = hwtid * size; - m->len = size; - pr_debug("%s TCB %d len %d\n", __func__, m->addr, m->len); - rc = rdev->t3cdev_p->ctl(rdev->t3cdev_p, RDMA_GET_MEM, m); - if (rc) { - pr_debug("%s toectl returned error %d\n", __func__, rc); - kfree(m); - return; - } - - data = (u32 *)m->buf; - while (size > 0) { - printk("%2u: %08x %08x %08x %08x %08x %08x %08x %08x\n", - m->addr, - *(data+2), *(data+3), *(data),*(data+1), - *(data+6), *(data+7), *(data+4), *(data+5)); - size -= 32; - data += 8; - m->addr += 32; - } - kfree(m); -} -#endif -- 2.13.6