Files
android_kernel_xiaomi_sm8450/drivers/infiniband/core
Moni Shoua ad8a449675 IB/uverbs: Add support to advise_mr
Add new ioctl method for the MR object - ADVISE_MR.

This command can be used by users to give an advice or directions to the
kernel about an address range that belongs to memory regions.

A new ib_device callback, advise_mr(), is introduced here to suupport the
new command. This command takes the following arguments:

- pd:		The protection domain to which all memory regions belong
- advice: 	The type of the advice
	  	* IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH - Pre-fetch a range of
		an on-demand paging MR
	  	* IB_UVERBS_ADVISE_MR_ADVICE_PREFETCH_WRITE - Pre-fetch a range
		of an on-demand paging MR with write intention
- flags:	The properties of the advice
		* IB_UVERBS_ADVISE_MR_FLAG_FLUSH - Operation must end before
		return to the caller
- sg_list:	The list of memory ranges
- num_sge:	The number of memory ranges in the list
- attrs:	More attributes to be parsed by the provider

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-12-18 15:19:46 -07:00
..
2015-06-12 14:49:18 -04:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-06-12 16:19:22 -07:00
2008-07-14 23:48:44 -07:00
2018-12-12 07:40:16 -07:00
2016-05-13 13:37:18 -04:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2018-12-12 07:40:16 -07:00
2018-12-03 14:58:25 -05:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-10-16 12:47:40 -04:00
2016-03-03 10:20:25 -05:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00