From patchwork Thu Aug 10 04:44:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13348765 X-Patchwork-Delegate: jgg@ziepe.ca 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 2BC8AC04A6A for ; Thu, 10 Aug 2023 04:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjHJE42 (ORCPT ); Thu, 10 Aug 2023 00:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbjHJE41 (ORCPT ); Thu, 10 Aug 2023 00:56:27 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 532AE2115 for ; Wed, 9 Aug 2023 21:56:27 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-686ba97e4feso464693b3a.0 for ; Wed, 09 Aug 2023 21:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1691643387; x=1692248187; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=O6+mCBB50buflkRqf9h8/y74WZspgWDZq0A4GtX3hCI=; b=IDwiLtV/nGp0be94r334e2eiUKLCwkM6F57xfSMu71Ssc5+tinZxQaW+vPNH5DG/eO GShUXgxJsm9QtxOstIwoM+sGen5O1Clt569EYyj7Gxbh/OARY+/CQ+VMl98eEzZC47wL bjfh68GWPQnay0DrYR+vWQmbJ2Ru5xCzHTkUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691643387; x=1692248187; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O6+mCBB50buflkRqf9h8/y74WZspgWDZq0A4GtX3hCI=; b=V6Fwc4Gdy7hjs0c6nLXgEgRw17nzwcs7ZmyWm3MCk4lHi5IkAfZHoR+4z2N2d+ARK+ Oi17zK64rdzBvQUCTrHoDR9MuaVg8eCx/idw3rjpXW4Q+ZhNUS8HAuTeub8z8UQZJUyV KW26jpStUIa2Mq1K3X3kbzn3xlaEo+1CjhP3Ld6bDrF24npAChQAt+rgtS0QYrjV+pKd s3OU/H2qBIEvzURsBFf3Yn9Fj8A+m48ZGxKiCI2FGVIV/1Sc4i2Q9eThdbdwJ+by8EPw G8aCkUntPFu0Xo7jHu1jv0pvx5z7BuHxGcgthLGSra305Gr/FATPIZFF5a9B41UD/dAc G26Q== X-Gm-Message-State: AOJu0YzTtAP4Lb+oAY5WXxb1ombf1eZl3zTI8B90pPXElsq/AdEOyXUI cNRa/cS0hGr0DuPLK0p+qQBz+Q== X-Google-Smtp-Source: AGHT+IElipVCv43VG/Quwx8MT8i+j06Se8hIROkWCLKflCCEWTN43YFzPAj+HqejINwiE7uEGeo4GQ== X-Received: by 2002:a05:6a21:7807:b0:13f:cd07:2b40 with SMTP id be7-20020a056a21780700b0013fcd072b40mr1362078pzc.3.1691643386735; Wed, 09 Aug 2023 21:56:26 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x6-20020a63b346000000b00553b9e0510esm458672pgt.60.2023.08.09.21.56.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Aug 2023 21:56:25 -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-rc 3/3] RDMA/bnxt_re: Initialize dpi_tbl_lock mutex Date: Wed, 9 Aug 2023 21:44:37 -0700 Message-Id: <1691642677-21369-4-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1691642677-21369-1-git-send-email-selvin.xavier@broadcom.com> References: <1691642677-21369-1-git-send-email-selvin.xavier@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Kashyap Desai Fix the missing dpi_tbl_lock mutex initialization Fixes: 0ac20faf5d83 ("RDMA/bnxt_re: Reorg the bar mapping") Signed-off-by: Kashyap Desai Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/qplib_res.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.c b/drivers/infiniband/hw/bnxt_re/qplib_res.c index 5fd8f7c..739d942 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_res.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_res.c @@ -819,6 +819,7 @@ static int bnxt_qplib_alloc_dpi_tbl(struct bnxt_qplib_res *res, } memset((u8 *)dpit->tbl, 0xFF, bytes); + mutex_init(&res->dpi_tbl_lock); dpit->priv_db = dpit->ucreg.bar_reg + dpit->ucreg.offset; return 0;