Re: [RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-17 Thread Dan Williams
On Tue, Nov 17, 2020 at 10:07 AM Jonathan Cameron wrote: > > On Tue, 17 Nov 2020 08:34:38 -0800 > Ben Widawsky wrote: > > > On 20-11-17 15:31:22, Jonathan Cameron wrote: > > > On Tue, 10 Nov 2020 21:43:54 -0800 > > > Ben Widawsky wrote: > > > > > > > Create a function to handle sending a

Re: [RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-17 Thread Jonathan Cameron
On Tue, 17 Nov 2020 08:34:38 -0800 Ben Widawsky wrote: > On 20-11-17 15:31:22, Jonathan Cameron wrote: > > On Tue, 10 Nov 2020 21:43:54 -0800 > > Ben Widawsky wrote: > > > > > Create a function to handle sending a command, optionally with a > > > payload, to the memory device, polling on a

Re: [RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-17 Thread Ben Widawsky
On 20-11-17 15:31:22, Jonathan Cameron wrote: > On Tue, 10 Nov 2020 21:43:54 -0800 > Ben Widawsky wrote: > > > Create a function to handle sending a command, optionally with a > > payload, to the memory device, polling on a result, and then optionally > > copying out the payload. The algorithm

Re: [RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-17 Thread Jonathan Cameron
On Tue, 10 Nov 2020 21:43:54 -0800 Ben Widawsky wrote: > Create a function to handle sending a command, optionally with a > payload, to the memory device, polling on a result, and then optionally > copying out the payload. The algorithm for doing this come straight out > of the CXL 2.0

Re: [RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-13 Thread Bjorn Helgaas
On Tue, Nov 10, 2020 at 09:43:54PM -0800, Ben Widawsky wrote: > Create a function to handle sending a command, optionally with a > payload, to the memory device, polling on a result, and then optionally > copying out the payload. The algorithm for doing this come straight out > of the CXL 2.0

[RFC PATCH 7/9] cxl/mem: Implement polled mode mailbox

2020-11-10 Thread Ben Widawsky
Create a function to handle sending a command, optionally with a payload, to the memory device, polling on a result, and then optionally copying out the payload. The algorithm for doing this come straight out of the CXL 2.0 specification. Primary mailboxes are capable of generating an interrupt