From patchwork Sat Aug 19 20:09:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13358665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2412EE49BC for ; Sun, 20 Aug 2023 00:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbjHTALD (ORCPT ); Sat, 19 Aug 2023 20:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjHTAK1 (ORCPT ); Sat, 19 Aug 2023 20:10:27 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F25474BCC51 for ; Sat, 19 Aug 2023 13:21:13 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-34baeb01942so7288135ab.1 for ; Sat, 19 Aug 2023 13:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1692476473; x=1693081273; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=s1ui7O46hWbFDr29VqhtNg/xYvDzeu38QRvBP+oeVBg=; b=H7hn8k0MvuRatBfb+I5q6gtSuRs5mssfao1W4rYE0CIFQkmnCj+IL8JjEgUnCfrrz0 KQnBPeBEw+7wo88jrmXn2SLYpkAggKfj6GuxuwYQs4z5SDZYkT464dVQ4Poi6gktIOgM mHJCo7SgQxRQSQYsC1QuiP4SE+PwVoXWy0d7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692476473; x=1693081273; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s1ui7O46hWbFDr29VqhtNg/xYvDzeu38QRvBP+oeVBg=; b=MUqpEI1jiEycMIgGamZ2RCpcixkWjfS9ww6uTsxx8XiZprb2tuLN3Ct9Fwb7qGUb9U 42eSPcfChN8KI7bqXyuX2d+AADwUg1gPcbePEMpP4Nrd0+W1+47ayX4AflDEitw7FVEC JOXsUctsUJ35w/6mE3b2EgvWoTWOuTnBqLwrZvIa09MH06WJQLQg9F5Y1TGOlJtUo8yF lilT2caH1syMI/t2yvwC77IzDT00owsB3ybJx6nR2j2o6f7lZjcqZn6gWUneJ4gaz/Qg eH/CRT/uWNpBQ1ORmQ07EnSh8N+/2Fa9z5vqLgyQrm10qPTAWS3wgM56vE8rBG+q9VlZ hhaA== X-Gm-Message-State: AOJu0YwdjDpgYZxTGbSQxWgY3lyQTFnbAugz9z1Kh7POdnRUO4WQHgPU 9n5/kUBjdgD833EcA8JKbEtK5w== X-Google-Smtp-Source: AGHT+IFF52nw8Un9vpAa7JYpF69bwmtmPb9ZlTl9lEkzOQOlNahszyb3fV4O2oh0jDIqak5ThqCUrQ== X-Received: by 2002:a05:6e02:14d:b0:34c:98b9:36fd with SMTP id j13-20020a056e02014d00b0034c98b936fdmr3310226ilr.13.1692476473238; Sat, 19 Aug 2023 13:21:13 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d4-20020a170903230400b001b9de2b905asm4015506plh.231.2023.08.19.13.21.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Aug 2023 13:21:11 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Kashyap Desai , Selvin Xavier Subject: [PATCH for-next v2 1/2] RDMA/bnxt_re: Initialize mutex dbq_lock Date: Sat, 19 Aug 2023 13:09:26 -0700 Message-Id: <1692475767-2626-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Kashyap Desai Fix the missing dbq_lock mutex initialization Fixes: 2ad4e6303a6d ("RDMA/bnxt_re: Implement doorbell pacing algorithm") Signed-off-by: Kashyap Desai Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index f34ce49..061a89b 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -920,6 +920,7 @@ static struct bnxt_re_dev *bnxt_re_dev_add(struct bnxt_aux_priv *aux_priv, rdev->id = rdev->en_dev->pdev->devfn; INIT_LIST_HEAD(&rdev->qp_list); mutex_init(&rdev->qp_lock); + mutex_init(&rdev->pacing.dbq_lock); atomic_set(&rdev->stats.res.qp_count, 0); atomic_set(&rdev->stats.res.cq_count, 0); atomic_set(&rdev->stats.res.srq_count, 0);