Re: [RFC PATCH 10/14] cxl/mem: Add send command

2020-12-15 Thread Ben Widawsky
On 20-12-15 14:03:00, Dan Williams wrote: > On Tue, Dec 15, 2020 at 1:44 PM Ben Widawsky wrote: > [..] > > > > +static int handle_mailbox_cmd_from_user(struct cxl_memdev *cxlmd, > > > > + const struct cxl_mem_command > > > > *cmd, > > > > +

Re: [RFC PATCH 10/14] cxl/mem: Add send command

2020-12-15 Thread Dan Williams
On Tue, Dec 15, 2020 at 1:44 PM Ben Widawsky wrote: [..] > > > +static int handle_mailbox_cmd_from_user(struct cxl_memdev *cxlmd, > > > + const struct cxl_mem_command *cmd, > > > + struct cxl_send_command __user *u) > > >

Re: [RFC PATCH 10/14] cxl/mem: Add send command

2020-12-15 Thread Ben Widawsky
On 20-12-09 14:06:22, Dan Williams wrote: > On Tue, Dec 8, 2020 at 4:24 PM Ben Widawsky wrote: > > > > The send command allows userspace to issue mailbox commands directly to > > the hardware. The driver will verify basic properties of the command but > > otherwise pass any input payload untouched

Re: [RFC PATCH 10/14] cxl/mem: Add send command

2020-12-09 Thread Dan Williams
On Tue, Dec 8, 2020 at 4:24 PM Ben Widawsky wrote: > > The send command allows userspace to issue mailbox commands directly to > the hardware. The driver will verify basic properties of the command but > otherwise pass any input payload untouched to the hardware, and return > the output payload to

[RFC PATCH 10/14] cxl/mem: Add send command

2020-12-08 Thread Ben Widawsky
The send command allows userspace to issue mailbox commands directly to the hardware. The driver will verify basic properties of the command but otherwise pass any input payload untouched to the hardware, and return the output payload to userspace. The caller of this IOCTL is required to allocate