Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402402 > unrolled thread
| Started by | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> |
|---|---|
| First post | 2016-05-17 17:00 +0200 |
| Last post | 2016-05-19 16:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCHv6 3/8] dma-mapping: add dma_{map,unmap}_resource Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-05-17 17:00 +0200
Re: [PATCHv6 3/8] dma-mapping: add dma_{map,unmap}_resource "Niklas Söderlund" <niklas.soderlund@ragnatech.se> - 2016-05-19 13:30 +0200
Re: [PATCHv6 3/8] dma-mapping: add dma_{map,unmap}_resource Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-05-19 16:30 +0200
| From | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> |
|---|---|
| Date | 2016-05-17 17:00 +0200 |
| Subject | Re: [PATCHv6 3/8] dma-mapping: add dma_{map,unmap}_resource |
| Message-ID | <rzODw-5QT-35@gated-at.bofh.it> |
> > -In some circumstances dma_map_single() and dma_map_page() will fail to create > -a mapping. A driver can check for these errors by testing the returned > -DMA address with dma_mapping_error(). A non-zero return value means the mapping > -could not be created and the driver should take appropriate action (e.g. > -reduce current DMA mapping usage or delay and try again later). > +In some circumstances dma_map_single(), dma_map_page() and dma_map_resource() > +will fail to create a mapping. A driver can check for these errors by testing > +the returned DMA address with dma_mapping_error(). A non-zero return value > +means the mapping could not be created and the driver should take appropriate > +action (e.g. reduce current DMA mapping usage or delay and try again later). This looks like it belongs to another patch?
[toc] | [next] | [standalone]
| From | "Niklas Söderlund" <niklas.soderlund@ragnatech.se> |
|---|---|
| Date | 2016-05-19 13:30 +0200 |
| Message-ID | <rAujo-7ti-27@gated-at.bofh.it> |
| In reply to | #1402402 |
Hi Konrad, Thanks for your feedback. On 2016-05-17 10:54:45 -0400, Konrad Rzeszutek Wilk wrote: > > > > -In some circumstances dma_map_single() and dma_map_page() will fail to create > > -a mapping. A driver can check for these errors by testing the returned > > -DMA address with dma_mapping_error(). A non-zero return value means the mapping > > -could not be created and the driver should take appropriate action (e.g. > > -reduce current DMA mapping usage or delay and try again later). > > +In some circumstances dma_map_single(), dma_map_page() and dma_map_resource() > > +will fail to create a mapping. A driver can check for these errors by testing > > +the returned DMA address with dma_mapping_error(). A non-zero return value > > +means the mapping could not be created and the driver should take appropriate > > +action (e.g. reduce current DMA mapping usage or delay and try again later). > > This looks like it belongs to another patch? No it is correct (at least intended to be in this patch). All it really do is inject dma_map_resource() (which is added in this patch) as one of the calls which return dma_addr_t should be checked for error using dma_mapping_error(). But yes the change effect all lines in the paragraph due to line wrapping. Hum or maybe I'm misunderstanding your question. -- Regards, Niklas Söderlund
[toc] | [prev] | [next] | [standalone]
| From | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> |
|---|---|
| Date | 2016-05-19 16:30 +0200 |
| Message-ID | <rAx7F-Wa-9@gated-at.bofh.it> |
| In reply to | #1403658 |
On Thu, May 19, 2016 at 01:29:26PM +0200, Niklas Söderlund wrote: > Hi Konrad, > > Thanks for your feedback. > > On 2016-05-17 10:54:45 -0400, Konrad Rzeszutek Wilk wrote: > > > > > > -In some circumstances dma_map_single() and dma_map_page() will fail to create > > > -a mapping. A driver can check for these errors by testing the returned > > > -DMA address with dma_mapping_error(). A non-zero return value means the mapping > > > -could not be created and the driver should take appropriate action (e.g. > > > -reduce current DMA mapping usage or delay and try again later). > > > +In some circumstances dma_map_single(), dma_map_page() and dma_map_resource() > > > +will fail to create a mapping. A driver can check for these errors by testing > > > +the returned DMA address with dma_mapping_error(). A non-zero return value > > > +means the mapping could not be created and the driver should take appropriate > > > +action (e.g. reduce current DMA mapping usage or delay and try again later). > > > > This looks like it belongs to another patch? > > No it is correct (at least intended to be in this patch). All it really > do is inject dma_map_resource() (which is added in this patch) as one of > the calls which return dma_addr_t should be checked for error using > dma_mapping_error(). But yes the change effect all lines in the > paragraph due to line wrapping. > > Hum or maybe I'm misunderstanding your question. I totally missed the 'dma_map_resource' in there and just read 'dma_mapping_error'! <sigh> Thanks. > > -- > Regards, > Niklas Söderlund
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web