From patchwork Mon Aug 14 17:00:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13353117 X-Patchwork-Delegate: leon@leon.nu 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 21D4AC04A94 for ; Mon, 14 Aug 2023 17:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjHNRMP (ORCPT ); Mon, 14 Aug 2023 13:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjHNRMC (ORCPT ); Mon, 14 Aug 2023 13:12:02 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60E0F10F for ; Mon, 14 Aug 2023 10:11:59 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so3502251a12.1 for ; Mon, 14 Aug 2023 10:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1692033119; x=1692637919; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Cq0Q6dNr40nu816cGfuh+G1veEq9TGLTxAQVspqYrI0=; b=MVI0k9ZxesyGddZi5h7b5369WdQIP0M268WstJolzsEePZveapTIBD8Fx7ezoi4OD9 3P92Exoh/k4kwnaeT9ioDl/N9uZUnFLfsrgkWpdXlHjC1Tinx8LJIFSzrwGb+Yg7db+1 oZUt3oWceszv5bbFycGC2Pkljnuaz+jqK/Cys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692033119; x=1692637919; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cq0Q6dNr40nu816cGfuh+G1veEq9TGLTxAQVspqYrI0=; b=bFIfYKsKfpQ8w8i+xXhP0mHyWVJOhR2VO4ZOK9Uv3UD7xtsShTkkslTPjiVO1V12VM cl2YGJvp9Nv43rDVjbHY3pKnajFvfNANlax4nfqGs3dZuCHmtyfi2Y+ZlwAg1QIN+gGR Qmx/UaSet9Q6PWCBpSTwm/fvG7NylDqztKkmQ9PrqlrMRxFLArPw05FTfNIMnIQhtcOs Nj6lPrdXrFaeQ2O6dWq0nU1bHfHQpUHEVHoVuWdO4kh74VhbKZlMh7leaUSqCuITy7lq EYfPj+JPz6QoEZyNdRBqeDZ0hNMktsqiBDXTUERKIw+oOu9jU8+7L001F9pYFflWjRxx U/DQ== X-Gm-Message-State: AOJu0YxZSEwGrdSdD7IU8MXPhsNDxlZcgLMR2rOKK77NYei0oAloHVu5 HsSuLqVoJ/9ENHTVVmb2ekgisA== X-Google-Smtp-Source: AGHT+IHJSNGHe5Cr/FYWhK4UAo/oJn6DC31Bkf+WjMZn2J/ngTNJvjkXoR3HFVsIrBN8cqkgSdFBUQ== X-Received: by 2002:a17:90a:5a85:b0:268:b682:23de with SMTP id n5-20020a17090a5a8500b00268b68223demr9730654pji.28.1692033118715; Mon, 14 Aug 2023 10:11:58 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d3-20020a17090a8d8300b0025bfda134ccsm8409746pjo.16.2023.08.14.10.11.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2023 10:11:57 -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 1/2] RDMA/bnxt_re: Initialize mutex dbq_lock Date: Mon, 14 Aug 2023 10:00:18 -0700 Message-Id: <1692032419-21680-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);