Re: [PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread trigg
> On 21-May-2015, at 05:16, Michael Neuling wrote: > > + */ >> +ssize_t cxl_afu_read_err_buffer(struct cxl_afu *afu, char *buf, >> +loff_t off, size_t count) >> +{ >> +loff_t aligned_off; >> +size_t aligned_count; >> +const void __iomem *ebuf = afu->afu_desc_mmio + af

Re: [PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
On Thu, 2015-05-21 at 09:06 +0530, trigg wrote: > > > > On 21-May-2015, at 05:16, Michael Neuling wrote: > > > > + */ > > > +ssize_t cxl_afu_read_err_buffer(struct cxl_afu *afu, char *buf, > > > +loff_t off, size_t count) > > > +{ > > > +loff_t aligned_off; > > > +size_t

Re: [PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
+ */ > +ssize_t cxl_afu_read_err_buffer(struct cxl_afu *afu, char *buf, > + loff_t off, size_t count) > +{ > + loff_t aligned_off; > + size_t aligned_count; > + const void __iomem *ebuf = afu->afu_desc_mmio + afu->eb_offset; > + > + if (!afu->eb_len || co

[PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Vaibhav Jain
Export the "AFU Error Buffer" via sysfs attribute (afu_err_buf). AFU error buffer is used by the AFU to report application specific errors. The contents of this buffer are AFU specific and are intended to be interpreted by the application interacting with the afu. Testing: - Build against