Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp87001lqb; Tue, 4 Jun 2024 06:04:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4aKmxpBppI7bKJT0nnQCZDeQOmpt/P69NZNAOmQVCH42ITEfu87Zs4BhX4EODBNp4jRU3oBXwm1Ywhqqb7/igLj3nax15oxqZe38iYw== X-Google-Smtp-Source: AGHT+IFhd1EVNHuHaBkGQmznJ8fj8gVcodVRBhE4S+w+lYEGGIlLAX8BSX59t8Qm73/Mtb+6vJgH X-Received: by 2002:a17:90b:30d6:b0:2bf:de54:f5b with SMTP id 98e67ed59e1d1-2c1dc57b4aamr10622482a91.18.1717506250590; Tue, 04 Jun 2024 06:04:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717506250; cv=pass; d=google.com; s=arc-20160816; b=cD4WYbMHaRF6q+XUWzKtQupzPoOTcpWnkiCzFAkEtkAs3UdpQgdrmeIX6+8ykf+8ww nwnbPRIUUjG2zcPR4yAf78upIrexsCODEeqWeCDsTNz+nkM9BAlj0Y+zeKjLPRiR62nx 7HfCNjgKrJJCMzW7KM5DMhsR+VNAn25KEF+jLXOsBmnxUsOEgqCyFep9edRnHlublQeY pD9sg94rjFNBanj+5CsP8k+X57osMaubxI9JifXB8TAuaO7fT0dUL1rq4T6KX9QJ/NvQ MtAuDyZnkcfH282dhsiV5oWs6pT3P9s3kQwpd7xW/se+fXQbXnEIrOCD5KgkwIFFgPCy SNAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EgwOb43sQ0oBb7iTRRWaYVslZEqobBkaZutsstdXZ0Y=; fh=wqgrbj2+rwdfMrQgFkGJg5tRJB9fHkuTLpuaioGuF0M=; b=lvjvXnp2ijLy56JjRNf+7i2Y98iPBOJt3UZW8bg8+PqUMkQu+c+Cjxg3IDzhhEY34c ZDWbeQtJNGz0EGF11g/SHqjFEzOM+BnaAI31WY7ezKI9UXtIcWz8rTsKN2o13+cYuXjk tmOr8tHXnb89dogIaMFeeD4PmUhamuDj1kzkItUTQ+sivUx0DiuI8vou8c6WHPFL01kK y0Kqeu781jK13zIDBgVPjHDZdrmWu4cvXz2c1NUijp2EI+SdrxsI8BRHs6b7T3gWc3L3 /MizStjPMB9lUn6hdmu+82H4fIrX0xkJZa8CYVXz/Wgamtdms2Nuzo4lUPUtK9z/IcdI PfSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p000rvcZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200664-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c241345303si2838559a91.41.2024.06.04.06.04.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p000rvcZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200664-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DD766285C80 for ; Tue, 4 Jun 2024 13:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 437F5146592; Tue, 4 Jun 2024 13:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p000rvcZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66E431E519; Tue, 4 Jun 2024 13:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717506217; cv=none; b=GqWokPtn59ZPs6r4cra5qMt5aeljdh1JYEF1+PxIG7A7cxpyYTKZJuHJj2YVv8JdY9GTa7b+tP4291pp4zWwe+AmM35Ii8pDlOK0Mm9o4e8VEn9qdkWHL7sQEEzkymq3kYSKXKhUCznPF3/Dpd1kdeGmxH4+RjkT9k7vSdWClvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717506217; c=relaxed/simple; bh=snaMy2D6q++knfWhNRs+J2NDIjP7SJheVj7QpZxtH0Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lup02r5PE2BdGxmQ2kIC2x6CAPgwOg/TRM/fOMMAVdWLsPQn//eZS3iKekQYUUKIT8qudmOcugnbBMq9u41+XCAae66GrUngw21GkTnahCmWD0nKfIDWep5urE3kKTf2y9hzeo6dKI/3twFnxlcNUw8mP345+bL3uVkEzp9kT/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p000rvcZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F797C2BBFC; Tue, 4 Jun 2024 13:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717506217; bh=snaMy2D6q++knfWhNRs+J2NDIjP7SJheVj7QpZxtH0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p000rvcZn1zZnKy29vbQxqrV2lXH+T0lAyiDHfEK7+J9qb1fSLz3WbM+0gW26KW+u RY1h1nzMZtHP8XXZYW5bsjgPPpEKzj+af3kQ73ydm/Kycc/dm+SzzUomaEyamc+3pi 5mb4VbB+hym//PvzUANxrv6fOAEWsABRYE5uMtY9wpZz6Wjx5bK0lTeF6mjsoppqu2 /mMvCqGwCdPOMixbs1N4xXpKXp48lziNvVMSpO9k7Vi88WhYywrH1+Ho6wEJ/QEVI2 TBAUJPWrraL+kFJUJzaI3dnKEVh7fiIdrEBiLEjGKdbl5KjGSEduzJ7L4rLhtKO5Sb CRR+3FizNx5UA== Date: Tue, 4 Jun 2024 16:03:30 +0300 From: Leon Romanovsky To: Konstantin Taranov Cc: kotaranov@microsoft.com, sharmaajay@microsoft.com, longli@microsoft.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] RDMA/mana_ib: ignore optional access flags for MRs Message-ID: <20240604130330.GS3884@unreal> References: <1717502162-4161-1-git-send-email-kotaranov@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1717502162-4161-1-git-send-email-kotaranov@linux.microsoft.com> On Tue, Jun 04, 2024 at 04:56:02AM -0700, Konstantin Taranov wrote: > 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(+) Please add Fixes line. Thanks > > 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 >