Re: [PATCH v4 3/5] fw_cfg: do DMA read operation

2017-11-12 Thread Gabriel L. Somlo
On Sun, Nov 12, 2017 at 09:36:33AM -0500, Marc-André Lureau wrote: > > > - Original Message - > > On Tue, Oct 31, 2017 at 04:19:36PM +0100, Marc-André Lureau wrote: > > > Modify fw_cfg_read_blob() to use DMA if the device supports it. > > > Return errors, because the operation may fail. >

Re: [PATCH v4 3/5] fw_cfg: do DMA read operation

2017-11-12 Thread Marc-André Lureau
- Original Message - > On Tue, Oct 31, 2017 at 04:19:36PM +0100, Marc-André Lureau wrote: > > Modify fw_cfg_read_blob() to use DMA if the device supports it. > > Return errors, because the operation may fail. > > > > To avoid polling with unbound amount of time, the DMA operation is > >

Re: [PATCH v4 3/5] fw_cfg: do DMA read operation

2017-11-12 Thread Gabriel L. Somlo
On Tue, Oct 31, 2017 at 04:19:36PM +0100, Marc-André Lureau wrote: > Modify fw_cfg_read_blob() to use DMA if the device supports it. > Return errors, because the operation may fail. > > To avoid polling with unbound amount of time, the DMA operation is > expected to complete within 200ms, or will

[PATCH v4 3/5] fw_cfg: do DMA read operation

2017-10-31 Thread Marc-André Lureau
Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. To avoid polling with unbound amount of time, the DMA operation is expected to complete within 200ms, or will return ETIME error. We may want to switch all the *buf addresses to use only