From patchwork Mon Jul 6 09:11:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 11645269 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F47F1398 for ; Mon, 6 Jul 2020 09:11:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3486E206F5 for ; Mon, 6 Jul 2020 09:11:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BALBendo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728530AbgGFJLc (ORCPT ); Mon, 6 Jul 2020 05:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728024AbgGFJLc (ORCPT ); Mon, 6 Jul 2020 05:11:32 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D3BAC061794 for ; Mon, 6 Jul 2020 02:11:32 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id f139so41081323wmf.5 for ; Mon, 06 Jul 2020 02:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=obqxZdmR/t8xL2rXeSpVqMlK6yXRRmMUtovmoH9E5NE=; b=BALBendonLK00zZovnxUtMYuqeQ9RA61KofSMerJzDQrVCUAFQUNqFPnu4lm+r4rnG pRjVHPki7kjngosLNQn0ui8Xe9rHHAX11A2fNx4gNI8z0n94jjfO41urrq631XC/Ucoz dYApRkU3LrOzdeAi0V2m2cjN18KhumKVy7u0awFQy5ngB4CrMp+zZOJmn/zvVyPTCqpT J5jdxx9CnSFJE0zGmXcP8BXWJgeCBY1lLBdxWXi8GdBq07uDmMP4Ojrb9WcncyiHFk3O zoNStIGVInqiwIyDhYebSc81FoBhMUirVRywlGetLCO6vFsnXE+pUngQnVmX/2QOgreA HHzQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=obqxZdmR/t8xL2rXeSpVqMlK6yXRRmMUtovmoH9E5NE=; b=KXCIyEY+yQ7kILQrGoRGnatPRU74ZS0yyv/RJqNN3q1zubQMsDAyd76qRxBWqM+Lca QzZF9oOOqmhBrIfLzu0sZF4PgptOK58UzvdujrB5yaQL2dDnsgp+8lqSj8MCQ5gSiyBL 5CEvDK2bBEE0Nm1ozrpwguKpvexaOCR1/FFcESzBXxeZoEAmvnUGFv59Gxai6kNVWYST oHDfwyHM5Vbd9SD6VDISXzofuS8JGa5w3VYxfNKPV8EO9S2ydgG9LymX8E1ufK9xGusp b7PC+ZRmvELBKVJlYddZTJJYtlFH1BJP85FkGzfeX06npUl038tPiyoziTelvVLgBFsC 35iQ== X-Gm-Message-State: AOAM530WU05DO7YaMq5MsAudE0SrG9bOgYdTe1JawEi0SOK1a1EEsvKD 757heNdXRdwqOYbYzSrNAl4DvRzAttQ= X-Google-Smtp-Source: ABdhPJxJ7skzPo6n+/9ImhKQORLz0kksARyPeVMsx/v2+T7LogGXxlNj55NgJRH1x6yiJuZp9G40aQ== X-Received: by 2002:a05:600c:c1:: with SMTP id u1mr49343752wmm.48.1594026690547; Mon, 06 Jul 2020 02:11:30 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id j4sm18826867wrp.51.2020.07.06.02.11.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 02:11:30 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe , Doug Ledford , Kamal Heib , Bernard Metzler Subject: [PATCH for-rc v1 1/4] RDMA/siw: Set max_pkeys attribute Date: Mon, 6 Jul 2020 12:11:16 +0300 Message-Id: <20200706091119.367697-2-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200706091119.367697-1-kamalheib1@gmail.com> References: <20200706091119.367697-1-kamalheib1@gmail.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Make sure to set the max_pkeys attribute to indicate the maximum number of partitions supported by the siw device. Fixes: 303ae1cdfdf7 ("rdma/siw: application interface") Signed-off-by: Kamal Heib Cc: Bernard Metzler Reviewed-by: Bernard Metzler --- drivers/infiniband/sw/siw/siw_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/sw/siw/siw_verbs.c b/drivers/infiniband/sw/siw/siw_verbs.c index 987e2ba05dbc..bef35d566aee 100644 --- a/drivers/infiniband/sw/siw/siw_verbs.c +++ b/drivers/infiniband/sw/siw/siw_verbs.c @@ -151,6 +151,7 @@ int siw_query_device(struct ib_device *base_dev, struct ib_device_attr *attr, attr->max_srq = sdev->attrs.max_srq; attr->max_srq_sge = sdev->attrs.max_srq_sge; attr->max_srq_wr = sdev->attrs.max_srq_wr; + attr->max_pkeys = 1; attr->page_size_cap = PAGE_SIZE; attr->vendor_id = SIW_VENDOR_ID; attr->vendor_part_id = sdev->vendor_part_id; From patchwork Mon Jul 6 09:11:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 11645271 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC29413B4 for ; Mon, 6 Jul 2020 09:11:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 90E9F2073E for ; Mon, 6 Jul 2020 09:11:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JG5LT0Ok" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728603AbgGFJLe (ORCPT ); Mon, 6 Jul 2020 05:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728024AbgGFJLd (ORCPT ); Mon, 6 Jul 2020 05:11:33 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69183C061794 for ; Mon, 6 Jul 2020 02:11:33 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z2so17704750wrp.2 for ; Mon, 06 Jul 2020 02:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mPM/iC5reIq2wotJlN9Xm3lFCjiyi4yS8QzdhmEK8eY=; b=JG5LT0Ok/bK55Qb0xw4X5N5MBRBRtjnTbSpJV5PjFjq4I2Q6Gfvwwm4X2oEaDoOmGS MhqfIBvX8L2qrpOATtsC8Ql3HbZ+tl2LfKNtJ1mIlg+SZ5qe85aJ3Bbjrjufmsl9mZV1 JOpILCSnvJl6CGRCWK0rpv7pbLVv9UlRiwrUlXBcElcmmwHsGLjlMaJphyaD/RuYziEx kN1e5/VgvkX2w8wcRj3ACRwW05y2ejlJDUH30Q718mKG/KIiysw80jBYPPBW17A3RXX8 6g1Umv/H2IDW6tr7HE3u3nvqtOOqaPdV1cYxTtXjccbFZM80QrhhPTIGSYBg0JTxo7bY UO/g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=mPM/iC5reIq2wotJlN9Xm3lFCjiyi4yS8QzdhmEK8eY=; b=QAyyOQifbfeUFamqPs+5LXII48FSDdJPES7zjO+LbcQr47n/4JRG7c8vW8lr6PDwQS Gw/P0fkW7cL1tyl1/OhA/x8l3Ka6oSb9y7CBAlzec+oY511GNjY9QZXu/V+4Wv2mOE8q xFoxJ8vKg48cmAzpgq5GzExqQmsEYJ0etgneNnYE0MMYHnqgw+FKgStzab161Au50UkA SC8BGIqM3cNL2qUBNDtDuum7lwT0IN04eX1G1LUlKw46HxB2msHKnoYezTkNoOtNQSqh FWMw5pPCAQwUhRgkk4A24p48lymKEPFF9X0Ye1UZ4alxS54/TmC2XFKE7ox/n0SnIXPM nkeA== X-Gm-Message-State: AOAM5336YDCCtOSGl8Csn/KcOBilpfkeSMjWEtWdw2RPGBZpn3FxF1E3 V4WUiARo1Qq/w8wlJXFshBoZPV4h0p0= X-Google-Smtp-Source: ABdhPJwes24qoki1xqHxySi7jdY1Cu0qUtxJybmH6838gtISGL0+XwH2PWMrKF9xVyZ5EhhEUjAmzg== X-Received: by 2002:a5d:60d1:: with SMTP id x17mr47334695wrt.293.1594026691923; Mon, 06 Jul 2020 02:11:31 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id j4sm18826867wrp.51.2020.07.06.02.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 02:11:31 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe , Doug Ledford , Kamal Heib , Potnuri Bharat Teja Subject: [PATCH for-rc v1 2/4] RDMA/cxgb4: Set max_pkeys attribute Date: Mon, 6 Jul 2020 12:11:17 +0300 Message-Id: <20200706091119.367697-3-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200706091119.367697-1-kamalheib1@gmail.com> References: <20200706091119.367697-1-kamalheib1@gmail.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Make sure to set the max_pkeys attribute to indicate the maximum number of partitions supported by the cxgb4 device. Fixes: cfdda9d76436 ("RDMA/cxgb4: Add driver for Chelsio T4 RNIC") Signed-off-by: Kamal Heib Cc: Potnuri Bharat Teja --- drivers/infiniband/hw/cxgb4/provider.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c index ba83d942997c..98014beac1c5 100644 --- a/drivers/infiniband/hw/cxgb4/provider.c +++ b/drivers/infiniband/hw/cxgb4/provider.c @@ -298,6 +298,7 @@ static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *pro props->local_ca_ack_delay = 0; props->max_fast_reg_page_list_len = t4_max_fr_depth(dev->rdev.lldi.ulptx_memwrite_dsgl && use_dsgl); + props->max_pkeys = 1; return 0; } From patchwork Mon Jul 6 09:11:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 11645273 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C31813B4 for ; Mon, 6 Jul 2020 09:11:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0392F206F5 for ; Mon, 6 Jul 2020 09:11:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pZmeZc0P" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728628AbgGFJLf (ORCPT ); Mon, 6 Jul 2020 05:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728024AbgGFJLf (ORCPT ); Mon, 6 Jul 2020 05:11:35 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CBAC061794 for ; Mon, 6 Jul 2020 02:11:34 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id b6so39949901wrs.11 for ; Mon, 06 Jul 2020 02:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K6mLL7tLM934/zbxauAezYq+UQ9iy2rbr+FRjTdUcOU=; b=pZmeZc0PTnkq5+3cFfnKUf2uwVlEbiFH7zk9f9BM1yYD9OzAsTS1qZmeetK0fKOJP0 Mx5i5ZyOK8ftkPv9nr3/yvlI2n6jGCVsqSqVeVRVTXqrdQSJdfjVKqj2nlyy1Dc8VZJA 6nYoa9rMOWYAVPziUJg3SUzhI3D7X6iC2UyLXnV894eEXS81m1TRq+UZkbu7ozE74+u9 xrwlaliaNjp3VpWnCaXdXvfWBQdvoIoQtNlFYBYoejJ9W1cYsK3m+g7Uhf/KBW4cBLrL T/dX+GKe81qFPEizCPPtGPjZnd4UPpTIjZndEz5tUREQQHKtf1YJE1XY0gZTGb5AOCWr 4Mlg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=K6mLL7tLM934/zbxauAezYq+UQ9iy2rbr+FRjTdUcOU=; b=qViw8e96F9U64jP3wMU7QEqB2Whip1Ifdk/sE/tDZELhSag9yz2sQCWOXELH242sjl jG85hDL3lSUCmo5Cf3d8PH9ir+uUfVzg4Eq0Ngq8pchQwCc+1XTQGiJ/ZeM4eepWktPh tHbun63IVa/d5Nt3e+qJVZgP+T++vlRsZGSbe/HwqVDNcbGGa5P6vsfXj7KyRcVbYEiW 1BN3zPUQ/4RN5qYeDoXn69na809G+5wJt5aD+OkVJoz7RhPfBosGJK13Hog18+9KY5hv cmD9mluowlqHf8VyQUIPIIY3zpXBjiluJaYvgyp2MlRsLNSrBNDMzlCRf2wfbek0Rfjl vcRg== X-Gm-Message-State: AOAM532JPwmecnOfkgXqQTG0yU8FnjRraQ0yJW7cAvb+5vgYdIgcFiWq WRwGoOcnYy7/Z/k7BRZW1aIcb+ZEIZE= X-Google-Smtp-Source: ABdhPJwZ52iHwO/d4O79Io+QG7XfCHeaB8KeJWCiT7O2bAcXN6ofcQw7Hn8mFMlOmmSbWYKWD5sXkw== X-Received: by 2002:adf:f3cd:: with SMTP id g13mr45472555wrp.45.1594026693316; Mon, 06 Jul 2020 02:11:33 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id j4sm18826867wrp.51.2020.07.06.02.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 02:11:32 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe , Doug Ledford , Kamal Heib , Shiraz Saleem Subject: [PATCH for-rc v1 3/4] RDMA/i40iw: Set max_pkeys attribute Date: Mon, 6 Jul 2020 12:11:18 +0300 Message-Id: <20200706091119.367697-4-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200706091119.367697-1-kamalheib1@gmail.com> References: <20200706091119.367697-1-kamalheib1@gmail.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Make sure to set the max_pkeys attribute to indicate the maximum number of partitions supported by the i40iw device. Fixes: d37498417947 ("i40iw: add files for iwarp interface") Signed-off-by: Kamal Heib Cc: Shiraz Saleem --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 19af29a48c55..ef624fa5f07b 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -84,6 +84,7 @@ static int i40iw_query_device(struct ib_device *ibdev, props->max_qp_init_rd_atom = props->max_qp_rd_atom; props->atomic_cap = IB_ATOMIC_NONE; props->max_fast_reg_page_list_len = I40IW_MAX_PAGES_PER_FMR; + props->max_pkeys = 1; return 0; } From patchwork Mon Jul 6 09:11:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 11645275 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 32D941398 for ; Mon, 6 Jul 2020 09:11:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 17DB42073E for ; Mon, 6 Jul 2020 09:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dk4m6D5d" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728639AbgGFJLg (ORCPT ); Mon, 6 Jul 2020 05:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728024AbgGFJLg (ORCPT ); Mon, 6 Jul 2020 05:11:36 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA340C061794 for ; Mon, 6 Jul 2020 02:11:35 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s10so39922014wrw.12 for ; Mon, 06 Jul 2020 02:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nFhKU1c8QJZQ3rQsIyMuD/WuH/oGWV1Tm3foNGD2v2k=; b=dk4m6D5dq8TXcn/MnNq0jhs7WqCMyjXmpwEgMw5FhkkfGi6NwUmr1i1x5n84gtPz6W dz6x6MRkG3l9ZlNtLber8+jeWcCSYDwEnfQ6rp2nlnluTuejTmcokda9745yj7qSTxG4 Jt+ckIiNXEjhNLEpf4lcXQ+Kge/lXsQKIlgA8DXAom1GmKowP2Dt6cXjVgoBY4l3X5Y0 fbQP0ij6yVqfbY0WSIJJToHD/0a2b8pPNgLnEzRIYaRcm+7sig/Bepr9ZNyX0El8ZvrM xGrpGCVyeCdRZev3P+GOM3vTap6UFoZ6O43kRtx47uZoxtW7I3QJA0oB/NbsjJqTuOJJ sB3g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=nFhKU1c8QJZQ3rQsIyMuD/WuH/oGWV1Tm3foNGD2v2k=; b=LhKzNBMpLP0pBcPM5okpuFJl02AHPP1XzuqUcxvpDRkohnu5JU4zkIAZJdmcGs41F+ cUWlvnbMzR9WMqcxaWPVY9i5uHc2QDXbElFotKhGUZdB4T3Ug2UJcyvKMkOy/V62Gr2t l9URos4/P//JgfRbt6yueI23xhRnLhpgzA06tSIr+AAgYULqaxyZtq89HcR8tjducxiB vS1E4C8cimdYM8R/fwbGzMiDq67MIA7QyEzsgo5rnf8ZsP1X0Fz0VIt1m2LZIizO7Wfj i/YA1RZ9i1QKj0orIgMU6A+gTcLzPaMAhPCFUMrZREElQGdQapLE5QejhHljMN9+bwkn ixEw== X-Gm-Message-State: AOAM531Ck07n+jqr7KhOXMAwzphkIUIW3baud+8zB7FJAeYRagOOM5xl ZRtkc2leESlZnGtP7t1/oFOJrlnnfpI= X-Google-Smtp-Source: ABdhPJyRBazbbY3nGnmSjg6KoyPH7AiUIyJhO795Hcik5c72FzzMR5OfEj+zcHnpmDWopCPdDwE52Q== X-Received: by 2002:a5d:4a01:: with SMTP id m1mr47094331wrq.250.1594026694548; Mon, 06 Jul 2020 02:11:34 -0700 (PDT) Received: from kheib-workstation.redhat.com ([37.142.6.100]) by smtp.gmail.com with ESMTPSA id j4sm18826867wrp.51.2020.07.06.02.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 02:11:34 -0700 (PDT) From: Kamal Heib To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe , Doug Ledford , Kamal Heib , Christian Benvenuti Subject: [PATCH for-rc v1 4/4] RDMA/usnic: Fix reported max_pkeys attribute Date: Mon, 6 Jul 2020 12:11:19 +0300 Message-Id: <20200706091119.367697-5-kamalheib1@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200706091119.367697-1-kamalheib1@gmail.com> References: <20200706091119.367697-1-kamalheib1@gmail.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Make sure to report the right max_pkeys attribute value to indicate the maximum number of partitions supported by the usnic device. Fixes: e3cf00d0a87f ("IB/usnic: Add Cisco VIC low-level hardware driver") Signed-off-by: Kamal Heib Cc: Christian Benvenuti --- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c index b8a77ce11590..0cb2a73d46ee 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_verbs.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_verbs.c @@ -309,7 +309,7 @@ int usnic_ib_query_device(struct ib_device *ibdev, props->max_pd = USNIC_UIOM_MAX_PD_CNT; props->max_mr = USNIC_UIOM_MAX_MR_CNT; props->local_ca_ack_delay = 0; - props->max_pkeys = 0; + props->max_pkeys = 1; props->atomic_cap = IB_ATOMIC_NONE; props->masked_atomic_cap = props->atomic_cap; props->max_qp_rd_atom = 0;