Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp49340lqb; Tue, 4 Jun 2024 04:56:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcUbNPdAVFDMf4nOM+svWo/Yva1cbys9tCPGY1BZ92xgj8xRHEtEbnclRuQ72lgg3jl5EqKvGJupOK+pQR68MLRZVIQ11wbvN+IRePMg== X-Google-Smtp-Source: AGHT+IEeG+fzpi5jA2SZrzVTYNIt6FwwxnXhJmECB8bdGGZx23rWVu/Vhaax5pmTcWnodgbm1eCI X-Received: by 2002:a05:622a:2a19:b0:440:25d4:805f with SMTP id d75a77b69052e-44025d48269mr9299631cf.23.1717502177118; Tue, 04 Jun 2024 04:56:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717502177; cv=pass; d=google.com; s=arc-20160816; b=XbhUmVuTKgTYkJz7VI/kRrPVzFJVlJyCIvfgKcVzsyIYHTkpvnELxu8aLZeytBktld 1avAz6uk5b3mfBGz5m9RZ2nAE64KSvJ+A8acQT5C8LeRsq04PwTFc7K5RKUEg4qWxMLG zx24wVz/0nX6TnIEVltCck4aUlASgvHNv8CvZ0Y86L85UBWYWbavQzuBFg8ERHSqVrzv meLFib59KdoA5c+X0ktaB735JwvNMra0CFMXk53KgQgnMZqu87Svbip/EVkVVjTVba2A Ec4v9S5GcLzWowT8hhhVUXH8nDHyUiHQYr3aD0m5RA7q2iLnYrsTPD5XkeCtquXkeZks aHcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=b/MoSSPuCfOeziCi8nOimS5wI7JeCnaNuAEAlFo9bSA=; fh=ujksmUrBEjpGhQjWbrjZMx9PDXUXbYR/j4y8MAq1x1o=; b=okbp1rA1t7qVJJlZuwzxivTnS/Z28RiRAJ2c+q359fAqqZvsvP6m6W74J7U3qtgC3A SH5gRD66l8Mw9nZsPn4fsYKQmaeOyoGTgYICvevxSlNBPM+JrKY3VlvVtjhbyLuatPKU MSt7QJ/kN7S52KGsmEfDJ0m7enJ37Z7tBioA2EFN2P48ku57OQ4+KCDHRlVDwVtoX8jD xW6FrciwogIq+VniaF27FACMREcgaqTnMw2btXq6sigAwgBJ9/sHI1kZ70BJ/sBXGkAl JeBfmEIfxTYN3M+5zni195uTJlPeM+9RHB2cn9rO+1up6LU/bhzCWI9l39zMRmpjC5I2 YwLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="bZIrT/28"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-200546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff2468bc3si110403861cf.379.2024.06.04.04.56.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 04:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="bZIrT/28"; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-200546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CF3EC1C2229C for ; Tue, 4 Jun 2024 11:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 417A4145B01; Tue, 4 Jun 2024 11:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="bZIrT/28" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F805144D21; Tue, 4 Jun 2024 11:56:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502169; cv=none; b=oJyZtQkHJttTEi53InsNTmVV8V9T+vFLt+ufzX0eHjVZY6mJ91J+tlHWMK6FRdWoOGvDEYa0IY395MSZbPeJFjIJojKNHqTxqZHyv+8I2VQUKK9lS49uwQjERDOKCwG3PCKuZgB0y3XFvQxxn4uvTeAHkM16SZz/TQVYNDoxRzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717502169; c=relaxed/simple; bh=2HtaCje/AByO8y8ttVnVbtxmSFQ/xg7CJhaRqfcF0Ys=; h=From:To:Cc:Subject:Date:Message-Id; b=Bj8/4ConVCPmNzH8Llpdqfg1mPsoPzoxx4MjWxiRY6UvTGYznGnY4GaTaDoyBG4Zy5i3jCQUVZ4nVQevy2U5aD6iRMYkPl3iR/D3Wo1C3an05LFbBLuqDyvhfIeUHwiwpgh7BDIH0/Bn0Gpol0yBjWiYnMAxKzFUAbnUBxRdndk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=bZIrT/28; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 4684E20B915A; Tue, 4 Jun 2024 04:56:07 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4684E20B915A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1717502167; bh=b/MoSSPuCfOeziCi8nOimS5wI7JeCnaNuAEAlFo9bSA=; h=From:To:Cc:Subject:Date:From; b=bZIrT/28dl3EvAYyniP1/Kkv8nk+8njU1bsfzhQ61prpnwCVjNnLbJBP9UPrGsBYI U4DC3g8VQWQCcj2yGH6bGqODHsC2zabAnKeHRimMD6LhGOuMFYtaQVG4u4uuvk8Ljk O04Zr/LSlKIEq15voaNRj5JAee33nc/DONG1SVX4= From: Konstantin Taranov To: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs Date: Tue, 4 Jun 2024 04:56:02 -0700 Message-Id: <1717502162-4161-1-git-send-email-kotaranov@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Konstantin Taranov Ignore optional ib_access_flags when an MR is created. Signed-off-by: Konstantin Taranov --- drivers/infiniband/hw/mana/mr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/mana/mr.c b/drivers/infiniband/hw/mana/mr.c index 4f13423..887b09d 100644 --- a/drivers/infiniband/hw/mana/mr.c +++ b/drivers/infiniband/hw/mana/mr.c @@ -112,6 +112,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length, "start 0x%llx, iova 0x%llx length 0x%llx access_flags 0x%x", start, iova, length, access_flags); + access_flags &= ~IB_ACCESS_OPTIONAL; if (access_flags & ~VALID_MR_FLAGS) return ERR_PTR(-EINVAL); -- 2.43.0