Thread (4 messages) flat view 4 messages, 3 authors, 2016-05-06

Re: [PATCH] cxl: Add kernel API to allow a context to operate with relocate disabled

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-05-06 02:23:33

On Wed, 2016-05-04 at 18:07 +0200, Frederic Barrat wrote:
Hi Ian,

The principle is fine, but the cxl_start_context2 API bothers me a bit. 
Would something similar to this make sense, I think it would keep the 
API cleaner:

/* new kernel-only API */
void cxl_set_translation_mode(struct cxl_context *ctx, bool real_mode)

For mlx5, the call sequence would be:
	ctx = cxl_dev_context_init()
	cxl_set_translation_mode(ctx, true)
	cxl_start_context(ctx)
I'd prefer that if it works.

The new "2" API and the bool being passed everywhere is a bit smelly.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help