Re: [RFC PATCH v2 07/14] cxl/mem: Implement polled mode mailbox

2021-01-07 Thread Ben Widawsky
On 20-12-08 16:24:11, Ben Widawsky wrote: [snip] > +static int cxl_mem_mbox_send_cmd(struct cxl_mem *cxlm, > + struct mbox_cmd *mbox_cmd) > +{ > + u64 cmd, status; > + size_t out_len; > + int rc; > + > + lockdep_assert_held(>mbox_lock); > + > + /*

[RFC PATCH v2 07/14] cxl/mem: Implement polled mode mailbox

2020-12-08 Thread Ben Widawsky
Provide enough functionality to utilize the mailbox of a memory device. The mailbox is used to interact with the firmware running on the memory device. The CXL specification defines separate capabilities for the mailbox and the memory device. While we can confirm the mailbox is ready, in order to