From patchwork Wed Feb 27 08:55:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10831453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 977E01390 for ; Wed, 27 Feb 2019 08:57:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82DDD2B002 for ; Wed, 27 Feb 2019 08:57:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74EDB2C162; Wed, 27 Feb 2019 08:57:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 290BE2B002 for ; Wed, 27 Feb 2019 08:57:30 +0000 (UTC) Received: from localhost ([127.0.0.1]:40442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyv1t-0008Vy-Dj for patchwork-qemu-devel@patchwork.kernel.org; Wed, 27 Feb 2019 03:57:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyv0W-0007KO-Tj for qemu-devel@nongnu.org; Wed, 27 Feb 2019 03:56:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyv0W-0007fn-1E for qemu-devel@nongnu.org; Wed, 27 Feb 2019 03:56:04 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:55899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyv0V-0007bH-88 for qemu-devel@nongnu.org; Wed, 27 Feb 2019 03:56:03 -0500 Received: by mail-wm1-x344.google.com with SMTP id q187so4982896wme.5 for ; Wed, 27 Feb 2019 00:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FopHSllA/hJIE1pkyeGcW7evcqRo66mO6n0qNpC0Omk=; b=cHhsCG1+YdIJ7Uf+0hr5IHMmwJlerJhhSLRrMBPQ/9glAMrecS0KOeN8klUhb5sQ9q VjpIeDoQaTIlc4pqV63auOhFvIljX30jI2xenNrt9kIFi32CS18eJQGNnZxKZSe2fp9c dQPGT0gKURMChhNBa2mLA/osVMjwKbWwSHcLyxZNd13o3pDkfIgLdOYcTBi/AFQv4xGu QlZVo0LpiLmduuQzjDl8+gj2enCB7NDyOn0FczbsjBooo4ya7nzrqIXEWGs0llfPaSaG Fs7J6kS68j1SFZ5i4UI4rlJeCkilAQUknhiFMe9xHPVc1kPUOkKc0sg/Iqm1vV2QF4id pvVA== 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:mime-version :content-transfer-encoding; bh=FopHSllA/hJIE1pkyeGcW7evcqRo66mO6n0qNpC0Omk=; b=C0UtvNUXuAYtqaU6CkTSGlwd2mWQqIbIuTpBZyR5zs509LCXRaL9wobOuGnGY1PHeL Yi1MIX2ZnRsN9qPYI0jRvy3kXCQIbdAPYsfT9zo/uso+FNTsMhYv1eY1+ZBzCjMf+z/U RNhbZ42O4SxYQcq9rpoWInhtmdm+tBSncKYx6hYbOjuDUVVAoogdYJfZZfq2XK2QvF7n YMthdZpinEoZC2dXzFsOPPz0Hrlvtnv45aQdoZ7zN+vDKX4cdgthMI4Fau7FJ2pH+PYH 6gXUcRnDblQdVP1SXwQTFUnazsN2tLTfVdev0ml2+VqipcRJzJPY+t/IW3o/yvFXt71R CbCA== X-Gm-Message-State: AHQUAubldnbiIm0+Luk2UtwWbNFFD0GLWVYW03lt2EGouYrAoTocBgdF RofS8CVt78KxFCHnYtSfiiqvxoiY X-Google-Smtp-Source: AHgI3IbXYHcUwTucShZmhXcZBlduZDi9AWsirJS+oacB9oKLxcthqX3tSuks52oPVzVW7OO3ui00xA== X-Received: by 2002:a7b:c0c3:: with SMTP id s3mr1402678wmh.141.1551257757334; Wed, 27 Feb 2019 00:55:57 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.220]) by smtp.gmail.com with ESMTPSA id v6sm23961230wrd.88.2019.02.27.00.55.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Feb 2019 00:55:56 -0800 (PST) From: Kamal Heib To: qemu-devel@nongnu.org Date: Wed, 27 Feb 2019 10:55:46 +0200 Message-Id: <20190227085546.23690-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH] hw/rdma: Fix the error prints in create_qp_rings() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kamal Heib , Yuval Shaia Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The prints should indicate that we are talking about QP and not CQ. Fixes: 98d176f8e592 ("hw/rdma: PVRDMA commands and data-path ops") Reviewed-by: Yuval Shaia Signed-off-by: Kamal Heib Reviewed-by: Yuval Shaia --- hw/rdma/vmw/pvrdma_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c index 21a55e225a61..8bc24e952073 100644 --- a/hw/rdma/vmw/pvrdma_cmd.c +++ b/hw/rdma/vmw/pvrdma_cmd.c @@ -374,13 +374,13 @@ static int create_qp_rings(PCIDevice *pci_dev, uint64_t pdir_dma, dir = rdma_pci_dma_map(pci_dev, pdir_dma, TARGET_PAGE_SIZE); if (!dir) { - rdma_error_report("Failed to map to CQ page directory"); + rdma_error_report("Failed to map to QP page directory"); goto out; } tbl = rdma_pci_dma_map(pci_dev, dir[0], TARGET_PAGE_SIZE); if (!tbl) { - rdma_error_report("Failed to map to CQ page table"); + rdma_error_report("Failed to map to QP page table"); goto out; } @@ -393,7 +393,7 @@ static int create_qp_rings(PCIDevice *pci_dev, uint64_t pdir_dma, sr->ring_state = (struct pvrdma_ring *) rdma_pci_dma_map(pci_dev, tbl[0], TARGET_PAGE_SIZE); if (!sr->ring_state) { - rdma_error_report("Failed to map to CQ ring state"); + rdma_error_report("Failed to map to QP ring state"); goto out_free_sr_mem; }