lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <PA1PR83MB0662DF877BC5277C04A06CD7B4B32@PA1PR83MB0662.EURPRD83.prod.outlook.com>
Date: Mon, 14 Apr 2025 09:15:36 +0000
From: Konstantin Taranov <kotaranov@...rosoft.com>
To: Leon Romanovsky <leon@...nel.org>
CC: Konstantin Taranov <kotaranov@...ux.microsoft.com>, "pabeni@...hat.com"
	<pabeni@...hat.com>, Haiyang Zhang <haiyangz@...rosoft.com>, KY Srinivasan
	<kys@...rosoft.com>, "edumazet@...gle.com" <edumazet@...gle.com>,
	"kuba@...nel.org" <kuba@...nel.org>, "davem@...emloft.net"
	<davem@...emloft.net>, Dexuan Cui <decui@...rosoft.com>, "wei.liu@...nel.org"
	<wei.liu@...nel.org>, Long Li <longli@...rosoft.com>, "jgg@...pe.ca"
	<jgg@...pe.ca>, "linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [EXTERNAL] Re: [PATCH rdma-next 1/3] RDMA/mana_ib: Access remote
 atomic for MRs

> On Thu, Apr 10, 2025 at 01:37:00PM +0000, Konstantin Taranov wrote:
> > > > @@ -24,6 +24,9 @@ mana_ib_verbs_to_gdma_access_flags(int
> > > access_flags)
> > > >  	if (access_flags & IB_ACCESS_REMOTE_READ)
> > > >  		flags |= GDMA_ACCESS_FLAG_REMOTE_READ;
> > > >
> > > > +	if (access_flags & IB_ACCESS_REMOTE_ATOMIC)
> > > > +		flags |= GDMA_ACCESS_FLAG_REMOTE_ATOMIC;
> > >
> > > Can you enable this flag unconditionally without relation to running RW?
> >
> > Yes, ATOMIC access does not depend on Remote Read and Remote Write.
> 
> The question is "do you have FW which doesn't support
> GDMA_ACCESS_FLAG_REMOTE_ATOMIC? and what will happen if such flag
> used for such FW?"

As far as I am aware, all FW support this flag.
Nonetheless, if FW does not support it, the HW request to create MR will fail.

> 
> > I also do not see any conditions in other drivers.
> 
> At least for mlx5, we are checking FW capability if it is supported.
> See get_unchangeable_access_flags().
> 
> >
> > - Konstantin
> >
> > >
> > > Thanks
> > >
> > > > +
> > > >  	return flags;
> > > >  }
> > > >
> > > > --
> > > > 2.43.0
> > > >

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ